Use modern AC_INIT in configure.in
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
2e98a7bd 3# Generated by GNU Autoconf 2.64 for gprof 2.24.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'
559PACKAGE_VERSION='2.24.51'
560PACKAGE_STRING='gprof 2.24.51'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
6bf9431b
BE
563
564ac_unique_file="gprof.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
6bf9431b
BE
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
6bf9431b
BE
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
6bf9431b
BE
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
6bf9431b 592# include <inttypes.h>
6bf9431b 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
6bf9431b
BE
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605NO_WERROR
606WARN_CFLAGS
607GENINSRC_NEVER_FALSE
608GENINSRC_NEVER_TRUE
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612MSGMERGE
613MSGFMT
614MKINSTALLDIRS
615CATOBJEXT
616GENCAT
617INSTOBJEXT
618DATADIRNAME
619CATALOGS
620POSUB
621GMSGFMT
622XGETTEXT
623INCINTL
624LIBINTL_DEP
625LIBINTL
626USE_NLS
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
81ecdfbb
RW
632RANLIB
633AR
634OBJDUMP
635LN_S
636NM
637ac_ct_DUMPBIN
638DUMPBIN
639LD
640FGREP
641SED
642LIBTOOL
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
6bf9431b 735ac_subst_files=''
81ecdfbb
RW
736ac_user_opts='
737enable_option_checking
738enable_dependency_tracking
da2f07f1 739enable_plugins
81ecdfbb
RW
740enable_largefile
741enable_shared
742enable_static
743with_pic
744enable_fast_install
745with_gnu_ld
746enable_libtool_lock
747enable_nls
748enable_maintainer_mode
749enable_werror
750enable_build_warnings
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP'
761
252b5132
RH
762
763# Initialize some variables set by options.
6bf9431b
BE
764ac_init_help=
765ac_init_version=false
81ecdfbb
RW
766ac_unrecognized_opts=
767ac_unrecognized_sep=
252b5132
RH
768# The variables have the same names as the options, with
769# dashes changed to underlines.
6bf9431b 770cache_file=/dev/null
252b5132 771exec_prefix=NONE
252b5132 772no_create=
252b5132
RH
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
252b5132
RH
781verbose=
782x_includes=NONE
783x_libraries=NONE
6bf9431b
BE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 790# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
252b5132
RH
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
252b5132
RH
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
2e98a7bd 801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
252b5132 810
252b5132 811ac_prev=
81ecdfbb 812ac_dashdash=
252b5132
RH
813for ac_option
814do
252b5132
RH
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
81ecdfbb 817 eval $ac_prev=\$ac_option
252b5132
RH
818 ac_prev=
819 continue
820 fi
821
81ecdfbb
RW
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
252b5132
RH
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
81ecdfbb
RW
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
252b5132
RH
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 836 bindir=$ac_optarg ;;
252b5132
RH
837
838 -build | --build | --buil | --bui | --bu)
6bf9431b 839 ac_prev=build_alias ;;
252b5132 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 841 build_alias=$ac_optarg ;;
252b5132
RH
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
252b5132 852
81ecdfbb 853 -datadir | --datadir | --datadi | --datad)
252b5132 854 ac_prev=datadir ;;
81ecdfbb 855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 856 datadir=$ac_optarg ;;
252b5132 857
81ecdfbb
RW
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
252b5132 865 -disable-* | --disable-*)
81ecdfbb 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 867 # Reject names that are not valid shell variable names.
81ecdfbb
RW
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
252b5132
RH
890
891 -enable-* | --enable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 893 # Reject names that are not valid shell variable names.
81ecdfbb
RW
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
0ab6f085 904 esac
81ecdfbb 905 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
6bf9431b 914 exec_prefix=$ac_optarg ;;
252b5132
RH
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
6bf9431b
BE
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
252b5132
RH
926
927 -host | --host | --hos | --ho)
6bf9431b 928 ac_prev=host_alias ;;
252b5132 929 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 930 host_alias=$ac_optarg ;;
252b5132 931
81ecdfbb
RW
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
252b5132
RH
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 943 includedir=$ac_optarg ;;
252b5132
RH
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 948 infodir=$ac_optarg ;;
252b5132
RH
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 953 libdir=$ac_optarg ;;
252b5132
RH
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
6bf9431b 960 libexecdir=$ac_optarg ;;
252b5132 961
81ecdfbb
RW
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
252b5132 967 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 968 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 972 localstatedir=$ac_optarg ;;
252b5132
RH
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 977 mandir=$ac_optarg ;;
252b5132
RH
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 984 | --no-cr | --no-c | -n)
252b5132
RH
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 998 oldincludedir=$ac_optarg ;;
252b5132
RH
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1003 prefix=$ac_optarg ;;
252b5132
RH
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1010 program_prefix=$ac_optarg ;;
252b5132
RH
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1017 program_suffix=$ac_optarg ;;
252b5132
RH
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1034 program_transform_name=$ac_optarg ;;
252b5132 1035
81ecdfbb
RW
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
252b5132
RH
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
6bf9431b 1054 sbindir=$ac_optarg ;;
252b5132
RH
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
6bf9431b 1065 sharedstatedir=$ac_optarg ;;
252b5132
RH
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
6bf9431b 1070 site=$ac_optarg ;;
093872ec 1071
252b5132
RH
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1075 srcdir=$ac_optarg ;;
252b5132
RH
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1082 sysconfdir=$ac_optarg ;;
252b5132
RH
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1085 ac_prev=target_alias ;;
252b5132 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1087 target_alias=$ac_optarg ;;
252b5132
RH
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
6bf9431b
BE
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
252b5132
RH
1094
1095 -with-* | --with-*)
81ecdfbb 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1097 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
0ab6f085 1108 esac
81ecdfbb 1109 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1110
1111 -without-* | --without-*)
81ecdfbb 1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1113 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
252b5132
RH
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1136 x_includes=$ac_optarg ;;
252b5132
RH
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1143 x_libraries=$ac_optarg ;;
252b5132 1144
81ecdfbb
RW
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
252b5132
RH
1147 ;;
1148
6bf9431b
BE
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1157 export $ac_envvar ;;
1158
252b5132 1159 *)
6bf9431b 1160 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
6bf9431b 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1172 as_fn_error "missing argument to $ac_option"
252b5132
RH
1173fi
1174
81ecdfbb
RW
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1180 esac
81ecdfbb 1181fi
0ab6f085 1182
81ecdfbb
RW
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
0ab6f085 1188do
81ecdfbb
RW
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
0ab6f085 1191 case $ac_val in
81ecdfbb
RW
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
252b5132 1195 esac
81ecdfbb
RW
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1202done
1203
6bf9431b
BE
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
81ecdfbb 1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
252b5132 1221
6bf9431b
BE
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
252b5132 1226
252b5132 1227
81ecdfbb
RW
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
252b5132
RH
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
81ecdfbb
RW
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
252b5132 1263 srcdir=$ac_confdir
81ecdfbb 1264 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
81ecdfbb
RW
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
252b5132 1294
6bf9431b
BE
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
2e98a7bd 1302\`configure' configures gprof 2.24.51 to adapt to many kinds of systems.
252b5132 1303
6bf9431b 1304Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1305
6bf9431b
BE
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1308
6bf9431b 1309Defaults for the options are specified in brackets.
ac48eca1 1310
6bf9431b
BE
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
6bf9431b
BE
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1324 [$ac_default_prefix]
6bf9431b 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1326 [PREFIX]
ac48eca1 1327
6bf9431b
BE
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
ac48eca1 1332
6bf9431b 1333For better control, use the options below.
ac48eca1 1334
6bf9431b 1335Fine tuning of the installation directories:
81ecdfbb
RW
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1350 --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
81ecdfbb
RW
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1355_ACEOF
ac48eca1 1356
6bf9431b 1357 cat <<\_ACEOF
252b5132 1358
6bf9431b
BE
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1363
6bf9431b
BE
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
252b5132 1369fi
252b5132 1370
6bf9431b 1371if test -n "$ac_init_help"; then
2e98a7bd
AM
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of gprof 2.24.51:";;
1374 esac
6bf9431b 1375 cat <<\_ACEOF
252b5132 1376
6bf9431b 1377Optional Features:
81ecdfbb 1378 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1383 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1384 --disable-largefile omit support for large files
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
BE
1389 --disable-libtool-lock avoid locking (might break parallel builds)
1390 --disable-nls do not use Native Language Support
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
241a6c40
AM
1393 --enable-werror treat compile warnings as errors
1394 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1395
1396Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1402
6bf9431b
BE
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
81ecdfbb
RW
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
6bf9431b 1411 CPP C preprocessor
252b5132 1412
6bf9431b
BE
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
81ecdfbb 1416Report bugs to the package provider.
6bf9431b 1417_ACEOF
81ecdfbb 1418ac_status=$?
252b5132
RH
1419fi
1420
6bf9431b
BE
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
6bf9431b 1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
6bf9431b 1427 ac_builddir=.
252b5132 1428
81ecdfbb
RW
1429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1444
1445case $srcdir in
81ecdfbb 1446 .) # We are building in place.
6bf9431b 1447 ac_srcdir=.
81ecdfbb
RW
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1451 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1458esac
81ecdfbb
RW
1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1469 else
81ecdfbb
RW
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1473 done
1474fi
252b5132 1475
81ecdfbb 1476test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1477if $ac_init_version; then
1478 cat <<\_ACEOF
2e98a7bd 1479gprof configure 2.24.51
81ecdfbb 1480generated by GNU Autoconf 2.64
252b5132 1481
81ecdfbb 1482Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
81ecdfbb 1486 exit
6bf9431b 1487fi
5d64ca4e 1488
81ecdfbb
RW
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
5d64ca4e 1492
81ecdfbb
RW
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
6bf9431b 1497{
81ecdfbb
RW
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1523
81ecdfbb
RW
1524 ac_retval=1
1525fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
6bf9431b 1528
81ecdfbb 1529} # ac_fn_c_try_compile
6bf9431b 1530
81ecdfbb
RW
1531# ac_fn_c_try_link LINENO
1532# -----------------------
1533# Try to link conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_link ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_link") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest$ac_exeext && {
1557 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1564
81ecdfbb
RW
1565 ac_retval=1
1566fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
6bf9431b 1574
81ecdfbb
RW
1575} # ac_fn_c_try_link
1576
1577# ac_fn_c_try_cpp LINENO
1578# ----------------------
1579# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_cpp ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1611
1612} # ac_fn_c_try_cpp
1613
1614# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615# -------------------------------------------------------
1616# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617# the include files in INCLUDES and setting the cache variable VAR
1618# accordingly.
1619ac_fn_c_check_header_mongrel ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 $as_echo_n "(cached) " >&6
1627fi
1628eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631else
1632 # Is the header compilable?
1633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634$as_echo_n "checking $2 usability... " >&6; }
1635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h. */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642else
1643 ac_header_compiler=no
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647$as_echo "$ac_header_compiler" >&6; }
1648
1649# Is the header present?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651$as_echo_n "checking $2 presence... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658else
1659 ac_header_preproc=no
1660fi
1661rm -f conftest.err conftest.$ac_ext
1662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663$as_echo "$ac_header_preproc" >&6; }
1664
1665# So? What about this header?
1666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687$as_echo_n "checking for $2... " >&6; }
1688if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1690else
1691 eval "$3=\$ac_header_compiler"
1692fi
1693eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695$as_echo "$ac_res" >&6; }
1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698
1699} # ac_fn_c_check_header_mongrel
1700
1701# ac_fn_c_try_run LINENO
1702# ----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704# that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740
1741} # ac_fn_c_try_run
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762else
1763 eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_check_func LINENO FUNC VAR
1775# ----------------------------------
1776# Tests whether FUNC exists, setting the cache variable VAR accordingly
1777ac_fn_c_check_func ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789#define $2 innocuous_$2
1790
1791/* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796#ifdef __STDC__
1797# include <limits.h>
1798#else
1799# include <assert.h>
1800#endif
1801
1802#undef $2
1803
1804/* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807#ifdef __cplusplus
1808extern "C"
1809#endif
1810char $2 ();
1811/* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814#if defined __stub_$2 || defined __stub___$2
1815choke me
1816#endif
1817
1818int
1819main ()
1820{
1821return $2 ();
1822 ;
1823 return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828else
1829 eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_func
1840cat >config.log <<_ACEOF
1841This file contains any messages produced by compilers while
1842running configure, to aid debugging if configure makes a mistake.
1843
2e98a7bd 1844It was created by gprof $as_me 2.24.51, which was
81ecdfbb
RW
1845generated by GNU Autoconf 2.64. Invocation command line was
1846
1847 $ $0 $@
1848
1849_ACEOF
1850exec 5>>config.log
1851{
1852cat <<_ASUNAME
1853## --------- ##
1854## Platform. ##
1855## --------- ##
1856
1857hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865
1866/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1867/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1868/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1870/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1871/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1872/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873
1874_ASUNAME
1875
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1881 $as_echo "PATH: $as_dir"
1882 done
1883IFS=$as_save_IFS
5d64ca4e 1884
6bf9431b 1885} >&5
093872ec 1886
6bf9431b 1887cat >&5 <<_ACEOF
252b5132 1888
6bf9431b
BE
1889
1890## ----------- ##
1891## Core tests. ##
1892## ----------- ##
1893
1894_ACEOF
1895
1896
1897# Keep a trace of the command line.
1898# Strip out --no-create and --no-recursion so they do not pile up.
1899# Strip out --silent because we don't want to record it for future runs.
1900# Also quote any args containing shell meta-characters.
1901# Make two passes to allow for proper duplicate-argument suppression.
1902ac_configure_args=
1903ac_configure_args0=
1904ac_configure_args1=
6bf9431b
BE
1905ac_must_keep_next=false
1906for ac_pass in 1 2
1907do
1908 for ac_arg
1909 do
1910 case $ac_arg in
1911 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913 | -silent | --silent | --silen | --sile | --sil)
1914 continue ;;
81ecdfbb
RW
1915 *\'*)
1916 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1917 esac
1918 case $ac_pass in
81ecdfbb 1919 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 1920 2)
81ecdfbb 1921 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
1922 if test $ac_must_keep_next = true; then
1923 ac_must_keep_next=false # Got value, back to normal.
1924 else
1925 case $ac_arg in
1926 *=* | --config-cache | -C | -disable-* | --disable-* \
1927 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929 | -with-* | --with-* | -without-* | --without-* | --x)
1930 case "$ac_configure_args0 " in
1931 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 esac
1933 ;;
1934 -* ) ac_must_keep_next=true ;;
1935 esac
1936 fi
81ecdfbb 1937 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
1938 ;;
1939 esac
1940 done
1941done
81ecdfbb
RW
1942{ ac_configure_args0=; unset ac_configure_args0;}
1943{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
1944
1945# When interrupted or exit'd, cleanup temporary files, and complete
1946# config.log. We remove comments because anyway the quotes in there
1947# would cause problems or look ugly.
81ecdfbb
RW
1948# WARNING: Use '\'' to represent an apostrophe within the trap.
1949# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
1950trap 'exit_status=$?
1951 # Save into config.log some information that might help in debugging.
1952 {
1953 echo
1954
1955 cat <<\_ASBOX
1956## ---------------- ##
1957## Cache variables. ##
1958## ---------------- ##
1959_ASBOX
1960 echo
1961 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1962(
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in #(
1966 *${as_nl}*)
1967 case $ac_var in #(
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1970 esac
1971 case $ac_var in #(
1972 _ | IFS | as_nl) ;; #(
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974 *) { eval $ac_var=; unset $ac_var;} ;;
1975 esac ;;
1976 esac
1977 done
6bf9431b 1978 (set) 2>&1 |
81ecdfbb
RW
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980 *${as_nl}ac_space=\ *)
6bf9431b 1981 sed -n \
81ecdfbb
RW
1982 "s/'\''/'\''\\\\'\'''\''/g;
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984 ;; #(
6bf9431b 1985 *)
81ecdfbb 1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 1987 ;;
81ecdfbb
RW
1988 esac |
1989 sort
1990)
6bf9431b
BE
1991 echo
1992
1993 cat <<\_ASBOX
1994## ----------------- ##
1995## Output variables. ##
1996## ----------------- ##
1997_ASBOX
1998 echo
1999 for ac_var in $ac_subst_vars
2000 do
81ecdfbb
RW
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2006 done | sort
2007 echo
2008
2009 if test -n "$ac_subst_files"; then
2010 cat <<\_ASBOX
81ecdfbb
RW
2011## ------------------- ##
2012## File substitutions. ##
2013## ------------------- ##
6bf9431b
BE
2014_ASBOX
2015 echo
2016 for ac_var in $ac_subst_files
2017 do
81ecdfbb
RW
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2023 done | sort
2024 echo
2025 fi
2026
2027 if test -s confdefs.h; then
2028 cat <<\_ASBOX
2029## ----------- ##
2030## confdefs.h. ##
2031## ----------- ##
2032_ASBOX
2033 echo
81ecdfbb 2034 cat confdefs.h
6bf9431b
BE
2035 echo
2036 fi
2037 test "$ac_signal" != 0 &&
81ecdfbb
RW
2038 $as_echo "$as_me: caught signal $ac_signal"
2039 $as_echo "$as_me: exit $exit_status"
6bf9431b 2040 } >&5
81ecdfbb
RW
2041 rm -f core *.core core.conftest.* &&
2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2043 exit $exit_status
81ecdfbb 2044' 0
6bf9431b 2045for ac_signal in 1 2 13 15; do
81ecdfbb 2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2047done
2048ac_signal=0
2049
2050# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2051rm -f -r conftest* confdefs.h
2052
2053$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2054
2055# Predefined preprocessor variables.
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_NAME "$PACKAGE_NAME"
2059_ACEOF
2060
6bf9431b
BE
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063_ACEOF
2064
6bf9431b
BE
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_VERSION "$PACKAGE_VERSION"
2067_ACEOF
2068
6bf9431b
BE
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_STRING "$PACKAGE_STRING"
2071_ACEOF
2072
6bf9431b
BE
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075_ACEOF
2076
81ecdfbb
RW
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_URL "$PACKAGE_URL"
2079_ACEOF
2080
6bf9431b
BE
2081
2082# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2083# Prefer an explicitly selected file to automatically selected ones.
2084ac_site_file1=NONE
2085ac_site_file2=NONE
2086if test -n "$CONFIG_SITE"; then
2087 ac_site_file1=$CONFIG_SITE
2088elif test "x$prefix" != xNONE; then
2089 ac_site_file1=$prefix/share/config.site
2090 ac_site_file2=$prefix/etc/config.site
2091else
2092 ac_site_file1=$ac_default_prefix/share/config.site
2093 ac_site_file2=$ac_default_prefix/etc/config.site
2094fi
2095for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096do
2097 test "x$ac_site_file" = xNONE && continue
6bf9431b 2098 if test -r "$ac_site_file"; then
81ecdfbb
RW
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2101 sed 's/^/| /' "$ac_site_file" >&5
2102 . "$ac_site_file"
2103 fi
2104done
2105
2106if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
81ecdfbb
RW
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2112 case $cache_file in
81ecdfbb
RW
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
6bf9431b
BE
2115 esac
2116 fi
2117else
81ecdfbb
RW
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2120 >$cache_file
2121fi
2122
2123# Check that the precious variables saved in the cache have kept the same
2124# value.
2125ac_cache_corrupted=false
81ecdfbb 2126for ac_var in $ac_precious_vars; do
6bf9431b
BE
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2131 case $ac_old_set,$ac_new_set in
2132 set,)
81ecdfbb
RW
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2135 ac_cache_corrupted=: ;;
2136 ,set)
81ecdfbb
RW
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2138$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2139 ac_cache_corrupted=: ;;
2140 ,);;
2141 *)
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2143 # differences in whitespace do not lead to failure.
2144 ac_old_val_w=`echo x $ac_old_val`
2145 ac_new_val_w=`echo x $ac_new_val`
2146 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2148$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149 ac_cache_corrupted=:
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153 eval $ac_var=\$ac_old_val
2154 fi
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2156$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2158$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2159 fi;;
2160 esac
2161 # Pass precious variables to config.status.
2162 if test "$ac_new_set" = set; then
2163 case $ac_new_val in
81ecdfbb 2164 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2165 *) ac_arg=$ac_var=$ac_new_val ;;
2166 esac
2167 case " $ac_configure_args " in
2168 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2169 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2170 esac
2171 fi
2172done
2173if $ac_cache_corrupted; then
81ecdfbb
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2177$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2179fi
81ecdfbb
RW
2180## -------------------- ##
2181## Main body of script. ##
2182## -------------------- ##
6bf9431b 2183
0ab6f085
AM
2184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
6bf9431b
BE
2190
2191
6bf9431b
BE
2192
2193
2194
2195
2196ac_aux_dir=
81ecdfbb
RW
2197for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2198 for ac_t in install-sh install.sh shtool; do
2199 if test -f "$ac_dir/$ac_t"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/$ac_t -c"
2202 break 2
2203 fi
2204 done
6bf9431b
BE
2205done
2206if test -z "$ac_aux_dir"; then
81ecdfbb 2207 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2208fi
81ecdfbb
RW
2209
2210# These three variables are undocumented and unsupported,
2211# and are intended to be withdrawn in a future Autoconf release.
2212# They can cause serious problems if a builder's source tree is in a directory
2213# whose full name contains unusual characters.
2214ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2215ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2216ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217
6bf9431b
BE
2218
2219# Make sure we can run config.sub.
81ecdfbb
RW
2220$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2221 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2222
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2224$as_echo_n "checking build system type... " >&6; }
2225if test "${ac_cv_build+set}" = set; then :
2226 $as_echo_n "(cached) " >&6
2227else
2228 ac_build_alias=$build_alias
2229test "x$ac_build_alias" = x &&
2230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2231test "x$ac_build_alias" = x &&
2232 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2233ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2234 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2235
2236fi
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2238$as_echo "$ac_cv_build" >&6; }
2239case $ac_cv_build in
2240*-*-*) ;;
2241*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2242esac
6bf9431b 2243build=$ac_cv_build
81ecdfbb
RW
2244ac_save_IFS=$IFS; IFS='-'
2245set x $ac_cv_build
2246shift
2247build_cpu=$1
2248build_vendor=$2
2249shift; shift
2250# Remember, the first character of IFS is used to create $*,
2251# except with old shells:
2252build_os=$*
2253IFS=$ac_save_IFS
2254case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2255
2256
81ecdfbb
RW
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2258$as_echo_n "checking host system type... " >&6; }
2259if test "${ac_cv_host+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
6bf9431b 2261else
81ecdfbb
RW
2262 if test "x$host_alias" = x; then
2263 ac_cv_host=$ac_cv_build
2264else
2265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2266 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2267fi
6bf9431b
BE
2268
2269fi
81ecdfbb
RW
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2271$as_echo "$ac_cv_host" >&6; }
2272case $ac_cv_host in
2273*-*-*) ;;
2274*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2275esac
6bf9431b 2276host=$ac_cv_host
81ecdfbb
RW
2277ac_save_IFS=$IFS; IFS='-'
2278set x $ac_cv_host
2279shift
2280host_cpu=$1
2281host_vendor=$2
2282shift; shift
2283# Remember, the first character of IFS is used to create $*,
2284# except with old shells:
2285host_os=$*
2286IFS=$ac_save_IFS
2287case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2288
2289
81ecdfbb
RW
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2291$as_echo_n "checking target system type... " >&6; }
2292if test "${ac_cv_target+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294else
2295 if test "x$target_alias" = x; then
2296 ac_cv_target=$ac_cv_host
6bf9431b 2297else
81ecdfbb
RW
2298 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2300fi
6bf9431b
BE
2301
2302fi
81ecdfbb
RW
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2304$as_echo "$ac_cv_target" >&6; }
2305case $ac_cv_target in
2306*-*-*) ;;
2307*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2308esac
6bf9431b 2309target=$ac_cv_target
81ecdfbb
RW
2310ac_save_IFS=$IFS; IFS='-'
2311set x $ac_cv_target
2312shift
2313target_cpu=$1
2314target_vendor=$2
2315shift; shift
2316# Remember, the first character of IFS is used to create $*,
2317# except with old shells:
2318target_os=$*
2319IFS=$ac_save_IFS
2320case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2321
2322
2323# The aliases save the names the user supplied, while $host etc.
2324# will get canonicalized.
2325test -n "$target_alias" &&
2326 test "$program_prefix$program_suffix$program_transform_name" = \
2327 NONENONEs,x,x, &&
2328 program_prefix=${target_alias}-
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
2339if test "${ac_cv_prog_CC+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
6bf9431b
BE
2341else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2354 break 2
2355 fi
2356done
81ecdfbb
RW
2357 done
2358IFS=$as_save_IFS
6bf9431b
BE
2359
2360fi
2361fi
2362CC=$ac_cv_prog_CC
2363if test -n "$CC"; then
81ecdfbb
RW
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2365$as_echo "$CC" >&6; }
6bf9431b 2366else
81ecdfbb
RW
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368$as_echo "no" >&6; }
6bf9431b
BE
2369fi
2370
81ecdfbb 2371
6bf9431b
BE
2372fi
2373if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376set dummy gcc; ac_word=$2
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378$as_echo_n "checking for $ac_word... " >&6; }
2379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
6bf9431b
BE
2381else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2392 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2394 break 2
2395 fi
2396done
81ecdfbb
RW
2397 done
2398IFS=$as_save_IFS
6bf9431b
BE
2399
2400fi
2401fi
2402ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2405$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2406else
81ecdfbb
RW
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408$as_echo "no" >&6; }
6bf9431b
BE
2409fi
2410
81ecdfbb
RW
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418ac_tool_warned=yes ;;
2419esac
2420 CC=$ac_ct_CC
2421 fi
6bf9431b
BE
2422else
2423 CC="$ac_cv_prog_CC"
2424fi
2425
2426if test -z "$CC"; then
81ecdfbb
RW
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2429set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if test "${ac_cv_prog_CC+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
6bf9431b
BE
2434else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2447 break 2
2448 fi
2449done
81ecdfbb
RW
2450 done
2451IFS=$as_save_IFS
6bf9431b
BE
2452
2453fi
2454fi
2455CC=$ac_cv_prog_CC
2456if test -n "$CC"; then
81ecdfbb
RW
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2458$as_echo "$CC" >&6; }
0ab6f085 2459else
81ecdfbb
RW
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461$as_echo "no" >&6; }
0ab6f085
AM
2462fi
2463
0ab6f085 2464
81ecdfbb 2465 fi
6bf9431b
BE
2466fi
2467if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469set dummy cc; ac_word=$2
81ecdfbb
RW
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if test "${ac_cv_prog_CC+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
6bf9431b
BE
2474else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478 ac_prog_rejected=no
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2489 fi
2490 ac_cv_prog_CC="cc"
81ecdfbb 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2492 break 2
2493 fi
2494done
81ecdfbb
RW
2495 done
2496IFS=$as_save_IFS
6bf9431b
BE
2497
2498if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2508 fi
2509fi
2510fi
2511fi
2512CC=$ac_cv_prog_CC
2513if test -n "$CC"; then
81ecdfbb
RW
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515$as_echo "$CC" >&6; }
6bf9431b 2516else
81ecdfbb
RW
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
6bf9431b
BE
2519fi
2520
81ecdfbb 2521
6bf9431b
BE
2522fi
2523if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
81ecdfbb 2525 for ac_prog in cl.exe
6bf9431b
BE
2526 do
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if test "${ac_cv_prog_CC+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
6bf9431b
BE
2533else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2546 break 2
2547 fi
2548done
81ecdfbb
RW
2549 done
2550IFS=$as_save_IFS
6bf9431b
BE
2551
2552fi
2553fi
2554CC=$ac_cv_prog_CC
2555if test -n "$CC"; then
81ecdfbb
RW
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557$as_echo "$CC" >&6; }
6bf9431b 2558else
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
6bf9431b
BE
2561fi
2562
81ecdfbb 2563
6bf9431b
BE
2564 test -n "$CC" && break
2565 done
2566fi
2567if test -z "$CC"; then
2568 ac_ct_CC=$CC
81ecdfbb 2569 for ac_prog in cl.exe
6bf9431b
BE
2570do
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
6bf9431b
BE
2577else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2588 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2590 break 2
2591 fi
2592done
81ecdfbb
RW
2593 done
2594IFS=$as_save_IFS
6bf9431b
BE
2595
2596fi
2597fi
2598ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2602else
81ecdfbb
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
6bf9431b
BE
2605fi
2606
81ecdfbb 2607
6bf9431b
BE
2608 test -n "$ac_ct_CC" && break
2609done
2610
81ecdfbb
RW
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615yes:)
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618ac_tool_warned=yes ;;
2619esac
2620 CC=$ac_ct_CC
2621 fi
6bf9431b
BE
2622fi
2623
2624fi
2625
2626
81ecdfbb
RW
2627test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error "no acceptable C compiler found in \$PATH
2630See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2631
2632# Provide some information about the compiler.
81ecdfbb
RW
2633$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2634set X $ac_compile
2635ac_compiler=$2
2636for ac_option in --version -v -V -qversion; do
2637 { { ac_try="$ac_compiler $ac_option >&5"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643$as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2645 ac_status=$?
81ecdfbb
RW
2646 if test -s conftest.err; then
2647 sed '10a\
2648... rest of stderr output deleted ...
2649 10q' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 rm -f conftest.er1 conftest.err
2652 fi
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }
2655done
6bf9431b 2656
81ecdfbb 2657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2658/* end confdefs.h. */
2659
2660int
2661main ()
2662{
2663
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668ac_clean_files_save=$ac_clean_files
81ecdfbb 2669ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2670# Try to create an executable without -o first, disregard a.out.
2671# It will help us diagnose broken compilers, and finding out an intuition
2672# of exeext.
81ecdfbb
RW
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2674$as_echo_n "checking for C compiler default output file name... " >&6; }
2675ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2676
2677# The possible output files:
2678ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2679
2680ac_rmfiles=
2681for ac_file in $ac_files
2682do
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2685 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2686 esac
2687done
2688rm -f $ac_rmfiles
2689
2690if { { ac_try="$ac_link_default"
2691case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694esac
2695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696$as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_link_default") 2>&5
2698 ac_status=$?
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }; then :
2701 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2702# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2703# in a Makefile. We should not override ac_cv_exeext if it was cached,
2704# so that the user can short-circuit this test for compilers unknown to
2705# Autoconf.
2706for ac_file in $ac_files ''
6bf9431b
BE
2707do
2708 test -f "$ac_file" || continue
2709 case $ac_file in
81ecdfbb 2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2711 ;;
2712 [ab].out )
2713 # We found the default executable, but exeext='' is most
2714 # certainly right.
2715 break;;
2716 *.* )
81ecdfbb
RW
2717 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2718 then :; else
2719 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720 fi
2721 # We set ac_cv_exeext here because the later test for it is not
2722 # safe: cross compilers may not add the suffix if given an `-o'
2723 # argument, so we may need to know it at that point already.
2724 # Even if this section looks crufty: it has the advantage of
2725 # actually working.
6bf9431b
BE
2726 break;;
2727 * )
2728 break;;
2729 esac
2730done
81ecdfbb
RW
2731test "$ac_cv_exeext" = no && ac_cv_exeext=
2732
6bf9431b 2733else
81ecdfbb
RW
2734 ac_file=''
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2737$as_echo "$ac_file" >&6; }
2738if test -z "$ac_file"; then :
2739 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
81ecdfbb
RW
2742{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744{ as_fn_set_status 77
2745as_fn_error "C compiler cannot create executables
2746See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2747fi
6bf9431b 2748ac_exeext=$ac_cv_exeext
6bf9431b 2749
81ecdfbb 2750# Check that the compiler produces executables we can run. If not, either
6bf9431b 2751# the compiler is broken, or we cross compile.
81ecdfbb
RW
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2754# If not cross compiling, check that we can run a simple program.
2755if test "$cross_compiling" != yes; then
2756 if { ac_try='./$ac_file'
81ecdfbb
RW
2757 { { case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762$as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_try") 2>&5
6bf9431b 2764 ac_status=$?
81ecdfbb
RW
2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2766 test $ac_status = 0; }; }; then
6bf9431b
BE
2767 cross_compiling=no
2768 else
2769 if test "$cross_compiling" = maybe; then
2770 cross_compiling=yes
2771 else
81ecdfbb
RW
2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774as_fn_error "cannot run C compiled programs.
6bf9431b 2775If you meant to cross compile, use \`--host'.
81ecdfbb 2776See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2777 fi
2778 fi
2779fi
81ecdfbb
RW
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781$as_echo "yes" >&6; }
6bf9431b 2782
81ecdfbb 2783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2784ac_clean_files=$ac_clean_files_save
81ecdfbb 2785# Check that the compiler produces executables we can run. If not, either
6bf9431b 2786# the compiler is broken, or we cross compile.
81ecdfbb
RW
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788$as_echo_n "checking whether we are cross compiling... " >&6; }
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2790$as_echo "$cross_compiling" >&6; }
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2793$as_echo_n "checking for suffix of executables... " >&6; }
2794if { { ac_try="$ac_link"
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link") 2>&5
6bf9431b 2802 ac_status=$?
81ecdfbb
RW
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
6bf9431b
BE
2805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2806# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2807# work properly (i.e., refer to `conftest.exe'), while it won't with
2808# `rm'.
2809for ac_file in conftest.exe conftest conftest.*; do
2810 test -f "$ac_file" || continue
2811 case $ac_file in
81ecdfbb 2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2814 break;;
2815 * ) break;;
2816 esac
2817done
2818else
81ecdfbb
RW
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821as_fn_error "cannot compute suffix of executables: cannot compile and link
2822See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2823fi
6bf9431b 2824rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2826$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2827
2828rm -f conftest.$ac_ext
2829EXEEXT=$ac_cv_exeext
2830ac_exeext=$EXEEXT
81ecdfbb
RW
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2832$as_echo_n "checking for suffix of object files... " >&6; }
2833if test "${ac_cv_objext+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
6bf9431b 2835else
81ecdfbb 2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2837/* end confdefs.h. */
2838
2839int
2840main ()
2841{
2842
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847rm -f conftest.o conftest.obj
81ecdfbb
RW
2848if { { ac_try="$ac_compile"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compile") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 for ac_file in conftest.o conftest.obj conftest.*; do
2860 test -f "$ac_file" || continue;
6bf9431b 2861 case $ac_file in
81ecdfbb 2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2864 break;;
2865 esac
2866done
2867else
81ecdfbb 2868 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
81ecdfbb
RW
2871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error "cannot compute suffix of object files: cannot compile
2874See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2875fi
6bf9431b
BE
2876rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877fi
81ecdfbb
RW
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
2880OBJEXT=$ac_cv_objext
2881ac_objext=$OBJEXT
81ecdfbb
RW
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2884if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
6bf9431b 2886else
81ecdfbb 2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2888/* end confdefs.h. */
2889
2890int
2891main ()
2892{
2893#ifndef __GNUC__
2894 choke me
2895#endif
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
81ecdfbb 2901if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2902 ac_compiler_gnu=yes
2903else
81ecdfbb 2904 ac_compiler_gnu=no
6bf9431b 2905fi
81ecdfbb 2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2907ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909fi
81ecdfbb
RW
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912if test $ac_compiler_gnu = yes; then
2913 GCC=yes
2914else
2915 GCC=
2916fi
6bf9431b
BE
2917ac_test_CFLAGS=${CFLAGS+set}
2918ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2920$as_echo_n "checking whether $CC accepts -g... " >&6; }
2921if test "${ac_cv_prog_cc_g+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923else
2924 ac_save_c_werror_flag=$ac_c_werror_flag
2925 ac_c_werror_flag=yes
2926 ac_cv_prog_cc_g=no
2927 CFLAGS="-g"
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
81ecdfbb 2939if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2940 ac_cv_prog_cc_g=yes
2941else
81ecdfbb
RW
2942 CFLAGS=""
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945
2946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955
2956else
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2958 CFLAGS="-g"
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
6bf9431b 2965
81ecdfbb
RW
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_cv_prog_cc_g=yes
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2974fi
81ecdfbb 2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2976fi
81ecdfbb
RW
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
2982if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996fi
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2999if test "${ac_cv_prog_cc_c89+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
6bf9431b 3001else
81ecdfbb 3002 ac_cv_prog_cc_c89=no
6bf9431b 3003ac_save_CC=$CC
81ecdfbb 3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3005/* end confdefs.h. */
3006#include <stdarg.h>
3007#include <stdio.h>
3008#include <sys/types.h>
3009#include <sys/stat.h>
3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014 char **p;
3015 int i;
3016{
3017 return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027}
3028
3029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3032 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3035 that's true only with -std. */
6bf9431b
BE
3036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037
81ecdfbb
RW
3038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040#define FOO(x) 'x'
3041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
6bf9431b
BE
3043int test (int i, double x);
3044struct s1 {int (*f) (int a);};
3045struct s2 {int (*f) (double a);};
3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047int argc;
3048char **argv;
3049int
3050main ()
3051{
3052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055}
3056_ACEOF
81ecdfbb
RW
3057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3059do
3060 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3063fi
81ecdfbb
RW
3064rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3066done
81ecdfbb 3067rm -f conftest.$ac_ext
6bf9431b
BE
3068CC=$ac_save_CC
3069
3070fi
81ecdfbb
RW
3071# AC_CACHE_VAL
3072case "x$ac_cv_prog_cc_c89" in
3073 x)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075$as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078$as_echo "unsupported" >&6; } ;;
6bf9431b 3079 *)
81ecdfbb
RW
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3083esac
81ecdfbb 3084if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3085
0ab6f085
AM
3086fi
3087
6bf9431b
BE
3088ac_ext=c
3089ac_cpp='$CPP $CPPFLAGS'
3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
3094
81ecdfbb
RW
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3096$as_echo_n "checking for library containing strerror... " >&6; }
3097if test "${ac_cv_search_strerror+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
6bf9431b
BE
3099else
3100 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3102/* end confdefs.h. */
3103
81ecdfbb
RW
3104/* Override any GCC internal prototype to avoid an error.
3105 Use char because int might match the return type of a GCC
3106 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3107#ifdef __cplusplus
3108extern "C"
3109#endif
6bf9431b
BE
3110char strerror ();
3111int
3112main ()
3113{
81ecdfbb 3114return strerror ();
6bf9431b
BE
3115 ;
3116 return 0;
3117}
3118_ACEOF
81ecdfbb
RW
3119for ac_lib in '' cposix; do
3120 if test -z "$ac_lib"; then
3121 ac_res="none required"
3122 else
3123 ac_res=-l$ac_lib
0ab6f085 3124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3125 fi
3126 if ac_fn_c_try_link "$LINENO"; then :
3127 ac_cv_search_strerror=$ac_res
3128fi
3129rm -f core conftest.err conftest.$ac_objext \
3130 conftest$ac_exeext
3131 if test "${ac_cv_search_strerror+set}" = set; then :
3132 break
3133fi
3134done
3135if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3136
1b9750d6 3137else
81ecdfbb 3138 ac_cv_search_strerror=no
6bf9431b 3139fi
81ecdfbb 3140rm conftest.$ac_ext
6bf9431b
BE
3141LIBS=$ac_func_search_save_LIBS
3142fi
81ecdfbb
RW
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3144$as_echo "$ac_cv_search_strerror" >&6; }
3145ac_res=$ac_cv_search_strerror
3146if test "$ac_res" != no; then :
3147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3148
3149fi
3150
3151
81ecdfbb
RW
3152am__api_version='1.11'
3153
6bf9431b
BE
3154# Find a good install program. We prefer a C program (faster),
3155# so one script is as good as another. But avoid the broken or
3156# incompatible versions:
3157# SysV /etc/install, /usr/sbin/install
3158# SunOS /usr/etc/install
3159# IRIX /sbin/install
3160# AIX /bin/install
3161# AmigaOS /C/install, which installs bootblocks on floppy discs
3162# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3163# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3164# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3165# OS/2's system install, which has a completely different semantic
3166# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3167# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3169$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3170if test -z "$INSTALL"; then
81ecdfbb
RW
3171if test "${ac_cv_path_install+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
6bf9431b
BE
3173else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3179 # Account for people who put trailing slashes in PATH elements.
3180case $as_dir/ in #((
3181 ./ | .// | /[cC]/* | \
6bf9431b 3182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3183 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3184 /usr/ucb/* ) ;;
3185 *)
3186 # OSF1 and SCO ODT 3.0 have their own names for install.
3187 # Don't use installbsd from OSF since it installs stuff as root
3188 # by default.
3189 for ac_prog in ginstall scoinst install; do
3190 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3191 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3192 if test $ac_prog = install &&
3193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3194 # AIX install. It has an incompatible calling convention.
3195 :
3196 elif test $ac_prog = install &&
3197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3198 # program-specific install script used by HP pwplus--don't use.
3199 :
252b5132 3200 else
58c85be7
RW
3201 rm -rf conftest.one conftest.two conftest.dir
3202 echo one > conftest.one
3203 echo two > conftest.two
3204 mkdir conftest.dir
3205 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3206 test -s conftest.one && test -s conftest.two &&
3207 test -s conftest.dir/conftest.one &&
3208 test -s conftest.dir/conftest.two
3209 then
3210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3211 break 3
3212 fi
252b5132
RH
3213 fi
3214 fi
3215 done
6bf9431b
BE
3216 done
3217 ;;
3218esac
81ecdfbb
RW
3219
3220 done
3221IFS=$as_save_IFS
6bf9431b 3222
58c85be7 3223rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3224
3225fi
3226 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3227 INSTALL=$ac_cv_path_install
252b5132 3228 else
58c85be7
RW
3229 # As a last resort, use the slow shell script. Don't cache a
3230 # value for INSTALL within a source directory, because that will
252b5132 3231 # break other packages using the cache if that directory is
58c85be7 3232 # removed, or if the value is a relative name.
6bf9431b 3233 INSTALL=$ac_install_sh
252b5132
RH
3234 fi
3235fi
81ecdfbb
RW
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3237$as_echo "$INSTALL" >&6; }
252b5132
RH
3238
3239# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3240# It thinks the first close brace ends the variable substitution.
3241test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3242
6bf9431b 3243test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3244
3245test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3246
81ecdfbb
RW
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3248$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3249# Just in case
3250sleep 1
6bf9431b 3251echo timestamp > conftest.file
81ecdfbb
RW
3252# Reject unsafe characters in $srcdir or the absolute working directory
3253# name. Accept space and tab only in the latter.
3254am_lf='
3255'
3256case `pwd` in
3257 *[\\\"\#\$\&\'\`$am_lf]*)
3258 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3259esac
3260case $srcdir in
3261 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3262 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3263esac
3264
252b5132
RH
3265# Do `set' in a subshell so we don't clobber the current shell's
3266# arguments. Must try -L first in case configure is actually a
3267# symlink; some systems play weird games with the mod time of symlinks
3268# (eg FreeBSD returns the mod time of the symlink's containing
3269# directory).
3270if (
81ecdfbb 3271 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3272 if test "$*" = "X"; then
3273 # -L didn't work.
81ecdfbb 3274 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3275 fi
6bf9431b
BE
3276 rm -f conftest.file
3277 if test "$*" != "X $srcdir/configure conftest.file" \
3278 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3279
3280 # If neither matched, then we have a broken ls. This can happen
3281 # if, for instance, CONFIG_SHELL is bash and it inherits a
3282 # broken ls alias from the environment. This has actually
3283 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3284 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3285alias in your environment" "$LINENO" 5
252b5132
RH
3286 fi
3287
6bf9431b 3288 test "$2" = conftest.file
252b5132
RH
3289 )
3290then
3291 # Ok.
3292 :
3293else
81ecdfbb
RW
3294 as_fn_error "newly created file is older than distributed files!
3295Check your system clock" "$LINENO" 5
252b5132 3296fi
81ecdfbb
RW
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
252b5132 3299test "$program_prefix" != NONE &&
81ecdfbb 3300 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3301# Use a double $ so make ignores it.
3302test "$program_suffix" != NONE &&
81ecdfbb
RW
3303 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3304# Double any \ or $.
6bf9431b 3305# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3306ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3307program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3308
3309# expand $ac_aux_dir to an absolute path
3310am_aux_dir=`cd $ac_aux_dir && pwd`
3311
81ecdfbb
RW
3312if test x"${MISSING+set}" != xset; then
3313 case $am_aux_dir in
3314 *\ * | *\ *)
3315 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3316 *)
3317 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3318 esac
3319fi
6bf9431b
BE
3320# Use eval to expand $SHELL
3321if eval "$MISSING --run true"; then
3322 am_missing_run="$MISSING --run "
3323else
3324 am_missing_run=
81ecdfbb
RW
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3326$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3327fi
252b5132 3328
81ecdfbb
RW
3329if test x"${install_sh}" != xset; then
3330 case $am_aux_dir in
3331 *\ * | *\ *)
3332 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3333 *)
3334 install_sh="\${SHELL} $am_aux_dir/install-sh"
3335 esac
3336fi
3337
3338# Installed binaries are usually stripped using `strip' when the user
3339# run `make install-strip'. However `strip' might not be the right
3340# tool to use in cross-compilation environments, therefore Automake
3341# will honor the `STRIP' environment variable to overrule this program.
3342if test "$cross_compiling" != no; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3345set dummy ${ac_tool_prefix}strip; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if test "${ac_cv_prog_STRIP+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
6bf9431b 3350else
81ecdfbb
RW
3351 if test -n "$STRIP"; then
3352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3363 break 2
3364 fi
3365done
81ecdfbb
RW
3366 done
3367IFS=$as_save_IFS
6bf9431b
BE
3368
3369fi
3370fi
81ecdfbb
RW
3371STRIP=$ac_cv_prog_STRIP
3372if test -n "$STRIP"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3374$as_echo "$STRIP" >&6; }
6bf9431b 3375else
81ecdfbb
RW
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
6bf9431b
BE
3378fi
3379
252b5132 3380
81ecdfbb
RW
3381fi
3382if test -z "$ac_cv_prog_STRIP"; then
3383 ac_ct_STRIP=$STRIP
3384 # Extract the first word of "strip", so it can be a program name with args.
3385set dummy strip; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
3388if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
252b5132 3390else
81ecdfbb
RW
3391 if test -n "$ac_ct_STRIP"; then
3392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3393else
81ecdfbb
RW
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_STRIP="strip"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406 done
3407IFS=$as_save_IFS
3408
0ab6f085 3409fi
252b5132 3410fi
81ecdfbb
RW
3411ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3412if test -n "$ac_ct_STRIP"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3414$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3415else
81ecdfbb
RW
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
252b5132
RH
3418fi
3419
81ecdfbb
RW
3420 if test "x$ac_ct_STRIP" = x; then
3421 STRIP=":"
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429 STRIP=$ac_ct_STRIP
3430 fi
3431else
3432 STRIP="$ac_cv_prog_STRIP"
3433fi
3434
3435fi
3436INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3439$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3440if test -z "$MKDIR_P"; then
3441 if test "${ac_cv_path_mkdir+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_prog in mkdir gmkdir; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3452 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3453 'mkdir (GNU coreutils) '* | \
3454 'mkdir (coreutils) '* | \
3455 'mkdir (fileutils) '4.1*)
3456 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3457 break 3;;
3458 esac
3459 done
3460 done
3461 done
3462IFS=$as_save_IFS
3463
3464fi
3465
3466 if test "${ac_cv_path_mkdir+set}" = set; then
3467 MKDIR_P="$ac_cv_path_mkdir -p"
3468 else
3469 # As a last resort, use the slow shell script. Don't cache a
3470 # value for MKDIR_P within a source directory, because that will
3471 # break other packages using the cache if that directory is
3472 # removed, or if the value is a relative name.
3473 test -d ./--version && rmdir ./--version
3474 MKDIR_P="$ac_install_sh -d"
3475 fi
3476fi
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3478$as_echo "$MKDIR_P" >&6; }
3479
3480mkdir_p="$MKDIR_P"
3481case $mkdir_p in
3482 [\\/$]* | ?:[\\/]*) ;;
3483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3484esac
3485
3486for ac_prog in gawk mawk nawk awk
3487do
3488 # Extract the first word of "$ac_prog", so it can be a program name with args.
3489set dummy $ac_prog; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if test "${ac_cv_prog_AWK+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 if test -n "$AWK"; then
3496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_AWK="$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509done
3510 done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515AWK=$ac_cv_prog_AWK
3516if test -n "$AWK"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3518$as_echo "$AWK" >&6; }
3519else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525 test -n "$AWK" && break
3526done
3527
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3529$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3530set x ${MAKE-make}
3531ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3532if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3533 $as_echo_n "(cached) " >&6
3534else
3535 cat >conftest.make <<\_ACEOF
3536SHELL = /bin/sh
3537all:
3538 @echo '@@@%%%=$(MAKE)=@@@%%%'
3539_ACEOF
3540# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3541case `${MAKE-make} -f conftest.make 2>/dev/null` in
3542 *@@@%%%=?*=@@@%%%*)
3543 eval ac_cv_prog_make_${ac_make}_set=yes;;
3544 *)
3545 eval ac_cv_prog_make_${ac_make}_set=no;;
3546esac
3547rm -f conftest.make
3548fi
3549if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551$as_echo "yes" >&6; }
3552 SET_MAKE=
3553else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556 SET_MAKE="MAKE=${MAKE-make}"
3557fi
3558
3559rm -rf .tst 2>/dev/null
6bf9431b
BE
3560mkdir .tst 2>/dev/null
3561if test -d .tst; then
3562 am__leading_dot=.
3563else
3564 am__leading_dot=_
3565fi
3566rmdir .tst 2>/dev/null
3567
3568DEPDIR="${am__leading_dot}deps"
3569
81ecdfbb 3570ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3571
3572
3573am_make=${MAKE-make}
3574cat > confinc << 'END'
3575am__doit:
81ecdfbb 3576 @echo this is the am__doit target
6bf9431b
BE
3577.PHONY: am__doit
3578END
3579# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3581$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3582am__include="#"
3583am__quote=
3584_am_result=none
3585# First try GNU make style include.
3586echo "include confinc" > confmf
81ecdfbb
RW
3587# Ignore all kinds of additional output from `make'.
3588case `$am_make -s -f confmf 2> /dev/null` in #(
3589*the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594esac
6bf9431b
BE
3595# Now try BSD make style include.
3596if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
81ecdfbb
RW
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
6bf9431b
BE
3605fi
3606
252b5132 3607
81ecdfbb
RW
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3609$as_echo "$_am_result" >&6; }
6bf9431b 3610rm -f confinc confmf
252b5132 3611
81ecdfbb
RW
3612# Check whether --enable-dependency-tracking was given.
3613if test "${enable_dependency_tracking+set}" = set; then :
3614 enableval=$enable_dependency_tracking;
3615fi
252b5132 3616
6bf9431b
BE
3617if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
252b5132 3620fi
81ecdfbb 3621 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627fi
3628
3629
81ecdfbb
RW
3630if test "`cd $srcdir && pwd`" != "`pwd`"; then
3631 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3632 # is not polluted with repeated "-I."
3633 am__isrc=' -I$(srcdir)'
3634 # test to see if srcdir already configured
3635 if test -f $srcdir/config.status; then
3636 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3637 fi
6bf9431b
BE
3638fi
3639
3640# test whether we have cygpath
3641if test -z "$CYGPATH_W"; then
3642 if (cygpath --version) >/dev/null 2>/dev/null; then
3643 CYGPATH_W='cygpath -w'
3644 else
3645 CYGPATH_W=echo
3646 fi
3647fi
3648
3649
3650# Define the identity of the package.
2e98a7bd
AM
3651 PACKAGE='gprof'
3652 VERSION='2.24.51'
6bf9431b
BE
3653
3654
3655cat >>confdefs.h <<_ACEOF
252b5132 3656#define PACKAGE "$PACKAGE"
6bf9431b
BE
3657_ACEOF
3658
252b5132 3659
6bf9431b 3660cat >>confdefs.h <<_ACEOF
252b5132 3661#define VERSION "$VERSION"
6bf9431b
BE
3662_ACEOF
3663
3664# Some tools Automake needs.
3665
3666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3667
3668
3669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3670
3671
3672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3673
3674
3675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3676
3677
3678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3679
6bf9431b
BE
3680# We need awk for the "check" target. The system "awk" is bad on
3681# some platforms.
df76639a
AM
3682# Always define AMTAR for backward compatibility.
3683
3684AMTAR=${AMTAR-"${am_missing_run}tar"}
3685
3686am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3687
3688
6bf9431b
BE
3689
3690
3691depcc="$CC" am_compiler_list=
3692
81ecdfbb
RW
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694$as_echo_n "checking dependency style of $depcc... " >&6; }
3695if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
6bf9431b
BE
3697else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3703 # in D'.
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
81ecdfbb
RW
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
6bf9431b
BE
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
81ecdfbb
RW
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
6bf9431b 3749 case $depmode in
81ecdfbb
RW
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
6bf9431b
BE
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
81ecdfbb
RW
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
6bf9431b
BE
3770 none) break ;;
3771 esac
6bf9431b 3772 if depmode=$depmode \
81ecdfbb 3773 source=sub/conftest.c object=$am__obj \
6bf9431b 3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3776 >/dev/null 2>conftest.err &&
81ecdfbb 3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
252b5132 3798else
6bf9431b 3799 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3800fi
3801
252b5132 3802fi
81ecdfbb
RW
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3805CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
81ecdfbb 3807 if
6bf9431b
BE
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
252b5132 3812else
6bf9431b
BE
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
252b5132
RH
3815fi
3816
3817
3818
6bf9431b 3819
81ecdfbb 3820ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3821
3822
ce2cded5
L
3823ac_ext=c
3824ac_cpp='$CPP $CPPFLAGS'
3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832$as_echo_n "checking for $ac_word... " >&6; }
3833if test "${ac_cv_prog_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
1b9750d6 3835else
ce2cded5
L
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3838else
ce2cded5
L
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3848 break 2
3849 fi
3850done
81ecdfbb
RW
3851 done
3852IFS=$as_save_IFS
0ab6f085 3853
ce2cded5
L
3854fi
3855fi
3856CC=$ac_cv_prog_CC
3857if test -n "$CC"; then
81ecdfbb
RW
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859$as_echo "$CC" >&6; }
0ab6f085 3860else
81ecdfbb
RW
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862$as_echo "no" >&6; }
ce2cded5 3863fi
d7040cdb 3864
81ecdfbb 3865
ce2cded5
L
3866fi
3867if test -z "$ac_cv_prog_CC"; then
3868 ac_ct_CC=$CC
3869 # Extract the first word of "gcc", so it can be a program name with args.
3870set dummy gcc; ac_word=$2
81ecdfbb
RW
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
1b9750d6 3875else
ce2cded5
L
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3878else
d7040cdb 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3880for as_dir in $PATH
d7040cdb
SE
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3886 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3888 break 2
0ab6f085 3889 fi
ce2cded5 3890done
81ecdfbb
RW
3891 done
3892IFS=$as_save_IFS
d7040cdb 3893
ce2cded5
L
3894fi
3895fi
3896ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3900else
81ecdfbb
RW
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
1b9750d6 3903fi
d7040cdb 3904
81ecdfbb
RW
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909yes:)
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912ac_tool_warned=yes ;;
3913esac
3914 CC=$ac_ct_CC
3915 fi
ce2cded5
L
3916else
3917 CC="$ac_cv_prog_CC"
3918fi
d7040cdb 3919
ce2cded5 3920if test -z "$CC"; then
81ecdfbb
RW
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3923set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if test "${ac_cv_prog_CC+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
d7040cdb 3928else
ce2cded5
L
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3931else
ce2cded5
L
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3939 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3941 break 2
3942 fi
3943done
81ecdfbb
RW
3944 done
3945IFS=$as_save_IFS
d7040cdb 3946
252b5132
RH
3947fi
3948fi
ce2cded5
L
3949CC=$ac_cv_prog_CC
3950if test -n "$CC"; then
81ecdfbb
RW
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952$as_echo "$CC" >&6; }
ce2cded5 3953else
81ecdfbb
RW
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
d7040cdb 3956fi
6be7c12c 3957
ce2cded5 3958
81ecdfbb 3959 fi
ce2cded5
L
3960fi
3961if test -z "$CC"; then
3962 # Extract the first word of "cc", so it can be a program name with args.
3963set dummy cc; ac_word=$2
81ecdfbb
RW
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
ce2cded5
L
3968else
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3971else
3972 ac_prog_rejected=no
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
3980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3981 ac_prog_rejected=yes
3982 continue
3983 fi
3984 ac_cv_prog_CC="cc"
81ecdfbb 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3986 break 2
3987 fi
3988done
81ecdfbb
RW
3989 done
3990IFS=$as_save_IFS
ce2cded5
L
3991
3992if test $ac_prog_rejected = yes; then
3993 # We found a bogon in the path, so make sure we never use it.
3994 set dummy $ac_cv_prog_CC
3995 shift
3996 if test $# != 0; then
3997 # We chose a different compiler from the bogus one.
3998 # However, it has the same basename, so the bogon will be chosen
3999 # first if we set CC to just the basename; use the full file name.
4000 shift
4001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4002 fi
4003fi
4004fi
4005fi
4006CC=$ac_cv_prog_CC
4007if test -n "$CC"; then
81ecdfbb
RW
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009$as_echo "$CC" >&6; }
ce2cded5 4010else
81ecdfbb
RW
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
ce2cded5
L
4013fi
4014
81ecdfbb 4015
ce2cded5
L
4016fi
4017if test -z "$CC"; then
4018 if test -n "$ac_tool_prefix"; then
81ecdfbb 4019 for ac_prog in cl.exe
ce2cded5
L
4020 do
4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
4025if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
ce2cded5
L
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4040 break 2
4041 fi
4042done
81ecdfbb
RW
4043 done
4044IFS=$as_save_IFS
ce2cded5
L
4045
4046fi
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
81ecdfbb
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051$as_echo "$CC" >&6; }
ce2cded5 4052else
81ecdfbb
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
ce2cded5
L
4055fi
4056
81ecdfbb 4057
ce2cded5 4058 test -n "$CC" && break
d7040cdb
SE
4059 done
4060fi
ce2cded5
L
4061if test -z "$CC"; then
4062 ac_ct_CC=$CC
81ecdfbb 4063 for ac_prog in cl.exe
d7040cdb
SE
4064do
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
d7040cdb 4071else
ce2cded5
L
4072 if test -n "$ac_ct_CC"; then
4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4082 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4084 break 2
ac48eca1 4085 fi
d7040cdb 4086done
81ecdfbb
RW
4087 done
4088IFS=$as_save_IFS
ac48eca1 4089
d7040cdb
SE
4090fi
4091fi
ce2cded5
L
4092ac_ct_CC=$ac_cv_prog_ac_ct_CC
4093if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4095$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4096else
81ecdfbb
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
d7040cdb 4099fi
ac48eca1 4100
81ecdfbb 4101
ce2cded5 4102 test -n "$ac_ct_CC" && break
d7040cdb 4103done
ac48eca1 4104
81ecdfbb
RW
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109yes:)
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112ac_tool_warned=yes ;;
4113esac
4114 CC=$ac_ct_CC
4115 fi
d7040cdb 4116fi
ac48eca1 4117
d7040cdb 4118fi
ac48eca1 4119
ac48eca1 4120
81ecdfbb
RW
4121test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123as_fn_error "no acceptable C compiler found in \$PATH
4124See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4125
ce2cded5 4126# Provide some information about the compiler.
81ecdfbb
RW
4127$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4128set X $ac_compile
4129ac_compiler=$2
4130for ac_option in --version -v -V -qversion; do
4131 { { ac_try="$ac_compiler $ac_option >&5"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137$as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4139 ac_status=$?
81ecdfbb
RW
4140 if test -s conftest.err; then
4141 sed '10a\
4142... rest of stderr output deleted ...
4143 10q' conftest.err >conftest.er1
4144 cat conftest.er1 >&5
4145 rm -f conftest.er1 conftest.err
4146 fi
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149done
ac48eca1 4150
81ecdfbb
RW
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4152$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4153if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
d7040cdb 4155else
81ecdfbb 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4157/* end confdefs.h. */
ac48eca1 4158
ce2cded5
L
4159int
4160main ()
4161{
4162#ifndef __GNUC__
4163 choke me
4164#endif
4165
4166 ;
4167 return 0;
4168}
4169_ACEOF
81ecdfbb 4170if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4171 ac_compiler_gnu=yes
d7040cdb 4172else
81ecdfbb 4173 ac_compiler_gnu=no
d7040cdb 4174fi
81ecdfbb 4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4176ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4177
ce2cded5 4178fi
81ecdfbb
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4181if test $ac_compiler_gnu = yes; then
4182 GCC=yes
4183else
4184 GCC=
4185fi
ce2cded5
L
4186ac_test_CFLAGS=${CFLAGS+set}
4187ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4189$as_echo_n "checking whether $CC accepts -g... " >&6; }
4190if test "${ac_cv_prog_cc_g+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 ac_save_c_werror_flag=$ac_c_werror_flag
4194 ac_c_werror_flag=yes
4195 ac_cv_prog_cc_g=no
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4198/* end confdefs.h. */
d7040cdb 4199
ce2cded5
L
4200int
4201main ()
4202{
d7040cdb 4203
ce2cded5
L
4204 ;
4205 return 0;
4206}
4207_ACEOF
81ecdfbb 4208if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4209 ac_cv_prog_cc_g=yes
4210else
81ecdfbb
RW
4211 CFLAGS=""
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
108a6f8e 4214
81ecdfbb
RW
4215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"; then :
4224
4225else
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4227 CFLAGS="-g"
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230
4231int
4232main ()
4233{
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_g=yes
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250$as_echo "$ac_cv_prog_cc_g" >&6; }
4251if test "$ac_test_CFLAGS" = set; then
4252 CFLAGS=$ac_save_CFLAGS
4253elif test $ac_cv_prog_cc_g = yes; then
4254 if test "$GCC" = yes; then
4255 CFLAGS="-g -O2"
4256 else
ce2cded5
L
4257 CFLAGS="-g"
4258 fi
ac48eca1 4259else
ce2cded5
L
4260 if test "$GCC" = yes; then
4261 CFLAGS="-O2"
4262 else
4263 CFLAGS=
4264 fi
ac48eca1 4265fi
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4268if test "${ac_cv_prog_cc_c89+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
ac48eca1 4270else
81ecdfbb 4271 ac_cv_prog_cc_c89=no
ce2cded5 4272ac_save_CC=$CC
81ecdfbb 4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4274/* end confdefs.h. */
4275#include <stdarg.h>
4276#include <stdio.h>
4277#include <sys/types.h>
4278#include <sys/stat.h>
4279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4280struct buf { int x; };
4281FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282static char *e (p, i)
4283 char **p;
4284 int i;
4285{
4286 return p[i];
4287}
4288static char *f (char * (*g) (char **, int), char **p, ...)
4289{
4290 char *s;
4291 va_list v;
4292 va_start (v,p);
4293 s = g (p, va_arg (v,int));
4294 va_end (v);
4295 return s;
4296}
d7040cdb 4297
ce2cded5
L
4298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4299 function prototypes and stuff, but not '\xHH' hex character constants.
4300 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4301 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4303 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4304 that's true only with -std. */
ce2cded5 4305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4306
81ecdfbb
RW
4307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308 inside strings and character constants. */
4309#define FOO(x) 'x'
4310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
ce2cded5
L
4312int test (int i, double x);
4313struct s1 {int (*f) (int a);};
4314struct s2 {int (*f) (double a);};
4315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316int argc;
4317char **argv;
4318int
4319main ()
4320{
4321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4322 ;
4323 return 0;
4324}
4325_ACEOF
81ecdfbb
RW
4326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4328do
4329 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4332fi
81ecdfbb
RW
4333rm -f core conftest.err conftest.$ac_objext
4334 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4335done
81ecdfbb 4336rm -f conftest.$ac_ext
ce2cded5 4337CC=$ac_save_CC
d7040cdb 4338
ce2cded5 4339fi
81ecdfbb
RW
4340# AC_CACHE_VAL
4341case "x$ac_cv_prog_cc_c89" in
4342 x)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344$as_echo "none needed" >&6; } ;;
4345 xno)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347$as_echo "unsupported" >&6; } ;;
ce2cded5 4348 *)
81ecdfbb
RW
4349 CC="$CC $ac_cv_prog_cc_c89"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4352esac
81ecdfbb 4353if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4354
ce2cded5 4355fi
d7040cdb 4356
ce2cded5
L
4357ac_ext=c
4358ac_cpp='$CPP $CPPFLAGS'
4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4362
7357c5b6
AM
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4370# On Suns, sometimes $CPP names a directory.
4371if test -n "$CPP" && test -d "$CPP"; then
4372 CPP=
4373fi
4374if test -z "$CPP"; then
81ecdfbb
RW
4375 if test "${ac_cv_prog_CPP+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
ce2cded5 4377else
7357c5b6
AM
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4380 do
4381 ac_preproc_ok=false
4382for ac_c_preproc_warn_flag in '' yes
ce2cded5 4383do
7357c5b6
AM
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4391/* end confdefs.h. */
4392#ifdef __STDC__
4393# include <limits.h>
4394#else
4395# include <assert.h>
4396#endif
4397 Syntax error
4398_ACEOF
81ecdfbb 4399if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4400
81ecdfbb 4401else
7357c5b6
AM
4402 # Broken: fails on valid input.
4403continue
4404fi
4405rm -f conftest.err conftest.$ac_ext
ce2cded5 4406
81ecdfbb 4407 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4408 # can be detected and how.
81ecdfbb 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4410/* end confdefs.h. */
4411#include <ac_nonexistent.h>
4412_ACEOF
81ecdfbb 4413if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4414 # Broken: success on invalid input.
4415continue
4416else
7357c5b6
AM
4417 # Passes both tests.
4418ac_preproc_ok=:
4419break
4420fi
4421rm -f conftest.err conftest.$ac_ext
6bf9431b 4422
7357c5b6
AM
4423done
4424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425rm -f conftest.err conftest.$ac_ext
81ecdfbb 4426if $ac_preproc_ok; then :
7357c5b6
AM
4427 break
4428fi
6bf9431b 4429
7357c5b6
AM
4430 done
4431 ac_cv_prog_CPP=$CPP
252b5132 4432
7357c5b6
AM
4433fi
4434 CPP=$ac_cv_prog_CPP
4435else
4436 ac_cv_prog_CPP=$CPP
4437fi
81ecdfbb
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439$as_echo "$CPP" >&6; }
7357c5b6
AM
4440ac_preproc_ok=false
4441for ac_c_preproc_warn_flag in '' yes
4442do
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4450/* end confdefs.h. */
4451#ifdef __STDC__
4452# include <limits.h>
4453#else
4454# include <assert.h>
4455#endif
4456 Syntax error
4457_ACEOF
81ecdfbb 4458if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4459
81ecdfbb 4460else
7357c5b6
AM
4461 # Broken: fails on valid input.
4462continue
4463fi
4464rm -f conftest.err conftest.$ac_ext
252b5132 4465
81ecdfbb 4466 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4467 # can be detected and how.
81ecdfbb 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4469/* end confdefs.h. */
4470#include <ac_nonexistent.h>
4471_ACEOF
81ecdfbb 4472if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4473 # Broken: success on invalid input.
4474continue
4475else
7357c5b6
AM
4476 # Passes both tests.
4477ac_preproc_ok=:
4478break
4479fi
4480rm -f conftest.err conftest.$ac_ext
252b5132 4481
7357c5b6
AM
4482done
4483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4485if $ac_preproc_ok; then :
4486
7357c5b6 4487else
81ecdfbb
RW
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490as_fn_error "C preprocessor \"$CPP\" fails sanity check
4491See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4492fi
6bf9431b 4493
7357c5b6
AM
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4499
252b5132 4500
81ecdfbb
RW
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4502$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4503if test "${ac_cv_path_GREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
ce2cded5 4505else
81ecdfbb
RW
4506 if test -z "$GREP"; then
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in grep ggrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4518# Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520case `"$ac_path_GREP" --version 2>&1` in
4521*GNU*)
4522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523*)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP="$ac_path_GREP"
4538 ac_path_GREP_max=$ac_count
ce2cded5 4539 fi
81ecdfbb
RW
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546 $ac_path_GREP_found && break 3
4547 done
4548 done
4549 done
4550IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_GREP"; then
4552 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554else
4555 ac_cv_path_GREP=$GREP
4556fi
4557
ce2cded5 4558fi
81ecdfbb
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4560$as_echo "$ac_cv_path_GREP" >&6; }
4561 GREP="$ac_cv_path_GREP"
ce2cded5 4562
6bf9431b 4563
81ecdfbb
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4565$as_echo_n "checking for egrep... " >&6; }
4566if test "${ac_cv_path_EGREP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
7357c5b6 4568else
81ecdfbb
RW
4569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570 then ac_cv_path_EGREP="$GREP -E"
4571 else
4572 if test -z "$EGREP"; then
4573 ac_path_EGREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in egrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4583 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4584# Check for GNU ac_path_EGREP and select it if it is found.
4585 # Check for GNU $ac_path_EGREP
4586case `"$ac_path_EGREP" --version 2>&1` in
4587*GNU*)
4588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589*)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'EGREP' >> "conftest.nl"
4598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_EGREP="$ac_path_EGREP"
4604 ac_path_EGREP_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610esac
4611
4612 $ac_path_EGREP_found && break 3
4613 done
4614 done
4615 done
4616IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_EGREP"; then
4618 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 fi
4620else
4621 ac_cv_path_EGREP=$EGREP
4622fi
4623
4624 fi
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4627$as_echo "$ac_cv_path_EGREP" >&6; }
4628 EGREP="$ac_cv_path_EGREP"
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4632$as_echo_n "checking for ANSI C header files... " >&6; }
4633if test "${ac_cv_header_stdc+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4637/* end confdefs.h. */
4638#include <stdlib.h>
4639#include <stdarg.h>
4640#include <string.h>
4641#include <float.h>
4642
4643int
4644main ()
4645{
4646
4647 ;
4648 return 0;
4649}
4650_ACEOF
81ecdfbb 4651if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4652 ac_cv_header_stdc=yes
4653else
81ecdfbb 4654 ac_cv_header_stdc=no
7357c5b6 4655fi
81ecdfbb 4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4657
4658if test $ac_cv_header_stdc = yes; then
4659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4661/* end confdefs.h. */
4662#include <string.h>
4663
4664_ACEOF
4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4666 $EGREP "memchr" >/dev/null 2>&1; then :
4667
7357c5b6
AM
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f conftest*
4672
4673fi
4674
4675if test $ac_cv_header_stdc = yes; then
4676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4678/* end confdefs.h. */
4679#include <stdlib.h>
4680
4681_ACEOF
4682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4683 $EGREP "free" >/dev/null 2>&1; then :
4684
7357c5b6
AM
4685else
4686 ac_cv_header_stdc=no
4687fi
4688rm -f conftest*
4689
4690fi
4691
4692if test $ac_cv_header_stdc = yes; then
4693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4694 if test "$cross_compiling" = yes; then :
7357c5b6 4695 :
ce2cded5 4696else
81ecdfbb 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4698/* end confdefs.h. */
4699#include <ctype.h>
81ecdfbb 4700#include <stdlib.h>
7357c5b6
AM
4701#if ((' ' & 0x0FF) == 0x020)
4702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704#else
4705# define ISLOWER(c) \
4706 (('a' <= (c) && (c) <= 'i') \
4707 || ('j' <= (c) && (c) <= 'r') \
4708 || ('s' <= (c) && (c) <= 'z'))
4709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4710#endif
6bf9431b 4711
7357c5b6
AM
4712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4713int
4714main ()
4715{
4716 int i;
4717 for (i = 0; i < 256; i++)
4718 if (XOR (islower (i), ISLOWER (i))
4719 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4720 return 2;
4721 return 0;
7357c5b6
AM
4722}
4723_ACEOF
81ecdfbb 4724if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4725
81ecdfbb
RW
4726else
4727 ac_cv_header_stdc=no
7357c5b6 4728fi
81ecdfbb
RW
4729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4730 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4731fi
81ecdfbb 4732
7357c5b6
AM
4733fi
4734fi
81ecdfbb
RW
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4736$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4737if test $ac_cv_header_stdc = yes; then
6bf9431b 4738
81ecdfbb 4739$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4740
7357c5b6 4741fi
d7040cdb 4742
7357c5b6 4743# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4746do :
4747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749"
4750eval as_val=\$$as_ac_Header
4751 if test "x$as_val" = x""yes; then :
7357c5b6 4752 cat >>confdefs.h <<_ACEOF
81ecdfbb 4753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4754_ACEOF
d7040cdb 4755
7357c5b6 4756fi
d7040cdb 4757
7357c5b6 4758done
d7040cdb
SE
4759
4760
4761
81ecdfbb
RW
4762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4764 MINIX=yes
4765else
4766 MINIX=
4767fi
d7040cdb
SE
4768
4769
7357c5b6 4770 if test "$MINIX" = yes; then
d7040cdb 4771
81ecdfbb 4772$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4773
d7040cdb 4774
81ecdfbb 4775$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4776
d7040cdb 4777
81ecdfbb 4778$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4779
ce2cded5 4780 fi
d7040cdb 4781
d7040cdb 4782
81ecdfbb
RW
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
ce2cded5 4787else
81ecdfbb 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4789/* end confdefs.h. */
d7040cdb 4790
7357c5b6
AM
4791# define __EXTENSIONS__ 1
4792 $ac_includes_default
4793int
4794main ()
4795{
d7040cdb 4796
7357c5b6
AM
4797 ;
4798 return 0;
4799}
4800_ACEOF
81ecdfbb 4801if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4802 ac_cv_safe_to_define___extensions__=yes
4803else
81ecdfbb 4804 ac_cv_safe_to_define___extensions__=no
ce2cded5 4805fi
81ecdfbb 4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4807fi
81ecdfbb
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4810 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4812
81ecdfbb 4813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4814
81ecdfbb 4815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4816
81ecdfbb 4817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4818
81ecdfbb 4819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4820
d7040cdb 4821
d053aef8 4822
81ecdfbb 4823
da2f07f1 4824
3388710e
JM
4825# The tests for host and target for $enable_largefile require
4826# canonical names.
4827
4828
4829
da2f07f1
JK
4830# As the $enable_largefile decision depends on --enable-plugins we must set it
4831# even in directories otherwise not depending on the $plugins option.
4832
4833
4834# Check whether --enable-plugins was given.
4835if test "${enable_plugins+set}" = set; then :
4836 enableval=$enable_plugins; case "${enableval}" in
4837 yes | "") plugins=yes ;;
4838 no) plugins=no ;;
4839 *) plugins=yes ;;
4840 esac
4841else
4842 plugins=no
4843fi
4844
4845
4846
4847case "${host}" in
4848 sparc-*-solaris*|i[3-7]86-*-solaris*)
4849 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4850 # are mutually exclusive; and without procfs support, the bfd/ elf module
4851 # cannot provide certain routines such as elfcore_write_prpsinfo
4852 # or elfcore_write_prstatus. So unless the user explicitly requested
4853 # large-file support through the --enable-largefile switch, disable
4854 # large-file support in favor of procfs support.
4855 test "${target}" = "${host}" -a "x$plugins" = xno \
4856 && : ${enable_largefile="no"}
4857 ;;
4858esac
4859
81ecdfbb
RW
4860# Check whether --enable-largefile was given.
4861if test "${enable_largefile+set}" = set; then :
4862 enableval=$enable_largefile;
4863fi
4864
d053aef8
JK
4865if test "$enable_largefile" != no; then
4866
81ecdfbb
RW
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4868$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4869if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
d053aef8
JK
4871else
4872 ac_cv_sys_largefile_CC=no
4873 if test "$GCC" != yes; then
4874 ac_save_CC=$CC
4875 while :; do
81ecdfbb
RW
4876 # IRIX 6.2 and later do not support large files by default,
4877 # so use the C compiler's -n32 option if that helps.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4879/* end confdefs.h. */
4880#include <sys/types.h>
4881 /* Check that off_t can represent 2**63 - 1 correctly.
4882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4883 since some C++ compilers masquerading as C compilers
4884 incorrectly reject 9223372036854775807. */
4885#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4887 && LARGE_OFF_T % 2147483647 == 1)
4888 ? 1 : -1];
4889int
4890main ()
4891{
4892
4893 ;
4894 return 0;
4895}
4896_ACEOF
81ecdfbb 4897 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4898 break
d053aef8 4899fi
81ecdfbb
RW
4900rm -f core conftest.err conftest.$ac_objext
4901 CC="$CC -n32"
4902 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4903 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 4904fi
81ecdfbb 4905rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
4906 break
4907 done
4908 CC=$ac_save_CC
4909 rm -f conftest.$ac_ext
4910 fi
4911fi
81ecdfbb
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4913$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
4914 if test "$ac_cv_sys_largefile_CC" != no; then
4915 CC=$CC$ac_cv_sys_largefile_CC
4916 fi
4917
81ecdfbb
RW
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4919$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4920if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
d053aef8
JK
4922else
4923 while :; do
81ecdfbb 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4925/* end confdefs.h. */
4926#include <sys/types.h>
4927 /* Check that off_t can represent 2**63 - 1 correctly.
4928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929 since some C++ compilers masquerading as C compilers
4930 incorrectly reject 9223372036854775807. */
4931#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933 && LARGE_OFF_T % 2147483647 == 1)
4934 ? 1 : -1];
4935int
4936main ()
4937{
4938
4939 ;
4940 return 0;
4941}
4942_ACEOF
81ecdfbb
RW
4943if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_sys_file_offset_bits=no; break
d053aef8 4945fi
81ecdfbb
RW
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4948/* end confdefs.h. */
4949#define _FILE_OFFSET_BITS 64
4950#include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959int
4960main ()
4961{
4962
4963 ;
4964 return 0;
4965}
4966_ACEOF
81ecdfbb 4967if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4968 ac_cv_sys_file_offset_bits=64; break
d053aef8 4969fi
81ecdfbb
RW
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
4972 break
4973done
4974fi
81ecdfbb
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4976$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4977case $ac_cv_sys_file_offset_bits in #(
4978 no | unknown) ;;
4979 *)
d053aef8
JK
4980cat >>confdefs.h <<_ACEOF
4981#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4982_ACEOF
81ecdfbb
RW
4983;;
4984esac
4985rm -rf conftest*
4986 if test $ac_cv_sys_file_offset_bits = unknown; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4988$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4989if test "${ac_cv_sys_large_files+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
d053aef8
JK
4991else
4992 while :; do
81ecdfbb 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4994/* end confdefs.h. */
4995#include <sys/types.h>
4996 /* Check that off_t can represent 2**63 - 1 correctly.
4997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4998 since some C++ compilers masquerading as C compilers
4999 incorrectly reject 9223372036854775807. */
5000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5002 && LARGE_OFF_T % 2147483647 == 1)
5003 ? 1 : -1];
5004int
5005main ()
5006{
5007
5008 ;
5009 return 0;
5010}
5011_ACEOF
81ecdfbb
RW
5012if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_sys_large_files=no; break
d053aef8 5014fi
81ecdfbb
RW
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5017/* end confdefs.h. */
5018#define _LARGE_FILES 1
5019#include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5027 ? 1 : -1];
5028int
5029main ()
5030{
5031
5032 ;
5033 return 0;
5034}
81ecdfbb
RW
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_sys_large_files=1; break
d053aef8 5038fi
81ecdfbb
RW
5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_cv_sys_large_files=unknown
d053aef8
JK
5041 break
5042done
5043fi
81ecdfbb
RW
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5045$as_echo "$ac_cv_sys_large_files" >&6; }
5046case $ac_cv_sys_large_files in #(
5047 no | unknown) ;;
5048 *)
d053aef8
JK
5049cat >>confdefs.h <<_ACEOF
5050#define _LARGE_FILES $ac_cv_sys_large_files
5051_ACEOF
81ecdfbb 5052;;
7357c5b6 5053esac
81ecdfbb 5054rm -rf conftest*
7357c5b6
AM
5055 fi
5056fi
d7040cdb 5057
d7040cdb 5058
ce2cded5 5059
da2f07f1 5060
b214d478
SE
5061case `pwd` in
5062 *\ * | *\ *)
81ecdfbb
RW
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5064$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5065esac
d7040cdb
SE
5066
5067
6bf9431b 5068
3725885a
RW
5069macro_version='2.2.7a'
5070macro_revision='1.3134'
ce2cded5 5071
d7040cdb 5072
d7040cdb 5073
d7040cdb 5074
d7040cdb 5075
7357c5b6 5076
6bf9431b 5077
6bf9431b 5078
6bf9431b 5079
6bf9431b 5080
d7040cdb 5081
d7040cdb 5082
6bf9431b 5083
b214d478 5084ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5085
3725885a
RW
5086# Backslashify metacharacters that are still active within
5087# double-quoted strings.
5088sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5089
5090# Same as above, but do not quote variable references.
5091double_quote_subst='s/\(["`\\]\)/\\\1/g'
5092
5093# Sed substitution to delay expansion of an escaped shell variable in a
5094# double_quote_subst'ed string.
5095delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5096
5097# Sed substitution to delay expansion of an escaped single quote.
5098delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5099
5100# Sed substitution to avoid accidental globbing in evaled expressions
5101no_glob_subst='s/\*/\\\*/g'
5102
5103ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5104ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5105ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5108$as_echo_n "checking how to print strings... " >&6; }
5109# Test print first, because it will be a builtin if present.
5110if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5112 ECHO='print -r --'
5113elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5114 ECHO='printf %s\n'
5115else
5116 # Use this function as a fallback that always works.
5117 func_fallback_echo ()
5118 {
5119 eval 'cat <<_LTECHO_EOF
5120$1
5121_LTECHO_EOF'
5122 }
5123 ECHO='func_fallback_echo'
5124fi
5125
5126# func_echo_all arg...
5127# Invoke $ECHO with all args, space-separated.
5128func_echo_all ()
5129{
5130 $ECHO ""
5131}
5132
5133case "$ECHO" in
5134 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5135$as_echo "printf" >&6; } ;;
5136 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5137$as_echo "print -r" >&6; } ;;
5138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5139$as_echo "cat" >&6; } ;;
5140esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
81ecdfbb
RW
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5156$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5157if test "${ac_cv_path_SED+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159else
5160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5161 for ac_i in 1 2 3 4 5 6 7; do
5162 ac_script="$ac_script$as_nl$ac_script"
5163 done
5164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5165 { ac_script=; unset ac_script;}
5166 if test -z "$SED"; then
5167 ac_path_SED_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
81ecdfbb 5174 for ac_prog in sed gsed; do
7357c5b6 5175 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5178# Check for GNU ac_path_SED and select it if it is found.
5179 # Check for GNU $ac_path_SED
5180case `"$ac_path_SED" --version 2>&1` in
5181*GNU*)
5182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5183*)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo '' >> "conftest.nl"
5192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_SED_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_SED="$ac_path_SED"
5198 ac_path_SED_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204esac
5205
5206 $ac_path_SED_found && break 3
7357c5b6
AM
5207 done
5208 done
81ecdfbb 5209 done
7357c5b6 5210IFS=$as_save_IFS
81ecdfbb
RW
5211 if test -z "$ac_cv_path_SED"; then
5212 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5213 fi
81ecdfbb
RW
5214else
5215 ac_cv_path_SED=$SED
7357c5b6
AM
5216fi
5217
81ecdfbb
RW
5218fi
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5220$as_echo "$ac_cv_path_SED" >&6; }
5221 SED="$ac_cv_path_SED"
5222 rm -f conftest.sed
7357c5b6
AM
5223
5224test -z "$SED" && SED=sed
5225Xsed="$SED -e 1s/^X//"
5226
5227
5228
d7040cdb 5229
d7040cdb 5230
d7040cdb 5231
d7040cdb 5232
d7040cdb 5233
d7040cdb 5234
d7040cdb 5235
6bf9431b 5236
81ecdfbb
RW
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5238$as_echo_n "checking for fgrep... " >&6; }
5239if test "${ac_cv_path_FGREP+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
7357c5b6 5241else
81ecdfbb
RW
5242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5243 then ac_cv_path_FGREP="$GREP -F"
5244 else
5245 if test -z "$FGREP"; then
5246 ac_path_FGREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_prog in fgrep; do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5256 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5257# Check for GNU ac_path_FGREP and select it if it is found.
5258 # Check for GNU $ac_path_FGREP
5259case `"$ac_path_FGREP" --version 2>&1` in
5260*GNU*)
5261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262*)
5263 ac_count=0
5264 $as_echo_n 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 $as_echo 'FGREP' >> "conftest.nl"
5271 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_FGREP="$ac_path_FGREP"
5277 ac_path_FGREP_max=$ac_count
7357c5b6 5278 fi
81ecdfbb
RW
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
5284
5285 $ac_path_FGREP_found && break 3
5286 done
5287 done
5288 done
5289IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_FGREP"; then
5291 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 fi
5293else
5294 ac_cv_path_FGREP=$FGREP
5295fi
5296
5297 fi
6bf9431b 5298fi
81ecdfbb
RW
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5300$as_echo "$ac_cv_path_FGREP" >&6; }
5301 FGREP="$ac_cv_path_FGREP"
d7040cdb 5302
6bf9431b 5303
7357c5b6 5304test -z "$GREP" && GREP=grep
252b5132 5305
6bf9431b 5306
252b5132 5307
252b5132 5308
252b5132 5309
252b5132 5310
252b5132
RH
5311
5312
6bf9431b 5313
d7040cdb 5314
6bf9431b 5315
6bf9431b 5316
7357c5b6
AM
5317
5318
5319
5320
5321
5322
5323
81ecdfbb
RW
5324# Check whether --with-gnu-ld was given.
5325if test "${with_gnu_ld+set}" = set; then :
5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5327else
5328 with_gnu_ld=no
81ecdfbb
RW
5329fi
5330
7357c5b6
AM
5331ac_prog=ld
5332if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5335$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5336 case $host in
5337 *-*-mingw*)
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 *)
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342 esac
5343 case $ac_prog in
5344 # Accept absolute paths.
5345 [\\/]* | ?:[\\/]*)
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351 done
5352 test -z "$LD" && LD="$ac_prog"
5353 ;;
5354 "")
5355 # If it fails, then pretend we aren't using GCC.
5356 ac_prog=ld
5357 ;;
5358 *)
5359 # If it is relative, then search for the first ld in PATH.
5360 with_gnu_ld=unknown
5361 ;;
5362 esac
5363elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5365$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5366else
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5368$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5369fi
81ecdfbb
RW
5370if test "${lt_cv_path_LD+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
d7040cdb 5372else
7357c5b6
AM
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5386 ;;
5387 *)
5388 test "$with_gnu_ld" != yes && break
5389 ;;
5390 esac
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
6bf9431b 5394else
7357c5b6 5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5396fi
6bf9431b 5397fi
7357c5b6
AM
5398
5399LD="$lt_cv_path_LD"
5400if test -n "$LD"; then
81ecdfbb
RW
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5402$as_echo "$LD" >&6; }
ce2cded5 5403else
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
6bf9431b 5406fi
81ecdfbb
RW
5407test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5409$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5410if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
ce2cded5 5412else
7357c5b6
AM
5413 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414case `$LD -v 2>&1 </dev/null` in
5415*GNU* | *'with BFD'*)
5416 lt_cv_prog_gnu_ld=yes
5417 ;;
5418*)
5419 lt_cv_prog_gnu_ld=no
5420 ;;
5421esac
ce2cded5 5422fi
81ecdfbb
RW
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5424$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5425with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5426
5427
5428
20e95c23 5429
d7040cdb
SE
5430
5431
5432
5433
5434
81ecdfbb
RW
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5436$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5437if test "${lt_cv_path_NM+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
ce2cded5 5439else
7357c5b6
AM
5440 if test -n "$NM"; then
5441 # Let the user override the test.
5442 lt_cv_path_NM="$NM"
ce2cded5 5443else
7357c5b6
AM
5444 lt_nm_to_check="${ac_tool_prefix}nm"
5445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5446 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5447 fi
7357c5b6
AM
5448 for lt_tmp_nm in $lt_nm_to_check; do
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/$lt_tmp_nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5462 break
5463 ;;
5464 *)
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466 */dev/null*)
5467 lt_cv_path_NM="$tmp_nm -p"
5468 break
5469 ;;
5470 *)
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5473 ;;
5474 esac
5475 ;;
5476 esac
5477 fi
5478 done
5479 IFS="$lt_save_ifs"
5480 done
5481 : ${lt_cv_path_NM=no}
ce2cded5
L
5482fi
5483fi
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5485$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5486if test "$lt_cv_path_NM" != "no"; then
5487 NM="$lt_cv_path_NM"
ce2cded5 5488else
7357c5b6 5489 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5490 if test -n "$DUMPBIN"; then :
5491 # Let the user override the test.
5492 else
5493 if test -n "$ac_tool_prefix"; then
5494 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5495 do
5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
ce2cded5 5502else
7357c5b6
AM
5503 if test -n "$DUMPBIN"; then
5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5515 break 2
5516 fi
5517done
81ecdfbb
RW
5518 done
5519IFS=$as_save_IFS
d7040cdb 5520
ce2cded5
L
5521fi
5522fi
7357c5b6
AM
5523DUMPBIN=$ac_cv_prog_DUMPBIN
5524if test -n "$DUMPBIN"; then
81ecdfbb
RW
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5526$as_echo "$DUMPBIN" >&6; }
ce2cded5 5527else
81ecdfbb
RW
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
ce2cded5 5530fi
d7040cdb 5531
81ecdfbb 5532
7357c5b6
AM
5533 test -n "$DUMPBIN" && break
5534 done
ce2cded5 5535fi
7357c5b6
AM
5536if test -z "$DUMPBIN"; then
5537 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5538 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5539do
5540 # Extract the first word of "$ac_prog", so it can be a program name with args.
5541set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543$as_echo_n "checking for $ac_word... " >&6; }
5544if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
ce2cded5 5546else
7357c5b6
AM
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5559 break 2
5560 fi
5561done
81ecdfbb
RW
5562 done
5563IFS=$as_save_IFS
d7040cdb 5564
ce2cded5
L
5565fi
5566fi
7357c5b6
AM
5567ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5568if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5570$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5571else
81ecdfbb
RW
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573$as_echo "no" >&6; }
20e95c23 5574fi
20e95c23 5575
81ecdfbb 5576
7357c5b6 5577 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5578done
5579
81ecdfbb
RW
5580 if test "x$ac_ct_DUMPBIN" = x; then
5581 DUMPBIN=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584yes:)
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587ac_tool_warned=yes ;;
5588esac
5589 DUMPBIN=$ac_ct_DUMPBIN
5590 fi
d7040cdb 5591fi
7357c5b6 5592
3725885a
RW
5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5594 *COFF*)
5595 DUMPBIN="$DUMPBIN -symbols"
5596 ;;
5597 *)
5598 DUMPBIN=:
5599 ;;
5600 esac
5601 fi
7357c5b6
AM
5602
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
5605 fi
20e95c23 5606fi
7357c5b6
AM
5607test -z "$NM" && NM=nm
5608
5609
5610
5611
5612
5613
81ecdfbb
RW
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5615$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5616if test "${lt_cv_nm_interface+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
ce2cded5 5618else
7357c5b6
AM
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
3725885a 5624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
3725885a 5627 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
ce2cded5 5633fi
81ecdfbb
RW
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5635$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5636
81ecdfbb
RW
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5638$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5639LN_S=$as_ln_s
5640if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642$as_echo "yes" >&6; }
ce2cded5 5643else
81ecdfbb
RW
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5645$as_echo "no, using $LN_S" >&6; }
ce2cded5 5646fi
d7040cdb 5647
7357c5b6 5648# find the maximum length of command line arguments
81ecdfbb
RW
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5650$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5651if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
7357c5b6
AM
5653else
5654 i=0
5655 teststring="ABCD"
d7040cdb 5656
7357c5b6
AM
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
d7040cdb 5665
7357c5b6
AM
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
d7040cdb 5672
b214d478 5673 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
d7040cdb 5683
3725885a
RW
5684 mint*)
5685 # On MiNT this can take a long time and run out of memory.
5686 lt_cv_sys_max_cmd_len=8192;
5687 ;;
5688
7357c5b6
AM
5689 amigaos*)
5690 # On AmigaOS with pdksh, this test takes hours, literally.
5691 # So we just punt and use a minimum line length of 8192.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
d7040cdb 5694
7357c5b6
AM
5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5696 # This has been around since 386BSD, at least. Likely further.
5697 if test -x /sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5699 elif test -x /usr/sbin/sysctl; then
5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5701 else
5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5703 fi
5704 # And add a safety zone
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 ;;
d7040cdb 5708
7357c5b6
AM
5709 interix*)
5710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5711 lt_cv_sys_max_cmd_len=196608
5712 ;;
d7040cdb 5713
7357c5b6
AM
5714 osf*)
5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5717 # nice to cause kernel panics so lets avoid the loop below.
5718 # First set a reasonable default.
5719 lt_cv_sys_max_cmd_len=16384
5720 #
5721 if test -x /sbin/sysconfig; then
5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5724 esac
5725 fi
5726 ;;
5727 sco3.2v5*)
5728 lt_cv_sys_max_cmd_len=102400
5729 ;;
5730 sysv5* | sco5v6* | sysv4.2uw2*)
5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5732 if test -n "$kargmax"; then
5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5734 else
5735 lt_cv_sys_max_cmd_len=32768
5736 fi
ce2cded5
L
5737 ;;
5738 *)
b214d478
SE
5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5740 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 else
5744 # Make teststring a little bigger before we do anything with it.
5745 # a 1K string should be a reasonable start.
5746 for i in 1 2 3 4 5 6 7 8 ; do
5747 teststring=$teststring$teststring
5748 done
5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5750 # If test is not a shell built-in, we'll probably end up computing a
5751 # maximum length that is only half of the actual maximum length, but
5752 # we can't tell.
3725885a
RW
5753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5754 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
5755 test $i != 17 # 1/2 MB should be enough
5756 do
5757 i=`expr $i + 1`
5758 teststring=$teststring$teststring
5759 done
5760 # Only check the string length outside the loop.
5761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5762 teststring=
5763 # Add a significant safety factor because C++ compilers can tack on
5764 # massive amounts of additional arguments before passing them to the
5765 # linker. It appears as though 1/2 is a usable value.
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 fi
ce2cded5
L
5768 ;;
5769 esac
d7040cdb 5770
7357c5b6 5771fi
d7040cdb 5772
7357c5b6 5773if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5775$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5776else
81ecdfbb
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5778$as_echo "none" >&6; }
7357c5b6
AM
5779fi
5780max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5781
5782
5783
5784
5785
5786
7357c5b6
AM
5787: ${CP="cp -f"}
5788: ${MV="mv -f"}
5789: ${RM="rm -f"}
d7040cdb 5790
81ecdfbb
RW
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5792$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5793# Try some XSI features
5794xsi_shell=no
5795( _lt_dummy="a/b/c"
5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5797 = c,a/b,, \
5798 && eval 'test $(( 1 + 1 )) -eq 2 \
5799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5800 && xsi_shell=yes
81ecdfbb
RW
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5802$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5803
5804
81ecdfbb
RW
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5806$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5807lt_shell_append=no
5808( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5809 >/dev/null 2>&1 \
5810 && lt_shell_append=yes
81ecdfbb
RW
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5812$as_echo "$lt_shell_append" >&6; }
d7040cdb 5813
d7040cdb 5814
7357c5b6
AM
5815if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5816 lt_unset=unset
5817else
5818 lt_unset=false
5819fi
d7040cdb 5820
d7040cdb 5821
d7040cdb 5822
d7040cdb 5823
d7040cdb 5824
7357c5b6
AM
5825# test EBCDIC or ASCII
5826case `echo X|tr X '\101'` in
5827 A) # ASCII based system
5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5829 lt_SP2NL='tr \040 \012'
5830 lt_NL2SP='tr \015\012 \040\040'
5831 ;;
5832 *) # EBCDIC based system
5833 lt_SP2NL='tr \100 \n'
5834 lt_NL2SP='tr \r\n \100\100'
5835 ;;
5836esac
d7040cdb 5837
d7040cdb 5838
d7040cdb 5839
d7040cdb 5840
d7040cdb 5841
d7040cdb
SE
5842
5843
5af11cab 5844
d7040cdb 5845
81ecdfbb
RW
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5847$as_echo_n "checking for $LD option to reload object files... " >&6; }
5848if test "${lt_cv_ld_reload_flag+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
7357c5b6
AM
5850else
5851 lt_cv_ld_reload_flag='-r'
5852fi
81ecdfbb
RW
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5854$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5855reload_flag=$lt_cv_ld_reload_flag
5856case $reload_flag in
5857"" | " "*) ;;
5858*) reload_flag=" $reload_flag" ;;
5859esac
5860reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861case $host_os in
5862 darwin*)
5863 if test "$GCC" = yes; then
5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5865 else
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 fi
5868 ;;
5869esac
20e95c23 5870
6bf9431b 5871
20e95c23
DJ
5872
5873
20e95c23 5874
20e95c23 5875
ce2cded5 5876
ce2cded5 5877
ce2cded5 5878
b214d478
SE
5879if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5881set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
b214d478
SE
5886else
5887 if test -n "$OBJDUMP"; then
5888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5899 break 2
5900 fi
5901done
81ecdfbb
RW
5902 done
5903IFS=$as_save_IFS
b214d478
SE
5904
5905fi
5906fi
5907OBJDUMP=$ac_cv_prog_OBJDUMP
5908if test -n "$OBJDUMP"; then
81ecdfbb
RW
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5910$as_echo "$OBJDUMP" >&6; }
b214d478 5911else
81ecdfbb
RW
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
b214d478
SE
5914fi
5915
81ecdfbb 5916
b214d478
SE
5917fi
5918if test -z "$ac_cv_prog_OBJDUMP"; then
5919 ac_ct_OBJDUMP=$OBJDUMP
5920 # Extract the first word of "objdump", so it can be a program name with args.
5921set dummy objdump; ac_word=$2
81ecdfbb
RW
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
b214d478
SE
5926else
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5939 break 2
5940 fi
5941done
81ecdfbb
RW
5942 done
5943IFS=$as_save_IFS
b214d478 5944
b214d478
SE
5945fi
5946fi
5947ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5948if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5950$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5951else
81ecdfbb
RW
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
b214d478
SE
5954fi
5955
81ecdfbb
RW
5956 if test "x$ac_ct_OBJDUMP" = x; then
5957 OBJDUMP="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960yes:)
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965 OBJDUMP=$ac_ct_OBJDUMP
5966 fi
b214d478
SE
5967else
5968 OBJDUMP="$ac_cv_prog_OBJDUMP"
5969fi
5970
5971test -z "$OBJDUMP" && OBJDUMP=objdump
5972
5973
5974
5975
5976
5977
5978
5979
ce2cded5 5980
81ecdfbb
RW
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5982$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5983if test "${lt_cv_deplibs_check_method+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
6bf9431b 5985else
7357c5b6
AM
5986 lt_cv_file_magic_cmd='$MAGIC_CMD'
5987lt_cv_file_magic_test_file=
5988lt_cv_deplibs_check_method='unknown'
5989# Need to set the preceding variable on all platforms that support
5990# interlibrary dependencies.
5991# 'none' -- dependencies not supported.
5992# `unknown' -- same as none, but documents that we really don't know.
5993# 'pass_all' -- all dependencies passed with no checks.
5994# 'test_compile' -- check by making test program.
5995# 'file_magic [[regex]]' -- check by looking for files in library path
5996# which responds to the $file_magic_cmd with a given extended regex.
5997# If you have `file' or equivalent on your system and you're not sure
5998# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 5999
ce2cded5 6000case $host_os in
7357c5b6
AM
6001aix[4-9]*)
6002 lt_cv_deplibs_check_method=pass_all
ce2cded5 6003 ;;
7357c5b6
AM
6004
6005beos*)
6006 lt_cv_deplibs_check_method=pass_all
ce2cded5 6007 ;;
7357c5b6
AM
6008
6009bsdi[45]*)
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6011 lt_cv_file_magic_cmd='/usr/bin/file -L'
6012 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6013 ;;
7357c5b6
AM
6014
6015cygwin*)
6016 # func_win32_libid is a shell function defined in ltmain.sh
6017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6018 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6019 ;;
7357c5b6
AM
6020
6021mingw* | pw32*)
6022 # Base MSYS/MinGW do not provide the 'file' command needed by
6023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6024 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6028 lt_cv_file_magic_cmd='func_win32_libid'
6029 else
6030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6031 lt_cv_file_magic_cmd='$OBJDUMP -f'
6032 fi
ce2cded5 6033 ;;
7357c5b6 6034
3725885a 6035cegcc*)
b214d478
SE
6036 # use the weaker test based on 'objdump'. See mingw*.
6037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6038 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 ;;
6040
7357c5b6
AM
6041darwin* | rhapsody*)
6042 lt_cv_deplibs_check_method=pass_all
d7040cdb 6043 ;;
d7040cdb 6044
7357c5b6
AM
6045freebsd* | dragonfly*)
6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6047 case $host_cpu in
6048 i*86 )
6049 # Not sure whether the presence of OpenBSD here was a mistake.
6050 # Let's accept both of them until this is cleared up.
6051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6052 lt_cv_file_magic_cmd=/usr/bin/file
6053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6054 ;;
6055 esac
6056 else
6057 lt_cv_deplibs_check_method=pass_all
6058 fi
6059 ;;
20e95c23 6060
7357c5b6
AM
6061gnu*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
20e95c23 6064
3725885a
RW
6065haiku*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
7357c5b6
AM
6069hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 ;;
6076 hppa*64*)
3725885a 6077 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
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 ;;
6080 *)
3725885a 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 ;;
6084 esac
6085 ;;
5af11cab 6086
7357c5b6
AM
6087interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6090 ;;
20e95c23 6091
7357c5b6
AM
6092irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
d7040cdb 6101
7357c5b6 6102# This must be Linux ELF.
58e24671 6103linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
d7040cdb 6106
7357c5b6
AM
6107netbsd*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6110 else
7357c5b6 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 6112 fi
7357c5b6 6113 ;;
d7040cdb 6114
7357c5b6
AM
6115newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 ;;
d7040cdb 6120
7357c5b6
AM
6121*nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
d7040cdb 6124
7357c5b6
AM
6125openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 fi
6131 ;;
d7040cdb 6132
7357c5b6
AM
6133osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
d7040cdb 6136
7357c5b6
AM
6137rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
d7040cdb 6140
7357c5b6
AM
6141solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
d7040cdb 6144
7357c5b6
AM
6145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
d7040cdb 6148
7357c5b6
AM
6149sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ;;
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 ;;
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6166 ;;
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 pc)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174 ;;
d7040cdb 6175
7357c5b6
AM
6176tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179esac
d7040cdb 6180
ce2cded5 6181fi
81ecdfbb
RW
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6184file_magic_cmd=$lt_cv_file_magic_cmd
6185deplibs_check_method=$lt_cv_deplibs_check_method
6186test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6187
d7040cdb 6188
d7040cdb 6189
d7040cdb 6190
5af11cab 6191
20e95c23 6192
20e95c23 6193
20e95c23 6194
20e95c23
DJ
6195
6196
6197
20e95c23 6198
7357c5b6
AM
6199if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203$as_echo_n "checking for $ac_word... " >&6; }
6204if test "${ac_cv_prog_AR+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
7357c5b6
AM
6206else
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6219 break 2
ce2cded5 6220 fi
7357c5b6 6221done
81ecdfbb
RW
6222 done
6223IFS=$as_save_IFS
d5fbea21 6224
7357c5b6
AM
6225fi
6226fi
6227AR=$ac_cv_prog_AR
6228if test -n "$AR"; then
81ecdfbb
RW
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6230$as_echo "$AR" >&6; }
7357c5b6 6231else
81ecdfbb
RW
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233$as_echo "no" >&6; }
7357c5b6 6234fi
d5fbea21 6235
81ecdfbb 6236
7357c5b6
AM
6237fi
6238if test -z "$ac_cv_prog_AR"; then
6239 ac_ct_AR=$AR
6240 # Extract the first word of "ar", so it can be a program name with args.
6241set dummy ar; ac_word=$2
81ecdfbb
RW
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
ce2cded5 6246else
7357c5b6
AM
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6257 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6259 break 2
6260 fi
6261done
81ecdfbb
RW
6262 done
6263IFS=$as_save_IFS
d7040cdb 6264
7357c5b6
AM
6265fi
6266fi
6267ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6270$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6271else
81ecdfbb
RW
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
ce2cded5 6274fi
d7040cdb 6275
81ecdfbb
RW
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280yes:)
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283ac_tool_warned=yes ;;
6284esac
6285 AR=$ac_ct_AR
6286 fi
7357c5b6
AM
6287else
6288 AR="$ac_cv_prog_AR"
ce2cded5 6289fi
d7040cdb 6290
7357c5b6
AM
6291test -z "$AR" && AR=ar
6292test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6293
7357c5b6
AM
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if test "${ac_cv_prog_STRIP+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
252b5132 6311else
7357c5b6
AM
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
ce2cded5 6317do
7357c5b6
AM
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6324 break 2
ce2cded5 6325 fi
7357c5b6 6326done
81ecdfbb
RW
6327 done
6328IFS=$as_save_IFS
7357c5b6 6329
252b5132 6330fi
7357c5b6
AM
6331fi
6332STRIP=$ac_cv_prog_STRIP
6333if test -n "$STRIP"; then
81ecdfbb
RW
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335$as_echo "$STRIP" >&6; }
252b5132 6336else
81ecdfbb
RW
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
252b5132 6339fi
d7040cdb 6340
81ecdfbb 6341
6bf9431b 6342fi
7357c5b6
AM
6343if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346set dummy strip; ac_word=$2
81ecdfbb
RW
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
ac48eca1 6351else
7357c5b6
AM
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6362 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6364 break 2
6365 fi
6366done
81ecdfbb
RW
6367 done
6368IFS=$as_save_IFS
6bf9431b 6369
7357c5b6
AM
6370fi
6371fi
6372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6376else
81ecdfbb
RW
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6bf9431b 6379fi
6bf9431b 6380
81ecdfbb
RW
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390 STRIP=$ac_ct_STRIP
6391 fi
7357c5b6
AM
6392else
6393 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6394fi
6bf9431b 6395
7357c5b6
AM
6396test -z "$STRIP" && STRIP=:
6397
6398
6399
6400
6401
6402
6403if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
6408if test "${ac_cv_prog_RANLIB+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
7357c5b6
AM
6410else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6423 break 2
6424 fi
6425done
81ecdfbb
RW
6426 done
6427IFS=$as_save_IFS
6bf9431b 6428
ce2cded5 6429fi
7357c5b6
AM
6430fi
6431RANLIB=$ac_cv_prog_RANLIB
6432if test -n "$RANLIB"; then
81ecdfbb
RW
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434$as_echo "$RANLIB" >&6; }
ac48eca1 6435else
81ecdfbb
RW
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
d7040cdb 6438fi
7357c5b6 6439
81ecdfbb 6440
7357c5b6
AM
6441fi
6442if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445set dummy ranlib; ac_word=$2
81ecdfbb
RW
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
7357c5b6
AM
6450else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
ce2cded5 6456do
7357c5b6
AM
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6463 break 2
ce2cded5 6464 fi
7357c5b6 6465done
81ecdfbb
RW
6466 done
6467IFS=$as_save_IFS
7357c5b6 6468
ce2cded5 6469fi
7357c5b6
AM
6470fi
6471ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6475else
81ecdfbb
RW
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
ce2cded5 6478fi
d7040cdb 6479
81ecdfbb
RW
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487ac_tool_warned=yes ;;
6488esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
d7040cdb 6491else
7357c5b6 6492 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6493fi
6494
7357c5b6
AM
6495test -z "$RANLIB" && RANLIB=:
6496
6497
6498
6499
6500
6501
6502# Determine commands to create old-style static archives.
b214d478 6503old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6504old_postinstall_cmds='chmod 644 $oldlib'
6505old_postuninstall_cmds=
6506
6507if test -n "$RANLIB"; then
6508 case $host_os in
6509 openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6511 ;;
6512 *)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6514 ;;
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6517fi
d7040cdb 6518
3725885a
RW
6519case $host_os in
6520 darwin*)
6521 lock_old_archive_extraction=yes ;;
6522 *)
6523 lock_old_archive_extraction=no ;;
6524esac
6525
6526
6527
6528
6529
6530
d7040cdb
SE
6531
6532
6533
6534
d7040cdb 6535
7357c5b6
AM
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564# If no C compiler was specified, use CC.
6565LTCC=${LTCC-"$CC"}
6566
6567# If no C compiler flags were specified, use CFLAGS.
6568LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6569
6570# Allow CC to be a program name with arguments.
6571compiler=$CC
6572
6573
6574# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
7357c5b6
AM
6579else
6580
6581# These are sane defaults that work on at least a few old systems.
6582# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6583
6584# Character class describing NM global symbol codes.
6585symcode='[BCDEGRST]'
6586
6587# Regexp to match symbols that can be accessed directly from C.
6588sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590# Define system-specific variables.
6591case $host_os in
6592aix*)
6593 symcode='[BCDT]'
6594 ;;
b214d478 6595cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6596 symcode='[ABCDGISTW]'
6597 ;;
6598hpux*)
6599 if test "$host_cpu" = ia64; then
6600 symcode='[ABCDEGRST]'
6601 fi
6602 ;;
6603irix* | nonstopux*)
6604 symcode='[BCDEGRST]'
6605 ;;
6606osf*)
6607 symcode='[BCDEGQRST]'
6608 ;;
6609solaris*)
6610 symcode='[BDRT]'
6611 ;;
6612sco3.2v5*)
6613 symcode='[DT]'
6614 ;;
6615sysv4.2uw2*)
6616 symcode='[DT]'
6617 ;;
6618sysv5* | sco5v6* | unixware* | OpenUNIX*)
6619 symcode='[ABDT]'
6620 ;;
6621sysv4)
6622 symcode='[DFNSTU]'
6623 ;;
6624esac
6625
6626# If we're using GNU nm, then use its standard symbol codes.
6627case `$NM -V 2>&1` in
6628*GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630esac
6631
6632# Transform an extracted symbol line into a proper C declaration.
6633# Some systems (esp. on ia64) link data and code symbols differently,
6634# so use this general approach.
6635lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636
6637# Transform an extracted symbol line into symbol name and symbol address
6638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6639lt_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
6640
6641# Handle CRLF in mingw tool chain
6642opt_cr=
6643case $build_os in
6644mingw*)
6645 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646 ;;
6647esac
6648
6649# Try without a prefix underscore, then with it.
6650for ac_symprfx in "" "_"; do
6651
6652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6653 symxfrm="\\1 $ac_symprfx\\2 \\2"
6654
6655 # Write the raw and C identifiers.
6656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657 # Fake it for dumpbin and say T for any non-static function
6658 # and D for any global variable.
6659 # Also find C++ and __fastcall symbols from MSVC++,
6660 # which start with @ or ?.
6661 lt_cv_sys_global_symbol_pipe="$AWK '"\
6662" {last_section=section; section=\$ 3};"\
6663" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664" \$ 0!~/External *\|/{next};"\
6665" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666" {if(hide[section]) next};"\
6667" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671" ' prfx=^$ac_symprfx"
6672 else
6673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674 fi
6675
6676 # Check to see that the pipe works correctly.
6677 pipe_works=no
6678
6679 rm -f conftest*
6680 cat > conftest.$ac_ext <<_LT_EOF
6681#ifdef __cplusplus
6682extern "C" {
6683#endif
6684char nm_test_var;
6685void nm_test_func(void);
6686void nm_test_func(void){}
6687#ifdef __cplusplus
ce2cded5 6688}
7357c5b6
AM
6689#endif
6690int main(){nm_test_var='a';nm_test_func();return(0);}
6691_LT_EOF
6692
81ecdfbb 6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6694 (eval $ac_compile) 2>&5
ce2cded5 6695 ac_status=$?
81ecdfbb
RW
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
7357c5b6
AM
6698 # Now try to grab the symbols.
6699 nlist=conftest.nm
3725885a
RW
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6701 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6702 ac_status=$?
81ecdfbb
RW
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6705 # Try sorting and uniquifying the output.
6706 if sort "$nlist" | uniq > "$nlist"T; then
6707 mv -f "$nlist"T "$nlist"
6708 else
6709 rm -f "$nlist"T
6710 fi
6bf9431b 6711
7357c5b6
AM
6712 # Make sure that we snagged all the symbols we need.
6713 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6714 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6715 cat <<_LT_EOF > conftest.$ac_ext
6716#ifdef __cplusplus
6717extern "C" {
6718#endif
d7040cdb 6719
7357c5b6
AM
6720_LT_EOF
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6723
7357c5b6 6724 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6725
7357c5b6
AM
6726/* The mapping between symbol names and symbols. */
6727const struct {
6728 const char *name;
6729 void *address;
6730}
6731lt__PROGRAM__LTX_preloaded_symbols[] =
6732{
6733 { "@PROGRAM@", (void *) 0 },
6734_LT_EOF
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736 cat <<\_LT_EOF >> conftest.$ac_ext
6737 {0, (void *) 0}
6738};
d7040cdb 6739
7357c5b6
AM
6740/* This works around a problem in FreeBSD linker */
6741#ifdef FREEBSD_WORKAROUND
6742static const void *lt_preloaded_setup() {
6743 return lt__PROGRAM__LTX_preloaded_symbols;
6744}
ce2cded5 6745#endif
d7040cdb 6746
7357c5b6 6747#ifdef __cplusplus
ce2cded5 6748}
7357c5b6
AM
6749#endif
6750_LT_EOF
6751 # Now try linking the two files.
6752 mv conftest.$ac_objext conftstm.$ac_objext
6753 lt_save_LIBS="$LIBS"
6754 lt_save_CFLAGS="$CFLAGS"
6755 LIBS="conftstm.$ac_objext"
6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
81ecdfbb
RW
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6762 pipe_works=yes
6763 fi
6764 LIBS="$lt_save_LIBS"
6765 CFLAGS="$lt_save_CFLAGS"
6766 else
6767 echo "cannot find nm_test_func in $nlist" >&5
6768 fi
6769 else
6770 echo "cannot find nm_test_var in $nlist" >&5
6771 fi
6772 else
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6774 fi
6775 else
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 fi
b214d478 6779 rm -rf conftest* conftst*
7357c5b6
AM
6780
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6783 break
6784 else
6785 lt_cv_sys_global_symbol_pipe=
6786 fi
6787done
d7040cdb 6788
ce2cded5 6789fi
7357c5b6
AM
6790
6791if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6793fi
7357c5b6 6794if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796$as_echo "failed" >&6; }
7357c5b6 6797else
81ecdfbb
RW
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799$as_echo "ok" >&6; }
ce2cded5 6800fi
d7040cdb 6801
d7040cdb 6802
d7040cdb 6803
d7040cdb 6804
d7040cdb 6805
d7040cdb 6806
d7040cdb 6807
d7040cdb 6808
d7040cdb 6809
d7040cdb 6810
d7040cdb 6811
d7040cdb 6812
7357c5b6
AM
6813
6814
6815
b214d478
SE
6816
6817
6818
6819
6820
7357c5b6
AM
6821
6822
81ecdfbb
RW
6823# Check whether --enable-libtool-lock was given.
6824if test "${enable_libtool_lock+set}" = set; then :
6825 enableval=$enable_libtool_lock;
6826fi
7357c5b6 6827
7357c5b6
AM
6828test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6829
6830# Some flags need to be propagated to the compiler or linker for good
6831# libtool support.
6832case $host in
6833ia64-*-hpux*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
81ecdfbb
RW
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
7357c5b6
AM
6841 case `/usr/bin/file conftest.$ac_objext` in
6842 *ELF-32*)
6843 HPUX_IA64_MODE="32"
6844 ;;
6845 *ELF-64*)
6846 HPUX_IA64_MODE="64"
6847 ;;
6848 esac
6849 fi
6850 rm -rf conftest*
6851 ;;
6852*-*-irix6*)
6853 # Find out which ABI we are using.
3725885a 6854 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
81ecdfbb
RW
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
7357c5b6
AM
6860 if test "$lt_cv_prog_gnu_ld" = yes; then
6861 case `/usr/bin/file conftest.$ac_objext` in
6862 *32-bit*)
6863 LD="${LD-ld} -melf32bsmip"
6864 ;;
6865 *N32*)
6866 LD="${LD-ld} -melf32bmipn32"
6867 ;;
6868 *64-bit*)
6869 LD="${LD-ld} -melf64bmip"
6870 ;;
6871 esac
6872 else
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *32-bit*)
6875 LD="${LD-ld} -32"
6876 ;;
6877 *N32*)
6878 LD="${LD-ld} -n32"
6879 ;;
6880 *64-bit*)
6881 LD="${LD-ld} -64"
6882 ;;
6883 esac
6884 fi
6885 fi
6886 rm -rf conftest*
6887 ;;
6888
cc9afea3 6889x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6890s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
81ecdfbb
RW
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
7357c5b6
AM
6898 case `/usr/bin/file conftest.o` in
6899 *32-bit*)
6900 case $host in
6901 x86_64-*kfreebsd*-gnu)
6902 LD="${LD-ld} -m elf_i386_fbsd"
6903 ;;
6904 x86_64-*linux*)
6d2920c8
L
6905 case `/usr/bin/file conftest.o` in
6906 *x86-64*)
6907 LD="${LD-ld} -m elf32_x86_64"
6908 ;;
6909 *)
6910 LD="${LD-ld} -m elf_i386"
6911 ;;
6912 esac
7357c5b6 6913 ;;
cc9afea3
AM
6914 powerpc64le-*linux*)
6915 LD="${LD-ld} -m elf32lppclinux"
6916 ;;
6917 powerpc64-*linux*)
7357c5b6
AM
6918 LD="${LD-ld} -m elf32ppclinux"
6919 ;;
6920 s390x-*linux*)
6921 LD="${LD-ld} -m elf_s390"
6922 ;;
6923 sparc64-*linux*)
6924 LD="${LD-ld} -m elf32_sparc"
6925 ;;
6926 esac
6927 ;;
6928 *64-bit*)
6929 case $host in
6930 x86_64-*kfreebsd*-gnu)
6931 LD="${LD-ld} -m elf_x86_64_fbsd"
6932 ;;
6933 x86_64-*linux*)
6934 LD="${LD-ld} -m elf_x86_64"
6935 ;;
cc9afea3
AM
6936 powerpcle-*linux*)
6937 LD="${LD-ld} -m elf64lppc"
6938 ;;
6939 powerpc-*linux*)
7357c5b6
AM
6940 LD="${LD-ld} -m elf64ppc"
6941 ;;
6942 s390*-*linux*|s390*-*tpf*)
6943 LD="${LD-ld} -m elf64_s390"
6944 ;;
6945 sparc*-*linux*)
6946 LD="${LD-ld} -m elf64_sparc"
6947 ;;
6948 esac
6949 ;;
6950 esac
6951 fi
6952 rm -rf conftest*
6953 ;;
6954
6955*-*-sco3.2v5*)
6956 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6957 SAVE_CFLAGS="$CFLAGS"
6958 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6960$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6961if test "${lt_cv_cc_needs_belf+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
ce2cded5 6963else
7357c5b6
AM
6964 ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
81ecdfbb 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6971/* end confdefs.h. */
20e95c23 6972
7357c5b6
AM
6973int
6974main ()
6975{
6976
6977 ;
6978 return 0;
6979}
6bf9431b 6980_ACEOF
81ecdfbb 6981if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6982 lt_cv_cc_needs_belf=yes
6bf9431b 6983else
81ecdfbb 6984 lt_cv_cc_needs_belf=no
ce2cded5 6985fi
81ecdfbb
RW
6986rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6988 ac_ext=c
6989ac_cpp='$CPP $CPPFLAGS'
6990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6993
b214d478 6994fi
81ecdfbb
RW
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6996$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
6997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6999 CFLAGS="$SAVE_CFLAGS"
7000 fi
7001 ;;
7002sparc*-*solaris*)
7003 # Find out which ABI we are using.
7004 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
81ecdfbb
RW
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; }; then
b214d478
SE
7010 case `/usr/bin/file conftest.o` in
7011 *64-bit*)
7012 case $lt_cv_prog_gnu_ld in
7013 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7014 *)
7015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7016 LD="${LD-ld} -64"
7017 fi
7018 ;;
7019 esac
7020 ;;
7021 esac
7022 fi
7023 rm -rf conftest*
7024 ;;
7025esac
7026
7027need_locks="$enable_libtool_lock"
7028
7029
7030 case $host_os in
7031 rhapsody* | darwin*)
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
b214d478
SE
7039else
7040 if test -n "$DSYMUTIL"; then
7041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7052 break 2
7053 fi
7054done
81ecdfbb
RW
7055 done
7056IFS=$as_save_IFS
b214d478
SE
7057
7058fi
7059fi
7060DSYMUTIL=$ac_cv_prog_DSYMUTIL
7061if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7063$as_echo "$DSYMUTIL" >&6; }
b214d478 7064else
81ecdfbb
RW
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
b214d478
SE
7067fi
7068
81ecdfbb 7069
b214d478
SE
7070fi
7071if test -z "$ac_cv_prog_DSYMUTIL"; then
7072 ac_ct_DSYMUTIL=$DSYMUTIL
7073 # Extract the first word of "dsymutil", so it can be a program name with args.
7074set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
b214d478
SE
7079else
7080 if test -n "$ac_ct_DSYMUTIL"; then
7081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7092 break 2
7093 fi
7094done
81ecdfbb
RW
7095 done
7096IFS=$as_save_IFS
b214d478 7097
b214d478
SE
7098fi
7099fi
7100ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7101if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7103$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7104else
81ecdfbb
RW
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
b214d478
SE
7107fi
7108
81ecdfbb
RW
7109 if test "x$ac_ct_DSYMUTIL" = x; then
7110 DSYMUTIL=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 DSYMUTIL=$ac_ct_DSYMUTIL
7119 fi
b214d478
SE
7120else
7121 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7122fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128$as_echo_n "checking for $ac_word... " >&6; }
7129if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
b214d478
SE
7131else
7132 if test -n "$NMEDIT"; then
7133 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7144 break 2
7145 fi
7146done
81ecdfbb
RW
7147 done
7148IFS=$as_save_IFS
b214d478
SE
7149
7150fi
7151fi
7152NMEDIT=$ac_cv_prog_NMEDIT
7153if test -n "$NMEDIT"; then
81ecdfbb
RW
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7155$as_echo "$NMEDIT" >&6; }
b214d478 7156else
81ecdfbb
RW
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
b214d478
SE
7159fi
7160
81ecdfbb 7161
b214d478
SE
7162fi
7163if test -z "$ac_cv_prog_NMEDIT"; then
7164 ac_ct_NMEDIT=$NMEDIT
7165 # Extract the first word of "nmedit", so it can be a program name with args.
7166set dummy nmedit; ac_word=$2
81ecdfbb
RW
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168$as_echo_n "checking for $ac_word... " >&6; }
7169if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
b214d478
SE
7171else
7172 if test -n "$ac_ct_NMEDIT"; then
7173 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7182 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7184 break 2
7185 fi
7186done
81ecdfbb
RW
7187 done
7188IFS=$as_save_IFS
b214d478 7189
b214d478
SE
7190fi
7191fi
7192ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7195$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7196else
81ecdfbb
RW
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
b214d478
SE
7199fi
7200
81ecdfbb
RW
7201 if test "x$ac_ct_NMEDIT" = x; then
7202 NMEDIT=":"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205yes:)
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208ac_tool_warned=yes ;;
7209esac
7210 NMEDIT=$ac_ct_NMEDIT
7211 fi
b214d478
SE
7212else
7213 NMEDIT="$ac_cv_prog_NMEDIT"
7214fi
7215
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7218set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220$as_echo_n "checking for $ac_word... " >&6; }
7221if test "${ac_cv_prog_LIPO+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
b214d478
SE
7223else
7224 if test -n "$LIPO"; then
7225 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7234 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7236 break 2
7237 fi
7238done
81ecdfbb
RW
7239 done
7240IFS=$as_save_IFS
b214d478
SE
7241
7242fi
7243fi
7244LIPO=$ac_cv_prog_LIPO
7245if test -n "$LIPO"; then
81ecdfbb
RW
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7247$as_echo "$LIPO" >&6; }
b214d478 7248else
81ecdfbb
RW
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
b214d478
SE
7251fi
7252
81ecdfbb 7253
b214d478
SE
7254fi
7255if test -z "$ac_cv_prog_LIPO"; then
7256 ac_ct_LIPO=$LIPO
7257 # Extract the first word of "lipo", so it can be a program name with args.
7258set dummy lipo; ac_word=$2
81ecdfbb
RW
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
b214d478
SE
7263else
7264 if test -n "$ac_ct_LIPO"; then
7265 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7274 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7276 break 2
7277 fi
7278done
81ecdfbb
RW
7279 done
7280IFS=$as_save_IFS
b214d478 7281
b214d478
SE
7282fi
7283fi
7284ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7285if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7287$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7288else
81ecdfbb
RW
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
b214d478
SE
7291fi
7292
81ecdfbb
RW
7293 if test "x$ac_ct_LIPO" = x; then
7294 LIPO=":"
7295 else
7296 case $cross_compiling:$ac_tool_warned in
7297yes:)
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300ac_tool_warned=yes ;;
7301esac
7302 LIPO=$ac_ct_LIPO
7303 fi
b214d478
SE
7304else
7305 LIPO="$ac_cv_prog_LIPO"
7306fi
7307
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if test "${ac_cv_prog_OTOOL+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
b214d478
SE
7315else
7316 if test -n "$OTOOL"; then
7317 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7326 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7328 break 2
7329 fi
7330done
81ecdfbb
RW
7331 done
7332IFS=$as_save_IFS
b214d478
SE
7333
7334fi
7335fi
7336OTOOL=$ac_cv_prog_OTOOL
7337if test -n "$OTOOL"; then
81ecdfbb
RW
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7339$as_echo "$OTOOL" >&6; }
b214d478 7340else
81ecdfbb
RW
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
b214d478
SE
7343fi
7344
81ecdfbb 7345
b214d478
SE
7346fi
7347if test -z "$ac_cv_prog_OTOOL"; then
7348 ac_ct_OTOOL=$OTOOL
7349 # Extract the first word of "otool", so it can be a program name with args.
7350set dummy otool; ac_word=$2
81ecdfbb
RW
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
b214d478
SE
7355else
7356 if test -n "$ac_ct_OTOOL"; then
7357 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7366 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7368 break 2
7369 fi
7370done
81ecdfbb
RW
7371 done
7372IFS=$as_save_IFS
b214d478 7373
b214d478
SE
7374fi
7375fi
7376ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7377if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7379$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7380else
81ecdfbb
RW
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
b214d478
SE
7383fi
7384
81ecdfbb
RW
7385 if test "x$ac_ct_OTOOL" = x; then
7386 OTOOL=":"
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389yes:)
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392ac_tool_warned=yes ;;
7393esac
7394 OTOOL=$ac_ct_OTOOL
7395 fi
b214d478
SE
7396else
7397 OTOOL="$ac_cv_prog_OTOOL"
7398fi
7399
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
7405if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
b214d478
SE
7407else
7408 if test -n "$OTOOL64"; then
7409 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7418 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7420 break 2
7421 fi
7422done
81ecdfbb
RW
7423 done
7424IFS=$as_save_IFS
b214d478
SE
7425
7426fi
7427fi
7428OTOOL64=$ac_cv_prog_OTOOL64
7429if test -n "$OTOOL64"; then
81ecdfbb
RW
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7431$as_echo "$OTOOL64" >&6; }
b214d478 7432else
81ecdfbb
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
b214d478
SE
7435fi
7436
81ecdfbb 7437
b214d478
SE
7438fi
7439if test -z "$ac_cv_prog_OTOOL64"; then
7440 ac_ct_OTOOL64=$OTOOL64
7441 # Extract the first word of "otool64", so it can be a program name with args.
7442set dummy otool64; ac_word=$2
81ecdfbb
RW
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
b214d478
SE
7447else
7448 if test -n "$ac_ct_OTOOL64"; then
7449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7458 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7460 break 2
7461 fi
7462done
81ecdfbb
RW
7463 done
7464IFS=$as_save_IFS
b214d478 7465
b214d478
SE
7466fi
7467fi
7468ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7469if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7471$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7472else
81ecdfbb
RW
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
b214d478
SE
7475fi
7476
81ecdfbb
RW
7477 if test "x$ac_ct_OTOOL64" = x; then
7478 OTOOL64=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481yes:)
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484ac_tool_warned=yes ;;
7485esac
7486 OTOOL64=$ac_ct_OTOOL64
7487 fi
b214d478
SE
7488else
7489 OTOOL64="$ac_cv_prog_OTOOL64"
7490fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
81ecdfbb
RW
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7519$as_echo_n "checking for -single_module linker flag... " >&6; }
7520if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
b214d478
SE
7522else
7523 lt_cv_apple_cc_single_mod=no
7524 if test -z "${LT_MULTI_MODULE}"; then
7525 # By default we will add the -single_module flag. You can override
7526 # by either setting the environment variable LT_MULTI_MODULE
7527 # non-empty at configure time, or by adding -multi_module to the
7528 # link flags.
7529 rm -rf libconftest.dylib*
7530 echo "int foo(void){return 1;}" > conftest.c
7531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532-dynamiclib -Wl,-single_module conftest.c" >&5
7533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7535 _lt_result=$?
7536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7537 lt_cv_apple_cc_single_mod=yes
7538 else
7539 cat conftest.err >&5
7540 fi
7541 rm -rf libconftest.dylib*
7542 rm -f conftest.*
7543 fi
7544fi
81ecdfbb
RW
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7546$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7548$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7549if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
b214d478
SE
7551else
7552 lt_cv_ld_exported_symbols_list=no
7553 save_LDFLAGS=$LDFLAGS
7554 echo "_main" > conftest.sym
7555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7557/* end confdefs.h. */
7558
7559int
7560main ()
7561{
7562
7563 ;
7564 return 0;
7565}
7566_ACEOF
81ecdfbb 7567if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7568 lt_cv_ld_exported_symbols_list=yes
7569else
81ecdfbb 7570 lt_cv_ld_exported_symbols_list=no
b214d478 7571fi
81ecdfbb
RW
7572rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7574 LDFLAGS="$save_LDFLAGS"
7575
7576fi
81ecdfbb
RW
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7578$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7580$as_echo_n "checking for -force_load linker flag... " >&6; }
7581if test "${lt_cv_ld_force_load+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583else
7584 lt_cv_ld_force_load=no
7585 cat > conftest.c << _LT_EOF
7586int forced_loaded() { return 2;}
7587_LT_EOF
7588 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7589 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7590 echo "$AR cru libconftest.a conftest.o" >&5
7591 $AR cru libconftest.a conftest.o 2>&5
7592 cat > conftest.c << _LT_EOF
7593int main() { return 0;}
7594_LT_EOF
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7596 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7597 _lt_result=$?
7598 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7599 lt_cv_ld_force_load=yes
7600 else
7601 cat conftest.err >&5
7602 fi
7603 rm -f conftest.err libconftest.a conftest conftest.c
7604 rm -rf conftest.dSYM
7605
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7608$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
7609 case $host_os in
7610 rhapsody* | darwin1.[012])
7611 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7612 darwin1.*)
7613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7614 darwin*) # darwin 5.x on
7615 # if running on 10.5 or later, the deployment target defaults
7616 # to the OS version, if on x86, and 10.4, the deployment
7617 # target defaults to 10.4. Don't you love it?
7618 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7619 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621 10.[012]*)
7622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7623 10.*)
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7625 esac
7626 ;;
7627 esac
7628 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7629 _lt_dar_single_mod='$single_module'
7630 fi
7631 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7632 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7633 else
7634 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 fi
3725885a 7636 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
7637 _lt_dsymutil='~$DSYMUTIL $lib || :'
7638 else
7639 _lt_dsymutil=
7640 fi
7641 ;;
7642 esac
7643
b214d478 7644for ac_header in dlfcn.h
81ecdfbb
RW
7645do :
7646 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7647"
7648if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7649 cat >>confdefs.h <<_ACEOF
81ecdfbb 7650#define HAVE_DLFCN_H 1
b214d478
SE
7651_ACEOF
7652
7653fi
7654
7655done
7656
7657
7658
3725885a
RW
7659
7660
b214d478
SE
7661# Set options
7662
7663
7664
7665 enable_dlopen=no
7666
7667
7668 enable_win32_dll=no
7669
7670
81ecdfbb
RW
7671 # Check whether --enable-shared was given.
7672if test "${enable_shared+set}" = set; then :
7673 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7674 case $enableval in
7675 yes) enable_shared=yes ;;
7676 no) enable_shared=no ;;
7677 *)
7678 enable_shared=no
7679 # Look at the argument we got. We use all the common list separators.
7680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 for pkg in $enableval; do
7682 IFS="$lt_save_ifs"
7683 if test "X$pkg" = "X$p"; then
7684 enable_shared=yes
7685 fi
7686 done
7687 IFS="$lt_save_ifs"
7688 ;;
7689 esac
7690else
7691 enable_shared=yes
81ecdfbb
RW
7692fi
7693
b214d478
SE
7694
7695
7696
7697
7698
7699
7700
7701
81ecdfbb
RW
7702 # Check whether --enable-static was given.
7703if test "${enable_static+set}" = set; then :
7704 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7705 case $enableval in
7706 yes) enable_static=yes ;;
7707 no) enable_static=no ;;
7708 *)
7709 enable_static=no
7710 # Look at the argument we got. We use all the common list separators.
7711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712 for pkg in $enableval; do
7713 IFS="$lt_save_ifs"
7714 if test "X$pkg" = "X$p"; then
7715 enable_static=yes
7716 fi
7717 done
7718 IFS="$lt_save_ifs"
7719 ;;
7720 esac
7721else
7722 enable_static=yes
81ecdfbb
RW
7723fi
7724
b214d478
SE
7725
7726
7727
7728
7729
7730
7731
7732
7733
81ecdfbb
RW
7734# Check whether --with-pic was given.
7735if test "${with_pic+set}" = set; then :
7736 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7737else
7738 pic_mode=default
81ecdfbb
RW
7739fi
7740
b214d478
SE
7741
7742test -z "$pic_mode" && pic_mode=default
7743
7744
7745
7746
7747
7748
7749
81ecdfbb
RW
7750 # Check whether --enable-fast-install was given.
7751if test "${enable_fast_install+set}" = set; then :
7752 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7753 case $enableval in
7754 yes) enable_fast_install=yes ;;
7755 no) enable_fast_install=no ;;
7756 *)
7757 enable_fast_install=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_fast_install=yes
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7357c5b6
AM
7767 ;;
7768 esac
b214d478
SE
7769else
7770 enable_fast_install=yes
81ecdfbb
RW
7771fi
7772
d7040cdb 7773
ce2cded5
L
7774
7775
ce2cded5 7776
252b5132 7777
d7040cdb 7778
252b5132 7779
6bf9431b 7780
252b5132 7781
6bf9431b 7782
ce2cded5
L
7783# This can be used to rebuild libtool when needed
7784LIBTOOL_DEPS="$ltmain"
6bf9431b 7785
ce2cded5
L
7786# Always use our own libtool.
7787LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7788
6bf9431b 7789
252b5132 7790
6bf9431b 7791
252b5132 7792
252b5132 7793
d7040cdb 7794
6bf9431b 7795
252b5132 7796
d7040cdb 7797
d7040cdb 7798
d7040cdb 7799
d7040cdb 7800
d7040cdb 7801
d7040cdb 7802
d7040cdb 7803
d7040cdb 7804
d7040cdb 7805
d7040cdb 7806
d7040cdb 7807
d7040cdb
SE
7808
7809
7810
3725885a 7811
d7040cdb
SE
7812
7813
ce2cded5 7814test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
ce2cded5
L
7829if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7831fi
d7040cdb 7832
81ecdfbb
RW
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7834$as_echo_n "checking for objdir... " >&6; }
7835if test "${lt_cv_objdir+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
ce2cded5
L
7837else
7838 rm -f .libs 2>/dev/null
7839mkdir .libs 2>/dev/null
7840if test -d .libs; then
7841 lt_cv_objdir=.libs
7842else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7845fi
7846rmdir .libs 2>/dev/null
7847fi
81ecdfbb
RW
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7849$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7850objdir=$lt_cv_objdir
d7040cdb
SE
7851
7852
7853
7854
7855
ce2cded5
L
7856cat >>confdefs.h <<_ACEOF
7857#define LT_OBJDIR "$lt_cv_objdir/"
7858_ACEOF
d7040cdb
SE
7859
7860
7861
7862
ce2cded5
L
7863case $host_os in
7864aix3*)
7865 # AIX sometimes has problems with the GCC collect2 program. For some
7866 # reason, if we set the COLLECT_NAMES environment variable, the problems
7867 # vanish in a puff of smoke.
7868 if test "X${COLLECT_NAMES+set}" != Xset; then
7869 COLLECT_NAMES=
7870 export COLLECT_NAMES
7871 fi
7872 ;;
7873esac
d7040cdb 7874
ce2cded5
L
7875# Global variables:
7876ofile=libtool
7877can_build_shared=yes
d7040cdb 7878
ce2cded5
L
7879# All known linkers require a `.a' archive for static linking (except MSVC,
7880# which needs '.lib').
7881libext=a
d7040cdb 7882
ce2cded5 7883with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7884
ce2cded5
L
7885old_CC="$CC"
7886old_CFLAGS="$CFLAGS"
d7040cdb 7887
ce2cded5
L
7888# Set sane defaults for various variables
7889test -z "$CC" && CC=cc
7890test -z "$LTCC" && LTCC=$CC
7891test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7892test -z "$LD" && LD=ld
7893test -z "$ac_objext" && ac_objext=o
d7040cdb 7894
ce2cded5
L
7895for cc_temp in $compiler""; do
7896 case $cc_temp in
7897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7899 \-*) ;;
7900 *) break;;
7901 esac
7902done
3725885a 7903cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7904
7905
ce2cded5
L
7906# Only perform the check for file, if the check method requires it
7907test -z "$MAGIC_CMD" && MAGIC_CMD=file
7908case $deplibs_check_method in
7909file_magic*)
7910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7912$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7913if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
ce2cded5
L
7915else
7916 case $MAGIC_CMD in
7917[\\/*] | ?:[\\/]*)
7918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7919 ;;
7920*)
7921 lt_save_MAGIC_CMD="$MAGIC_CMD"
7922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7924 for ac_dir in $ac_dummy; do
7925 IFS="$lt_save_ifs"
7926 test -z "$ac_dir" && ac_dir=.
7927 if test -f $ac_dir/${ac_tool_prefix}file; then
7928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7929 if test -n "$file_magic_test_file"; then
7930 case $deplibs_check_method in
7931 "file_magic "*)
7932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7935 $EGREP "$file_magic_regex" > /dev/null; then
7936 :
7937 else
7938 cat <<_LT_EOF 1>&2
d7040cdb 7939
ce2cded5
L
7940*** Warning: the command libtool uses to detect shared libraries,
7941*** $file_magic_cmd, produces output that libtool cannot recognize.
7942*** The result is that libtool may fail to recognize shared libraries
7943*** as such. This will affect the creation of libtool libraries that
7944*** depend on shared libraries, but programs linked with such libtool
7945*** libraries will work regardless of this problem. Nevertheless, you
7946*** may want to report the problem to your system manager and/or to
7947*** bug-libtool@gnu.org
d7040cdb 7948
ce2cded5
L
7949_LT_EOF
7950 fi ;;
7951 esac
7952 fi
7953 break
7954 fi
7955 done
7956 IFS="$lt_save_ifs"
7957 MAGIC_CMD="$lt_save_MAGIC_CMD"
7958 ;;
7959esac
7960fi
d7040cdb 7961
ce2cded5
L
7962MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7965$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7966else
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
ce2cded5 7969fi
d7040cdb
SE
7970
7971
7972
7973
7974
ce2cded5
L
7975if test -z "$lt_cv_path_MAGIC_CMD"; then
7976 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7978$as_echo_n "checking for file... " >&6; }
7979if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
ce2cded5
L
7981else
7982 case $MAGIC_CMD in
7983[\\/*] | ?:[\\/]*)
7984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7985 ;;
7986*)
7987 lt_save_MAGIC_CMD="$MAGIC_CMD"
7988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7989 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7990 for ac_dir in $ac_dummy; do
7991 IFS="$lt_save_ifs"
7992 test -z "$ac_dir" && ac_dir=.
7993 if test -f $ac_dir/file; then
7994 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7995 if test -n "$file_magic_test_file"; then
7996 case $deplibs_check_method in
7997 "file_magic "*)
7998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8001 $EGREP "$file_magic_regex" > /dev/null; then
8002 :
8003 else
8004 cat <<_LT_EOF 1>&2
d7040cdb 8005
ce2cded5
L
8006*** Warning: the command libtool uses to detect shared libraries,
8007*** $file_magic_cmd, produces output that libtool cannot recognize.
8008*** The result is that libtool may fail to recognize shared libraries
8009*** as such. This will affect the creation of libtool libraries that
8010*** depend on shared libraries, but programs linked with such libtool
8011*** libraries will work regardless of this problem. Nevertheless, you
8012*** may want to report the problem to your system manager and/or to
8013*** bug-libtool@gnu.org
d7040cdb 8014
ce2cded5
L
8015_LT_EOF
8016 fi ;;
8017 esac
8018 fi
8019 break
8020 fi
8021 done
8022 IFS="$lt_save_ifs"
8023 MAGIC_CMD="$lt_save_MAGIC_CMD"
8024 ;;
8025esac
8026fi
d7040cdb 8027
ce2cded5
L
8028MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8031$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8032else
81ecdfbb
RW
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
ce2cded5 8035fi
d7040cdb
SE
8036
8037
ce2cded5
L
8038 else
8039 MAGIC_CMD=:
8040 fi
8041fi
d7040cdb 8042
ce2cded5
L
8043 fi
8044 ;;
8045esac
d7040cdb 8046
ce2cded5 8047# Use C for the default configuration in the libtool script
d7040cdb 8048
ce2cded5
L
8049lt_save_CC="$CC"
8050ac_ext=c
8051ac_cpp='$CPP $CPPFLAGS'
8052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8055
8056
ce2cded5
L
8057# Source file extension for C test sources.
8058ac_ext=c
d7040cdb 8059
ce2cded5
L
8060# Object file extension for compiled C test sources.
8061objext=o
8062objext=$objext
d7040cdb 8063
ce2cded5
L
8064# Code to be used in simple compile tests
8065lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8066
ce2cded5
L
8067# Code to be used in simple link tests
8068lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8069
8070
8071
8072
8073
8074
8075
ce2cded5
L
8076# If no C compiler was specified, use CC.
8077LTCC=${LTCC-"$CC"}
d7040cdb 8078
ce2cded5
L
8079# If no C compiler flags were specified, use CFLAGS.
8080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8081
ce2cded5
L
8082# Allow CC to be a program name with arguments.
8083compiler=$CC
d7040cdb 8084
ce2cded5
L
8085# Save the default compiler, since it gets overwritten when the other
8086# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8087compiler_DEFAULT=$CC
d7040cdb 8088
ce2cded5
L
8089# save warnings/boilerplate of simple test code
8090ac_outfile=conftest.$ac_objext
8091echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8092eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8093_lt_compiler_boilerplate=`cat conftest.err`
8094$RM conftest*
d7040cdb 8095
ce2cded5
L
8096ac_outfile=conftest.$ac_objext
8097echo "$lt_simple_link_test_code" >conftest.$ac_ext
8098eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8099_lt_linker_boilerplate=`cat conftest.err`
b214d478 8100$RM -r conftest*
d7040cdb
SE
8101
8102
ce2cded5
L
8103## CAVEAT EMPTOR:
8104## There is no encapsulation within the following macros, do not change
8105## the running order or otherwise move them around unless you know exactly
8106## what you are doing...
8107if test -n "$compiler"; then
d7040cdb 8108
ce2cded5 8109lt_prog_compiler_no_builtin_flag=
d7040cdb 8110
ce2cded5 8111if test "$GCC" = yes; then
3725885a
RW
8112 case $cc_basename in
8113 nvcc*)
8114 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8115 *)
8116 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8117 esac
d7040cdb 8118
81ecdfbb
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8120$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8121if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
ce2cded5
L
8123else
8124 lt_cv_prog_compiler_rtti_exceptions=no
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 lt_compiler_flag="-fno-rtti -fno-exceptions"
8128 # Insert the option either (1) after the last *FLAGS variable, or
8129 # (2) before a word containing "conftest.", or (3) at the end.
8130 # Note that $ac_compile itself does not contain backslashes and begins
8131 # with a dollar sign (not a hyphen), so the echo should work correctly.
8132 # The option is referenced via a variable to avoid confusing sed.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
3725885a 8137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8138 (eval "$lt_compile" 2>conftest.err)
8139 ac_status=$?
8140 cat conftest.err >&5
3725885a 8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8142 if (exit $ac_status) && test -s "$ac_outfile"; then
8143 # The compiler can only warn and ignore the option if not recognized
8144 # So say no if there are warnings other than the usual output.
3725885a 8145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8148 lt_cv_prog_compiler_rtti_exceptions=yes
8149 fi
8150 fi
8151 $RM conftest*
d7040cdb 8152
ce2cded5 8153fi
81ecdfbb
RW
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8155$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8156
ce2cded5
L
8157if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8158 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8159else
8160 :
8161fi
d7040cdb 8162
ce2cded5 8163fi
d7040cdb
SE
8164
8165
8166
8167
8168
8169
ce2cded5
L
8170 lt_prog_compiler_wl=
8171lt_prog_compiler_pic=
8172lt_prog_compiler_static=
d7040cdb 8173
81ecdfbb
RW
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8175$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8176
ce2cded5
L
8177 if test "$GCC" = yes; then
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_static='-static'
d7040cdb 8180
ce2cded5
L
8181 case $host_os in
8182 aix*)
8183 # All AIX code is PIC.
8184 if test "$host_cpu" = ia64; then
8185 # AIX 5 now supports IA64 processor
8186 lt_prog_compiler_static='-Bstatic'
8187 fi
6c9c0a50 8188 lt_prog_compiler_pic='-fPIC'
ce2cded5 8189 ;;
d7040cdb 8190
ce2cded5 8191 amigaos*)
b214d478
SE
8192 case $host_cpu in
8193 powerpc)
8194 # see comment about AmigaOS4 .so support
8195 lt_prog_compiler_pic='-fPIC'
8196 ;;
8197 m68k)
8198 # FIXME: we need at least 68020 code to build shared libraries, but
8199 # adding the `-m68020' flag to GCC prevents building anything better,
8200 # like `-m68040'.
8201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8202 ;;
8203 esac
ce2cded5 8204 ;;
d7040cdb 8205
ce2cded5
L
8206 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8207 # PIC is the default for these OSes.
8208 ;;
d7040cdb 8209
b214d478 8210 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8211 # This hack is so that the source file can tell whether it is being
8212 # built for inclusion in a dll (and should export symbols for example).
8213 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8214 # (--disable-auto-import) libraries
8215 lt_prog_compiler_pic='-DDLL_EXPORT'
8216 ;;
d7040cdb 8217
ce2cded5
L
8218 darwin* | rhapsody*)
8219 # PIC is the default on this platform
8220 # Common symbols not allowed in MH_DYLIB files
8221 lt_prog_compiler_pic='-fno-common'
8222 ;;
d7040cdb 8223
3725885a
RW
8224 haiku*)
8225 # PIC is the default for Haiku.
8226 # The "-static" flag exists, but is broken.
8227 lt_prog_compiler_static=
8228 ;;
8229
ce2cded5 8230 hpux*)
b214d478
SE
8231 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8232 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8233 # sets the default TLS model and affects inlining.
ce2cded5 8234 case $host_cpu in
b214d478 8235 hppa*64*)
ce2cded5
L
8236 # +Z the default
8237 ;;
8238 *)
8239 lt_prog_compiler_pic='-fPIC'
8240 ;;
8241 esac
8242 ;;
d7040cdb 8243
ce2cded5
L
8244 interix[3-9]*)
8245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8246 # Instead, we relocate shared libraries at runtime.
8247 ;;
d7040cdb 8248
ce2cded5
L
8249 msdosdjgpp*)
8250 # Just because we use GCC doesn't mean we suddenly get shared libraries
8251 # on systems that don't support them.
8252 lt_prog_compiler_can_build_shared=no
8253 enable_shared=no
8254 ;;
d7040cdb 8255
ce2cded5
L
8256 *nto* | *qnx*)
8257 # QNX uses GNU C++, but need to define -shared option too, otherwise
8258 # it will coredump.
8259 lt_prog_compiler_pic='-fPIC -shared'
8260 ;;
d7040cdb 8261
ce2cded5
L
8262 sysv4*MP*)
8263 if test -d /usr/nec; then
8264 lt_prog_compiler_pic=-Kconform_pic
8265 fi
8266 ;;
d7040cdb 8267
ce2cded5
L
8268 *)
8269 lt_prog_compiler_pic='-fPIC'
8270 ;;
8271 esac
3725885a
RW
8272
8273 case $cc_basename in
8274 nvcc*) # Cuda Compiler Driver 2.2
8275 lt_prog_compiler_wl='-Xlinker '
8276 lt_prog_compiler_pic='-Xcompiler -fPIC'
8277 ;;
8278 esac
ce2cded5
L
8279 else
8280 # PORTME Check for flag to pass linker flags through the system compiler.
8281 case $host_os in
8282 aix*)
8283 lt_prog_compiler_wl='-Wl,'
8284 if test "$host_cpu" = ia64; then
8285 # AIX 5 now supports IA64 processor
8286 lt_prog_compiler_static='-Bstatic'
8287 else
8288 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8289 fi
8290 ;;
d7040cdb 8291
b214d478 8292 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8293 # This hack is so that the source file can tell whether it is being
8294 # built for inclusion in a dll (and should export symbols for example).
8295 lt_prog_compiler_pic='-DDLL_EXPORT'
8296 ;;
d7040cdb 8297
ce2cded5
L
8298 hpux9* | hpux10* | hpux11*)
8299 lt_prog_compiler_wl='-Wl,'
8300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8301 # not for PA HP-UX.
8302 case $host_cpu in
8303 hppa*64*|ia64*)
8304 # +Z the default
8305 ;;
8306 *)
8307 lt_prog_compiler_pic='+Z'
8308 ;;
8309 esac
8310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8311 lt_prog_compiler_static='${wl}-a ${wl}archive'
8312 ;;
d7040cdb 8313
ce2cded5
L
8314 irix5* | irix6* | nonstopux*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # PIC (with -KPIC) is the default.
8317 lt_prog_compiler_static='-non_shared'
8318 ;;
d7040cdb 8319
58e24671 8320 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8321 case $cc_basename in
b214d478
SE
8322 # old Intel for x86_64 which still supported -KPIC.
8323 ecc*)
ce2cded5
L
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-static'
8327 ;;
b214d478
SE
8328 # icc used to be incompatible with GCC.
8329 # ICC 10 doesn't accept -KPIC any more.
8330 icc* | ifort*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-fPIC'
8333 lt_prog_compiler_static='-static'
8334 ;;
8335 # Lahey Fortran 8.1.
8336 lf95*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='--shared'
8339 lt_prog_compiler_static='--static'
8340 ;;
3725885a 8341 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8342 # Portland Group compilers (*not* the Pentium gcc compiler,
8343 # which looks to be a dead project)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fpic'
8346 lt_prog_compiler_static='-Bstatic'
8347 ;;
8348 ccc*)
8349 lt_prog_compiler_wl='-Wl,'
8350 # All Alpha code is PIC.
8351 lt_prog_compiler_static='-non_shared'
8352 ;;
3725885a
RW
8353 xl* | bgxl* | bgf* | mpixl*)
8354 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-qpic'
8357 lt_prog_compiler_static='-qstaticlink'
8358 ;;
ce2cded5
L
8359 *)
8360 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8361 *Sun\ F* | *Sun*Fortran*)
8362 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8363 lt_prog_compiler_pic='-KPIC'
8364 lt_prog_compiler_static='-Bstatic'
3725885a 8365 lt_prog_compiler_wl=''
ce2cded5 8366 ;;
3725885a
RW
8367 *Sun\ C*)
8368 # Sun C 5.9
ce2cded5
L
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
3725885a 8371 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 ;;
d7040cdb 8377
ce2cded5
L
8378 newsos6)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
d7040cdb 8382
ce2cded5
L
8383 *nto* | *qnx*)
8384 # QNX uses GNU C++, but need to define -shared option too, otherwise
8385 # it will coredump.
8386 lt_prog_compiler_pic='-fPIC -shared'
8387 ;;
d7040cdb 8388
ce2cded5
L
8389 osf3* | osf4* | osf5*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # All OSF/1 code is PIC.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
d7040cdb 8394
ce2cded5
L
8395 rdos*)
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
d7040cdb 8398
ce2cded5
L
8399 solaris*)
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 case $cc_basename in
8403 f77* | f90* | f95*)
8404 lt_prog_compiler_wl='-Qoption ld ';;
8405 *)
8406 lt_prog_compiler_wl='-Wl,';;
8407 esac
8408 ;;
d7040cdb 8409
ce2cded5
L
8410 sunos4*)
8411 lt_prog_compiler_wl='-Qoption ld '
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
d7040cdb 8415
ce2cded5
L
8416 sysv4 | sysv4.2uw2* | sysv4.3*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 ;;
d7040cdb 8421
ce2cded5
L
8422 sysv4*MP*)
8423 if test -d /usr/nec ;then
8424 lt_prog_compiler_pic='-Kconform_pic'
8425 lt_prog_compiler_static='-Bstatic'
8426 fi
8427 ;;
d7040cdb 8428
ce2cded5
L
8429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
d7040cdb 8434
ce2cded5
L
8435 unicos*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
d7040cdb 8439
ce2cded5
L
8440 uts4*)
8441 lt_prog_compiler_pic='-pic'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
d7040cdb 8444
ce2cded5
L
8445 *)
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448 esac
8449 fi
d7040cdb 8450
ce2cded5
L
8451case $host_os in
8452 # For platforms which do not support PIC, -DPIC is meaningless:
8453 *djgpp*)
8454 lt_prog_compiler_pic=
8455 ;;
8456 *)
8457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458 ;;
8459esac
81ecdfbb
RW
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8461$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8462
8463
8464
8465
8466
8467
ce2cded5
L
8468#
8469# Check to make sure the PIC flag actually works.
8470#
8471if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8473$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8474if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8475 $as_echo_n "(cached) " >&6
ce2cded5 8476else
b214d478 8477 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8478 ac_outfile=conftest.$ac_objext
8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 # The option is referenced via a variable to avoid confusing sed.
8486 lt_compile=`echo "$ac_compile" | $SED \
8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489 -e 's:$: $lt_compiler_flag:'`
3725885a 8490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8491 (eval "$lt_compile" 2>conftest.err)
8492 ac_status=$?
8493 cat conftest.err >&5
3725885a 8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8495 if (exit $ac_status) && test -s "$ac_outfile"; then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings other than the usual output.
3725885a 8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8501 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8502 fi
8503 fi
8504 $RM conftest*
d7040cdb 8505
ce2cded5 8506fi
81ecdfbb
RW
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8508$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8509
b214d478 8510if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8511 case $lt_prog_compiler_pic in
8512 "" | " "*) ;;
8513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8514 esac
8515else
8516 lt_prog_compiler_pic=
8517 lt_prog_compiler_can_build_shared=no
8518fi
d7040cdb 8519
ce2cded5 8520fi
d7040cdb
SE
8521
8522
8523
8524
8525
8526
ce2cded5
L
8527#
8528# Check to make sure the static flag actually works.
8529#
8530wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8532$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8533if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
ce2cded5 8535else
b214d478 8536 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8537 save_LDFLAGS="$LDFLAGS"
8538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8541 # The linker can only warn and ignore the option if not recognized
8542 # So say no if there are warnings
8543 if test -s conftest.err; then
8544 # Append any errors to the config.log.
8545 cat conftest.err 1>&5
3725885a 8546 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8549 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8550 fi
8551 else
b214d478 8552 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8553 fi
8554 fi
b214d478 8555 $RM -r conftest*
ce2cded5 8556 LDFLAGS="$save_LDFLAGS"
d7040cdb 8557
ce2cded5 8558fi
81ecdfbb
RW
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8560$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8561
b214d478 8562if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8563 :
8564else
8565 lt_prog_compiler_static=
8566fi
d7040cdb
SE
8567
8568
8569
8570
8571
8572
8573
81ecdfbb
RW
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8575$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8576if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
ce2cded5
L
8578else
8579 lt_cv_prog_compiler_c_o=no
8580 $RM -r conftest 2>/dev/null
8581 mkdir conftest
8582 cd conftest
8583 mkdir out
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8585
ce2cded5
L
8586 lt_compiler_flag="-o out/conftest2.$ac_objext"
8587 # Insert the option either (1) after the last *FLAGS variable, or
8588 # (2) before a word containing "conftest.", or (3) at the end.
8589 # Note that $ac_compile itself does not contain backslashes and begins
8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
3725885a 8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8596 (eval "$lt_compile" 2>out/conftest.err)
8597 ac_status=$?
8598 cat out/conftest.err >&5
3725885a 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8601 then
8602 # The compiler can only warn and ignore the option if not recognized
8603 # So say no if there are warnings
3725885a 8604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8607 lt_cv_prog_compiler_c_o=yes
8608 fi
8609 fi
8610 chmod u+w . 2>&5
8611 $RM conftest*
8612 # SGI C++ compiler will create directory out/ii_files/ for
8613 # template instantiation
8614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8615 $RM out/* && rmdir out
8616 cd ..
8617 $RM -r conftest
8618 $RM conftest*
8619
8620fi
81ecdfbb
RW
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8622$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8623
8624
8625
8626
8627
8628
81ecdfbb
RW
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8630$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8631if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
d7040cdb 8633else
ce2cded5
L
8634 lt_cv_prog_compiler_c_o=no
8635 $RM -r conftest 2>/dev/null
8636 mkdir conftest
8637 cd conftest
8638 mkdir out
8639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8640
8641 lt_compiler_flag="-o out/conftest2.$ac_objext"
8642 # Insert the option either (1) after the last *FLAGS variable, or
8643 # (2) before a word containing "conftest.", or (3) at the end.
8644 # Note that $ac_compile itself does not contain backslashes and begins
8645 # with a dollar sign (not a hyphen), so the echo should work correctly.
8646 lt_compile=`echo "$ac_compile" | $SED \
8647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649 -e 's:$: $lt_compiler_flag:'`
3725885a 8650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8651 (eval "$lt_compile" 2>out/conftest.err)
8652 ac_status=$?
8653 cat out/conftest.err >&5
3725885a 8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8656 then
8657 # The compiler can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
3725885a 8659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8662 lt_cv_prog_compiler_c_o=yes
8663 fi
8664 fi
8665 chmod u+w . 2>&5
8666 $RM conftest*
8667 # SGI C++ compiler will create directory out/ii_files/ for
8668 # template instantiation
8669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8670 $RM out/* && rmdir out
8671 cd ..
8672 $RM -r conftest
8673 $RM conftest*
8674
d7040cdb 8675fi
81ecdfbb
RW
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8677$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8678
d7040cdb 8679
d7040cdb 8680
d7040cdb 8681
ce2cded5
L
8682hard_links="nottested"
8683if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8684 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8686$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8687 hard_links=yes
8688 $RM conftest*
8689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8690 touch conftest.a
8691 ln conftest.a conftest.b 2>&5 || hard_links=no
8692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8694$as_echo "$hard_links" >&6; }
ce2cded5 8695 if test "$hard_links" = no; then
81ecdfbb
RW
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8697$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8698 need_locks=warn
d7040cdb 8699 fi
ce2cded5
L
8700else
8701 need_locks=no
8702fi
d7040cdb 8703
d7040cdb 8704
d7040cdb 8705
d7040cdb 8706
d7040cdb 8707
d7040cdb 8708
81ecdfbb
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8710$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8711
ce2cded5
L
8712 runpath_var=
8713 allow_undefined_flag=
8714 always_export_symbols=no
8715 archive_cmds=
8716 archive_expsym_cmds=
8717 compiler_needs_object=no
8718 enable_shared_with_static_runtimes=no
8719 export_dynamic_flag_spec=
8720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8721 hardcode_automatic=no
8722 hardcode_direct=no
8723 hardcode_direct_absolute=no
8724 hardcode_libdir_flag_spec=
8725 hardcode_libdir_flag_spec_ld=
8726 hardcode_libdir_separator=
8727 hardcode_minus_L=no
8728 hardcode_shlibpath_var=unsupported
8729 inherit_rpath=no
8730 link_all_deplibs=unknown
8731 module_cmds=
8732 module_expsym_cmds=
8733 old_archive_from_new_cmds=
8734 old_archive_from_expsyms_cmds=
8735 thread_safe_flag_spec=
8736 whole_archive_flag_spec=
8737 # include_expsyms should be a list of space-separated symbols to be *always*
8738 # included in the symbol list
8739 include_expsyms=
8740 # exclude_expsyms can be an extended regexp of symbols to exclude
8741 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8743 # as well as any symbol that contains `d'.
b214d478 8744 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8746 # platforms (ab)use it in PIC code, but their linkers get confused if
8747 # the symbol is explicitly referenced. Since portable code cannot
8748 # rely on this symbol name, it's probably fine to never include it in
8749 # preloaded symbol tables.
b214d478 8750 # Exclude shared library initialization/finalization symbols.
ce2cded5 8751 extract_expsyms_cmds=
d7040cdb 8752
d7040cdb 8753 case $host_os in
b214d478 8754 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8756 # When not using gcc, we currently assume that we are using
8757 # Microsoft Visual C++.
8758 if test "$GCC" != yes; then
8759 with_gnu_ld=no
8760 fi
d7040cdb 8761 ;;
ce2cded5
L
8762 interix*)
8763 # we just hope/assume this is gcc and not c89 (= MSVC++)
8764 with_gnu_ld=yes
d7040cdb 8765 ;;
ce2cded5
L
8766 openbsd*)
8767 with_gnu_ld=no
d7040cdb
SE
8768 ;;
8769 esac
d7040cdb 8770
ce2cded5 8771 ld_shlibs=yes
3725885a
RW
8772
8773 # On some targets, GNU ld is compatible enough with the native linker
8774 # that we're better off using the native interface for both.
8775 lt_use_gnu_ld_interface=no
ce2cded5 8776 if test "$with_gnu_ld" = yes; then
3725885a
RW
8777 case $host_os in
8778 aix*)
8779 # The AIX port of GNU ld has always aspired to compatibility
8780 # with the native linker. However, as the warning in the GNU ld
8781 # block says, versions before 2.19.5* couldn't really create working
8782 # shared libraries, regardless of the interface used.
8783 case `$LD -v 2>&1` in
8784 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8785 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8786 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8787 *)
8788 lt_use_gnu_ld_interface=yes
8789 ;;
8790 esac
8791 ;;
8792 *)
8793 lt_use_gnu_ld_interface=yes
8794 ;;
8795 esac
8796 fi
8797
8798 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8799 # If archive_cmds runs LD, not CC, wlarc should be empty
8800 wlarc='${wl}'
d7040cdb 8801
ce2cded5
L
8802 # Set some defaults for GNU ld with shared library support. These
8803 # are reset later if shared libraries are not supported. Putting them
8804 # here allows them to be overridden if necessary.
8805 runpath_var=LD_RUN_PATH
8806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8807 export_dynamic_flag_spec='${wl}--export-dynamic'
8808 # ancient GNU ld didn't support --whole-archive et. al.
8809 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8811 else
ce2cded5 8812 whole_archive_flag_spec=
d7040cdb 8813 fi
ce2cded5
L
8814 supports_anon_versioning=no
8815 case `$LD -v 2>&1` in
3725885a 8816 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8817 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8820 *\ 2.11.*) ;; # other 2.11 versions
8821 *) supports_anon_versioning=yes ;;
8822 esac
d7040cdb 8823
ce2cded5
L
8824 # See if GNU ld supports shared libraries.
8825 case $host_os in
50e7d84b 8826 aix[3-9]*)
ce2cded5
L
8827 # On AIX/PPC, the GNU linker is very broken
8828 if test "$host_cpu" != ia64; then
8829 ld_shlibs=no
8830 cat <<_LT_EOF 1>&2
d7040cdb 8831
3725885a 8832*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8833*** to be unable to reliably create shared libraries on AIX.
8834*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8835*** really care for shared libraries, you may want to install binutils
8836*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8837*** You will then need to restart the configuration process.
d7040cdb 8838
ce2cded5
L
8839_LT_EOF
8840 fi
8841 ;;
d7040cdb 8842
ce2cded5 8843 amigaos*)
b214d478
SE
8844 case $host_cpu in
8845 powerpc)
8846 # see comment about AmigaOS4 .so support
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 archive_expsym_cmds=''
8849 ;;
8850 m68k)
8851 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)'
8852 hardcode_libdir_flag_spec='-L$libdir'
8853 hardcode_minus_L=yes
8854 ;;
8855 esac
ce2cded5 8856 ;;
d7040cdb 8857
ce2cded5
L
8858 beos*)
8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 allow_undefined_flag=unsupported
8861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8862 # support --undefined. This deserves some investigation. FIXME
8863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
d7040cdb 8868
b214d478 8869 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8871 # as there is no search path for DLLs.
8872 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8873 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8874 allow_undefined_flag=unsupported
8875 always_export_symbols=no
8876 enable_shared_with_static_runtimes=yes
8877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8878
ce2cded5
L
8879 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 # If the export-symbols file already is a .def file (1st line
8882 # is EXPORTS), use it as is; otherwise, prepend...
8883 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8884 cp $export_symbols $output_objdir/$soname.def;
8885 else
8886 echo EXPORTS > $output_objdir/$soname.def;
8887 cat $export_symbols >> $output_objdir/$soname.def;
8888 fi~
8889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8890 else
8891 ld_shlibs=no
8892 fi
8893 ;;
d7040cdb 8894
3725885a
RW
8895 haiku*)
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897 link_all_deplibs=yes
8898 ;;
8899
ce2cded5
L
8900 interix[3-9]*)
8901 hardcode_direct=no
8902 hardcode_shlibpath_var=no
8903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904 export_dynamic_flag_spec='${wl}-E'
8905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8906 # Instead, shared libraries are loaded at an image base (0x10000000 by
8907 # default) and relocated if they conflict, which is a slow very memory
8908 # consuming and fragmenting process. To avoid this, we pick a random,
8909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8912 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'
8913 ;;
d7040cdb 8914
58e24671 8915 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8916 tmp_diet=no
8917 if test "$host_os" = linux-dietlibc; then
8918 case $cc_basename in
8919 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8920 esac
8921 fi
8922 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8923 && test "$tmp_diet" = no
8924 then
8925 tmp_addflag=
b214d478 8926 tmp_sharedflag='-shared'
ce2cded5
L
8927 case $cc_basename,$host_cpu in
8928 pgcc*) # Portland Group C compiler
3725885a 8929 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
8930 tmp_addflag=' $pic_flag'
8931 ;;
3725885a
RW
8932 pgf77* | pgf90* | pgf95* | pgfortran*)
8933 # Portland Group f77 and f90 compilers
8934 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
8935 tmp_addflag=' $pic_flag -Mnomain' ;;
8936 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8937 tmp_addflag=' -i_dynamic' ;;
8938 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8939 tmp_addflag=' -i_dynamic -nofor_main' ;;
8940 ifc* | ifort*) # Intel Fortran compiler
8941 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8942 lf95*) # Lahey Fortran 8.1
8943 whole_archive_flag_spec=
8944 tmp_sharedflag='--shared' ;;
3725885a 8945 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
8946 tmp_sharedflag='-qmkshrobj'
8947 tmp_addflag= ;;
3725885a
RW
8948 nvcc*) # Cuda Compiler Driver 2.2
8949 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'
8950 compiler_needs_object=yes
8951 ;;
ce2cded5
L
8952 esac
8953 case `$CC -V 2>&1 | sed 5q` in
8954 *Sun\ C*) # Sun C 5.9
3725885a 8955 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
8956 compiler_needs_object=yes
8957 tmp_sharedflag='-G' ;;
8958 *Sun\ F*) # Sun Fortran 8.3
8959 tmp_sharedflag='-G' ;;
ce2cded5
L
8960 esac
8961 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8962
ce2cded5
L
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8968 fi
b214d478
SE
8969
8970 case $cc_basename in
3725885a 8971 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
8972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8974 hardcode_libdir_flag_spec=
8975 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8976 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8977 if test "x$supports_anon_versioning" = xyes; then
8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980 echo "local: *; };" >> $output_objdir/$libname.ver~
8981 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8982 fi
8983 ;;
8984 esac
ce2cded5
L
8985 else
8986 ld_shlibs=no
8987 fi
8988 ;;
d7040cdb 8989
ce2cded5
L
8990 netbsd*)
8991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8992 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8993 wlarc=
8994 else
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 fi
8998 ;;
d7040cdb 8999
ce2cded5
L
9000 solaris*)
9001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9002 ld_shlibs=no
9003 cat <<_LT_EOF 1>&2
d7040cdb 9004
ce2cded5
L
9005*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9006*** create shared libraries on Solaris systems. Therefore, libtool
9007*** is disabling shared libraries support. We urge you to upgrade GNU
9008*** binutils to release 2.9.1 or newer. Another option is to modify
9009*** your PATH or compiler configuration so that the native linker is
9010*** used, and then restart.
d7040cdb 9011
ce2cded5
L
9012_LT_EOF
9013 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9018 fi
9019 ;;
d7040cdb 9020
ce2cded5
L
9021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9022 case `$LD -v 2>&1` in
9023 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9024 ld_shlibs=no
9025 cat <<_LT_EOF 1>&2
d7040cdb 9026
ce2cded5
L
9027*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9028*** reliably create shared libraries on SCO systems. Therefore, libtool
9029*** is disabling shared libraries support. We urge you to upgrade GNU
9030*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9031*** your PATH or compiler configuration so that the native linker is
9032*** used, and then restart.
d7040cdb 9033
ce2cded5
L
9034_LT_EOF
9035 ;;
9036 *)
9037 # For security reasons, it is highly recommended that you always
9038 # use absolute paths for naming shared libraries, and exclude the
9039 # DT_RUNPATH tag from executables and libraries. But doing so
9040 # requires that you compile everything twice, which is a pain.
9041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049 esac
d7040cdb 9050 ;;
ce2cded5
L
9051
9052 sunos4*)
9053 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9054 wlarc=
9055 hardcode_direct=yes
9056 hardcode_shlibpath_var=no
d7040cdb 9057 ;;
d7040cdb 9058
ce2cded5
L
9059 *)
9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
9067 esac
d7040cdb 9068
ce2cded5
L
9069 if test "$ld_shlibs" = no; then
9070 runpath_var=
9071 hardcode_libdir_flag_spec=
9072 export_dynamic_flag_spec=
9073 whole_archive_flag_spec=
9074 fi
d7040cdb 9075 else
ce2cded5 9076 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 9077 case $host_os in
ce2cded5
L
9078 aix3*)
9079 allow_undefined_flag=unsupported
9080 always_export_symbols=yes
9081 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'
9082 # Note: this linker hardcodes the directories in LIBPATH if there
9083 # are no directories specified by -L.
9084 hardcode_minus_L=yes
9085 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9086 # Neither direct hardcoding nor static linking is supported with a
9087 # broken collect2.
9088 hardcode_direct=unsupported
9089 fi
9090 ;;
d7040cdb 9091
50e7d84b 9092 aix[4-9]*)
ce2cded5
L
9093 if test "$host_cpu" = ia64; then
9094 # On IA64, the linker does run time linking by default, so we don't
9095 # have to do anything special.
9096 aix_use_runtimelinking=no
9097 exp_sym_flag='-Bexport'
9098 no_entry_flag=""
9099 else
9100 # If we're using GNU nm, then we don't want the "-C" option.
9101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9102 # Also, AIX nm treats weak defined symbols like other global
9103 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9105 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
L
9106 else
9107 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9108 fi
9109 aix_use_runtimelinking=no
d7040cdb 9110
ce2cded5
L
9111 # Test if we are trying to use run time linking or normal
9112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9113 # need to do runtime linking.
50e7d84b 9114 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9115 for ld_flag in $LDFLAGS; do
9116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9117 aix_use_runtimelinking=yes
9118 break
9119 fi
9120 done
9121 ;;
9122 esac
d7040cdb 9123
ce2cded5
L
9124 exp_sym_flag='-bexport'
9125 no_entry_flag='-bnoentry'
9126 fi
d7040cdb 9127
ce2cded5
L
9128 # When large executables or shared objects are built, AIX ld can
9129 # have problems creating the table of contents. If linking a library
9130 # or program results in "error TOC overflow" add -mminimal-toc to
9131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9133
ce2cded5
L
9134 archive_cmds=''
9135 hardcode_direct=yes
9136 hardcode_direct_absolute=yes
9137 hardcode_libdir_separator=':'
9138 link_all_deplibs=yes
9139 file_list_spec='${wl}-f,'
d7040cdb 9140
ce2cded5
L
9141 if test "$GCC" = yes; then
9142 case $host_os in aix4.[012]|aix4.[012].*)
9143 # We only want to do this on AIX 4.2 and lower, the check
9144 # below for broken collect2 doesn't work under 4.3+
9145 collect2name=`${CC} -print-prog-name=collect2`
9146 if test -f "$collect2name" &&
9147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9148 then
9149 # We have reworked collect2
9150 :
9151 else
9152 # We have old collect2
9153 hardcode_direct=unsupported
9154 # It fails to find uninstalled libraries when the uninstalled
9155 # path is not listed in the libpath. Setting hardcode_minus_L
9156 # to unsupported forces relinking
9157 hardcode_minus_L=yes
9158 hardcode_libdir_flag_spec='-L$libdir'
9159 hardcode_libdir_separator=
9160 fi
9161 ;;
9162 esac
9163 shared_flag='-shared'
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag="$shared_flag "'${wl}-G'
9166 fi
9167 else
9168 # not using gcc
9169 if test "$host_cpu" = ia64; then
9170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9171 # chokes on -Wl,-G. The following line is correct:
9172 shared_flag='-G'
9173 else
9174 if test "$aix_use_runtimelinking" = yes; then
9175 shared_flag='${wl}-G'
9176 else
9177 shared_flag='${wl}-bM:SRE'
9178 fi
9179 fi
9180 fi
d7040cdb 9181
b214d478 9182 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9183 # It seems that -bexpall does not export symbols beginning with
9184 # underscore (_), so it is better to generate a list of symbols to export.
9185 always_export_symbols=yes
9186 if test "$aix_use_runtimelinking" = yes; then
9187 # Warning - without using the other runtime loading flags (-brtl),
9188 # -berok will link without error, but may produce a broken library.
9189 allow_undefined_flag='-berok'
9190 # Determine the default libpath from the value encoded in an
9191 # empty executable.
81ecdfbb 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9193/* end confdefs.h. */
9194
d7040cdb
SE
9195int
9196main ()
9197{
ce2cded5 9198
d7040cdb
SE
9199 ;
9200 return 0;
9201}
9202_ACEOF
81ecdfbb 9203if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9204
ce2cded5
L
9205lt_aix_libpath_sed='
9206 /Import File Strings/,/^$/ {
9207 /^0/ {
9208 s/^0 *\(.*\)$/\1/
9209 p
9210 }
9211 }'
9212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213# Check for a 64-bit object if we didn't find anything.
9214if test -z "$aix_libpath"; then
9215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 9216fi
d7040cdb 9217fi
81ecdfbb
RW
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9221
9222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9223 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
9224 else
9225 if test "$host_cpu" = ia64; then
9226 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9227 allow_undefined_flag="-z nodefs"
9228 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"
9229 else
9230 # Determine the default libpath from the value encoded in an
9231 # empty executable.
81ecdfbb 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9233/* end confdefs.h. */
9234
d7040cdb
SE
9235int
9236main ()
9237{
ce2cded5 9238
d7040cdb
SE
9239 ;
9240 return 0;
9241}
9242_ACEOF
81ecdfbb 9243if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9244
9245lt_aix_libpath_sed='
9246 /Import File Strings/,/^$/ {
9247 /^0/ {
9248 s/^0 *\(.*\)$/\1/
9249 p
9250 }
9251 }'
9252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253# Check for a 64-bit object if we didn't find anything.
9254if test -z "$aix_libpath"; then
9255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9256fi
d7040cdb 9257fi
81ecdfbb
RW
9258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9261
ce2cded5
L
9262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9263 # Warning - without using the other run time loading flags,
9264 # -berok will link without error, but may produce a broken library.
9265 no_undefined_flag=' ${wl}-bernotok'
9266 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9267 if test "$with_gnu_ld" = yes; then
9268 # We only use this code for GNU lds that support --whole-archive.
9269 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9270 else
9271 # Exported symbols can be pulled into shared objects from archives
9272 whole_archive_flag_spec='$convenience'
9273 fi
ce2cded5
L
9274 archive_cmds_need_lc=yes
9275 # This is similar to how AIX traditionally builds its shared libraries.
9276 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'
9277 fi
9278 fi
9279 ;;
d7040cdb 9280
ce2cded5 9281 amigaos*)
b214d478
SE
9282 case $host_cpu in
9283 powerpc)
9284 # see comment about AmigaOS4 .so support
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds=''
9287 ;;
9288 m68k)
9289 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)'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 ;;
9293 esac
ce2cded5 9294 ;;
d7040cdb 9295
ce2cded5
L
9296 bsdi[45]*)
9297 export_dynamic_flag_spec=-rdynamic
9298 ;;
d7040cdb 9299
b214d478 9300 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9301 # When not using gcc, we currently assume that we are using
9302 # Microsoft Visual C++.
9303 # hardcode_libdir_flag_spec is actually meaningless, as there is
9304 # no search path for DLLs.
9305 hardcode_libdir_flag_spec=' '
9306 allow_undefined_flag=unsupported
9307 # Tell ltmain to make .lib files, not .a files.
9308 libext=lib
9309 # Tell ltmain to make .dll files, not .so files.
9310 shrext_cmds=".dll"
9311 # FIXME: Setting linknames here is a bad hack.
3725885a 9312 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9313 # The linker will automatically build a .lib file if we build a DLL.
9314 old_archive_from_new_cmds='true'
9315 # FIXME: Should let the user specify the lib program.
9316 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9317 fix_srcfile_path='`cygpath -w "$srcfile"`'
9318 enable_shared_with_static_runtimes=yes
9319 ;;
d7040cdb 9320
ce2cded5 9321 darwin* | rhapsody*)
ce2cded5 9322
b214d478
SE
9323
9324 archive_cmds_need_lc=no
9325 hardcode_direct=no
9326 hardcode_automatic=yes
9327 hardcode_shlibpath_var=unsupported
3725885a
RW
9328 if test "$lt_cv_ld_force_load" = "yes"; then
9329 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\"`'
9330 else
9331 whole_archive_flag_spec=''
9332 fi
b214d478
SE
9333 link_all_deplibs=yes
9334 allow_undefined_flag="$_lt_dar_allow_undefined"
9335 case $cc_basename in
9336 ifort*) _lt_dar_can_shared=yes ;;
9337 *) _lt_dar_can_shared=$GCC ;;
9338 esac
9339 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9340 output_verbose_link_cmd=func_echo_all
b214d478
SE
9341 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9342 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9343 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}"
9344 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}"
9345
9346 else
9347 ld_shlibs=no
9348 fi
9349
ce2cded5
L
9350 ;;
9351
9352 dgux*)
9353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_shlibpath_var=no
9356 ;;
9357
ce2cded5
L
9358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9359 # support. Future versions do this automatically, but an explicit c++rt0.o
9360 # does not break anything, and helps significantly (at the cost of a little
9361 # extra space).
9362 freebsd2.2*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9364 hardcode_libdir_flag_spec='-R$libdir'
9365 hardcode_direct=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9370 freebsd2.*)
ce2cded5
L
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_minus_L=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9378 freebsd* | dragonfly*)
9379 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 hpux9*)
9386 if test "$GCC" = yes; then
9387 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'
9388 else
9389 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'
9390 fi
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394
9395 # hardcode_minus_L: Not really in the search PATH,
9396 # but as the default location of the library.
9397 hardcode_minus_L=yes
9398 export_dynamic_flag_spec='${wl}-E'
9399 ;;
9400
9401 hpux10*)
3725885a 9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9406 fi
9407 if test "$with_gnu_ld" = no; then
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld='+b $libdir'
9410 hardcode_libdir_separator=:
9411 hardcode_direct=yes
9412 hardcode_direct_absolute=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9417 fi
9418 ;;
9419
9420 hpux11*)
3725885a 9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9422 case $host_cpu in
9423 hppa*64*)
9424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 ;;
9426 ia64*)
b214d478 9427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9428 ;;
9429 *)
9430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 esac
9433 else
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 ia64*)
9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 *)
3725885a
RW
9442
9443 # Older versions of the 11.00 compiler do not understand -b yet
9444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9446$as_echo_n "checking if $CC understands -b... " >&6; }
9447if test "${lt_cv_prog_compiler__b+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 lt_cv_prog_compiler__b=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS -b"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler__b=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler__b=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9474$as_echo "$lt_cv_prog_compiler__b" >&6; }
9475
9476if test x"$lt_cv_prog_compiler__b" = xyes; then
9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480fi
9481
ce2cded5
L
9482 ;;
9483 esac
9484 fi
9485 if test "$with_gnu_ld" = no; then
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488
9489 case $host_cpu in
9490 hppa*64*|ia64*)
9491 hardcode_direct=no
9492 hardcode_shlibpath_var=no
9493 ;;
9494 *)
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 export_dynamic_flag_spec='${wl}-E'
9498
9499 # hardcode_minus_L: Not really in the search PATH,
9500 # but as the default location of the library.
9501 hardcode_minus_L=yes
9502 ;;
9503 esac
9504 fi
9505 ;;
9506
9507 irix5* | irix6* | nonstopux*)
9508 if test "$GCC" = yes; then
3725885a 9509 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
9510 # Try to use the -exported_symbol ld option, if it does not
9511 # work, assume that -exports_file does not work either and
9512 # implicitly export all symbols.
9513 save_LDFLAGS="$LDFLAGS"
9514 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h. */
ce2cded5 9517int foo(void) {}
d7040cdb 9518_ACEOF
81ecdfbb 9519if ac_fn_c_try_link "$LINENO"; then :
3725885a 9520 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 9521
d7040cdb 9522fi
81ecdfbb
RW
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9525 LDFLAGS="$save_LDFLAGS"
9526 else
3725885a
RW
9527 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'
9528 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
9529 fi
9530 archive_cmds_need_lc='no'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9533 inherit_rpath=yes
9534 link_all_deplibs=yes
9535 ;;
9536
9537 netbsd*)
9538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9540 else
9541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9542 fi
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 newsos6)
9549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_direct=yes
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 *nto* | *qnx*)
9557 ;;
9558
9559 openbsd*)
b214d478
SE
9560 if test -f /usr/libexec/ld.so; then
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 hardcode_direct_absolute=yes
9564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9568 export_dynamic_flag_spec='${wl}-E'
9569 else
9570 case $host_os in
9571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 ;;
9575 *)
9576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578 ;;
9579 esac
9580 fi
9581 else
9582 ld_shlibs=no
ce2cded5
L
9583 fi
9584 ;;
9585
9586 os2*)
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 allow_undefined_flag=unsupported
3725885a 9590 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
9591 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 ;;
9593
9594 osf3*)
9595 if test "$GCC" = yes; then
9596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9597 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
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9600 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
9601 fi
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 ;;
9606
9607 osf4* | osf5*) # as osf3* with the addition of -msym flag
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9610 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
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9614 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 9615 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 9616 $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
9617
9618 # Both c and cxx compiler support -rpath directly
9619 hardcode_libdir_flag_spec='-rpath $libdir'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_separator=:
9623 ;;
9624
9625 solaris*)
9626 no_undefined_flag=' -z defs'
9627 if test "$GCC" = yes; then
9628 wlarc='${wl}'
9629 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 else
9633 case `$CC -V 2>&1` in
9634 *"Compilers 5.0"*)
9635 wlarc=''
9636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 ;;
9640 *)
9641 wlarc='${wl}'
9642 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 ;;
9646 esac
9647 fi
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_shlibpath_var=no
9650 case $host_os in
9651 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 *)
9653 # The compiler driver will combine and reorder linker options,
9654 # but understands `-z linker_flag'. GCC discards it without `$wl',
9655 # but is careful enough not to reorder.
9656 # Supported since Solaris 2.6 (maybe 2.5.1?)
9657 if test "$GCC" = yes; then
9658 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659 else
9660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 fi
9662 ;;
9663 esac
9664 link_all_deplibs=yes
9665 ;;
9666
9667 sunos4*)
9668 if test "x$host_vendor" = xsequent; then
9669 # Use $CC to link under sequent, because it throws in some extra .o
9670 # files that make .init and .fini sections work.
9671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9674 fi
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_direct=yes
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
9679 ;;
9680
9681 sysv4)
9682 case $host_vendor in
9683 sni)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=yes # is this really true???
9686 ;;
9687 siemens)
9688 ## LD is ld it makes a PLAMLIB
9689 ## CC just makes a GrossModule.
9690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691 reload_cmds='$CC -r -o $output$reload_objs'
9692 hardcode_direct=no
9693 ;;
9694 motorola)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9697 ;;
9698 esac
9699 runpath_var='LD_RUN_PATH'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 sysv4.3*)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 export_dynamic_flag_spec='-Bexport'
9707 ;;
9708
9709 sysv4*MP*)
9710 if test -d /usr/nec; then
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 runpath_var=LD_RUN_PATH
9714 hardcode_runpath_var=yes
9715 ld_shlibs=yes
9716 fi
9717 ;;
9718
9719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9720 no_undefined_flag='${wl}-z,text'
9721 archive_cmds_need_lc=no
9722 hardcode_shlibpath_var=no
9723 runpath_var='LD_RUN_PATH'
9724
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
9733
9734 sysv5* | sco3.2v5* | sco5v6*)
9735 # Note: We can NOT use -z defs as we might desire, because we do not
9736 # link with -lc, and that would cause any symbols used from libc to
9737 # always be unresolved, which means just about no library would
9738 # ever link correctly. If we're not using GNU ld we use -z text
9739 # though, which does catch some bad symbols but isn't as heavy-handed
9740 # as -z defs.
9741 no_undefined_flag='${wl}-z,text'
9742 allow_undefined_flag='${wl}-z,nodefs'
9743 archive_cmds_need_lc=no
9744 hardcode_shlibpath_var=no
9745 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9746 hardcode_libdir_separator=':'
9747 link_all_deplibs=yes
9748 export_dynamic_flag_spec='${wl}-Bexport'
9749 runpath_var='LD_RUN_PATH'
9750
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 else
9755 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 fi
9758 ;;
9759
9760 uts4*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 *)
9767 ld_shlibs=no
9768 ;;
9769 esac
9770
9771 if test x$host_vendor = xsni; then
9772 case $host in
9773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9774 export_dynamic_flag_spec='${wl}-Blargedynsym'
9775 ;;
9776 esac
9777 fi
9778 fi
9779
81ecdfbb
RW
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9781$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9782test "$ld_shlibs" = no && can_build_shared=no
9783
9784with_gnu_ld=$with_gnu_ld
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800#
9801# Do we need to explicitly link libc?
9802#
9803case "x$archive_cmds_need_lc" in
9804x|xyes)
9805 # Assume -lc should be added
9806 archive_cmds_need_lc=yes
9807
9808 if test "$enable_shared" = yes && test "$GCC" = yes; then
9809 case $archive_cmds in
9810 *'~'*)
9811 # FIXME: we may have to deal with multi-command sequences.
9812 ;;
9813 '$CC '*)
9814 # Test whether the compiler implicitly links with -lc since on some
9815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9816 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9819if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
39144654
RW
9821else
9822 $RM conftest*
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9824
81ecdfbb 9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
81ecdfbb
RW
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9830 soname=conftest
9831 lib=conftest
9832 libobjs=conftest.$ac_objext
9833 deplibs=
9834 wl=$lt_prog_compiler_wl
9835 pic_flag=$lt_prog_compiler_pic
9836 compiler_flags=-v
9837 linker_flags=-v
9838 verstring=
9839 output_objdir=.
9840 libname=conftest
9841 lt_save_allow_undefined_flag=$allow_undefined_flag
9842 allow_undefined_flag=
81ecdfbb 9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9844 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845 ac_status=$?
81ecdfbb
RW
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; }
39144654
RW
9848 then
9849 lt_cv_archive_cmds_need_lc=no
9850 else
9851 lt_cv_archive_cmds_need_lc=yes
9852 fi
9853 allow_undefined_flag=$lt_save_allow_undefined_flag
9854 else
9855 cat conftest.err 1>&5
9856 fi
9857 $RM conftest*
9858
9859fi
81ecdfbb
RW
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9861$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9863 ;;
9864 esac
9865 fi
9866 ;;
9867esac
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10026$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10027
10028if test "$GCC" = yes; then
ce2cded5
L
10029 case $host_os in
10030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10031 *) lt_awk_arg="/^libraries:/" ;;
10032 esac
3725885a
RW
10033 case $host_os in
10034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10035 *) lt_sed_strip_eq="s,=/,/,g" ;;
10036 esac
10037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10038 case $lt_search_path_spec in
10039 *\;*)
ce2cded5
L
10040 # if the path contains ";" then we assume it to be the separator
10041 # otherwise default to the standard path separator (i.e. ":") - it is
10042 # assumed that no part of a normal pathname contains ";" but that should
10043 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10045 ;;
10046 *)
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10048 ;;
10049 esac
ce2cded5
L
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10060 fi
10061 done
3725885a 10062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10063BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10075 }
10076 }
10077 }
10078 }
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10081}'`
3725885a
RW
10082 # AWK program above erroneously prepends '/' to C:/dos/paths
10083 # for these hosts.
10084 case $host_os in
10085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10087 esac
10088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ce2cded5
L
10089else
10090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10091fi
10092library_names_spec=
10093libname_spec='lib$name'
10094soname_spec=
10095shrext_cmds=".so"
10096postinstall_cmds=
10097postuninstall_cmds=
10098finish_cmds=
10099finish_eval=
10100shlibpath_var=
10101shlibpath_overrides_runpath=unknown
10102version_type=none
10103dynamic_linker="$host_os ld.so"
10104sys_lib_dlsearch_path_spec="/lib /usr/lib"
10105need_lib_prefix=unknown
10106hardcode_into_libs=no
10107
10108# when you set need_version to no, make sure it does not cause -set_version
10109# flags to be left without arguments
10110need_version=unknown
10111
10112case $host_os in
10113aix3*)
10114 version_type=linux
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10116 shlibpath_var=LIBPATH
10117
10118 # AIX 3 has no versioning support, so we append a major version to the name.
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 ;;
10121
50e7d84b 10122aix[4-9]*)
ce2cded5
L
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 hardcode_into_libs=yes
10127 if test "$host_cpu" = ia64; then
10128 # AIX 5 supports IA64
10129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 else
10132 # With GCC up to 2.95.x, collect2 would create an import file
10133 # for dependence libraries. The import file would start with
10134 # the line `#! .'. This would cause the generated library to
10135 # depend on `.', always an invalid library. This was fixed in
10136 # development snapshots of GCC prior to 3.0.
10137 case $host_os in
10138 aix4 | aix4.[01] | aix4.[01].*)
10139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10140 echo ' yes '
10141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10142 :
10143 else
10144 can_build_shared=no
10145 fi
10146 ;;
10147 esac
10148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10149 # soname into executable. Probably we can add versioning support to
10150 # collect2, so additional links can be useful in future.
10151 if test "$aix_use_runtimelinking" = yes; then
10152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10153 # instead of lib<name>.a to let people know that these are not
10154 # typical AIX shared libraries.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 else
10157 # We preserve .a as extension for shared libraries through AIX4.2
10158 # and later when we are not doing run time linking.
10159 library_names_spec='${libname}${release}.a $libname.a'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 fi
10162 shlibpath_var=LIBPATH
10163 fi
10164 ;;
10165
10166amigaos*)
b214d478
SE
10167 case $host_cpu in
10168 powerpc)
10169 # Since July 2007 AmigaOS4 officially supports .so libraries.
10170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 ;;
10173 m68k)
ce2cded5
L
10174 library_names_spec='$libname.ixlibrary $libname.a'
10175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10176 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
10177 ;;
10178 esac
ce2cded5
L
10179 ;;
10180
10181beos*)
10182 library_names_spec='${libname}${shared_ext}'
10183 dynamic_linker="$host_os ld.so"
10184 shlibpath_var=LIBRARY_PATH
10185 ;;
10186
10187bsdi[45]*)
10188 version_type=linux
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10196 # the default ld.so.conf also contains /usr/contrib/lib and
10197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10198 # libtool to hard-code these into programs
10199 ;;
10200
b214d478 10201cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10202 version_type=windows
10203 shrext_cmds=".dll"
10204 need_version=no
10205 need_lib_prefix=no
10206
b214d478
SE
10207 case $GCC,$host_os in
10208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10209 library_names_spec='$libname.dll.a'
10210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10211 postinstall_cmds='base_file=`basename \${file}`~
10212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10213 dldir=$destdir/`dirname \$dlpath`~
10214 test -d \$dldir || mkdir -p \$dldir~
10215 $install_prog $dir/$dlname \$dldir/$dlname~
10216 chmod a+x \$dldir/$dlname~
10217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10219 fi'
10220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10221 dlpath=$dir/\$dldll~
10222 $RM \$dlpath'
10223 shlibpath_overrides_runpath=yes
10224
10225 case $host_os in
10226 cygwin*)
10227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10229
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10231 ;;
b214d478 10232 mingw* | cegcc*)
ce2cded5
L
10233 # MinGW DLLs use traditional 'lib' prefix
10234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10235 ;;
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 esac
10241 ;;
10242
10243 *)
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 ;;
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
ce2cded5
L
10276freebsd* | dragonfly*)
10277 # DragonFly does not have aout. When/if they implement a new
10278 # versioning mechanism, adjust this.
10279 if test -x /usr/bin/objformat; then
10280 objformat=`/usr/bin/objformat`
10281 else
10282 case $host_os in
6d2920c8 10283 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10284 *) objformat=elf ;;
10285 esac
10286 fi
10287 version_type=freebsd-$objformat
10288 case $version_type in
10289 freebsd-elf*)
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291 need_version=no
10292 need_lib_prefix=no
10293 ;;
10294 freebsd-*)
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10296 need_version=yes
10297 ;;
10298 esac
10299 shlibpath_var=LD_LIBRARY_PATH
10300 case $host_os in
6d2920c8 10301 freebsd2.*)
ce2cded5
L
10302 shlibpath_overrides_runpath=yes
10303 ;;
10304 freebsd3.[01]* | freebsdelf3.[01]*)
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 ;;
10313 *) # from 4.6 on, and DragonFly
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 esac
10318 ;;
10319
10320gnu*)
10321 version_type=linux
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 hardcode_into_libs=yes
10328 ;;
10329
3725885a
RW
10330haiku*)
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 dynamic_linker="$host_os runtime_loader"
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10340 hardcode_into_libs=yes
10341 ;;
10342
ce2cded5
L
10343hpux9* | hpux10* | hpux11*)
10344 # Give a soname corresponding to the major version so that dld.sl refuses to
10345 # link against other versions.
10346 version_type=sunos
10347 need_lib_prefix=no
10348 need_version=no
10349 case $host_cpu in
10350 ia64*)
10351 shrext_cmds='.so'
10352 hardcode_into_libs=yes
10353 dynamic_linker="$host_os dld.so"
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 if test "X$HPUX_IA64_MODE" = X32; then
10359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10360 else
10361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10362 fi
10363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10364 ;;
10365 hppa*64*)
10366 shrext_cmds='.sl'
10367 hardcode_into_libs=yes
10368 dynamic_linker="$host_os dld.sl"
10369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10375 ;;
10376 *)
10377 shrext_cmds='.sl'
10378 dynamic_linker="$host_os dld.sl"
10379 shlibpath_var=SHLIB_PATH
10380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 ;;
10384 esac
3725885a 10385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10386 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10387 # or fails outright, so override atomically:
10388 install_override_mode=555
ce2cded5
L
10389 ;;
10390
10391interix[3-9]*)
10392 version_type=linux
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=no
10400 hardcode_into_libs=yes
10401 ;;
d7040cdb 10402
ce2cded5
L
10403irix5* | irix6* | nonstopux*)
10404 case $host_os in
10405 nonstopux*) version_type=nonstopux ;;
10406 *)
10407 if test "$lt_cv_prog_gnu_ld" = yes; then
10408 version_type=linux
10409 else
10410 version_type=irix
10411 fi ;;
10412 esac
10413 need_lib_prefix=no
10414 need_version=no
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10417 case $host_os in
10418 irix5* | nonstopux*)
10419 libsuff= shlibsuff=
10420 ;;
10421 *)
10422 case $LD in # libtool.m4 will add one of these switches to LD
10423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10424 libsuff= shlibsuff= libmagic=32-bit;;
10425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10426 libsuff=32 shlibsuff=N32 libmagic=N32;;
10427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10429 *) libsuff= shlibsuff= libmagic=never-match;;
10430 esac
10431 ;;
10432 esac
10433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10434 shlibpath_overrides_runpath=no
10435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10437 hardcode_into_libs=yes
10438 ;;
d7040cdb 10439
ce2cded5
L
10440# No shared lib support for Linux oldld, aout, or coff.
10441linux*oldld* | linux*aout* | linux*coff*)
10442 dynamic_linker=no
10443 ;;
10444
10445# This must be Linux ELF.
58e24671 10446linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10447 version_type=linux
10448 need_lib_prefix=no
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=no
39144654 10455
ce2cded5 10456 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10457 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
39144654
RW
10459else
10460 lt_cv_shlibpath_overrides_runpath=no
10461 save_LDFLAGS=$LDFLAGS
10462 save_libdir=$libdir
10463 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10464 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10466/* end confdefs.h. */
10467
d7040cdb
SE
10468int
10469main ()
10470{
ce2cded5 10471
d7040cdb
SE
10472 ;
10473 return 0;
10474}
10475_ACEOF
81ecdfbb
RW
10476if ac_fn_c_try_link "$LINENO"; then :
10477 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10478 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10479fi
d7040cdb 10480fi
81ecdfbb
RW
10481rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10483 LDFLAGS=$save_LDFLAGS
10484 libdir=$save_libdir
10485
10486fi
10487
10488 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10489
ce2cded5
L
10490 # This implies no fast_install, which is unacceptable.
10491 # Some rework will be needed to allow for fast_install
10492 # before this can be enabled.
10493 hardcode_into_libs=yes
d7040cdb 10494
ce2cded5
L
10495 # Append ld.so.conf contents to the search path
10496 if test -f /etc/ld.so.conf; then
3725885a 10497 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
10498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10499 fi
d7040cdb 10500
ce2cded5
L
10501 # We used to test for /lib/ld.so.1 and disable shared libraries on
10502 # powerpc, because MkLinux only supported shared libraries with the
10503 # GNU dynamic linker. Since this was broken with cross compilers,
10504 # most powerpc-linux boxes support dynamic linking these days and
10505 # people can always --disable-shared, the test was removed, and we
10506 # assume the GNU/Linux dynamic linker is in use.
10507 dynamic_linker='GNU/Linux ld.so'
10508 ;;
d7040cdb 10509
ce2cded5
L
10510netbsd*)
10511 version_type=sunos
10512 need_lib_prefix=no
10513 need_version=no
10514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10517 dynamic_linker='NetBSD (a.out) ld.so'
10518 else
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 dynamic_linker='NetBSD ld.elf_so'
10522 fi
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10525 hardcode_into_libs=yes
10526 ;;
d7040cdb 10527
ce2cded5
L
10528newsos6)
10529 version_type=linux
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 shlibpath_overrides_runpath=yes
10533 ;;
d7040cdb 10534
ce2cded5
L
10535*nto* | *qnx*)
10536 version_type=qnx
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=no
10543 hardcode_into_libs=yes
10544 dynamic_linker='ldqnx.so'
10545 ;;
d7040cdb 10546
ce2cded5
L
10547openbsd*)
10548 version_type=sunos
10549 sys_lib_dlsearch_path_spec="/usr/lib"
10550 need_lib_prefix=no
10551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10552 case $host_os in
10553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10554 *) need_version=no ;;
d7040cdb 10555 esac
ce2cded5
L
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560 case $host_os in
10561 openbsd2.[89] | openbsd2.[89].*)
10562 shlibpath_overrides_runpath=no
10563 ;;
10564 *)
10565 shlibpath_overrides_runpath=yes
10566 ;;
10567 esac
d7040cdb 10568 else
ce2cded5 10569 shlibpath_overrides_runpath=yes
d7040cdb 10570 fi
ce2cded5 10571 ;;
d7040cdb 10572
ce2cded5
L
10573os2*)
10574 libname_spec='$name'
10575 shrext_cmds=".dll"
10576 need_lib_prefix=no
10577 library_names_spec='$libname${shared_ext} $libname.a'
10578 dynamic_linker='OS/2 ld.exe'
10579 shlibpath_var=LIBPATH
10580 ;;
d7040cdb 10581
ce2cded5
L
10582osf3* | osf4* | osf5*)
10583 version_type=osf
10584 need_lib_prefix=no
10585 need_version=no
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10591 ;;
d7040cdb 10592
ce2cded5
L
10593rdos*)
10594 dynamic_linker=no
10595 ;;
d7040cdb 10596
ce2cded5
L
10597solaris*)
10598 version_type=linux
10599 need_lib_prefix=no
10600 need_version=no
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 hardcode_into_libs=yes
10606 # ldd complains unless libraries are executable
10607 postinstall_cmds='chmod +x $lib'
10608 ;;
d7040cdb 10609
ce2cded5
L
10610sunos4*)
10611 version_type=sunos
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 if test "$with_gnu_ld" = yes; then
10617 need_lib_prefix=no
10618 fi
10619 need_version=yes
10620 ;;
d7040cdb 10621
ce2cded5
L
10622sysv4 | sysv4.3*)
10623 version_type=linux
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 case $host_vendor in
10628 sni)
10629 shlibpath_overrides_runpath=no
10630 need_lib_prefix=no
10631 runpath_var=LD_RUN_PATH
10632 ;;
10633 siemens)
10634 need_lib_prefix=no
10635 ;;
10636 motorola)
10637 need_lib_prefix=no
10638 need_version=no
10639 shlibpath_overrides_runpath=no
10640 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10641 ;;
10642 esac
10643 ;;
d7040cdb 10644
ce2cded5
L
10645sysv4*MP*)
10646 if test -d /usr/nec ;then
10647 version_type=linux
10648 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10649 soname_spec='$libname${shared_ext}.$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 fi
10652 ;;
d7040cdb 10653
ce2cded5
L
10654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10655 version_type=freebsd-elf
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10663 if test "$with_gnu_ld" = yes; then
10664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10665 else
10666 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10667 case $host_os in
10668 sco3.2v5*)
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10670 ;;
10671 esac
10672 fi
10673 sys_lib_dlsearch_path_spec='/usr/lib'
10674 ;;
d7040cdb 10675
ce2cded5
L
10676tpf*)
10677 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
b214d478 10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=no
10684 hardcode_into_libs=yes
10685 ;;
d7040cdb 10686
ce2cded5
L
10687uts4*)
10688 version_type=linux
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 ;;
d7040cdb 10693
ce2cded5
L
10694*)
10695 dynamic_linker=no
10696 ;;
10697esac
81ecdfbb
RW
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10699$as_echo "$dynamic_linker" >&6; }
ce2cded5 10700test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10701
ce2cded5
L
10702variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10703if test "$GCC" = yes; then
10704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10705fi
d7040cdb 10706
b214d478
SE
10707if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10709fi
10710if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10712fi
10713
d7040cdb 10714
d7040cdb 10715
d7040cdb 10716
d7040cdb 10717
d7040cdb 10718
d7040cdb 10719
d7040cdb 10720
d7040cdb 10721
d7040cdb 10722
d7040cdb 10723
d7040cdb
SE
10724
10725
d7040cdb 10726
d7040cdb 10727
d7040cdb 10728
d7040cdb
SE
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
d7040cdb
SE
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
d7040cdb 10758
d7040cdb 10759
d7040cdb 10760
d7040cdb 10761
d7040cdb
SE
10762
10763
10764
10765
d7040cdb 10766
d7040cdb
SE
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
d7040cdb
SE
10780
10781
10782
10783
d7040cdb
SE
10784
10785
10786
d7040cdb
SE
10787
10788
d7040cdb 10789
d7040cdb 10790
d7040cdb 10791
ce2cded5
L
10792
10793
3725885a
RW
10794
10795
10796
10797
10798
ce2cded5
L
10799
10800
10801
10802
10803
10804
81ecdfbb
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10806$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10807hardcode_action=
10808if test -n "$hardcode_libdir_flag_spec" ||
10809 test -n "$runpath_var" ||
10810 test "X$hardcode_automatic" = "Xyes" ; then
10811
10812 # We can hardcode non-existent directories.
10813 if test "$hardcode_direct" != no &&
10814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10815 # have to relink, otherwise we might link with an installed library
10816 # when we should be linking with a yet-to-be-installed one
10817 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10818 test "$hardcode_minus_L" != no; then
10819 # Linking always hardcodes the temporary library directory.
10820 hardcode_action=relink
10821 else
10822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10823 hardcode_action=immediate
10824 fi
d7040cdb 10825else
ce2cded5
L
10826 # We cannot hardcode anything, or else we can only hardcode existing
10827 # directories.
10828 hardcode_action=unsupported
d7040cdb 10829fi
81ecdfbb
RW
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10831$as_echo "$hardcode_action" >&6; }
d7040cdb 10832
ce2cded5
L
10833if test "$hardcode_action" = relink ||
10834 test "$inherit_rpath" = yes; then
10835 # Fast installation is not supported
10836 enable_fast_install=no
10837elif test "$shlibpath_overrides_runpath" = yes ||
10838 test "$enable_shared" = no; then
10839 # Fast installation is not necessary
10840 enable_fast_install=needless
d7040cdb
SE
10841fi
10842
d7040cdb 10843
d7040cdb 10844
0ab6f085 10845
0ab6f085 10846
0ab6f085 10847
ce2cded5
L
10848 if test "x$enable_dlopen" != xyes; then
10849 enable_dlopen=unknown
10850 enable_dlopen_self=unknown
10851 enable_dlopen_self_static=unknown
d7040cdb 10852else
ce2cded5
L
10853 lt_cv_dlopen=no
10854 lt_cv_dlopen_libs=
d7040cdb 10855
ce2cded5
L
10856 case $host_os in
10857 beos*)
10858 lt_cv_dlopen="load_add_on"
10859 lt_cv_dlopen_libs=
10860 lt_cv_dlopen_self=yes
10861 ;;
d7040cdb 10862
b214d478 10863 mingw* | pw32* | cegcc*)
ce2cded5
L
10864 lt_cv_dlopen="LoadLibrary"
10865 lt_cv_dlopen_libs=
10866 ;;
10867
10868 cygwin*)
10869 lt_cv_dlopen="dlopen"
10870 lt_cv_dlopen_libs=
10871 ;;
10872
10873 darwin*)
10874 # if libdl is installed we need to link against it
81ecdfbb
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10876$as_echo_n "checking for dlopen in -ldl... " >&6; }
10877if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
d7040cdb 10879else
ce2cded5
L
10880 ac_check_lib_save_LIBS=$LIBS
10881LIBS="-ldl $LIBS"
81ecdfbb 10882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10883/* end confdefs.h. */
10884
81ecdfbb
RW
10885/* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
ce2cded5
L
10888#ifdef __cplusplus
10889extern "C"
10890#endif
ce2cded5
L
10891char dlopen ();
10892int
10893main ()
10894{
81ecdfbb 10895return dlopen ();
ce2cded5
L
10896 ;
10897 return 0;
10898}
10899_ACEOF
81ecdfbb 10900if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10901 ac_cv_lib_dl_dlopen=yes
10902else
81ecdfbb 10903 ac_cv_lib_dl_dlopen=no
d7040cdb 10904fi
81ecdfbb
RW
10905rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10907LIBS=$ac_check_lib_save_LIBS
d7040cdb 10908fi
81ecdfbb
RW
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10910$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10911if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10913else
d7040cdb 10914
ce2cded5
L
10915 lt_cv_dlopen="dyld"
10916 lt_cv_dlopen_libs=
10917 lt_cv_dlopen_self=yes
10918
d7040cdb 10919fi
ce2cded5
L
10920
10921 ;;
10922
10923 *)
81ecdfbb
RW
10924 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10925if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10926 lt_cv_dlopen="shl_load"
10927else
81ecdfbb
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10929$as_echo_n "checking for shl_load in -ldld... " >&6; }
10930if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
ce2cded5
L
10932else
10933 ac_check_lib_save_LIBS=$LIBS
10934LIBS="-ldld $LIBS"
81ecdfbb 10935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10936/* end confdefs.h. */
d7040cdb 10937
81ecdfbb
RW
10938/* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
ce2cded5
L
10941#ifdef __cplusplus
10942extern "C"
10943#endif
ce2cded5
L
10944char shl_load ();
10945int
10946main ()
10947{
81ecdfbb 10948return shl_load ();
ce2cded5
L
10949 ;
10950 return 0;
10951}
10952_ACEOF
81ecdfbb 10953if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10954 ac_cv_lib_dld_shl_load=yes
10955else
81ecdfbb 10956 ac_cv_lib_dld_shl_load=no
ce2cded5 10957fi
81ecdfbb
RW
10958rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10960LIBS=$ac_check_lib_save_LIBS
10961fi
81ecdfbb
RW
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10963$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10964if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10965 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10966else
81ecdfbb
RW
10967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10968if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10969 lt_cv_dlopen="dlopen"
10970else
81ecdfbb
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10972$as_echo_n "checking for dlopen in -ldl... " >&6; }
10973if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
d7040cdb 10975else
ce2cded5
L
10976 ac_check_lib_save_LIBS=$LIBS
10977LIBS="-ldl $LIBS"
81ecdfbb 10978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10979/* end confdefs.h. */
10980
81ecdfbb
RW
10981/* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
ce2cded5
L
10984#ifdef __cplusplus
10985extern "C"
10986#endif
ce2cded5 10987char dlopen ();
d7040cdb
SE
10988int
10989main ()
10990{
81ecdfbb 10991return dlopen ();
d7040cdb
SE
10992 ;
10993 return 0;
10994}
10995_ACEOF
81ecdfbb 10996if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10997 ac_cv_lib_dl_dlopen=yes
d7040cdb 10998else
81ecdfbb 10999 ac_cv_lib_dl_dlopen=no
1b9750d6 11000fi
81ecdfbb
RW
11001rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11003LIBS=$ac_check_lib_save_LIBS
d7040cdb 11004fi
81ecdfbb
RW
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11006$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11007if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11009else
81ecdfbb
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11011$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11012if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
d7040cdb 11014else
ce2cded5
L
11015 ac_check_lib_save_LIBS=$LIBS
11016LIBS="-lsvld $LIBS"
81ecdfbb 11017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11018/* end confdefs.h. */
d7040cdb 11019
81ecdfbb
RW
11020/* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
ce2cded5
L
11023#ifdef __cplusplus
11024extern "C"
11025#endif
ce2cded5 11026char dlopen ();
d7040cdb
SE
11027int
11028main ()
11029{
81ecdfbb 11030return dlopen ();
d7040cdb
SE
11031 ;
11032 return 0;
11033}
11034_ACEOF
81ecdfbb 11035if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11036 ac_cv_lib_svld_dlopen=yes
0ab6f085 11037else
81ecdfbb 11038 ac_cv_lib_svld_dlopen=no
0ab6f085 11039fi
81ecdfbb
RW
11040rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11042LIBS=$ac_check_lib_save_LIBS
0ab6f085 11043fi
81ecdfbb
RW
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11045$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11046if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11048else
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11050$as_echo_n "checking for dld_link in -ldld... " >&6; }
11051if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11052 $as_echo_n "(cached) " >&6
ce2cded5
L
11053else
11054 ac_check_lib_save_LIBS=$LIBS
11055LIBS="-ldld $LIBS"
81ecdfbb 11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 11057/* end confdefs.h. */
ce2cded5 11058
81ecdfbb
RW
11059/* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
ce2cded5
L
11062#ifdef __cplusplus
11063extern "C"
11064#endif
ce2cded5 11065char dld_link ();
0ab6f085
AM
11066int
11067main ()
11068{
81ecdfbb 11069return dld_link ();
0ab6f085
AM
11070 ;
11071 return 0;
11072}
11073_ACEOF
81ecdfbb 11074if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11075 ac_cv_lib_dld_dld_link=yes
0ab6f085 11076else
81ecdfbb 11077 ac_cv_lib_dld_dld_link=no
0ab6f085 11078fi
81ecdfbb
RW
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11081LIBS=$ac_check_lib_save_LIBS
11082fi
81ecdfbb
RW
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11084$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11085if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11086 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11087fi
11088
11089
11090fi
11091
11092
11093fi
11094
11095
11096fi
11097
11098
11099fi
11100
11101
11102fi
11103
11104 ;;
11105 esac
11106
11107 if test "x$lt_cv_dlopen" != xno; then
11108 enable_dlopen=yes
11109 else
11110 enable_dlopen=no
11111 fi
11112
11113 case $lt_cv_dlopen in
11114 dlopen)
11115 save_CPPFLAGS="$CPPFLAGS"
11116 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11117
11118 save_LDFLAGS="$LDFLAGS"
11119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11120
11121 save_LIBS="$LIBS"
11122 LIBS="$lt_cv_dlopen_libs $LIBS"
11123
81ecdfbb
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11125$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11126if test "${lt_cv_dlopen_self+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
ce2cded5
L
11128else
11129 if test "$cross_compiling" = yes; then :
11130 lt_cv_dlopen_self=cross
11131else
11132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11133 lt_status=$lt_dlunknown
11134 cat > conftest.$ac_ext <<_LT_EOF
2e98a7bd 11135#line 11135 "configure"
ce2cded5
L
11136#include "confdefs.h"
11137
11138#if HAVE_DLFCN_H
11139#include <dlfcn.h>
11140#endif
11141
11142#include <stdio.h>
11143
11144#ifdef RTLD_GLOBAL
11145# define LT_DLGLOBAL RTLD_GLOBAL
11146#else
11147# ifdef DL_GLOBAL
11148# define LT_DLGLOBAL DL_GLOBAL
11149# else
11150# define LT_DLGLOBAL 0
11151# endif
11152#endif
11153
11154/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11155 find out it does not work in some platform. */
11156#ifndef LT_DLLAZY_OR_NOW
11157# ifdef RTLD_LAZY
11158# define LT_DLLAZY_OR_NOW RTLD_LAZY
11159# else
11160# ifdef DL_LAZY
11161# define LT_DLLAZY_OR_NOW DL_LAZY
11162# else
11163# ifdef RTLD_NOW
11164# define LT_DLLAZY_OR_NOW RTLD_NOW
11165# else
11166# ifdef DL_NOW
11167# define LT_DLLAZY_OR_NOW DL_NOW
11168# else
11169# define LT_DLLAZY_OR_NOW 0
11170# endif
11171# endif
11172# endif
11173# endif
11174#endif
11175
3725885a
RW
11176/* When -fvisbility=hidden is used, assume the code has been annotated
11177 correspondingly for the symbols needed. */
11178#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11179void fnord () __attribute__((visibility("default")));
11180#endif
11181
11182void fnord () { int i=42; }
ce2cded5 11183int main ()
0ab6f085 11184{
ce2cded5
L
11185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186 int status = $lt_dlunknown;
11187
11188 if (self)
11189 {
11190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11191 else
11192 {
11193 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194 else puts (dlerror ());
11195 }
ce2cded5
L
11196 /* dlclose (self); */
11197 }
11198 else
11199 puts (dlerror ());
11200
b214d478 11201 return status;
ce2cded5
L
11202}
11203_LT_EOF
81ecdfbb 11204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11205 (eval $ac_link) 2>&5
11206 ac_status=$?
81ecdfbb
RW
11207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11208 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11209 (./conftest; exit; ) >&5 2>/dev/null
11210 lt_status=$?
11211 case x$lt_status in
11212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11215 esac
11216 else :
11217 # compilation failed
11218 lt_cv_dlopen_self=no
11219 fi
11220fi
11221rm -fr conftest*
11222
11223
11224fi
81ecdfbb
RW
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11226$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11227
11228 if test "x$lt_cv_dlopen_self" = xyes; then
11229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11231$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11232if test "${lt_cv_dlopen_self_static+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
ce2cded5
L
11234else
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self_static=cross
11237else
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<_LT_EOF
2e98a7bd 11241#line 11241 "configure"
ce2cded5
L
11242#include "confdefs.h"
11243
11244#if HAVE_DLFCN_H
11245#include <dlfcn.h>
11246#endif
11247
11248#include <stdio.h>
11249
11250#ifdef RTLD_GLOBAL
11251# define LT_DLGLOBAL RTLD_GLOBAL
11252#else
11253# ifdef DL_GLOBAL
11254# define LT_DLGLOBAL DL_GLOBAL
11255# else
11256# define LT_DLGLOBAL 0
11257# endif
11258#endif
11259
11260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262#ifndef LT_DLLAZY_OR_NOW
11263# ifdef RTLD_LAZY
11264# define LT_DLLAZY_OR_NOW RTLD_LAZY
11265# else
11266# ifdef DL_LAZY
11267# define LT_DLLAZY_OR_NOW DL_LAZY
11268# else
11269# ifdef RTLD_NOW
11270# define LT_DLLAZY_OR_NOW RTLD_NOW
11271# else
11272# ifdef DL_NOW
11273# define LT_DLLAZY_OR_NOW DL_NOW
11274# else
11275# define LT_DLLAZY_OR_NOW 0
11276# endif
11277# endif
11278# endif
11279# endif
11280#endif
11281
3725885a
RW
11282/* When -fvisbility=hidden is used, assume the code has been annotated
11283 correspondingly for the symbols needed. */
11284#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11285void fnord () __attribute__((visibility("default")));
11286#endif
11287
11288void fnord () { int i=42; }
ce2cded5
L
11289int main ()
11290{
11291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11292 int status = $lt_dlunknown;
11293
11294 if (self)
11295 {
11296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11297 else
11298 {
11299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 else puts (dlerror ());
11301 }
ce2cded5
L
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
b214d478 11307 return status;
0ab6f085 11308}
ce2cded5 11309_LT_EOF
81ecdfbb 11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11311 (eval $ac_link) 2>&5
0ab6f085 11312 ac_status=$?
81ecdfbb
RW
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self_static=no
11325 fi
11326fi
11327rm -fr conftest*
11328
d7040cdb
SE
11329
11330fi
81ecdfbb
RW
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11332$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11333 fi
11334
11335 CPPFLAGS="$save_CPPFLAGS"
11336 LDFLAGS="$save_LDFLAGS"
11337 LIBS="$save_LIBS"
11338 ;;
11339 esac
11340
11341 case $lt_cv_dlopen_self in
11342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11343 *) enable_dlopen_self=unknown ;;
11344 esac
11345
11346 case $lt_cv_dlopen_self_static in
11347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11348 *) enable_dlopen_self_static=unknown ;;
11349 esac
d7040cdb
SE
11350fi
11351
ce2cded5
L
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368striplib=
11369old_striplib=
81ecdfbb
RW
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11371$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11372if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376$as_echo "yes" >&6; }
0ab6f085 11377else
ce2cded5
L
11378# FIXME - insert some real tests, host_os isn't really good enough
11379 case $host_os in
11380 darwin*)
11381 if test -n "$STRIP" ; then
11382 striplib="$STRIP -x"
11383 old_striplib="$STRIP -S"
81ecdfbb
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11385$as_echo "yes" >&6; }
ce2cded5 11386 else
81ecdfbb
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388$as_echo "no" >&6; }
ce2cded5
L
11389 fi
11390 ;;
11391 *)
81ecdfbb
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
ce2cded5
L
11394 ;;
11395 esac
11396fi
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409 # Report which library types will actually be built
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11411$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11413$as_echo "$can_build_shared" >&6; }
ce2cded5 11414
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11416$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11417 test "$can_build_shared" = "no" && enable_shared=no
11418
11419 # On AIX, shared libraries and static libraries use the same namespace, and
11420 # are all built from PIC.
11421 case $host_os in
11422 aix3*)
11423 test "$enable_shared" = yes && enable_static=no
11424 if test -n "$RANLIB"; then
11425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11426 postinstall_cmds='$RANLIB $lib'
11427 fi
11428 ;;
11429
50e7d84b 11430 aix[4-9]*)
ce2cded5
L
11431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11432 test "$enable_shared" = yes && enable_static=no
11433 fi
11434 ;;
11435 esac
81ecdfbb
RW
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11437$as_echo "$enable_shared" >&6; }
ce2cded5 11438
81ecdfbb
RW
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11440$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11441 # Make sure either enable_shared or enable_static is yes.
11442 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11444$as_echo "$enable_static" >&6; }
ce2cded5
L
11445
11446
11447
d7040cdb 11448
0ab6f085 11449fi
d7040cdb
SE
11450ac_ext=c
11451ac_cpp='$CPP $CPPFLAGS'
11452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455
ce2cded5 11456CC="$lt_save_CC"
0ab6f085 11457
0ab6f085
AM
11458
11459
d7040cdb
SE
11460
11461
d7040cdb 11462
d7040cdb 11463
d7040cdb 11464
ce2cded5
L
11465
11466
11467
11468
11469
81ecdfbb 11470 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11471
11472
11473
11474
11475# Only expand once:
11476
d7040cdb
SE
11477
11478
d7040cdb 11479for ac_func in setmode
81ecdfbb
RW
11480do :
11481 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11482if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11483 cat >>confdefs.h <<_ACEOF
81ecdfbb 11484#define HAVE_SETMODE 1
d7040cdb
SE
11485_ACEOF
11486
11487fi
11488done
11489
11490
f4b2f7c2 11491ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr"
d7040cdb
SE
11492# If we haven't got the data from the intl directory,
11493# assume NLS is disabled.
11494USE_NLS=no
11495LIBINTL=
11496LIBINTL_DEP=
11497INCINTL=
11498XGETTEXT=
11499GMSGFMT=
11500POSUB=
11501
11502if test -f ../intl/config.intl; then
11503 . ../intl/config.intl
11504fi
81ecdfbb
RW
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11506$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11507if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
d7040cdb 11510else
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512$as_echo "yes" >&6; }
d7040cdb 11513
81ecdfbb 11514$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11515
11516
81ecdfbb
RW
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11518$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11519 # Look for .po and .gmo files in the source directory.
11520 CATALOGS=
11521 XLINGUAS=
11522 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11523 # If there aren't any .gmo files the shell will give us the
11524 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11525 # weeded out.
11526 case "$cat" in *\**)
11527 continue;;
11528 esac
11529 # The quadruple backslash is collapsed to a double backslash
11530 # by the backticks, then collapsed again by the double quotes,
11531 # leaving us with one backslash in the sed expression (right
11532 # before the dot that mustn't act as a wildcard).
11533 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11534 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11535 # The user is allowed to set LINGUAS to a list of languages to
11536 # install catalogs for. If it's empty that means "all of them."
11537 if test "x$LINGUAS" = x; then
11538 CATALOGS="$CATALOGS $cat"
11539 XLINGUAS="$XLINGUAS $lang"
11540 else
11541 case "$LINGUAS" in *$lang*)
11542 CATALOGS="$CATALOGS $cat"
11543 XLINGUAS="$XLINGUAS $lang"
11544 ;;
11545 esac
11546 fi
11547 done
11548 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11550$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11551
11552
11553 DATADIRNAME=share
11554
11555 INSTOBJEXT=.mo
11556
11557 GENCAT=gencat
11558
11559 CATOBJEXT=.gmo
11560
11561fi
11562
11563 MKINSTALLDIRS=
11564 if test -n "$ac_aux_dir"; then
11565 case "$ac_aux_dir" in
11566 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11567 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11568 esac
11569 fi
11570 if test -z "$MKINSTALLDIRS"; then
11571 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11572 fi
11573
11574
11575
81ecdfbb
RW
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11577$as_echo_n "checking whether NLS is requested... " >&6; }
11578 # Check whether --enable-nls was given.
11579if test "${enable_nls+set}" = set; then :
11580 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11581else
11582 USE_NLS=yes
81ecdfbb
RW
11583fi
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11586$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11587
11588
11589
11590
11591
11592
11593# Prepare PATH_SEPARATOR.
11594# The user is always right.
11595if test "${PATH_SEPARATOR+set}" != set; then
11596 echo "#! /bin/sh" >conf$$.sh
11597 echo "exit 0" >>conf$$.sh
11598 chmod +x conf$$.sh
11599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11600 PATH_SEPARATOR=';'
11601 else
11602 PATH_SEPARATOR=:
11603 fi
11604 rm -f conf$$.sh
11605fi
11606
11607# Find out how to test for executable files. Don't use a zero-byte file,
11608# as systems may use methods other than mode bits to determine executability.
11609cat >conf$$.file <<_ASEOF
11610#! /bin/sh
11611exit 0
11612_ASEOF
11613chmod +x conf$$.file
11614if test -x conf$$.file >/dev/null 2>&1; then
11615 ac_executable_p="test -x"
11616else
11617 ac_executable_p="test -f"
11618fi
11619rm -f conf$$.file
11620
11621# Extract the first word of "msgfmt", so it can be a program name with args.
11622set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_path_MSGFMT+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
d7040cdb
SE
11627else
11628 case "$MSGFMT" in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11631 ;;
11632 *)
11633 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11634 for ac_dir in $PATH; do
11635 IFS="$ac_save_IFS"
11636 test -z "$ac_dir" && ac_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11639 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11640 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11641 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11642 break 2
11643 fi
11644 fi
11645 done
11646 done
11647 IFS="$ac_save_IFS"
11648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11649 ;;
11650esac
11651fi
11652MSGFMT="$ac_cv_path_MSGFMT"
11653if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11655$as_echo "$MSGFMT" >&6; }
d7040cdb 11656else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
d7040cdb
SE
11659fi
11660
11661 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11662set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
d7040cdb
SE
11667else
11668 case $GMSGFMT in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11671 ;;
11672 *)
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11680 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11682 break 2
11683 fi
11684done
81ecdfbb
RW
11685 done
11686IFS=$as_save_IFS
d7040cdb
SE
11687
11688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11689 ;;
11690esac
11691fi
11692GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11693if test -n "$GMSGFMT"; then
81ecdfbb
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11695$as_echo "$GMSGFMT" >&6; }
d7040cdb 11696else
81ecdfbb
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
d7040cdb
SE
11699fi
11700
11701
11702
81ecdfbb 11703
d7040cdb
SE
11704# Prepare PATH_SEPARATOR.
11705# The user is always right.
11706if test "${PATH_SEPARATOR+set}" != set; then
11707 echo "#! /bin/sh" >conf$$.sh
11708 echo "exit 0" >>conf$$.sh
11709 chmod +x conf$$.sh
11710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11711 PATH_SEPARATOR=';'
11712 else
11713 PATH_SEPARATOR=:
11714 fi
11715 rm -f conf$$.sh
11716fi
11717
11718# Find out how to test for executable files. Don't use a zero-byte file,
11719# as systems may use methods other than mode bits to determine executability.
11720cat >conf$$.file <<_ASEOF
11721#! /bin/sh
11722exit 0
11723_ASEOF
11724chmod +x conf$$.file
11725if test -x conf$$.file >/dev/null 2>&1; then
11726 ac_executable_p="test -x"
11727else
11728 ac_executable_p="test -f"
11729fi
11730rm -f conf$$.file
11731
11732# Extract the first word of "xgettext", so it can be a program name with args.
11733set dummy xgettext; ac_word=$2
81ecdfbb
RW
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
11736if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
d7040cdb
SE
11738else
11739 case "$XGETTEXT" in
11740 [\\/]* | ?:[\\/]*)
11741 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11742 ;;
11743 *)
11744 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11745 for ac_dir in $PATH; do
11746 IFS="$ac_save_IFS"
11747 test -z "$ac_dir" && ac_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11750 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11751 (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
11752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11753 break 2
11754 fi
11755 fi
11756 done
11757 done
11758 IFS="$ac_save_IFS"
11759 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11760 ;;
11761esac
11762fi
11763XGETTEXT="$ac_cv_path_XGETTEXT"
11764if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11766$as_echo "$XGETTEXT" >&6; }
d7040cdb 11767else
81ecdfbb
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
d7040cdb
SE
11770fi
11771
11772 rm -f messages.po
11773
11774
11775# Prepare PATH_SEPARATOR.
11776# The user is always right.
11777if test "${PATH_SEPARATOR+set}" != set; then
11778 echo "#! /bin/sh" >conf$$.sh
11779 echo "exit 0" >>conf$$.sh
11780 chmod +x conf$$.sh
11781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11782 PATH_SEPARATOR=';'
11783 else
11784 PATH_SEPARATOR=:
11785 fi
11786 rm -f conf$$.sh
11787fi
11788
11789# Find out how to test for executable files. Don't use a zero-byte file,
11790# as systems may use methods other than mode bits to determine executability.
11791cat >conf$$.file <<_ASEOF
11792#! /bin/sh
11793exit 0
11794_ASEOF
11795chmod +x conf$$.file
11796if test -x conf$$.file >/dev/null 2>&1; then
11797 ac_executable_p="test -x"
11798else
11799 ac_executable_p="test -f"
11800fi
11801rm -f conf$$.file
11802
11803# Extract the first word of "msgmerge", so it can be a program name with args.
11804set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
11807if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
d7040cdb
SE
11809else
11810 case "$MSGMERGE" in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11813 ;;
11814 *)
11815 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11816 for ac_dir in $PATH; do
11817 IFS="$ac_save_IFS"
11818 test -z "$ac_dir" && ac_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11821 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11822 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11823 break 2
11824 fi
11825 fi
11826 done
11827 done
11828 IFS="$ac_save_IFS"
11829 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11830 ;;
11831esac
11832fi
11833MSGMERGE="$ac_cv_path_MSGMERGE"
11834if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11836$as_echo "$MSGMERGE" >&6; }
d7040cdb 11837else
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
d7040cdb
SE
11840fi
11841
11842
11843 if test "$GMSGFMT" != ":"; then
11844 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11845 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11846 : ;
11847 else
11848 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11850$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11851 GMSGFMT=":"
11852 fi
11853 fi
11854
11855 if test "$XGETTEXT" != ":"; then
11856 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11857 (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
11858 : ;
11859 else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11861$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11862 XGETTEXT=":"
11863 fi
11864 rm -f messages.po
11865 fi
11866
81ecdfbb
RW
11867 ac_config_commands="$ac_config_commands default-1"
11868
d7040cdb
SE
11869
11870
11871
81ecdfbb
RW
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11873$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11874 # Check whether --enable-maintainer-mode was given.
11875if test "${enable_maintainer_mode+set}" = set; then :
11876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11877else
d7040cdb 11878 USE_MAINTAINER_MODE=no
81ecdfbb 11879fi
d7040cdb 11880
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11882$as_echo "$USE_MAINTAINER_MODE" >&6; }
11883 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11884 MAINTAINER_MODE_TRUE=
11885 MAINTAINER_MODE_FALSE='#'
11886else
11887 MAINTAINER_MODE_TRUE='#'
11888 MAINTAINER_MODE_FALSE=
20e95c23 11889fi
6bf9431b 11890
d7040cdb
SE
11891 MAINT=$MAINTAINER_MODE_TRUE
11892
11893
81ecdfbb 11894 if false; then
d7040cdb
SE
11895 GENINSRC_NEVER_TRUE=
11896 GENINSRC_NEVER_FALSE='#'
11897else
11898 GENINSRC_NEVER_TRUE='#'
11899 GENINSRC_NEVER_FALSE=
20e95c23 11900fi
6bf9431b
BE
11901
11902
11903
6bf9431b 11904for ac_header in sys/gmon_out.h
81ecdfbb
RW
11905do :
11906 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11907if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11908 cat >>confdefs.h <<_ACEOF
81ecdfbb 11909#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11910_ACEOF
11911
11912fi
11913
11914done
11915
11916
81ecdfbb
RW
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11918$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11919if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
34875e64 11921else
81ecdfbb 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
11923/* end confdefs.h. */
11924#include <unistd.h>
11925int
11926main ()
11927{
11928extern int getopt (int, char *const*, const char *);
11929 ;
11930 return 0;
11931}
11932_ACEOF
81ecdfbb 11933if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
11934 gprof_cv_decl_getopt_unistd_h=yes
11935else
81ecdfbb 11936 gprof_cv_decl_getopt_unistd_h=no
34875e64 11937fi
81ecdfbb 11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11939fi
11940
81ecdfbb
RW
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11942$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11943if test $gprof_cv_decl_getopt_unistd_h = yes; then
11944
81ecdfbb 11945$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
11946
11947fi
11948
1b9750d6 11949# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11951$as_echo_n "checking for library containing fabs... " >&6; }
11952if test "${ac_cv_search_fabs+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
1b9750d6
NC
11954else
11955 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
11957/* end confdefs.h. */
11958
81ecdfbb
RW
11959/* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11962#ifdef __cplusplus
11963extern "C"
11964#endif
11965char fabs ();
11966int
11967main ()
11968{
81ecdfbb 11969return fabs ();
1b9750d6
NC
11970 ;
11971 return 0;
11972}
11973_ACEOF
81ecdfbb
RW
11974for ac_lib in '' m; do
11975 if test -z "$ac_lib"; then
11976 ac_res="none required"
11977 else
11978 ac_res=-l$ac_lib
0ab6f085 11979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
11980 fi
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_search_fabs=$ac_res
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext
11986 if test "${ac_cv_search_fabs+set}" = set; then :
11987 break
11988fi
11989done
11990if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 11991
1b9750d6 11992else
81ecdfbb 11993 ac_cv_search_fabs=no
1b9750d6 11994fi
81ecdfbb 11995rm conftest.$ac_ext
1b9750d6
NC
11996LIBS=$ac_func_search_save_LIBS
11997fi
81ecdfbb
RW
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11999$as_echo "$ac_cv_search_fabs" >&6; }
12000ac_res=$ac_cv_search_fabs
12001if test "$ac_res" != no; then :
12002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
12003
12004fi
12005
12006
9e9b66a9 12007
270c9937
JB
12008# Set the 'development' global.
12009. $srcdir/../bfd/development.sh
12010
397841b5
AM
12011GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h. */
12014__GNUC__
12015_ACEOF
12016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12017 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12018
12019else
12020 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12021fi
12022rm -f conftest*
12023
1ad12f97 12024
81ecdfbb
RW
12025# Check whether --enable-werror was given.
12026if test "${enable_werror+set}" = set; then :
12027 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
12028 yes | y) ERROR_ON_WARNING="yes" ;;
12029 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12030 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 12031 esac
81ecdfbb
RW
12032fi
12033
1ad12f97 12034
397841b5 12035# Disable -Wformat by default when using gcc on mingw
32b1cf22
L
12036case "${host}" in
12037 *-*-mingw32*)
12038 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12039 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12040 fi
12041 ;;
12042 *) ;;
12043esac
12044
270c9937
JB
12045# Enable -Werror by default when using gcc. Turn it off for releases.
12046if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
9e9b66a9
AM
12047 ERROR_ON_WARNING=yes
12048fi
12049
12050NO_WERROR=
12051if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 12052 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 12053 NO_WERROR="-Wno-error"
1ad12f97
NC
12054fi
12055
a541e3ce
SE
12056if test "${GCC}" = yes ; then
12057 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12058fi
12059
81ecdfbb
RW
12060# Check whether --enable-build-warnings was given.
12061if test "${enable_build_warnings+set}" = set; then :
12062 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
12063 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12064 no) if test "${GCC}" = yes ; then
12065 WARN_CFLAGS="-w"
12066 fi;;
6bf9431b 12067 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12068 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 12069 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12070 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 12071 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 12072esac
81ecdfbb
RW
12073fi
12074
9e9b66a9
AM
12075
12076if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12077 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
12078fi
12079
12080
9e9b66a9
AM
12081
12082
12083
108a6f8e
CD
12084
12085
12086
12087
31dd3154 12088
81ecdfbb 12089ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 12090
6bf9431b
BE
12091cat >confcache <<\_ACEOF
12092# This file is a shell script that caches the results of configure
12093# tests run on this system so they can be shared between configure
12094# scripts and configure runs, see configure's option --config-cache.
12095# It is not useful on other systems. If it contains results you don't
12096# want to keep, you may remove or edit it.
12097#
12098# config.status only pays attention to the cache file if you give it
12099# the --recheck option to rerun configure.
12100#
12101# `ac_cv_env_foo' variables (set or unset) will be overridden when
12102# loading this file, other *unset* `ac_cv_foo' will be assigned the
12103# following values.
12104
12105_ACEOF
12106
12107# The following way of writing the cache mishandles newlines in values,
12108# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12109# So, we kill variables containing newlines.
6bf9431b
BE
12110# Ultrix sh set writes to stderr and can't be redirected directly,
12111# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12112(
12113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12114 eval ac_val=\$$ac_var
12115 case $ac_val in #(
12116 *${as_nl}*)
12117 case $ac_var in #(
12118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12119$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12120 esac
12121 case $ac_var in #(
12122 _ | IFS | as_nl) ;; #(
12123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12124 *) { eval $ac_var=; unset $ac_var;} ;;
12125 esac ;;
12126 esac
12127 done
12128
6bf9431b 12129 (set) 2>&1 |
81ecdfbb
RW
12130 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12131 *${as_nl}ac_space=\ *)
12132 # `set' does not quote correctly, so add quotes: double-quote
12133 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
12134 sed -n \
12135 "s/'/'\\\\''/g;
12136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12137 ;; #(
6bf9431b
BE
12138 *)
12139 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 12141 ;;
81ecdfbb
RW
12142 esac |
12143 sort
12144) |
6bf9431b 12145 sed '
81ecdfbb 12146 /^ac_cv_env_/b end
6bf9431b 12147 t clear
81ecdfbb 12148 :clear
6bf9431b
BE
12149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12150 t end
81ecdfbb
RW
12151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12152 :end' >>confcache
12153if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12154 if test -w "$cache_file"; then
12155 test "x$cache_file" != "x/dev/null" &&
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12157$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12158 cat confcache >$cache_file
12159 else
81ecdfbb
RW
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12161$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12162 fi
12163fi
12164rm -f confcache
12165
12166test "x$prefix" = xNONE && prefix=$ac_default_prefix
12167# Let make expand exec_prefix.
12168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12169
6bf9431b
BE
12170DEFS=-DHAVE_CONFIG_H
12171
12172ac_libobjs=
12173ac_ltlibobjs=
12174for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12175 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12177 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12179 # will be set to the directory where LIBOBJS objects are built.
12180 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12181 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12182done
12183LIBOBJS=$ac_libobjs
12184
12185LTLIBOBJS=$ac_ltlibobjs
12186
12187
12188if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12189 as_fn_error "conditional \"AMDEP\" was never defined.
12190Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12191fi
12192if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12193 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12194Usually this means the macro was only invoked conditionally." "$LINENO" 5
12195fi
12196 if test -n "$EXEEXT"; then
12197 am__EXEEXT_TRUE=
12198 am__EXEEXT_FALSE='#'
12199else
12200 am__EXEEXT_TRUE='#'
12201 am__EXEEXT_FALSE=
6bf9431b 12202fi
81ecdfbb 12203
6bf9431b 12204if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12205 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12206Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12207fi
d5fbea21 12208if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12209 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12210Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12211fi
6bf9431b
BE
12212
12213: ${CONFIG_STATUS=./config.status}
81ecdfbb 12214ac_write_fail=0
6bf9431b
BE
12215ac_clean_files_save=$ac_clean_files
12216ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12219as_write_fail=0
12220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12221#! $SHELL
12222# Generated by $as_me.
12223# Run this file to recreate the current configuration.
12224# Compiler output produced by configure, useful for debugging
12225# configure, is in config.log if it exists.
12226
12227debug=false
12228ac_cs_recheck=false
12229ac_cs_silent=false
6bf9431b 12230
81ecdfbb
RW
12231SHELL=\${CONFIG_SHELL-$SHELL}
12232export SHELL
12233_ASEOF
12234cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12235## -------------------- ##
12236## M4sh Initialization. ##
12237## -------------------- ##
6bf9431b 12238
81ecdfbb
RW
12239# Be more Bourne compatible
12240DUALCASE=1; export DUALCASE # for MKS sh
12241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12242 emulate sh
12243 NULLCMD=:
81ecdfbb 12244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12245 # is contrary to our usage. Disable this feature.
12246 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12247 setopt NO_GLOB_SUBST
12248else
12249 case `(set -o) 2>/dev/null` in #(
12250 *posix*) :
12251 set -o posix ;; #(
12252 *) :
12253 ;;
12254esac
6bf9431b 12255fi
6bf9431b 12256
81ecdfbb
RW
12257
12258as_nl='
12259'
12260export as_nl
12261# Printing a long string crashes Solaris 7 /usr/bin/printf.
12262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12265# Prefer a ksh shell builtin over an external printf program on Solaris,
12266# but without wasting forks for bash or zsh.
12267if test -z "$BASH_VERSION$ZSH_VERSION" \
12268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12269 as_echo='print -r --'
12270 as_echo_n='print -rn --'
12271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12272 as_echo='printf %s\n'
12273 as_echo_n='printf %s'
12274else
12275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12277 as_echo_n='/usr/ucb/echo -n'
12278 else
12279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12280 as_echo_n_body='eval
12281 arg=$1;
12282 case $arg in #(
12283 *"$as_nl"*)
12284 expr "X$arg" : "X\\(.*\\)$as_nl";
12285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12286 esac;
12287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12288 '
12289 export as_echo_n_body
12290 as_echo_n='sh -c $as_echo_n_body as_echo'
12291 fi
12292 export as_echo_body
12293 as_echo='sh -c $as_echo_body as_echo'
12294fi
12295
12296# The user is always right.
12297if test "${PATH_SEPARATOR+set}" != set; then
12298 PATH_SEPARATOR=:
12299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12301 PATH_SEPARATOR=';'
12302 }
6bf9431b
BE
12303fi
12304
12305
81ecdfbb
RW
12306# IFS
12307# We need space, tab and new line, in precisely that order. Quoting is
12308# there to prevent editors from complaining about space-tab.
12309# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12310# splitting by setting IFS to empty value.)
12311IFS=" "" $as_nl"
12312
12313# Find who we are. Look in the path if we contain no directory separator.
12314case $0 in #((
12315 *[\\/]* ) as_myself=$0 ;;
12316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12322 done
12323IFS=$as_save_IFS
12324
12325 ;;
12326esac
12327# We did not find ourselves, most probably we were run as `sh COMMAND'
12328# in which case we are not to be found in the path.
12329if test "x$as_myself" = x; then
12330 as_myself=$0
12331fi
12332if test ! -f "$as_myself"; then
12333 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12334 exit 1
12335fi
12336
12337# Unset variables that we do not need and which cause bugs (e.g. in
12338# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12339# suppresses any "Segmentation fault" message there. '((' could
12340# trigger a bug in pdksh 5.2.14.
12341for as_var in BASH_ENV ENV MAIL MAILPATH
12342do eval test x\${$as_var+set} = xset \
12343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12344done
6bf9431b
BE
12345PS1='$ '
12346PS2='> '
12347PS4='+ '
12348
12349# NLS nuisances.
81ecdfbb
RW
12350LC_ALL=C
12351export LC_ALL
12352LANGUAGE=C
12353export LANGUAGE
12354
12355# CDPATH.
12356(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12357
12358
12359# as_fn_error ERROR [LINENO LOG_FD]
12360# ---------------------------------
12361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12363# script with status $?, using 1 if that was 0.
12364as_fn_error ()
12365{
12366 as_status=$?; test $as_status -eq 0 && as_status=1
12367 if test "$3"; then
12368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12370 fi
81ecdfbb
RW
12371 $as_echo "$as_me: error: $1" >&2
12372 as_fn_exit $as_status
12373} # as_fn_error
12374
12375
12376# as_fn_set_status STATUS
12377# -----------------------
12378# Set $? to STATUS, without forking.
12379as_fn_set_status ()
12380{
12381 return $1
12382} # as_fn_set_status
6bf9431b 12383
81ecdfbb
RW
12384# as_fn_exit STATUS
12385# -----------------
12386# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12387as_fn_exit ()
12388{
12389 set +e
12390 as_fn_set_status $1
12391 exit $1
12392} # as_fn_exit
12393
12394# as_fn_unset VAR
12395# ---------------
12396# Portably unset VAR.
12397as_fn_unset ()
12398{
12399 { eval $1=; unset $1;}
12400}
12401as_unset=as_fn_unset
12402# as_fn_append VAR VALUE
12403# ----------------------
12404# Append the text in VALUE to the end of the definition contained in VAR. Take
12405# advantage of any shell optimizations that allow amortized linear growth over
12406# repeated appends, instead of the typical quadratic growth present in naive
12407# implementations.
12408if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12409 eval 'as_fn_append ()
12410 {
12411 eval $1+=\$2
12412 }'
12413else
12414 as_fn_append ()
12415 {
12416 eval $1=\$$1\$2
12417 }
12418fi # as_fn_append
12419
12420# as_fn_arith ARG...
12421# ------------------
12422# Perform arithmetic evaluation on the ARGs, and store the result in the
12423# global $as_val. Take advantage of shells that can avoid forks. The arguments
12424# must be portable across $(()) and expr.
12425if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12426 eval 'as_fn_arith ()
12427 {
12428 as_val=$(( $* ))
12429 }'
12430else
12431 as_fn_arith ()
12432 {
12433 as_val=`expr "$@" || test $? -eq 1`
12434 }
12435fi # as_fn_arith
12436
12437
12438if expr a : '\(a\)' >/dev/null 2>&1 &&
12439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12440 as_expr=expr
12441else
12442 as_expr=false
12443fi
12444
81ecdfbb 12445if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12446 as_basename=basename
12447else
12448 as_basename=false
252b5132 12449fi
252b5132 12450
81ecdfbb
RW
12451if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12452 as_dirname=dirname
12453else
12454 as_dirname=false
12455fi
252b5132 12456
81ecdfbb 12457as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12459 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12461$as_echo X/"$0" |
12462 sed '/^.*\/\([^/][^/]*\)\/*$/{
12463 s//\1/
12464 q
12465 }
12466 /^X\/\(\/\/\)$/{
12467 s//\1/
12468 q
12469 }
12470 /^X\/\(\/\).*/{
12471 s//\1/
12472 q
12473 }
12474 s/.*/./; q'`
0ab6f085 12475
0ab6f085
AM
12476# Avoid depending upon Character Ranges.
12477as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12479as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12480as_cr_digits='0123456789'
12481as_cr_alnum=$as_cr_Letters$as_cr_digits
12482
81ecdfbb
RW
12483ECHO_C= ECHO_N= ECHO_T=
12484case `echo -n x` in #(((((
12485-n*)
12486 case `echo 'xy\c'` in
12487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12488 xy) ECHO_C='\c';;
12489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12490 ECHO_T=' ';;
12491 esac;;
12492*)
12493 ECHO_N='-n';;
6bf9431b
BE
12494esac
12495
81ecdfbb
RW
12496rm -f conf$$ conf$$.exe conf$$.file
12497if test -d conf$$.dir; then
12498 rm -f conf$$.dir/conf$$.file
0eee5820 12499else
81ecdfbb
RW
12500 rm -f conf$$.dir
12501 mkdir conf$$.dir 2>/dev/null
0eee5820 12502fi
81ecdfbb
RW
12503if (echo >conf$$.file) 2>/dev/null; then
12504 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12505 as_ln_s='ln -s'
81ecdfbb
RW
12506 # ... but there are two gotchas:
12507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12509 # In both cases, we have to default to `cp -p'.
12510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12511 as_ln_s='cp -p'
12512 elif ln conf$$.file conf$$ 2>/dev/null; then
12513 as_ln_s=ln
12514 else
12515 as_ln_s='cp -p'
0ab6f085 12516 fi
6bf9431b
BE
12517else
12518 as_ln_s='cp -p'
0eee5820 12519fi
81ecdfbb
RW
12520rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12521rmdir conf$$.dir 2>/dev/null
12522
12523
12524# as_fn_mkdir_p
12525# -------------
12526# Create "$as_dir" as a directory, including parents if necessary.
12527as_fn_mkdir_p ()
12528{
12529
12530 case $as_dir in #(
12531 -*) as_dir=./$as_dir;;
12532 esac
12533 test -d "$as_dir" || eval $as_mkdir_p || {
12534 as_dirs=
12535 while :; do
12536 case $as_dir in #(
12537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12538 *) as_qdir=$as_dir;;
12539 esac
12540 as_dirs="'$as_qdir' $as_dirs"
12541 as_dir=`$as_dirname -- "$as_dir" ||
12542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543 X"$as_dir" : 'X\(//\)[^/]' \| \
12544 X"$as_dir" : 'X\(//\)$' \| \
12545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12546$as_echo X"$as_dir" |
12547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12548 s//\1/
12549 q
12550 }
12551 /^X\(\/\/\)[^/].*/{
12552 s//\1/
12553 q
12554 }
12555 /^X\(\/\/\)$/{
12556 s//\1/
12557 q
12558 }
12559 /^X\(\/\).*/{
12560 s//\1/
12561 q
12562 }
12563 s/.*/./; q'`
12564 test -d "$as_dir" && break
12565 done
12566 test -z "$as_dirs" || eval "mkdir $as_dirs"
12567 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12568
81ecdfbb
RW
12569
12570} # as_fn_mkdir_p
6bf9431b 12571if mkdir -p . 2>/dev/null; then
81ecdfbb 12572 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12573else
12574 test -d ./-p && rmdir ./-p
12575 as_mkdir_p=false
1b9750d6 12576fi
0ab6f085 12577
81ecdfbb
RW
12578if test -x / >/dev/null 2>&1; then
12579 as_test_x='test -x'
12580else
12581 if ls -dL / >/dev/null 2>&1; then
12582 as_ls_L_option=L
12583 else
12584 as_ls_L_option=
12585 fi
12586 as_test_x='
12587 eval sh -c '\''
12588 if test -d "$1"; then
12589 test -d "$1/.";
12590 else
12591 case $1 in #(
12592 -*)set "./$1";;
12593 esac;
12594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12595 ???[sx]*):;;*)false;;esac;fi
12596 '\'' sh
12597 '
12598fi
12599as_executable_p=$as_test_x
0eee5820 12600
6bf9431b
BE
12601# Sed expression to map a string onto a valid CPP name.
12602as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12603
12604# Sed expression to map a string onto a valid variable name.
12605as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12606
1b9750d6 12607
6bf9431b 12608exec 6>&1
81ecdfbb
RW
12609## ----------------------------------- ##
12610## Main body of $CONFIG_STATUS script. ##
12611## ----------------------------------- ##
12612_ASEOF
12613test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12614
81ecdfbb
RW
12615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12617# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12618# values after options handling.
12619ac_log="
2e98a7bd 12620This file was extended by gprof $as_me 2.24.51, which was
81ecdfbb 12621generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12622
12623 CONFIG_FILES = $CONFIG_FILES
12624 CONFIG_HEADERS = $CONFIG_HEADERS
12625 CONFIG_LINKS = $CONFIG_LINKS
12626 CONFIG_COMMANDS = $CONFIG_COMMANDS
12627 $ $0 $@
12628
81ecdfbb
RW
12629on `(hostname || uname -n) 2>/dev/null | sed 1q`
12630"
12631
6bf9431b
BE
12632_ACEOF
12633
81ecdfbb
RW
12634case $ac_config_files in *"
12635"*) set x $ac_config_files; shift; ac_config_files=$*;;
12636esac
a2d91340 12637
81ecdfbb
RW
12638case $ac_config_headers in *"
12639"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12640esac
0ab6f085 12641
0ab6f085 12642
81ecdfbb
RW
12643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12644# Files that config.status was made for.
12645config_files="$ac_config_files"
12646config_headers="$ac_config_headers"
12647config_commands="$ac_config_commands"
a2d91340 12648
81ecdfbb 12649_ACEOF
0ab6f085 12650
81ecdfbb 12651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12652ac_cs_usage="\
81ecdfbb
RW
12653\`$as_me' instantiates files and other configuration actions
12654from templates according to the current configuration. Unless the files
12655and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12656
81ecdfbb 12657Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12658
12659 -h, --help print this help, then exit
81ecdfbb
RW
12660 -V, --version print version number and configuration settings, then exit
12661 -q, --quiet, --silent
12662 do not print progress messages
6bf9431b
BE
12663 -d, --debug don't remove temporary files
12664 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12665 --file=FILE[:TEMPLATE]
12666 instantiate the configuration file FILE
12667 --header=FILE[:TEMPLATE]
12668 instantiate the configuration header FILE
6bf9431b
BE
12669
12670Configuration files:
12671$config_files
12672
12673Configuration headers:
12674$config_headers
12675
12676Configuration commands:
12677$config_commands
12678
81ecdfbb 12679Report bugs to the package provider."
0ab6f085 12680
81ecdfbb
RW
12681_ACEOF
12682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12683ac_cs_version="\\
2e98a7bd 12684gprof config.status 2.24.51
81ecdfbb
RW
12685configured by $0, generated by GNU Autoconf 2.64,
12686 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12687
81ecdfbb 12688Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12689This config.status script is free software; the Free Software Foundation
12690gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12691
12692ac_pwd='$ac_pwd'
12693srcdir='$srcdir'
12694INSTALL='$INSTALL'
12695MKDIR_P='$MKDIR_P'
12696AWK='$AWK'
12697test -n "\$AWK" || AWK=awk
6bf9431b
BE
12698_ACEOF
12699
81ecdfbb
RW
12700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701# The default lists apply if the user does not specify any file.
6bf9431b
BE
12702ac_need_defaults=:
12703while test $# != 0
12704do
12705 case $1 in
12706 --*=*)
81ecdfbb
RW
12707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12709 ac_shift=:
252b5132 12710 ;;
81ecdfbb 12711 *)
6bf9431b
BE
12712 ac_option=$1
12713 ac_optarg=$2
12714 ac_shift=shift
252b5132 12715 ;;
6bf9431b 12716 esac
252b5132 12717
6bf9431b
BE
12718 case $ac_option in
12719 # Handling of the options.
6bf9431b
BE
12720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12721 ac_cs_recheck=: ;;
81ecdfbb
RW
12722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12723 $as_echo "$ac_cs_version"; exit ;;
12724 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12725 debug=: ;;
12726 --file | --fil | --fi | --f )
12727 $ac_shift
81ecdfbb
RW
12728 case $ac_optarg in
12729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12730 esac
12731 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12732 ac_need_defaults=false;;
12733 --header | --heade | --head | --hea )
12734 $ac_shift
81ecdfbb
RW
12735 case $ac_optarg in
12736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12737 esac
12738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12739 ac_need_defaults=false;;
81ecdfbb
RW
12740 --he | --h)
12741 # Conflict between --help and --header
12742 as_fn_error "ambiguous option: \`$1'
12743Try \`$0 --help' for more information.";;
12744 --help | --hel | -h )
12745 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12748 ac_cs_silent=: ;;
252b5132 12749
6bf9431b 12750 # This is an error.
81ecdfbb
RW
12751 -*) as_fn_error "unrecognized option: \`$1'
12752Try \`$0 --help' for more information." ;;
252b5132 12753
81ecdfbb
RW
12754 *) as_fn_append ac_config_targets " $1"
12755 ac_need_defaults=false ;;
252b5132 12756
6bf9431b
BE
12757 esac
12758 shift
12759done
252b5132 12760
6bf9431b 12761ac_configure_extra_args=
252b5132 12762
6bf9431b
BE
12763if $ac_cs_silent; then
12764 exec 6>/dev/null
12765 ac_configure_extra_args="$ac_configure_extra_args --silent"
12766fi
252b5132 12767
6bf9431b 12768_ACEOF
81ecdfbb 12769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12770if \$ac_cs_recheck; then
81ecdfbb
RW
12771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12772 shift
12773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12774 CONFIG_SHELL='$SHELL'
12775 export CONFIG_SHELL
12776 exec "\$@"
6bf9431b
BE
12777fi
12778
12779_ACEOF
81ecdfbb
RW
12780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781exec 5>>config.log
12782{
12783 echo
12784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12785## Running $as_me. ##
12786_ASBOX
12787 $as_echo "$ac_log"
12788} >&5
6bf9431b 12789
81ecdfbb
RW
12790_ACEOF
12791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12792#
81ecdfbb 12793# INIT-COMMANDS
252b5132 12794#
6bf9431b 12795AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12796
12797
12798# The HP-UX ksh and POSIX shell print the target directory to stdout
12799# if CDPATH is set.
12800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12801
12802sed_quote_subst='$sed_quote_subst'
12803double_quote_subst='$double_quote_subst'
12804delay_variable_subst='$delay_variable_subst'
3725885a
RW
12805macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12806macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12807enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12808enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12809pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12810enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12811SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12812ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12813host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12814host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12815host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12816build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12817build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12818build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12819SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12820Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12821GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12822EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12823FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12824LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12825NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12826LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12827max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12828ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12829exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12830lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12831lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12832lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12833reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12834reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12835OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12836deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12837file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12838AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12839AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12840STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12841RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12842old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12843old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12844old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12845lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12846CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12847CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12848compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12849GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12850lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12851lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12852lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12853lt_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"`'
12854objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12855MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12856lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12857lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12858lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12859lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12860lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12861need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12862DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12863NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12864LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12865OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12866OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12867libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12868shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12869extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12870archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12871enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12872export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12873whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12874compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12875old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12876old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12877archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12878archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12879module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12880module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12881with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12882allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12883no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12884hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12885hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12886hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12887hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12888hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12889hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12890hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12891hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12892inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12893link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12894fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12895always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12896export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12897exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12898include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12899prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12900file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12901variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12902need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12903need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12904version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12905runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12906shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12907shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12908libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12909library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12910soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12911install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12912postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12913postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12914finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12915finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12916hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12917sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12918sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12919hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12920enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12921enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12922enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12923old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12924striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
12925
12926LTCC='$LTCC'
12927LTCFLAGS='$LTCFLAGS'
12928compiler='$compiler_DEFAULT'
12929
3725885a
RW
12930# A function that is used when there is no print builtin or printf.
12931func_fallback_echo ()
12932{
12933 eval 'cat <<_LTECHO_EOF
12934\$1
12935_LTECHO_EOF'
12936}
12937
d7040cdb 12938# Quote evaled strings.
3725885a
RW
12939for var in SHELL \
12940ECHO \
12941SED \
d7040cdb
SE
12942GREP \
12943EGREP \
12944FGREP \
12945LD \
12946NM \
12947LN_S \
12948lt_SP2NL \
12949lt_NL2SP \
12950reload_flag \
b214d478 12951OBJDUMP \
d7040cdb
SE
12952deplibs_check_method \
12953file_magic_cmd \
12954AR \
12955AR_FLAGS \
12956STRIP \
12957RANLIB \
12958CC \
12959CFLAGS \
12960compiler \
12961lt_cv_sys_global_symbol_pipe \
12962lt_cv_sys_global_symbol_to_cdecl \
12963lt_cv_sys_global_symbol_to_c_name_address \
b214d478 12964lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
12965lt_prog_compiler_no_builtin_flag \
12966lt_prog_compiler_wl \
12967lt_prog_compiler_pic \
12968lt_prog_compiler_static \
12969lt_cv_prog_compiler_c_o \
12970need_locks \
b214d478
SE
12971DSYMUTIL \
12972NMEDIT \
12973LIPO \
12974OTOOL \
12975OTOOL64 \
d7040cdb
SE
12976shrext_cmds \
12977export_dynamic_flag_spec \
12978whole_archive_flag_spec \
12979compiler_needs_object \
12980with_gnu_ld \
12981allow_undefined_flag \
12982no_undefined_flag \
12983hardcode_libdir_flag_spec \
12984hardcode_libdir_flag_spec_ld \
12985hardcode_libdir_separator \
12986fix_srcfile_path \
12987exclude_expsyms \
12988include_expsyms \
12989file_list_spec \
12990variables_saved_for_relink \
12991libname_spec \
12992library_names_spec \
12993soname_spec \
3725885a 12994install_override_mode \
d7040cdb
SE
12995finish_eval \
12996old_striplib \
12997striplib; do
3725885a 12998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 12999 *[\\\\\\\`\\"\\\$]*)
3725885a 13000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13001 ;;
13002 *)
13003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13004 ;;
13005 esac
13006done
13007
13008# Double-quote double-evaled strings.
13009for var in reload_cmds \
13010old_postinstall_cmds \
13011old_postuninstall_cmds \
13012old_archive_cmds \
13013extract_expsyms_cmds \
13014old_archive_from_new_cmds \
13015old_archive_from_expsyms_cmds \
13016archive_cmds \
13017archive_expsym_cmds \
13018module_cmds \
13019module_expsym_cmds \
13020export_symbols_cmds \
13021prelink_cmds \
13022postinstall_cmds \
13023postuninstall_cmds \
13024finish_cmds \
13025sys_lib_search_path_spec \
13026sys_lib_dlsearch_path_spec; do
3725885a 13027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13028 *[\\\\\\\`\\"\\\$]*)
3725885a 13029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13030 ;;
13031 *)
13032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13033 ;;
13034 esac
13035done
13036
d7040cdb
SE
13037ac_aux_dir='$ac_aux_dir'
13038xsi_shell='$xsi_shell'
13039lt_shell_append='$lt_shell_append'
13040
13041# See if we are running on zsh, and set the options which allow our
13042# commands through without removal of \ escapes INIT.
13043if test -n "\${ZSH_VERSION+set}" ; then
13044 setopt NO_GLOB_SUBST
13045fi
13046
13047
13048 PACKAGE='$PACKAGE'
13049 VERSION='$VERSION'
13050 TIMESTAMP='$TIMESTAMP'
13051 RM='$RM'
13052 ofile='$ofile'
13053
13054
13055
20e95c23
DJ
13056# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13057 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13058 # from automake.
13059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13060 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13061 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
13062
13063
13064_ACEOF
13065
81ecdfbb 13066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 13067
81ecdfbb 13068# Handling of arguments.
6bf9431b 13069for ac_config_target in $ac_config_targets
252b5132 13070do
81ecdfbb
RW
13071 case $ac_config_target in
13072 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13073 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13074 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13075 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13077 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13078
13079 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
13080 esac
13081done
13082
81ecdfbb 13083
6bf9431b
BE
13084# If the user did not use the arguments to specify the items to instantiate,
13085# then the envvar interface is used. Set only those that are not.
13086# We use the long form for the default assignment because of an extremely
13087# bizarre bug on SunOS 4.1.3.
13088if $ac_need_defaults; then
13089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13092fi
13093
13094# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13095# simply because there is no reason against having it here, and in addition,
6bf9431b 13096# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13097# Hook for its removal unless debugging.
13098# Note that there is a small window in which the directory will not be cleaned:
13099# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
13100$debug ||
13101{
81ecdfbb
RW
13102 tmp=
13103 trap 'exit_status=$?
13104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13105' 0
13106 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 13107}
6bf9431b 13108# Create a (secure) tmp directory for tmp files.
252b5132 13109
6bf9431b 13110{
81ecdfbb 13111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
13112 test -n "$tmp" && test -d "$tmp"
13113} ||
13114{
81ecdfbb
RW
13115 tmp=./conf$$-$RANDOM
13116 (umask 077 && mkdir "$tmp")
13117} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13118
13119# Set up the scripts for CONFIG_FILES section.
13120# No need to generate them if there are no CONFIG_FILES.
13121# This happens for instance with `./config.status config.h'.
13122if test -n "$CONFIG_FILES"; then
13123
13124
13125ac_cr=`echo X | tr X '\015'`
13126# On cygwin, bash can eat \r inside `` if the user requested igncr.
13127# But we know of no other shell where ac_cr would be empty at this
13128# point, so we can use a bashism as a fallback.
13129if test "x$ac_cr" = x; then
13130 eval ac_cr=\$\'\\r\'
13131fi
13132ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13133if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13134 ac_cs_awk_cr='\r'
13135else
13136 ac_cs_awk_cr=$ac_cr
13137fi
13138
13139echo 'BEGIN {' >"$tmp/subs1.awk" &&
13140_ACEOF
13141
13142
13143{
13144 echo "cat >conf$$subs.awk <<_ACEOF" &&
13145 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13146 echo "_ACEOF"
13147} >conf$$subs.sh ||
13148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13149ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13150ac_delim='%!_!# '
13151for ac_last_try in false false false false false :; do
13152 . ./conf$$subs.sh ||
13153 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13154
13155 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13156 if test $ac_delim_n = $ac_delim_num; then
13157 break
13158 elif $ac_last_try; then
13159 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13160 else
13161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13162 fi
13163done
13164rm -f conf$$subs.sh
13165
13166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13168_ACEOF
13169sed -n '
13170h
13171s/^/S["/; s/!.*/"]=/
13172p
13173g
13174s/^[^!]*!//
13175:repl
13176t repl
13177s/'"$ac_delim"'$//
13178t delim
13179:nl
13180h
13181s/\(.\{148\}\).*/\1/
13182t more1
13183s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13184p
13185n
13186b repl
13187:more1
13188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13189p
13190g
13191s/.\{148\}//
13192t nl
13193:delim
13194h
13195s/\(.\{148\}\).*/\1/
13196t more2
13197s/["\\]/\\&/g; s/^/"/; s/$/"/
13198p
13199b
13200:more2
13201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13202p
13203g
13204s/.\{148\}//
13205t delim
13206' <conf$$subs.awk | sed '
13207/^[^""]/{
13208 N
13209 s/\n//
13210}
13211' >>$CONFIG_STATUS || ac_write_fail=1
13212rm -f conf$$subs.awk
13213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13214_ACAWK
13215cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13216 for (key in S) S_is_set[key] = 1
13217 FS = "\a"
13218
13219}
6bf9431b 13220{
81ecdfbb
RW
13221 line = $ 0
13222 nfields = split(line, field, "@")
13223 substed = 0
13224 len = length(field[1])
13225 for (i = 2; i < nfields; i++) {
13226 key = field[i]
13227 keylen = length(key)
13228 if (S_is_set[key]) {
13229 value = S[key]
13230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13231 len += length(value) + length(field[++i])
13232 substed = 1
13233 } else
13234 len += 1 + keylen
13235 }
13236
13237 print line
6bf9431b 13238}
252b5132 13239
81ecdfbb
RW
13240_ACAWK
13241_ACEOF
13242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13245else
13246 cat
13247fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13248 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13249_ACEOF
13250
81ecdfbb
RW
13251# VPATH may cause trouble with some makes, so we remove $(srcdir),
13252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13253# trailing colons and then remove the whole line if VPATH becomes empty
13254# (actually we leave an empty line to preserve line numbers).
13255if test "x$srcdir" = x.; then
13256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13257s/:*\$(srcdir):*/:/
13258s/:*\${srcdir}:*/:/
13259s/:*@srcdir@:*/:/
13260s/^\([^=]*=[ ]*\):*/\1/
13261s/:*$//
13262s/^[^=]*=[ ]*$//
13263}'
13264fi
13265
13266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13267fi # test -n "$CONFIG_FILES"
0ab6f085 13268
81ecdfbb
RW
13269# Set up the scripts for CONFIG_HEADERS section.
13270# No need to generate them if there are no CONFIG_HEADERS.
13271# This happens for instance with `./config.status Makefile'.
13272if test -n "$CONFIG_HEADERS"; then
13273cat >"$tmp/defines.awk" <<\_ACAWK ||
13274BEGIN {
13275_ACEOF
6bf9431b 13276
81ecdfbb
RW
13277# Transform confdefs.h into an awk script `defines.awk', embedded as
13278# here-document in config.status, that substitutes the proper values into
13279# config.h.in to produce config.h.
1b9750d6 13280
81ecdfbb
RW
13281# Create a delimiter string that does not exist in confdefs.h, to ease
13282# handling of long lines.
13283ac_delim='%!_!# '
13284for ac_last_try in false false :; do
13285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13286 if test -z "$ac_t"; then
13287 break
13288 elif $ac_last_try; then
13289 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13290 else
13291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13292 fi
13293done
13294
13295# For the awk script, D is an array of macro values keyed by name,
13296# likewise P contains macro parameters if any. Preserve backslash
13297# newline sequences.
13298
13299ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13300sed -n '
13301s/.\{148\}/&'"$ac_delim"'/g
13302t rset
13303:rset
13304s/^[ ]*#[ ]*define[ ][ ]*/ /
13305t def
13306d
13307:def
13308s/\\$//
13309t bsnl
13310s/["\\]/\\&/g
13311s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13312D["\1"]=" \3"/p
13313s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13314d
13315:bsnl
13316s/["\\]/\\&/g
13317s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13318D["\1"]=" \3\\\\\\n"\\/p
13319t cont
13320s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13321t cont
13322d
13323:cont
13324n
13325s/.\{148\}/&'"$ac_delim"'/g
13326t clear
13327:clear
13328s/\\$//
13329t bsnlc
13330s/["\\]/\\&/g; s/^/"/; s/$/"/p
13331d
13332:bsnlc
13333s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13334b cont
13335' <confdefs.h | sed '
13336s/'"$ac_delim"'/"\\\
13337"/g' >>$CONFIG_STATUS || ac_write_fail=1
13338
13339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 for (key in D) D_is_set[key] = 1
13341 FS = "\a"
13342}
13343/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13344 line = \$ 0
13345 split(line, arg, " ")
13346 if (arg[1] == "#") {
13347 defundef = arg[2]
13348 mac1 = arg[3]
13349 } else {
13350 defundef = substr(arg[1], 2)
13351 mac1 = arg[2]
13352 }
13353 split(mac1, mac2, "(") #)
13354 macro = mac2[1]
13355 prefix = substr(line, 1, index(line, defundef) - 1)
13356 if (D_is_set[macro]) {
13357 # Preserve the white space surrounding the "#".
13358 print prefix "define", macro P[macro] D[macro]
13359 next
13360 } else {
13361 # Replace #undef with comments. This is necessary, for example,
13362 # in the case of _POSIX_SOURCE, which is predefined and required
13363 # on some systems where configure will not decide to define it.
13364 if (defundef == "undef") {
13365 print "/*", prefix defundef, macro, "*/"
13366 next
13367 }
13368 }
13369}
13370{ print }
13371_ACAWK
1b9750d6 13372_ACEOF
81ecdfbb
RW
13373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13375fi # test -n "$CONFIG_HEADERS"
1b9750d6 13376
81ecdfbb
RW
13377
13378eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13379shift
13380for ac_tag
13381do
13382 case $ac_tag in
13383 :[FHLC]) ac_mode=$ac_tag; continue;;
13384 esac
13385 case $ac_mode$ac_tag in
13386 :[FHL]*:*);;
13387 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13388 :[FH]-) ac_tag=-:-;;
13389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13390 esac
13391 ac_save_IFS=$IFS
13392 IFS=:
13393 set x $ac_tag
13394 IFS=$ac_save_IFS
13395 shift
13396 ac_file=$1
13397 shift
13398
13399 case $ac_mode in
13400 :L) ac_source=$1;;
13401 :[FH])
13402 ac_file_inputs=
13403 for ac_f
13404 do
13405 case $ac_f in
13406 -) ac_f="$tmp/stdin";;
13407 *) # Look for the file first in the build tree, then in the source tree
13408 # (if the path is not absolute). The absolute path cannot be DOS-style,
13409 # because $ac_f cannot contain `:'.
13410 test -f "$ac_f" ||
13411 case $ac_f in
13412 [\\/$]*) false;;
13413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13414 esac ||
13415 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13416 esac
13417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13418 as_fn_append ac_file_inputs " '$ac_f'"
13419 done
13420
13421 # Let's still pretend it is `configure' which instantiates (i.e., don't
13422 # use $as_me), people would be surprised to read:
13423 # /* config.h. Generated by config.status. */
13424 configure_input='Generated from '`
13425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13426 `' by configure.'
13427 if test x"$ac_file" != x-; then
13428 configure_input="$ac_file. $configure_input"
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13430$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13431 fi
81ecdfbb
RW
13432 # Neutralize special characters interpreted by sed in replacement strings.
13433 case $configure_input in #(
13434 *\&* | *\|* | *\\* )
13435 ac_sed_conf_input=`$as_echo "$configure_input" |
13436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13437 *) ac_sed_conf_input=$configure_input;;
13438 esac
1b9750d6 13439
81ecdfbb
RW
13440 case $ac_tag in
13441 *:-:* | *:-) cat >"$tmp/stdin" \
13442 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13443 esac
13444 ;;
252b5132
RH
13445 esac
13446
81ecdfbb 13447 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13448$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13449 X"$ac_file" : 'X\(//\)[^/]' \| \
13450 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13452$as_echo X"$ac_file" |
13453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13454 s//\1/
13455 q
13456 }
13457 /^X\(\/\/\)[^/].*/{
13458 s//\1/
13459 q
13460 }
13461 /^X\(\/\/\)$/{
13462 s//\1/
13463 q
13464 }
13465 /^X\(\/\).*/{
13466 s//\1/
13467 q
13468 }
13469 s/.*/./; q'`
13470 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13471 ac_builddir=.
13472
81ecdfbb
RW
13473case "$ac_dir" in
13474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13475*)
13476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13477 # A ".." for each directory in $ac_dir_suffix.
13478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13479 case $ac_top_builddir_sub in
13480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13482 esac ;;
13483esac
13484ac_abs_top_builddir=$ac_pwd
13485ac_abs_builddir=$ac_pwd$ac_dir_suffix
13486# for backward compatibility:
13487ac_top_builddir=$ac_top_build_prefix
252b5132 13488
6bf9431b 13489case $srcdir in
81ecdfbb 13490 .) # We are building in place.
6bf9431b 13491 ac_srcdir=.
81ecdfbb
RW
13492 ac_top_srcdir=$ac_top_builddir_sub
13493 ac_abs_top_srcdir=$ac_pwd ;;
13494 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13495 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13496 ac_top_srcdir=$srcdir
13497 ac_abs_top_srcdir=$srcdir ;;
13498 *) # Relative name.
13499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13500 ac_top_srcdir=$ac_top_build_prefix$srcdir
13501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13502esac
81ecdfbb 13503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13504
252b5132 13505
81ecdfbb
RW
13506 case $ac_mode in
13507 :F)
13508 #
13509 # CONFIG_FILE
13510 #
6bf9431b
BE
13511
13512 case $INSTALL in
13513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13515 esac
13516 ac_MKDIR_P=$MKDIR_P
13517 case $MKDIR_P in
13518 [\\/$]* | ?:[\\/]* ) ;;
13519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13520 esac
81ecdfbb 13521_ACEOF
1b9750d6 13522
81ecdfbb
RW
13523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13524# If the template does not know about datarootdir, expand it.
13525# FIXME: This hack should be removed a few years after 2.60.
13526ac_datarootdir_hack=; ac_datarootdir_seen=
13527ac_sed_dataroot='
13528/datarootdir/ {
13529 p
13530 q
13531}
13532/@datadir@/p
13533/@docdir@/p
13534/@infodir@/p
13535/@localedir@/p
13536/@mandir@/p'
13537case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13538*datarootdir*) ac_datarootdir_seen=yes;;
13539*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13541$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13542_ACEOF
13543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544 ac_datarootdir_hack='
13545 s&@datadir@&$datadir&g
13546 s&@docdir@&$docdir&g
13547 s&@infodir@&$infodir&g
13548 s&@localedir@&$localedir&g
13549 s&@mandir@&$mandir&g
13550 s&\\\${datarootdir}&$datarootdir&g' ;;
13551esac
6bf9431b 13552_ACEOF
81ecdfbb
RW
13553
13554# Neutralize VPATH when `$srcdir' = `.'.
13555# Shell code in configure.ac might set extrasub.
13556# FIXME: do we really want to maintain this feature?
13557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558ac_sed_extra="$ac_vpsub
6bf9431b
BE
13559$extrasub
13560_ACEOF
81ecdfbb 13561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13562:t
13563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13564s|@configure_input@|$ac_sed_conf_input|;t t
13565s&@top_builddir@&$ac_top_builddir_sub&;t t
13566s&@top_build_prefix@&$ac_top_build_prefix&;t t
13567s&@srcdir@&$ac_srcdir&;t t
13568s&@abs_srcdir@&$ac_abs_srcdir&;t t
13569s&@top_srcdir@&$ac_top_srcdir&;t t
13570s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13571s&@builddir@&$ac_builddir&;t t
13572s&@abs_builddir@&$ac_abs_builddir&;t t
13573s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13574s&@INSTALL@&$ac_INSTALL&;t t
13575s&@MKDIR_P@&$ac_MKDIR_P&;t t
13576$ac_datarootdir_hack
13577"
13578eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13579 || as_fn_error "could not create $ac_file" "$LINENO" 5
13580
13581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13585which seems to be undefined. Please make sure it is defined." >&5
13586$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13587which seems to be undefined. Please make sure it is defined." >&2;}
13588
13589 rm -f "$tmp/stdin"
6bf9431b 13590 case $ac_file in
81ecdfbb
RW
13591 -) cat "$tmp/out" && rm -f "$tmp/out";;
13592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13593 esac \
13594 || as_fn_error "could not create $ac_file" "$LINENO" 5
13595 ;;
13596 :H)
13597 #
13598 # CONFIG_HEADER
13599 #
6bf9431b 13600 if test x"$ac_file" != x-; then
81ecdfbb
RW
13601 {
13602 $as_echo "/* $configure_input */" \
13603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13604 } >"$tmp/config.h" \
13605 || as_fn_error "could not create $ac_file" "$LINENO" 5
13606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13608$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13609 else
81ecdfbb
RW
13610 rm -f "$ac_file"
13611 mv "$tmp/config.h" "$ac_file" \
13612 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13613 fi
6bf9431b 13614 else
81ecdfbb
RW
13615 $as_echo "/* $configure_input */" \
13616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13617 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13618 fi
81ecdfbb
RW
13619# Compute "$ac_file"'s index in $config_headers.
13620_am_arg="$ac_file"
6bf9431b
BE
13621_am_stamp_count=1
13622for _am_header in $config_headers :; do
13623 case $_am_header in
81ecdfbb 13624 $_am_arg | $_am_arg:* )
6bf9431b
BE
13625 break ;;
13626 * )
13627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13628 esac
13629done
81ecdfbb
RW
13630echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13631$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13632 X"$_am_arg" : 'X\(//\)[^/]' \| \
13633 X"$_am_arg" : 'X\(//\)$' \| \
13634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13635$as_echo X"$_am_arg" |
13636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13637 s//\1/
13638 q
13639 }
13640 /^X\(\/\/\)[^/].*/{
13641 s//\1/
13642 q
13643 }
13644 /^X\(\/\/\)$/{
13645 s//\1/
13646 q
13647 }
13648 /^X\(\/\).*/{
13649 s//\1/
13650 q
13651 }
13652 s/.*/./; q'`/stamp-h$_am_stamp_count
13653 ;;
0ab6f085 13654
81ecdfbb
RW
13655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13656$as_echo "$as_me: executing $ac_file commands" >&6;}
13657 ;;
13658 esac
6bf9431b
BE
13659
13660
81ecdfbb
RW
13661 case $ac_file$ac_mode in
13662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13663 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13664 # are listed without --file. Let's play safe and only enable the eval
13665 # if we detect the quoting.
13666 case $CONFIG_FILES in
13667 *\'*) eval set x "$CONFIG_FILES" ;;
13668 *) set x $CONFIG_FILES ;;
13669 esac
13670 shift
13671 for mf
13672 do
13673 # Strip MF so we end up with the name of the file.
13674 mf=`echo "$mf" | sed -e 's/:.*$//'`
13675 # Check whether this is an Automake generated Makefile or not.
13676 # We used to match only the files named `Makefile.in', but
13677 # some people rename them; so instead we look at the file content.
13678 # Grep'ing the first line is not enough: some people post-process
13679 # each Makefile.in and add a new line on top of each file to say so.
13680 # Grep'ing the whole file is not good either: AIX grep has a line
13681 # limit of 2048, but all sed's we know have understand at least 4000.
13682 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13683 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13684$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13685 X"$mf" : 'X\(//\)[^/]' \| \
13686 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13687 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13688$as_echo X"$mf" |
13689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13690 s//\1/
13691 q
13692 }
13693 /^X\(\/\/\)[^/].*/{
13694 s//\1/
13695 q
13696 }
13697 /^X\(\/\/\)$/{
13698 s//\1/
13699 q
13700 }
13701 /^X\(\/\).*/{
13702 s//\1/
13703 q
13704 }
13705 s/.*/./; q'`
13706 else
13707 continue
13708 fi
13709 # Extract the definition of DEPDIR, am__include, and am__quote
13710 # from the Makefile without running `make'.
13711 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13712 test -z "$DEPDIR" && continue
13713 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13714 test -z "am__include" && continue
13715 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13716 # When using ansi2knr, U may be empty or an underscore; expand it
13717 U=`sed -n 's/^U = //p' < "$mf"`
13718 # Find all dependency output files, they are included files with
13719 # $(DEPDIR) in their names. We invoke sed twice because it is the
13720 # simplest approach to changing $(DEPDIR) to its actual value in the
13721 # expansion.
13722 for file in `sed -n "
13723 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13724 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13725 # Make sure the directory exists.
13726 test -f "$dirpart/$file" && continue
13727 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13728$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729 X"$file" : 'X\(//\)[^/]' \| \
13730 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13731 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13732$as_echo X"$file" |
13733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13734 s//\1/
13735 q
13736 }
13737 /^X\(\/\/\)[^/].*/{
13738 s//\1/
13739 q
13740 }
13741 /^X\(\/\/\)$/{
13742 s//\1/
13743 q
13744 }
13745 /^X\(\/\).*/{
13746 s//\1/
13747 q
13748 }
13749 s/.*/./; q'`
13750 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13751 # echo "creating $dirpart/$file"
13752 echo '# dummy' > "$dirpart/$file"
6bf9431b 13753 done
6bf9431b 13754 done
81ecdfbb 13755}
d7040cdb 13756 ;;
81ecdfbb 13757 "libtool":C)
d7040cdb
SE
13758
13759 # See if we are running on zsh, and set the options which allow our
13760 # commands through without removal of \ escapes.
13761 if test -n "${ZSH_VERSION+set}" ; then
13762 setopt NO_GLOB_SUBST
13763 fi
13764
13765 cfgfile="${ofile}T"
13766 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13767 $RM "$cfgfile"
13768
13769 cat <<_LT_EOF >> "$cfgfile"
13770#! $SHELL
13771
13772# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13773# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13774# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13775# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13776#
b214d478 13777# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 13778# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 13779# Written by Gordon Matzigkeit, 1996
d7040cdb 13780#
b214d478 13781# This file is part of GNU Libtool.
d7040cdb 13782#
b214d478
SE
13783# GNU Libtool is free software; you can redistribute it and/or
13784# modify it under the terms of the GNU General Public License as
13785# published by the Free Software Foundation; either version 2 of
13786# the License, or (at your option) any later version.
d7040cdb 13787#
b214d478
SE
13788# As a special exception to the GNU General Public License,
13789# if you distribute this file as part of a program or library that
13790# is built using GNU Libtool, you may include this file under the
13791# same distribution terms that you use for the rest of that program.
d7040cdb 13792#
b214d478
SE
13793# GNU Libtool is distributed in the hope that it will be useful,
13794# but WITHOUT ANY WARRANTY; without even the implied warranty of
13795# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13796# GNU General Public License for more details.
d7040cdb 13797#
b214d478
SE
13798# You should have received a copy of the GNU General Public License
13799# along with GNU Libtool; see the file COPYING. If not, a copy
13800# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13801# obtained by writing to the Free Software Foundation, Inc.,
13802# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13803
13804
13805# The names of the tagged configurations supported by this script.
13806available_tags=""
13807
13808# ### BEGIN LIBTOOL CONFIG
13809
13810# Which release of libtool.m4 was used?
13811macro_version=$macro_version
13812macro_revision=$macro_revision
13813
13814# Whether or not to build shared libraries.
13815build_libtool_libs=$enable_shared
13816
13817# Whether or not to build static libraries.
13818build_old_libs=$enable_static
13819
13820# What type of objects to build.
13821pic_mode=$pic_mode
13822
13823# Whether or not to optimize for fast installation.
13824fast_install=$enable_fast_install
13825
3725885a
RW
13826# Shell to use when invoking shell scripts.
13827SHELL=$lt_SHELL
13828
13829# An echo program that protects backslashes.
13830ECHO=$lt_ECHO
13831
d7040cdb
SE
13832# The host system.
13833host_alias=$host_alias
13834host=$host
13835host_os=$host_os
13836
13837# The build system.
13838build_alias=$build_alias
13839build=$build
13840build_os=$build_os
13841
13842# A sed program that does not truncate output.
13843SED=$lt_SED
13844
13845# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13846Xsed="\$SED -e 1s/^X//"
13847
13848# A grep program that handles long lines.
13849GREP=$lt_GREP
13850
13851# An ERE matcher.
13852EGREP=$lt_EGREP
13853
13854# A literal string matcher.
13855FGREP=$lt_FGREP
13856
13857# A BSD- or MS-compatible name lister.
13858NM=$lt_NM
13859
13860# Whether we need soft or hard links.
13861LN_S=$lt_LN_S
13862
13863# What is the maximum length of a command?
13864max_cmd_len=$max_cmd_len
13865
13866# Object file suffix (normally "o").
13867objext=$ac_objext
13868
13869# Executable file suffix (normally "").
13870exeext=$exeext
13871
13872# whether the shell understands "unset".
13873lt_unset=$lt_unset
13874
13875# turn spaces into newlines.
13876SP2NL=$lt_lt_SP2NL
13877
13878# turn newlines into spaces.
13879NL2SP=$lt_lt_NL2SP
13880
b214d478
SE
13881# An object symbol dumper.
13882OBJDUMP=$lt_OBJDUMP
13883
d7040cdb
SE
13884# Method to check whether dependent libraries are shared objects.
13885deplibs_check_method=$lt_deplibs_check_method
13886
13887# Command to use when deplibs_check_method == "file_magic".
13888file_magic_cmd=$lt_file_magic_cmd
13889
13890# The archiver.
13891AR=$lt_AR
13892AR_FLAGS=$lt_AR_FLAGS
13893
13894# A symbol stripping program.
13895STRIP=$lt_STRIP
13896
13897# Commands used to install an old-style archive.
13898RANLIB=$lt_RANLIB
13899old_postinstall_cmds=$lt_old_postinstall_cmds
13900old_postuninstall_cmds=$lt_old_postuninstall_cmds
13901
3725885a
RW
13902# Whether to use a lock for old archive extraction.
13903lock_old_archive_extraction=$lock_old_archive_extraction
13904
d7040cdb
SE
13905# A C compiler.
13906LTCC=$lt_CC
13907
13908# LTCC compiler flags.
13909LTCFLAGS=$lt_CFLAGS
13910
13911# Take the output of nm and produce a listing of raw symbols and C names.
13912global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13913
13914# Transform the output of nm in a proper C declaration.
13915global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13916
13917# Transform the output of nm in a C name address pair.
13918global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13919
b214d478
SE
13920# Transform the output of nm in a C name address pair when lib prefix is needed.
13921global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13922
d7040cdb
SE
13923# The name of the directory that contains temporary libtool files.
13924objdir=$objdir
13925
d7040cdb
SE
13926# Used to examine libraries when file_magic_cmd begins with "file".
13927MAGIC_CMD=$MAGIC_CMD
13928
13929# Must we lock files when doing compilation?
13930need_locks=$lt_need_locks
13931
b214d478
SE
13932# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13933DSYMUTIL=$lt_DSYMUTIL
13934
13935# Tool to change global to local symbols on Mac OS X.
13936NMEDIT=$lt_NMEDIT
13937
13938# Tool to manipulate fat objects and archives on Mac OS X.
13939LIPO=$lt_LIPO
13940
13941# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13942OTOOL=$lt_OTOOL
13943
13944# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13945OTOOL64=$lt_OTOOL64
13946
d7040cdb
SE
13947# Old archive suffix (normally "a").
13948libext=$libext
13949
13950# Shared library suffix (normally ".so").
13951shrext_cmds=$lt_shrext_cmds
13952
13953# The commands to extract the exported symbol list from a shared archive.
13954extract_expsyms_cmds=$lt_extract_expsyms_cmds
13955
13956# Variables whose values should be saved in libtool wrapper scripts and
13957# restored at link time.
13958variables_saved_for_relink=$lt_variables_saved_for_relink
13959
13960# Do we need the "lib" prefix for modules?
13961need_lib_prefix=$need_lib_prefix
13962
13963# Do we need a version for libraries?
13964need_version=$need_version
13965
13966# Library versioning type.
13967version_type=$version_type
13968
13969# Shared library runtime path variable.
13970runpath_var=$runpath_var
13971
13972# Shared library path variable.
13973shlibpath_var=$shlibpath_var
13974
13975# Is shlibpath searched before the hard-coded library search path?
13976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13977
13978# Format of library name prefix.
13979libname_spec=$lt_libname_spec
13980
13981# List of archive names. First name is the real one, the rest are links.
13982# The last name is the one that the linker finds with -lNAME
13983library_names_spec=$lt_library_names_spec
13984
13985# The coded name of the library, if different from the real name.
13986soname_spec=$lt_soname_spec
13987
3725885a
RW
13988# Permission mode override for installation of shared libraries.
13989install_override_mode=$lt_install_override_mode
13990
d7040cdb
SE
13991# Command to use after installation of a shared archive.
13992postinstall_cmds=$lt_postinstall_cmds
13993
13994# Command to use after uninstallation of a shared archive.
13995postuninstall_cmds=$lt_postuninstall_cmds
13996
13997# Commands used to finish a libtool library installation in a directory.
13998finish_cmds=$lt_finish_cmds
13999
14000# As "finish_cmds", except a single script fragment to be evaled but
14001# not shown.
14002finish_eval=$lt_finish_eval
14003
14004# Whether we should hardcode library paths into libraries.
14005hardcode_into_libs=$hardcode_into_libs
14006
14007# Compile-time system search path for libraries.
14008sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14009
14010# Run-time system search path for libraries.
14011sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14012
14013# Whether dlopen is supported.
14014dlopen_support=$enable_dlopen
14015
14016# Whether dlopen of programs is supported.
14017dlopen_self=$enable_dlopen_self
14018
14019# Whether dlopen of statically linked programs is supported.
14020dlopen_self_static=$enable_dlopen_self_static
14021
14022# Commands to strip libraries.
14023old_striplib=$lt_old_striplib
14024striplib=$lt_striplib
14025
14026
14027# The linker used to build libraries.
14028LD=$lt_LD
14029
3725885a
RW
14030# How to create reloadable object files.
14031reload_flag=$lt_reload_flag
14032reload_cmds=$lt_reload_cmds
14033
d7040cdb
SE
14034# Commands used to build an old-style archive.
14035old_archive_cmds=$lt_old_archive_cmds
14036
14037# A language specific compiler.
14038CC=$lt_compiler
14039
14040# Is the compiler the GNU compiler?
14041with_gcc=$GCC
14042
14043# Compiler flag to turn off builtin functions.
14044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14045
14046# How to pass a linker flag through the compiler.
14047wl=$lt_lt_prog_compiler_wl
14048
14049# Additional compiler flags for building library objects.
14050pic_flag=$lt_lt_prog_compiler_pic
14051
14052# Compiler flag to prevent dynamic linking.
14053link_static_flag=$lt_lt_prog_compiler_static
14054
14055# Does compiler simultaneously support -c and -o options?
14056compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14057
14058# Whether or not to add -lc for building shared libraries.
14059build_libtool_need_lc=$archive_cmds_need_lc
14060
14061# Whether or not to disallow shared libs when runtime libs are static.
14062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14063
14064# Compiler flag to allow reflexive dlopens.
14065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14066
14067# Compiler flag to generate shared objects directly from archives.
14068whole_archive_flag_spec=$lt_whole_archive_flag_spec
14069
14070# Whether the compiler copes with passing no objects directly.
14071compiler_needs_object=$lt_compiler_needs_object
14072
14073# Create an old-style archive from a shared archive.
14074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14075
14076# Create a temporary old-style archive to link instead of a shared archive.
14077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14078
14079# Commands used to build a shared archive.
14080archive_cmds=$lt_archive_cmds
14081archive_expsym_cmds=$lt_archive_expsym_cmds
14082
14083# Commands used to build a loadable module if different from building
14084# a shared archive.
14085module_cmds=$lt_module_cmds
14086module_expsym_cmds=$lt_module_expsym_cmds
14087
14088# Whether we are building with GNU ld or not.
14089with_gnu_ld=$lt_with_gnu_ld
14090
14091# Flag that allows shared libraries with undefined symbols to be built.
14092allow_undefined_flag=$lt_allow_undefined_flag
14093
14094# Flag that enforces no undefined symbols.
14095no_undefined_flag=$lt_no_undefined_flag
14096
14097# Flag to hardcode \$libdir into a binary during linking.
14098# This must work even if \$libdir does not exist
14099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14100
14101# If ld is used when linking, flag to hardcode \$libdir into a binary
14102# during linking. This must work even if \$libdir does not exist.
14103hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14104
14105# Whether we need a single "-rpath" flag with a separated argument.
14106hardcode_libdir_separator=$lt_hardcode_libdir_separator
14107
14108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14109# DIR into the resulting binary.
14110hardcode_direct=$hardcode_direct
14111
14112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14113# DIR into the resulting binary and the resulting library dependency is
14114# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14115# library is relocated.
14116hardcode_direct_absolute=$hardcode_direct_absolute
14117
14118# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14119# into the resulting binary.
14120hardcode_minus_L=$hardcode_minus_L
14121
14122# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14123# into the resulting binary.
14124hardcode_shlibpath_var=$hardcode_shlibpath_var
14125
14126# Set to "yes" if building a shared library automatically hardcodes DIR
14127# into the library and all subsequent libraries and executables linked
14128# against it.
14129hardcode_automatic=$hardcode_automatic
14130
14131# Set to yes if linker adds runtime paths of dependent libraries
14132# to runtime path list.
14133inherit_rpath=$inherit_rpath
14134
14135# Whether libtool must link a program against all its dependency libraries.
14136link_all_deplibs=$link_all_deplibs
14137
14138# Fix the shell variable \$srcfile for the compiler.
14139fix_srcfile_path=$lt_fix_srcfile_path
14140
14141# Set to "yes" if exported symbols are required.
14142always_export_symbols=$always_export_symbols
14143
14144# The commands to list exported symbols.
14145export_symbols_cmds=$lt_export_symbols_cmds
14146
14147# Symbols that should not be listed in the preloaded symbols.
14148exclude_expsyms=$lt_exclude_expsyms
14149
14150# Symbols that must always be exported.
14151include_expsyms=$lt_include_expsyms
14152
14153# Commands necessary for linking programs (against libraries) with templates.
14154prelink_cmds=$lt_prelink_cmds
14155
14156# Specify filename containing input files.
14157file_list_spec=$lt_file_list_spec
14158
14159# How to hardcode a shared library path into an executable.
14160hardcode_action=$hardcode_action
14161
14162# ### END LIBTOOL CONFIG
14163
14164_LT_EOF
14165
14166 case $host_os in
14167 aix3*)
14168 cat <<\_LT_EOF >> "$cfgfile"
14169# AIX sometimes has problems with the GCC collect2 program. For some
14170# reason, if we set the COLLECT_NAMES environment variable, the problems
14171# vanish in a puff of smoke.
14172if test "X${COLLECT_NAMES+set}" != Xset; then
14173 COLLECT_NAMES=
14174 export COLLECT_NAMES
14175fi
14176_LT_EOF
14177 ;;
14178 esac
14179
14180
14181ltmain="$ac_aux_dir/ltmain.sh"
14182
14183
14184 # We use sed instead of cat because bash on DJGPP gets confused if
14185 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14186 # text mode, it properly converts lines to CR/LF. This bash problem
14187 # is reportedly fixed, but why not run on old versions too?
14188 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14189 || (rm -f "$cfgfile"; exit 1)
14190
14191 case $xsi_shell in
14192 yes)
14193 cat << \_LT_EOF >> "$cfgfile"
b214d478 14194
d7040cdb
SE
14195# func_dirname file append nondir_replacement
14196# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14197# otherwise set result to NONDIR_REPLACEMENT.
14198func_dirname ()
14199{
14200 case ${1} in
14201 */*) func_dirname_result="${1%/*}${2}" ;;
14202 * ) func_dirname_result="${3}" ;;
14203 esac
14204}
14205
14206# func_basename file
14207func_basename ()
14208{
14209 func_basename_result="${1##*/}"
14210}
14211
b214d478
SE
14212# func_dirname_and_basename file append nondir_replacement
14213# perform func_basename and func_dirname in a single function
14214# call:
14215# dirname: Compute the dirname of FILE. If nonempty,
14216# add APPEND to the result, otherwise set result
14217# to NONDIR_REPLACEMENT.
14218# value returned in "$func_dirname_result"
14219# basename: Compute filename of FILE.
14220# value retuned in "$func_basename_result"
14221# Implementation must be kept synchronized with func_dirname
14222# and func_basename. For efficiency, we do not delegate to
14223# those functions but instead duplicate the functionality here.
14224func_dirname_and_basename ()
14225{
14226 case ${1} in
14227 */*) func_dirname_result="${1%/*}${2}" ;;
14228 * ) func_dirname_result="${3}" ;;
14229 esac
14230 func_basename_result="${1##*/}"
14231}
14232
d7040cdb
SE
14233# func_stripname prefix suffix name
14234# strip PREFIX and SUFFIX off of NAME.
14235# PREFIX and SUFFIX must not contain globbing or regex special
14236# characters, hashes, percent signs, but SUFFIX may contain a leading
14237# dot (in which case that matches only a dot).
14238func_stripname ()
14239{
14240 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14241 # positional parameters, so assign one to ordinary parameter first.
14242 func_stripname_result=${3}
14243 func_stripname_result=${func_stripname_result#"${1}"}
14244 func_stripname_result=${func_stripname_result%"${2}"}
14245}
14246
14247# func_opt_split
14248func_opt_split ()
14249{
14250 func_opt_split_opt=${1%%=*}
14251 func_opt_split_arg=${1#*=}
14252}
14253
14254# func_lo2o object
14255func_lo2o ()
14256{
14257 case ${1} in
14258 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14259 *) func_lo2o_result=${1} ;;
14260 esac
14261}
b214d478
SE
14262
14263# func_xform libobj-or-source
14264func_xform ()
14265{
14266 func_xform_result=${1%.*}.lo
14267}
14268
14269# func_arith arithmetic-term...
14270func_arith ()
14271{
14272 func_arith_result=$(( $* ))
14273}
14274
14275# func_len string
14276# STRING may not start with a hyphen.
14277func_len ()
14278{
14279 func_len_result=${#1}
14280}
14281
d7040cdb
SE
14282_LT_EOF
14283 ;;
14284 *) # Bourne compatible functions.
14285 cat << \_LT_EOF >> "$cfgfile"
b214d478 14286
d7040cdb
SE
14287# func_dirname file append nondir_replacement
14288# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14289# otherwise set result to NONDIR_REPLACEMENT.
14290func_dirname ()
14291{
14292 # Extract subdirectory from the argument.
3725885a 14293 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14294 if test "X$func_dirname_result" = "X${1}"; then
14295 func_dirname_result="${3}"
14296 else
14297 func_dirname_result="$func_dirname_result${2}"
14298 fi
14299}
14300
14301# func_basename file
14302func_basename ()
14303{
3725885a 14304 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14305}
14306
b214d478 14307
d7040cdb
SE
14308# func_stripname prefix suffix name
14309# strip PREFIX and SUFFIX off of NAME.
14310# PREFIX and SUFFIX must not contain globbing or regex special
14311# characters, hashes, percent signs, but SUFFIX may contain a leading
14312# dot (in which case that matches only a dot).
14313# func_strip_suffix prefix name
14314func_stripname ()
14315{
14316 case ${2} in
3725885a
RW
14317 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14318 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14319 esac
14320}
14321
14322# sed scripts:
14323my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14324my_sed_long_arg='1s/^-[^=]*=//'
14325
14326# func_opt_split
14327func_opt_split ()
14328{
3725885a
RW
14329 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14330 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14331}
14332
14333# func_lo2o object
14334func_lo2o ()
14335{
3725885a 14336 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14337}
b214d478
SE
14338
14339# func_xform libobj-or-source
14340func_xform ()
14341{
3725885a 14342 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
14343}
14344
14345# func_arith arithmetic-term...
14346func_arith ()
14347{
14348 func_arith_result=`expr "$@"`
14349}
14350
14351# func_len string
14352# STRING may not start with a hyphen.
14353func_len ()
14354{
14355 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14356}
14357
d7040cdb
SE
14358_LT_EOF
14359esac
14360
14361case $lt_shell_append in
14362 yes)
14363 cat << \_LT_EOF >> "$cfgfile"
14364
14365# func_append var value
14366# Append VALUE to the end of shell variable VAR.
14367func_append ()
14368{
14369 eval "$1+=\$2"
14370}
14371_LT_EOF
14372 ;;
14373 *)
14374 cat << \_LT_EOF >> "$cfgfile"
14375
14376# func_append var value
14377# Append VALUE to the end of shell variable VAR.
14378func_append ()
14379{
14380 eval "$1=\$$1\$2"
14381}
b214d478 14382
d7040cdb
SE
14383_LT_EOF
14384 ;;
14385 esac
14386
14387
14388 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14389 || (rm -f "$cfgfile"; exit 1)
14390
14391 mv -f "$cfgfile" "$ofile" ||
14392 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14393 chmod +x "$ofile"
14394
6bf9431b 14395 ;;
81ecdfbb 14396 "default-1":C)
20e95c23
DJ
14397 for ac_file in $CONFIG_FILES; do
14398 # Support "outfile[:infile[:infile...]]"
14399 case "$ac_file" in
14400 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14401 esac
14402 # PO directories have a Makefile.in generated from Makefile.in.in.
14403 case "$ac_file" in */Makefile.in)
14404 # Adjust a relative srcdir.
14405 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14406 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14407 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14408 # In autoconf-2.13 it is called $ac_given_srcdir.
14409 # In autoconf-2.50 it is called $srcdir.
14410 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14411 case "$ac_given_srcdir" in
14412 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14413 /*) top_srcdir="$ac_given_srcdir" ;;
14414 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14415 esac
14416 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14417 rm -f "$ac_dir/POTFILES"
14418 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14419 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14420 POMAKEFILEDEPS="POTFILES.in"
14421 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14422 # on $ac_dir but don't depend on user-specified configuration
14423 # parameters.
14424 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14425 # The LINGUAS file contains the set of available languages.
14426 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14427 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14428 fi
14429 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14430 # Hide the ALL_LINGUAS assigment from automake.
14431 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14432 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14433 else
14434 # The set of available languages was given in configure.in.
14435 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14436 fi
14437 case "$ac_given_srcdir" in
14438 .) srcdirpre= ;;
14439 *) srcdirpre='$(srcdir)/' ;;
14440 esac
14441 POFILES=
14442 GMOFILES=
14443 UPDATEPOFILES=
14444 DUMMYPOFILES=
14445 for lang in $ALL_LINGUAS; do
14446 POFILES="$POFILES $srcdirpre$lang.po"
14447 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14448 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14449 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14450 done
14451 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14452 # environment variable.
14453 INST_LINGUAS=
14454 if test -n "$ALL_LINGUAS"; then
14455 for presentlang in $ALL_LINGUAS; do
14456 useit=no
14457 if test "%UNSET%" != "$LINGUAS"; then
14458 desiredlanguages="$LINGUAS"
14459 else
14460 desiredlanguages="$ALL_LINGUAS"
14461 fi
14462 for desiredlang in $desiredlanguages; do
14463 # Use the presentlang catalog if desiredlang is
14464 # a. equal to presentlang, or
14465 # b. a variant of presentlang (because in this case,
14466 # presentlang can be used as a fallback for messages
14467 # which are not translated in the desiredlang catalog).
14468 case "$desiredlang" in
14469 "$presentlang"*) useit=yes;;
14470 esac
14471 done
14472 if test $useit = yes; then
14473 INST_LINGUAS="$INST_LINGUAS $presentlang"
14474 fi
14475 done
14476 fi
14477 CATALOGS=
14478 if test -n "$INST_LINGUAS"; then
14479 for lang in $INST_LINGUAS; do
14480 CATALOGS="$CATALOGS $lang.gmo"
14481 done
14482 fi
14483 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14484 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"
14485 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14486 if test -f "$f"; then
14487 case "$f" in
14488 *.orig | *.bak | *~) ;;
14489 *) cat "$f" >> "$ac_dir/Makefile" ;;
14490 esac
14491 fi
14492 done
14493 fi
14494 ;;
14495 esac
14496 done ;;
81ecdfbb 14497
6bf9431b 14498 esac
81ecdfbb 14499done # for ac_tag
6bf9431b 14500
6bf9431b 14501
81ecdfbb 14502as_fn_exit 0
6bf9431b 14503_ACEOF
6bf9431b
BE
14504ac_clean_files=$ac_clean_files_save
14505
81ecdfbb
RW
14506test $ac_write_fail = 0 ||
14507 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14508
6bf9431b
BE
14509
14510# configure is writing to config.log, and then calls config.status.
14511# config.status does its own redirection, appending to config.log.
14512# Unfortunately, on DOS this fails, as config.log is still kept open
14513# by configure, so config.status won't be able to write to it; its
14514# output is simply discarded. So we exec the FD to /dev/null,
14515# effectively closing config.log, so it can be properly (re)opened and
14516# appended to by config.status. When coming back to configure, we
14517# need to make the FD available again.
14518if test "$no_create" != yes; then
14519 ac_cs_success=:
14520 ac_config_status_args=
14521 test "$silent" = yes &&
14522 ac_config_status_args="$ac_config_status_args --quiet"
14523 exec 5>/dev/null
14524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14525 exec 5>>config.log
14526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14527 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14528 $ac_cs_success || as_fn_exit $?
14529fi
14530if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14532$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14533fi
252b5132 14534
This page took 1.469758 seconds and 4 git commands to generate.