Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / random128 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for random128 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
dd184caf 134# CDPATH.
b0322a85 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 136
b0322a85
CE
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
dd184caf 162if test "x$CONFIG_SHELL" = x; then
b0322a85
CE
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
dd184caf 170else
b0322a85
CE
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
d9898ee8 177fi
b0322a85
CE
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
d9898ee8 184
dd184caf 185exitcode=0
b0322a85
CE
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
dd184caf 212else
b0322a85 213 as_have_required=no
dd184caf 214fi
b0322a85 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
dd184caf 216
dd184caf 217else
b0322a85
CE
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
d9898ee8 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
b0322a85
CE
224 as_found=:
225 case $as_dir in #(
d9898ee8 226 /*)
dd184caf 227 for as_base in sh bash ksh sh5; do
b0322a85
CE
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
dd184caf 237 done;;
238 esac
b0322a85 239 as_found=false
dd184caf 240done
b0322a85
CE
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
dd184caf 245IFS=$as_save_IFS
246
247
b0322a85
CE
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
dd184caf 262esac
b0322a85
CE
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
dd184caf 284fi
dd184caf 285fi
dd184caf 286fi
b0322a85
CE
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
dd184caf 292
b0322a85
CE
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
dd184caf 304
b0322a85
CE
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
dd184caf 312
b0322a85
CE
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
dd184caf 328
b0322a85
CE
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 367
dd184caf 368
b0322a85 369} # as_fn_mkdir_p
dd184caf 370
b0322a85
CE
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
dd184caf 412
413
b0322a85
CE
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
dd184caf 429
b0322a85
CE
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
dd184caf 433else
b0322a85 434 as_expr=false
dd184caf 435fi
436
b0322a85
CE
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
dd184caf 439else
b0322a85 440 as_basename=false
dd184caf 441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
dd184caf 445else
b0322a85 446 as_dirname=false
dd184caf 447fi
448
b0322a85
CE
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
dd184caf 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
dd184caf 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
dd184caf 481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
d9898ee8 485 sed '
dd184caf 486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
d9898ee8 490 N
dd184caf 491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 493 t loop
dd184caf 494 s/-\n.*//
d9898ee8 495 ' >$as_me.lineno &&
dd184caf 496 chmod +x "$as_me.lineno" ||
b0322a85 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
d9898ee8 503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
dd184caf 505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
d9898ee8 507 # Exit status is that of the last command.
508 exit
509}
510
dd184caf 511ECHO_C= ECHO_N= ECHO_T=
b0322a85 512case `echo -n x` in #(((((
dd184caf 513-n*)
b0322a85 514 case `echo 'xy\c'` in
dd184caf 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
dd184caf 519 esac;;
520*)
521 ECHO_N='-n';;
d9898ee8 522esac
d9898ee8 523
524rm -f conf$$ conf$$.exe conf$$.file
dd184caf 525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
8d138742
CE
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 537 # In both cases, we have to default to `cp -pR'.
8d138742 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 539 as_ln_s='cp -pR'
8d138742
CE
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
b0322a85 543 as_ln_s='cp -pR'
8d138742 544 fi
d9898ee8 545else
b0322a85 546 as_ln_s='cp -pR'
d9898ee8 547fi
dd184caf 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
d9898ee8 550
551if mkdir -p . 2>/dev/null; then
b0322a85 552 as_mkdir_p='mkdir -p "$as_dir"'
d9898ee8 553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
d9898ee8 560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
d9898ee8 567SHELL=${CONFIG_SHELL-/bin/sh}
568
d9898ee8 569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
d9898ee8 573# Name of the host.
b0322a85 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
591PACKAGE_NAME='random128'
592PACKAGE_TARNAME='random128'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='random128 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="random128.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
b0322a85 644MANIFEST_TOOL
dd184caf 645RANLIB
b0322a85 646ac_ct_AR
8d138742 647AR
b0322a85 648DLLTOOL
8d138742
CE
649OBJDUMP
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655SED
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
dd184caf 664LIBTOOL
8d138742
CE
665W
666PS
667LN_S
668EGREP
669GREP
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
b0322a85 674am__nodep
8d138742
CE
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
b0322a85
CE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
8d138742
CE
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
b0322a85 745PACKAGE_URL
8d138742
CE
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
d9898ee8 753ac_subst_files=''
8d138742
CE
754ac_user_opts='
755enable_option_checking
b0322a85 756enable_silent_rules
8d138742
CE
757enable_dependency_tracking
758enable_shared
759enable_static
760with_pic
761enable_fast_install
762with_gnu_ld
b0322a85 763with_sysroot
8d138742 764enable_libtool_lock
b0322a85 765enable_largefile
8d138742
CE
766with_random
767'
dd184caf 768 ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
8d138742 776CPP'
dd184caf 777
d9898ee8 778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
8d138742
CE
782ac_unrecognized_opts=
783ac_unrecognized_sep=
d9898ee8 784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 806# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
dd184caf 810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
d9898ee8 812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
d9898ee8 815includedir='${prefix}/include'
816oldincludedir='/usr/include'
dd184caf 817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
d9898ee8 826
827ac_prev=
dd184caf 828ac_dashdash=
d9898ee8 829for ac_option
830do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
dd184caf 833 eval $ac_prev=\$ac_option
d9898ee8 834 ac_prev=
835 continue
836 fi
837
dd184caf 838 case $ac_option in
b0322a85
CE
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
dd184caf 842 esac
d9898ee8 843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
dd184caf 846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
d9898ee8 849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
dd184caf 870 -datadir | --datadir | --datadi | --datad)
d9898ee8 871 ac_prev=datadir ;;
dd184caf 872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 873 datadir=$ac_optarg ;;
874
dd184caf 875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
d9898ee8 882 -disable-* | --disable-*)
8d138742 883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 884 # Reject names that are not valid shell variable names.
8d138742 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 886 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891"enable_$ac_useropt"
892"*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
dd184caf 897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
d9898ee8 907
908 -enable-* | --enable-*)
8d138742 909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 910 # Reject names that are not valid shell variable names.
8d138742 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 912 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
dd184caf 949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
d9898ee8 955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
dd184caf 979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
d9898ee8 984 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 985 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
dd184caf 1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
d9898ee8 1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1072
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1083
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1088
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1093
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1100
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1105
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1108
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1111
1112 -with-* | --with-*)
8d138742 1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1114 # Reject names that are not valid shell variable names.
8d138742 1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1116 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121"with_$ac_useropt"
1122"*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1127
1128 -without-* | --without-*)
8d138742 1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1130 # Reject names that are not valid shell variable names.
8d138742 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1132 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137"with_$ac_useropt"
1138"*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
d9898ee8 1143
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1147
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1154
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1161
b0322a85
CE
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
d9898ee8 1164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
b0322a85
CE
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
dd184caf 1173 eval $ac_envvar=\$ac_optarg
d9898ee8 1174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
8d138742 1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1182 ;;
1183
1184 esac
1185done
1186
1187if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1189 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1190fi
1191
8d138742
CE
1192if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
b0322a85 1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1198fi
1199
1200# Check all directory arguments for consistency.
dd184caf 1201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
d9898ee8 1205do
dd184caf 1206 eval ac_val=\$$ac_var
8d138742
CE
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
d9898ee8 1214 case $ac_val in
dd184caf 1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1217 esac
b0322a85 1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
d9898ee8 1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
dd184caf 1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1246 as_fn_error $? "working directory cannot be determined"
dd184caf 1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1248 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1249
1250
d9898ee8 1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
dd184caf 1254 # Try the directory containing this script, then the parent directory.
8d138742
CE
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
dd184caf 1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
d9898ee8 1278 srcdir=$ac_confdir
dd184caf 1279 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
dd184caf 1285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1288fi
dd184caf 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
b0322a85 1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
d9898ee8 1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317\`configure' configures random128 0.10 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
b0322a85 1331 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
d9898ee8 1337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1339 [$ac_default_prefix]
d9898ee8 1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1341 [PREFIX]
d9898ee8 1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
8d138742
CE
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of random128 0.10:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
8d138742 1392 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
dd184caf 1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1406 --disable-largefile omit support for large files
d9898ee8 1407
1408Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1412 both]
8d138742 1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
d9898ee8 1416 --with-random=/dev/urandom - location of the system random file generator
1417--without-random - there is no system random file generator
1418
1419Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
dd184caf 1424 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1426 you have headers in a nonstandard directory <include dir>
d9898ee8 1427 CPP C preprocessor
d9898ee8 1428
1429Use these variables to override the choices made by `configure' or to help
1430it to find libraries and programs with nonstandard names/locations.
1431
1432Report bugs to <courier-users@lists.sourceforge.net>.
1433_ACEOF
dd184caf 1434ac_status=$?
d9898ee8 1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
d9898ee8 1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
d9898ee8 1443 ac_builddir=.
1444
dd184caf 1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
8d138742 1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1449 # A ".." for each directory in $ac_dir_suffix.
8d138742 1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
d9898ee8 1460
1461case $srcdir in
dd184caf 1462 .) # We are building in place.
d9898ee8 1463 ac_srcdir=.
dd184caf 1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1467 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1474esac
dd184caf 1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1485 else
8d138742 1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1489 done
1490fi
1491
dd184caf 1492test -n "$ac_init_help" && exit $ac_status
d9898ee8 1493if $ac_init_version; then
1494 cat <<\_ACEOF
1495random128 configure 0.10
b0322a85
CE
1496generated by GNU Autoconf 2.69
1497
1498Copyright (C) 2012 Free Software Foundation, Inc.
1499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502 exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_try_cpp LINENO
1548# ----------------------
1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_cpp ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 }; then :
1572 ac_retval=0
1573else
1574 $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_cpp
1583
1584# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585# -------------------------------------------------------
1586# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587# the include files in INCLUDES and setting the cache variable VAR
1588# accordingly.
1589ac_fn_c_check_header_mongrel ()
1590{
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if eval \${$3+:} false; then :
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594$as_echo_n "checking for $2... " >&6; }
1595if eval \${$3+:} false; then :
1596 $as_echo_n "(cached) " >&6
1597fi
1598eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600$as_echo "$ac_res" >&6; }
1601else
1602 # Is the header compilable?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604$as_echo_n "checking $2 usability... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h. */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_header_compiler=yes
1612else
1613 ac_header_compiler=no
1614fi
1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617$as_echo "$ac_header_compiler" >&6; }
1618
1619# Is the header present?
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621$as_echo_n "checking $2 presence... " >&6; }
1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h. */
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_cpp "$LINENO"; then :
1627 ac_header_preproc=yes
1628else
1629 ac_header_preproc=no
1630fi
1631rm -f conftest.err conftest.i conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633$as_echo "$ac_header_preproc" >&6; }
1634
1635# So? What about this header?
1636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637 yes:no: )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 ;;
1643 no:yes:* )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1647$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1651$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654( $as_echo "## -------------------------------------------------- ##
1655## Report this to courier-users@lists.sourceforge.net ##
1656## -------------------------------------------------- ##"
1657 ) | sed "s/^/$as_me: WARNING: /" >&2
1658 ;;
1659esac
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664else
1665 eval "$3=\$ac_header_compiler"
1666fi
1667eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669$as_echo "$ac_res" >&6; }
1670fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673} # ac_fn_c_check_header_mongrel
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735 eval "$3=yes"
1736else
1737 eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest$ac_exeext
1755 if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest$ac_exeext && {
1774 test "$cross_compiling" = yes ||
1775 test -x conftest$ac_exeext
1776 }; then :
1777 ac_retval=0
1778else
1779 $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783fi
1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786 # interfere with the next link command; also delete a directory that is
1787 # left behind by Apple's compiler. We do this before executing the actions.
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_link
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842 ;
1843 return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848else
1849 eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1858
b0322a85
CE
1859} # ac_fn_c_check_func
1860
1861# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862# -------------------------------------------
1863# Tests whether TYPE exists after having included INCLUDES, setting cache
1864# variable VAR accordingly.
1865ac_fn_c_check_type ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872else
1873 eval "$3=no"
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876$4
1877int
1878main ()
1879{
1880if (sizeof ($2))
1881 return 0;
1882 ;
1883 return 0;
1884}
d9898ee8 1885_ACEOF
b0322a85
CE
1886if ac_fn_c_try_compile "$LINENO"; then :
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889$4
1890int
1891main ()
1892{
1893if (sizeof (($2)))
1894 return 0;
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900
1901else
1902 eval "$3=yes"
d9898ee8 1903fi
b0322a85
CE
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_c_check_type
dd184caf 1914cat >config.log <<_ACEOF
d9898ee8 1915This file contains any messages produced by compilers while
1916running configure, to aid debugging if configure makes a mistake.
1917
1918It was created by random128 $as_me 0.10, which was
b0322a85 1919generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1920
1921 $ $0 $@
1922
1923_ACEOF
dd184caf 1924exec 5>>config.log
d9898ee8 1925{
1926cat <<_ASUNAME
1927## --------- ##
1928## Platform. ##
1929## --------- ##
1930
1931hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1939
1940/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1943/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1944/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1947
1948_ASUNAME
1949
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
b0322a85
CE
1955 $as_echo "PATH: $as_dir"
1956 done
dd184caf 1957IFS=$as_save_IFS
d9898ee8 1958
1959} >&5
1960
1961cat >&5 <<_ACEOF
1962
1963
1964## ----------- ##
1965## Core tests. ##
1966## ----------- ##
1967
1968_ACEOF
1969
1970
1971# Keep a trace of the command line.
1972# Strip out --no-create and --no-recursion so they do not pile up.
1973# Strip out --silent because we don't want to record it for future runs.
1974# Also quote any args containing shell meta-characters.
1975# Make two passes to allow for proper duplicate-argument suppression.
1976ac_configure_args=
1977ac_configure_args0=
1978ac_configure_args1=
d9898ee8 1979ac_must_keep_next=false
1980for ac_pass in 1 2
1981do
1982 for ac_arg
1983 do
1984 case $ac_arg in
1985 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987 | -silent | --silent | --silen | --sile | --sil)
1988 continue ;;
dd184caf 1989 *\'*)
8d138742 1990 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1991 esac
1992 case $ac_pass in
b0322a85 1993 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 1994 2)
b0322a85 1995 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 1996 if test $ac_must_keep_next = true; then
1997 ac_must_keep_next=false # Got value, back to normal.
1998 else
1999 case $ac_arg in
2000 *=* | --config-cache | -C | -disable-* | --disable-* \
2001 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003 | -with-* | --with-* | -without-* | --without-* | --x)
2004 case "$ac_configure_args0 " in
2005 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 esac
2007 ;;
2008 -* ) ac_must_keep_next=true ;;
2009 esac
2010 fi
b0322a85 2011 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2012 ;;
2013 esac
2014 done
2015done
b0322a85
CE
2016{ ac_configure_args0=; unset ac_configure_args0;}
2017{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2018
2019# When interrupted or exit'd, cleanup temporary files, and complete
2020# config.log. We remove comments because anyway the quotes in there
2021# would cause problems or look ugly.
dd184caf 2022# WARNING: Use '\'' to represent an apostrophe within the trap.
2023# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2024trap 'exit_status=$?
2025 # Save into config.log some information that might help in debugging.
2026 {
2027 echo
2028
b0322a85 2029 $as_echo "## ---------------- ##
d9898ee8 2030## Cache variables. ##
b0322a85 2031## ---------------- ##"
d9898ee8 2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
dd184caf 2034(
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
b0322a85 2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
8d138742 2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2046 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2047 esac ;;
2048 esac
2049 done
d9898ee8 2050 (set) 2>&1 |
dd184caf 2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
d9898ee8 2053 sed -n \
dd184caf 2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
d9898ee8 2057 *)
dd184caf 2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2059 ;;
dd184caf 2060 esac |
2061 sort
2062)
d9898ee8 2063 echo
2064
b0322a85 2065 $as_echo "## ----------------- ##
d9898ee8 2066## Output variables. ##
b0322a85 2067## ----------------- ##"
d9898ee8 2068 echo
2069 for ac_var in $ac_subst_vars
2070 do
dd184caf 2071 eval ac_val=\$$ac_var
2072 case $ac_val in
8d138742 2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2074 esac
8d138742 2075 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2076 done | sort
2077 echo
2078
2079 if test -n "$ac_subst_files"; then
b0322a85 2080 $as_echo "## ------------------- ##
dd184caf 2081## File substitutions. ##
b0322a85 2082## ------------------- ##"
d9898ee8 2083 echo
2084 for ac_var in $ac_subst_files
2085 do
dd184caf 2086 eval ac_val=\$$ac_var
2087 case $ac_val in
8d138742 2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2089 esac
8d138742 2090 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
b0322a85 2096 $as_echo "## ----------- ##
d9898ee8 2097## confdefs.h. ##
b0322a85 2098## ----------- ##"
d9898ee8 2099 echo
dd184caf 2100 cat confdefs.h
d9898ee8 2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
8d138742
CE
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
d9898ee8 2106 } >&5
dd184caf 2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2109 exit $exit_status
dd184caf 2110' 0
d9898ee8 2111for ac_signal in 1 2 13 15; do
b0322a85 2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2117rm -f -r conftest* confdefs.h
d9898ee8 2118
b0322a85
CE
2119$as_echo "/* confdefs.h */" > confdefs.h
2120
d9898ee8 2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
d9898ee8 2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
d9898ee8 2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
2134
d9898ee8 2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
d9898ee8 2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
b0322a85
CE
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
d9898ee8 2147
2148# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
dd184caf 2152if test -n "$CONFIG_SITE"; then
b0322a85
CE
2153 # We do not want a PATH search for config.site.
2154 case $CONFIG_SITE in #((
2155 -*) ac_site_file1=./$CONFIG_SITE;;
2156 */*) ac_site_file1=$CONFIG_SITE;;
2157 *) ac_site_file1=./$CONFIG_SITE;;
2158 esac
dd184caf 2159elif test "x$prefix" != xNONE; then
8d138742
CE
2160 ac_site_file1=$prefix/share/config.site
2161 ac_site_file2=$prefix/etc/config.site
dd184caf 2162else
8d138742
CE
2163 ac_site_file1=$ac_default_prefix/share/config.site
2164 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2165fi
8d138742 2166for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2167do
8d138742 2168 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2169 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2171$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2172 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2173 . "$ac_site_file" \
2174 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176as_fn_error $? "failed to load site script $ac_site_file
2177See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2178 fi
2179done
2180
2181if test -r "$cache_file"; then
b0322a85
CE
2182 # Some versions of bash will fail to source /dev/null (special files
2183 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2184 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2186$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2187 case $cache_file in
dd184caf 2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
d9898ee8 2190 esac
2191 fi
2192else
b0322a85 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2194$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2195 >$cache_file
2196fi
2197
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
dd184caf 2201for ac_var in $ac_precious_vars; do
d9898ee8 2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2206 case $ac_old_set,$ac_new_set in
2207 set,)
b0322a85 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2209$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2210 ac_cache_corrupted=: ;;
2211 ,set)
b0322a85 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
b0322a85 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
b0322a85 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2231$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2233$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2234 fi;;
2235 esac
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
8d138742 2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2245 esac
2246 fi
2247done
2248if $ac_cache_corrupted; then
b0322a85 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2254fi
b0322a85
CE
2255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
d9898ee8 2258
dd184caf 2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2264
2265
2266
2267>confdefs.h # Kill PACKAGE_ macros
2268
2269
d9898ee8 2270ac_aux_dir=
b0322a85 2271for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2272 if test -f "$ac_dir/install-sh"; then
d9898ee8 2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
dd184caf 2276 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
dd184caf 2280 elif test -f "$ac_dir/shtool"; then
d9898ee8 2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285done
2286if test -z "$ac_aux_dir"; then
b0322a85 2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2288fi
dd184caf 2289
2290# These three variables are undocumented and unsupported,
2291# and are intended to be withdrawn in a future Autoconf release.
2292# They can cause serious problems if a builder's source tree is in a directory
2293# whose full name contains unusual characters.
2294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
d9898ee8 2298
b0322a85
CE
2299am__api_version='1.13'
2300
d9898ee8 2301# Find a good install program. We prefer a C program (faster),
2302# so one script is as good as another. But avoid the broken or
2303# incompatible versions:
2304# SysV /etc/install, /usr/sbin/install
2305# SunOS /usr/etc/install
2306# IRIX /sbin/install
2307# AIX /bin/install
2308# AmigaOS /C/install, which installs bootblocks on floppy discs
2309# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2310# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2311# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2312# OS/2's system install, which has a completely different semantic
2313# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2314# Reject install programs that cannot install multiple files.
b0322a85 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2316$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2317if test -z "$INSTALL"; then
b0322a85 2318if ${ac_cv_path_install+:} false; then :
8d138742 2319 $as_echo_n "(cached) " >&6
d9898ee8 2320else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
b0322a85
CE
2326 # Account for people who put trailing slashes in PATH elements.
2327case $as_dir/ in #((
2328 ./ | .// | /[cC]/* | \
d9898ee8 2329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2330 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2331 /usr/ucb/* ) ;;
2332 *)
2333 # OSF1 and SCO ODT 3.0 have their own names for install.
2334 # Don't use installbsd from OSF since it installs stuff as root
2335 # by default.
2336 for ac_prog in ginstall scoinst install; do
2337 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2338 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2339 if test $ac_prog = install &&
2340 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # AIX install. It has an incompatible calling convention.
2342 :
2343 elif test $ac_prog = install &&
2344 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # program-specific install script used by HP pwplus--don't use.
2346 :
2347 else
8d138742
CE
2348 rm -rf conftest.one conftest.two conftest.dir
2349 echo one > conftest.one
2350 echo two > conftest.two
2351 mkdir conftest.dir
2352 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2353 test -s conftest.one && test -s conftest.two &&
2354 test -s conftest.dir/conftest.one &&
2355 test -s conftest.dir/conftest.two
2356 then
2357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2358 break 3
2359 fi
d9898ee8 2360 fi
2361 fi
2362 done
2363 done
2364 ;;
2365esac
8d138742 2366
b0322a85 2367 done
dd184caf 2368IFS=$as_save_IFS
d9898ee8 2369
8d138742 2370rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2371
2372fi
2373 if test "${ac_cv_path_install+set}" = set; then
2374 INSTALL=$ac_cv_path_install
2375 else
dd184caf 2376 # As a last resort, use the slow shell script. Don't cache a
2377 # value for INSTALL within a source directory, because that will
d9898ee8 2378 # break other packages using the cache if that directory is
dd184caf 2379 # removed, or if the value is a relative name.
d9898ee8 2380 INSTALL=$ac_install_sh
2381 fi
2382fi
b0322a85 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2384$as_echo "$INSTALL" >&6; }
d9898ee8 2385
2386# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2387# It thinks the first close brace ends the variable substitution.
2388test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2389
2390test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2391
2392test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2393
b0322a85 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2395$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2396# Reject unsafe characters in $srcdir or the absolute working directory
2397# name. Accept space and tab only in the latter.
2398am_lf='
2399'
2400case `pwd` in
2401 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2402 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2403esac
2404case $srcdir in
2405 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2406 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2407esac
2408
b0322a85 2409# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2410# arguments. Must try -L first in case configure is actually a
2411# symlink; some systems play weird games with the mod time of symlinks
2412# (eg FreeBSD returns the mod time of the symlink's containing
2413# directory).
2414if (
b0322a85
CE
2415 am_has_slept=no
2416 for am_try in 1 2; do
2417 echo "timestamp, slept: $am_has_slept" > conftest.file
2418 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2419 if test "$*" = "X"; then
2420 # -L didn't work.
2421 set X `ls -t "$srcdir/configure" conftest.file`
2422 fi
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
2430 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2431 alias in your environment" "$LINENO" 5
2432 fi
2433 if test "$2" = conftest.file || test $am_try -eq 2; then
2434 break
2435 fi
2436 # Just in case.
2437 sleep 1
2438 am_has_slept=yes
2439 done
d9898ee8 2440 test "$2" = conftest.file
2441 )
2442then
2443 # Ok.
2444 :
2445else
b0322a85
CE
2446 as_fn_error $? "newly created file is older than distributed files!
2447Check your system clock" "$LINENO" 5
d9898ee8 2448fi
b0322a85 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2450$as_echo "yes" >&6; }
b0322a85
CE
2451# If we didn't sleep, we still need to ensure time stamps of config.status and
2452# generated files are strictly newer.
2453am_sleep_pid=
2454if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2455 ( sleep 1 ) &
2456 am_sleep_pid=$!
2457fi
2458
2459rm -f conftest.file
2460
d9898ee8 2461test "$program_prefix" != NONE &&
dd184caf 2462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2463# Use a double $ so make ignores it.
2464test "$program_suffix" != NONE &&
dd184caf 2465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2466# Double any \ or $.
d9898ee8 2467# By default was `s,x,x', remove it if useless.
8d138742
CE
2468ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2470
2471# expand $ac_aux_dir to an absolute path
2472am_aux_dir=`cd $ac_aux_dir && pwd`
2473
8d138742
CE
2474if test x"${MISSING+set}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 *)
2479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2480 esac
2481fi
d9898ee8 2482# Use eval to expand $SHELL
b0322a85
CE
2483if eval "$MISSING --is-lightweight"; then
2484 am_missing_run="$MISSING "
d9898ee8 2485else
2486 am_missing_run=
b0322a85
CE
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2488$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2489fi
2490
2491if test x"${install_sh}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 *)
2496 install_sh="\${SHELL} $am_aux_dir/install-sh"
2497 esac
2498fi
2499
b0322a85
CE
2500# Installed binaries are usually stripped using 'strip' when the user
2501# run "make install-strip". However 'strip' might not be the right
8d138742 2502# tool to use in cross-compilation environments, therefore Automake
b0322a85 2503# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2504if test "$cross_compiling" != no; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2509$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2510if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2511 $as_echo_n "(cached) " >&6
2512else
2513 if test -n "$STRIP"; then
2514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
b0322a85
CE
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2525 break 2
2526 fi
2527done
b0322a85 2528 done
8d138742
CE
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533STRIP=$ac_cv_prog_STRIP
2534if test -n "$STRIP"; then
b0322a85 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2536$as_echo "$STRIP" >&6; }
2537else
b0322a85 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2539$as_echo "no" >&6; }
d9898ee8 2540fi
2541
8d138742
CE
2542
2543fi
2544if test -z "$ac_cv_prog_STRIP"; then
2545 ac_ct_STRIP=$STRIP
2546 # Extract the first word of "strip", so it can be a program name with args.
2547set dummy strip; ac_word=$2
b0322a85 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2549$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2550if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2551 $as_echo_n "(cached) " >&6
2552else
2553 if test -n "$ac_ct_STRIP"; then
2554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
b0322a85
CE
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2563 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2565 break 2
2566 fi
2567done
b0322a85 2568 done
8d138742
CE
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574if test -n "$ac_ct_STRIP"; then
b0322a85 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2576$as_echo "$ac_ct_STRIP" >&6; }
2577else
b0322a85 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2579$as_echo "no" >&6; }
2580fi
2581
2582 if test "x$ac_ct_STRIP" = x; then
2583 STRIP=":"
2584 else
2585 case $cross_compiling:$ac_tool_warned in
2586yes:)
b0322a85 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591 STRIP=$ac_ct_STRIP
2592 fi
2593else
2594 STRIP="$ac_cv_prog_STRIP"
2595fi
2596
2597fi
2598INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599
b0322a85 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2601$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2602if test -z "$MKDIR_P"; then
b0322a85 2603 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2604 $as_echo_n "(cached) " >&6
dd184caf 2605else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
b0322a85 2611 for ac_prog in mkdir gmkdir; do
dd184caf 2612 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2613 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615 'mkdir (GNU coreutils) '* | \
2616 'mkdir (coreutils) '* | \
2617 'mkdir (fileutils) '4.1*)
2618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2619 break 3;;
2620 esac
2621 done
2622 done
b0322a85 2623 done
dd184caf 2624IFS=$as_save_IFS
2625
2626fi
2627
b0322a85 2628 test -d ./--version && rmdir ./--version
dd184caf 2629 if test "${ac_cv_path_mkdir+set}" = set; then
2630 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2631 else
dd184caf 2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for MKDIR_P within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
dd184caf 2636 MKDIR_P="$ac_install_sh -d"
d9898ee8 2637 fi
2638fi
b0322a85 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2640$as_echo "$MKDIR_P" >&6; }
dd184caf 2641
d9898ee8 2642for ac_prog in gawk mawk nawk awk
2643do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645set dummy $ac_prog; ac_word=$2
b0322a85 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2647$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2648if ${ac_cv_prog_AWK+:} false; then :
8d138742 2649 $as_echo_n "(cached) " >&6
d9898ee8 2650else
2651 if test -n "$AWK"; then
2652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
b0322a85
CE
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2661 ac_cv_prog_AWK="$ac_prog"
b0322a85 2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2663 break 2
2664 fi
2665done
b0322a85 2666 done
dd184caf 2667IFS=$as_save_IFS
d9898ee8 2668
2669fi
2670fi
2671AWK=$ac_cv_prog_AWK
2672if test -n "$AWK"; then
b0322a85 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2674$as_echo "$AWK" >&6; }
d9898ee8 2675else
b0322a85 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2677$as_echo "no" >&6; }
d9898ee8 2678fi
2679
dd184caf 2680
d9898ee8 2681 test -n "$AWK" && break
2682done
2683
b0322a85 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2685$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2686set x ${MAKE-make}
2687ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2688if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2689 $as_echo_n "(cached) " >&6
d9898ee8 2690else
2691 cat >conftest.make <<\_ACEOF
dd184caf 2692SHELL = /bin/sh
d9898ee8 2693all:
dd184caf 2694 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2695_ACEOF
b0322a85 2696# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2697case `${MAKE-make} -f conftest.make 2>/dev/null` in
2698 *@@@%%%=?*=@@@%%%*)
2699 eval ac_cv_prog_make_${ac_make}_set=yes;;
2700 *)
2701 eval ac_cv_prog_make_${ac_make}_set=no;;
2702esac
d9898ee8 2703rm -f conftest.make
2704fi
dd184caf 2705if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2707$as_echo "yes" >&6; }
d9898ee8 2708 SET_MAKE=
2709else
b0322a85 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2711$as_echo "no" >&6; }
d9898ee8 2712 SET_MAKE="MAKE=${MAKE-make}"
2713fi
2714
2715rm -rf .tst 2>/dev/null
2716mkdir .tst 2>/dev/null
2717if test -d .tst; then
2718 am__leading_dot=.
2719else
2720 am__leading_dot=_
2721fi
2722rmdir .tst 2>/dev/null
2723
b0322a85
CE
2724# Check whether --enable-silent-rules was given.
2725if test "${enable_silent_rules+set}" = set; then :
2726 enableval=$enable_silent_rules;
2727fi
2728
2729case $enable_silent_rules in # (((
2730 yes) AM_DEFAULT_VERBOSITY=0;;
2731 no) AM_DEFAULT_VERBOSITY=1;;
2732 *) AM_DEFAULT_VERBOSITY=1;;
2733esac
2734am_make=${MAKE-make}
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2736$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2737if ${am_cv_make_support_nested_variables+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739else
2740 if $as_echo 'TRUE=$(BAR$(V))
2741BAR0=false
2742BAR1=true
2743V=1
2744am__doit:
2745 @$(TRUE)
2746.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2747 am_cv_make_support_nested_variables=yes
2748else
2749 am_cv_make_support_nested_variables=no
2750fi
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2753$as_echo "$am_cv_make_support_nested_variables" >&6; }
2754if test $am_cv_make_support_nested_variables = yes; then
2755 AM_V='$(V)'
2756 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2757else
2758 AM_V=$AM_DEFAULT_VERBOSITY
2759 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2760fi
2761AM_BACKSLASH='\'
2762
dd184caf 2763if test "`cd $srcdir && pwd`" != "`pwd`"; then
2764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2765 # is not polluted with repeated "-I."
2766 am__isrc=' -I$(srcdir)'
2767 # test to see if srcdir already configured
2768 if test -f $srcdir/config.status; then
b0322a85 2769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2770 fi
d9898ee8 2771fi
2772
2773# test whether we have cygpath
2774if test -z "$CYGPATH_W"; then
2775 if (cygpath --version) >/dev/null 2>/dev/null; then
2776 CYGPATH_W='cygpath -w'
2777 else
2778 CYGPATH_W=echo
2779 fi
2780fi
2781
2782
2783# Define the identity of the package.
2784 PACKAGE='random128'
2785 VERSION='0.10'
2786
2787
2788# Some tools Automake needs.
2789
2790ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
b0322a85
CE
2804# For better backward compatibility. To be removed once Automake 1.9.x
2805# dies out for good. For more background, see:
2806# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2808mkdir_p='$(MKDIR_P)'
2809
d9898ee8 2810# We need awk for the "check" target. The system "awk" is bad on
2811# some platforms.
b0322a85
CE
2812# Always define AMTAR for backward compatibility. Yes, it's still used
2813# in the wild :-( We should find a proper way to deprecate it ...
2814AMTAR='$${TAR-tar}'
2815
d9898ee8 2816
b0322a85
CE
2817# We'll loop over all known methods to create a tar archive until one works.
2818_am_tools='gnutar pax cpio none'
2819
2820am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2821
d9898ee8 2822
2823
2824
2825
2826
2827LPATH="$PATH:/usr/local/bin"
2828
2829
dd184caf 2830ac_config_headers="$ac_config_headers config.h"
d9898ee8 2831
2832DEPDIR="${am__leading_dot}deps"
2833
dd184caf 2834ac_config_commands="$ac_config_commands depfiles"
d9898ee8 2835
2836
2837am_make=${MAKE-make}
2838cat > confinc << 'END'
2839am__doit:
8d138742 2840 @echo this is the am__doit target
d9898ee8 2841.PHONY: am__doit
2842END
2843# If we don't find an include directive, just comment out the code.
b0322a85 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 2845$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 2846am__include="#"
2847am__quote=
2848_am_result=none
2849# First try GNU make style include.
2850echo "include confinc" > confmf
b0322a85 2851# Ignore all kinds of additional output from 'make'.
8d138742
CE
2852case `$am_make -s -f confmf 2> /dev/null` in #(
2853*the\ am__doit\ target*)
2854 am__include=include
2855 am__quote=
2856 _am_result=GNU
2857 ;;
2858esac
d9898ee8 2859# Now try BSD make style include.
2860if test "$am__include" = "#"; then
2861 echo '.include "confinc"' > confmf
8d138742
CE
2862 case `$am_make -s -f confmf 2> /dev/null` in #(
2863 *the\ am__doit\ target*)
2864 am__include=.include
2865 am__quote="\""
2866 _am_result=BSD
2867 ;;
2868 esac
d9898ee8 2869fi
2870
2871
b0322a85 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 2873$as_echo "$_am_result" >&6; }
d9898ee8 2874rm -f confinc confmf
2875
dd184caf 2876# Check whether --enable-dependency-tracking was given.
b0322a85 2877if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 2878 enableval=$enable_dependency_tracking;
2879fi
d9898ee8 2880
d9898ee8 2881if test "x$enable_dependency_tracking" != xno; then
2882 am_depcomp="$ac_aux_dir/depcomp"
2883 AMDEPBACKSLASH='\'
b0322a85 2884 am__nodep='_no'
d9898ee8 2885fi
dd184caf 2886 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 2887 AMDEP_TRUE=
2888 AMDEP_FALSE='#'
2889else
2890 AMDEP_TRUE='#'
2891 AMDEP_FALSE=
2892fi
2893
2894
d9898ee8 2895ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2904$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2905if ${ac_cv_prog_CC+:} false; then :
8d138742 2906 $as_echo_n "(cached) " >&6
d9898ee8 2907else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
b0322a85
CE
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2920 break 2
2921 fi
2922done
b0322a85 2923 done
dd184caf 2924IFS=$as_save_IFS
d9898ee8 2925
2926fi
2927fi
2928CC=$ac_cv_prog_CC
2929if test -n "$CC"; then
b0322a85 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2931$as_echo "$CC" >&6; }
d9898ee8 2932else
b0322a85 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2934$as_echo "no" >&6; }
d9898ee8 2935fi
2936
dd184caf 2937
d9898ee8 2938fi
2939if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942set dummy gcc; ac_word=$2
b0322a85 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2944$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2945if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2946 $as_echo_n "(cached) " >&6
d9898ee8 2947else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
b0322a85
CE
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2958 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2960 break 2
2961 fi
2962done
b0322a85 2963 done
dd184caf 2964IFS=$as_save_IFS
d9898ee8 2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
b0322a85 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2971$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2972else
b0322a85 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2974$as_echo "no" >&6; }
d9898ee8 2975fi
2976
dd184caf 2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981yes:)
b0322a85 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2984ac_tool_warned=yes ;;
2985esac
2986 CC=$ac_ct_CC
2987 fi
d9898ee8 2988else
2989 CC="$ac_cv_prog_CC"
2990fi
2991
2992if test -z "$CC"; then
dd184caf 2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2995set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2997$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2998if ${ac_cv_prog_CC+:} false; then :
8d138742 2999 $as_echo_n "(cached) " >&6
d9898ee8 3000else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
b0322a85
CE
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3013 break 2
3014 fi
3015done
b0322a85 3016 done
dd184caf 3017IFS=$as_save_IFS
d9898ee8 3018
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
b0322a85 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3024$as_echo "$CC" >&6; }
d9898ee8 3025else
b0322a85 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3027$as_echo "no" >&6; }
d9898ee8 3028fi
3029
d9898ee8 3030
dd184caf 3031 fi
d9898ee8 3032fi
3033if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035set dummy cc; ac_word=$2
b0322a85 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3037$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3038if ${ac_cv_prog_CC+:} false; then :
8d138742 3039 $as_echo_n "(cached) " >&6
d9898ee8 3040else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044 ac_prog_rejected=no
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
b0322a85
CE
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3055 fi
3056 ac_cv_prog_CC="cc"
b0322a85 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3058 break 2
3059 fi
3060done
b0322a85 3061 done
dd184caf 3062IFS=$as_save_IFS
d9898ee8 3063
3064if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 fi
3075fi
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
b0322a85 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3081$as_echo "$CC" >&6; }
d9898ee8 3082else
b0322a85 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3084$as_echo "no" >&6; }
d9898ee8 3085fi
3086
dd184caf 3087
d9898ee8 3088fi
3089if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
dd184caf 3091 for ac_prog in cl.exe
d9898ee8 3092 do
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3096$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3097if ${ac_cv_prog_CC+:} false; then :
8d138742 3098 $as_echo_n "(cached) " >&6
d9898ee8 3099else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
b0322a85
CE
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3112 break 2
3113 fi
3114done
b0322a85 3115 done
dd184caf 3116IFS=$as_save_IFS
d9898ee8 3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
b0322a85 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3123$as_echo "$CC" >&6; }
d9898ee8 3124else
b0322a85 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3126$as_echo "no" >&6; }
d9898ee8 3127fi
3128
dd184caf 3129
d9898ee8 3130 test -n "$CC" && break
3131 done
3132fi
3133if test -z "$CC"; then
3134 ac_ct_CC=$CC
dd184caf 3135 for ac_prog in cl.exe
d9898ee8 3136do
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138set dummy $ac_prog; ac_word=$2
b0322a85 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3140$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3141if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3142 $as_echo_n "(cached) " >&6
d9898ee8 3143else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
b0322a85
CE
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3154 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3156 break 2
3157 fi
3158done
b0322a85 3159 done
dd184caf 3160IFS=$as_save_IFS
d9898ee8 3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if test -n "$ac_ct_CC"; then
b0322a85 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3167$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3168else
b0322a85 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3170$as_echo "no" >&6; }
d9898ee8 3171fi
3172
dd184caf 3173
d9898ee8 3174 test -n "$ac_ct_CC" && break
3175done
3176
dd184caf 3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181yes:)
b0322a85 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3184ac_tool_warned=yes ;;
3185esac
3186 CC=$ac_ct_CC
3187 fi
d9898ee8 3188fi
3189
3190fi
3191
3192
b0322a85 3193test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3195as_fn_error $? "no acceptable C compiler found in \$PATH
3196See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3197
3198# Provide some information about the compiler.
b0322a85 3199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3200set X $ac_compile
3201ac_compiler=$2
b0322a85
CE
3202for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
b0322a85
CE
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3211 ac_status=$?
b0322a85
CE
3212 if test -s conftest.err; then
3213 sed '10a\
3214... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3217 fi
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221done
d9898ee8 3222
b0322a85 3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234ac_clean_files_save=$ac_clean_files
8d138742 3235ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3236# Try to create an executable without -o first, disregard a.out.
3237# It will help us diagnose broken compilers, and finding out an intuition
3238# of exeext.
b0322a85
CE
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3241ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242
3243# The possible output files:
3244ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3245
dd184caf 3246ac_rmfiles=
3247for ac_file in $ac_files
3248do
3249 case $ac_file in
8d138742 3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253done
3254rm -f $ac_rmfiles
3255
b0322a85 3256if { { ac_try="$ac_link_default"
dd184caf 3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
b0322a85
CE
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
dd184caf 3263 (eval "$ac_link_default") 2>&5
d9898ee8 3264 ac_status=$?
b0322a85
CE
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
dd184caf 3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269# in a Makefile. We should not override ac_cv_exeext if it was cached,
3270# so that the user can short-circuit this test for compilers unknown to
3271# Autoconf.
3272for ac_file in $ac_files ''
d9898ee8 3273do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
8d138742 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3277 ;;
3278 [ab].out )
3279 # We found the default executable, but exeext='' is most
3280 # certainly right.
3281 break;;
3282 *.* )
b0322a85 3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3284 then :; else
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 fi
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3291 # actually working.
d9898ee8 3292 break;;
3293 * )
3294 break;;
3295 esac
3296done
dd184caf 3297test "$ac_cv_exeext" = no && ac_cv_exeext=
3298
d9898ee8 3299else
dd184caf 3300 ac_file=''
3301fi
b0322a85
CE
3302if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305$as_echo "$as_me: failed program was:" >&5
d9898ee8 3306sed 's/^/| /' conftest.$ac_ext >&5
3307
b0322a85 3308{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3310as_fn_error 77 "C compiler cannot create executables
3311See \`config.log' for more details" "$LINENO" 5; }
3312else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
d9898ee8 3315fi
b0322a85
CE
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317$as_echo_n "checking for C compiler default output file name... " >&6; }
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319$as_echo "$ac_file" >&6; }
d9898ee8 3320ac_exeext=$ac_cv_exeext
d9898ee8 3321
8d138742 3322rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3323ac_clean_files=$ac_clean_files_save
b0322a85 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3325$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3326if { { ac_try="$ac_link"
dd184caf 3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
b0322a85
CE
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
dd184caf 3333 (eval "$ac_link") 2>&5
d9898ee8 3334 ac_status=$?
b0322a85
CE
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
d9898ee8 3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339# work properly (i.e., refer to `conftest.exe'), while it won't with
3340# `rm'.
3341for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
8d138742 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3346 break;;
3347 * ) break;;
3348 esac
3349done
3350else
b0322a85 3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3353as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3354See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3355fi
b0322a85
CE
3356rm -f conftest conftest$ac_cv_exeext
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3358$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3359
3360rm -f conftest.$ac_ext
3361EXEEXT=$ac_cv_exeext
3362ac_exeext=$EXEEXT
b0322a85
CE
3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h. */
3365#include <stdio.h>
3366int
3367main ()
3368{
3369FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376ac_clean_files="$ac_clean_files conftest.out"
3377# Check that the compiler produces executables we can run. If not, either
3378# the compiler is broken, or we cross compile.
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380$as_echo_n "checking whether we are cross compiling... " >&6; }
3381if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3404 cross_compiling=no
3405 else
3406 if test "$cross_compiling" = maybe; then
3407 cross_compiling=yes
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error $? "cannot run C compiled programs.
3412If you meant to cross compile, use \`--host'.
3413See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 fi
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418$as_echo "$cross_compiling" >&6; }
3419
3420rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421ac_clean_files=$ac_clean_files_save
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3423$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3424if ${ac_cv_objext+:} false; then :
8d138742 3425 $as_echo_n "(cached) " >&6
d9898ee8 3426else
b0322a85 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3428/* end confdefs.h. */
3429
3430int
3431main ()
3432{
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.o conftest.obj
b0322a85 3439if { { ac_try="$ac_compile"
dd184caf 3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
b0322a85
CE
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
dd184caf 3446 (eval "$ac_compile") 2>&5
d9898ee8 3447 ac_status=$?
b0322a85
CE
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
dd184caf 3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
d9898ee8 3452 case $ac_file in
8d138742 3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457done
3458else
8d138742 3459 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3460sed 's/^/| /' conftest.$ac_ext >&5
3461
b0322a85 3462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3464as_fn_error $? "cannot compute suffix of object files: cannot compile
3465See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3466fi
d9898ee8 3467rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468fi
b0322a85 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3470$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3471OBJEXT=$ac_cv_objext
3472ac_objext=$OBJEXT
b0322a85 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3475if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3476 $as_echo_n "(cached) " >&6
d9898ee8 3477else
b0322a85 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3479/* end confdefs.h. */
3480
3481int
3482main ()
3483{
3484#ifndef __GNUC__
3485 choke me
3486#endif
3487
3488 ;
3489 return 0;
3490}
3491_ACEOF
b0322a85 3492if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3493 ac_compiler_gnu=yes
3494else
b0322a85 3495 ac_compiler_gnu=no
d9898ee8 3496fi
dd184caf 3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3498ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500fi
b0322a85 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505else
3506 GCC=
3507fi
d9898ee8 3508ac_test_CFLAGS=${CFLAGS+set}
3509ac_save_CFLAGS=$CFLAGS
b0322a85 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3511$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3512if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3513 $as_echo_n "(cached) " >&6
d9898ee8 3514else
dd184caf 3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
b0322a85 3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525
b0322a85
CE
3526 ;
3527 return 0;
3528}
dd184caf 3529_ACEOF
b0322a85
CE
3530if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532else
3533 CFLAGS=""
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
b0322a85 3545if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3546
b0322a85
CE
3547else
3548 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3549 CFLAGS="-g"
b0322a85 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3551/* end confdefs.h. */
3552
3553int
3554main ()
3555{
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
b0322a85 3561if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3562 ac_cv_prog_cc_g=yes
dd184caf 3563fi
dd184caf 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565fi
dd184caf 3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3567fi
dd184caf 3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3570fi
b0322a85 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3572$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3573if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3577 CFLAGS="-g -O2"
3578 else
3579 CFLAGS="-g"
3580 fi
3581else
3582 if test "$GCC" = yes; then
3583 CFLAGS="-O2"
3584 else
3585 CFLAGS=
3586 fi
3587fi
b0322a85 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3590if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3591 $as_echo_n "(cached) " >&6
d9898ee8 3592else
dd184caf 3593 ac_cv_prog_cc_c89=no
d9898ee8 3594ac_save_CC=$CC
b0322a85 3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3596/* end confdefs.h. */
3597#include <stdarg.h>
3598#include <stdio.h>
b0322a85 3599struct stat;
d9898ee8 3600/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601struct buf { int x; };
3602FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603static char *e (p, i)
3604 char **p;
3605 int i;
3606{
3607 return p[i];
3608}
3609static char *f (char * (*g) (char **, int), char **p, ...)
3610{
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3617}
3618
3619/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3622 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3625 that's true only with -std. */
d9898ee8 3626int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627
dd184caf 3628/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630#define FOO(x) 'x'
3631int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632
d9898ee8 3633int test (int i, double x);
3634struct s1 {int (*f) (int a);};
3635struct s2 {int (*f) (double a);};
3636int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637int argc;
3638char **argv;
3639int
3640main ()
3641{
3642return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 ;
3644 return 0;
3645}
3646_ACEOF
dd184caf 3647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3649do
3650 CC="$ac_save_CC $ac_arg"
b0322a85 3651 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3652 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3653fi
dd184caf 3654rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3656done
dd184caf 3657rm -f conftest.$ac_ext
d9898ee8 3658CC=$ac_save_CC
3659
3660fi
dd184caf 3661# AC_CACHE_VAL
3662case "x$ac_cv_prog_cc_c89" in
3663 x)
b0322a85 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3665$as_echo "none needed" >&6; } ;;
dd184caf 3666 xno)
b0322a85 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3668$as_echo "unsupported" >&6; } ;;
d9898ee8 3669 *)
dd184caf 3670 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3672$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3673esac
b0322a85 3674if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3675
b0322a85 3676fi
d9898ee8 3677
d9898ee8 3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684depcc="$CC" am_compiler_list=
3685
b0322a85 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3687$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3688if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3689 $as_echo_n "(cached) " >&6
d9898ee8 3690else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3695 # making a dummy file named 'D' -- because '-MD' means "put the output
3696 # in D".
3697 rm -rf conftest.dir
d9898ee8 3698 mkdir conftest.dir
3699 # Copy depcomp to subdir because otherwise we won't find it if we're
3700 # using a relative directory.
3701 cp "$am_depcomp" conftest.dir
3702 cd conftest.dir
3703 # We will build objects and dependencies in a subdirectory because
3704 # it helps to detect inapplicable dependency modes. For instance
3705 # both Tru64's cc and ICC support -MD to output dependencies as a
3706 # side effect of compilation, but ICC will put the dependencies in
3707 # the current directory while Tru64 will put them in the object
3708 # directory.
3709 mkdir sub
3710
3711 am_cv_CC_dependencies_compiler_type=none
3712 if test "$am_compiler_list" = ""; then
3713 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 fi
8d138742
CE
3715 am__universal=false
3716 case " $depcc " in #(
3717 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3718 esac
3719
d9898ee8 3720 for depmode in $am_compiler_list; do
3721 # Setup a source with many dependencies, because some compilers
3722 # like to wrap large dependency lists on column 80 (with \), and
3723 # we should not choose a depcomp mode which is confused by this.
3724 #
3725 # We need to recreate these files for each test, as the compiler may
3726 # overwrite some of them when testing with obscure command lines.
3727 # This happens at least with the AIX C compiler.
3728 : > sub/conftest.c
3729 for i in 1 2 3 4 5 6; do
3730 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3731 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3732 # Solaris 10 /bin/sh.
3733 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3734 done
3735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3736
b0322a85 3737 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3738 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3739 # handle '-M -o', and we need to detect this. Also, some Intel
3740 # versions had trouble with output in subdirs.
8d138742
CE
3741 am__obj=sub/conftest.${OBJEXT-o}
3742 am__minus_obj="-o $am__obj"
d9898ee8 3743 case $depmode in
8d138742
CE
3744 gcc)
3745 # This depmode causes a compiler race in universal mode.
3746 test "$am__universal" = false || continue
3747 ;;
d9898ee8 3748 nosideeffect)
b0322a85
CE
3749 # After this tag, mechanisms are not by side-effect, so they'll
3750 # only be used when explicitly requested.
d9898ee8 3751 if test "x$enable_dependency_tracking" = xyes; then
3752 continue
3753 else
3754 break
3755 fi
3756 ;;
b0322a85
CE
3757 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3758 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3759 # not run yet. These depmodes are late enough in the game, and
3760 # so weak that their functioning should not be impacted.
3761 am__obj=conftest.${OBJEXT-o}
3762 am__minus_obj=
3763 ;;
d9898ee8 3764 none) break ;;
3765 esac
d9898ee8 3766 if depmode=$depmode \
8d138742 3767 source=sub/conftest.c object=$am__obj \
d9898ee8 3768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3769 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3770 >/dev/null 2>conftest.err &&
dd184caf 3771 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3773 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3775 # icc doesn't choke on unknown options, it will just issue warnings
3776 # or remarks (even with -Werror). So we grep stderr for any message
3777 # that says an option was ignored or not supported.
3778 # When given -MP, icc 7.0 and 7.1 complain thusly:
3779 # icc: Command line warning: ignoring option '-M'; no argument required
3780 # The diagnosis changed in icc 8.0:
3781 # icc: Command line remark: option '-MP' not supported
3782 if (grep 'ignoring option' conftest.err ||
3783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784 am_cv_CC_dependencies_compiler_type=$depmode
3785 break
3786 fi
3787 fi
3788 done
3789
3790 cd ..
3791 rm -rf conftest.dir
3792else
3793 am_cv_CC_dependencies_compiler_type=none
3794fi
3795
3796fi
b0322a85 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3798$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3799CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800
dd184caf 3801 if
d9898ee8 3802 test "x$enable_dependency_tracking" != xno \
3803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3804 am__fastdepCC_TRUE=
3805 am__fastdepCC_FALSE='#'
3806else
3807 am__fastdepCC_TRUE='#'
3808 am__fastdepCC_FALSE=
3809fi
3810
3811
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742 3819$as_echo_n "checking how to run the C preprocessor... " >&6; }
d9898ee8 3820# On Suns, sometimes $CPP names a directory.
3821if test -n "$CPP" && test -d "$CPP"; then
3822 CPP=
3823fi
3824if test -z "$CPP"; then
b0322a85 3825 if ${ac_cv_prog_CPP+:} false; then :
8d138742 3826 $as_echo_n "(cached) " >&6
d9898ee8 3827else
3828 # Double quotes because CPP needs to be expanded
3829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 do
3831 ac_preproc_ok=false
3832for ac_c_preproc_warn_flag in '' yes
3833do
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3841/* end confdefs.h. */
3842#ifdef __STDC__
3843# include <limits.h>
3844#else
3845# include <assert.h>
3846#endif
3847 Syntax error
3848_ACEOF
b0322a85 3849if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3850
b0322a85 3851else
d9898ee8 3852 # Broken: fails on valid input.
3853continue
3854fi
b0322a85 3855rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 3856
dd184caf 3857 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3858 # can be detected and how.
b0322a85 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3860/* end confdefs.h. */
3861#include <ac_nonexistent.h>
3862_ACEOF
b0322a85 3863if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3864 # Broken: success on invalid input.
3865continue
3866else
d9898ee8 3867 # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
b0322a85 3871rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 3872
3873done
3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
3875rm -f conftest.i conftest.err conftest.$ac_ext
3876if $ac_preproc_ok; then :
d9898ee8 3877 break
3878fi
3879
3880 done
3881 ac_cv_prog_CPP=$CPP
3882
3883fi
3884 CPP=$ac_cv_prog_CPP
3885else
3886 ac_cv_prog_CPP=$CPP
3887fi
b0322a85 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742 3889$as_echo "$CPP" >&6; }
d9898ee8 3890ac_preproc_ok=false
3891for ac_c_preproc_warn_flag in '' yes
3892do
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3900/* end confdefs.h. */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
3906 Syntax error
3907_ACEOF
b0322a85 3908if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3909
b0322a85 3910else
d9898ee8 3911 # Broken: fails on valid input.
3912continue
3913fi
b0322a85 3914rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 3915
dd184caf 3916 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3917 # can be detected and how.
b0322a85 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3919/* end confdefs.h. */
3920#include <ac_nonexistent.h>
3921_ACEOF
b0322a85 3922if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 3923 # Broken: success on invalid input.
3924continue
3925else
d9898ee8 3926 # Passes both tests.
3927ac_preproc_ok=:
3928break
3929fi
b0322a85 3930rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 3931
3932done
3933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
3934rm -f conftest.i conftest.err conftest.$ac_ext
3935if $ac_preproc_ok; then :
3936
d9898ee8 3937else
b0322a85 3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3941See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3942fi
3943
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
b0322a85 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 3952$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 3953if ${ac_cv_path_GREP+:} false; then :
8d138742 3954 $as_echo_n "(cached) " >&6
dd184caf 3955else
8d138742 3956 if test -z "$GREP"; then
dd184caf 3957 ac_path_GREP_found=false
8d138742
CE
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
b0322a85 3964 for ac_prog in grep ggrep; do
8d138742
CE
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 3967 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 3968# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 3969 # Check for GNU $ac_path_GREP
3970case `"$ac_path_GREP" --version 2>&1` in
3971*GNU*)
3972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973*)
3974 ac_count=0
8d138742 3975 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3976 while :
3977 do
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
8d138742 3981 $as_echo 'GREP' >> "conftest.nl"
dd184caf 3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP="$ac_path_GREP"
3988 ac_path_GREP_max=$ac_count
3989 fi
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3992 done
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
8d138742
CE
3996 $ac_path_GREP_found && break 3
3997 done
dd184caf 3998 done
b0322a85 3999 done
dd184caf 4000IFS=$as_save_IFS
8d138742 4001 if test -z "$ac_cv_path_GREP"; then
b0322a85 4002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4003 fi
dd184caf 4004else
4005 ac_cv_path_GREP=$GREP
4006fi
4007
dd184caf 4008fi
b0322a85 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4010$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4011 GREP="$ac_cv_path_GREP"
4012
4013
b0322a85 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4015$as_echo_n "checking for egrep... " >&6; }
b0322a85 4016if ${ac_cv_path_EGREP+:} false; then :
8d138742 4017 $as_echo_n "(cached) " >&6
dd184caf 4018else
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4021 else
8d138742 4022 if test -z "$EGREP"; then
dd184caf 4023 ac_path_EGREP_found=false
8d138742
CE
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
b0322a85 4030 for ac_prog in egrep; do
8d138742
CE
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4033 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4034# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4035 # Check for GNU $ac_path_EGREP
4036case `"$ac_path_EGREP" --version 2>&1` in
4037*GNU*)
4038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039*)
4040 ac_count=0
8d138742 4041 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
8d138742 4047 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP="$ac_path_EGREP"
4054 ac_path_EGREP_max=$ac_count
d9898ee8 4055 fi
dd184caf 4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
8d138742
CE
4062 $ac_path_EGREP_found && break 3
4063 done
dd184caf 4064 done
b0322a85 4065 done
dd184caf 4066IFS=$as_save_IFS
8d138742 4067 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4069 fi
dd184caf 4070else
4071 ac_cv_path_EGREP=$EGREP
4072fi
4073
dd184caf 4074 fi
4075fi
b0322a85 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742 4077$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4078 EGREP="$ac_cv_path_EGREP"
d9898ee8 4079
4080
b0322a85 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 4082$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 4083if ${ac_cv_header_stdc+:} false; then :
8d138742 4084 $as_echo_n "(cached) " >&6
d9898ee8 4085else
b0322a85 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4087/* end confdefs.h. */
4088#include <stdlib.h>
4089#include <stdarg.h>
4090#include <string.h>
4091#include <float.h>
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
b0322a85 4101if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4102 ac_cv_header_stdc=yes
4103else
b0322a85 4104 ac_cv_header_stdc=no
d9898ee8 4105fi
dd184caf 4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4107
4108if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4111/* end confdefs.h. */
4112#include <string.h>
4113
4114_ACEOF
4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4116 $EGREP "memchr" >/dev/null 2>&1; then :
4117
d9898ee8 4118else
4119 ac_cv_header_stdc=no
4120fi
4121rm -f conftest*
4122
4123fi
4124
4125if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4128/* end confdefs.h. */
4129#include <stdlib.h>
4130
4131_ACEOF
4132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
4133 $EGREP "free" >/dev/null 2>&1; then :
4134
d9898ee8 4135else
4136 ac_cv_header_stdc=no
4137fi
4138rm -f conftest*
4139
4140fi
4141
4142if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 4144 if test "$cross_compiling" = yes; then :
d9898ee8 4145 :
4146else
b0322a85 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4148/* end confdefs.h. */
4149#include <ctype.h>
dd184caf 4150#include <stdlib.h>
d9898ee8 4151#if ((' ' & 0x0FF) == 0x020)
4152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154#else
4155# define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160#endif
4161
4162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163int
4164main ()
4165{
4166 int i;
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
b0322a85
CE
4169 || toupper (i) != TOUPPER (i))
4170 return 2;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_run "$LINENO"; then :
4175
d9898ee8 4176else
b0322a85
CE
4177 ac_cv_header_stdc=no
4178fi
4179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4180 conftest.$ac_objext conftest.beam conftest.$ac_ext
4181fi
d9898ee8 4182
d9898ee8 4183fi
b0322a85
CE
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186$as_echo "$ac_cv_header_stdc" >&6; }
4187if test $ac_cv_header_stdc = yes; then
dd184caf 4188
b0322a85 4189$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 4190
d9898ee8 4191fi
b0322a85
CE
4192
4193# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4196do :
4197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199"
4200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4201 cat >>confdefs.h <<_ACEOF
4202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203_ACEOF
d9898ee8 4204
4205fi
b0322a85
CE
4206
4207done
4208
4209
4210
4211 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4212if test "x$ac_cv_header_minix_config_h" = xyes; then :
d9898ee8 4213 MINIX=yes
4214else
4215 MINIX=
4216fi
4217
4218
8d138742 4219 if test "$MINIX" = yes; then
d9898ee8 4220
b0322a85 4221$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d9898ee8 4222
4223
b0322a85 4224$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d9898ee8 4225
4226
b0322a85 4227$as_echo "#define _MINIX 1" >>confdefs.h
d9898ee8 4228
8d138742
CE
4229 fi
4230
4231
b0322a85 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
8d138742 4233$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b0322a85 4234if ${ac_cv_safe_to_define___extensions__+:} false; then :
8d138742
CE
4235 $as_echo_n "(cached) " >&6
4236else
b0322a85 4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
4238/* end confdefs.h. */
4239
b0322a85
CE
4240# define __EXTENSIONS__ 1
4241 $ac_includes_default
8d138742
CE
4242int
4243main ()
4244{
4245
4246 ;
4247 return 0;
4248}
4249_ACEOF
b0322a85 4250if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
4251 ac_cv_safe_to_define___extensions__=yes
4252else
b0322a85 4253 ac_cv_safe_to_define___extensions__=no
8d138742 4254fi
8d138742 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4256fi
b0322a85 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
8d138742
CE
4258$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4259 test $ac_cv_safe_to_define___extensions__ = yes &&
b0322a85 4260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
8d138742 4261
b0322a85 4262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d9898ee8 4263
b0322a85 4264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d9898ee8 4265
b0322a85 4266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d9898ee8 4267
b0322a85 4268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d9898ee8 4269
d9898ee8 4270
d9898ee8 4271
b0322a85 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 4273$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 4274LN_S=$as_ln_s
4275if test "$LN_S" = "ln -s"; then
b0322a85 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 4277$as_echo "yes" >&6; }
d9898ee8 4278else
b0322a85 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 4280$as_echo "no, using $LN_S" >&6; }
d9898ee8 4281fi
4282
4283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288if test -n "$ac_tool_prefix"; then
4289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4290set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4292$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4293if ${ac_cv_prog_CC+:} false; then :
8d138742 4294 $as_echo_n "(cached) " >&6
d9898ee8 4295else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
b0322a85
CE
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4308 break 2
4309 fi
4310done
b0322a85 4311 done
dd184caf 4312IFS=$as_save_IFS
d9898ee8 4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
b0322a85 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4319$as_echo "$CC" >&6; }
d9898ee8 4320else
b0322a85 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4322$as_echo "no" >&6; }
d9898ee8 4323fi
4324
dd184caf 4325
d9898ee8 4326fi
4327if test -z "$ac_cv_prog_CC"; then
4328 ac_ct_CC=$CC
4329 # Extract the first word of "gcc", so it can be a program name with args.
4330set dummy gcc; ac_word=$2
b0322a85 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4332$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4333if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 4334 $as_echo_n "(cached) " >&6
d9898ee8 4335else
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
b0322a85
CE
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4346 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4348 break 2
4349 fi
4350done
b0322a85 4351 done
dd184caf 4352IFS=$as_save_IFS
d9898ee8 4353
4354fi
4355fi
4356ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357if test -n "$ac_ct_CC"; then
b0322a85 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 4359$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4360else
b0322a85 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4362$as_echo "no" >&6; }
d9898ee8 4363fi
4364
dd184caf 4365 if test "x$ac_ct_CC" = x; then
4366 CC=""
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369yes:)
b0322a85 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 4371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4372ac_tool_warned=yes ;;
4373esac
4374 CC=$ac_ct_CC
4375 fi
d9898ee8 4376else
4377 CC="$ac_cv_prog_CC"
4378fi
4379
4380if test -z "$CC"; then
dd184caf 4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 4383set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4385$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4386if ${ac_cv_prog_CC+:} false; then :
8d138742 4387 $as_echo_n "(cached) " >&6
d9898ee8 4388else
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
b0322a85
CE
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4399 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4401 break 2
4402 fi
4403done
b0322a85 4404 done
dd184caf 4405IFS=$as_save_IFS
d9898ee8 4406
4407fi
4408fi
4409CC=$ac_cv_prog_CC
4410if test -n "$CC"; then
b0322a85 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4412$as_echo "$CC" >&6; }
d9898ee8 4413else
b0322a85 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4415$as_echo "no" >&6; }
d9898ee8 4416fi
4417
d9898ee8 4418
dd184caf 4419 fi
d9898ee8 4420fi
4421if test -z "$CC"; then
4422 # Extract the first word of "cc", so it can be a program name with args.
4423set dummy cc; ac_word=$2
b0322a85 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4425$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4426if ${ac_cv_prog_CC+:} false; then :
8d138742 4427 $as_echo_n "(cached) " >&6
d9898ee8 4428else
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4431else
4432 ac_prog_rejected=no
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
b0322a85
CE
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4441 ac_prog_rejected=yes
4442 continue
4443 fi
4444 ac_cv_prog_CC="cc"
b0322a85 4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4446 break 2
4447 fi
4448done
b0322a85 4449 done
dd184caf 4450IFS=$as_save_IFS
d9898ee8 4451
4452if test $ac_prog_rejected = yes; then
4453 # We found a bogon in the path, so make sure we never use it.
4454 set dummy $ac_cv_prog_CC
4455 shift
4456 if test $# != 0; then
4457 # We chose a different compiler from the bogus one.
4458 # However, it has the same basename, so the bogon will be chosen
4459 # first if we set CC to just the basename; use the full file name.
4460 shift
4461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4462 fi
4463fi
4464fi
4465fi
4466CC=$ac_cv_prog_CC
4467if test -n "$CC"; then
b0322a85 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4469$as_echo "$CC" >&6; }
d9898ee8 4470else
b0322a85 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4472$as_echo "no" >&6; }
d9898ee8 4473fi
4474
dd184caf 4475
d9898ee8 4476fi
4477if test -z "$CC"; then
4478 if test -n "$ac_tool_prefix"; then
dd184caf 4479 for ac_prog in cl.exe
d9898ee8 4480 do
4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4484$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4485if ${ac_cv_prog_CC+:} false; then :
8d138742 4486 $as_echo_n "(cached) " >&6
d9898ee8 4487else
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490else
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
b0322a85
CE
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4500 break 2
4501 fi
4502done
b0322a85 4503 done
dd184caf 4504IFS=$as_save_IFS
d9898ee8 4505
4506fi
4507fi
4508CC=$ac_cv_prog_CC
4509if test -n "$CC"; then
b0322a85 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 4511$as_echo "$CC" >&6; }
d9898ee8 4512else
b0322a85 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4514$as_echo "no" >&6; }
d9898ee8 4515fi
4516
dd184caf 4517
d9898ee8 4518 test -n "$CC" && break
4519 done
4520fi
4521if test -z "$CC"; then
4522 ac_ct_CC=$CC
dd184caf 4523 for ac_prog in cl.exe
d9898ee8 4524do
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526set dummy $ac_prog; ac_word=$2
b0322a85 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4528$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4529if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 4530 $as_echo_n "(cached) " >&6
d9898ee8 4531else
4532 if test -n "$ac_ct_CC"; then
4533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
b0322a85
CE
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4542 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4544 break 2
4545 fi
4546done
b0322a85 4547 done
dd184caf 4548IFS=$as_save_IFS
d9898ee8 4549
4550fi
4551fi
4552ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553if test -n "$ac_ct_CC"; then
b0322a85 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 4555$as_echo "$ac_ct_CC" >&6; }
d9898ee8 4556else
b0322a85 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4558$as_echo "no" >&6; }
d9898ee8 4559fi
4560
dd184caf 4561
d9898ee8 4562 test -n "$ac_ct_CC" && break
4563done
4564
dd184caf 4565 if test "x$ac_ct_CC" = x; then
4566 CC=""
4567 else
4568 case $cross_compiling:$ac_tool_warned in
4569yes:)
b0322a85 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 4571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4572ac_tool_warned=yes ;;
4573esac
4574 CC=$ac_ct_CC
4575 fi
d9898ee8 4576fi
4577
4578fi
4579
4580
b0322a85 4581test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 4582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
4583as_fn_error $? "no acceptable C compiler found in \$PATH
4584See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 4585
4586# Provide some information about the compiler.
b0322a85 4587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
4588set X $ac_compile
4589ac_compiler=$2
b0322a85
CE
4590for ac_option in --version -v -V -qversion; do
4591 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 4592case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
b0322a85
CE
4596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597$as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 4599 ac_status=$?
b0322a85
CE
4600 if test -s conftest.err; then
4601 sed '10a\
4602... rest of stderr output deleted ...
4603 10q' conftest.err >conftest.er1
4604 cat conftest.er1 >&5
4605 fi
4606 rm -f conftest.er1 conftest.err
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }
4609done
d9898ee8 4610
b0322a85 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 4612$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 4613if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 4614 $as_echo_n "(cached) " >&6
d9898ee8 4615else
b0322a85 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4617/* end confdefs.h. */
4618
4619int
4620main ()
4621{
4622#ifndef __GNUC__
4623 choke me
4624#endif
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
b0322a85 4630if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4631 ac_compiler_gnu=yes
4632else
b0322a85 4633 ac_compiler_gnu=no
d9898ee8 4634fi
dd184caf 4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4636ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638fi
b0322a85 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
4640$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4641if test $ac_compiler_gnu = yes; then
4642 GCC=yes
4643else
4644 GCC=
4645fi
d9898ee8 4646ac_test_CFLAGS=${CFLAGS+set}
4647ac_save_CFLAGS=$CFLAGS
b0322a85 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 4649$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 4650if ${ac_cv_prog_cc_g+:} false; then :
8d138742 4651 $as_echo_n "(cached) " >&6
d9898ee8 4652else
dd184caf 4653 ac_save_c_werror_flag=$ac_c_werror_flag
4654 ac_c_werror_flag=yes
4655 ac_cv_prog_cc_g=no
4656 CFLAGS="-g"
b0322a85 4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4658/* end confdefs.h. */
4659
4660int
4661main ()
4662{
4663
4664 ;
4665 return 0;
4666}
4667_ACEOF
b0322a85 4668if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 4669 ac_cv_prog_cc_g=yes
4670else
b0322a85
CE
4671 CFLAGS=""
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 4673/* end confdefs.h. */
4674
4675int
4676main ()
4677{
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
b0322a85 4683if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 4684
b0322a85
CE
4685else
4686 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 4687 CFLAGS="-g"
b0322a85 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 4689/* end confdefs.h. */
4690
4691int
4692main ()
4693{
4694
4695 ;
4696 return 0;
4697}
4698_ACEOF
b0322a85 4699if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 4700 ac_cv_prog_cc_g=yes
dd184caf 4701fi
dd184caf 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
dd184caf 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4705fi
dd184caf 4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 4708fi
b0322a85 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 4710$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 4711if test "$ac_test_CFLAGS" = set; then
4712 CFLAGS=$ac_save_CFLAGS
4713elif test $ac_cv_prog_cc_g = yes; then
4714 if test "$GCC" = yes; then
4715 CFLAGS="-g -O2"
4716 else
4717 CFLAGS="-g"
4718 fi
4719else
4720 if test "$GCC" = yes; then
4721 CFLAGS="-O2"
4722 else
4723 CFLAGS=
4724 fi
4725fi
b0322a85 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 4727$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 4728if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 4729 $as_echo_n "(cached) " >&6
d9898ee8 4730else
dd184caf 4731 ac_cv_prog_cc_c89=no
d9898ee8 4732ac_save_CC=$CC
b0322a85 4733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 4734/* end confdefs.h. */
4735#include <stdarg.h>
4736#include <stdio.h>
b0322a85 4737struct stat;
d9898ee8 4738/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4739struct buf { int x; };
4740FILE * (*rcsopen) (struct buf *, struct stat *, int);
4741static char *e (p, i)
4742 char **p;
4743 int i;
4744{
4745 return p[i];
4746}
4747static char *f (char * (*g) (char **, int), char **p, ...)
4748{
4749 char *s;
4750 va_list v;
4751 va_start (v,p);
4752 s = g (p, va_arg (v,int));
4753 va_end (v);
4754 return s;
4755}
4756
4757/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4758 function prototypes and stuff, but not '\xHH' hex character constants.
4759 These don't provoke an error unfortunately, instead are silently treated
dd184caf 4760 as 'x'. The following induces an error, until -std is added to get
d9898ee8 4761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4762 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 4763 that's true only with -std. */
d9898ee8 4764int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4765
dd184caf 4766/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4767 inside strings and character constants. */
4768#define FOO(x) 'x'
4769int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4770
d9898ee8 4771int test (int i, double x);
4772struct s1 {int (*f) (int a);};
4773struct s2 {int (*f) (double a);};
4774int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4775int argc;
4776char **argv;
4777int
4778main ()
4779{
4780return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4781 ;
4782 return 0;
4783}
4784_ACEOF
dd184caf 4785for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 4787do
4788 CC="$ac_save_CC $ac_arg"
b0322a85 4789 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 4790 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 4791fi
dd184caf 4792rm -f core conftest.err conftest.$ac_objext
4793 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 4794done
dd184caf 4795rm -f conftest.$ac_ext
d9898ee8 4796CC=$ac_save_CC
4797
4798fi
dd184caf 4799# AC_CACHE_VAL
4800case "x$ac_cv_prog_cc_c89" in
4801 x)
b0322a85 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 4803$as_echo "none needed" >&6; } ;;
dd184caf 4804 xno)
b0322a85 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 4806$as_echo "unsupported" >&6; } ;;
d9898ee8 4807 *)
dd184caf 4808 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 4810$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 4811esac
b0322a85 4812if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 4813
b0322a85 4814fi
d9898ee8 4815
d9898ee8 4816ac_ext=c
4817ac_cpp='$CPP $CPPFLAGS'
4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822depcc="$CC" am_compiler_list=
4823
b0322a85 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 4825$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 4826if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 4827 $as_echo_n "(cached) " >&6
d9898ee8 4828else
4829 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4830 # We make a subdir and do the tests there. Otherwise we can end up
4831 # making bogus files that we don't know about and never remove. For
4832 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
4833 # making a dummy file named 'D' -- because '-MD' means "put the output
4834 # in D".
4835 rm -rf conftest.dir
d9898ee8 4836 mkdir conftest.dir
4837 # Copy depcomp to subdir because otherwise we won't find it if we're
4838 # using a relative directory.
4839 cp "$am_depcomp" conftest.dir
4840 cd conftest.dir
4841 # We will build objects and dependencies in a subdirectory because
4842 # it helps to detect inapplicable dependency modes. For instance
4843 # both Tru64's cc and ICC support -MD to output dependencies as a
4844 # side effect of compilation, but ICC will put the dependencies in
4845 # the current directory while Tru64 will put them in the object
4846 # directory.
4847 mkdir sub
4848
4849 am_cv_CC_dependencies_compiler_type=none
4850 if test "$am_compiler_list" = ""; then
4851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4852 fi
8d138742
CE
4853 am__universal=false
4854 case " $depcc " in #(
4855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4856 esac
4857
d9898ee8 4858 for depmode in $am_compiler_list; do
4859 # Setup a source with many dependencies, because some compilers
4860 # like to wrap large dependency lists on column 80 (with \), and
4861 # we should not choose a depcomp mode which is confused by this.
4862 #
4863 # We need to recreate these files for each test, as the compiler may
4864 # overwrite some of them when testing with obscure command lines.
4865 # This happens at least with the AIX C compiler.
4866 : > sub/conftest.c
4867 for i in 1 2 3 4 5 6; do
4868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
4869 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4870 # Solaris 10 /bin/sh.
4871 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 4872 done
4873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4874
b0322a85 4875 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 4876 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
4877 # handle '-M -o', and we need to detect this. Also, some Intel
4878 # versions had trouble with output in subdirs.
8d138742
CE
4879 am__obj=sub/conftest.${OBJEXT-o}
4880 am__minus_obj="-o $am__obj"
d9898ee8 4881 case $depmode in
8d138742
CE
4882 gcc)
4883 # This depmode causes a compiler race in universal mode.
4884 test "$am__universal" = false || continue
4885 ;;
d9898ee8 4886 nosideeffect)
b0322a85
CE
4887 # After this tag, mechanisms are not by side-effect, so they'll
4888 # only be used when explicitly requested.
d9898ee8 4889 if test "x$enable_dependency_tracking" = xyes; then
4890 continue
4891 else
4892 break
4893 fi
4894 ;;
b0322a85
CE
4895 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4896 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
4897 # not run yet. These depmodes are late enough in the game, and
4898 # so weak that their functioning should not be impacted.
4899 am__obj=conftest.${OBJEXT-o}
4900 am__minus_obj=
4901 ;;
d9898ee8 4902 none) break ;;
4903 esac
d9898ee8 4904 if depmode=$depmode \
8d138742 4905 source=sub/conftest.c object=$am__obj \
d9898ee8 4906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 4907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 4908 >/dev/null 2>conftest.err &&
dd184caf 4909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 4911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4913 # icc doesn't choke on unknown options, it will just issue warnings
4914 # or remarks (even with -Werror). So we grep stderr for any message
4915 # that says an option was ignored or not supported.
4916 # When given -MP, icc 7.0 and 7.1 complain thusly:
4917 # icc: Command line warning: ignoring option '-M'; no argument required
4918 # The diagnosis changed in icc 8.0:
4919 # icc: Command line remark: option '-MP' not supported
4920 if (grep 'ignoring option' conftest.err ||
4921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4922 am_cv_CC_dependencies_compiler_type=$depmode
4923 break
4924 fi
4925 fi
4926 done
4927
4928 cd ..
4929 rm -rf conftest.dir
4930else
4931 am_cv_CC_dependencies_compiler_type=none
4932fi
4933
4934fi
b0322a85 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 4936$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 4937CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4938
dd184caf 4939 if
d9898ee8 4940 test "x$enable_dependency_tracking" != xno \
4941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4942 am__fastdepCC_TRUE=
4943 am__fastdepCC_FALSE='#'
4944else
4945 am__fastdepCC_TRUE='#'
4946 am__fastdepCC_FALSE=
4947fi
4948
4949
4950for ac_prog in ps
4951do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
b0322a85 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4955$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4956if ${ac_cv_path_PS+:} false; then :
8d138742 4957 $as_echo_n "(cached) " >&6
d9898ee8 4958else
4959 case $PS in
4960 [\\/]* | ?:[\\/]*)
4961 ac_cv_path_PS="$PS" # Let the user override the test with a path.
4962 ;;
4963 *)
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $LPATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
b0322a85
CE
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 4971 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
b0322a85 4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4973 break 2
4974 fi
4975done
b0322a85 4976 done
dd184caf 4977IFS=$as_save_IFS
d9898ee8 4978
4979 ;;
4980esac
4981fi
4982PS=$ac_cv_path_PS
d9898ee8 4983if test -n "$PS"; then
b0322a85 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
8d138742 4985$as_echo "$PS" >&6; }
d9898ee8 4986else
b0322a85 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4988$as_echo "no" >&6; }
d9898ee8 4989fi
4990
dd184caf 4991
d9898ee8 4992 test -n "$PS" && break
4993done
4994test -n "$PS" || PS="ps"
4995
4996for ac_prog in w
4997do
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999set dummy $ac_prog; ac_word=$2
b0322a85 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5001$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5002if ${ac_cv_path_W+:} false; then :
8d138742 5003 $as_echo_n "(cached) " >&6
d9898ee8 5004else
5005 case $W in
5006 [\\/]* | ?:[\\/]*)
5007 ac_cv_path_W="$W" # Let the user override the test with a path.
5008 ;;
5009 *)
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $LPATH
5012do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
b0322a85
CE
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 5017 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
b0322a85 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5019 break 2
5020 fi
5021done
b0322a85 5022 done
dd184caf 5023IFS=$as_save_IFS
d9898ee8 5024
5025 ;;
5026esac
5027fi
5028W=$ac_cv_path_W
d9898ee8 5029if test -n "$W"; then
b0322a85 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5
8d138742 5031$as_echo "$W" >&6; }
d9898ee8 5032else
b0322a85 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5034$as_echo "no" >&6; }
d9898ee8 5035fi
5036
dd184caf 5037
d9898ee8 5038 test -n "$W" && break
5039done
5040test -n "$W" || W="w"
5041
8d138742
CE
5042case `pwd` in
5043 *\ * | *\ *)
b0322a85 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
5045$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5046esac
5047
5048
5049
b0322a85
CE
5050macro_version='2.4.2'
5051macro_revision='1.3337'
8d138742
CE
5052
5053
5054
d9898ee8 5055
dd184caf 5056
d9898ee8 5057
dd184caf 5058
dd184caf 5059
d9898ee8 5060
8d138742
CE
5061
5062
5063
5064
5065ltmain="$ac_aux_dir/ltmain.sh"
5066
d9898ee8 5067# Make sure we can run config.sub.
dd184caf 5068$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 5069 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 5070
b0322a85 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 5072$as_echo_n "checking build system type... " >&6; }
b0322a85 5073if ${ac_cv_build+:} false; then :
8d138742 5074 $as_echo_n "(cached) " >&6
d9898ee8 5075else
dd184caf 5076 ac_build_alias=$build_alias
5077test "x$ac_build_alias" = x &&
5078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5079test "x$ac_build_alias" = x &&
b0322a85 5080 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 5081ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 5082 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 5083
5084fi
b0322a85 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 5086$as_echo "$ac_cv_build" >&6; }
dd184caf 5087case $ac_cv_build in
5088*-*-*) ;;
b0322a85 5089*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 5090esac
d9898ee8 5091build=$ac_cv_build
dd184caf 5092ac_save_IFS=$IFS; IFS='-'
5093set x $ac_cv_build
5094shift
5095build_cpu=$1
5096build_vendor=$2
5097shift; shift
5098# Remember, the first character of IFS is used to create $*,
5099# except with old shells:
5100build_os=$*
5101IFS=$ac_save_IFS
5102case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5103
5104
b0322a85 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 5106$as_echo_n "checking host system type... " >&6; }
b0322a85 5107if ${ac_cv_host+:} false; then :
8d138742 5108 $as_echo_n "(cached) " >&6
d9898ee8 5109else
dd184caf 5110 if test "x$host_alias" = x; then
5111 ac_cv_host=$ac_cv_build
5112else
5113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 5114 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 5115fi
d9898ee8 5116
5117fi
b0322a85 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 5119$as_echo "$ac_cv_host" >&6; }
dd184caf 5120case $ac_cv_host in
5121*-*-*) ;;
b0322a85 5122*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 5123esac
d9898ee8 5124host=$ac_cv_host
dd184caf 5125ac_save_IFS=$IFS; IFS='-'
5126set x $ac_cv_host
5127shift
5128host_cpu=$1
5129host_vendor=$2
5130shift; shift
5131# Remember, the first character of IFS is used to create $*,
5132# except with old shells:
5133host_os=$*
5134IFS=$ac_save_IFS
5135case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5136
5137
b0322a85
CE
5138# Backslashify metacharacters that are still active within
5139# double-quoted strings.
5140sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5141
5142# Same as above, but do not quote variable references.
5143double_quote_subst='s/\(["`\\]\)/\\\1/g'
5144
5145# Sed substitution to delay expansion of an escaped shell variable in a
5146# double_quote_subst'ed string.
5147delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149# Sed substitution to delay expansion of an escaped single quote.
5150delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5151
5152# Sed substitution to avoid accidental globbing in evaled expressions
5153no_glob_subst='s/\*/\\\*/g'
5154
5155ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160$as_echo_n "checking how to print strings... " >&6; }
5161# Test print first, because it will be a builtin if present.
5162if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5164 ECHO='print -r --'
5165elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5166 ECHO='printf %s\n'
5167else
5168 # Use this function as a fallback that always works.
5169 func_fallback_echo ()
5170 {
5171 eval 'cat <<_LTECHO_EOF
5172$1
5173_LTECHO_EOF'
5174 }
5175 ECHO='func_fallback_echo'
5176fi
5177
5178# func_echo_all arg...
5179# Invoke $ECHO with all args, space-separated.
5180func_echo_all ()
5181{
5182 $ECHO ""
5183}
5184
5185case "$ECHO" in
5186 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187$as_echo "printf" >&6; } ;;
5188 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189$as_echo "print -r" >&6; } ;;
5190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191$as_echo "cat" >&6; } ;;
5192esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 5208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 5209if ${ac_cv_path_SED+:} false; then :
8d138742
CE
5210 $as_echo_n "(cached) " >&6
5211else
5212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5213 for ac_i in 1 2 3 4 5 6 7; do
5214 ac_script="$ac_script$as_nl$ac_script"
5215 done
5216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 5217 { ac_script=; unset ac_script;}
8d138742
CE
5218 if test -z "$SED"; then
5219 ac_path_SED_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
b0322a85 5226 for ac_prog in sed gsed; do
d9898ee8 5227 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 5228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5229 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
5230# Check for GNU ac_path_SED and select it if it is found.
5231 # Check for GNU $ac_path_SED
5232case `"$ac_path_SED" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo '' >> "conftest.nl"
5244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
5247 if test $ac_count -gt ${ac_path_SED_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_SED="$ac_path_SED"
5250 ac_path_SED_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_SED_found && break 3
d9898ee8 5259 done
5260 done
b0322a85 5261 done
d9898ee8 5262IFS=$as_save_IFS
8d138742 5263 if test -z "$ac_cv_path_SED"; then
b0322a85 5264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 5265 fi
8d138742
CE
5266else
5267 ac_cv_path_SED=$SED
5268fi
d9898ee8 5269
5270fi
b0322a85 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
5272$as_echo "$ac_cv_path_SED" >&6; }
5273 SED="$ac_cv_path_SED"
5274 rm -f conftest.sed
d9898ee8 5275
8d138742
CE
5276test -z "$SED" && SED=sed
5277Xsed="$SED -e 1s/^X//"
d9898ee8 5278
d9898ee8 5279
5280
8d138742
CE
5281
5282
5283
5284
5285
5286
5287
5288
b0322a85 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 5290$as_echo_n "checking for fgrep... " >&6; }
b0322a85 5291if ${ac_cv_path_FGREP+:} false; then :
8d138742
CE
5292 $as_echo_n "(cached) " >&6
5293else
5294 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5295 then ac_cv_path_FGREP="$GREP -F"
5296 else
5297 if test -z "$FGREP"; then
5298 ac_path_FGREP_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
b0322a85 5305 for ac_prog in fgrep; do
8d138742
CE
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 5308 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
5309# Check for GNU ac_path_FGREP and select it if it is found.
5310 # Check for GNU $ac_path_FGREP
5311case `"$ac_path_FGREP" --version 2>&1` in
5312*GNU*)
5313 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5314*)
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo 'FGREP' >> "conftest.nl"
5323 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
5326 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_FGREP="$ac_path_FGREP"
5329 ac_path_FGREP_max=$ac_count
5330 fi
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335esac
5336
5337 $ac_path_FGREP_found && break 3
5338 done
5339 done
b0322a85 5340 done
8d138742
CE
5341IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_FGREP"; then
b0322a85 5343 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
5344 fi
5345else
5346 ac_cv_path_FGREP=$FGREP
5347fi
5348
5349 fi
5350fi
b0322a85 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
5352$as_echo "$ac_cv_path_FGREP" >&6; }
5353 FGREP="$ac_cv_path_FGREP"
5354
5355
5356test -z "$GREP" && GREP=grep
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376# Check whether --with-gnu-ld was given.
b0322a85 5377if test "${with_gnu_ld+set}" = set; then :
8d138742 5378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 5379else
5380 with_gnu_ld=no
dd184caf 5381fi
5382
d9898ee8 5383ac_prog=ld
5384if test "$GCC" = yes; then
5385 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 5387$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 5388 case $host in
5389 *-*-mingw*)
5390 # gcc leaves a trailing carriage return which upsets mingw
5391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5392 *)
5393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5394 esac
5395 case $ac_prog in
5396 # Accept absolute paths.
5397 [\\/]* | ?:[\\/]*)
5398 re_direlt='/[^/][^/]*/\.\./'
5399 # Canonicalize the pathname of ld
8d138742
CE
5400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 5403 done
5404 test -z "$LD" && LD="$ac_prog"
5405 ;;
5406 "")
5407 # If it fails, then pretend we aren't using GCC.
5408 ac_prog=ld
5409 ;;
5410 *)
5411 # If it is relative, then search for the first ld in PATH.
5412 with_gnu_ld=unknown
5413 ;;
5414 esac
5415elif test "$with_gnu_ld" = yes; then
b0322a85 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 5417$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 5418else
b0322a85 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 5420$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 5421fi
b0322a85 5422if ${lt_cv_path_LD+:} false; then :
8d138742 5423 $as_echo_n "(cached) " >&6
d9898ee8 5424else
5425 if test -z "$LD"; then
5426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH; do
5428 IFS="$lt_save_ifs"
5429 test -z "$ac_dir" && ac_dir=.
5430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5431 lt_cv_path_LD="$ac_dir/$ac_prog"
5432 # Check to see if the program is GNU ld. I'd rather use --version,
5433 # but apparently some variants of GNU ld only accept -v.
5434 # Break only if it was the GNU/non-GNU ld that we prefer.
5435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5436 *GNU* | *'with BFD'*)
5437 test "$with_gnu_ld" != no && break
5438 ;;
5439 *)
5440 test "$with_gnu_ld" != yes && break
5441 ;;
5442 esac
5443 fi
5444 done
5445 IFS="$lt_save_ifs"
5446else
5447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5448fi
5449fi
5450
5451LD="$lt_cv_path_LD"
5452if test -n "$LD"; then
b0322a85 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 5454$as_echo "$LD" >&6; }
d9898ee8 5455else
b0322a85 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5457$as_echo "no" >&6; }
d9898ee8 5458fi
b0322a85
CE
5459test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 5461$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 5462if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 5463 $as_echo_n "(cached) " >&6
d9898ee8 5464else
5465 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5466case `$LD -v 2>&1 </dev/null` in
5467*GNU* | *'with BFD'*)
5468 lt_cv_prog_gnu_ld=yes
5469 ;;
5470*)
5471 lt_cv_prog_gnu_ld=no
5472 ;;
5473esac
5474fi
b0322a85 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 5476$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5477with_gnu_ld=$lt_cv_prog_gnu_ld
5478
5479
d9898ee8 5480
8d138742
CE
5481
5482
5483
5484
5485
5486
b0322a85 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 5488$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 5489if ${lt_cv_path_NM+:} false; then :
8d138742 5490 $as_echo_n "(cached) " >&6
d9898ee8 5491else
5492 if test -n "$NM"; then
5493 # Let the user override the test.
5494 lt_cv_path_NM="$NM"
5495else
5496 lt_nm_to_check="${ac_tool_prefix}nm"
5497 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5498 lt_nm_to_check="$lt_nm_to_check nm"
5499 fi
5500 for lt_tmp_nm in $lt_nm_to_check; do
5501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5503 IFS="$lt_save_ifs"
5504 test -z "$ac_dir" && ac_dir=.
5505 tmp_nm="$ac_dir/$lt_tmp_nm"
5506 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5507 # Check to see if the nm accepts a BSD-compat flag.
5508 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5509 # nm: unknown option "B" ignored
5510 # Tru64's nm complains that /dev/null is an invalid object file
5511 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5512 */dev/null* | *'Invalid file or object type'*)
5513 lt_cv_path_NM="$tmp_nm -B"
5514 break
5515 ;;
5516 *)
5517 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5518 */dev/null*)
5519 lt_cv_path_NM="$tmp_nm -p"
5520 break
5521 ;;
5522 *)
5523 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5524 continue # so that we can try to find one that supports BSD flags
5525 ;;
5526 esac
5527 ;;
5528 esac
5529 fi
5530 done
5531 IFS="$lt_save_ifs"
5532 done
8d138742 5533 : ${lt_cv_path_NM=no}
d9898ee8 5534fi
5535fi
b0322a85 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
5537$as_echo "$lt_cv_path_NM" >&6; }
5538if test "$lt_cv_path_NM" != "no"; then
5539 NM="$lt_cv_path_NM"
5540else
5541 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
5542 if test -n "$DUMPBIN"; then :
5543 # Let the user override the test.
5544 else
5545 if test -n "$ac_tool_prefix"; then
5546 for ac_prog in dumpbin "link -dump"
8d138742
CE
5547 do
5548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5549set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5551$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5552if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
5553 $as_echo_n "(cached) " >&6
5554else
5555 if test -n "$DUMPBIN"; then
5556 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
b0322a85
CE
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5565 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5567 break 2
5568 fi
5569done
b0322a85 5570 done
8d138742 5571IFS=$as_save_IFS
d9898ee8 5572
8d138742
CE
5573fi
5574fi
5575DUMPBIN=$ac_cv_prog_DUMPBIN
5576if test -n "$DUMPBIN"; then
b0322a85 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 5578$as_echo "$DUMPBIN" >&6; }
d9898ee8 5579else
b0322a85 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5581$as_echo "no" >&6; }
5582fi
d9898ee8 5583
d9898ee8 5584
8d138742
CE
5585 test -n "$DUMPBIN" && break
5586 done
5587fi
5588if test -z "$DUMPBIN"; then
5589 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 5590 for ac_prog in dumpbin "link -dump"
8d138742
CE
5591do
5592 # Extract the first word of "$ac_prog", so it can be a program name with args.
5593set dummy $ac_prog; ac_word=$2
b0322a85 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5595$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5596if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
5597 $as_echo_n "(cached) " >&6
5598else
5599 if test -n "$ac_ct_DUMPBIN"; then
5600 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
b0322a85
CE
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5609 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5611 break 2
5612 fi
5613done
b0322a85 5614 done
8d138742 5615IFS=$as_save_IFS
d9898ee8 5616
8d138742
CE
5617fi
5618fi
5619ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5620if test -n "$ac_ct_DUMPBIN"; then
b0322a85 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
5622$as_echo "$ac_ct_DUMPBIN" >&6; }
5623else
b0322a85 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5625$as_echo "no" >&6; }
5626fi
d9898ee8 5627
d9898ee8 5628
8d138742
CE
5629 test -n "$ac_ct_DUMPBIN" && break
5630done
5631
5632 if test "x$ac_ct_DUMPBIN" = x; then
5633 DUMPBIN=":"
ac40fd9e 5634 else
8d138742
CE
5635 case $cross_compiling:$ac_tool_warned in
5636yes:)
b0322a85 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639ac_tool_warned=yes ;;
5640esac
5641 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 5642 fi
8d138742 5643fi
d9898ee8 5644
b0322a85
CE
5645 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5646 *COFF*)
5647 DUMPBIN="$DUMPBIN -symbols"
5648 ;;
5649 *)
5650 DUMPBIN=:
5651 ;;
5652 esac
5653 fi
d9898ee8 5654
8d138742
CE
5655 if test "$DUMPBIN" != ":"; then
5656 NM="$DUMPBIN"
d9898ee8 5657 fi
8d138742
CE
5658fi
5659test -z "$NM" && NM=nm
d9898ee8 5660
d9898ee8 5661
d9898ee8 5662
d9898ee8 5663
d9898ee8 5664
d9898ee8 5665
b0322a85 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 5667$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 5668if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
5669 $as_echo_n "(cached) " >&6
5670else
5671 lt_cv_nm_interface="BSD nm"
5672 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 5673 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
5674 (eval "$ac_compile" 2>conftest.err)
5675 cat conftest.err >&5
b0322a85 5676 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
5677 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5678 cat conftest.err >&5
b0322a85 5679 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
5680 cat conftest.out >&5
5681 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5682 lt_cv_nm_interface="MS dumpbin"
d9898ee8 5683 fi
8d138742
CE
5684 rm -f conftest*
5685fi
b0322a85 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 5687$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 5688
8d138742 5689# find the maximum length of command line arguments
b0322a85 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 5691$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 5692if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
5693 $as_echo_n "(cached) " >&6
5694else
5695 i=0
5696 teststring="ABCD"
d9898ee8 5697
8d138742
CE
5698 case $build_os in
5699 msdosdjgpp*)
5700 # On DJGPP, this test can blow up pretty badly due to problems in libc
5701 # (any single argument exceeding 2000 bytes causes a buffer overrun
5702 # during glob expansion). Even if it were fixed, the result of this
5703 # check would be larger than it should be.
5704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5705 ;;
d9898ee8 5706
8d138742
CE
5707 gnu*)
5708 # Under GNU Hurd, this test is not required because there is
5709 # no limit to the length of command line arguments.
5710 # Libtool will interpret -1 as no limit whatsoever
5711 lt_cv_sys_max_cmd_len=-1;
5712 ;;
d9898ee8 5713
8d138742
CE
5714 cygwin* | mingw* | cegcc*)
5715 # On Win9x/ME, this test blows up -- it succeeds, but takes
5716 # about 5 minutes as the teststring grows exponentially.
5717 # Worse, since 9x/ME are not pre-emptively multitasking,
5718 # you end up with a "frozen" computer, even though with patience
5719 # the test eventually succeeds (with a max line length of 256k).
5720 # Instead, let's just punt: use the minimum linelength reported by
5721 # all of the supported platforms: 8192 (on NT/2K/XP).
5722 lt_cv_sys_max_cmd_len=8192;
5723 ;;
ac40fd9e 5724
b0322a85
CE
5725 mint*)
5726 # On MiNT this can take a long time and run out of memory.
5727 lt_cv_sys_max_cmd_len=8192;
5728 ;;
5729
8d138742
CE
5730 amigaos*)
5731 # On AmigaOS with pdksh, this test takes hours, literally.
5732 # So we just punt and use a minimum line length of 8192.
5733 lt_cv_sys_max_cmd_len=8192;
5734 ;;
d9898ee8 5735
8d138742
CE
5736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5737 # This has been around since 386BSD, at least. Likely further.
5738 if test -x /sbin/sysctl; then
5739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5740 elif test -x /usr/sbin/sysctl; then
5741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5742 else
5743 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5744 fi
5745 # And add a safety zone
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 5748 ;;
8d138742
CE
5749
5750 interix*)
5751 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5752 lt_cv_sys_max_cmd_len=196608
d9898ee8 5753 ;;
8d138742 5754
b0322a85
CE
5755 os2*)
5756 # The test takes a long time on OS/2.
5757 lt_cv_sys_max_cmd_len=8192
5758 ;;
5759
8d138742
CE
5760 osf*)
5761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5763 # nice to cause kernel panics so lets avoid the loop below.
5764 # First set a reasonable default.
5765 lt_cv_sys_max_cmd_len=16384
5766 #
5767 if test -x /sbin/sysconfig; then
5768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5769 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5770 esac
5771 fi
d9898ee8 5772 ;;
8d138742
CE
5773 sco3.2v5*)
5774 lt_cv_sys_max_cmd_len=102400
d9898ee8 5775 ;;
8d138742
CE
5776 sysv5* | sco5v6* | sysv4.2uw2*)
5777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5778 if test -n "$kargmax"; then
5779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5780 else
5781 lt_cv_sys_max_cmd_len=32768
5782 fi
d9898ee8 5783 ;;
8d138742
CE
5784 *)
5785 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5786 if test -n "$lt_cv_sys_max_cmd_len"; then
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789 else
5790 # Make teststring a little bigger before we do anything with it.
5791 # a 1K string should be a reasonable start.
5792 for i in 1 2 3 4 5 6 7 8 ; do
5793 teststring=$teststring$teststring
5794 done
5795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5796 # If test is not a shell built-in, we'll probably end up computing a
5797 # maximum length that is only half of the actual maximum length, but
5798 # we can't tell.
b0322a85
CE
5799 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5800 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
5801 test $i != 17 # 1/2 MB should be enough
5802 do
5803 i=`expr $i + 1`
5804 teststring=$teststring$teststring
5805 done
5806 # Only check the string length outside the loop.
5807 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5808 teststring=
5809 # Add a significant safety factor because C++ compilers can tack on
5810 # massive amounts of additional arguments before passing them to the
5811 # linker. It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5813 fi
d9898ee8 5814 ;;
5815 esac
d9898ee8 5816
8d138742 5817fi
d9898ee8 5818
8d138742 5819if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
5821$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5822else
b0322a85 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 5824$as_echo "none" >&6; }
d9898ee8 5825fi
8d138742 5826max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 5827
5828
5829
5830
d9898ee8 5831
d9898ee8 5832
8d138742
CE
5833: ${CP="cp -f"}
5834: ${MV="mv -f"}
5835: ${RM="rm -f"}
d9898ee8 5836
b0322a85 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
5838$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5839# Try some XSI features
5840xsi_shell=no
5841( _lt_dummy="a/b/c"
b0322a85
CE
5842 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5843 = c,a/b,b/c, \
8d138742
CE
5844 && eval 'test $(( 1 + 1 )) -eq 2 \
5845 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5846 && xsi_shell=yes
b0322a85 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742
CE
5848$as_echo "$xsi_shell" >&6; }
5849
5850
b0322a85 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
5852$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5853lt_shell_append=no
5854( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5855 >/dev/null 2>&1 \
5856 && lt_shell_append=yes
b0322a85 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742
CE
5858$as_echo "$lt_shell_append" >&6; }
5859
5860
5861if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5862 lt_unset=unset
5863else
5864 lt_unset=false
dd184caf 5865fi
d9898ee8 5866
d9898ee8 5867
8d138742
CE
5868
5869
5870
5871# test EBCDIC or ASCII
5872case `echo X|tr X '\101'` in
5873 A) # ASCII based system
5874 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5875 lt_SP2NL='tr \040 \012'
5876 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 5877 ;;
8d138742
CE
5878 *) # EBCDIC based system
5879 lt_SP2NL='tr \100 \n'
5880 lt_NL2SP='tr \r\n \100\100'
d9898ee8 5881 ;;
8d138742 5882esac
d9898ee8 5883
d9898ee8 5884
d9898ee8 5885
d9898ee8 5886
d9898ee8 5887
d9898ee8 5888
dd184caf 5889
d9898ee8 5890
5891
b0322a85
CE
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5893$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5894if ${lt_cv_to_host_file_cmd+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896else
5897 case $host in
5898 *-*-mingw* )
5899 case $build in
5900 *-*-mingw* ) # actually msys
5901 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5902 ;;
5903 *-*-cygwin* )
5904 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5905 ;;
5906 * ) # otherwise, assume *nix
5907 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5908 ;;
5909 esac
5910 ;;
5911 *-*-cygwin* )
5912 case $build in
5913 *-*-mingw* ) # actually msys
5914 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5915 ;;
5916 *-*-cygwin* )
5917 lt_cv_to_host_file_cmd=func_convert_file_noop
5918 ;;
5919 * ) # otherwise, assume *nix
5920 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5921 ;;
5922 esac
5923 ;;
5924 * ) # unhandled hosts (and "normal" native builds)
5925 lt_cv_to_host_file_cmd=func_convert_file_noop
5926 ;;
5927esac
5928
5929fi
5930
5931to_host_file_cmd=$lt_cv_to_host_file_cmd
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5933$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5934
5935
5936
5937
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5940$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5941if ${lt_cv_to_tool_file_cmd+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943else
5944 #assume ordinary cross tools, or native build.
5945lt_cv_to_tool_file_cmd=func_convert_file_noop
5946case $host in
5947 *-*-mingw* )
5948 case $build in
5949 *-*-mingw* ) # actually msys
5950 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5951 ;;
5952 esac
5953 ;;
5954esac
5955
5956fi
5957
5958to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5960$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5961
5962
5963
5964
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 5967$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 5968if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 5969 $as_echo_n "(cached) " >&6
d9898ee8 5970else
8d138742 5971 lt_cv_ld_reload_flag='-r'
d9898ee8 5972fi
b0322a85 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
5974$as_echo "$lt_cv_ld_reload_flag" >&6; }
5975reload_flag=$lt_cv_ld_reload_flag
5976case $reload_flag in
5977"" | " "*) ;;
5978*) reload_flag=" $reload_flag" ;;
5979esac
5980reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981case $host_os in
b0322a85
CE
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 if test "$GCC" != yes; then
5984 reload_cmds=false
5985 fi
5986 ;;
8d138742
CE
5987 darwin*)
5988 if test "$GCC" = yes; then
5989 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5990 else
5991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992 fi
5993 ;;
5994esac
dd184caf 5995
d9898ee8 5996
d9898ee8 5997
dd184caf 5998
d9898ee8 5999
d9898ee8 6000
d9898ee8 6001
d9898ee8 6002
d9898ee8 6003
8d138742
CE
6004if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6006set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6008$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6009if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 6010 $as_echo_n "(cached) " >&6
d9898ee8 6011else
8d138742
CE
6012 if test -n "$OBJDUMP"; then
6013 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
b0322a85
CE
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6022 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6024 break 2
6025 fi
6026done
b0322a85 6027 done
dd184caf 6028IFS=$as_save_IFS
d9898ee8 6029
6030fi
6031fi
8d138742
CE
6032OBJDUMP=$ac_cv_prog_OBJDUMP
6033if test -n "$OBJDUMP"; then
b0322a85 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742 6035$as_echo "$OBJDUMP" >&6; }
d9898ee8 6036else
b0322a85 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6038$as_echo "no" >&6; }
d9898ee8 6039fi
6040
dd184caf 6041
d9898ee8 6042fi
8d138742
CE
6043if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046set dummy objdump; ac_word=$2
b0322a85 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6048$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6049if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 6050 $as_echo_n "(cached) " >&6
d9898ee8 6051else
8d138742
CE
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
b0322a85
CE
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6064 break 2
6065 fi
6066done
b0322a85 6067 done
dd184caf 6068IFS=$as_save_IFS
d9898ee8 6069
6070fi
6071fi
8d138742
CE
6072ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073if test -n "$ac_ct_OBJDUMP"; then
b0322a85 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 6075$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 6076else
b0322a85 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6078$as_echo "no" >&6; }
d9898ee8 6079fi
6080
8d138742
CE
6081 if test "x$ac_ct_OBJDUMP" = x; then
6082 OBJDUMP="false"
dd184caf 6083 else
6084 case $cross_compiling:$ac_tool_warned in
6085yes:)
b0322a85 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6088ac_tool_warned=yes ;;
6089esac
8d138742 6090 OBJDUMP=$ac_ct_OBJDUMP
dd184caf 6091 fi
8d138742
CE
6092else
6093 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 6094fi
6095
8d138742 6096test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 6097
d9898ee8 6098
d9898ee8 6099
d9898ee8 6100
dd184caf 6101
d9898ee8 6102
d9898ee8 6103
d9898ee8 6104
dd184caf 6105
b0322a85 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 6107$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 6108if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 6109 $as_echo_n "(cached) " >&6
d9898ee8 6110else
8d138742
CE
6111 lt_cv_file_magic_cmd='$MAGIC_CMD'
6112lt_cv_file_magic_test_file=
6113lt_cv_deplibs_check_method='unknown'
6114# Need to set the preceding variable on all platforms that support
6115# interlibrary dependencies.
6116# 'none' -- dependencies not supported.
6117# `unknown' -- same as none, but documents that we really don't know.
6118# 'pass_all' -- all dependencies passed with no checks.
6119# 'test_compile' -- check by making test program.
6120# 'file_magic [[regex]]' -- check by looking for files in library path
6121# which responds to the $file_magic_cmd with a given extended regex.
6122# If you have `file' or equivalent on your system and you're not sure
6123# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 6124
8d138742
CE
6125case $host_os in
6126aix[4-9]*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
dd184caf 6129
8d138742
CE
6130beos*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
dd184caf 6133
8d138742
CE
6134bsdi[45]*)
6135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6136 lt_cv_file_magic_cmd='/usr/bin/file -L'
6137 lt_cv_file_magic_test_file=/shlib/libc.so
6138 ;;
d9898ee8 6139
8d138742
CE
6140cygwin*)
6141 # func_win32_libid is a shell function defined in ltmain.sh
6142 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6143 lt_cv_file_magic_cmd='func_win32_libid'
6144 ;;
dd184caf 6145
8d138742
CE
6146mingw* | pw32*)
6147 # Base MSYS/MinGW do not provide the 'file' command needed by
6148 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6149 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
6150 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6151 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153 lt_cv_file_magic_cmd='func_win32_libid'
6154 else
b0322a85
CE
6155 # Keep this pattern in sync with the one in func_win32_libid.
6156 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
6157 lt_cv_file_magic_cmd='$OBJDUMP -f'
6158 fi
6159 ;;
dd184caf 6160
b0322a85 6161cegcc*)
8d138742
CE
6162 # use the weaker test based on 'objdump'. See mingw*.
6163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6165 ;;
d9898ee8 6166
8d138742
CE
6167darwin* | rhapsody*)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
dd184caf 6170
8d138742
CE
6171freebsd* | dragonfly*)
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173 case $host_cpu in
6174 i*86 )
6175 # Not sure whether the presence of OpenBSD here was a mistake.
6176 # Let's accept both of them until this is cleared up.
6177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6178 lt_cv_file_magic_cmd=/usr/bin/file
6179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6180 ;;
6181 esac
dd184caf 6182 else
8d138742 6183 lt_cv_deplibs_check_method=pass_all
dd184caf 6184 fi
8d138742 6185 ;;
d9898ee8 6186
8d138742
CE
6187gnu*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
d9898ee8 6190
b0322a85
CE
6191haiku*)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194
8d138742
CE
6195hpux10.20* | hpux11*)
6196 lt_cv_file_magic_cmd=/usr/bin/file
6197 case $host_cpu in
6198 ia64*)
6199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6200 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6201 ;;
6202 hppa*64*)
b0322a85 6203 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]'
8d138742
CE
6204 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6205 ;;
6206 *)
b0322a85 6207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
6208 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6209 ;;
6210 esac
6211 ;;
d9898ee8 6212
8d138742
CE
6213interix[3-9]*)
6214 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6216 ;;
d9898ee8 6217
8d138742
CE
6218irix5* | irix6* | nonstopux*)
6219 case $LD in
6220 *-32|*"-32 ") libmagic=32-bit;;
6221 *-n32|*"-n32 ") libmagic=N32;;
6222 *-64|*"-64 ") libmagic=64-bit;;
6223 *) libmagic=never-match;;
6224 esac
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
d9898ee8 6227
b0322a85
CE
6228# This must be glibc/ELF.
6229linux* | k*bsd*-gnu | kopensolaris*-gnu)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233netbsd*)
6234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6236 else
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6238 fi
6239 ;;
6240
6241newos6*)
6242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6243 lt_cv_file_magic_cmd=/usr/bin/file
6244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6245 ;;
6246
6247*nto* | *qnx*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251openbsd*)
6252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6254 else
6255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6256 fi
6257 ;;
6258
6259osf3* | osf4* | osf5*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263rdos*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267solaris*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274
6275sysv4 | sysv4.3*)
6276 case $host_vendor in
6277 motorola)
6278 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]'
6279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6280 ;;
6281 ncr)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284 sequent)
6285 lt_cv_file_magic_cmd='/bin/file'
6286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6287 ;;
6288 sni)
6289 lt_cv_file_magic_cmd='/bin/file'
6290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6291 lt_cv_file_magic_test_file=/lib/libc.so
6292 ;;
6293 siemens)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296 pc)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299 esac
6300 ;;
6301
6302tpf*)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305esac
6306
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6309$as_echo "$lt_cv_deplibs_check_method" >&6; }
6310
6311file_magic_glob=
6312want_nocaseglob=no
6313if test "$build" = "$host"; then
6314 case $host_os in
6315 mingw* | pw32*)
6316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6317 want_nocaseglob=yes
6318 else
6319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6320 fi
6321 ;;
6322 esac
6323fi
6324
6325file_magic_cmd=$lt_cv_file_magic_cmd
6326deplibs_check_method=$lt_cv_deplibs_check_method
6327test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
6355if ${ac_cv_prog_DLLTOOL+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357else
6358 if test -n "$DLLTOOL"; then
6359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372done
6373 done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378DLLTOOL=$ac_cv_prog_DLLTOOL
6379if test -n "$DLLTOOL"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6381$as_echo "$DLLTOOL" >&6; }
6382else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_DLLTOOL"; then
6390 ac_ct_DLLTOOL=$DLLTOOL
6391 # Extract the first word of "dlltool", so it can be a program name with args.
6392set dummy dlltool; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
6395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397else
6398 if test -n "$ac_ct_DLLTOOL"; then
6399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413 done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6419if test -n "$ac_ct_DLLTOOL"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6421$as_echo "$ac_ct_DLLTOOL" >&6; }
6422else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
d9898ee8 6426
b0322a85
CE
6427 if test "x$ac_ct_DLLTOOL" = x; then
6428 DLLTOOL="false"
8d138742 6429 else
b0322a85
CE
6430 case $cross_compiling:$ac_tool_warned in
6431yes:)
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436 DLLTOOL=$ac_ct_DLLTOOL
8d138742 6437 fi
b0322a85
CE
6438else
6439 DLLTOOL="$ac_cv_prog_DLLTOOL"
6440fi
d9898ee8 6441
b0322a85 6442test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 6443
6444
6445
d9898ee8 6446
dd184caf 6447
d9898ee8 6448
d9898ee8 6449
b0322a85
CE
6450
6451
6452
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6454$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6455if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457else
6458 lt_cv_sharedlib_from_linklib_cmd='unknown'
6459
6460case $host_os in
6461cygwin* | mingw* | pw32* | cegcc*)
6462 # two different shell functions defined in ltmain.sh
6463 # decide which to use based on capabilities of $DLLTOOL
6464 case `$DLLTOOL --help 2>&1` in
6465 *--identify-strict*)
6466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 6467 ;;
b0322a85
CE
6468 *)
6469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
6470 ;;
6471 esac
6472 ;;
b0322a85
CE
6473*)
6474 # fallback: assume linklib IS sharedlib
6475 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8d138742
CE
6476 ;;
6477esac
d9898ee8 6478
d9898ee8 6479fi
b0322a85
CE
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6481$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6482sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6483test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 6484
dd184caf 6485
d9898ee8 6486
d9898ee8 6487
d9898ee8 6488
d9898ee8 6489
6490
d9898ee8 6491if test -n "$ac_tool_prefix"; then
b0322a85
CE
6492 for ac_prog in ar
6493 do
6494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6497$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6498if ${ac_cv_prog_AR+:} false; then :
8d138742 6499 $as_echo_n "(cached) " >&6
d9898ee8 6500else
8d138742
CE
6501 if test -n "$AR"; then
6502 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
b0322a85
CE
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6513 break 2
6514 fi
6515done
b0322a85 6516 done
dd184caf 6517IFS=$as_save_IFS
d9898ee8 6518
6519fi
6520fi
8d138742
CE
6521AR=$ac_cv_prog_AR
6522if test -n "$AR"; then
b0322a85 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742 6524$as_echo "$AR" >&6; }
d9898ee8 6525else
b0322a85 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6527$as_echo "no" >&6; }
d9898ee8 6528fi
6529
dd184caf 6530
b0322a85
CE
6531 test -n "$AR" && break
6532 done
d9898ee8 6533fi
b0322a85 6534if test -z "$AR"; then
8d138742 6535 ac_ct_AR=$AR
b0322a85
CE
6536 for ac_prog in ar
6537do
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539set dummy $ac_prog; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6541$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6542if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 6543 $as_echo_n "(cached) " >&6
d9898ee8 6544else
8d138742
CE
6545 if test -n "$ac_ct_AR"; then
6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
b0322a85
CE
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_AR="$ac_prog"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6557 break 2
6558 fi
6559done
b0322a85 6560 done
dd184caf 6561IFS=$as_save_IFS
d9898ee8 6562
6563fi
6564fi
8d138742
CE
6565ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566if test -n "$ac_ct_AR"; then
b0322a85 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742 6568$as_echo "$ac_ct_AR" >&6; }
d9898ee8 6569else
b0322a85 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6571$as_echo "no" >&6; }
d9898ee8 6572fi
6573
b0322a85
CE
6574
6575 test -n "$ac_ct_AR" && break
6576done
6577
8d138742
CE
6578 if test "x$ac_ct_AR" = x; then
6579 AR="false"
dd184caf 6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582yes:)
b0322a85 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6585ac_tool_warned=yes ;;
6586esac
8d138742 6587 AR=$ac_ct_AR
dd184caf 6588 fi
d9898ee8 6589fi
6590
b0322a85
CE
6591: ${AR=ar}
6592: ${AR_FLAGS=cru}
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6605$as_echo_n "checking for archiver @FILE support... " >&6; }
6606if ${lt_cv_ar_at_file+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608else
6609 lt_cv_ar_at_file=no
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612
6613int
6614main ()
6615{
d9898ee8 6616
b0322a85
CE
6617 ;
6618 return 0;
6619}
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622 echo conftest.$ac_objext > conftest.lst
6623 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6625 (eval $lt_ar_try) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }
6629 if test "$ac_status" -eq 0; then
6630 # Ensure the archiver fails upon bogus file names.
6631 rm -f conftest.$ac_objext libconftest.a
6632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6633 (eval $lt_ar_try) 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }
6637 if test "$ac_status" -ne 0; then
6638 lt_cv_ar_at_file=@
6639 fi
6640 fi
6641 rm -f conftest.* libconftest.a
d9898ee8 6642
b0322a85
CE
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6645
b0322a85
CE
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6648$as_echo "$lt_cv_ar_at_file" >&6; }
8d138742 6649
b0322a85
CE
6650if test "x$lt_cv_ar_at_file" = xno; then
6651 archiver_list_spec=
6652else
6653 archiver_list_spec=$lt_cv_ar_at_file
6654fi
8d138742
CE
6655
6656
6657
6658
6659
6660
6661
6662if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6664set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6666$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6667if ${ac_cv_prog_STRIP+:} false; then :
8d138742 6668 $as_echo_n "(cached) " >&6
d9898ee8 6669else
8d138742
CE
6670 if test -n "$STRIP"; then
6671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
b0322a85
CE
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6682 break 2
6683 fi
6684done
b0322a85 6685 done
8d138742 6686IFS=$as_save_IFS
d9898ee8 6687
8d138742
CE
6688fi
6689fi
6690STRIP=$ac_cv_prog_STRIP
6691if test -n "$STRIP"; then
b0322a85 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
6693$as_echo "$STRIP" >&6; }
6694else
b0322a85 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6696$as_echo "no" >&6; }
d9898ee8 6697fi
dd184caf 6698
d9898ee8 6699
6700fi
8d138742
CE
6701if test -z "$ac_cv_prog_STRIP"; then
6702 ac_ct_STRIP=$STRIP
6703 # Extract the first word of "strip", so it can be a program name with args.
6704set dummy strip; ac_word=$2
b0322a85 6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6706$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6707if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 6708 $as_echo_n "(cached) " >&6
d9898ee8 6709else
8d138742
CE
6710 if test -n "$ac_ct_STRIP"; then
6711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
b0322a85
CE
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6720 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6722 break 2
6723 fi
6724done
b0322a85 6725 done
8d138742 6726IFS=$as_save_IFS
d9898ee8 6727
8d138742
CE
6728fi
6729fi
6730ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6731if test -n "$ac_ct_STRIP"; then
b0322a85 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
6733$as_echo "$ac_ct_STRIP" >&6; }
6734else
b0322a85 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6736$as_echo "no" >&6; }
6737fi
6738
6739 if test "x$ac_ct_STRIP" = x; then
6740 STRIP=":"
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743yes:)
b0322a85 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746ac_tool_warned=yes ;;
dd184caf 6747esac
8d138742
CE
6748 STRIP=$ac_ct_STRIP
6749 fi
d9898ee8 6750else
8d138742
CE
6751 STRIP="$ac_cv_prog_STRIP"
6752fi
6753
6754test -z "$STRIP" && STRIP=:
6755
6756
6757
6758
6759
6760
6761if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6765$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6766if ${ac_cv_prog_RANLIB+:} false; then :
8d138742
CE
6767 $as_echo_n "(cached) " >&6
6768else
6769 if test -n "$RANLIB"; then
6770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
b0322a85
CE
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6781 break 2
6782 fi
6783done
b0322a85 6784 done
8d138742 6785IFS=$as_save_IFS
d9898ee8 6786
8d138742
CE
6787fi
6788fi
6789RANLIB=$ac_cv_prog_RANLIB
6790if test -n "$RANLIB"; then
b0322a85 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
6792$as_echo "$RANLIB" >&6; }
6793else
b0322a85 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6795$as_echo "no" >&6; }
d9898ee8 6796fi
dd184caf 6797
d9898ee8 6798
6799fi
8d138742
CE
6800if test -z "$ac_cv_prog_RANLIB"; then
6801 ac_ct_RANLIB=$RANLIB
6802 # Extract the first word of "ranlib", so it can be a program name with args.
6803set dummy ranlib; ac_word=$2
b0322a85 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6805$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6806if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
6807 $as_echo_n "(cached) " >&6
6808else
6809 if test -n "$ac_ct_RANLIB"; then
6810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
b0322a85
CE
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6819 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6821 break 2
d9898ee8 6822 fi
8d138742 6823done
b0322a85 6824 done
8d138742
CE
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6830if test -n "$ac_ct_RANLIB"; then
b0322a85 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742 6832$as_echo "$ac_ct_RANLIB" >&6; }
d9898ee8 6833else
b0322a85 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6835$as_echo "no" >&6; }
6836fi
6837
6838 if test "x$ac_ct_RANLIB" = x; then
6839 RANLIB=":"
d9898ee8 6840 else
8d138742
CE
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
b0322a85 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845ac_tool_warned=yes ;;
6846esac
6847 RANLIB=$ac_ct_RANLIB
d9898ee8 6848 fi
8d138742
CE
6849else
6850 RANLIB="$ac_cv_prog_RANLIB"
d9898ee8 6851fi
6852
8d138742 6853test -z "$RANLIB" && RANLIB=:
d9898ee8 6854
6855
6856
d9898ee8 6857
d9898ee8 6858
d9898ee8 6859
8d138742
CE
6860# Determine commands to create old-style static archives.
6861old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6862old_postinstall_cmds='chmod 644 $oldlib'
6863old_postuninstall_cmds=
d9898ee8 6864
8d138742
CE
6865if test -n "$RANLIB"; then
6866 case $host_os in
6867 openbsd*)
b0322a85 6868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
d9898ee8 6869 ;;
8d138742 6870 *)
b0322a85 6871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 6872 ;;
8d138742 6873 esac
b0322a85 6874 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
6875fi
6876
b0322a85
CE
6877case $host_os in
6878 darwin*)
6879 lock_old_archive_extraction=yes ;;
6880 *)
6881 lock_old_archive_extraction=no ;;
6882esac
6883
6884
6885
6886
6887
6888
8d138742
CE
6889
6890
6891
6892
6893
6894
6895
d9898ee8 6896
d9898ee8 6897
d9898ee8 6898
d9898ee8 6899
d9898ee8 6900
d9898ee8 6901
6902
6903
6904
ac40fd9e 6905
8d138742
CE
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922# If no C compiler was specified, use CC.
6923LTCC=${LTCC-"$CC"}
6924
6925# If no C compiler flags were specified, use CFLAGS.
6926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6927
6928# Allow CC to be a program name with arguments.
6929compiler=$CC
6930
6931
d9898ee8 6932# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 6934$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 6935if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 6936 $as_echo_n "(cached) " >&6
d9898ee8 6937else
6938
6939# These are sane defaults that work on at least a few old systems.
6940# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6941
6942# Character class describing NM global symbol codes.
6943symcode='[BCDEGRST]'
6944
6945# Regexp to match symbols that can be accessed directly from C.
6946sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6947
d9898ee8 6948# Define system-specific variables.
6949case $host_os in
6950aix*)
6951 symcode='[BCDT]'
6952 ;;
8d138742 6953cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 6954 symcode='[ABCDGISTW]'
6955 ;;
8d138742 6956hpux*)
d9898ee8 6957 if test "$host_cpu" = ia64; then
6958 symcode='[ABCDEGRST]'
6959 fi
d9898ee8 6960 ;;
6961irix* | nonstopux*)
6962 symcode='[BCDEGRST]'
6963 ;;
6964osf*)
6965 symcode='[BCDEGQRST]'
6966 ;;
6967solaris*)
6968 symcode='[BDRT]'
6969 ;;
6970sco3.2v5*)
6971 symcode='[DT]'
6972 ;;
6973sysv4.2uw2*)
6974 symcode='[DT]'
6975 ;;
6976sysv5* | sco5v6* | unixware* | OpenUNIX*)
6977 symcode='[ABDT]'
6978 ;;
6979sysv4)
6980 symcode='[DFNSTU]'
6981 ;;
6982esac
6983
8d138742
CE
6984# If we're using GNU nm, then use its standard symbol codes.
6985case `$NM -V 2>&1` in
6986*GNU* | *'with BFD'*)
6987 symcode='[ABCDGIRSTW]' ;;
6988esac
6989
6990# Transform an extracted symbol line into a proper C declaration.
6991# Some systems (esp. on ia64) link data and code symbols differently,
6992# so use this general approach.
6993lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6994
6995# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
6996lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6997lt_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'"
8d138742 6998
d9898ee8 6999# Handle CRLF in mingw tool chain
7000opt_cr=
7001case $build_os in
7002mingw*)
8d138742 7003 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 7004 ;;
7005esac
7006
8d138742 7007# Try without a prefix underscore, then with it.
d9898ee8 7008for ac_symprfx in "" "_"; do
7009
7010 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7011 symxfrm="\\1 $ac_symprfx\\2 \\2"
7012
7013 # Write the raw and C identifiers.
8d138742
CE
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015 # Fake it for dumpbin and say T for any non-static function
7016 # and D for any global variable.
7017 # Also find C++ and __fastcall symbols from MSVC++,
7018 # which start with @ or ?.
7019 lt_cv_sys_global_symbol_pipe="$AWK '"\
7020" {last_section=section; section=\$ 3};"\
b0322a85 7021" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
7022" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023" \$ 0!~/External *\|/{next};"\
7024" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025" {if(hide[section]) next};"\
7026" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030" ' prfx=^$ac_symprfx"
7031 else
7032 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033 fi
b0322a85 7034 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 7035
7036 # Check to see that the pipe works correctly.
7037 pipe_works=no
7038
7039 rm -f conftest*
8d138742 7040 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 7041#ifdef __cplusplus
7042extern "C" {
7043#endif
7044char nm_test_var;
8d138742
CE
7045void nm_test_func(void);
7046void nm_test_func(void){}
d9898ee8 7047#ifdef __cplusplus
7048}
7049#endif
7050int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 7051_LT_EOF
d9898ee8 7052
b0322a85 7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
b0322a85
CE
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
d9898ee8 7058 # Now try to grab the symbols.
7059 nlist=conftest.nm
b0322a85
CE
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7061 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 7062 ac_status=$?
b0322a85
CE
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s "$nlist"; then
d9898ee8 7065 # Try sorting and uniquifying the output.
7066 if sort "$nlist" | uniq > "$nlist"T; then
7067 mv -f "$nlist"T "$nlist"
7068 else
7069 rm -f "$nlist"T
7070 fi
7071
7072 # Make sure that we snagged all the symbols we need.
8d138742
CE
7073 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7074 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7075 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
7076/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7077#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7078/* DATA imports from DLLs on WIN32 con't be const, because runtime
7079 relocations are performed -- see ld's documentation on pseudo-relocs. */
7080# define LT_DLSYM_CONST
7081#elif defined(__osf__)
7082/* This system does not cope well with relocations in const data. */
7083# define LT_DLSYM_CONST
7084#else
7085# define LT_DLSYM_CONST const
7086#endif
7087
d9898ee8 7088#ifdef __cplusplus
7089extern "C" {
7090#endif
7091
8d138742 7092_LT_EOF
d9898ee8 7093 # Now generate the symbol file.
8d138742 7094 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 7095
8d138742 7096 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 7097
8d138742 7098/* The mapping between symbol names and symbols. */
b0322a85 7099LT_DLSYM_CONST struct {
d9898ee8 7100 const char *name;
8d138742 7101 void *address;
d9898ee8 7102}
8d138742 7103lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 7104{
8d138742
CE
7105 { "@PROGRAM@", (void *) 0 },
7106_LT_EOF
7107 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7108 cat <<\_LT_EOF >> conftest.$ac_ext
7109 {0, (void *) 0}
d9898ee8 7110};
7111
8d138742
CE
7112/* This works around a problem in FreeBSD linker */
7113#ifdef FREEBSD_WORKAROUND
7114static const void *lt_preloaded_setup() {
7115 return lt__PROGRAM__LTX_preloaded_symbols;
7116}
7117#endif
7118
d9898ee8 7119#ifdef __cplusplus
7120}
7121#endif
8d138742 7122_LT_EOF
d9898ee8 7123 # Now try linking the two files.
7124 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
7125 lt_globsym_save_LIBS=$LIBS
7126 lt_globsym_save_CFLAGS=$CFLAGS
d9898ee8 7127 LIBS="conftstm.$ac_objext"
7128 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 7129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d9898ee8 7130 (eval $ac_link) 2>&5
7131 ac_status=$?
b0322a85
CE
7132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d9898ee8 7134 pipe_works=yes
7135 fi
b0322a85
CE
7136 LIBS=$lt_globsym_save_LIBS
7137 CFLAGS=$lt_globsym_save_CFLAGS
d9898ee8 7138 else
7139 echo "cannot find nm_test_func in $nlist" >&5
7140 fi
7141 else
7142 echo "cannot find nm_test_var in $nlist" >&5
7143 fi
7144 else
7145 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7146 fi
7147 else
7148 echo "$progname: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 fi
8d138742 7151 rm -rf conftest* conftst*
d9898ee8 7152
7153 # Do not use the global_symbol_pipe unless it works.
7154 if test "$pipe_works" = yes; then
7155 break
7156 else
7157 lt_cv_sys_global_symbol_pipe=
7158 fi
7159done
7160
7161fi
7162
7163if test -z "$lt_cv_sys_global_symbol_pipe"; then
7164 lt_cv_sys_global_symbol_to_cdecl=
7165fi
7166if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 7168$as_echo "failed" >&6; }
d9898ee8 7169else
b0322a85 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 7171$as_echo "ok" >&6; }
d9898ee8 7172fi
7173
b0322a85
CE
7174# Response file support.
7175if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7176 nm_file_list_spec='@'
7177elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7178 nm_file_list_spec='@'
7179fi
7180
7181
7182
7183
d9898ee8 7184
7185
7186
7187
7188
d9898ee8 7189
d9898ee8 7190
d9898ee8 7191
d9898ee8 7192
d9898ee8 7193
d9898ee8 7194
d9898ee8 7195
d9898ee8 7196
d9898ee8 7197
d9898ee8 7198
dd184caf 7199
b0322a85
CE
7200
7201
7202
7203
7204
7205
7206
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7208$as_echo_n "checking for sysroot... " >&6; }
7209
7210# Check whether --with-sysroot was given.
7211if test "${with_sysroot+set}" = set; then :
7212 withval=$with_sysroot;
7213else
7214 with_sysroot=no
7215fi
7216
7217
7218lt_sysroot=
7219case ${with_sysroot} in #(
7220 yes)
7221 if test "$GCC" = yes; then
7222 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7223 fi
7224 ;; #(
7225 /*)
7226 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7227 ;; #(
7228 no|'')
7229 ;; #(
7230 *)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7232$as_echo "${with_sysroot}" >&6; }
7233 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7234 ;;
7235esac
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7238$as_echo "${lt_sysroot:-no}" >&6; }
d9898ee8 7239
d9898ee8 7240
d9898ee8 7241
d9898ee8 7242
8d138742
CE
7243
7244# Check whether --enable-libtool-lock was given.
b0322a85 7245if test "${enable_libtool_lock+set}" = set; then :
8d138742 7246 enableval=$enable_libtool_lock;
d9898ee8 7247fi
8d138742
CE
7248
7249test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7250
7251# Some flags need to be propagated to the compiler or linker for good
7252# libtool support.
7253case $host in
7254ia64-*-hpux*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
b0322a85 7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
b0322a85
CE
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then
8d138742
CE
7262 case `/usr/bin/file conftest.$ac_objext` in
7263 *ELF-32*)
7264 HPUX_IA64_MODE="32"
7265 ;;
7266 *ELF-64*)
7267 HPUX_IA64_MODE="64"
7268 ;;
7269 esac
7270 fi
7271 rm -rf conftest*
7272 ;;
7273*-*-irix6*)
7274 # Find out which ABI we are using.
b0322a85
CE
7275 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
b0322a85
CE
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
8d138742
CE
7281 if test "$lt_cv_prog_gnu_ld" = yes; then
7282 case `/usr/bin/file conftest.$ac_objext` in
7283 *32-bit*)
7284 LD="${LD-ld} -melf32bsmip"
7285 ;;
7286 *N32*)
7287 LD="${LD-ld} -melf32bmipn32"
7288 ;;
7289 *64-bit*)
7290 LD="${LD-ld} -melf64bmip"
7291 ;;
7292 esac
7293 else
7294 case `/usr/bin/file conftest.$ac_objext` in
7295 *32-bit*)
7296 LD="${LD-ld} -32"
7297 ;;
7298 *N32*)
7299 LD="${LD-ld} -n32"
7300 ;;
7301 *64-bit*)
7302 LD="${LD-ld} -64"
7303 ;;
7304 esac
7305 fi
7306 fi
7307 rm -rf conftest*
7308 ;;
7309
7310x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7311s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7312 # Find out which ABI we are using.
7313 echo 'int i;' > conftest.$ac_ext
b0322a85 7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
b0322a85
CE
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }; then
8d138742
CE
7319 case `/usr/bin/file conftest.o` in
7320 *32-bit*)
7321 case $host in
7322 x86_64-*kfreebsd*-gnu)
7323 LD="${LD-ld} -m elf_i386_fbsd"
7324 ;;
7325 x86_64-*linux*)
7326 LD="${LD-ld} -m elf_i386"
7327 ;;
7328 ppc64-*linux*|powerpc64-*linux*)
7329 LD="${LD-ld} -m elf32ppclinux"
7330 ;;
7331 s390x-*linux*)
7332 LD="${LD-ld} -m elf_s390"
7333 ;;
7334 sparc64-*linux*)
7335 LD="${LD-ld} -m elf32_sparc"
7336 ;;
7337 esac
7338 ;;
7339 *64-bit*)
7340 case $host in
7341 x86_64-*kfreebsd*-gnu)
7342 LD="${LD-ld} -m elf_x86_64_fbsd"
7343 ;;
7344 x86_64-*linux*)
7345 LD="${LD-ld} -m elf_x86_64"
7346 ;;
7347 ppc*-*linux*|powerpc*-*linux*)
7348 LD="${LD-ld} -m elf64ppc"
7349 ;;
7350 s390*-*linux*|s390*-*tpf*)
7351 LD="${LD-ld} -m elf64_s390"
7352 ;;
7353 sparc*-*linux*)
7354 LD="${LD-ld} -m elf64_sparc"
7355 ;;
7356 esac
7357 ;;
7358 esac
7359 fi
7360 rm -rf conftest*
7361 ;;
7362
7363*-*-sco3.2v5*)
7364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7365 SAVE_CFLAGS="$CFLAGS"
7366 CFLAGS="$CFLAGS -belf"
b0322a85 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 7368$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 7369if ${lt_cv_cc_needs_belf+:} false; then :
8d138742
CE
7370 $as_echo_n "(cached) " >&6
7371else
7372 ac_ext=c
7373ac_cpp='$CPP $CPPFLAGS'
7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
b0322a85 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7379/* end confdefs.h. */
7380
7381int
7382main ()
7383{
7384
7385 ;
7386 return 0;
7387}
7388_ACEOF
b0322a85 7389if ac_fn_c_try_link "$LINENO"; then :
8d138742 7390 lt_cv_cc_needs_belf=yes
d9898ee8 7391else
b0322a85 7392 lt_cv_cc_needs_belf=no
d9898ee8 7393fi
b0322a85
CE
7394rm -f core conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
7396 ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 7401
d9898ee8 7402fi
b0322a85 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
7404$as_echo "$lt_cv_cc_needs_belf" >&6; }
7405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7407 CFLAGS="$SAVE_CFLAGS"
7408 fi
7409 ;;
b0322a85 7410*-*solaris*)
8d138742
CE
7411 # Find out which ABI we are using.
7412 echo 'int i;' > conftest.$ac_ext
b0322a85 7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
7414 (eval $ac_compile) 2>&5
7415 ac_status=$?
b0322a85
CE
7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }; then
8d138742
CE
7418 case `/usr/bin/file conftest.o` in
7419 *64-bit*)
7420 case $lt_cv_prog_gnu_ld in
b0322a85
CE
7421 yes*)
7422 case $host in
7423 i?86-*-solaris*)
7424 LD="${LD-ld} -m elf_x86_64"
7425 ;;
7426 sparc*-*-solaris*)
7427 LD="${LD-ld} -m elf64_sparc"
7428 ;;
7429 esac
7430 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7431 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7432 LD="${LD-ld}_sol2"
7433 fi
7434 ;;
8d138742
CE
7435 *)
7436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7437 LD="${LD-ld} -64"
7438 fi
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446esac
7447
b0322a85
CE
7448need_locks="$enable_libtool_lock"
7449
7450if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7452set dummy ${ac_tool_prefix}mt; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457else
7458 if test -n "$MANIFEST_TOOL"; then
7459 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472done
7473 done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7479if test -n "$MANIFEST_TOOL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7481$as_echo "$MANIFEST_TOOL" >&6; }
7482else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487
7488fi
7489if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7490 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7491 # Extract the first word of "mt", so it can be a program name with args.
7492set dummy mt; ac_word=$2
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497else
7498 if test -n "$ac_ct_MANIFEST_TOOL"; then
7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512done
7513 done
7514IFS=$as_save_IFS
7515
7516fi
7517fi
7518ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7519if test -n "$ac_ct_MANIFEST_TOOL"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7521$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7522else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7528 MANIFEST_TOOL=":"
7529 else
7530 case $cross_compiling:$ac_tool_warned in
7531yes:)
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534ac_tool_warned=yes ;;
7535esac
7536 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7537 fi
7538else
7539 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7540fi
7541
7542test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7544$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7545if ${lt_cv_path_mainfest_tool+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547else
7548 lt_cv_path_mainfest_tool=no
7549 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7550 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7551 cat conftest.err >&5
7552 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7553 lt_cv_path_mainfest_tool=yes
7554 fi
7555 rm -f conftest*
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7558$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7559if test "x$lt_cv_path_mainfest_tool" != xyes; then
7560 MANIFEST_TOOL=:
7561fi
7562
7563
7564
7565
8d138742
CE
7566
7567
7568 case $host_os in
7569 rhapsody* | darwin*)
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7572set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7574$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7575if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742 7576 $as_echo_n "(cached) " >&6
d9898ee8 7577else
8d138742
CE
7578 if test -n "$DSYMUTIL"; then
7579 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
b0322a85
CE
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7590 break 2
7591 fi
7592done
b0322a85 7593 done
dd184caf 7594IFS=$as_save_IFS
d9898ee8 7595
d9898ee8 7596fi
7597fi
8d138742
CE
7598DSYMUTIL=$ac_cv_prog_DSYMUTIL
7599if test -n "$DSYMUTIL"; then
b0322a85 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742 7601$as_echo "$DSYMUTIL" >&6; }
d9898ee8 7602else
b0322a85 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7604$as_echo "no" >&6; }
d9898ee8 7605fi
7606
8d138742
CE
7607
7608fi
7609if test -z "$ac_cv_prog_DSYMUTIL"; then
7610 ac_ct_DSYMUTIL=$DSYMUTIL
7611 # Extract the first word of "dsymutil", so it can be a program name with args.
7612set dummy dsymutil; ac_word=$2
b0322a85 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7614$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7615if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
7616 $as_echo_n "(cached) " >&6
7617else
7618 if test -n "$ac_ct_DSYMUTIL"; then
7619 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
b0322a85
CE
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7628 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7630 break 2
7631 fi
7632done
b0322a85 7633 done
8d138742
CE
7634IFS=$as_save_IFS
7635
7636fi
7637fi
7638ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7639if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
7641$as_echo "$ac_ct_DSYMUTIL" >&6; }
7642else
b0322a85 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7644$as_echo "no" >&6; }
7645fi
7646
7647 if test "x$ac_ct_DSYMUTIL" = x; then
7648 DSYMUTIL=":"
dd184caf 7649 else
7650 case $cross_compiling:$ac_tool_warned in
7651yes:)
b0322a85 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7654ac_tool_warned=yes ;;
7655esac
8d138742 7656 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 7657 fi
d9898ee8 7658else
8d138742 7659 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 7660fi
7661
8d138742
CE
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7666$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7667if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742 7668 $as_echo_n "(cached) " >&6
d9898ee8 7669else
8d138742
CE
7670 if test -n "$NMEDIT"; then
7671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
b0322a85
CE
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7680 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7682 break 2
7683 fi
7684done
b0322a85 7685 done
dd184caf 7686IFS=$as_save_IFS
d9898ee8 7687
7688fi
7689fi
8d138742
CE
7690NMEDIT=$ac_cv_prog_NMEDIT
7691if test -n "$NMEDIT"; then
b0322a85 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742 7693$as_echo "$NMEDIT" >&6; }
d9898ee8 7694else
b0322a85 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7696$as_echo "no" >&6; }
d9898ee8 7697fi
7698
dd184caf 7699
d9898ee8 7700fi
8d138742
CE
7701if test -z "$ac_cv_prog_NMEDIT"; then
7702 ac_ct_NMEDIT=$NMEDIT
7703 # Extract the first word of "nmedit", so it can be a program name with args.
7704set dummy nmedit; ac_word=$2
b0322a85 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7706$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7707if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742 7708 $as_echo_n "(cached) " >&6
d9898ee8 7709else
8d138742
CE
7710 if test -n "$ac_ct_NMEDIT"; then
7711 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
b0322a85
CE
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7720 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7722 break 2
7723 fi
7724done
b0322a85 7725 done
dd184caf 7726IFS=$as_save_IFS
d9898ee8 7727
d9898ee8 7728fi
7729fi
8d138742
CE
7730ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7731if test -n "$ac_ct_NMEDIT"; then
b0322a85 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742 7733$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 7734else
b0322a85 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7736$as_echo "no" >&6; }
d9898ee8 7737fi
7738
8d138742
CE
7739 if test "x$ac_ct_NMEDIT" = x; then
7740 NMEDIT=":"
dd184caf 7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743yes:)
b0322a85 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7746ac_tool_warned=yes ;;
7747esac
8d138742 7748 NMEDIT=$ac_ct_NMEDIT
dd184caf 7749 fi
d9898ee8 7750else
8d138742 7751 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 7752fi
7753
8d138742
CE
7754 if test -n "$ac_tool_prefix"; then
7755 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7756set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7758$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7759if ${ac_cv_prog_LIPO+:} false; then :
8d138742
CE
7760 $as_echo_n "(cached) " >&6
7761else
7762 if test -n "$LIPO"; then
7763 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
b0322a85
CE
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7772 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7774 break 2
7775 fi
7776done
b0322a85 7777 done
8d138742 7778IFS=$as_save_IFS
d9898ee8 7779
8d138742
CE
7780fi
7781fi
7782LIPO=$ac_cv_prog_LIPO
7783if test -n "$LIPO"; then
b0322a85 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742
CE
7785$as_echo "$LIPO" >&6; }
7786else
b0322a85 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7788$as_echo "no" >&6; }
7789fi
d9898ee8 7790
d9898ee8 7791
d9898ee8 7792fi
8d138742
CE
7793if test -z "$ac_cv_prog_LIPO"; then
7794 ac_ct_LIPO=$LIPO
7795 # Extract the first word of "lipo", so it can be a program name with args.
7796set dummy lipo; ac_word=$2
b0322a85 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7798$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7799if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742
CE
7800 $as_echo_n "(cached) " >&6
7801else
7802 if test -n "$ac_ct_LIPO"; then
7803 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
b0322a85
CE
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7812 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7814 break 2
7815 fi
d9898ee8 7816done
b0322a85 7817 done
8d138742 7818IFS=$as_save_IFS
d9898ee8 7819
8d138742
CE
7820fi
7821fi
7822ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7823if test -n "$ac_ct_LIPO"; then
b0322a85 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 7825$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 7826else
b0322a85 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7828$as_echo "no" >&6; }
7829fi
d9898ee8 7830
8d138742
CE
7831 if test "x$ac_ct_LIPO" = x; then
7832 LIPO=":"
7833 else
7834 case $cross_compiling:$ac_tool_warned in
7835yes:)
b0322a85 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838ac_tool_warned=yes ;;
d9898ee8 7839esac
8d138742
CE
7840 LIPO=$ac_ct_LIPO
7841 fi
7842else
7843 LIPO="$ac_cv_prog_LIPO"
d9898ee8 7844fi
7845
8d138742
CE
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7850$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7851if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 7852 $as_echo_n "(cached) " >&6
d9898ee8 7853else
8d138742
CE
7854 if test -n "$OTOOL"; then
7855 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
b0322a85
CE
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7864 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7866 break 2
7867 fi
7868done
b0322a85 7869 done
8d138742 7870IFS=$as_save_IFS
d9898ee8 7871
8d138742
CE
7872fi
7873fi
7874OTOOL=$ac_cv_prog_OTOOL
7875if test -n "$OTOOL"; then
b0322a85 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 7877$as_echo "$OTOOL" >&6; }
d9898ee8 7878else
b0322a85 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7880$as_echo "no" >&6; }
7881fi
d9898ee8 7882
d9898ee8 7883
d9898ee8 7884fi
8d138742
CE
7885if test -z "$ac_cv_prog_OTOOL"; then
7886 ac_ct_OTOOL=$OTOOL
7887 # Extract the first word of "otool", so it can be a program name with args.
7888set dummy otool; ac_word=$2
b0322a85 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7890$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7891if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
7892 $as_echo_n "(cached) " >&6
7893else
7894 if test -n "$ac_ct_OTOOL"; then
7895 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
b0322a85
CE
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7904 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7906 break 2
7907 fi
7908done
b0322a85 7909 done
8d138742 7910IFS=$as_save_IFS
d9898ee8 7911
8d138742
CE
7912fi
7913fi
7914ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7915if test -n "$ac_ct_OTOOL"; then
b0322a85 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 7917$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 7918else
b0322a85 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7920$as_echo "no" >&6; }
d9898ee8 7921fi
7922
8d138742
CE
7923 if test "x$ac_ct_OTOOL" = x; then
7924 OTOOL=":"
d9898ee8 7925 else
8d138742
CE
7926 case $cross_compiling:$ac_tool_warned in
7927yes:)
b0322a85 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932 OTOOL=$ac_ct_OTOOL
d9898ee8 7933 fi
8d138742
CE
7934else
7935 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 7936fi
7937
8d138742
CE
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7940set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7942$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7943if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742
CE
7944 $as_echo_n "(cached) " >&6
7945else
7946 if test -n "$OTOOL64"; then
7947 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
b0322a85
CE
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7956 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 7958 break 2
d9898ee8 7959 fi
8d138742 7960done
b0322a85 7961 done
8d138742 7962IFS=$as_save_IFS
d9898ee8 7963
8d138742
CE
7964fi
7965fi
7966OTOOL64=$ac_cv_prog_OTOOL64
7967if test -n "$OTOOL64"; then
b0322a85 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742
CE
7969$as_echo "$OTOOL64" >&6; }
7970else
b0322a85 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7972$as_echo "no" >&6; }
dd184caf 7973fi
d9898ee8 7974
d9898ee8 7975
8d138742
CE
7976fi
7977if test -z "$ac_cv_prog_OTOOL64"; then
7978 ac_ct_OTOOL64=$OTOOL64
7979 # Extract the first word of "otool64", so it can be a program name with args.
7980set dummy otool64; ac_word=$2
b0322a85 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7982$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7983if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
7984 $as_echo_n "(cached) " >&6
7985else
7986 if test -n "$ac_ct_OTOOL64"; then
7987 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
b0322a85
CE
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7996 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7998 break 2
7999 fi
8000done
b0322a85 8001 done
8d138742 8002IFS=$as_save_IFS
d9898ee8 8003
8d138742
CE
8004fi
8005fi
8006ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8007if test -n "$ac_ct_OTOOL64"; then
b0322a85 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 8009$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 8010else
b0322a85 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8012$as_echo "no" >&6; }
dd184caf 8013fi
8014
8d138742
CE
8015 if test "x$ac_ct_OTOOL64" = x; then
8016 OTOOL64=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019yes:)
b0322a85 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
8021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022ac_tool_warned=yes ;;
8023esac
8024 OTOOL64=$ac_ct_OTOOL64
8025 fi
8026else
8027 OTOOL64="$ac_cv_prog_OTOOL64"
8028fi
8029
8030
8031
d9898ee8 8032
d9898ee8 8033
8034
d9898ee8 8035
d9898ee8 8036
d9898ee8 8037
d9898ee8 8038
8039
d9898ee8 8040
d9898ee8 8041
d9898ee8 8042
8043
d9898ee8 8044
d9898ee8 8045
8046
8047
d9898ee8 8048
d9898ee8 8049
8050
d9898ee8 8051
8d138742
CE
8052
8053
8054
8055
b0322a85 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 8057$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 8058if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742
CE
8059 $as_echo_n "(cached) " >&6
8060else
8061 lt_cv_apple_cc_single_mod=no
8062 if test -z "${LT_MULTI_MODULE}"; then
8063 # By default we will add the -single_module flag. You can override
8064 # by either setting the environment variable LT_MULTI_MODULE
8065 # non-empty at configure time, or by adding -multi_module to the
8066 # link flags.
8067 rm -rf libconftest.dylib*
8068 echo "int foo(void){return 1;}" > conftest.c
8069 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8070-dynamiclib -Wl,-single_module conftest.c" >&5
8071 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8072 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8073 _lt_result=$?
b0322a85
CE
8074 # If there is a non-empty error log, and "single_module"
8075 # appears in it, assume the flag caused a linker warning
8076 if test -s conftest.err && $GREP single_module conftest.err; then
8077 cat conftest.err >&5
8078 # Otherwise, if the output was created with a 0 exit code from
8079 # the compiler, it worked.
8080 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8d138742
CE
8081 lt_cv_apple_cc_single_mod=yes
8082 else
8083 cat conftest.err >&5
8084 fi
8085 rm -rf libconftest.dylib*
8086 rm -f conftest.*
8087 fi
d9898ee8 8088fi
b0322a85 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 8090$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
8091
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 8093$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 8094if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
8095 $as_echo_n "(cached) " >&6
8096else
8097 lt_cv_ld_exported_symbols_list=no
8098 save_LDFLAGS=$LDFLAGS
8099 echo "_main" > conftest.sym
8100 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 8102/* end confdefs.h. */
d9898ee8 8103
8d138742
CE
8104int
8105main ()
8106{
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
b0322a85 8112if ac_fn_c_try_link "$LINENO"; then :
8d138742 8113 lt_cv_ld_exported_symbols_list=yes
d9898ee8 8114else
b0322a85 8115 lt_cv_ld_exported_symbols_list=no
d9898ee8 8116fi
b0322a85
CE
8117rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
8119 LDFLAGS="$save_LDFLAGS"
8120
d9898ee8 8121fi
b0322a85 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 8123$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8126$as_echo_n "checking for -force_load linker flag... " >&6; }
8127if ${lt_cv_ld_force_load+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129else
8130 lt_cv_ld_force_load=no
8131 cat > conftest.c << _LT_EOF
8132int forced_loaded() { return 2;}
8133_LT_EOF
8134 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8135 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8136 echo "$AR cru libconftest.a conftest.o" >&5
8137 $AR cru libconftest.a conftest.o 2>&5
8138 echo "$RANLIB libconftest.a" >&5
8139 $RANLIB libconftest.a 2>&5
8140 cat > conftest.c << _LT_EOF
8141int main() { return 0;}
8142_LT_EOF
8143 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8144 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8145 _lt_result=$?
8146 if test -s conftest.err && $GREP force_load conftest.err; then
8147 cat conftest.err >&5
8148 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8149 lt_cv_ld_force_load=yes
8150 else
8151 cat conftest.err >&5
8152 fi
8153 rm -f conftest.err libconftest.a conftest conftest.c
8154 rm -rf conftest.dSYM
8155
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8158$as_echo "$lt_cv_ld_force_load" >&6; }
8d138742
CE
8159 case $host_os in
8160 rhapsody* | darwin1.[012])
8161 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8162 darwin1.*)
8163 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8164 darwin*) # darwin 5.x on
8165 # if running on 10.5 or later, the deployment target defaults
8166 # to the OS version, if on x86, and 10.4, the deployment
8167 # target defaults to 10.4. Don't you love it?
8168 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8169 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8170 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8171 10.[012]*)
8172 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8173 10.*)
8174 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8175 esac
8176 ;;
8177 esac
8178 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8179 _lt_dar_single_mod='$single_module'
8180 fi
8181 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8182 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8183 else
8184 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8185 fi
b0322a85 8186 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8d138742
CE
8187 _lt_dsymutil='~$DSYMUTIL $lib || :'
8188 else
8189 _lt_dsymutil=
8190 fi
8191 ;;
8192 esac
d9898ee8 8193
8d138742 8194for ac_header in dlfcn.h
b0322a85
CE
8195do :
8196 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8197"
8198if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 8199 cat >>confdefs.h <<_ACEOF
b0322a85 8200#define HAVE_DLFCN_H 1
8d138742 8201_ACEOF
d9898ee8 8202
8d138742 8203fi
d9898ee8 8204
8d138742 8205done
d9898ee8 8206
d9898ee8 8207
d9898ee8 8208
b0322a85
CE
8209
8210
8d138742 8211# Set options
d9898ee8 8212
d9898ee8 8213
d9898ee8 8214
8d138742
CE
8215 enable_dlopen=no
8216
8217
8218 enable_win32_dll=no
8219
8220
8221 # Check whether --enable-shared was given.
b0322a85 8222if test "${enable_shared+set}" = set; then :
8d138742
CE
8223 enableval=$enable_shared; p=${PACKAGE-default}
8224 case $enableval in
8225 yes) enable_shared=yes ;;
8226 no) enable_shared=no ;;
d9898ee8 8227 *)
8d138742
CE
8228 enable_shared=no
8229 # Look at the argument we got. We use all the common list separators.
8230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8231 for pkg in $enableval; do
8232 IFS="$lt_save_ifs"
8233 if test "X$pkg" = "X$p"; then
8234 enable_shared=yes
8235 fi
8236 done
8237 IFS="$lt_save_ifs"
d9898ee8 8238 ;;
8239 esac
8d138742
CE
8240else
8241 enable_shared=yes
8242fi
d9898ee8 8243
d9898ee8 8244
d9898ee8 8245
d9898ee8 8246
d9898ee8 8247
d9898ee8 8248
ac40fd9e 8249
d9898ee8 8250
d9898ee8 8251
8d138742 8252 # Check whether --enable-static was given.
b0322a85 8253if test "${enable_static+set}" = set; then :
8d138742
CE
8254 enableval=$enable_static; p=${PACKAGE-default}
8255 case $enableval in
8256 yes) enable_static=yes ;;
8257 no) enable_static=no ;;
8258 *)
8259 enable_static=no
8260 # Look at the argument we got. We use all the common list separators.
8261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8262 for pkg in $enableval; do
8263 IFS="$lt_save_ifs"
8264 if test "X$pkg" = "X$p"; then
8265 enable_static=yes
8266 fi
8267 done
8268 IFS="$lt_save_ifs"
d9898ee8 8269 ;;
8d138742
CE
8270 esac
8271else
8272 enable_static=yes
8273fi
d9898ee8 8274
d9898ee8 8275
d9898ee8 8276
d9898ee8 8277
d9898ee8 8278
d9898ee8 8279
d9898ee8 8280
d9898ee8 8281
d9898ee8 8282
d9898ee8 8283
8d138742 8284# Check whether --with-pic was given.
b0322a85
CE
8285if test "${with_pic+set}" = set; then :
8286 withval=$with_pic; lt_p=${PACKAGE-default}
8287 case $withval in
8288 yes|no) pic_mode=$withval ;;
8289 *)
8290 pic_mode=default
8291 # Look at the argument we got. We use all the common list separators.
8292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8293 for lt_pkg in $withval; do
8294 IFS="$lt_save_ifs"
8295 if test "X$lt_pkg" = "X$lt_p"; then
8296 pic_mode=yes
8297 fi
8298 done
8299 IFS="$lt_save_ifs"
8300 ;;
8301 esac
d9898ee8 8302else
8d138742 8303 pic_mode=default
d9898ee8 8304fi
8305
d9898ee8 8306
8d138742 8307test -z "$pic_mode" && pic_mode=default
d9898ee8 8308
d9898ee8 8309
8d138742
CE
8310
8311
8312
8313
8314
8315 # Check whether --enable-fast-install was given.
b0322a85 8316if test "${enable_fast_install+set}" = set; then :
8d138742
CE
8317 enableval=$enable_fast_install; p=${PACKAGE-default}
8318 case $enableval in
8319 yes) enable_fast_install=yes ;;
8320 no) enable_fast_install=no ;;
8321 *)
8322 enable_fast_install=no
8323 # Look at the argument we got. We use all the common list separators.
8324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8325 for pkg in $enableval; do
8326 IFS="$lt_save_ifs"
8327 if test "X$pkg" = "X$p"; then
8328 enable_fast_install=yes
8329 fi
8330 done
8331 IFS="$lt_save_ifs"
8332 ;;
8333 esac
d9898ee8 8334else
8d138742 8335 enable_fast_install=yes
d9898ee8 8336fi
8337
8338
d9898ee8 8339
d9898ee8 8340
d9898ee8 8341
8342
d9898ee8 8343
d9898ee8 8344
d9898ee8 8345
d9898ee8 8346
d9898ee8 8347
8d138742
CE
8348# This can be used to rebuild libtool when needed
8349LIBTOOL_DEPS="$ltmain"
d9898ee8 8350
8d138742
CE
8351# Always use our own libtool.
8352LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 8353
d9898ee8 8354
d9898ee8 8355
d9898ee8 8356
d9898ee8 8357
d9898ee8 8358
d9898ee8 8359
d9898ee8 8360
d9898ee8 8361
d9898ee8 8362
d9898ee8 8363
d9898ee8 8364
d9898ee8 8365
d9898ee8 8366
d9898ee8 8367
d9898ee8 8368
d9898ee8 8369
d9898ee8 8370
d9898ee8 8371
b0322a85
CE
8372
8373
8374
8375
8376
d9898ee8 8377
d9898ee8 8378
d9898ee8 8379
d9898ee8 8380
d9898ee8 8381
d9898ee8 8382
8d138742 8383test -z "$LN_S" && LN_S="ln -s"
d9898ee8 8384
d9898ee8 8385
d9898ee8 8386
d9898ee8 8387
d9898ee8 8388
d9898ee8 8389
dd184caf 8390
dd184caf 8391
d9898ee8 8392
d9898ee8 8393
d9898ee8 8394
d9898ee8 8395
8d138742
CE
8396
8397
8398if test -n "${ZSH_VERSION+set}" ; then
8399 setopt NO_GLOB_SUBST
ac40fd9e 8400fi
8d138742 8401
b0322a85 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 8403$as_echo_n "checking for objdir... " >&6; }
b0322a85 8404if ${lt_cv_objdir+:} false; then :
8d138742 8405 $as_echo_n "(cached) " >&6
d9898ee8 8406else
8d138742
CE
8407 rm -f .libs 2>/dev/null
8408mkdir .libs 2>/dev/null
8409if test -d .libs; then
8410 lt_cv_objdir=.libs
8411else
8412 # MS-DOS does not allow filenames that begin with a dot.
8413 lt_cv_objdir=_libs
8414fi
8415rmdir .libs 2>/dev/null
8416fi
b0322a85 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
8418$as_echo "$lt_cv_objdir" >&6; }
8419objdir=$lt_cv_objdir
d9898ee8 8420
dd184caf 8421
dd184caf 8422
d9898ee8 8423
d9898ee8 8424
8d138742
CE
8425cat >>confdefs.h <<_ACEOF
8426#define LT_OBJDIR "$lt_cv_objdir/"
8427_ACEOF
d9898ee8 8428
d9898ee8 8429
d9898ee8 8430
d9898ee8 8431
8d138742
CE
8432case $host_os in
8433aix3*)
8434 # AIX sometimes has problems with the GCC collect2 program. For some
8435 # reason, if we set the COLLECT_NAMES environment variable, the problems
8436 # vanish in a puff of smoke.
8437 if test "X${COLLECT_NAMES+set}" != Xset; then
8438 COLLECT_NAMES=
8439 export COLLECT_NAMES
8440 fi
8441 ;;
8442esac
d9898ee8 8443
8d138742
CE
8444# Global variables:
8445ofile=libtool
8446can_build_shared=yes
d9898ee8 8447
8d138742
CE
8448# All known linkers require a `.a' archive for static linking (except MSVC,
8449# which needs '.lib').
8450libext=a
d9898ee8 8451
8d138742 8452with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 8453
8d138742
CE
8454old_CC="$CC"
8455old_CFLAGS="$CFLAGS"
d9898ee8 8456
8d138742
CE
8457# Set sane defaults for various variables
8458test -z "$CC" && CC=cc
8459test -z "$LTCC" && LTCC=$CC
8460test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8461test -z "$LD" && LD=ld
8462test -z "$ac_objext" && ac_objext=o
d9898ee8 8463
8d138742
CE
8464for cc_temp in $compiler""; do
8465 case $cc_temp in
8466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8468 \-*) ;;
8469 *) break;;
8470 esac
8471done
b0322a85 8472cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 8473
d9898ee8 8474
8d138742
CE
8475# Only perform the check for file, if the check method requires it
8476test -z "$MAGIC_CMD" && MAGIC_CMD=file
8477case $deplibs_check_method in
8478file_magic*)
8479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 8481$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 8482if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8483 $as_echo_n "(cached) " >&6
8484else
8485 case $MAGIC_CMD in
8486[\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8488 ;;
8489*)
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/${ac_tool_prefix}file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8505 :
8506 else
8507 cat <<_LT_EOF 1>&2
8508
8509*** Warning: the command libtool uses to detect shared libraries,
8510*** $file_magic_cmd, produces output that libtool cannot recognize.
8511*** The result is that libtool may fail to recognize shared libraries
8512*** as such. This will affect the creation of libtool libraries that
8513*** depend on shared libraries, but programs linked with such libtool
8514*** libraries will work regardless of this problem. Nevertheless, you
8515*** may want to report the problem to your system manager and/or to
8516*** bug-libtool@gnu.org
8517
8518_LT_EOF
8519 fi ;;
8520 esac
d9898ee8 8521 fi
8d138742
CE
8522 break
8523 fi
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8527 ;;
8528esac
8529fi
d9898ee8 8530
8d138742
CE
8531MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532if test -n "$MAGIC_CMD"; then
b0322a85 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742
CE
8534$as_echo "$MAGIC_CMD" >&6; }
8535else
b0322a85 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8537$as_echo "no" >&6; }
8538fi
d9898ee8 8539
d9898ee8 8540
d9898ee8 8541
d9898ee8 8542
d9898ee8 8543
8d138742
CE
8544if test -z "$lt_cv_path_MAGIC_CMD"; then
8545 if test -n "$ac_tool_prefix"; then
b0322a85 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 8547$as_echo_n "checking for file... " >&6; }
b0322a85 8548if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
8549 $as_echo_n "(cached) " >&6
8550else
8551 case $MAGIC_CMD in
8552[\\/*] | ?:[\\/]*)
8553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
d9898ee8 8554 ;;
8d138742
CE
8555*)
8556 lt_save_MAGIC_CMD="$MAGIC_CMD"
8557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8559 for ac_dir in $ac_dummy; do
8560 IFS="$lt_save_ifs"
8561 test -z "$ac_dir" && ac_dir=.
8562 if test -f $ac_dir/file; then
8563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8564 if test -n "$file_magic_test_file"; then
8565 case $deplibs_check_method in
8566 "file_magic "*)
8567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8570 $EGREP "$file_magic_regex" > /dev/null; then
8571 :
8572 else
8573 cat <<_LT_EOF 1>&2
d9898ee8 8574
8d138742
CE
8575*** Warning: the command libtool uses to detect shared libraries,
8576*** $file_magic_cmd, produces output that libtool cannot recognize.
8577*** The result is that libtool may fail to recognize shared libraries
8578*** as such. This will affect the creation of libtool libraries that
8579*** depend on shared libraries, but programs linked with such libtool
8580*** libraries will work regardless of this problem. Nevertheless, you
8581*** may want to report the problem to your system manager and/or to
8582*** bug-libtool@gnu.org
ac40fd9e 8583
8d138742
CE
8584_LT_EOF
8585 fi ;;
8586 esac
8587 fi
8588 break
ac40fd9e 8589 fi
8590 done
8d138742
CE
8591 IFS="$lt_save_ifs"
8592 MAGIC_CMD="$lt_save_MAGIC_CMD"
8593 ;;
8594esac
8595fi
8596
8597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598if test -n "$MAGIC_CMD"; then
b0322a85 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8600$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8601else
b0322a85 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8603$as_echo "no" >&6; }
d9898ee8 8604fi
d9898ee8 8605
d9898ee8 8606
8d138742
CE
8607 else
8608 MAGIC_CMD=:
8609 fi
8610fi
d9898ee8 8611
8d138742 8612 fi
d9898ee8 8613 ;;
8d138742 8614esac
d9898ee8 8615
8d138742 8616# Use C for the default configuration in the libtool script
d9898ee8 8617
8d138742
CE
8618lt_save_CC="$CC"
8619ac_ext=c
8620ac_cpp='$CPP $CPPFLAGS'
8621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8624
d9898ee8 8625
8d138742
CE
8626# Source file extension for C test sources.
8627ac_ext=c
d9898ee8 8628
8d138742
CE
8629# Object file extension for compiled C test sources.
8630objext=o
8631objext=$objext
d9898ee8 8632
8d138742
CE
8633# Code to be used in simple compile tests
8634lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 8635
8d138742
CE
8636# Code to be used in simple link tests
8637lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 8638
d9898ee8 8639
ac40fd9e 8640
d9898ee8 8641
d9898ee8 8642
d9898ee8 8643
d9898ee8 8644
8d138742
CE
8645# If no C compiler was specified, use CC.
8646LTCC=${LTCC-"$CC"}
d9898ee8 8647
8d138742
CE
8648# If no C compiler flags were specified, use CFLAGS.
8649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 8650
8d138742
CE
8651# Allow CC to be a program name with arguments.
8652compiler=$CC
d9898ee8 8653
8d138742
CE
8654# Save the default compiler, since it gets overwritten when the other
8655# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8656compiler_DEFAULT=$CC
d9898ee8 8657
8d138742
CE
8658# save warnings/boilerplate of simple test code
8659ac_outfile=conftest.$ac_objext
8660echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662_lt_compiler_boilerplate=`cat conftest.err`
8663$RM conftest*
d9898ee8 8664
8d138742
CE
8665ac_outfile=conftest.$ac_objext
8666echo "$lt_simple_link_test_code" >conftest.$ac_ext
8667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668_lt_linker_boilerplate=`cat conftest.err`
8669$RM -r conftest*
d9898ee8 8670
d9898ee8 8671
8d138742 8672if test -n "$compiler"; then
d9898ee8 8673
8d138742 8674lt_prog_compiler_no_builtin_flag=
d9898ee8 8675
8d138742 8676if test "$GCC" = yes; then
b0322a85
CE
8677 case $cc_basename in
8678 nvcc*)
8679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8680 *)
8681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8682 esac
d9898ee8 8683
b0322a85 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 8685$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 8686if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
8687 $as_echo_n "(cached) " >&6
8688else
8689 lt_cv_prog_compiler_rtti_exceptions=no
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692 lt_compiler_flag="-fno-rtti -fno-exceptions"
8693 # Insert the option either (1) after the last *FLAGS variable, or
8694 # (2) before a word containing "conftest.", or (3) at the end.
8695 # Note that $ac_compile itself does not contain backslashes and begins
8696 # with a dollar sign (not a hyphen), so the echo should work correctly.
8697 # The option is referenced via a variable to avoid confusing sed.
8698 lt_compile=`echo "$ac_compile" | $SED \
8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701 -e 's:$: $lt_compiler_flag:'`
b0322a85 8702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8703 (eval "$lt_compile" 2>conftest.err)
8704 ac_status=$?
8705 cat conftest.err >&5
b0322a85 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8707 if (exit $ac_status) && test -s "$ac_outfile"; then
8708 # The compiler can only warn and ignore the option if not recognized
8709 # So say no if there are warnings other than the usual output.
b0322a85 8710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler_rtti_exceptions=yes
8714 fi
8715 fi
8716 $RM conftest*
d9898ee8 8717
8d138742 8718fi
b0322a85 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 8720$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8721
8d138742
CE
8722if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8724else
8725 :
8726fi
ac40fd9e 8727
8d138742 8728fi
d9898ee8 8729
d9898ee8 8730
d9898ee8 8731
d9898ee8 8732
d9898ee8 8733
d9898ee8 8734
8d138742
CE
8735 lt_prog_compiler_wl=
8736lt_prog_compiler_pic=
8737lt_prog_compiler_static=
d9898ee8 8738
d9898ee8 8739
8d138742
CE
8740 if test "$GCC" = yes; then
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_static='-static'
d9898ee8 8743
8d138742
CE
8744 case $host_os in
8745 aix*)
8746 # All AIX code is PIC.
8747 if test "$host_cpu" = ia64; then
8748 # AIX 5 now supports IA64 processor
8749 lt_prog_compiler_static='-Bstatic'
8750 fi
8751 ;;
d9898ee8 8752
8d138742
CE
8753 amigaos*)
8754 case $host_cpu in
8755 powerpc)
8756 # see comment about AmigaOS4 .so support
8757 lt_prog_compiler_pic='-fPIC'
8758 ;;
8759 m68k)
8760 # FIXME: we need at least 68020 code to build shared libraries, but
8761 # adding the `-m68020' flag to GCC prevents building anything better,
8762 # like `-m68040'.
8763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8764 ;;
8765 esac
8766 ;;
d9898ee8 8767
8d138742
CE
8768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8769 # PIC is the default for these OSes.
8770 ;;
d9898ee8 8771
8d138742
CE
8772 mingw* | cygwin* | pw32* | os2* | cegcc*)
8773 # This hack is so that the source file can tell whether it is being
8774 # built for inclusion in a dll (and should export symbols for example).
8775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8776 # (--disable-auto-import) libraries
8777 lt_prog_compiler_pic='-DDLL_EXPORT'
8778 ;;
d9898ee8 8779
8d138742
CE
8780 darwin* | rhapsody*)
8781 # PIC is the default on this platform
8782 # Common symbols not allowed in MH_DYLIB files
8783 lt_prog_compiler_pic='-fno-common'
8784 ;;
d9898ee8 8785
b0322a85
CE
8786 haiku*)
8787 # PIC is the default for Haiku.
8788 # The "-static" flag exists, but is broken.
8789 lt_prog_compiler_static=
8790 ;;
8791
8d138742
CE
8792 hpux*)
8793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8795 # sets the default TLS model and affects inlining.
8796 case $host_cpu in
8797 hppa*64*)
8798 # +Z the default
8799 ;;
8800 *)
8801 lt_prog_compiler_pic='-fPIC'
8802 ;;
8803 esac
8804 ;;
d9898ee8 8805
8d138742
CE
8806 interix[3-9]*)
8807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808 # Instead, we relocate shared libraries at runtime.
8809 ;;
d9898ee8 8810
8d138742
CE
8811 msdosdjgpp*)
8812 # Just because we use GCC doesn't mean we suddenly get shared libraries
8813 # on systems that don't support them.
8814 lt_prog_compiler_can_build_shared=no
8815 enable_shared=no
8816 ;;
d9898ee8 8817
8d138742
CE
8818 *nto* | *qnx*)
8819 # QNX uses GNU C++, but need to define -shared option too, otherwise
8820 # it will coredump.
8821 lt_prog_compiler_pic='-fPIC -shared'
8822 ;;
d9898ee8 8823
8d138742
CE
8824 sysv4*MP*)
8825 if test -d /usr/nec; then
8826 lt_prog_compiler_pic=-Kconform_pic
8827 fi
8828 ;;
dd184caf 8829
8d138742
CE
8830 *)
8831 lt_prog_compiler_pic='-fPIC'
8832 ;;
8833 esac
b0322a85
CE
8834
8835 case $cc_basename in
8836 nvcc*) # Cuda Compiler Driver 2.2
8837 lt_prog_compiler_wl='-Xlinker '
8838 if test -n "$lt_prog_compiler_pic"; then
8839 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8840 fi
8841 ;;
8842 esac
8d138742
CE
8843 else
8844 # PORTME Check for flag to pass linker flags through the system compiler.
8845 case $host_os in
8846 aix*)
8847 lt_prog_compiler_wl='-Wl,'
8848 if test "$host_cpu" = ia64; then
8849 # AIX 5 now supports IA64 processor
8850 lt_prog_compiler_static='-Bstatic'
8851 else
8852 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8853 fi
8854 ;;
d9898ee8 8855
8d138742
CE
8856 mingw* | cygwin* | pw32* | os2* | cegcc*)
8857 # This hack is so that the source file can tell whether it is being
8858 # built for inclusion in a dll (and should export symbols for example).
8859 lt_prog_compiler_pic='-DDLL_EXPORT'
8860 ;;
d9898ee8 8861
8d138742
CE
8862 hpux9* | hpux10* | hpux11*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8865 # not for PA HP-UX.
8866 case $host_cpu in
8867 hppa*64*|ia64*)
8868 # +Z the default
8869 ;;
8870 *)
8871 lt_prog_compiler_pic='+Z'
8872 ;;
8873 esac
8874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8875 lt_prog_compiler_static='${wl}-a ${wl}archive'
8876 ;;
d9898ee8 8877
8d138742
CE
8878 irix5* | irix6* | nonstopux*)
8879 lt_prog_compiler_wl='-Wl,'
8880 # PIC (with -KPIC) is the default.
8881 lt_prog_compiler_static='-non_shared'
8882 ;;
d9898ee8 8883
b0322a85 8884 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8885 case $cc_basename in
8886 # old Intel for x86_64 which still supported -KPIC.
8887 ecc*)
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-static'
8891 ;;
8892 # icc used to be incompatible with GCC.
8893 # ICC 10 doesn't accept -KPIC any more.
8894 icc* | ifort*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-fPIC'
8897 lt_prog_compiler_static='-static'
8898 ;;
8899 # Lahey Fortran 8.1.
8900 lf95*)
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_pic='--shared'
8903 lt_prog_compiler_static='--static'
8904 ;;
b0322a85
CE
8905 nagfor*)
8906 # NAG Fortran compiler
8907 lt_prog_compiler_wl='-Wl,-Wl,,'
8908 lt_prog_compiler_pic='-PIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8912 # Portland Group compilers (*not* the Pentium gcc compiler,
8913 # which looks to be a dead project)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-fpic'
8916 lt_prog_compiler_static='-Bstatic'
8917 ;;
8918 ccc*)
8919 lt_prog_compiler_wl='-Wl,'
8920 # All Alpha code is PIC.
8921 lt_prog_compiler_static='-non_shared'
8922 ;;
b0322a85
CE
8923 xl* | bgxl* | bgf* | mpixl*)
8924 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-qpic'
8927 lt_prog_compiler_static='-qstaticlink'
8928 ;;
8929 *)
8930 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8931 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8932 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 lt_prog_compiler_wl=''
8936 ;;
8937 *Sun\ F* | *Sun*Fortran*)
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8940 lt_prog_compiler_wl='-Qoption ld '
8941 ;;
8d138742
CE
8942 *Sun\ C*)
8943 # Sun C 5.9
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8946 lt_prog_compiler_wl='-Wl,'
8947 ;;
b0322a85
CE
8948 *Intel*\ [CF]*Compiler*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_pic='-fPIC'
8951 lt_prog_compiler_static='-static'
8952 ;;
8953 *Portland\ Group*)
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_pic='-fpic'
8d138742 8956 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8957 ;;
8958 esac
8959 ;;
8960 esac
8961 ;;
d9898ee8 8962
8d138742
CE
8963 newsos6)
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 ;;
d9898ee8 8967
8d138742
CE
8968 *nto* | *qnx*)
8969 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 # it will coredump.
8971 lt_prog_compiler_pic='-fPIC -shared'
8972 ;;
d9898ee8 8973
8d138742
CE
8974 osf3* | osf4* | osf5*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # All OSF/1 code is PIC.
8977 lt_prog_compiler_static='-non_shared'
8978 ;;
d9898ee8 8979
8d138742
CE
8980 rdos*)
8981 lt_prog_compiler_static='-non_shared'
8982 ;;
d9898ee8 8983
8d138742
CE
8984 solaris*)
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 case $cc_basename in
b0322a85 8988 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8989 lt_prog_compiler_wl='-Qoption ld ';;
8990 *)
8991 lt_prog_compiler_wl='-Wl,';;
8992 esac
8993 ;;
8994
8995 sunos4*)
8996 lt_prog_compiler_wl='-Qoption ld '
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 ;;
9000
9001 sysv4 | sysv4.2uw2* | sysv4.3*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
9006
9007 sysv4*MP*)
9008 if test -d /usr/nec ;then
9009 lt_prog_compiler_pic='-Kconform_pic'
9010 lt_prog_compiler_static='-Bstatic'
9011 fi
9012 ;;
9013
9014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019
9020 unicos*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_can_build_shared=no
9023 ;;
9024
9025 uts4*)
9026 lt_prog_compiler_pic='-pic'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
9029
9030 *)
9031 lt_prog_compiler_can_build_shared=no
9032 ;;
9033 esac
9034 fi
9035
9036case $host_os in
9037 # For platforms which do not support PIC, -DPIC is meaningless:
9038 *djgpp*)
9039 lt_prog_compiler_pic=
9040 ;;
9041 *)
9042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9043 ;;
dd184caf 9044esac
8d138742 9045
b0322a85
CE
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9047$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9048if ${lt_cv_prog_compiler_pic+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050else
9051 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9054$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9055lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8d138742
CE
9056
9057#
9058# Check to make sure the PIC flag actually works.
9059#
9060if test -n "$lt_prog_compiler_pic"; then
b0322a85 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 9062$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 9063if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742 9064 $as_echo_n "(cached) " >&6
d9898ee8 9065else
8d138742
CE
9066 lt_cv_prog_compiler_pic_works=no
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 # The option is referenced via a variable to avoid confusing sed.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
b0322a85 9079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9080 (eval "$lt_compile" 2>conftest.err)
9081 ac_status=$?
9082 cat conftest.err >&5
b0322a85 9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9084 if (exit $ac_status) && test -s "$ac_outfile"; then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings other than the usual output.
b0322a85 9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
9088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_pic_works=yes
9091 fi
9092 fi
9093 $RM conftest*
d9898ee8 9094
d9898ee8 9095fi
b0322a85 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 9097$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
dd184caf 9098
8d138742
CE
9099if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9100 case $lt_prog_compiler_pic in
9101 "" | " "*) ;;
9102 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9103 esac
d9898ee8 9104else
8d138742
CE
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_can_build_shared=no
9107fi
d9898ee8 9108
8d138742
CE
9109fi
9110
9111
9112
9113
9114
9115
b0322a85
CE
9116
9117
9118
9119
9120
8d138742
CE
9121#
9122# Check to make sure the static flag actually works.
9123#
9124wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 9126$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 9127if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 9128 $as_echo_n "(cached) " >&6
d9898ee8 9129else
8d138742
CE
9130 lt_cv_prog_compiler_static_works=no
9131 save_LDFLAGS="$LDFLAGS"
9132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9135 # The linker can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 if test -s conftest.err; then
9138 # Append any errors to the config.log.
9139 cat conftest.err 1>&5
b0322a85 9140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
9141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9142 if diff conftest.exp conftest.er2 >/dev/null; then
9143 lt_cv_prog_compiler_static_works=yes
9144 fi
9145 else
9146 lt_cv_prog_compiler_static_works=yes
9147 fi
9148 fi
9149 $RM -r conftest*
9150 LDFLAGS="$save_LDFLAGS"
d9898ee8 9151
d9898ee8 9152fi
b0322a85 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 9154$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
dd184caf 9155
8d138742
CE
9156if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9157 :
d9898ee8 9158else
8d138742
CE
9159 lt_prog_compiler_static=
9160fi
d9898ee8 9161
d9898ee8 9162
d9898ee8 9163
d9898ee8 9164
d9898ee8 9165
d9898ee8 9166
dd184caf 9167
b0322a85 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9170if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742 9171 $as_echo_n "(cached) " >&6
d9898ee8 9172else
8d138742
CE
9173 lt_cv_prog_compiler_c_o=no
9174 $RM -r conftest 2>/dev/null
9175 mkdir conftest
9176 cd conftest
9177 mkdir out
9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9179
8d138742
CE
9180 lt_compiler_flag="-o out/conftest2.$ac_objext"
9181 # Insert the option either (1) after the last *FLAGS variable, or
9182 # (2) before a word containing "conftest.", or (3) at the end.
9183 # Note that $ac_compile itself does not contain backslashes and begins
9184 # with a dollar sign (not a hyphen), so the echo should work correctly.
9185 lt_compile=`echo "$ac_compile" | $SED \
9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9188 -e 's:$: $lt_compiler_flag:'`
b0322a85 9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9190 (eval "$lt_compile" 2>out/conftest.err)
9191 ac_status=$?
9192 cat out/conftest.err >&5
b0322a85 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9195 then
9196 # The compiler can only warn and ignore the option if not recognized
9197 # So say no if there are warnings
b0322a85 9198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9201 lt_cv_prog_compiler_c_o=yes
9202 fi
9203 fi
9204 chmod u+w . 2>&5
9205 $RM conftest*
9206 # SGI C++ compiler will create directory out/ii_files/ for
9207 # template instantiation
9208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9209 $RM out/* && rmdir out
9210 cd ..
9211 $RM -r conftest
9212 $RM conftest*
d9898ee8 9213
d9898ee8 9214fi
b0322a85 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9216$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
dd184caf 9217
d9898ee8 9218
d9898ee8 9219
dd184caf 9220
d9898ee8 9221
8d138742 9222
b0322a85 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 9224$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 9225if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742 9226 $as_echo_n "(cached) " >&6
d9898ee8 9227else
8d138742
CE
9228 lt_cv_prog_compiler_c_o=no
9229 $RM -r conftest 2>/dev/null
9230 mkdir conftest
9231 cd conftest
9232 mkdir out
9233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9234
8d138742
CE
9235 lt_compiler_flag="-o out/conftest2.$ac_objext"
9236 # Insert the option either (1) after the last *FLAGS variable, or
9237 # (2) before a word containing "conftest.", or (3) at the end.
9238 # Note that $ac_compile itself does not contain backslashes and begins
9239 # with a dollar sign (not a hyphen), so the echo should work correctly.
9240 lt_compile=`echo "$ac_compile" | $SED \
9241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9243 -e 's:$: $lt_compiler_flag:'`
b0322a85 9244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
9245 (eval "$lt_compile" 2>out/conftest.err)
9246 ac_status=$?
9247 cat out/conftest.err >&5
b0322a85 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
9249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9250 then
9251 # The compiler can only warn and ignore the option if not recognized
9252 # So say no if there are warnings
b0322a85 9253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
9254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9256 lt_cv_prog_compiler_c_o=yes
9257 fi
9258 fi
9259 chmod u+w . 2>&5
9260 $RM conftest*
9261 # SGI C++ compiler will create directory out/ii_files/ for
9262 # template instantiation
9263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9264 $RM out/* && rmdir out
9265 cd ..
9266 $RM -r conftest
9267 $RM conftest*
dd184caf 9268
d9898ee8 9269fi
b0322a85 9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 9271$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 9272
9273
d9898ee8 9274
9275
8d138742
CE
9276hard_links="nottested"
9277if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9278 # do not overwrite the value of need_locks provided by the user
b0322a85 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
9280$as_echo_n "checking if we can lock with hard links... " >&6; }
9281 hard_links=yes
9282 $RM conftest*
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9284 touch conftest.a
9285 ln conftest.a conftest.b 2>&5 || hard_links=no
9286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
9288$as_echo "$hard_links" >&6; }
9289 if test "$hard_links" = no; then
b0322a85 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
9291$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9292 need_locks=warn
9293 fi
9294else
9295 need_locks=no
9296fi
d9898ee8 9297
9298
d9898ee8 9299
9300
d9898ee8 9301
9302
b0322a85 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
9304$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9305
9306 runpath_var=
9307 allow_undefined_flag=
9308 always_export_symbols=no
9309 archive_cmds=
9310 archive_expsym_cmds=
9311 compiler_needs_object=no
9312 enable_shared_with_static_runtimes=no
9313 export_dynamic_flag_spec=
9314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9315 hardcode_automatic=no
9316 hardcode_direct=no
9317 hardcode_direct_absolute=no
9318 hardcode_libdir_flag_spec=
8d138742
CE
9319 hardcode_libdir_separator=
9320 hardcode_minus_L=no
9321 hardcode_shlibpath_var=unsupported
9322 inherit_rpath=no
9323 link_all_deplibs=unknown
9324 module_cmds=
9325 module_expsym_cmds=
9326 old_archive_from_new_cmds=
9327 old_archive_from_expsyms_cmds=
9328 thread_safe_flag_spec=
9329 whole_archive_flag_spec=
9330 # include_expsyms should be a list of space-separated symbols to be *always*
9331 # included in the symbol list
9332 include_expsyms=
9333 # exclude_expsyms can be an extended regexp of symbols to exclude
9334 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9335 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9336 # as well as any symbol that contains `d'.
9337 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9338 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9339 # platforms (ab)use it in PIC code, but their linkers get confused if
9340 # the symbol is explicitly referenced. Since portable code cannot
9341 # rely on this symbol name, it's probably fine to never include it in
9342 # preloaded symbol tables.
9343 # Exclude shared library initialization/finalization symbols.
9344 extract_expsyms_cmds=
d9898ee8 9345
8d138742
CE
9346 case $host_os in
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9349 # When not using gcc, we currently assume that we are using
9350 # Microsoft Visual C++.
9351 if test "$GCC" != yes; then
9352 with_gnu_ld=no
9353 fi
9354 ;;
9355 interix*)
9356 # we just hope/assume this is gcc and not c89 (= MSVC++)
9357 with_gnu_ld=yes
9358 ;;
9359 openbsd*)
9360 with_gnu_ld=no
d9898ee8 9361 ;;
9362 esac
9363
8d138742 9364 ld_shlibs=yes
b0322a85
CE
9365
9366 # On some targets, GNU ld is compatible enough with the native linker
9367 # that we're better off using the native interface for both.
9368 lt_use_gnu_ld_interface=no
8d138742 9369 if test "$with_gnu_ld" = yes; then
b0322a85
CE
9370 case $host_os in
9371 aix*)
9372 # The AIX port of GNU ld has always aspired to compatibility
9373 # with the native linker. However, as the warning in the GNU ld
9374 # block says, versions before 2.19.5* couldn't really create working
9375 # shared libraries, regardless of the interface used.
9376 case `$LD -v 2>&1` in
9377 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9378 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9379 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9380 *)
9381 lt_use_gnu_ld_interface=yes
9382 ;;
9383 esac
9384 ;;
9385 *)
9386 lt_use_gnu_ld_interface=yes
9387 ;;
9388 esac
9389 fi
9390
9391 if test "$lt_use_gnu_ld_interface" = yes; then
8d138742
CE
9392 # If archive_cmds runs LD, not CC, wlarc should be empty
9393 wlarc='${wl}'
d9898ee8 9394
8d138742
CE
9395 # Set some defaults for GNU ld with shared library support. These
9396 # are reset later if shared libraries are not supported. Putting them
9397 # here allows them to be overridden if necessary.
9398 runpath_var=LD_RUN_PATH
9399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9400 export_dynamic_flag_spec='${wl}--export-dynamic'
9401 # ancient GNU ld didn't support --whole-archive et. al.
9402 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9403 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9404 else
9405 whole_archive_flag_spec=
9406 fi
9407 supports_anon_versioning=no
9408 case `$LD -v 2>&1` in
b0322a85 9409 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
9410 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9413 *\ 2.11.*) ;; # other 2.11 versions
9414 *) supports_anon_versioning=yes ;;
9415 esac
d9898ee8 9416
8d138742
CE
9417 # See if GNU ld supports shared libraries.
9418 case $host_os in
9419 aix[3-9]*)
9420 # On AIX/PPC, the GNU linker is very broken
9421 if test "$host_cpu" != ia64; then
9422 ld_shlibs=no
9423 cat <<_LT_EOF 1>&2
d9898ee8 9424
b0322a85 9425*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
9426*** to be unable to reliably create shared libraries on AIX.
9427*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
9428*** really care for shared libraries, you may want to install binutils
9429*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9430*** You will then need to restart the configuration process.
d9898ee8 9431
8d138742
CE
9432_LT_EOF
9433 fi
9434 ;;
d9898ee8 9435
8d138742
CE
9436 amigaos*)
9437 case $host_cpu in
9438 powerpc)
9439 # see comment about AmigaOS4 .so support
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds=''
9442 ;;
9443 m68k)
9444 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)'
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_minus_L=yes
9447 ;;
9448 esac
9449 ;;
d9898ee8 9450
8d138742
CE
9451 beos*)
9452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453 allow_undefined_flag=unsupported
9454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9455 # support --undefined. This deserves some investigation. FIXME
9456 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457 else
9458 ld_shlibs=no
9459 fi
9460 ;;
d9898ee8 9461
8d138742
CE
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9464 # as there is no search path for DLLs.
9465 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 9466 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
9467 allow_undefined_flag=unsupported
9468 always_export_symbols=no
9469 enable_shared_with_static_runtimes=yes
b0322a85
CE
9470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9471 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 9472
8d138742
CE
9473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9475 # If the export-symbols file already is a .def file (1st line
9476 # is EXPORTS), use it as is; otherwise, prepend...
9477 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9478 cp $export_symbols $output_objdir/$soname.def;
9479 else
9480 echo EXPORTS > $output_objdir/$soname.def;
9481 cat $export_symbols >> $output_objdir/$soname.def;
9482 fi~
9483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9484 else
9485 ld_shlibs=no
9486 fi
9487 ;;
d9898ee8 9488
b0322a85
CE
9489 haiku*)
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 link_all_deplibs=yes
9492 ;;
9493
8d138742
CE
9494 interix[3-9]*)
9495 hardcode_direct=no
9496 hardcode_shlibpath_var=no
9497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9498 export_dynamic_flag_spec='${wl}-E'
9499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9500 # Instead, shared libraries are loaded at an image base (0x10000000 by
9501 # default) and relocated if they conflict, which is a slow very memory
9502 # consuming and fragmenting process. To avoid this, we pick a random,
9503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9506 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'
9507 ;;
d9898ee8 9508
b0322a85 9509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
9510 tmp_diet=no
9511 if test "$host_os" = linux-dietlibc; then
9512 case $cc_basename in
9513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9514 esac
9515 fi
9516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9517 && test "$tmp_diet" = no
9518 then
b0322a85 9519 tmp_addflag=' $pic_flag'
8d138742
CE
9520 tmp_sharedflag='-shared'
9521 case $cc_basename,$host_cpu in
9522 pgcc*) # Portland Group C compiler
b0322a85 9523 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'
8d138742
CE
9524 tmp_addflag=' $pic_flag'
9525 ;;
b0322a85
CE
9526 pgf77* | pgf90* | pgf95* | pgfortran*)
9527 # Portland Group f77 and f90 compilers
9528 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'
8d138742
CE
9529 tmp_addflag=' $pic_flag -Mnomain' ;;
9530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9531 tmp_addflag=' -i_dynamic' ;;
9532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9533 tmp_addflag=' -i_dynamic -nofor_main' ;;
9534 ifc* | ifort*) # Intel Fortran compiler
9535 tmp_addflag=' -nofor_main' ;;
9536 lf95*) # Lahey Fortran 8.1
9537 whole_archive_flag_spec=
9538 tmp_sharedflag='--shared' ;;
b0322a85 9539 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
9540 tmp_sharedflag='-qmkshrobj'
9541 tmp_addflag= ;;
b0322a85
CE
9542 nvcc*) # Cuda Compiler Driver 2.2
9543 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'
9544 compiler_needs_object=yes
9545 ;;
8d138742
CE
9546 esac
9547 case `$CC -V 2>&1 | sed 5q` in
9548 *Sun\ C*) # Sun C 5.9
b0322a85 9549 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'
8d138742
CE
9550 compiler_needs_object=yes
9551 tmp_sharedflag='-G' ;;
9552 *Sun\ F*) # Sun Fortran 8.3
9553 tmp_sharedflag='-G' ;;
9554 esac
9555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 9556
8d138742
CE
9557 if test "x$supports_anon_versioning" = xyes; then
9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560 echo "local: *; };" >> $output_objdir/$libname.ver~
9561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9562 fi
d9898ee8 9563
8d138742 9564 case $cc_basename in
b0322a85 9565 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
9566 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9567 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
9570 if test "x$supports_anon_versioning" = xyes; then
9571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9573 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 9574 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
9575 fi
9576 ;;
9577 esac
9578 else
9579 ld_shlibs=no
9580 fi
9581 ;;
d9898ee8 9582
8d138742
CE
9583 netbsd*)
9584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9586 wlarc=
9587 else
b0322a85
CE
9588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9590 fi
9591 ;;
d9898ee8 9592
8d138742
CE
9593 solaris*)
9594 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9595 ld_shlibs=no
9596 cat <<_LT_EOF 1>&2
d9898ee8 9597
8d138742
CE
9598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9599*** create shared libraries on Solaris systems. Therefore, libtool
9600*** is disabling shared libraries support. We urge you to upgrade GNU
9601*** binutils to release 2.9.1 or newer. Another option is to modify
9602*** your PATH or compiler configuration so that the native linker is
9603*** used, and then restart.
d9898ee8 9604
8d138742
CE
9605_LT_EOF
9606 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
9607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9609 else
9610 ld_shlibs=no
9611 fi
9612 ;;
d9898ee8 9613
8d138742
CE
9614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9615 case `$LD -v 2>&1` in
9616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9617 ld_shlibs=no
9618 cat <<_LT_EOF 1>&2
d9898ee8 9619
8d138742
CE
9620*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9621*** reliably create shared libraries on SCO systems. Therefore, libtool
9622*** is disabling shared libraries support. We urge you to upgrade GNU
9623*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9624*** your PATH or compiler configuration so that the native linker is
9625*** used, and then restart.
d9898ee8 9626
8d138742
CE
9627_LT_EOF
9628 ;;
9629 *)
9630 # For security reasons, it is highly recommended that you always
9631 # use absolute paths for naming shared libraries, and exclude the
9632 # DT_RUNPATH tag from executables and libraries. But doing so
9633 # requires that you compile everything twice, which is a pain.
9634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638 else
9639 ld_shlibs=no
9640 fi
9641 ;;
9642 esac
9643 ;;
d9898ee8 9644
8d138742
CE
9645 sunos4*)
9646 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 wlarc=
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
d9898ee8 9650 ;;
8d138742 9651
d9898ee8 9652 *)
8d138742 9653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
9654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9656 else
9657 ld_shlibs=no
9658 fi
d9898ee8 9659 ;;
9660 esac
d9898ee8 9661
8d138742
CE
9662 if test "$ld_shlibs" = no; then
9663 runpath_var=
9664 hardcode_libdir_flag_spec=
9665 export_dynamic_flag_spec=
9666 whole_archive_flag_spec=
9667 fi
9668 else
9669 # PORTME fill in a description of your system's linker (not GNU ld)
9670 case $host_os in
9671 aix3*)
9672 allow_undefined_flag=unsupported
9673 always_export_symbols=yes
9674 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'
9675 # Note: this linker hardcodes the directories in LIBPATH if there
9676 # are no directories specified by -L.
9677 hardcode_minus_L=yes
9678 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9679 # Neither direct hardcoding nor static linking is supported with a
9680 # broken collect2.
9681 hardcode_direct=unsupported
9682 fi
9683 ;;
d9898ee8 9684
8d138742
CE
9685 aix[4-9]*)
9686 if test "$host_cpu" = ia64; then
9687 # On IA64, the linker does run time linking by default, so we don't
9688 # have to do anything special.
9689 aix_use_runtimelinking=no
9690 exp_sym_flag='-Bexport'
9691 no_entry_flag=""
9692 else
9693 # If we're using GNU nm, then we don't want the "-C" option.
9694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
9695 # Also, AIX nm treats weak defined symbols like other global
9696 # defined symbols, whereas GNU nm marks them as "W".
8d138742 9697 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 9698 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'
8d138742
CE
9699 else
9700 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'
9701 fi
9702 aix_use_runtimelinking=no
d9898ee8 9703
8d138742
CE
9704 # Test if we are trying to use run time linking or normal
9705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9706 # need to do runtime linking.
9707 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9708 for ld_flag in $LDFLAGS; do
9709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9710 aix_use_runtimelinking=yes
9711 break
9712 fi
9713 done
9714 ;;
9715 esac
d9898ee8 9716
8d138742
CE
9717 exp_sym_flag='-bexport'
9718 no_entry_flag='-bnoentry'
9719 fi
d9898ee8 9720
8d138742
CE
9721 # When large executables or shared objects are built, AIX ld can
9722 # have problems creating the table of contents. If linking a library
9723 # or program results in "error TOC overflow" add -mminimal-toc to
9724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9726
8d138742
CE
9727 archive_cmds=''
9728 hardcode_direct=yes
9729 hardcode_direct_absolute=yes
9730 hardcode_libdir_separator=':'
9731 link_all_deplibs=yes
9732 file_list_spec='${wl}-f,'
d9898ee8 9733
8d138742
CE
9734 if test "$GCC" = yes; then
9735 case $host_os in aix4.[012]|aix4.[012].*)
9736 # We only want to do this on AIX 4.2 and lower, the check
9737 # below for broken collect2 doesn't work under 4.3+
9738 collect2name=`${CC} -print-prog-name=collect2`
9739 if test -f "$collect2name" &&
9740 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9741 then
9742 # We have reworked collect2
9743 :
9744 else
9745 # We have old collect2
9746 hardcode_direct=unsupported
9747 # It fails to find uninstalled libraries when the uninstalled
9748 # path is not listed in the libpath. Setting hardcode_minus_L
9749 # to unsupported forces relinking
9750 hardcode_minus_L=yes
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_libdir_separator=
9753 fi
9754 ;;
9755 esac
9756 shared_flag='-shared'
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag="$shared_flag "'${wl}-G'
9759 fi
9760 else
9761 # not using gcc
9762 if test "$host_cpu" = ia64; then
9763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9764 # chokes on -Wl,-G. The following line is correct:
9765 shared_flag='-G'
9766 else
9767 if test "$aix_use_runtimelinking" = yes; then
9768 shared_flag='${wl}-G'
9769 else
9770 shared_flag='${wl}-bM:SRE'
9771 fi
9772 fi
9773 fi
d9898ee8 9774
8d138742
CE
9775 export_dynamic_flag_spec='${wl}-bexpall'
9776 # It seems that -bexpall does not export symbols beginning with
9777 # underscore (_), so it is better to generate a list of symbols to export.
9778 always_export_symbols=yes
9779 if test "$aix_use_runtimelinking" = yes; then
9780 # Warning - without using the other runtime loading flags (-brtl),
9781 # -berok will link without error, but may produce a broken library.
9782 allow_undefined_flag='-berok'
9783 # Determine the default libpath from the value encoded in an
9784 # empty executable.
b0322a85
CE
9785 if test "${lt_cv_aix_libpath+set}" = set; then
9786 aix_libpath=$lt_cv_aix_libpath
9787else
9788 if ${lt_cv_aix_libpath_+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790else
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9792/* end confdefs.h. */
d9898ee8 9793
8d138742
CE
9794int
9795main ()
9796{
d9898ee8 9797
8d138742
CE
9798 ;
9799 return 0;
9800}
9801_ACEOF
b0322a85 9802if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9803
b0322a85
CE
9804 lt_aix_libpath_sed='
9805 /Import File Strings/,/^$/ {
9806 /^0/ {
9807 s/^0 *\([^ ]*\) *$/\1/
9808 p
9809 }
9810 }'
9811 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9812 # Check for a 64-bit object if we didn't find anything.
9813 if test -z "$lt_cv_aix_libpath_"; then
9814 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9815 fi
9816fi
9817rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 if test -z "$lt_cv_aix_libpath_"; then
9820 lt_cv_aix_libpath_="/usr/lib:/lib"
9821 fi
d9898ee8 9822
8d138742 9823fi
d9898ee8 9824
b0322a85
CE
9825 aix_libpath=$lt_cv_aix_libpath_
9826fi
d9898ee8 9827
8d138742 9828 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 9829 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"
8d138742
CE
9830 else
9831 if test "$host_cpu" = ia64; then
9832 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9833 allow_undefined_flag="-z nodefs"
9834 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"
9835 else
9836 # Determine the default libpath from the value encoded in an
9837 # empty executable.
b0322a85
CE
9838 if test "${lt_cv_aix_libpath+set}" = set; then
9839 aix_libpath=$lt_cv_aix_libpath
9840else
9841 if ${lt_cv_aix_libpath_+:} false; then :
9842 $as_echo_n "(cached) " >&6
8d138742 9843else
b0322a85
CE
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h. */
9846
9847int
9848main ()
9849{
9850
9851 ;
9852 return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9856
b0322a85
CE
9857 lt_aix_libpath_sed='
9858 /Import File Strings/,/^$/ {
9859 /^0/ {
9860 s/^0 *\([^ ]*\) *$/\1/
9861 p
9862 }
9863 }'
9864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865 # Check for a 64-bit object if we didn't find anything.
9866 if test -z "$lt_cv_aix_libpath_"; then
9867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868 fi
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$lt_cv_aix_libpath_"; then
9873 lt_cv_aix_libpath_="/usr/lib:/lib"
9874 fi
d9898ee8 9875
8d138742 9876fi
d9898ee8 9877
b0322a85
CE
9878 aix_libpath=$lt_cv_aix_libpath_
9879fi
d9898ee8 9880
8d138742
CE
9881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9882 # Warning - without using the other run time loading flags,
9883 # -berok will link without error, but may produce a broken library.
9884 no_undefined_flag=' ${wl}-bernotok'
9885 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
9886 if test "$with_gnu_ld" = yes; then
9887 # We only use this code for GNU lds that support --whole-archive.
9888 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9889 else
9890 # Exported symbols can be pulled into shared objects from archives
9891 whole_archive_flag_spec='$convenience'
9892 fi
8d138742
CE
9893 archive_cmds_need_lc=yes
9894 # This is similar to how AIX traditionally builds its shared libraries.
9895 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'
9896 fi
9897 fi
9898 ;;
d9898ee8 9899
8d138742
CE
9900 amigaos*)
9901 case $host_cpu in
9902 powerpc)
9903 # see comment about AmigaOS4 .so support
9904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds=''
9906 ;;
9907 m68k)
9908 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)'
9909 hardcode_libdir_flag_spec='-L$libdir'
9910 hardcode_minus_L=yes
9911 ;;
9912 esac
9913 ;;
d9898ee8 9914
8d138742
CE
9915 bsdi[45]*)
9916 export_dynamic_flag_spec=-rdynamic
9917 ;;
d9898ee8 9918
8d138742
CE
9919 cygwin* | mingw* | pw32* | cegcc*)
9920 # When not using gcc, we currently assume that we are using
9921 # Microsoft Visual C++.
9922 # hardcode_libdir_flag_spec is actually meaningless, as there is
9923 # no search path for DLLs.
b0322a85
CE
9924 case $cc_basename in
9925 cl*)
9926 # Native MSVC
9927 hardcode_libdir_flag_spec=' '
9928 allow_undefined_flag=unsupported
9929 always_export_symbols=yes
9930 file_list_spec='@'
9931 # Tell ltmain to make .lib files, not .a files.
9932 libext=lib
9933 # Tell ltmain to make .dll files, not .so files.
9934 shrext_cmds=".dll"
9935 # FIXME: Setting linknames here is a bad hack.
9936 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9937 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9938 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9939 else
9940 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9941 fi~
9942 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9943 linknames='
9944 # The linker will not automatically build a static lib if we build a DLL.
9945 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9946 enable_shared_with_static_runtimes=yes
9947 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9949 # Don't use ranlib
9950 old_postinstall_cmds='chmod 644 $oldlib'
9951 postlink_cmds='lt_outputfile="@OUTPUT@"~
9952 lt_tool_outputfile="@TOOL_OUTPUT@"~
9953 case $lt_outputfile in
9954 *.exe|*.EXE) ;;
9955 *)
9956 lt_outputfile="$lt_outputfile.exe"
9957 lt_tool_outputfile="$lt_tool_outputfile.exe"
9958 ;;
9959 esac~
9960 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9961 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9962 $RM "$lt_outputfile.manifest";
9963 fi'
9964 ;;
9965 *)
9966 # Assume MSVC wrapper
9967 hardcode_libdir_flag_spec=' '
9968 allow_undefined_flag=unsupported
9969 # Tell ltmain to make .lib files, not .a files.
9970 libext=lib
9971 # Tell ltmain to make .dll files, not .so files.
9972 shrext_cmds=".dll"
9973 # FIXME: Setting linknames here is a bad hack.
9974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9975 # The linker will automatically build a .lib file if we build a DLL.
9976 old_archive_from_new_cmds='true'
9977 # FIXME: Should let the user specify the lib program.
9978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9979 enable_shared_with_static_runtimes=yes
9980 ;;
9981 esac
8d138742 9982 ;;
d9898ee8 9983
8d138742 9984 darwin* | rhapsody*)
d9898ee8 9985
d9898ee8 9986
8d138742
CE
9987 archive_cmds_need_lc=no
9988 hardcode_direct=no
9989 hardcode_automatic=yes
9990 hardcode_shlibpath_var=unsupported
b0322a85
CE
9991 if test "$lt_cv_ld_force_load" = "yes"; then
9992 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\"`'
9993
9994 else
9995 whole_archive_flag_spec=''
9996 fi
8d138742
CE
9997 link_all_deplibs=yes
9998 allow_undefined_flag="$_lt_dar_allow_undefined"
9999 case $cc_basename in
10000 ifort*) _lt_dar_can_shared=yes ;;
10001 *) _lt_dar_can_shared=$GCC ;;
10002 esac
10003 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 10004 output_verbose_link_cmd=func_echo_all
8d138742
CE
10005 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10006 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10007 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}"
10008 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}"
d9898ee8 10009
8d138742
CE
10010 else
10011 ld_shlibs=no
10012 fi
d9898ee8 10013
8d138742 10014 ;;
d9898ee8 10015
8d138742
CE
10016 dgux*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
d9898ee8 10021
8d138742
CE
10022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10023 # support. Future versions do this automatically, but an explicit c++rt0.o
10024 # does not break anything, and helps significantly (at the cost of a little
10025 # extra space).
10026 freebsd2.2*)
10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
d9898ee8 10032
8d138742 10033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 10034 freebsd2.*)
8d138742
CE
10035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes
10037 hardcode_minus_L=yes
10038 hardcode_shlibpath_var=no
10039 ;;
d9898ee8 10040
8d138742
CE
10041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10042 freebsd* | dragonfly*)
b0322a85 10043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10044 hardcode_libdir_flag_spec='-R$libdir'
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10047 ;;
d9898ee8 10048
8d138742
CE
10049 hpux9*)
10050 if test "$GCC" = yes; then
b0322a85 10051 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8d138742
CE
10052 else
10053 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'
10054 fi
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_direct=yes
d9898ee8 10058
8d138742
CE
10059 # hardcode_minus_L: Not really in the search PATH,
10060 # but as the default location of the library.
10061 hardcode_minus_L=yes
10062 export_dynamic_flag_spec='${wl}-E'
10063 ;;
d9898ee8 10064
8d138742 10065 hpux10*)
b0322a85
CE
10066 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10067 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10068 else
10069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10070 fi
10071 if test "$with_gnu_ld" = no; then
10072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
10073 hardcode_libdir_separator=:
10074 hardcode_direct=yes
10075 hardcode_direct_absolute=yes
10076 export_dynamic_flag_spec='${wl}-E'
10077 # hardcode_minus_L: Not really in the search PATH,
10078 # but as the default location of the library.
10079 hardcode_minus_L=yes
10080 fi
10081 ;;
d9898ee8 10082
8d138742 10083 hpux11*)
b0322a85 10084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8d138742
CE
10085 case $host_cpu in
10086 hppa*64*)
10087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 ;;
10089 ia64*)
b0322a85 10090 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10091 ;;
10092 *)
b0322a85 10093 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10094 ;;
10095 esac
10096 else
10097 case $host_cpu in
10098 hppa*64*)
10099 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 ;;
10101 ia64*)
10102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10103 ;;
10104 *)
b0322a85
CE
10105
10106 # Older versions of the 11.00 compiler do not understand -b yet
10107 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10109$as_echo_n "checking if $CC understands -b... " >&6; }
10110if ${lt_cv_prog_compiler__b+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112else
10113 lt_cv_prog_compiler__b=no
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS -b"
10116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10118 # The linker can only warn and ignore the option if not recognized
10119 # So say no if there are warnings
10120 if test -s conftest.err; then
10121 # Append any errors to the config.log.
10122 cat conftest.err 1>&5
10123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10125 if diff conftest.exp conftest.er2 >/dev/null; then
10126 lt_cv_prog_compiler__b=yes
10127 fi
10128 else
10129 lt_cv_prog_compiler__b=yes
10130 fi
10131 fi
10132 $RM -r conftest*
10133 LDFLAGS="$save_LDFLAGS"
10134
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10137$as_echo "$lt_cv_prog_compiler__b" >&6; }
10138
10139if test x"$lt_cv_prog_compiler__b" = xyes; then
10140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10141else
10142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10143fi
10144
8d138742
CE
10145 ;;
10146 esac
10147 fi
10148 if test "$with_gnu_ld" = no; then
10149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator=:
d9898ee8 10151
8d138742
CE
10152 case $host_cpu in
10153 hppa*64*|ia64*)
10154 hardcode_direct=no
10155 hardcode_shlibpath_var=no
10156 ;;
10157 *)
10158 hardcode_direct=yes
10159 hardcode_direct_absolute=yes
10160 export_dynamic_flag_spec='${wl}-E'
d9898ee8 10161
8d138742
CE
10162 # hardcode_minus_L: Not really in the search PATH,
10163 # but as the default location of the library.
10164 hardcode_minus_L=yes
10165 ;;
10166 esac
10167 fi
10168 ;;
d9898ee8 10169
8d138742
CE
10170 irix5* | irix6* | nonstopux*)
10171 if test "$GCC" = yes; then
b0322a85 10172 archive_cmds='$CC -shared $pic_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'
8d138742
CE
10173 # Try to use the -exported_symbol ld option, if it does not
10174 # work, assume that -exports_file does not work either and
10175 # implicitly export all symbols.
b0322a85
CE
10176 # This should be the same for all languages, so no per-tag cache variable.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10178$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10179if ${lt_cv_irix_exported_symbol+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181else
10182 save_LDFLAGS="$LDFLAGS"
10183 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h. */
10186int foo (void) { return 0; }
8d138742 10187_ACEOF
b0322a85
CE
10188if ac_fn_c_try_link "$LINENO"; then :
10189 lt_cv_irix_exported_symbol=yes
8d138742 10190else
b0322a85 10191 lt_cv_irix_exported_symbol=no
8d138742 10192fi
b0322a85
CE
10193rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LDFLAGS="$save_LDFLAGS"
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10198$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10199 if test "$lt_cv_irix_exported_symbol" = yes; then
10200 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10201 fi
8d138742 10202 else
b0322a85
CE
10203 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'
10204 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'
8d138742
CE
10205 fi
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208 hardcode_libdir_separator=:
10209 inherit_rpath=yes
10210 link_all_deplibs=yes
10211 ;;
d9898ee8 10212
8d138742
CE
10213 netbsd*)
10214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10216 else
10217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10218 fi
10219 hardcode_libdir_flag_spec='-R$libdir'
10220 hardcode_direct=yes
10221 hardcode_shlibpath_var=no
10222 ;;
d9898ee8 10223
8d138742
CE
10224 newsos6)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=yes
10227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10228 hardcode_libdir_separator=:
10229 hardcode_shlibpath_var=no
10230 ;;
d9898ee8 10231
8d138742
CE
10232 *nto* | *qnx*)
10233 ;;
d9898ee8 10234
8d138742
CE
10235 openbsd*)
10236 if test -f /usr/libexec/ld.so; then
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10239 hardcode_direct_absolute=yes
10240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 export_dynamic_flag_spec='${wl}-E'
10245 else
10246 case $host_os in
10247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 ;;
10251 *)
10252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10254 ;;
10255 esac
10256 fi
10257 else
10258 ld_shlibs=no
10259 fi
10260 ;;
d9898ee8 10261
8d138742
CE
10262 os2*)
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_minus_L=yes
10265 allow_undefined_flag=unsupported
b0322a85 10266 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'
8d138742
CE
10267 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10268 ;;
d9898ee8 10269
8d138742
CE
10270 osf3*)
10271 if test "$GCC" = yes; then
10272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 10273 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'
8d138742
CE
10274 else
10275 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 10276 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'
8d138742
CE
10277 fi
10278 archive_cmds_need_lc='no'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 ;;
d9898ee8 10282
8d138742
CE
10283 osf4* | osf5*) # as osf3* with the addition of -msym flag
10284 if test "$GCC" = yes; then
10285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 10286 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
8d138742
CE
10287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10288 else
10289 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 10290 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'
8d138742 10291 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~
b0322a85 10292 $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'
d9898ee8 10293
8d138742
CE
10294 # Both c and cxx compiler support -rpath directly
10295 hardcode_libdir_flag_spec='-rpath $libdir'
10296 fi
10297 archive_cmds_need_lc='no'
10298 hardcode_libdir_separator=:
10299 ;;
d9898ee8 10300
8d138742
CE
10301 solaris*)
10302 no_undefined_flag=' -z defs'
10303 if test "$GCC" = yes; then
10304 wlarc='${wl}'
b0322a85 10305 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 10307 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8d138742
CE
10308 else
10309 case `$CC -V 2>&1` in
10310 *"Compilers 5.0"*)
10311 wlarc=''
10312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10315 ;;
10316 *)
10317 wlarc='${wl}'
10318 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10320 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10321 ;;
10322 esac
10323 fi
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_shlibpath_var=no
10326 case $host_os in
10327 solaris2.[0-5] | solaris2.[0-5].*) ;;
10328 *)
10329 # The compiler driver will combine and reorder linker options,
10330 # but understands `-z linker_flag'. GCC discards it without `$wl',
10331 # but is careful enough not to reorder.
10332 # Supported since Solaris 2.6 (maybe 2.5.1?)
10333 if test "$GCC" = yes; then
10334 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10335 else
10336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10337 fi
10338 ;;
10339 esac
10340 link_all_deplibs=yes
10341 ;;
d9898ee8 10342
8d138742
CE
10343 sunos4*)
10344 if test "x$host_vendor" = xsequent; then
10345 # Use $CC to link under sequent, because it throws in some extra .o
10346 # files that make .init and .fini sections work.
10347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348 else
10349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10350 fi
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_direct=yes
10353 hardcode_minus_L=yes
10354 hardcode_shlibpath_var=no
10355 ;;
d9898ee8 10356
8d138742
CE
10357 sysv4)
10358 case $host_vendor in
10359 sni)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=yes # is this really true???
10362 ;;
10363 siemens)
10364 ## LD is ld it makes a PLAMLIB
10365 ## CC just makes a GrossModule.
10366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10367 reload_cmds='$CC -r -o $output$reload_objs'
10368 hardcode_direct=no
10369 ;;
10370 motorola)
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10373 ;;
10374 esac
10375 runpath_var='LD_RUN_PATH'
10376 hardcode_shlibpath_var=no
10377 ;;
d9898ee8 10378
8d138742
CE
10379 sysv4.3*)
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_shlibpath_var=no
10382 export_dynamic_flag_spec='-Bexport'
10383 ;;
d9898ee8 10384
8d138742
CE
10385 sysv4*MP*)
10386 if test -d /usr/nec; then
10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 hardcode_shlibpath_var=no
10389 runpath_var=LD_RUN_PATH
10390 hardcode_runpath_var=yes
10391 ld_shlibs=yes
10392 fi
10393 ;;
d9898ee8 10394
8d138742
CE
10395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10396 no_undefined_flag='${wl}-z,text'
10397 archive_cmds_need_lc=no
10398 hardcode_shlibpath_var=no
10399 runpath_var='LD_RUN_PATH'
d9898ee8 10400
8d138742
CE
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 fi
10408 ;;
d9898ee8 10409
8d138742
CE
10410 sysv5* | sco3.2v5* | sco5v6*)
10411 # Note: We can NOT use -z defs as we might desire, because we do not
10412 # link with -lc, and that would cause any symbols used from libc to
10413 # always be unresolved, which means just about no library would
10414 # ever link correctly. If we're not using GNU ld we use -z text
10415 # though, which does catch some bad symbols but isn't as heavy-handed
10416 # as -z defs.
10417 no_undefined_flag='${wl}-z,text'
10418 allow_undefined_flag='${wl}-z,nodefs'
10419 archive_cmds_need_lc=no
10420 hardcode_shlibpath_var=no
10421 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10422 hardcode_libdir_separator=':'
10423 link_all_deplibs=yes
10424 export_dynamic_flag_spec='${wl}-Bexport'
10425 runpath_var='LD_RUN_PATH'
d9898ee8 10426
8d138742
CE
10427 if test "$GCC" = yes; then
10428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 fi
10434 ;;
d9898ee8 10435
8d138742
CE
10436 uts4*)
10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_libdir_flag_spec='-L$libdir'
10439 hardcode_shlibpath_var=no
10440 ;;
d9898ee8 10441
8d138742
CE
10442 *)
10443 ld_shlibs=no
10444 ;;
10445 esac
d9898ee8 10446
8d138742
CE
10447 if test x$host_vendor = xsni; then
10448 case $host in
10449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10450 export_dynamic_flag_spec='${wl}-Blargedynsym'
10451 ;;
10452 esac
10453 fi
10454 fi
d9898ee8 10455
b0322a85 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
10457$as_echo "$ld_shlibs" >&6; }
10458test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 10459
8d138742 10460with_gnu_ld=$with_gnu_ld
d9898ee8 10461
d9898ee8 10462
d9898ee8 10463
d9898ee8 10464
d9898ee8 10465
d9898ee8 10466
d9898ee8 10467
d9898ee8 10468
d9898ee8 10469
d9898ee8 10470
d9898ee8 10471
d9898ee8 10472
d9898ee8 10473
d9898ee8 10474
d9898ee8 10475
8d138742
CE
10476#
10477# Do we need to explicitly link libc?
10478#
10479case "x$archive_cmds_need_lc" in
10480x|xyes)
10481 # Assume -lc should be added
10482 archive_cmds_need_lc=yes
d9898ee8 10483
8d138742
CE
10484 if test "$enable_shared" = yes && test "$GCC" = yes; then
10485 case $archive_cmds in
10486 *'~'*)
10487 # FIXME: we may have to deal with multi-command sequences.
10488 ;;
10489 '$CC '*)
10490 # Test whether the compiler implicitly links with -lc since on some
10491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10492 # to ld, don't add -lc before -lgcc.
b0322a85 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 10494$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
10495if ${lt_cv_archive_cmds_need_lc+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497else
10498 $RM conftest*
10499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 10500
b0322a85 10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
b0322a85
CE
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; } 2>conftest.err; then
10506 soname=conftest
10507 lib=conftest
10508 libobjs=conftest.$ac_objext
10509 deplibs=
10510 wl=$lt_prog_compiler_wl
10511 pic_flag=$lt_prog_compiler_pic
10512 compiler_flags=-v
10513 linker_flags=-v
10514 verstring=
10515 output_objdir=.
10516 libname=conftest
10517 lt_save_allow_undefined_flag=$allow_undefined_flag
10518 allow_undefined_flag=
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
10520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10521 ac_status=$?
b0322a85
CE
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; }
10524 then
10525 lt_cv_archive_cmds_need_lc=no
10526 else
10527 lt_cv_archive_cmds_need_lc=yes
10528 fi
10529 allow_undefined_flag=$lt_save_allow_undefined_flag
10530 else
10531 cat conftest.err 1>&5
10532 fi
10533 $RM conftest*
10534
10535fi
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10537$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10538 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8d138742
CE
10539 ;;
10540 esac
10541 fi
10542 ;;
10543esac
d9898ee8 10544
d9898ee8 10545
d9898ee8 10546
d9898ee8 10547
d9898ee8 10548
d9898ee8 10549
d9898ee8 10550
d9898ee8 10551
d9898ee8 10552
d9898ee8 10553
d9898ee8 10554
d9898ee8 10555
d9898ee8 10556
d9898ee8 10557
d9898ee8 10558
d9898ee8 10559
10560
d9898ee8 10561
d9898ee8 10562
d9898ee8 10563
d9898ee8 10564
d9898ee8 10565
10566
d9898ee8 10567
d9898ee8 10568
10569
dd184caf 10570
d9898ee8 10571
d9898ee8 10572
d9898ee8 10573
d9898ee8 10574
d9898ee8 10575
d9898ee8 10576
d9898ee8 10577
d9898ee8 10578
d9898ee8 10579
d9898ee8 10580
d9898ee8 10581
d9898ee8 10582
d9898ee8 10583
10584
d9898ee8 10585
d9898ee8 10586
10587
d9898ee8 10588
10589
d9898ee8 10590
d9898ee8 10591
10592
dd184caf 10593
d9898ee8 10594
d9898ee8 10595
10596
10597
d9898ee8 10598
d9898ee8 10599
d9898ee8 10600
d9898ee8 10601
d9898ee8 10602
d9898ee8 10603
d9898ee8 10604
d9898ee8 10605
d9898ee8 10606
d9898ee8 10607
d9898ee8 10608
d9898ee8 10609
d9898ee8 10610
dd184caf 10611
dd184caf 10612
d9898ee8 10613
d9898ee8 10614
d9898ee8 10615
d9898ee8 10616
d9898ee8 10617
d9898ee8 10618
dd184caf 10619
dd184caf 10620
d9898ee8 10621
d9898ee8 10622
d9898ee8 10623
d9898ee8 10624
d9898ee8 10625
d9898ee8 10626
d9898ee8 10627
d9898ee8 10628
d9898ee8 10629
d9898ee8 10630
d9898ee8 10631
d9898ee8 10632
d9898ee8 10633
d9898ee8 10634
d9898ee8 10635
d9898ee8 10636
d9898ee8 10637
d9898ee8 10638
d9898ee8 10639
d9898ee8 10640
d9898ee8 10641
d9898ee8 10642
d9898ee8 10643
d9898ee8 10644
10645
d9898ee8 10646
d9898ee8 10647
d9898ee8 10648
d9898ee8 10649
d9898ee8 10650
d9898ee8 10651
d9898ee8 10652
d9898ee8 10653
d9898ee8 10654
ac40fd9e 10655
ac40fd9e 10656
d9898ee8 10657
10658
d9898ee8 10659
d9898ee8 10660
d9898ee8 10661
d9898ee8 10662
d9898ee8 10663
d9898ee8 10664
d9898ee8 10665
d9898ee8 10666
d9898ee8 10667
d9898ee8 10668
d9898ee8 10669
d9898ee8 10670
d9898ee8 10671
d9898ee8 10672
10673
d9898ee8 10674
d9898ee8 10675
d9898ee8 10676
10677
d9898ee8 10678
d9898ee8 10679
d9898ee8 10680
d9898ee8 10681
d9898ee8 10682
d9898ee8 10683
d9898ee8 10684
ac40fd9e 10685
d9898ee8 10686
d9898ee8 10687
d9898ee8 10688
d9898ee8 10689
8d138742
CE
10690
10691
10692
10693
10694
10695
b0322a85 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
10697$as_echo_n "checking dynamic linker characteristics... " >&6; }
10698
10699if test "$GCC" = yes; then
10700 case $host_os in
10701 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10702 *) lt_awk_arg="/^libraries:/" ;;
10703 esac
b0322a85
CE
10704 case $host_os in
10705 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10706 *) lt_sed_strip_eq="s,=/,/,g" ;;
10707 esac
10708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10709 case $lt_search_path_spec in
10710 *\;*)
8d138742
CE
10711 # if the path contains ";" then we assume it to be the separator
10712 # otherwise default to the standard path separator (i.e. ":") - it is
10713 # assumed that no part of a normal pathname contains ";" but that should
10714 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10716 ;;
10717 *)
10718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10719 ;;
10720 esac
8d138742
CE
10721 # Ok, now we have the path, separated by spaces, we can step through it
10722 # and add multilib dir if necessary.
10723 lt_tmp_lt_search_path_spec=
10724 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10725 for lt_sys_path in $lt_search_path_spec; do
10726 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10728 else
10729 test -d "$lt_sys_path" && \
10730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10731 fi
10732 done
b0322a85 10733 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
10734BEGIN {RS=" "; FS="/|\n";} {
10735 lt_foo="";
10736 lt_count=0;
10737 for (lt_i = NF; lt_i > 0; lt_i--) {
10738 if ($lt_i != "" && $lt_i != ".") {
10739 if ($lt_i == "..") {
10740 lt_count++;
10741 } else {
10742 if (lt_count == 0) {
10743 lt_foo="/" $lt_i lt_foo;
10744 } else {
10745 lt_count--;
10746 }
10747 }
10748 }
10749 }
10750 if (lt_foo != "") { lt_freq[lt_foo]++; }
10751 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10752}'`
b0322a85
CE
10753 # AWK program above erroneously prepends '/' to C:/dos/paths
10754 # for these hosts.
10755 case $host_os in
10756 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10757 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10758 esac
10759 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10760else
10761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10762fi
10763library_names_spec=
10764libname_spec='lib$name'
10765soname_spec=
10766shrext_cmds=".so"
10767postinstall_cmds=
10768postuninstall_cmds=
10769finish_cmds=
10770finish_eval=
10771shlibpath_var=
10772shlibpath_overrides_runpath=unknown
10773version_type=none
10774dynamic_linker="$host_os ld.so"
10775sys_lib_dlsearch_path_spec="/lib /usr/lib"
10776need_lib_prefix=unknown
10777hardcode_into_libs=no
10778
10779# when you set need_version to no, make sure it does not cause -set_version
10780# flags to be left without arguments
10781need_version=unknown
10782
10783case $host_os in
10784aix3*)
b0322a85 10785 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10787 shlibpath_var=LIBPATH
10788
10789 # AIX 3 has no versioning support, so we append a major version to the name.
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 ;;
10792
10793aix[4-9]*)
b0322a85 10794 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10795 need_lib_prefix=no
10796 need_version=no
10797 hardcode_into_libs=yes
10798 if test "$host_cpu" = ia64; then
10799 # AIX 5 supports IA64
10800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 else
10803 # With GCC up to 2.95.x, collect2 would create an import file
10804 # for dependence libraries. The import file would start with
10805 # the line `#! .'. This would cause the generated library to
10806 # depend on `.', always an invalid library. This was fixed in
10807 # development snapshots of GCC prior to 3.0.
10808 case $host_os in
10809 aix4 | aix4.[01] | aix4.[01].*)
d9898ee8 10810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10811 echo ' yes '
8d138742 10812 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 10813 :
10814 else
10815 can_build_shared=no
10816 fi
10817 ;;
10818 esac
10819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10820 # soname into executable. Probably we can add versioning support to
10821 # collect2, so additional links can be useful in future.
10822 if test "$aix_use_runtimelinking" = yes; then
10823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10824 # instead of lib<name>.a to let people know that these are not
10825 # typical AIX shared libraries.
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 else
10828 # We preserve .a as extension for shared libraries through AIX4.2
10829 # and later when we are not doing run time linking.
10830 library_names_spec='${libname}${release}.a $libname.a'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 fi
10833 shlibpath_var=LIBPATH
10834 fi
10835 ;;
10836
10837amigaos*)
8d138742
CE
10838 case $host_cpu in
10839 powerpc)
10840 # Since July 2007 AmigaOS4 officially supports .so libraries.
10841 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 ;;
10844 m68k)
10845 library_names_spec='$libname.ixlibrary $libname.a'
10846 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 10847 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'
8d138742
CE
10848 ;;
10849 esac
d9898ee8 10850 ;;
10851
10852beos*)
10853 library_names_spec='${libname}${shared_ext}'
10854 dynamic_linker="$host_os ld.so"
10855 shlibpath_var=LIBRARY_PATH
10856 ;;
10857
10858bsdi[45]*)
b0322a85 10859 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10860 need_version=no
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10867 # the default ld.so.conf also contains /usr/contrib/lib and
10868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10869 # libtool to hard-code these into programs
10870 ;;
10871
8d138742 10872cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10873 version_type=windows
10874 shrext_cmds=".dll"
10875 need_version=no
10876 need_lib_prefix=no
10877
b0322a85
CE
10878 case $GCC,$cc_basename in
10879 yes,*)
10880 # gcc
d9898ee8 10881 library_names_spec='$libname.dll.a'
10882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10883 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10885 dldir=$destdir/`dirname \$dlpath`~
10886 test -d \$dldir || mkdir -p \$dldir~
10887 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10888 chmod a+x \$dldir/$dlname~
10889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10891 fi'
d9898ee8 10892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10893 dlpath=$dir/\$dldll~
8d138742 10894 $RM \$dlpath'
d9898ee8 10895 shlibpath_overrides_runpath=yes
10896
10897 case $host_os in
10898 cygwin*)
10899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10901
10902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10903 ;;
8d138742 10904 mingw* | cegcc*)
d9898ee8 10905 # MinGW DLLs use traditional 'lib' prefix
10906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 10907 ;;
10908 pw32*)
10909 # pw32 DLLs use 'pw' prefix rather than 'lib'
10910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10911 ;;
10912 esac
b0322a85
CE
10913 dynamic_linker='Win32 ld.exe'
10914 ;;
10915
10916 *,cl*)
10917 # Native MSVC
10918 libname_spec='$name'
10919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10920 library_names_spec='${libname}.dll.lib'
10921
10922 case $build_os in
10923 mingw*)
10924 sys_lib_search_path_spec=
10925 lt_save_ifs=$IFS
10926 IFS=';'
10927 for lt_path in $LIB
10928 do
10929 IFS=$lt_save_ifs
10930 # Let DOS variable expansion print the short 8.3 style file name.
10931 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10932 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10933 done
10934 IFS=$lt_save_ifs
10935 # Convert to MSYS style.
10936 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10937 ;;
10938 cygwin*)
10939 # Convert to unix form, then to dos form, then back to unix form
10940 # but this time dos style (no spaces!) so that the unix form looks
10941 # like /cygdrive/c/PROGRA~1:/cygdr...
10942 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10943 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10944 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10945 ;;
10946 *)
10947 sys_lib_search_path_spec="$LIB"
10948 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10949 # It is most probably a Windows format PATH.
10950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10951 else
10952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10953 fi
10954 # FIXME: find the short name or the path components, as spaces are
10955 # common. (e.g. "Program Files" -> "PROGRA~1")
10956 ;;
10957 esac
10958
10959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10960 postinstall_cmds='base_file=`basename \${file}`~
10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10962 dldir=$destdir/`dirname \$dlpath`~
10963 test -d \$dldir || mkdir -p \$dldir~
10964 $install_prog $dir/$dlname \$dldir/$dlname'
10965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10966 dlpath=$dir/\$dldll~
10967 $RM \$dlpath'
10968 shlibpath_overrides_runpath=yes
10969 dynamic_linker='Win32 link.exe'
d9898ee8 10970 ;;
10971
10972 *)
b0322a85 10973 # Assume MSVC wrapper
d9898ee8 10974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10975 dynamic_linker='Win32 ld.exe'
d9898ee8 10976 ;;
10977 esac
d9898ee8 10978 # FIXME: first we should search . and the directory the executable is in
10979 shlibpath_var=PATH
10980 ;;
10981
10982darwin* | rhapsody*)
10983 dynamic_linker="$host_os dyld"
10984 version_type=darwin
10985 need_lib_prefix=no
10986 need_version=no
8d138742 10987 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10988 soname_spec='${libname}${release}${major}$shared_ext'
10989 shlibpath_overrides_runpath=yes
10990 shlibpath_var=DYLD_LIBRARY_PATH
10991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10992
8d138742 10993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10995 ;;
10996
10997dgux*)
b0322a85 10998 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10999 need_lib_prefix=no
11000 need_version=no
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 ;;
11005
d9898ee8 11006freebsd* | dragonfly*)
11007 # DragonFly does not have aout. When/if they implement a new
11008 # versioning mechanism, adjust this.
11009 if test -x /usr/bin/objformat; then
11010 objformat=`/usr/bin/objformat`
11011 else
11012 case $host_os in
b0322a85 11013 freebsd[23].*) objformat=aout ;;
d9898ee8 11014 *) objformat=elf ;;
11015 esac
11016 fi
11017 version_type=freebsd-$objformat
11018 case $version_type in
11019 freebsd-elf*)
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 need_version=no
11022 need_lib_prefix=no
11023 ;;
11024 freebsd-*)
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11026 need_version=yes
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY_PATH
11030 case $host_os in
b0322a85 11031 freebsd2.*)
d9898ee8 11032 shlibpath_overrides_runpath=yes
11033 ;;
11034 freebsd3.[01]* | freebsdelf3.[01]*)
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 ;;
11038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11040 shlibpath_overrides_runpath=no
11041 hardcode_into_libs=yes
11042 ;;
ac40fd9e 11043 *) # from 4.6 on, and DragonFly
d9898ee8 11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 ;;
11047 esac
11048 ;;
11049
11050gnu*)
b0322a85 11051 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11059 ;;
11060
11061haiku*)
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 need_lib_prefix=no
11064 need_version=no
11065 dynamic_linker="$host_os runtime_loader"
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 11071 hardcode_into_libs=yes
11072 ;;
11073
11074hpux9* | hpux10* | hpux11*)
11075 # Give a soname corresponding to the major version so that dld.sl refuses to
11076 # link against other versions.
11077 version_type=sunos
11078 need_lib_prefix=no
11079 need_version=no
11080 case $host_cpu in
11081 ia64*)
11082 shrext_cmds='.so'
11083 hardcode_into_libs=yes
11084 dynamic_linker="$host_os dld.so"
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 if test "X$HPUX_IA64_MODE" = X32; then
11090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11091 else
11092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11093 fi
11094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11095 ;;
8d138742
CE
11096 hppa*64*)
11097 shrext_cmds='.sl'
11098 hardcode_into_libs=yes
11099 dynamic_linker="$host_os dld.sl"
11100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106 ;;
11107 *)
d9898ee8 11108 shrext_cmds='.sl'
11109 dynamic_linker="$host_os dld.sl"
11110 shlibpath_var=SHLIB_PATH
11111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 ;;
11115 esac
b0322a85 11116 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 11117 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
11118 # or fails outright, so override atomically:
11119 install_override_mode=555
d9898ee8 11120 ;;
11121
ac40fd9e 11122interix[3-9]*)
b0322a85 11123 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 ;;
11133
11134irix5* | irix6* | nonstopux*)
11135 case $host_os in
11136 nonstopux*) version_type=nonstopux ;;
11137 *)
11138 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 11139 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11140 else
11141 version_type=irix
11142 fi ;;
11143 esac
11144 need_lib_prefix=no
11145 need_version=no
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11148 case $host_os in
11149 irix5* | nonstopux*)
11150 libsuff= shlibsuff=
11151 ;;
11152 *)
11153 case $LD in # libtool.m4 will add one of these switches to LD
11154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11155 libsuff= shlibsuff= libmagic=32-bit;;
11156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11157 libsuff=32 shlibsuff=N32 libmagic=N32;;
11158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11160 *) libsuff= shlibsuff= libmagic=never-match;;
11161 esac
11162 ;;
11163 esac
11164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11165 shlibpath_overrides_runpath=no
11166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11168 hardcode_into_libs=yes
11169 ;;
11170
11171# No shared lib support for Linux oldld, aout, or coff.
11172linux*oldld* | linux*aout* | linux*coff*)
11173 dynamic_linker=no
11174 ;;
11175
b0322a85
CE
11176# This must be glibc/ELF.
11177linux* | k*bsd*-gnu | kopensolaris*-gnu)
11178 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=no
b0322a85 11186
8d138742 11187 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
11188 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190else
11191 lt_cv_shlibpath_overrides_runpath=no
11192 save_LDFLAGS=$LDFLAGS
11193 save_libdir=$libdir
11194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
11197/* end confdefs.h. */
11198
11199int
11200main ()
11201{
11202
11203 ;
11204 return 0;
11205}
11206_ACEOF
b0322a85
CE
11207if ac_fn_c_try_link "$LINENO"; then :
11208 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11209 lt_cv_shlibpath_overrides_runpath=yes
8d138742 11210fi
b0322a85
CE
11211fi
11212rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LDFLAGS=$save_LDFLAGS
11215 libdir=$save_libdir
8d138742
CE
11216
11217fi
11218
b0322a85 11219 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 11220
d9898ee8 11221 # This implies no fast_install, which is unacceptable.
11222 # Some rework will be needed to allow for fast_install
11223 # before this can be enabled.
11224 hardcode_into_libs=yes
8d138742
CE
11225
11226 # Add ABI-specific directories to the system library path.
11227 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11228
11229 # Append ld.so.conf contents to the search path
11230 if test -f /etc/ld.so.conf; then
b0322a85 11231 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' ' '`
ac40fd9e 11232 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 11233
d9898ee8 11234 fi
11235
11236 # We used to test for /lib/ld.so.1 and disable shared libraries on
11237 # powerpc, because MkLinux only supported shared libraries with the
11238 # GNU dynamic linker. Since this was broken with cross compilers,
11239 # most powerpc-linux boxes support dynamic linking these days and
11240 # people can always --disable-shared, the test was removed, and we
11241 # assume the GNU/Linux dynamic linker is in use.
11242 dynamic_linker='GNU/Linux ld.so'
11243 ;;
11244
d9898ee8 11245netbsd*)
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
8d138742 11249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11252 dynamic_linker='NetBSD (a.out) ld.so'
11253 else
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 dynamic_linker='NetBSD ld.elf_so'
11257 fi
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 ;;
11262
11263newsos6)
b0322a85 11264 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 ;;
11269
8d138742
CE
11270*nto* | *qnx*)
11271 version_type=qnx
d9898ee8 11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 dynamic_linker='ldqnx.so'
d9898ee8 11280 ;;
11281
11282openbsd*)
11283 version_type=sunos
11284 sys_lib_dlsearch_path_spec="/usr/lib"
11285 need_lib_prefix=no
11286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11287 case $host_os in
8d138742
CE
11288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11289 *) need_version=no ;;
d9898ee8 11290 esac
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
8d138742 11294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 11295 case $host_os in
11296 openbsd2.[89] | openbsd2.[89].*)
11297 shlibpath_overrides_runpath=no
11298 ;;
11299 *)
11300 shlibpath_overrides_runpath=yes
11301 ;;
11302 esac
11303 else
11304 shlibpath_overrides_runpath=yes
11305 fi
11306 ;;
11307
11308os2*)
11309 libname_spec='$name'
11310 shrext_cmds=".dll"
11311 need_lib_prefix=no
11312 library_names_spec='$libname${shared_ext} $libname.a'
11313 dynamic_linker='OS/2 ld.exe'
11314 shlibpath_var=LIBPATH
11315 ;;
11316
11317osf3* | osf4* | osf5*)
11318 version_type=osf
11319 need_lib_prefix=no
11320 need_version=no
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11326 ;;
11327
ac40fd9e 11328rdos*)
11329 dynamic_linker=no
11330 ;;
11331
d9898ee8 11332solaris*)
b0322a85 11333 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11334 need_lib_prefix=no
11335 need_version=no
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes
11340 hardcode_into_libs=yes
11341 # ldd complains unless libraries are executable
11342 postinstall_cmds='chmod +x $lib'
11343 ;;
11344
11345sunos4*)
11346 version_type=sunos
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 if test "$with_gnu_ld" = yes; then
11352 need_lib_prefix=no
11353 fi
11354 need_version=yes
11355 ;;
11356
11357sysv4 | sysv4.3*)
b0322a85 11358 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 case $host_vendor in
11363 sni)
11364 shlibpath_overrides_runpath=no
11365 need_lib_prefix=no
d9898ee8 11366 runpath_var=LD_RUN_PATH
11367 ;;
11368 siemens)
11369 need_lib_prefix=no
11370 ;;
11371 motorola)
11372 need_lib_prefix=no
11373 need_version=no
11374 shlibpath_overrides_runpath=no
11375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11376 ;;
11377 esac
11378 ;;
11379
11380sysv4*MP*)
11381 if test -d /usr/nec ;then
b0322a85 11382 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11384 soname_spec='$libname${shared_ext}.$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 fi
11387 ;;
11388
11389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11390 version_type=freebsd-elf
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
8d138742 11396 shlibpath_overrides_runpath=yes
d9898ee8 11397 hardcode_into_libs=yes
11398 if test "$with_gnu_ld" = yes; then
11399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 11400 else
11401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 11402 case $host_os in
11403 sco3.2v5*)
11404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11405 ;;
11406 esac
11407 fi
11408 sys_lib_dlsearch_path_spec='/usr/lib'
11409 ;;
11410
8d138742
CE
11411tpf*)
11412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 11413 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419 hardcode_into_libs=yes
11420 ;;
11421
d9898ee8 11422uts4*)
b0322a85 11423 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 ;;
11428
11429*)
11430 dynamic_linker=no
11431 ;;
11432esac
b0322a85 11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 11434$as_echo "$dynamic_linker" >&6; }
d9898ee8 11435test "$dynamic_linker" = no && can_build_shared=no
11436
11437variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11438if test "$GCC" = yes; then
11439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11440fi
11441
8d138742
CE
11442if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11443 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 11444fi
8d138742
CE
11445if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11446 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 11447fi
11448
11449
d9898ee8 11450
d9898ee8 11451
d9898ee8 11452
d9898ee8 11453
d9898ee8 11454
d9898ee8 11455
d9898ee8 11456
d9898ee8 11457
d9898ee8 11458
d9898ee8 11459
d9898ee8 11460
d9898ee8 11461
d9898ee8 11462
d9898ee8 11463
d9898ee8 11464
d9898ee8 11465
d9898ee8 11466
d9898ee8 11467
d9898ee8 11468
d9898ee8 11469
d9898ee8 11470
d9898ee8 11471
d9898ee8 11472
d9898ee8 11473
d9898ee8 11474
d9898ee8 11475
d9898ee8 11476
d9898ee8 11477
d9898ee8 11478
d9898ee8 11479
d9898ee8 11480
d9898ee8 11481
d9898ee8 11482
d9898ee8 11483
d9898ee8 11484
d9898ee8 11485
d9898ee8 11486
d9898ee8 11487
d9898ee8 11488
d9898ee8 11489
d9898ee8 11490
d9898ee8 11491
d9898ee8 11492
d9898ee8 11493
d9898ee8 11494
d9898ee8 11495
d9898ee8 11496
d9898ee8 11497
d9898ee8 11498
d9898ee8 11499
d9898ee8 11500
d9898ee8 11501
d9898ee8 11502
d9898ee8 11503
d9898ee8 11504
d9898ee8 11505
d9898ee8 11506
d9898ee8 11507
d9898ee8 11508
d9898ee8 11509
d9898ee8 11510
d9898ee8 11511
d9898ee8 11512
d9898ee8 11513
d9898ee8 11514
d9898ee8 11515
d9898ee8 11516
d9898ee8 11517
d9898ee8 11518
d9898ee8 11519
d9898ee8 11520
d9898ee8 11521
d9898ee8 11522
d9898ee8 11523
d9898ee8 11524
d9898ee8 11525
d9898ee8 11526
d9898ee8 11527
d9898ee8 11528
d9898ee8 11529
d9898ee8 11530
d9898ee8 11531
d9898ee8 11532
d9898ee8 11533
d9898ee8 11534
b0322a85
CE
11535
11536
11537
11538
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
11541$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11542hardcode_action=
11543if test -n "$hardcode_libdir_flag_spec" ||
11544 test -n "$runpath_var" ||
11545 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 11546
8d138742
CE
11547 # We can hardcode non-existent directories.
11548 if test "$hardcode_direct" != no &&
11549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550 # have to relink, otherwise we might link with an installed library
11551 # when we should be linking with a yet-to-be-installed one
11552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553 test "$hardcode_minus_L" != no; then
11554 # Linking always hardcodes the temporary library directory.
11555 hardcode_action=relink
11556 else
11557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558 hardcode_action=immediate
d9898ee8 11559 fi
8d138742
CE
11560else
11561 # We cannot hardcode anything, or else we can only hardcode existing
11562 # directories.
11563 hardcode_action=unsupported
d9898ee8 11564fi
b0322a85 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 11566$as_echo "$hardcode_action" >&6; }
d9898ee8 11567
8d138742
CE
11568if test "$hardcode_action" = relink ||
11569 test "$inherit_rpath" = yes; then
11570 # Fast installation is not supported
11571 enable_fast_install=no
11572elif test "$shlibpath_overrides_runpath" = yes ||
11573 test "$enable_shared" = no; then
11574 # Fast installation is not necessary
11575 enable_fast_install=needless
11576fi
d9898ee8 11577
d9898ee8 11578
d9898ee8 11579
d9898ee8 11580
d9898ee8 11581
d9898ee8 11582
8d138742
CE
11583 if test "x$enable_dlopen" != xyes; then
11584 enable_dlopen=unknown
11585 enable_dlopen_self=unknown
11586 enable_dlopen_self_static=unknown
11587else
11588 lt_cv_dlopen=no
11589 lt_cv_dlopen_libs=
d9898ee8 11590
8d138742
CE
11591 case $host_os in
11592 beos*)
11593 lt_cv_dlopen="load_add_on"
11594 lt_cv_dlopen_libs=
11595 lt_cv_dlopen_self=yes
11596 ;;
d9898ee8 11597
8d138742
CE
11598 mingw* | pw32* | cegcc*)
11599 lt_cv_dlopen="LoadLibrary"
11600 lt_cv_dlopen_libs=
11601 ;;
d9898ee8 11602
8d138742 11603 cygwin*)
b0322a85
CE
11604 lt_cv_dlopen="dlopen"
11605 lt_cv_dlopen_libs=
11606 ;;
d9898ee8 11607
b0322a85
CE
11608 darwin*)
11609 # if libdl is installed we need to link against it
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611$as_echo_n "checking for dlopen in -ldl... " >&6; }
11612if ${ac_cv_lib_dl_dlopen+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614else
11615 ac_check_lib_save_LIBS=$LIBS
11616LIBS="-ldl $LIBS"
11617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618/* end confdefs.h. */
d9898ee8 11619
8d138742
CE
11620/* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623#ifdef __cplusplus
11624extern "C"
11625#endif
b0322a85 11626char dlopen ();
8d138742
CE
11627int
11628main ()
11629{
b0322a85 11630return dlopen ();
8d138742
CE
11631 ;
11632 return 0;
11633}
11634_ACEOF
b0322a85
CE
11635if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_dl_dlopen=yes
8d138742 11637else
b0322a85
CE
11638 ac_cv_lib_dl_dlopen=no
11639fi
11640rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642LIBS=$ac_check_lib_save_LIBS
d9898ee8 11643fi
b0322a85
CE
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648else
11649
11650 lt_cv_dlopen="dyld"
11651 lt_cv_dlopen_libs=
11652 lt_cv_dlopen_self=yes
d9898ee8 11653
8d138742 11654fi
b0322a85
CE
11655
11656 ;;
11657
11658 *)
11659 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11660if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
11661 lt_cv_dlopen="shl_load"
11662else
b0322a85 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 11664$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 11665if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
11666 $as_echo_n "(cached) " >&6
11667else
11668 ac_check_lib_save_LIBS=$LIBS
11669LIBS="-ldld $LIBS"
b0322a85 11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11671/* end confdefs.h. */
d9898ee8 11672
8d138742
CE
11673/* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char shl_load ();
11680int
11681main ()
11682{
11683return shl_load ();
11684 ;
11685 return 0;
11686}
11687_ACEOF
b0322a85 11688if ac_fn_c_try_link "$LINENO"; then :
8d138742 11689 ac_cv_lib_dld_shl_load=yes
d9898ee8 11690else
b0322a85 11691 ac_cv_lib_dld_shl_load=no
d9898ee8 11692fi
b0322a85
CE
11693rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11695LIBS=$ac_check_lib_save_LIBS
11696fi
b0322a85 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 11698$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 11699if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
11700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11701else
b0322a85
CE
11702 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11703if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
11704 lt_cv_dlopen="dlopen"
11705else
b0322a85 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11707$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11708if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11709 $as_echo_n "(cached) " >&6
11710else
11711 ac_check_lib_save_LIBS=$LIBS
11712LIBS="-ldl $LIBS"
b0322a85 11713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11714/* end confdefs.h. */
d9898ee8 11715
8d138742
CE
11716/* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11719#ifdef __cplusplus
11720extern "C"
11721#endif
11722char dlopen ();
11723int
11724main ()
11725{
11726return dlopen ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
b0322a85 11731if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11732 ac_cv_lib_dl_dlopen=yes
11733else
b0322a85 11734 ac_cv_lib_dl_dlopen=no
8d138742 11735fi
b0322a85
CE
11736rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11738LIBS=$ac_check_lib_save_LIBS
11739fi
b0322a85 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11741$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11742if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
11743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11744else
b0322a85 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 11746$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 11747if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
11748 $as_echo_n "(cached) " >&6
11749else
11750 ac_check_lib_save_LIBS=$LIBS
11751LIBS="-lsvld $LIBS"
b0322a85 11752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11753/* end confdefs.h. */
d9898ee8 11754
8d138742
CE
11755/* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758#ifdef __cplusplus
11759extern "C"
11760#endif
11761char dlopen ();
11762int
11763main ()
11764{
11765return dlopen ();
11766 ;
11767 return 0;
11768}
11769_ACEOF
b0322a85 11770if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11771 ac_cv_lib_svld_dlopen=yes
11772else
b0322a85 11773 ac_cv_lib_svld_dlopen=no
8d138742 11774fi
b0322a85
CE
11775rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11777LIBS=$ac_check_lib_save_LIBS
11778fi
b0322a85 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11780$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11781if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
11782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11783else
b0322a85 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11785$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11786if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11787 $as_echo_n "(cached) " >&6
11788else
11789 ac_check_lib_save_LIBS=$LIBS
11790LIBS="-ldld $LIBS"
b0322a85 11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11792/* end confdefs.h. */
d9898ee8 11793
8d138742
CE
11794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char dld_link ();
11801int
11802main ()
11803{
11804return dld_link ();
11805 ;
11806 return 0;
11807}
11808_ACEOF
b0322a85 11809if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11810 ac_cv_lib_dld_dld_link=yes
11811else
b0322a85 11812 ac_cv_lib_dld_dld_link=no
8d138742 11813fi
b0322a85
CE
11814rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11816LIBS=$ac_check_lib_save_LIBS
11817fi
b0322a85 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11819$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11820if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
11821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11822fi
d9898ee8 11823
d9898ee8 11824
8d138742 11825fi
d9898ee8 11826
d9898ee8 11827
8d138742 11828fi
d9898ee8 11829
d9898ee8 11830
8d138742 11831fi
d9898ee8 11832
d9898ee8 11833
8d138742 11834fi
d9898ee8 11835
d9898ee8 11836
8d138742 11837fi
d9898ee8 11838
8d138742
CE
11839 ;;
11840 esac
d9898ee8 11841
8d138742
CE
11842 if test "x$lt_cv_dlopen" != xno; then
11843 enable_dlopen=yes
11844 else
11845 enable_dlopen=no
11846 fi
d9898ee8 11847
8d138742
CE
11848 case $lt_cv_dlopen in
11849 dlopen)
11850 save_CPPFLAGS="$CPPFLAGS"
11851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11852
8d138742
CE
11853 save_LDFLAGS="$LDFLAGS"
11854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11855
8d138742
CE
11856 save_LIBS="$LIBS"
11857 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11858
b0322a85 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11860$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11861if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
11862 $as_echo_n "(cached) " >&6
11863else
11864 if test "$cross_compiling" = yes; then :
11865 lt_cv_dlopen_self=cross
11866else
11867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868 lt_status=$lt_dlunknown
11869 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11870#line $LINENO "configure"
8d138742 11871#include "confdefs.h"
d9898ee8 11872
8d138742
CE
11873#if HAVE_DLFCN_H
11874#include <dlfcn.h>
11875#endif
d9898ee8 11876
8d138742 11877#include <stdio.h>
d9898ee8 11878
8d138742
CE
11879#ifdef RTLD_GLOBAL
11880# define LT_DLGLOBAL RTLD_GLOBAL
11881#else
11882# ifdef DL_GLOBAL
11883# define LT_DLGLOBAL DL_GLOBAL
11884# else
11885# define LT_DLGLOBAL 0
11886# endif
11887#endif
d9898ee8 11888
8d138742
CE
11889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890 find out it does not work in some platform. */
11891#ifndef LT_DLLAZY_OR_NOW
11892# ifdef RTLD_LAZY
11893# define LT_DLLAZY_OR_NOW RTLD_LAZY
11894# else
11895# ifdef DL_LAZY
11896# define LT_DLLAZY_OR_NOW DL_LAZY
11897# else
11898# ifdef RTLD_NOW
11899# define LT_DLLAZY_OR_NOW RTLD_NOW
11900# else
11901# ifdef DL_NOW
11902# define LT_DLLAZY_OR_NOW DL_NOW
11903# else
11904# define LT_DLLAZY_OR_NOW 0
11905# endif
11906# endif
11907# endif
11908# endif
11909#endif
d9898ee8 11910
b0322a85
CE
11911/* When -fvisbility=hidden is used, assume the code has been annotated
11912 correspondingly for the symbols needed. */
11913#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11914int fnord () __attribute__((visibility("default")));
11915#endif
11916
11917int fnord () { return 42; }
8d138742
CE
11918int main ()
11919{
11920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11921 int status = $lt_dlunknown;
d9898ee8 11922
8d138742
CE
11923 if (self)
11924 {
11925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11926 else
11927 {
11928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11929 else puts (dlerror ());
11930 }
8d138742
CE
11931 /* dlclose (self); */
11932 }
11933 else
11934 puts (dlerror ());
d9898ee8 11935
8d138742
CE
11936 return status;
11937}
11938_LT_EOF
b0322a85 11939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11940 (eval $ac_link) 2>&5
11941 ac_status=$?
b0322a85
CE
11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11944 (./conftest; exit; ) >&5 2>/dev/null
11945 lt_status=$?
11946 case x$lt_status in
11947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11949 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11950 esac
11951 else :
11952 # compilation failed
11953 lt_cv_dlopen_self=no
11954 fi
11955fi
11956rm -fr conftest*
d9898ee8 11957
d9898ee8 11958
8d138742 11959fi
b0322a85 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11961$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11962
8d138742
CE
11963 if test "x$lt_cv_dlopen_self" = xyes; then
11964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11966$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11967if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11968 $as_echo_n "(cached) " >&6
11969else
11970 if test "$cross_compiling" = yes; then :
11971 lt_cv_dlopen_self_static=cross
11972else
11973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11974 lt_status=$lt_dlunknown
11975 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11976#line $LINENO "configure"
8d138742 11977#include "confdefs.h"
d9898ee8 11978
8d138742
CE
11979#if HAVE_DLFCN_H
11980#include <dlfcn.h>
11981#endif
d9898ee8 11982
8d138742 11983#include <stdio.h>
d9898ee8 11984
8d138742
CE
11985#ifdef RTLD_GLOBAL
11986# define LT_DLGLOBAL RTLD_GLOBAL
11987#else
11988# ifdef DL_GLOBAL
11989# define LT_DLGLOBAL DL_GLOBAL
11990# else
11991# define LT_DLGLOBAL 0
11992# endif
11993#endif
d9898ee8 11994
8d138742
CE
11995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11996 find out it does not work in some platform. */
11997#ifndef LT_DLLAZY_OR_NOW
11998# ifdef RTLD_LAZY
11999# define LT_DLLAZY_OR_NOW RTLD_LAZY
12000# else
12001# ifdef DL_LAZY
12002# define LT_DLLAZY_OR_NOW DL_LAZY
12003# else
12004# ifdef RTLD_NOW
12005# define LT_DLLAZY_OR_NOW RTLD_NOW
12006# else
12007# ifdef DL_NOW
12008# define LT_DLLAZY_OR_NOW DL_NOW
12009# else
12010# define LT_DLLAZY_OR_NOW 0
12011# endif
12012# endif
12013# endif
12014# endif
12015#endif
d9898ee8 12016
b0322a85
CE
12017/* When -fvisbility=hidden is used, assume the code has been annotated
12018 correspondingly for the symbols needed. */
12019#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020int fnord () __attribute__((visibility("default")));
12021#endif
12022
12023int fnord () { return 42; }
8d138742
CE
12024int main ()
12025{
12026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12027 int status = $lt_dlunknown;
d9898ee8 12028
8d138742
CE
12029 if (self)
12030 {
12031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
12032 else
12033 {
12034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12035 else puts (dlerror ());
12036 }
8d138742
CE
12037 /* dlclose (self); */
12038 }
12039 else
12040 puts (dlerror ());
d9898ee8 12041
8d138742
CE
12042 return status;
12043}
12044_LT_EOF
b0322a85 12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
12046 (eval $ac_link) 2>&5
12047 ac_status=$?
b0322a85
CE
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
12050 (./conftest; exit; ) >&5 2>/dev/null
12051 lt_status=$?
12052 case x$lt_status in
12053 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12054 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12055 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12056 esac
12057 else :
12058 # compilation failed
12059 lt_cv_dlopen_self_static=no
12060 fi
12061fi
12062rm -fr conftest*
d9898ee8 12063
d9898ee8 12064
8d138742 12065fi
b0322a85 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
12067$as_echo "$lt_cv_dlopen_self_static" >&6; }
12068 fi
d9898ee8 12069
8d138742
CE
12070 CPPFLAGS="$save_CPPFLAGS"
12071 LDFLAGS="$save_LDFLAGS"
12072 LIBS="$save_LIBS"
12073 ;;
12074 esac
d9898ee8 12075
8d138742
CE
12076 case $lt_cv_dlopen_self in
12077 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12078 *) enable_dlopen_self=unknown ;;
12079 esac
d9898ee8 12080
8d138742
CE
12081 case $lt_cv_dlopen_self_static in
12082 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12083 *) enable_dlopen_self_static=unknown ;;
12084 esac
12085fi
d9898ee8 12086
d9898ee8 12087
d9898ee8 12088
d9898ee8 12089
d9898ee8 12090
d9898ee8 12091
d9898ee8 12092
d9898ee8 12093
d9898ee8 12094
d9898ee8 12095
d9898ee8 12096
d9898ee8 12097
d9898ee8 12098
d9898ee8 12099
d9898ee8 12100
d9898ee8 12101
d9898ee8 12102
8d138742
CE
12103striplib=
12104old_striplib=
b0322a85 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
12106$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12107if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12108 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12109 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12111$as_echo "yes" >&6; }
12112else
12113# FIXME - insert some real tests, host_os isn't really good enough
12114 case $host_os in
12115 darwin*)
12116 if test -n "$STRIP" ; then
12117 striplib="$STRIP -x"
12118 old_striplib="$STRIP -S"
b0322a85 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
12120$as_echo "yes" >&6; }
12121 else
b0322a85 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12123$as_echo "no" >&6; }
12124 fi
12125 ;;
12126 *)
b0322a85 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12128$as_echo "no" >&6; }
12129 ;;
12130 esac
12131fi
d9898ee8 12132
d9898ee8 12133
d9898ee8 12134
d9898ee8 12135
d9898ee8 12136
d9898ee8 12137
d9898ee8 12138
d9898ee8 12139
d9898ee8 12140
d9898ee8 12141
d9898ee8 12142
d9898ee8 12143
8d138742 12144 # Report which library types will actually be built
b0322a85 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 12146$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 12148$as_echo "$can_build_shared" >&6; }
d9898ee8 12149
b0322a85 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
12151$as_echo_n "checking whether to build shared libraries... " >&6; }
12152 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 12153
8d138742
CE
12154 # On AIX, shared libraries and static libraries use the same namespace, and
12155 # are all built from PIC.
12156 case $host_os in
12157 aix3*)
12158 test "$enable_shared" = yes && enable_static=no
12159 if test -n "$RANLIB"; then
12160 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12161 postinstall_cmds='$RANLIB $lib'
12162 fi
12163 ;;
d9898ee8 12164
8d138742
CE
12165 aix[4-9]*)
12166 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12167 test "$enable_shared" = yes && enable_static=no
12168 fi
12169 ;;
12170 esac
b0322a85 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 12172$as_echo "$enable_shared" >&6; }
d9898ee8 12173
b0322a85 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
12175$as_echo_n "checking whether to build static libraries... " >&6; }
12176 # Make sure either enable_shared or enable_static is yes.
12177 test "$enable_shared" = yes || enable_static=yes
b0322a85 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 12179$as_echo "$enable_static" >&6; }
d9898ee8 12180
d9898ee8 12181
d9898ee8 12182
12183
d9898ee8 12184fi
d9898ee8 12185ac_ext=c
12186ac_cpp='$CPP $CPPFLAGS'
12187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191CC="$lt_save_CC"
12192
d9898ee8 12193
d9898ee8 12194
12195
d9898ee8 12196
d9898ee8 12197
d9898ee8 12198
d9898ee8 12199
d9898ee8 12200
d9898ee8 12201
d9898ee8 12202
d9898ee8 12203
12204
b0322a85
CE
12205
12206
8d138742 12207 ac_config_commands="$ac_config_commands libtool"
d9898ee8 12208
d9898ee8 12209
12210
d9898ee8 12211
8d138742 12212# Only expand once:
d9898ee8 12213
d9898ee8 12214
d9898ee8 12215
8d138742
CE
12216if test "$PS" = "ps"
12217then
b0322a85 12218 as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5
8d138742 12219fi
d9898ee8 12220
8d138742
CE
12221if test x$GXX = xyes
12222then
12223 CFLAGS="-Wall $CFLAGS"
12224fi
d9898ee8 12225
8d138742 12226CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
d9898ee8 12227
d9898ee8 12228
b0322a85 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8d138742 12230$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
b0322a85 12231if ${ac_cv_header_sys_wait_h+:} false; then :
8d138742
CE
12232 $as_echo_n "(cached) " >&6
12233else
b0322a85 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12235/* end confdefs.h. */
12236#include <sys/types.h>
12237#include <sys/wait.h>
12238#ifndef WEXITSTATUS
12239# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12240#endif
12241#ifndef WIFEXITED
12242# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12243#endif
12244
12245int
12246main ()
12247{
12248 int s;
12249 wait (&s);
12250 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12251 ;
12252 return 0;
12253}
12254_ACEOF
b0322a85 12255if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
12256 ac_cv_header_sys_wait_h=yes
12257else
b0322a85 12258 ac_cv_header_sys_wait_h=no
8d138742 12259fi
8d138742
CE
12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261fi
b0322a85 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8d138742
CE
12263$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12264if test $ac_cv_header_sys_wait_h = yes; then
12265
b0322a85
CE
12266$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12267
8d138742 12268fi
b0322a85
CE
12269
12270for ac_header in unistd.h fcntl.h
12271do :
12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
12275 cat >>confdefs.h <<_ACEOF
12276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12277_ACEOF
d9898ee8 12278
8d138742 12279fi
d9898ee8 12280
8d138742 12281done
d9898ee8 12282
d9898ee8 12283
b0322a85
CE
12284ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12285if test "x$ac_cv_type_pid_t" = xyes; then :
12286
8d138742 12287else
b0322a85
CE
12288
12289cat >>confdefs.h <<_ACEOF
12290#define pid_t int
8d138742 12291_ACEOF
b0322a85
CE
12292
12293fi
12294
12295# Check whether --enable-largefile was given.
12296if test "${enable_largefile+set}" = set; then :
12297 enableval=$enable_largefile;
12298fi
12299
12300if test "$enable_largefile" != no; then
12301
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12303$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12304if ${ac_cv_sys_largefile_CC+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 ac_cv_sys_largefile_CC=no
12308 if test "$GCC" != yes; then
12309 ac_save_CC=$CC
12310 while :; do
12311 # IRIX 6.2 and later do not support large files by default,
12312 # so use the C compiler's -n32 option if that helps.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12314/* end confdefs.h. */
b0322a85
CE
12315#include <sys/types.h>
12316 /* Check that off_t can represent 2**63 - 1 correctly.
12317 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12318 since some C++ compilers masquerading as C compilers
12319 incorrectly reject 9223372036854775807. */
12320#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12322 && LARGE_OFF_T % 2147483647 == 1)
12323 ? 1 : -1];
8d138742
CE
12324int
12325main ()
12326{
b0322a85 12327
8d138742
CE
12328 ;
12329 return 0;
12330}
12331_ACEOF
b0322a85
CE
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333 break
12334fi
12335rm -f core conftest.err conftest.$ac_objext
12336 CC="$CC -n32"
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 ac_cv_sys_largefile_CC=' -n32'; break
12339fi
12340rm -f core conftest.err conftest.$ac_objext
12341 break
12342 done
12343 CC=$ac_save_CC
12344 rm -f conftest.$ac_ext
12345 fi
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12348$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12349 if test "$ac_cv_sys_largefile_CC" != no; then
12350 CC=$CC$ac_cv_sys_largefile_CC
12351 fi
12352
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12354$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12355if ${ac_cv_sys_file_offset_bits+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357else
12358 while :; do
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361#include <sys/types.h>
12362 /* Check that off_t can represent 2**63 - 1 correctly.
12363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12364 since some C++ compilers masquerading as C compilers
12365 incorrectly reject 9223372036854775807. */
12366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12368 && LARGE_OFF_T % 2147483647 == 1)
12369 ? 1 : -1];
12370int
12371main ()
12372{
12373
12374 ;
12375 return 0;
12376}
8d138742 12377_ACEOF
b0322a85
CE
12378if ac_fn_c_try_compile "$LINENO"; then :
12379 ac_cv_sys_file_offset_bits=no; break
12380fi
12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12383/* end confdefs.h. */
b0322a85
CE
12384#define _FILE_OFFSET_BITS 64
12385#include <sys/types.h>
12386 /* Check that off_t can represent 2**63 - 1 correctly.
12387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12388 since some C++ compilers masquerading as C compilers
12389 incorrectly reject 9223372036854775807. */
12390#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12392 && LARGE_OFF_T % 2147483647 == 1)
12393 ? 1 : -1];
8d138742
CE
12394int
12395main ()
12396{
b0322a85 12397
8d138742
CE
12398 ;
12399 return 0;
12400}
12401_ACEOF
b0322a85
CE
12402if ac_fn_c_try_compile "$LINENO"; then :
12403 ac_cv_sys_file_offset_bits=64; break
12404fi
12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 ac_cv_sys_file_offset_bits=unknown
12407 break
12408done
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12411$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12412case $ac_cv_sys_file_offset_bits in #(
12413 no | unknown) ;;
12414 *)
12415cat >>confdefs.h <<_ACEOF
12416#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12417_ACEOF
12418;;
8d138742 12419esac
b0322a85
CE
12420rm -rf conftest*
12421 if test $ac_cv_sys_file_offset_bits = unknown; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12423$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12424if ${ac_cv_sys_large_files+:} false; then :
12425 $as_echo_n "(cached) " >&6
8d138742 12426else
b0322a85
CE
12427 while :; do
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429/* end confdefs.h. */
12430#include <sys/types.h>
12431 /* Check that off_t can represent 2**63 - 1 correctly.
12432 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12433 since some C++ compilers masquerading as C compilers
12434 incorrectly reject 9223372036854775807. */
12435#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12436 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12437 && LARGE_OFF_T % 2147483647 == 1)
12438 ? 1 : -1];
12439int
12440main ()
12441{
d9898ee8 12442
b0322a85
CE
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447if ac_fn_c_try_compile "$LINENO"; then :
12448 ac_cv_sys_large_files=no; break
8d138742 12449fi
8d138742 12450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452/* end confdefs.h. */
12453#define _LARGE_FILES 1
12454#include <sys/types.h>
12455 /* Check that off_t can represent 2**63 - 1 correctly.
12456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12457 since some C++ compilers masquerading as C compilers
12458 incorrectly reject 9223372036854775807. */
12459#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12461 && LARGE_OFF_T % 2147483647 == 1)
12462 ? 1 : -1];
12463int
12464main ()
12465{
d9898ee8 12466
b0322a85
CE
12467 ;
12468 return 0;
12469}
12470_ACEOF
12471if ac_fn_c_try_compile "$LINENO"; then :
12472 ac_cv_sys_large_files=1; break
8d138742 12473fi
8d138742 12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12475 ac_cv_sys_large_files=unknown
12476 break
12477done
8d138742 12478fi
b0322a85
CE
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12480$as_echo "$ac_cv_sys_large_files" >&6; }
12481case $ac_cv_sys_large_files in #(
12482 no | unknown) ;;
12483 *)
8d138742 12484cat >>confdefs.h <<_ACEOF
b0322a85 12485#define _LARGE_FILES $ac_cv_sys_large_files
8d138742 12486_ACEOF
b0322a85
CE
12487;;
12488esac
12489rm -rf conftest*
12490 fi
12491
d9898ee8 12492
8d138742 12493fi
d9898ee8 12494
d9898ee8 12495
d9898ee8 12496
8d138742 12497# Check whether --with-random was given.
b0322a85 12498if test "${with_random+set}" = set; then :
8d138742
CE
12499 withval=$with_random; random="$withval"
12500else
12501 random="y"
12502fi
d9898ee8 12503
d9898ee8 12504
8d138742
CE
12505case "$random" in
12506/*)
12507 ;;
12508y*|1*)
b0322a85 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
8d138742 12510$as_echo_n "checking for random source... " >&6; }
b0322a85 12511if ${random_cv_RANDOM+:} false; then :
8d138742
CE
12512 $as_echo_n "(cached) " >&6
12513else
12514 if test -c /dev/urandom
12515 then
12516 random_cv_RANDOM=/dev/urandom
12517 else
12518 if test -c /dev/random
12519 then
12520 random_cv_RANDOM=/dev/random
12521 else
12522 random_cv_RANDOM="none"
12523 fi
12524 fi
d9898ee8 12525
8d138742 12526fi
b0322a85 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5
8d138742
CE
12528$as_echo "$random_cv_RANDOM" >&6; }
12529 random="$random_cv_RANDOM"
12530 ;;
12531*)
12532 random="none"
12533 ;;
12534esac
d9898ee8 12535
8d138742
CE
12536if test "$random" != "none"
12537then
d9898ee8 12538
8d138742
CE
12539cat >>confdefs.h <<_ACEOF
12540#define RANDOM "$random"
12541_ACEOF
d9898ee8 12542
8d138742 12543fi
d9898ee8 12544
b0322a85 12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5
8d138742 12546$as_echo_n "checking for some good options for ps... " >&6; }
b0322a85 12547if ${random_cv_PS_OPTIONS+:} false; then :
8d138742
CE
12548 $as_echo_n "(cached) " >&6
12549else
12550 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
12551 do
12552 ps $opts >/dev/null 2>/dev/null || continue
12553 break
12554 done
12555 random_cv_PS_OPTIONS="$opts"
d9898ee8 12556
8d138742 12557fi
b0322a85 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5
8d138742 12559$as_echo "$random_cv_PS_OPTIONS" >&6; }
d9898ee8 12560
d9898ee8 12561
8d138742
CE
12562cat >>confdefs.h <<_ACEOF
12563#define PS_OPTIONS "$random_cv_PS_OPTIONS"
12564_ACEOF
d9898ee8 12565
d9898ee8 12566
8d138742
CE
12567cat >>confdefs.h <<_ACEOF
12568#define PS "$PS"
12569_ACEOF
d9898ee8 12570
d9898ee8 12571
8d138742
CE
12572if test "$W" != "w"
12573then
d9898ee8 12574
8d138742
CE
12575cat >>confdefs.h <<_ACEOF
12576#define W "$w"
12577_ACEOF
d9898ee8 12578
8d138742 12579fi
d9898ee8 12580
8d138742 12581ac_config_files="$ac_config_files Makefile"
d9898ee8 12582
8d138742
CE
12583cat >confcache <<\_ACEOF
12584# This file is a shell script that caches the results of configure
12585# tests run on this system so they can be shared between configure
12586# scripts and configure runs, see configure's option --config-cache.
12587# It is not useful on other systems. If it contains results you don't
12588# want to keep, you may remove or edit it.
12589#
12590# config.status only pays attention to the cache file if you give it
12591# the --recheck option to rerun configure.
12592#
12593# `ac_cv_env_foo' variables (set or unset) will be overridden when
12594# loading this file, other *unset* `ac_cv_foo' will be assigned the
12595# following values.
d9898ee8 12596
8d138742 12597_ACEOF
d9898ee8 12598
8d138742
CE
12599# The following way of writing the cache mishandles newlines in values,
12600# but we know of no workaround that is simple, portable, and efficient.
12601# So, we kill variables containing newlines.
12602# Ultrix sh set writes to stderr and can't be redirected directly,
12603# and sets the high bit in the cache file unless we assign to the vars.
12604(
12605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12606 eval ac_val=\$$ac_var
12607 case $ac_val in #(
12608 *${as_nl}*)
12609 case $ac_var in #(
b0322a85 12610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12611$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12612 esac
12613 case $ac_var in #(
12614 _ | IFS | as_nl) ;; #(
12615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12616 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12617 esac ;;
12618 esac
12619 done
d9898ee8 12620
8d138742
CE
12621 (set) 2>&1 |
12622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12623 *${as_nl}ac_space=\ *)
b0322a85
CE
12624 # `set' does not quote correctly, so add quotes: double-quote
12625 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12626 sed -n \
12627 "s/'/'\\\\''/g;
12628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12629 ;; #(
12630 *)
12631 # `set' quotes correctly as required by POSIX, so do not add quotes.
12632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12633 ;;
12634 esac |
12635 sort
12636) |
12637 sed '
12638 /^ac_cv_env_/b end
12639 t clear
12640 :clear
12641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12642 t end
12643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12644 :end' >>confcache
12645if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12646 if test -w "$cache_file"; then
b0322a85
CE
12647 if test "x$cache_file" != "x/dev/null"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12649$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12650 if test ! -f "$cache_file" || test -h "$cache_file"; then
12651 cat confcache >"$cache_file"
12652 else
12653 case $cache_file in #(
12654 */* | ?:*)
12655 mv -f confcache "$cache_file"$$ &&
12656 mv -f "$cache_file"$$ "$cache_file" ;; #(
12657 *)
12658 mv -f confcache "$cache_file" ;;
12659 esac
12660 fi
12661 fi
8d138742 12662 else
b0322a85 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
12664$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12665 fi
12666fi
12667rm -f confcache
d9898ee8 12668
8d138742
CE
12669test "x$prefix" = xNONE && prefix=$ac_default_prefix
12670# Let make expand exec_prefix.
12671test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12672
8d138742 12673DEFS=-DHAVE_CONFIG_H
d9898ee8 12674
8d138742
CE
12675ac_libobjs=
12676ac_ltlibobjs=
12677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12678 # 1. Remove the extension, and $U if already installed.
12679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12682 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12685done
12686LIBOBJS=$ac_libobjs
d9898ee8 12687
8d138742 12688LTLIBOBJS=$ac_ltlibobjs
d9898ee8 12689
d9898ee8 12690
b0322a85
CE
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12692$as_echo_n "checking that generated files are newer than configure... " >&6; }
12693 if test -n "$am_sleep_pid"; then
12694 # Hide warnings about reused PIDs.
12695 wait $am_sleep_pid 2>/dev/null
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12698$as_echo "done" >&6; }
8d138742
CE
12699 if test -n "$EXEEXT"; then
12700 am__EXEEXT_TRUE=
12701 am__EXEEXT_FALSE='#'
12702else
12703 am__EXEEXT_TRUE='#'
12704 am__EXEEXT_FALSE=
12705fi
d9898ee8 12706
8d138742 12707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12708 as_fn_error $? "conditional \"AMDEP\" was never defined.
12709Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12710fi
12711if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12712 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12713Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12714fi
12715if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12716 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12717Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 12718fi
d9898ee8 12719
b0322a85 12720: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12721ac_write_fail=0
12722ac_clean_files_save=$ac_clean_files
12723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12726as_write_fail=0
12727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12728#! $SHELL
12729# Generated by $as_me.
12730# Run this file to recreate the current configuration.
12731# Compiler output produced by configure, useful for debugging
12732# configure, is in config.log if it exists.
d9898ee8 12733
8d138742
CE
12734debug=false
12735ac_cs_recheck=false
12736ac_cs_silent=false
d9898ee8 12737
b0322a85
CE
12738SHELL=\${CONFIG_SHELL-$SHELL}
12739export SHELL
12740_ASEOF
12741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12742## -------------------- ##
12743## M4sh Initialization. ##
12744## -------------------- ##
d9898ee8 12745
8d138742
CE
12746# Be more Bourne compatible
12747DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12749 emulate sh
12750 NULLCMD=:
12751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12752 # is contrary to our usage. Disable this feature.
12753 alias -g '${1+"$@"}'='"$@"'
12754 setopt NO_GLOB_SUBST
12755else
b0322a85
CE
12756 case `(set -o) 2>/dev/null` in #(
12757 *posix*) :
12758 set -o posix ;; #(
12759 *) :
12760 ;;
8d138742 12761esac
8d138742 12762fi
d9898ee8 12763
d9898ee8 12764
8d138742
CE
12765as_nl='
12766'
12767export as_nl
12768# Printing a long string crashes Solaris 7 /usr/bin/printf.
12769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12772# Prefer a ksh shell builtin over an external printf program on Solaris,
12773# but without wasting forks for bash or zsh.
12774if test -z "$BASH_VERSION$ZSH_VERSION" \
12775 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12776 as_echo='print -r --'
12777 as_echo_n='print -rn --'
12778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12779 as_echo='printf %s\n'
12780 as_echo_n='printf %s'
12781else
12782 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12783 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12784 as_echo_n='/usr/ucb/echo -n'
12785 else
12786 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12787 as_echo_n_body='eval
12788 arg=$1;
b0322a85 12789 case $arg in #(
8d138742
CE
12790 *"$as_nl"*)
12791 expr "X$arg" : "X\\(.*\\)$as_nl";
12792 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12793 esac;
12794 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12795 '
12796 export as_echo_n_body
12797 as_echo_n='sh -c $as_echo_n_body as_echo'
12798 fi
12799 export as_echo_body
12800 as_echo='sh -c $as_echo_body as_echo'
12801fi
d9898ee8 12802
8d138742
CE
12803# The user is always right.
12804if test "${PATH_SEPARATOR+set}" != set; then
12805 PATH_SEPARATOR=:
12806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12808 PATH_SEPARATOR=';'
12809 }
12810fi
d9898ee8 12811
d9898ee8 12812
8d138742
CE
12813# IFS
12814# We need space, tab and new line, in precisely that order. Quoting is
12815# there to prevent editors from complaining about space-tab.
12816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12817# splitting by setting IFS to empty value.)
12818IFS=" "" $as_nl"
d9898ee8 12819
8d138742 12820# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12821as_myself=
12822case $0 in #((
8d138742
CE
12823 *[\\/]* ) as_myself=$0 ;;
12824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
b0322a85
CE
12829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12830 done
8d138742 12831IFS=$as_save_IFS
d9898ee8 12832
8d138742
CE
12833 ;;
12834esac
12835# We did not find ourselves, most probably we were run as `sh COMMAND'
12836# in which case we are not to be found in the path.
12837if test "x$as_myself" = x; then
12838 as_myself=$0
12839fi
12840if test ! -f "$as_myself"; then
12841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12842 exit 1
8d138742 12843fi
d9898ee8 12844
b0322a85
CE
12845# Unset variables that we do not need and which cause bugs (e.g. in
12846# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12847# suppresses any "Segmentation fault" message there. '((' could
12848# trigger a bug in pdksh 5.2.14.
12849for as_var in BASH_ENV ENV MAIL MAILPATH
12850do eval test x\${$as_var+set} = xset \
12851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12852done
12853PS1='$ '
12854PS2='> '
12855PS4='+ '
d9898ee8 12856
8d138742
CE
12857# NLS nuisances.
12858LC_ALL=C
12859export LC_ALL
12860LANGUAGE=C
12861export LANGUAGE
d9898ee8 12862
b0322a85
CE
12863# CDPATH.
12864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12865
12866
12867# as_fn_error STATUS ERROR [LINENO LOG_FD]
12868# ----------------------------------------
12869# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12870# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12871# script with STATUS, using 1 if that was 0.
12872as_fn_error ()
12873{
12874 as_status=$1; test $as_status -eq 0 && as_status=1
12875 if test "$4"; then
12876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12878 fi
12879 $as_echo "$as_me: error: $2" >&2
12880 as_fn_exit $as_status
12881} # as_fn_error
12882
12883
12884# as_fn_set_status STATUS
12885# -----------------------
12886# Set $? to STATUS, without forking.
12887as_fn_set_status ()
12888{
12889 return $1
12890} # as_fn_set_status
12891
12892# as_fn_exit STATUS
12893# -----------------
12894# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12895as_fn_exit ()
12896{
12897 set +e
12898 as_fn_set_status $1
12899 exit $1
12900} # as_fn_exit
12901
12902# as_fn_unset VAR
12903# ---------------
12904# Portably unset VAR.
12905as_fn_unset ()
12906{
12907 { eval $1=; unset $1;}
12908}
12909as_unset=as_fn_unset
12910# as_fn_append VAR VALUE
12911# ----------------------
12912# Append the text in VALUE to the end of the definition contained in VAR. Take
12913# advantage of any shell optimizations that allow amortized linear growth over
12914# repeated appends, instead of the typical quadratic growth present in naive
12915# implementations.
12916if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12917 eval 'as_fn_append ()
12918 {
12919 eval $1+=\$2
12920 }'
12921else
12922 as_fn_append ()
12923 {
12924 eval $1=\$$1\$2
12925 }
12926fi # as_fn_append
12927
12928# as_fn_arith ARG...
12929# ------------------
12930# Perform arithmetic evaluation on the ARGs, and store the result in the
12931# global $as_val. Take advantage of shells that can avoid forks. The arguments
12932# must be portable across $(()) and expr.
12933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12934 eval 'as_fn_arith ()
12935 {
12936 as_val=$(( $* ))
12937 }'
12938else
12939 as_fn_arith ()
12940 {
12941 as_val=`expr "$@" || test $? -eq 1`
12942 }
12943fi # as_fn_arith
12944
12945
8d138742
CE
12946if expr a : '\(a\)' >/dev/null 2>&1 &&
12947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12948 as_expr=expr
12949else
12950 as_expr=false
12951fi
d9898ee8 12952
8d138742
CE
12953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12954 as_basename=basename
12955else
12956 as_basename=false
12957fi
d9898ee8 12958
b0322a85
CE
12959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12960 as_dirname=dirname
12961else
12962 as_dirname=false
12963fi
d9898ee8 12964
8d138742
CE
12965as_me=`$as_basename -- "$0" ||
12966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12967 X"$0" : 'X\(//\)$' \| \
12968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12969$as_echo X/"$0" |
12970 sed '/^.*\/\([^/][^/]*\)\/*$/{
12971 s//\1/
12972 q
12973 }
12974 /^X\/\(\/\/\)$/{
12975 s//\1/
12976 q
12977 }
12978 /^X\/\(\/\).*/{
12979 s//\1/
12980 q
12981 }
12982 s/.*/./; q'`
d9898ee8 12983
b0322a85
CE
12984# Avoid depending upon Character Ranges.
12985as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12987as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12988as_cr_digits='0123456789'
12989as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12990
8d138742 12991ECHO_C= ECHO_N= ECHO_T=
b0322a85 12992case `echo -n x` in #(((((
8d138742 12993-n*)
b0322a85 12994 case `echo 'xy\c'` in
8d138742 12995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12996 xy) ECHO_C='\c';;
12997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12998 ECHO_T=' ';;
8d138742
CE
12999 esac;;
13000*)
13001 ECHO_N='-n';;
13002esac
b0322a85
CE
13003
13004rm -f conf$$ conf$$.exe conf$$.file
13005if test -d conf$$.dir; then
13006 rm -f conf$$.dir/conf$$.file
8d138742 13007else
b0322a85
CE
13008 rm -f conf$$.dir
13009 mkdir conf$$.dir 2>/dev/null
13010fi
13011if (echo >conf$$.file) 2>/dev/null; then
13012 if ln -s conf$$.file conf$$ 2>/dev/null; then
13013 as_ln_s='ln -s'
13014 # ... but there are two gotchas:
13015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13017 # In both cases, we have to default to `cp -pR'.
13018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13019 as_ln_s='cp -pR'
13020 elif ln conf$$.file conf$$ 2>/dev/null; then
13021 as_ln_s=ln
13022 else
13023 as_ln_s='cp -pR'
13024 fi
13025else
13026 as_ln_s='cp -pR'
8d138742 13027fi
b0322a85
CE
13028rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13029rmdir conf$$.dir 2>/dev/null
13030
13031
13032# as_fn_mkdir_p
13033# -------------
13034# Create "$as_dir" as a directory, including parents if necessary.
13035as_fn_mkdir_p ()
13036{
13037
13038 case $as_dir in #(
13039 -*) as_dir=./$as_dir;;
13040 esac
13041 test -d "$as_dir" || eval $as_mkdir_p || {
13042 as_dirs=
13043 while :; do
13044 case $as_dir in #(
13045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13046 *) as_qdir=$as_dir;;
13047 esac
13048 as_dirs="'$as_qdir' $as_dirs"
13049 as_dir=`$as_dirname -- "$as_dir" ||
13050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13051 X"$as_dir" : 'X\(//\)[^/]' \| \
13052 X"$as_dir" : 'X\(//\)$' \| \
13053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13054$as_echo X"$as_dir" |
13055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13056 s//\1/
13057 q
13058 }
13059 /^X\(\/\/\)[^/].*/{
13060 s//\1/
13061 q
13062 }
13063 /^X\(\/\/\)$/{
13064 s//\1/
13065 q
13066 }
13067 /^X\(\/\).*/{
13068 s//\1/
13069 q
13070 }
13071 s/.*/./; q'`
13072 test -d "$as_dir" && break
13073 done
13074 test -z "$as_dirs" || eval "mkdir $as_dirs"
13075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d9898ee8 13076
d9898ee8 13077
b0322a85 13078} # as_fn_mkdir_p
8d138742 13079if mkdir -p . 2>/dev/null; then
b0322a85 13080 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
13081else
13082 test -d ./-p && rmdir ./-p
13083 as_mkdir_p=false
13084fi
d9898ee8 13085
b0322a85
CE
13086
13087# as_fn_executable_p FILE
13088# -----------------------
13089# Test if FILE is an executable regular file.
13090as_fn_executable_p ()
13091{
13092 test -f "$1" && test -x "$1"
13093} # as_fn_executable_p
13094as_test_x='test -x'
13095as_executable_p=as_fn_executable_p
d9898ee8 13096
8d138742
CE
13097# Sed expression to map a string onto a valid CPP name.
13098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13099
8d138742
CE
13100# Sed expression to map a string onto a valid variable name.
13101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13102
d9898ee8 13103
8d138742 13104exec 6>&1
b0322a85
CE
13105## ----------------------------------- ##
13106## Main body of $CONFIG_STATUS script. ##
13107## ----------------------------------- ##
13108_ASEOF
13109test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 13110
b0322a85
CE
13111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
13113# report actual input values of CONFIG_FILES etc. instead of their
13114# values after options handling.
13115ac_log="
13116This file was extended by random128 $as_me 0.10, which was
b0322a85 13117generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 13118
8d138742
CE
13119 CONFIG_FILES = $CONFIG_FILES
13120 CONFIG_HEADERS = $CONFIG_HEADERS
13121 CONFIG_LINKS = $CONFIG_LINKS
13122 CONFIG_COMMANDS = $CONFIG_COMMANDS
13123 $ $0 $@
d9898ee8 13124
8d138742
CE
13125on `(hostname || uname -n) 2>/dev/null | sed 1q`
13126"
d9898ee8 13127
8d138742 13128_ACEOF
d9898ee8 13129
8d138742
CE
13130case $ac_config_files in *"
13131"*) set x $ac_config_files; shift; ac_config_files=$*;;
13132esac
d9898ee8 13133
8d138742
CE
13134case $ac_config_headers in *"
13135"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13136esac
d9898ee8 13137
d9898ee8 13138
8d138742
CE
13139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140# Files that config.status was made for.
13141config_files="$ac_config_files"
13142config_headers="$ac_config_headers"
13143config_commands="$ac_config_commands"
d9898ee8 13144
8d138742 13145_ACEOF
d9898ee8 13146
8d138742
CE
13147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13148ac_cs_usage="\
b0322a85
CE
13149\`$as_me' instantiates files and other configuration actions
13150from templates according to the current configuration. Unless the files
13151and actions are specified as TAGs, all are instantiated by default.
d9898ee8 13152
b0322a85 13153Usage: $0 [OPTION]... [TAG]...
d9898ee8 13154
8d138742
CE
13155 -h, --help print this help, then exit
13156 -V, --version print version number and configuration settings, then exit
b0322a85 13157 --config print configuration, then exit
8d138742
CE
13158 -q, --quiet, --silent
13159 do not print progress messages
13160 -d, --debug don't remove temporary files
13161 --recheck update $as_me by reconfiguring in the same conditions
13162 --file=FILE[:TEMPLATE]
13163 instantiate the configuration file FILE
13164 --header=FILE[:TEMPLATE]
13165 instantiate the configuration header FILE
d9898ee8 13166
8d138742
CE
13167Configuration files:
13168$config_files
d9898ee8 13169
8d138742
CE
13170Configuration headers:
13171$config_headers
d9898ee8 13172
8d138742
CE
13173Configuration commands:
13174$config_commands
d9898ee8 13175
b0322a85 13176Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 13177
8d138742
CE
13178_ACEOF
13179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13180ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
13181ac_cs_version="\\
13182random128 config.status 0.10
b0322a85
CE
13183configured by $0, generated by GNU Autoconf 2.69,
13184 with options \\"\$ac_cs_config\\"
d9898ee8 13185
b0322a85 13186Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
13187This config.status script is free software; the Free Software Foundation
13188gives unlimited permission to copy, distribute and modify it."
d9898ee8 13189
8d138742
CE
13190ac_pwd='$ac_pwd'
13191srcdir='$srcdir'
13192INSTALL='$INSTALL'
13193MKDIR_P='$MKDIR_P'
13194AWK='$AWK'
13195test -n "\$AWK" || AWK=awk
13196_ACEOF
d9898ee8 13197
8d138742
CE
13198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13199# The default lists apply if the user does not specify any file.
13200ac_need_defaults=:
13201while test $# != 0
13202do
13203 case $1 in
b0322a85 13204 --*=?*)
8d138742
CE
13205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13207 ac_shift=:
13208 ;;
b0322a85
CE
13209 --*=)
13210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13211 ac_optarg=
13212 ac_shift=:
13213 ;;
8d138742
CE
13214 *)
13215 ac_option=$1
13216 ac_optarg=$2
13217 ac_shift=shift
13218 ;;
13219 esac
d9898ee8 13220
8d138742
CE
13221 case $ac_option in
13222 # Handling of the options.
13223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13224 ac_cs_recheck=: ;;
13225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13226 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13227 --config | --confi | --conf | --con | --co | --c )
13228 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13229 --debug | --debu | --deb | --de | --d | -d )
13230 debug=: ;;
13231 --file | --fil | --fi | --f )
13232 $ac_shift
13233 case $ac_optarg in
13234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13235 '') as_fn_error $? "missing file argument" ;;
8d138742 13236 esac
b0322a85 13237 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13238 ac_need_defaults=false;;
13239 --header | --heade | --head | --hea )
13240 $ac_shift
13241 case $ac_optarg in
13242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13243 esac
b0322a85 13244 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13245 ac_need_defaults=false;;
13246 --he | --h)
13247 # Conflict between --help and --header
b0322a85
CE
13248 as_fn_error $? "ambiguous option: \`$1'
13249Try \`$0 --help' for more information.";;
8d138742
CE
13250 --help | --hel | -h )
13251 $as_echo "$ac_cs_usage"; exit ;;
13252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13254 ac_cs_silent=: ;;
d9898ee8 13255
8d138742 13256 # This is an error.
b0322a85
CE
13257 -*) as_fn_error $? "unrecognized option: \`$1'
13258Try \`$0 --help' for more information." ;;
d9898ee8 13259
b0322a85 13260 *) as_fn_append ac_config_targets " $1"
8d138742 13261 ac_need_defaults=false ;;
d9898ee8 13262
8d138742
CE
13263 esac
13264 shift
13265done
d9898ee8 13266
8d138742 13267ac_configure_extra_args=
d9898ee8 13268
8d138742
CE
13269if $ac_cs_silent; then
13270 exec 6>/dev/null
13271 ac_configure_extra_args="$ac_configure_extra_args --silent"
13272fi
d9898ee8 13273
8d138742
CE
13274_ACEOF
13275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13276if \$ac_cs_recheck; then
b0322a85 13277 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13278 shift
13279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13280 CONFIG_SHELL='$SHELL'
13281 export CONFIG_SHELL
13282 exec "\$@"
13283fi
d9898ee8 13284
8d138742
CE
13285_ACEOF
13286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13287exec 5>>config.log
13288{
13289 echo
13290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13291## Running $as_me. ##
13292_ASBOX
13293 $as_echo "$ac_log"
13294} >&5
d9898ee8 13295
8d138742
CE
13296_ACEOF
13297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13298#
13299# INIT-COMMANDS
13300#
13301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13302
13303
8d138742
CE
13304# The HP-UX ksh and POSIX shell print the target directory to stdout
13305# if CDPATH is set.
13306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13307
8d138742
CE
13308sed_quote_subst='$sed_quote_subst'
13309double_quote_subst='$double_quote_subst'
13310delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13311macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13312macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13313enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13314enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13315pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13316enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13317SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13318ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13319PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13320host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13321host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13322host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13323build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13324build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13325build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13326SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13327Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13328GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13329EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13330FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13331LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13332NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13333LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13334max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13335ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13336exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13337lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13338lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13339lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13340lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13341lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13342reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13343reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13344OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13345deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13346file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13347file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13348want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13349DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13350sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13351AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13352AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13353archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13354STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13355RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13356old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13357old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13358old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13359lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13360CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13361CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13362compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13363GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13364lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13365lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13366lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13367lt_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"`'
13368nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13369lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13370objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13371MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13372lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13373lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13374lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13375lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13376lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13377need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13378MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13379DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13380NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13381LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13382OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13383OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13384libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13385shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13386extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13387archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13388enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13389export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13390whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13391compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13392old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13393old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13394archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13395archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13396module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13397module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13398with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13399allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13400no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13401hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13402hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13403hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13404hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13405hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13406hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13407hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13408inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13409link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13410always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13411export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13412exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13413include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13414prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13415postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13416file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13417variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13418need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13419need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13420version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13421runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13422shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13423shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13424libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13425library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13426soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13427install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13428postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13429postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13430finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13431finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13432hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13433sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13434sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13435hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13436enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13437enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13438enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13439old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13440striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13441
13442LTCC='$LTCC'
13443LTCFLAGS='$LTCFLAGS'
13444compiler='$compiler_DEFAULT'
13445
b0322a85
CE
13446# A function that is used when there is no print builtin or printf.
13447func_fallback_echo ()
13448{
13449 eval 'cat <<_LTECHO_EOF
13450\$1
13451_LTECHO_EOF'
13452}
13453
8d138742 13454# Quote evaled strings.
b0322a85
CE
13455for var in SHELL \
13456ECHO \
13457PATH_SEPARATOR \
13458SED \
8d138742
CE
13459GREP \
13460EGREP \
13461FGREP \
13462LD \
13463NM \
13464LN_S \
13465lt_SP2NL \
13466lt_NL2SP \
13467reload_flag \
13468OBJDUMP \
13469deplibs_check_method \
13470file_magic_cmd \
b0322a85
CE
13471file_magic_glob \
13472want_nocaseglob \
13473DLLTOOL \
13474sharedlib_from_linklib_cmd \
8d138742
CE
13475AR \
13476AR_FLAGS \
b0322a85 13477archiver_list_spec \
8d138742
CE
13478STRIP \
13479RANLIB \
13480CC \
13481CFLAGS \
13482compiler \
13483lt_cv_sys_global_symbol_pipe \
13484lt_cv_sys_global_symbol_to_cdecl \
13485lt_cv_sys_global_symbol_to_c_name_address \
13486lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 13487nm_file_list_spec \
8d138742 13488lt_prog_compiler_no_builtin_flag \
8d138742 13489lt_prog_compiler_pic \
b0322a85 13490lt_prog_compiler_wl \
8d138742
CE
13491lt_prog_compiler_static \
13492lt_cv_prog_compiler_c_o \
13493need_locks \
b0322a85 13494MANIFEST_TOOL \
8d138742
CE
13495DSYMUTIL \
13496NMEDIT \
13497LIPO \
13498OTOOL \
13499OTOOL64 \
13500shrext_cmds \
13501export_dynamic_flag_spec \
13502whole_archive_flag_spec \
13503compiler_needs_object \
13504with_gnu_ld \
13505allow_undefined_flag \
13506no_undefined_flag \
13507hardcode_libdir_flag_spec \
8d138742 13508hardcode_libdir_separator \
8d138742
CE
13509exclude_expsyms \
13510include_expsyms \
13511file_list_spec \
13512variables_saved_for_relink \
13513libname_spec \
13514library_names_spec \
13515soname_spec \
b0322a85 13516install_override_mode \
8d138742
CE
13517finish_eval \
13518old_striplib \
13519striplib; do
b0322a85 13520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13521 *[\\\\\\\`\\"\\\$]*)
b0322a85 13522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
13523 ;;
13524 *)
13525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13526 ;;
13527 esac
13528done
d9898ee8 13529
8d138742
CE
13530# Double-quote double-evaled strings.
13531for var in reload_cmds \
13532old_postinstall_cmds \
13533old_postuninstall_cmds \
13534old_archive_cmds \
13535extract_expsyms_cmds \
13536old_archive_from_new_cmds \
13537old_archive_from_expsyms_cmds \
13538archive_cmds \
13539archive_expsym_cmds \
13540module_cmds \
13541module_expsym_cmds \
13542export_symbols_cmds \
13543prelink_cmds \
b0322a85 13544postlink_cmds \
8d138742
CE
13545postinstall_cmds \
13546postuninstall_cmds \
13547finish_cmds \
13548sys_lib_search_path_spec \
13549sys_lib_dlsearch_path_spec; do
b0322a85 13550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13551 *[\\\\\\\`\\"\\\$]*)
b0322a85 13552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
13553 ;;
13554 *)
13555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13556 ;;
13557 esac
13558done
d9898ee8 13559
8d138742
CE
13560ac_aux_dir='$ac_aux_dir'
13561xsi_shell='$xsi_shell'
13562lt_shell_append='$lt_shell_append'
d9898ee8 13563
8d138742
CE
13564# See if we are running on zsh, and set the options which allow our
13565# commands through without removal of \ escapes INIT.
13566if test -n "\${ZSH_VERSION+set}" ; then
13567 setopt NO_GLOB_SUBST
d9898ee8 13568fi
13569
d9898ee8 13570
8d138742
CE
13571 PACKAGE='$PACKAGE'
13572 VERSION='$VERSION'
13573 TIMESTAMP='$TIMESTAMP'
13574 RM='$RM'
13575 ofile='$ofile'
d9898ee8 13576
d9898ee8 13577
dd184caf 13578
d9898ee8 13579
d9898ee8 13580_ACEOF
13581
8d138742 13582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13583
8d138742
CE
13584# Handling of arguments.
13585for ac_config_target in $ac_config_targets
13586do
13587 case $ac_config_target in
13588 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13589 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13590 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 13592
b0322a85 13593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13594 esac
13595done
d9898ee8 13596
d9898ee8 13597
8d138742
CE
13598# If the user did not use the arguments to specify the items to instantiate,
13599# then the envvar interface is used. Set only those that are not.
13600# We use the long form for the default assignment because of an extremely
13601# bizarre bug on SunOS 4.1.3.
13602if $ac_need_defaults; then
13603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 13606fi
dd184caf 13607
8d138742
CE
13608# Have a temporary directory for convenience. Make it in the build tree
13609# simply because there is no reason against having it here, and in addition,
13610# creating and moving files from /tmp can sometimes cause problems.
13611# Hook for its removal unless debugging.
13612# Note that there is a small window in which the directory will not be cleaned:
13613# after its creation but before its name has been assigned to `$tmp'.
13614$debug ||
13615{
b0322a85 13616 tmp= ac_tmp=
8d138742 13617 trap 'exit_status=$?
b0322a85
CE
13618 : "${ac_tmp:=$tmp}"
13619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13620' 0
b0322a85 13621 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
13622}
13623# Create a (secure) tmp directory for tmp files.
d9898ee8 13624
8d138742
CE
13625{
13626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13627 test -d "$tmp"
8d138742
CE
13628} ||
13629{
13630 tmp=./conf$$-$RANDOM
13631 (umask 077 && mkdir "$tmp")
b0322a85
CE
13632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13633ac_tmp=$tmp
d9898ee8 13634
8d138742
CE
13635# Set up the scripts for CONFIG_FILES section.
13636# No need to generate them if there are no CONFIG_FILES.
13637# This happens for instance with `./config.status config.h'.
13638if test -n "$CONFIG_FILES"; then
dd184caf 13639
d9898ee8 13640
b0322a85
CE
13641ac_cr=`echo X | tr X '\015'`
13642# On cygwin, bash can eat \r inside `` if the user requested igncr.
13643# But we know of no other shell where ac_cr would be empty at this
13644# point, so we can use a bashism as a fallback.
13645if test "x$ac_cr" = x; then
13646 eval ac_cr=\$\'\\r\'
13647fi
8d138742
CE
13648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13650 ac_cs_awk_cr='\\r'
d9898ee8 13651else
8d138742 13652 ac_cs_awk_cr=$ac_cr
d9898ee8 13653fi
d9898ee8 13654
b0322a85 13655echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 13656_ACEOF
13657
d9898ee8 13658
8d138742
CE
13659{
13660 echo "cat >conf$$subs.awk <<_ACEOF" &&
13661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13662 echo "_ACEOF"
13663} >conf$$subs.sh ||
b0322a85
CE
13664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13665ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13666ac_delim='%!_!# '
13667for ac_last_try in false false false false false :; do
13668 . ./conf$$subs.sh ||
b0322a85 13669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 13670
8d138742
CE
13671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13672 if test $ac_delim_n = $ac_delim_num; then
13673 break
13674 elif $ac_last_try; then
b0322a85 13675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13676 else
13677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13678 fi
13679done
13680rm -f conf$$subs.sh
13681
13682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13683cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13684_ACEOF
13685sed -n '
13686h
13687s/^/S["/; s/!.*/"]=/
13688p
13689g
13690s/^[^!]*!//
13691:repl
13692t repl
13693s/'"$ac_delim"'$//
13694t delim
13695:nl
13696h
b0322a85 13697s/\(.\{148\}\)..*/\1/
8d138742
CE
13698t more1
13699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13700p
13701n
13702b repl
13703:more1
13704s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13705p
13706g
13707s/.\{148\}//
13708t nl
13709:delim
13710h
b0322a85 13711s/\(.\{148\}\)..*/\1/
8d138742
CE
13712t more2
13713s/["\\]/\\&/g; s/^/"/; s/$/"/
13714p
13715b
13716:more2
13717s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13718p
13719g
13720s/.\{148\}//
13721t delim
13722' <conf$$subs.awk | sed '
13723/^[^""]/{
13724 N
13725 s/\n//
13726}
13727' >>$CONFIG_STATUS || ac_write_fail=1
13728rm -f conf$$subs.awk
13729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13730_ACAWK
b0322a85 13731cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13732 for (key in S) S_is_set[key] = 1
13733 FS = "\a"
d9898ee8 13734
8d138742 13735}
d9898ee8 13736{
8d138742
CE
13737 line = $ 0
13738 nfields = split(line, field, "@")
13739 substed = 0
13740 len = length(field[1])
13741 for (i = 2; i < nfields; i++) {
13742 key = field[i]
13743 keylen = length(key)
13744 if (S_is_set[key]) {
13745 value = S[key]
13746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13747 len += length(value) + length(field[++i])
13748 substed = 1
13749 } else
13750 len += 1 + keylen
13751 }
13752
13753 print line
d9898ee8 13754}
8d138742
CE
13755
13756_ACAWK
13757_ACEOF
13758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13761else
8d138742 13762 cat
b0322a85
CE
13763fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 13765_ACEOF
d9898ee8 13766
b0322a85
CE
13767# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13768# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13769# trailing colons and then remove the whole line if VPATH becomes empty
13770# (actually we leave an empty line to preserve line numbers).
13771if test "x$srcdir" = x.; then
b0322a85
CE
13772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13773h
13774s///
13775s/^/:/
13776s/[ ]*$/:/
13777s/:\$(srcdir):/:/g
13778s/:\${srcdir}:/:/g
13779s/:@srcdir@:/:/g
13780s/^:*//
8d138742 13781s/:*$//
b0322a85
CE
13782x
13783s/\(=[ ]*\).*/\1/
13784G
13785s/\n//
8d138742
CE
13786s/^[^=]*=[ ]*$//
13787}'
d9898ee8 13788fi
dd184caf 13789
8d138742
CE
13790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13791fi # test -n "$CONFIG_FILES"
d9898ee8 13792
8d138742
CE
13793# Set up the scripts for CONFIG_HEADERS section.
13794# No need to generate them if there are no CONFIG_HEADERS.
13795# This happens for instance with `./config.status Makefile'.
13796if test -n "$CONFIG_HEADERS"; then
b0322a85 13797cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742 13798BEGIN {
d9898ee8 13799_ACEOF
13800
8d138742
CE
13801# Transform confdefs.h into an awk script `defines.awk', embedded as
13802# here-document in config.status, that substitutes the proper values into
13803# config.h.in to produce config.h.
d9898ee8 13804
8d138742
CE
13805# Create a delimiter string that does not exist in confdefs.h, to ease
13806# handling of long lines.
13807ac_delim='%!_!# '
13808for ac_last_try in false false :; do
b0322a85
CE
13809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13810 if test -z "$ac_tt"; then
8d138742
CE
13811 break
13812 elif $ac_last_try; then
b0322a85 13813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
13814 else
13815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13816 fi
13817done
d9898ee8 13818
8d138742
CE
13819# For the awk script, D is an array of macro values keyed by name,
13820# likewise P contains macro parameters if any. Preserve backslash
13821# newline sequences.
d9898ee8 13822
8d138742
CE
13823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13824sed -n '
13825s/.\{148\}/&'"$ac_delim"'/g
13826t rset
13827:rset
13828s/^[ ]*#[ ]*define[ ][ ]*/ /
13829t def
13830d
13831:def
13832s/\\$//
13833t bsnl
13834s/["\\]/\\&/g
13835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13836D["\1"]=" \3"/p
13837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13838d
13839:bsnl
13840s/["\\]/\\&/g
13841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13842D["\1"]=" \3\\\\\\n"\\/p
13843t cont
13844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13845t cont
13846d
13847:cont
13848n
13849s/.\{148\}/&'"$ac_delim"'/g
13850t clear
13851:clear
13852s/\\$//
13853t bsnlc
13854s/["\\]/\\&/g; s/^/"/; s/$/"/p
13855d
13856:bsnlc
13857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13858b cont
13859' <confdefs.h | sed '
13860s/'"$ac_delim"'/"\\\
13861"/g' >>$CONFIG_STATUS || ac_write_fail=1
13862
13863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13864 for (key in D) D_is_set[key] = 1
13865 FS = "\a"
13866}
13867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13868 line = \$ 0
13869 split(line, arg, " ")
13870 if (arg[1] == "#") {
13871 defundef = arg[2]
13872 mac1 = arg[3]
13873 } else {
13874 defundef = substr(arg[1], 2)
13875 mac1 = arg[2]
13876 }
13877 split(mac1, mac2, "(") #)
13878 macro = mac2[1]
13879 prefix = substr(line, 1, index(line, defundef) - 1)
13880 if (D_is_set[macro]) {
13881 # Preserve the white space surrounding the "#".
13882 print prefix "define", macro P[macro] D[macro]
13883 next
13884 } else {
13885 # Replace #undef with comments. This is necessary, for example,
13886 # in the case of _POSIX_SOURCE, which is predefined and required
13887 # on some systems where configure will not decide to define it.
13888 if (defundef == "undef") {
13889 print "/*", prefix defundef, macro, "*/"
13890 next
13891 }
13892 }
13893}
13894{ print }
13895_ACAWK
13896_ACEOF
13897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 13898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 13899fi # test -n "$CONFIG_HEADERS"
dd184caf 13900
d9898ee8 13901
8d138742
CE
13902eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13903shift
13904for ac_tag
13905do
13906 case $ac_tag in
13907 :[FHLC]) ac_mode=$ac_tag; continue;;
13908 esac
13909 case $ac_mode$ac_tag in
13910 :[FHL]*:*);;
b0322a85 13911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13912 :[FH]-) ac_tag=-:-;;
13913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13914 esac
13915 ac_save_IFS=$IFS
13916 IFS=:
13917 set x $ac_tag
13918 IFS=$ac_save_IFS
13919 shift
13920 ac_file=$1
13921 shift
d9898ee8 13922
8d138742
CE
13923 case $ac_mode in
13924 :L) ac_source=$1;;
13925 :[FH])
13926 ac_file_inputs=
13927 for ac_f
13928 do
13929 case $ac_f in
b0322a85 13930 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13931 *) # Look for the file first in the build tree, then in the source tree
13932 # (if the path is not absolute). The absolute path cannot be DOS-style,
13933 # because $ac_f cannot contain `:'.
13934 test -f "$ac_f" ||
13935 case $ac_f in
13936 [\\/$]*) false;;
13937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13938 esac ||
b0322a85 13939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13940 esac
13941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13942 as_fn_append ac_file_inputs " '$ac_f'"
8d138742
CE
13943 done
13944
13945 # Let's still pretend it is `configure' which instantiates (i.e., don't
13946 # use $as_me), people would be surprised to read:
13947 # /* config.h. Generated by config.status. */
13948 configure_input='Generated from '`
13949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13950 `' by configure.'
13951 if test x"$ac_file" != x-; then
13952 configure_input="$ac_file. $configure_input"
b0322a85 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13954$as_echo "$as_me: creating $ac_file" >&6;}
13955 fi
13956 # Neutralize special characters interpreted by sed in replacement strings.
13957 case $configure_input in #(
13958 *\&* | *\|* | *\\* )
13959 ac_sed_conf_input=`$as_echo "$configure_input" |
13960 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13961 *) ac_sed_conf_input=$configure_input;;
13962 esac
13963
13964 case $ac_tag in
b0322a85
CE
13965 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13967 esac
13968 ;;
13969 esac
13970
13971 ac_dir=`$as_dirname -- "$ac_file" ||
13972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13973 X"$ac_file" : 'X\(//\)[^/]' \| \
13974 X"$ac_file" : 'X\(//\)$' \| \
13975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13976$as_echo X"$ac_file" |
13977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13978 s//\1/
13979 q
13980 }
13981 /^X\(\/\/\)[^/].*/{
13982 s//\1/
13983 q
13984 }
13985 /^X\(\/\/\)$/{
13986 s//\1/
13987 q
13988 }
13989 /^X\(\/\).*/{
13990 s//\1/
13991 q
13992 }
13993 s/.*/./; q'`
b0322a85 13994 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742
CE
13995 ac_builddir=.
13996
13997case "$ac_dir" in
13998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
d9898ee8 13999*)
8d138742
CE
14000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14001 # A ".." for each directory in $ac_dir_suffix.
14002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14003 case $ac_top_builddir_sub in
14004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14006 esac ;;
d9898ee8 14007esac
8d138742
CE
14008ac_abs_top_builddir=$ac_pwd
14009ac_abs_builddir=$ac_pwd$ac_dir_suffix
14010# for backward compatibility:
14011ac_top_builddir=$ac_top_build_prefix
d9898ee8 14012
8d138742
CE
14013case $srcdir in
14014 .) # We are building in place.
14015 ac_srcdir=.
14016 ac_top_srcdir=$ac_top_builddir_sub
14017 ac_abs_top_srcdir=$ac_pwd ;;
14018 [\\/]* | ?:[\\/]* ) # Absolute name.
14019 ac_srcdir=$srcdir$ac_dir_suffix;
14020 ac_top_srcdir=$srcdir
14021 ac_abs_top_srcdir=$srcdir ;;
14022 *) # Relative name.
14023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14024 ac_top_srcdir=$ac_top_build_prefix$srcdir
14025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14026esac
14027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 14028
d9898ee8 14029
8d138742
CE
14030 case $ac_mode in
14031 :F)
14032 #
14033 # CONFIG_FILE
14034 #
d9898ee8 14035
8d138742
CE
14036 case $INSTALL in
14037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14039 esac
14040 ac_MKDIR_P=$MKDIR_P
14041 case $MKDIR_P in
14042 [\\/$]* | ?:[\\/]* ) ;;
14043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14044 esac
14045_ACEOF
d9898ee8 14046
8d138742
CE
14047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14048# If the template does not know about datarootdir, expand it.
14049# FIXME: This hack should be removed a few years after 2.60.
14050ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
14051ac_sed_dataroot='
14052/datarootdir/ {
14053 p
14054 q
14055}
14056/@datadir@/p
14057/@docdir@/p
14058/@infodir@/p
14059/@localedir@/p
b0322a85 14060/@mandir@/p'
8d138742
CE
14061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14062*datarootdir*) ac_datarootdir_seen=yes;;
14063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
14065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14066_ACEOF
14067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068 ac_datarootdir_hack='
14069 s&@datadir@&$datadir&g
14070 s&@docdir@&$docdir&g
14071 s&@infodir@&$infodir&g
14072 s&@localedir@&$localedir&g
14073 s&@mandir@&$mandir&g
b0322a85 14074 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742
CE
14075esac
14076_ACEOF
d9898ee8 14077
8d138742
CE
14078# Neutralize VPATH when `$srcdir' = `.'.
14079# Shell code in configure.ac might set extrasub.
14080# FIXME: do we really want to maintain this feature?
14081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082ac_sed_extra="$ac_vpsub
14083$extrasub
d9898ee8 14084_ACEOF
8d138742
CE
14085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086:t
14087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14088s|@configure_input@|$ac_sed_conf_input|;t t
14089s&@top_builddir@&$ac_top_builddir_sub&;t t
14090s&@top_build_prefix@&$ac_top_build_prefix&;t t
14091s&@srcdir@&$ac_srcdir&;t t
14092s&@abs_srcdir@&$ac_abs_srcdir&;t t
14093s&@top_srcdir@&$ac_top_srcdir&;t t
14094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14095s&@builddir@&$ac_builddir&;t t
14096s&@abs_builddir@&$ac_abs_builddir&;t t
14097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14098s&@INSTALL@&$ac_INSTALL&;t t
14099s&@MKDIR_P@&$ac_MKDIR_P&;t t
14100$ac_datarootdir_hack
14101"
b0322a85
CE
14102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 14104
8d138742 14105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
14106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14108 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14110which seems to be undefined. Please make sure it is defined" >&5
8d138742 14111$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 14112which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 14113
b0322a85 14114 rm -f "$ac_tmp/stdin"
8d138742 14115 case $ac_file in
b0322a85
CE
14116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 14118 esac \
b0322a85 14119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
14120 ;;
14121 :H)
14122 #
14123 # CONFIG_HEADER
14124 #
14125 if test x"$ac_file" != x-; then
14126 {
14127 $as_echo "/* $configure_input */" \
b0322a85
CE
14128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14129 } >"$ac_tmp/config.h" \
14130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
14133$as_echo "$as_me: $ac_file is unchanged" >&6;}
14134 else
14135 rm -f "$ac_file"
b0322a85
CE
14136 mv "$ac_tmp/config.h" "$ac_file" \
14137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
14138 fi
14139 else
14140 $as_echo "/* $configure_input */" \
b0322a85
CE
14141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14142 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
14143 fi
14144# Compute "$ac_file"'s index in $config_headers.
14145_am_arg="$ac_file"
14146_am_stamp_count=1
14147for _am_header in $config_headers :; do
14148 case $_am_header in
14149 $_am_arg | $_am_arg:* )
14150 break ;;
14151 * )
14152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14153 esac
14154done
14155echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14156$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14157 X"$_am_arg" : 'X\(//\)[^/]' \| \
14158 X"$_am_arg" : 'X\(//\)$' \| \
14159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14160$as_echo X"$_am_arg" |
14161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14162 s//\1/
14163 q
14164 }
14165 /^X\(\/\/\)[^/].*/{
14166 s//\1/
14167 q
14168 }
14169 /^X\(\/\/\)$/{
14170 s//\1/
14171 q
14172 }
14173 /^X\(\/\).*/{
14174 s//\1/
14175 q
14176 }
14177 s/.*/./; q'`/stamp-h$_am_stamp_count
14178 ;;
d9898ee8 14179
b0322a85 14180 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
14181$as_echo "$as_me: executing $ac_file commands" >&6;}
14182 ;;
14183 esac
d9898ee8 14184
d9898ee8 14185
8d138742
CE
14186 case $ac_file$ac_mode in
14187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 14188 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
14189 # are listed without --file. Let's play safe and only enable the eval
14190 # if we detect the quoting.
14191 case $CONFIG_FILES in
14192 *\'*) eval set x "$CONFIG_FILES" ;;
14193 *) set x $CONFIG_FILES ;;
14194 esac
14195 shift
14196 for mf
14197 do
14198 # Strip MF so we end up with the name of the file.
14199 mf=`echo "$mf" | sed -e 's/:.*$//'`
14200 # Check whether this is an Automake generated Makefile or not.
b0322a85 14201 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14202 # some people rename them; so instead we look at the file content.
14203 # Grep'ing the first line is not enough: some people post-process
14204 # each Makefile.in and add a new line on top of each file to say so.
14205 # Grep'ing the whole file is not good either: AIX grep has a line
14206 # limit of 2048, but all sed's we know have understand at least 4000.
14207 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14208 dirpart=`$as_dirname -- "$mf" ||
14209$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14210 X"$mf" : 'X\(//\)[^/]' \| \
14211 X"$mf" : 'X\(//\)$' \| \
14212 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14213$as_echo X"$mf" |
14214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14215 s//\1/
14216 q
14217 }
14218 /^X\(\/\/\)[^/].*/{
14219 s//\1/
14220 q
14221 }
14222 /^X\(\/\/\)$/{
14223 s//\1/
14224 q
14225 }
14226 /^X\(\/\).*/{
14227 s//\1/
14228 q
14229 }
14230 s/.*/./; q'`
14231 else
14232 continue
14233 fi
14234 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14235 # from the Makefile without running 'make'.
8d138742
CE
14236 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14237 test -z "$DEPDIR" && continue
14238 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14239 test -z "$am__include" && continue
8d138742 14240 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14241 # Find all dependency output files, they are included files with
14242 # $(DEPDIR) in their names. We invoke sed twice because it is the
14243 # simplest approach to changing $(DEPDIR) to its actual value in the
14244 # expansion.
14245 for file in `sed -n "
14246 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14247 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14248 # Make sure the directory exists.
14249 test -f "$dirpart/$file" && continue
14250 fdir=`$as_dirname -- "$file" ||
14251$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252 X"$file" : 'X\(//\)[^/]' \| \
14253 X"$file" : 'X\(//\)$' \| \
14254 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14255$as_echo X"$file" |
14256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257 s//\1/
14258 q
14259 }
14260 /^X\(\/\/\)[^/].*/{
14261 s//\1/
14262 q
14263 }
14264 /^X\(\/\/\)$/{
14265 s//\1/
14266 q
14267 }
14268 /^X\(\/\).*/{
14269 s//\1/
14270 q
14271 }
14272 s/.*/./; q'`
b0322a85 14273 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14274 # echo "creating $dirpart/$file"
14275 echo '# dummy' > "$dirpart/$file"
14276 done
14277 done
14278}
14279 ;;
14280 "libtool":C)
d9898ee8 14281
8d138742
CE
14282 # See if we are running on zsh, and set the options which allow our
14283 # commands through without removal of \ escapes.
14284 if test -n "${ZSH_VERSION+set}" ; then
14285 setopt NO_GLOB_SUBST
14286 fi
d9898ee8 14287
8d138742
CE
14288 cfgfile="${ofile}T"
14289 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14290 $RM "$cfgfile"
dd184caf 14291
8d138742
CE
14292 cat <<_LT_EOF >> "$cfgfile"
14293#! $SHELL
14294
14295# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14296# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14298# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14299#
8d138742 14300# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
14301# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14302# Foundation, Inc.
8d138742 14303# Written by Gordon Matzigkeit, 1996
d9898ee8 14304#
8d138742
CE
14305# This file is part of GNU Libtool.
14306#
14307# GNU Libtool is free software; you can redistribute it and/or
14308# modify it under the terms of the GNU General Public License as
14309# published by the Free Software Foundation; either version 2 of
14310# the License, or (at your option) any later version.
14311#
14312# As a special exception to the GNU General Public License,
14313# if you distribute this file as part of a program or library that
14314# is built using GNU Libtool, you may include this file under the
14315# same distribution terms that you use for the rest of that program.
14316#
14317# GNU Libtool is distributed in the hope that it will be useful,
14318# but WITHOUT ANY WARRANTY; without even the implied warranty of
14319# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14320# GNU General Public License for more details.
14321#
14322# You should have received a copy of the GNU General Public License
14323# along with GNU Libtool; see the file COPYING. If not, a copy
14324# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14325# obtained by writing to the Free Software Foundation, Inc.,
14326# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14327
d9898ee8 14328
8d138742
CE
14329# The names of the tagged configurations supported by this script.
14330available_tags=""
dd184caf 14331
8d138742 14332# ### BEGIN LIBTOOL CONFIG
d9898ee8 14333
8d138742
CE
14334# Which release of libtool.m4 was used?
14335macro_version=$macro_version
14336macro_revision=$macro_revision
d9898ee8 14337
8d138742
CE
14338# Whether or not to build shared libraries.
14339build_libtool_libs=$enable_shared
d9898ee8 14340
8d138742
CE
14341# Whether or not to build static libraries.
14342build_old_libs=$enable_static
d9898ee8 14343
8d138742
CE
14344# What type of objects to build.
14345pic_mode=$pic_mode
d9898ee8 14346
8d138742
CE
14347# Whether or not to optimize for fast installation.
14348fast_install=$enable_fast_install
d9898ee8 14349
b0322a85
CE
14350# Shell to use when invoking shell scripts.
14351SHELL=$lt_SHELL
14352
14353# An echo program that protects backslashes.
14354ECHO=$lt_ECHO
14355
14356# The PATH separator for the build system.
14357PATH_SEPARATOR=$lt_PATH_SEPARATOR
14358
8d138742
CE
14359# The host system.
14360host_alias=$host_alias
14361host=$host
14362host_os=$host_os
d9898ee8 14363
8d138742
CE
14364# The build system.
14365build_alias=$build_alias
14366build=$build
14367build_os=$build_os
d9898ee8 14368
8d138742
CE
14369# A sed program that does not truncate output.
14370SED=$lt_SED
d9898ee8 14371
8d138742
CE
14372# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14373Xsed="\$SED -e 1s/^X//"
d9898ee8 14374
8d138742
CE
14375# A grep program that handles long lines.
14376GREP=$lt_GREP
dd184caf 14377
8d138742
CE
14378# An ERE matcher.
14379EGREP=$lt_EGREP
dd184caf 14380
8d138742
CE
14381# A literal string matcher.
14382FGREP=$lt_FGREP
dd184caf 14383
8d138742
CE
14384# A BSD- or MS-compatible name lister.
14385NM=$lt_NM
dd184caf 14386
8d138742
CE
14387# Whether we need soft or hard links.
14388LN_S=$lt_LN_S
dd184caf 14389
8d138742
CE
14390# What is the maximum length of a command?
14391max_cmd_len=$max_cmd_len
dd184caf 14392
8d138742
CE
14393# Object file suffix (normally "o").
14394objext=$ac_objext
d9898ee8 14395
8d138742
CE
14396# Executable file suffix (normally "").
14397exeext=$exeext
d9898ee8 14398
8d138742
CE
14399# whether the shell understands "unset".
14400lt_unset=$lt_unset
d9898ee8 14401
8d138742
CE
14402# turn spaces into newlines.
14403SP2NL=$lt_lt_SP2NL
dd184caf 14404
8d138742
CE
14405# turn newlines into spaces.
14406NL2SP=$lt_lt_NL2SP
dd184caf 14407
b0322a85
CE
14408# convert \$build file names to \$host format.
14409to_host_file_cmd=$lt_cv_to_host_file_cmd
14410
14411# convert \$build files to toolchain format.
14412to_tool_file_cmd=$lt_cv_to_tool_file_cmd
dd184caf 14413
8d138742
CE
14414# An object symbol dumper.
14415OBJDUMP=$lt_OBJDUMP
d9898ee8 14416
8d138742
CE
14417# Method to check whether dependent libraries are shared objects.
14418deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14419
b0322a85 14420# Command to use when deplibs_check_method = "file_magic".
8d138742 14421file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14422
b0322a85
CE
14423# How to find potential files when deplibs_check_method = "file_magic".
14424file_magic_glob=$lt_file_magic_glob
14425
14426# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14427want_nocaseglob=$lt_want_nocaseglob
14428
14429# DLL creation program.
14430DLLTOOL=$lt_DLLTOOL
14431
14432# Command to associate shared and link libraries.
14433sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14434
8d138742
CE
14435# The archiver.
14436AR=$lt_AR
b0322a85
CE
14437
14438# Flags to create an archive.
8d138742 14439AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14440
b0322a85
CE
14441# How to feed a file listing to the archiver.
14442archiver_list_spec=$lt_archiver_list_spec
14443
8d138742
CE
14444# A symbol stripping program.
14445STRIP=$lt_STRIP
d9898ee8 14446
8d138742
CE
14447# Commands used to install an old-style archive.
14448RANLIB=$lt_RANLIB
14449old_postinstall_cmds=$lt_old_postinstall_cmds
14450old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14451
b0322a85
CE
14452# Whether to use a lock for old archive extraction.
14453lock_old_archive_extraction=$lock_old_archive_extraction
14454
8d138742
CE
14455# A C compiler.
14456LTCC=$lt_CC
d9898ee8 14457
8d138742
CE
14458# LTCC compiler flags.
14459LTCFLAGS=$lt_CFLAGS
d9898ee8 14460
8d138742
CE
14461# Take the output of nm and produce a listing of raw symbols and C names.
14462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14463
8d138742
CE
14464# Transform the output of nm in a proper C declaration.
14465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14466
8d138742
CE
14467# Transform the output of nm in a C name address pair.
14468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14469
8d138742
CE
14470# Transform the output of nm in a C name address pair when lib prefix is needed.
14471global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14472
b0322a85
CE
14473# Specify filename containing input files for \$NM.
14474nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 14475
b0322a85
CE
14476# The root where to search for dependent libraries,and in which our libraries should be installed.
14477lt_sysroot=$lt_sysroot
dd184caf 14478
b0322a85
CE
14479# The name of the directory that contains temporary libtool files.
14480objdir=$objdir
d9898ee8 14481
8d138742
CE
14482# Used to examine libraries when file_magic_cmd begins with "file".
14483MAGIC_CMD=$MAGIC_CMD
d9898ee8 14484
8d138742
CE
14485# Must we lock files when doing compilation?
14486need_locks=$lt_need_locks
d9898ee8 14487
b0322a85
CE
14488# Manifest tool.
14489MANIFEST_TOOL=$lt_MANIFEST_TOOL
14490
8d138742
CE
14491# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14492DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14493
8d138742
CE
14494# Tool to change global to local symbols on Mac OS X.
14495NMEDIT=$lt_NMEDIT
d9898ee8 14496
8d138742
CE
14497# Tool to manipulate fat objects and archives on Mac OS X.
14498LIPO=$lt_LIPO
d9898ee8 14499
8d138742
CE
14500# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14501OTOOL=$lt_OTOOL
d9898ee8 14502
8d138742
CE
14503# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14504OTOOL64=$lt_OTOOL64
d9898ee8 14505
8d138742
CE
14506# Old archive suffix (normally "a").
14507libext=$libext
d9898ee8 14508
8d138742
CE
14509# Shared library suffix (normally ".so").
14510shrext_cmds=$lt_shrext_cmds
d9898ee8 14511
8d138742
CE
14512# The commands to extract the exported symbol list from a shared archive.
14513extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14514
8d138742
CE
14515# Variables whose values should be saved in libtool wrapper scripts and
14516# restored at link time.
14517variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14518
8d138742
CE
14519# Do we need the "lib" prefix for modules?
14520need_lib_prefix=$need_lib_prefix
d9898ee8 14521
8d138742
CE
14522# Do we need a version for libraries?
14523need_version=$need_version
d9898ee8 14524
8d138742
CE
14525# Library versioning type.
14526version_type=$version_type
d9898ee8 14527
8d138742
CE
14528# Shared library runtime path variable.
14529runpath_var=$runpath_var
d9898ee8 14530
8d138742
CE
14531# Shared library path variable.
14532shlibpath_var=$shlibpath_var
d9898ee8 14533
8d138742
CE
14534# Is shlibpath searched before the hard-coded library search path?
14535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14536
8d138742
CE
14537# Format of library name prefix.
14538libname_spec=$lt_libname_spec
d9898ee8 14539
8d138742
CE
14540# List of archive names. First name is the real one, the rest are links.
14541# The last name is the one that the linker finds with -lNAME
14542library_names_spec=$lt_library_names_spec
d9898ee8 14543
8d138742
CE
14544# The coded name of the library, if different from the real name.
14545soname_spec=$lt_soname_spec
d9898ee8 14546
b0322a85
CE
14547# Permission mode override for installation of shared libraries.
14548install_override_mode=$lt_install_override_mode
14549
8d138742
CE
14550# Command to use after installation of a shared archive.
14551postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14552
8d138742
CE
14553# Command to use after uninstallation of a shared archive.
14554postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14555
8d138742
CE
14556# Commands used to finish a libtool library installation in a directory.
14557finish_cmds=$lt_finish_cmds
dd184caf 14558
8d138742
CE
14559# As "finish_cmds", except a single script fragment to be evaled but
14560# not shown.
14561finish_eval=$lt_finish_eval
d9898ee8 14562
8d138742
CE
14563# Whether we should hardcode library paths into libraries.
14564hardcode_into_libs=$hardcode_into_libs
d9898ee8 14565
8d138742
CE
14566# Compile-time system search path for libraries.
14567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14568
8d138742
CE
14569# Run-time system search path for libraries.
14570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14571
8d138742
CE
14572# Whether dlopen is supported.
14573dlopen_support=$enable_dlopen
d9898ee8 14574
8d138742
CE
14575# Whether dlopen of programs is supported.
14576dlopen_self=$enable_dlopen_self
d9898ee8 14577
8d138742
CE
14578# Whether dlopen of statically linked programs is supported.
14579dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14580
8d138742
CE
14581# Commands to strip libraries.
14582old_striplib=$lt_old_striplib
14583striplib=$lt_striplib
d9898ee8 14584
d9898ee8 14585
8d138742
CE
14586# The linker used to build libraries.
14587LD=$lt_LD
d9898ee8 14588
b0322a85
CE
14589# How to create reloadable object files.
14590reload_flag=$lt_reload_flag
14591reload_cmds=$lt_reload_cmds
14592
8d138742
CE
14593# Commands used to build an old-style archive.
14594old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14595
8d138742
CE
14596# A language specific compiler.
14597CC=$lt_compiler
d9898ee8 14598
8d138742
CE
14599# Is the compiler the GNU compiler?
14600with_gcc=$GCC
dd184caf 14601
8d138742
CE
14602# Compiler flag to turn off builtin functions.
14603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14604
8d138742
CE
14605# Additional compiler flags for building library objects.
14606pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14607
b0322a85
CE
14608# How to pass a linker flag through the compiler.
14609wl=$lt_lt_prog_compiler_wl
14610
8d138742
CE
14611# Compiler flag to prevent dynamic linking.
14612link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14613
8d138742
CE
14614# Does compiler simultaneously support -c and -o options?
14615compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14616
14617# Whether or not to add -lc for building shared libraries.
14618build_libtool_need_lc=$archive_cmds_need_lc
14619
14620# Whether or not to disallow shared libs when runtime libs are static.
14621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14622
14623# Compiler flag to allow reflexive dlopens.
14624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14625
8d138742
CE
14626# Compiler flag to generate shared objects directly from archives.
14627whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14628
8d138742
CE
14629# Whether the compiler copes with passing no objects directly.
14630compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14631
8d138742
CE
14632# Create an old-style archive from a shared archive.
14633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14634
8d138742
CE
14635# Create a temporary old-style archive to link instead of a shared archive.
14636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14637
8d138742
CE
14638# Commands used to build a shared archive.
14639archive_cmds=$lt_archive_cmds
14640archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14641
8d138742
CE
14642# Commands used to build a loadable module if different from building
14643# a shared archive.
14644module_cmds=$lt_module_cmds
14645module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14646
8d138742
CE
14647# Whether we are building with GNU ld or not.
14648with_gnu_ld=$lt_with_gnu_ld
dd184caf 14649
8d138742
CE
14650# Flag that allows shared libraries with undefined symbols to be built.
14651allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14652
8d138742
CE
14653# Flag that enforces no undefined symbols.
14654no_undefined_flag=$lt_no_undefined_flag
dd184caf 14655
8d138742
CE
14656# Flag to hardcode \$libdir into a binary during linking.
14657# This must work even if \$libdir does not exist
14658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14659
8d138742
CE
14660# Whether we need a single "-rpath" flag with a separated argument.
14661hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14662
8d138742
CE
14663# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14664# DIR into the resulting binary.
14665hardcode_direct=$hardcode_direct
dd184caf 14666
8d138742
CE
14667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14668# DIR into the resulting binary and the resulting library dependency is
14669# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14670# library is relocated.
14671hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 14672
8d138742
CE
14673# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14674# into the resulting binary.
14675hardcode_minus_L=$hardcode_minus_L
dd184caf 14676
8d138742
CE
14677# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14678# into the resulting binary.
14679hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14680
8d138742
CE
14681# Set to "yes" if building a shared library automatically hardcodes DIR
14682# into the library and all subsequent libraries and executables linked
14683# against it.
14684hardcode_automatic=$hardcode_automatic
dd184caf 14685
8d138742
CE
14686# Set to yes if linker adds runtime paths of dependent libraries
14687# to runtime path list.
14688inherit_rpath=$inherit_rpath
dd184caf 14689
8d138742
CE
14690# Whether libtool must link a program against all its dependency libraries.
14691link_all_deplibs=$link_all_deplibs
dd184caf 14692
8d138742
CE
14693# Set to "yes" if exported symbols are required.
14694always_export_symbols=$always_export_symbols
d9898ee8 14695
8d138742
CE
14696# The commands to list exported symbols.
14697export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14698
8d138742
CE
14699# Symbols that should not be listed in the preloaded symbols.
14700exclude_expsyms=$lt_exclude_expsyms
dd184caf 14701
8d138742
CE
14702# Symbols that must always be exported.
14703include_expsyms=$lt_include_expsyms
d9898ee8 14704
8d138742
CE
14705# Commands necessary for linking programs (against libraries) with templates.
14706prelink_cmds=$lt_prelink_cmds
d9898ee8 14707
b0322a85
CE
14708# Commands necessary for finishing linking programs.
14709postlink_cmds=$lt_postlink_cmds
14710
8d138742
CE
14711# Specify filename containing input files.
14712file_list_spec=$lt_file_list_spec
14713
14714# How to hardcode a shared library path into an executable.
14715hardcode_action=$hardcode_action
d9898ee8 14716
8d138742 14717# ### END LIBTOOL CONFIG
d9898ee8 14718
8d138742 14719_LT_EOF
d9898ee8 14720
8d138742
CE
14721 case $host_os in
14722 aix3*)
14723 cat <<\_LT_EOF >> "$cfgfile"
14724# AIX sometimes has problems with the GCC collect2 program. For some
14725# reason, if we set the COLLECT_NAMES environment variable, the problems
14726# vanish in a puff of smoke.
14727if test "X${COLLECT_NAMES+set}" != Xset; then
14728 COLLECT_NAMES=
14729 export COLLECT_NAMES
14730fi
14731_LT_EOF
14732 ;;
dd184caf 14733 esac
8d138742
CE
14734
14735
14736ltmain="$ac_aux_dir/ltmain.sh"
14737
14738
14739 # We use sed instead of cat because bash on DJGPP gets confused if
14740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14741 # text mode, it properly converts lines to CR/LF. This bash problem
14742 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14743 sed '$q' "$ltmain" >> "$cfgfile" \
14744 || (rm -f "$cfgfile"; exit 1)
14745
14746 if test x"$xsi_shell" = xyes; then
14747 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14748func_dirname ()\
14749{\
14750\ case ${1} in\
14751\ */*) func_dirname_result="${1%/*}${2}" ;;\
14752\ * ) func_dirname_result="${3}" ;;\
14753\ esac\
14754} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14755 && mv -f "$cfgfile.tmp" "$cfgfile" \
14756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14757test 0 -eq $? || _lt_function_replace_fail=:
14758
14759
14760 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14761func_basename ()\
14762{\
14763\ func_basename_result="${1##*/}"\
14764} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14765 && mv -f "$cfgfile.tmp" "$cfgfile" \
14766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14767test 0 -eq $? || _lt_function_replace_fail=:
14768
14769
14770 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14771func_dirname_and_basename ()\
14772{\
14773\ case ${1} in\
14774\ */*) func_dirname_result="${1%/*}${2}" ;;\
14775\ * ) func_dirname_result="${3}" ;;\
14776\ esac\
14777\ func_basename_result="${1##*/}"\
14778} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781test 0 -eq $? || _lt_function_replace_fail=:
14782
14783
14784 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14785func_stripname ()\
14786{\
14787\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14788\ # positional parameters, so assign one to ordinary parameter first.\
14789\ func_stripname_result=${3}\
14790\ func_stripname_result=${func_stripname_result#"${1}"}\
14791\ func_stripname_result=${func_stripname_result%"${2}"}\
14792} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14793 && mv -f "$cfgfile.tmp" "$cfgfile" \
14794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14795test 0 -eq $? || _lt_function_replace_fail=:
14796
14797
14798 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14799func_split_long_opt ()\
14800{\
14801\ func_split_long_opt_name=${1%%=*}\
14802\ func_split_long_opt_arg=${1#*=}\
14803} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14804 && mv -f "$cfgfile.tmp" "$cfgfile" \
14805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14806test 0 -eq $? || _lt_function_replace_fail=:
14807
14808
14809 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14810func_split_short_opt ()\
14811{\
14812\ func_split_short_opt_arg=${1#??}\
14813\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14814} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14815 && mv -f "$cfgfile.tmp" "$cfgfile" \
14816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14817test 0 -eq $? || _lt_function_replace_fail=:
14818
14819
14820 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14821func_lo2o ()\
14822{\
14823\ case ${1} in\
14824\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14825\ *) func_lo2o_result=${1} ;;\
14826\ esac\
14827} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14828 && mv -f "$cfgfile.tmp" "$cfgfile" \
14829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14830test 0 -eq $? || _lt_function_replace_fail=:
14831
14832
14833 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14834func_xform ()\
14835{\
14836 func_xform_result=${1%.*}.lo\
14837} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14838 && mv -f "$cfgfile.tmp" "$cfgfile" \
14839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14840test 0 -eq $? || _lt_function_replace_fail=:
14841
14842
14843 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14844func_arith ()\
14845{\
14846 func_arith_result=$(( $* ))\
14847} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14848 && mv -f "$cfgfile.tmp" "$cfgfile" \
14849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14850test 0 -eq $? || _lt_function_replace_fail=:
14851
14852
14853 sed -e '/^func_len ()$/,/^} # func_len /c\
14854func_len ()\
14855{\
14856 func_len_result=${#1}\
14857} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14858 && mv -f "$cfgfile.tmp" "$cfgfile" \
14859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14860test 0 -eq $? || _lt_function_replace_fail=:
14861
14862fi
14863
14864if test x"$lt_shell_append" = xyes; then
14865 sed -e '/^func_append ()$/,/^} # func_append /c\
14866func_append ()\
14867{\
14868 eval "${1}+=\\${2}"\
14869} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14870 && mv -f "$cfgfile.tmp" "$cfgfile" \
14871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14872test 0 -eq $? || _lt_function_replace_fail=:
14873
14874
14875 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14876func_append_quoted ()\
14877{\
14878\ func_quote_for_eval "${2}"\
14879\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14880} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14881 && mv -f "$cfgfile.tmp" "$cfgfile" \
14882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14883test 0 -eq $? || _lt_function_replace_fail=:
14884
14885
14886 # Save a `func_append' function call where possible by direct use of '+='
14887 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14888 && mv -f "$cfgfile.tmp" "$cfgfile" \
14889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890 test 0 -eq $? || _lt_function_replace_fail=:
14891else
14892 # Save a `func_append' function call even when '+=' is not available
14893 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14894 && mv -f "$cfgfile.tmp" "$cfgfile" \
14895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14896 test 0 -eq $? || _lt_function_replace_fail=:
14897fi
14898
14899if test x"$_lt_function_replace_fail" = x":"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14901$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14902fi
14903
14904
14905 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14907 chmod +x "$ofile"
14908
d9898ee8 14909 ;;
dd184caf 14910
d9898ee8 14911 esac
dd184caf 14912done # for ac_tag
d9898ee8 14913
d9898ee8 14914
b0322a85 14915as_fn_exit 0
d9898ee8 14916_ACEOF
d9898ee8 14917ac_clean_files=$ac_clean_files_save
14918
8d138742 14919test $ac_write_fail = 0 ||
b0322a85 14920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14921
d9898ee8 14922
14923# configure is writing to config.log, and then calls config.status.
14924# config.status does its own redirection, appending to config.log.
14925# Unfortunately, on DOS this fails, as config.log is still kept open
14926# by configure, so config.status won't be able to write to it; its
14927# output is simply discarded. So we exec the FD to /dev/null,
14928# effectively closing config.log, so it can be properly (re)opened and
14929# appended to by config.status. When coming back to configure, we
14930# need to make the FD available again.
14931if test "$no_create" != yes; then
14932 ac_cs_success=:
14933 ac_config_status_args=
14934 test "$silent" = yes &&
14935 ac_config_status_args="$ac_config_status_args --quiet"
14936 exec 5>/dev/null
14937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14938 exec 5>>config.log
14939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14940 # would make configure fail if this is the last instruction.
b0322a85 14941 $ac_cs_success || as_fn_exit 1
d9898ee8 14942fi
8d138742 14943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14946fi
d9898ee8 14947