]> andersk Git - libyaml.git/blame - configure
debian: Clean doxygen-generated documentation with dh_doxygen
[libyaml.git] / configure
CommitLineData
b9668ba4
AK
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0044e680 3# Generated by GNU Autoconf 2.69 for yaml 0.1.7.
b9668ba4 4#
0044e680 5# Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>.
b9668ba4 6#
0fbeb4dc 7#
0044e680 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
0fbeb4dc
AK
9#
10#
b9668ba4
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
0fbeb4dc
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b9668ba4
AK
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
0fbeb4dc 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b9668ba4
AK
20 emulate sh
21 NULLCMD=:
47dc80f6 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b9668ba4
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
0fbeb4dc
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
b9668ba4 32esac
b9668ba4
AK
33fi
34
35
47dc80f6
AK
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
0fbeb4dc
AK
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
47dc80f6
AK
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'
b9668ba4 56 else
47dc80f6
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
0fbeb4dc 60 case $arg in #(
47dc80f6
AK
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'
b9668ba4 69 fi
47dc80f6
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
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 }
b9668ba4
AK
81fi
82
b9668ba4
AK
83
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.)
b9668ba4
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
059850b5 92as_myself=
0fbeb4dc 93case $0 in #((
b9668ba4
AK
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=.
0fbeb4dc
AK
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
b9668ba4
AK
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
47dc80f6 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0fbeb4dc 113 exit 1
b9668ba4
AK
114fi
115
0fbeb4dc
AK
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 || :
b9668ba4
AK
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
47dc80f6
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
b9668ba4 133
b9668ba4 134# CDPATH.
0fbeb4dc 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 136
0044e680
AK
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;}
b9668ba4 162if test "x$CONFIG_SHELL" = x; then
0fbeb4dc
AK
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
b9668ba4 170else
0fbeb4dc
AK
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
b9668ba4 177fi
0fbeb4dc
AK
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; }
b9668ba4
AK
184
185exitcode=0
0fbeb4dc
AK
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
0044e680
AK
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
0fbeb4dc
AK
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
059850b5
AK
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
0fbeb4dc
AK
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
b9668ba4 212else
0fbeb4dc 213 as_have_required=no
b9668ba4 214fi
0fbeb4dc 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
b9668ba4 216
b9668ba4 217else
0fbeb4dc
AK
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
b9668ba4
AK
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=.
0fbeb4dc
AK
224 as_found=:
225 case $as_dir in #(
b9668ba4
AK
226 /*)
227 for as_base in sh bash ksh sh5; do
0fbeb4dc
AK
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
b9668ba4
AK
237 done;;
238 esac
0fbeb4dc 239 as_found=false
b9668ba4 240done
0fbeb4dc
AK
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; }
b9668ba4
AK
245IFS=$as_save_IFS
246
247
0fbeb4dc 248 if test "x$CONFIG_SHELL" != x; then :
0044e680
AK
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= ;;
262esac
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
b9668ba4
AK
268fi
269
0fbeb4dc
AK
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
0044e680 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and https://bitbucket.org/xi/libyaml/issues/new about
0fbeb4dc
AK
278$0: your system, including any error possibly output before
279$0: this message. Then install a modern shell, or manually
280$0: run the script under such a shell if you do have one."
281 fi
282 exit 1
b9668ba4 283fi
b9668ba4 284fi
b9668ba4 285fi
0fbeb4dc
AK
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
b9668ba4 291
0fbeb4dc
AK
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300 { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
b9668ba4 303
0fbeb4dc
AK
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
b9668ba4 311
0fbeb4dc
AK
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
b9668ba4 327
0fbeb4dc
AK
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
0044e680
AK
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
0fbeb4dc
AK
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
b9668ba4 388else
0fbeb4dc
AK
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410fi # as_fn_arith
b9668ba4 411
b9668ba4 412
0fbeb4dc
AK
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
b9668ba4 432else
0fbeb4dc 433 as_expr=false
b9668ba4
AK
434fi
435
0fbeb4dc
AK
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
b9668ba4
AK
440fi
441
0fbeb4dc
AK
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
b9668ba4 444else
0fbeb4dc 445 as_dirname=false
b9668ba4
AK
446fi
447
0fbeb4dc
AK
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
b9668ba4 466
0fbeb4dc
AK
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 473
b9668ba4 474
0fbeb4dc
AK
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
b9668ba4
AK
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
0fbeb4dc 496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b9668ba4 497
0044e680
AK
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
b9668ba4
AK
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508}
509
b9668ba4 510ECHO_C= ECHO_N= ECHO_T=
0fbeb4dc 511case `echo -n x` in #(((((
b9668ba4 512-n*)
0fbeb4dc 513 case `echo 'xy\c'` in
b9668ba4 514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0fbeb4dc
AK
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
b9668ba4
AK
518 esac;;
519*)
520 ECHO_N='-n';;
521esac
b9668ba4
AK
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526else
527 rm -f conf$$.dir
47dc80f6
AK
528 mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0044e680 536 # In both cases, we have to default to `cp -pR'.
47dc80f6 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0044e680 538 as_ln_s='cp -pR'
47dc80f6
AK
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
0044e680 542 as_ln_s='cp -pR'
47dc80f6 543 fi
b9668ba4 544else
0044e680 545 as_ln_s='cp -pR'
b9668ba4
AK
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
0fbeb4dc 551 as_mkdir_p='mkdir -p "$as_dir"'
b9668ba4
AK
552else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555fi
556
0044e680
AK
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
b9668ba4
AK
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
b9668ba4
AK
566SHELL=${CONFIG_SHELL-/bin/sh}
567
b9668ba4 568
0fbeb4dc
AK
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
b9668ba4
AK
571
572# Name of the host.
0fbeb4dc 573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b9668ba4
AK
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
b9668ba4
AK
588
589# Identity of this package.
590PACKAGE_NAME='yaml'
591PACKAGE_TARNAME='yaml'
0044e680
AK
592PACKAGE_VERSION='0.1.7'
593PACKAGE_STRING='yaml 0.1.7'
594PACKAGE_BUGREPORT='https://bitbucket.org/xi/libyaml/issues/new'
0fbeb4dc 595PACKAGE_URL=''
b9668ba4
AK
596
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611# include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616# include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
0fbeb4dc
AK
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
b9668ba4 636LIBOBJS
47dc80f6
AK
637DOXYGEN_FALSE
638DOXYGEN_TRUE
639DOXYGEN
640OTOOL64
641OTOOL
642LIPO
643NMEDIT
644DSYMUTIL
059850b5 645MANIFEST_TOOL
47dc80f6 646RANLIB
059850b5 647ac_ct_AR
47dc80f6 648AR
059850b5 649DLLTOOL
47dc80f6
AK
650OBJDUMP
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656EGREP
657GREP
658SED
659host_os
660host_vendor
661host_cpu
662host
663build_os
664build_vendor
665build_cpu
666build
667LIBTOOL
668LN_S
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
059850b5 673am__nodep
47dc80f6
AK
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687YAML_LT_AGE
688YAML_LT_REVISION
689YAML_LT_CURRENT
690YAML_LT_RELEASE
0044e680
AK
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
47dc80f6
AK
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
0fbeb4dc 748PACKAGE_URL
47dc80f6
AK
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
b9668ba4 756ac_subst_files=''
47dc80f6
AK
757ac_user_opts='
758enable_option_checking
0044e680 759enable_silent_rules
47dc80f6
AK
760enable_dependency_tracking
761enable_shared
762enable_static
763with_pic
764enable_fast_install
765with_gnu_ld
059850b5 766with_sysroot
47dc80f6
AK
767enable_libtool_lock
768'
b9668ba4
AK
769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
5c706339 777CPP'
b9668ba4
AK
778
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
47dc80f6
AK
783ac_unrecognized_opts=
784ac_unrecognized_sep=
b9668ba4
AK
785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
807# (The list follows the same order as the GNU Coding Standards.)
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
827
828ac_prev=
829ac_dashdash=
830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
0fbeb4dc
AK
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
b9668ba4
AK
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
47dc80f6 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b9668ba4 885 # Reject names that are not valid shell variable names.
47dc80f6 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 887 as_fn_error $? "invalid feature name: $ac_useropt"
47dc80f6
AK
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
b9668ba4
AK
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
47dc80f6 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b9668ba4 911 # Reject names that are not valid shell variable names.
47dc80f6 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 913 as_fn_error $? "invalid feature name: $ac_useropt"
47dc80f6
AK
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
47dc80f6 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b9668ba4 1115 # Reject names that are not valid shell variable names.
47dc80f6 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 1117 as_fn_error $? "invalid package name: $ac_useropt"
47dc80f6
AK
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
b9668ba4
AK
1128
1129 -without-* | --without-*)
47dc80f6 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b9668ba4 1131 # Reject names that are not valid shell variable names.
47dc80f6 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0fbeb4dc 1133 as_fn_error $? "invalid package name: $ac_useropt"
47dc80f6
AK
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
b9668ba4
AK
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
0fbeb4dc
AK
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
b9668ba4
AK
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
0fbeb4dc
AK
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
b9668ba4
AK
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
47dc80f6 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b9668ba4 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
47dc80f6 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
059850b5 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b9668ba4
AK
1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0fbeb4dc 1190 as_fn_error $? "missing argument to $ac_option"
b9668ba4
AK
1191fi
1192
47dc80f6
AK
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
0fbeb4dc 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
47dc80f6
AK
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
b9668ba4
AK
1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206do
1207 eval ac_val=\$$ac_var
47dc80f6
AK
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
b9668ba4
AK
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
0fbeb4dc 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b9668ba4
AK
1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
b9668ba4
AK
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
1244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0fbeb4dc 1247 as_fn_error $? "working directory cannot be determined"
b9668ba4 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0fbeb4dc 1249 as_fn_error $? "pwd does not report name of working directory"
b9668ba4
AK
1250
1251
1252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
47dc80f6
AK
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261$as_echo X"$as_myself" |
b9668ba4
AK
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
1286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0fbeb4dc 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b9668ba4
AK
1289fi
1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
0fbeb4dc 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b9668ba4
AK
1293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
0044e680 1318\`configure' configures yaml 0.1.7 to adapt to many kinds of systems.
b9668ba4
AK
1319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
0fbeb4dc 1332 -q, --quiet, --silent do not print \`checking ...' messages
b9668ba4
AK
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
47dc80f6 1340 [$ac_default_prefix]
b9668ba4 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
47dc80f6 1342 [PREFIX]
b9668ba4
AK
1343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
47dc80f6
AK
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
b9668ba4
AK
1371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
0044e680 1388 short | recursive ) echo "Configuration of yaml 0.1.7:";;
b9668ba4
AK
1389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
47dc80f6 1393 --disable-option-checking ignore unrecognized --enable/--with options
b9668ba4
AK
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0044e680
AK
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
b9668ba4
AK
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407
1408Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
059850b5 1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
b9668ba4 1412 both]
5c706339 1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
059850b5
AK
1414 --with-sysroot=DIR Search for dependent libraries within DIR
1415 (or the compiler's sysroot if not specified).
b9668ba4
AK
1416
1417Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
0fbeb4dc 1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b9668ba4
AK
1424 you have headers in a nonstandard directory <include dir>
1425 CPP C preprocessor
b9668ba4
AK
1426
1427Use these variables to override the choices made by `configure' or to help
1428it to find libraries and programs with nonstandard names/locations.
1429
0044e680 1430Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>.
0fbeb4dc
AK
1431_ACEOF
1432ac_status=$?
1433fi
1434
1435if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
1441 ac_builddir=.
1442
1443case "$ac_dir" in
1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445*)
1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453esac
1454ac_abs_top_builddir=$ac_pwd
1455ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456# for backward compatibility:
1457ac_top_builddir=$ac_top_build_prefix
1458
1459case $srcdir in
1460 .) # We are building in place.
1461 ac_srcdir=.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472esac
1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1483 else
1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1487 done
1488fi
1489
1490test -n "$ac_init_help" && exit $ac_status
1491if $ac_init_version; then
1492 cat <<\_ACEOF
0044e680
AK
1493yaml configure 0.1.7
1494generated by GNU Autoconf 2.69
0fbeb4dc 1495
0044e680 1496Copyright (C) 2012 Free Software Foundation, Inc.
0fbeb4dc
AK
1497This configure script is free software; the Free Software Foundation
1498gives unlimited permission to copy, distribute and modify it.
1499_ACEOF
1500 exit
1501fi
1502
1503## ------------------------ ##
1504## Autoconf initialization. ##
1505## ------------------------ ##
1506
1507# ac_fn_c_try_compile LINENO
1508# --------------------------
1509# Try to compile conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_compile ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534else
1535 $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
1539fi
059850b5 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1541 as_fn_set_status $ac_retval
1542
1543} # ac_fn_c_try_compile
1544
1545# ac_fn_c_try_cpp LINENO
1546# ----------------------
1547# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_cpp ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } > conftest.i && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571else
1572 $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576fi
059850b5 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1578 as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_cpp
1581
1582# ac_fn_c_try_link LINENO
1583# -----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_link ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
0044e680 1609 test -x conftest$ac_exeext
0fbeb4dc
AK
1610 }; then :
1611 ac_retval=0
1612else
1613 $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
059850b5 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1624 as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_link
1627
1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists and can be compiled using the include files in
1631# INCLUDES, setting the cache variable VAR accordingly.
1632ac_fn_c_check_header_compile ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
059850b5 1637if eval \${$3+:} false; then :
0fbeb4dc
AK
1638 $as_echo_n "(cached) " >&6
1639else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647else
1648 eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
059850b5 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1656
1657} # ac_fn_c_check_header_compile
1658
1659# ac_fn_c_try_run LINENO
1660# ----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662# that executables *can* be run.
1663ac_fn_c_try_run ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=$ac_status
1694fi
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
059850b5 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_run
1700
1701# ac_fn_c_check_func LINENO FUNC VAR
1702# ----------------------------------
1703# Tests whether FUNC exists, setting the cache variable VAR accordingly
1704ac_fn_c_check_func ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
059850b5 1709if eval \${$3+:} false; then :
0fbeb4dc
AK
1710 $as_echo_n "(cached) " >&6
1711else
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716#define $2 innocuous_$2
1717
1718/* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (); below.
1720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721 <limits.h> exists even on freestanding compilers. */
1722
1723#ifdef __STDC__
1724# include <limits.h>
1725#else
1726# include <assert.h>
1727#endif
1728
1729#undef $2
1730
1731/* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1734#ifdef __cplusplus
1735extern "C"
1736#endif
1737char $2 ();
1738/* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741#if defined __stub_$2 || defined __stub___$2
1742choke me
1743#endif
1744
1745int
1746main ()
1747{
1748return $2 ();
1749 ;
1750 return 0;
1751}
1752_ACEOF
1753if ac_fn_c_try_link "$LINENO"; then :
1754 eval "$3=yes"
1755else
1756 eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext \
1759 conftest$ac_exeext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
059850b5 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1765
1766} # ac_fn_c_check_func
1767
1768# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771# the include files in INCLUDES and setting the cache variable VAR
1772# accordingly.
1773ac_fn_c_check_header_mongrel ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
059850b5 1776 if eval \${$3+:} false; then :
0fbeb4dc
AK
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
059850b5 1779if eval \${$3+:} false; then :
0fbeb4dc
AK
1780 $as_echo_n "(cached) " >&6
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785else
1786 # Is the header compilable?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788$as_echo_n "checking $2 usability... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796else
1797 ac_header_compiler=no
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801$as_echo "$ac_header_compiler" >&6; }
1802
1803# Is the header present?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805$as_echo_n "checking $2 presence... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808#include <$2>
b9668ba4 1809_ACEOF
0fbeb4dc
AK
1810if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812else
1813 ac_header_preproc=no
b9668ba4 1814fi
0fbeb4dc
AK
1815rm -f conftest.err conftest.i conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817$as_echo "$ac_header_preproc" >&6; }
b9668ba4 1818
0fbeb4dc
AK
1819# So? What about this header?
1820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ;;
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
0044e680
AK
1838( $as_echo "## ---------------------------------------------------------- ##
1839## Report this to https://bitbucket.org/xi/libyaml/issues/new ##
1840## ---------------------------------------------------------- ##"
0fbeb4dc
AK
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1842 ;;
b9668ba4 1843esac
0fbeb4dc
AK
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
059850b5 1846if eval \${$3+:} false; then :
0fbeb4dc
AK
1847 $as_echo_n "(cached) " >&6
1848else
1849 eval "$3=\$ac_header_compiler"
b9668ba4 1850fi
0fbeb4dc
AK
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854fi
059850b5 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b9668ba4 1856
0fbeb4dc 1857} # ac_fn_c_check_header_mongrel
b9668ba4 1858
0fbeb4dc
AK
1859# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860# -------------------------------------------
1861# Tests whether TYPE exists after having included INCLUDES, setting cache
1862# variable VAR accordingly.
1863ac_fn_c_check_type ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
059850b5 1868if eval \${$3+:} false; then :
0fbeb4dc
AK
1869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=no"
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874$4
1875int
1876main ()
1877{
1878if (sizeof ($2))
1879 return 0;
1880 ;
1881 return 0;
1882}
b9668ba4 1883_ACEOF
0fbeb4dc
AK
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h. */
1887$4
1888int
1889main ()
1890{
1891if (sizeof (($2)))
1892 return 0;
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898
1899else
1900 eval "$3=yes"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 1905fi
0fbeb4dc
AK
1906eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
059850b5 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0fbeb4dc
AK
1910
1911} # ac_fn_c_check_type
b9668ba4
AK
1912cat >config.log <<_ACEOF
1913This file contains any messages produced by compilers while
1914running configure, to aid debugging if configure makes a mistake.
1915
0044e680
AK
1916It was created by yaml $as_me 0.1.7, which was
1917generated by GNU Autoconf 2.69. Invocation command line was
b9668ba4
AK
1918
1919 $ $0 $@
1920
1921_ACEOF
1922exec 5>>config.log
1923{
1924cat <<_ASUNAME
1925## --------- ##
1926## Platform. ##
1927## --------- ##
1928
1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937
1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1945
1946_ASUNAME
1947
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
1953 $as_echo "PATH: $as_dir"
1954 done
b9668ba4
AK
1955IFS=$as_save_IFS
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980 for ac_arg
1981 do
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
1987 *\'*)
47dc80f6 1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
1989 esac
1990 case $ac_pass in
0fbeb4dc 1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b9668ba4 1992 2)
0fbeb4dc 1993 as_fn_append ac_configure_args1 " '$ac_arg'"
b9668ba4
AK
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1996 else
1997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2005 ;;
2006 -* ) ac_must_keep_next=true ;;
2007 esac
2008 fi
0fbeb4dc 2009 as_fn_append ac_configure_args " '$ac_arg'"
b9668ba4
AK
2010 ;;
2011 esac
2012 done
2013done
0fbeb4dc
AK
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
b9668ba4
AK
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log. We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
0fbeb4dc 2027 $as_echo "## ---------------- ##
b9668ba4 2028## Cache variables. ##
0fbeb4dc 2029## ---------------- ##"
b9668ba4
AK
2030 echo
2031 # The following way of writing the cache mishandles newlines in values,
2032(
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
0fbeb4dc 2038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47dc80f6 2039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b9668ba4
AK
2040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
47dc80f6 2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0fbeb4dc 2044 *) { eval $ac_var=; unset $ac_var;} ;;
b9668ba4
AK
2045 esac ;;
2046 esac
2047 done
2048 (set) 2>&1 |
2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
2051 sed -n \
2052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
2055 *)
2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057 ;;
2058 esac |
2059 sort
2060)
2061 echo
2062
0fbeb4dc 2063 $as_echo "## ----------------- ##
b9668ba4 2064## Output variables. ##
0fbeb4dc 2065## ----------------- ##"
b9668ba4
AK
2066 echo
2067 for ac_var in $ac_subst_vars
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
47dc80f6 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 2072 esac
47dc80f6 2073 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
2074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
0fbeb4dc 2078 $as_echo "## ------------------- ##
b9668ba4 2079## File substitutions. ##
0fbeb4dc 2080## ------------------- ##"
b9668ba4
AK
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
47dc80f6 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b9668ba4 2087 esac
47dc80f6 2088 $as_echo "$ac_var='\''$ac_val'\''"
b9668ba4
AK
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
0fbeb4dc 2094 $as_echo "## ----------- ##
b9668ba4 2095## confdefs.h. ##
0fbeb4dc 2096## ----------- ##"
b9668ba4
AK
2097 echo
2098 cat confdefs.h
2099 echo
2100 fi
2101 test "$ac_signal" != 0 &&
47dc80f6
AK
2102 $as_echo "$as_me: caught signal $ac_signal"
2103 $as_echo "$as_me: exit $exit_status"
b9668ba4
AK
2104 } >&5
2105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107 exit $exit_status
2108' 0
2109for ac_signal in 1 2 13 15; do
0fbeb4dc 2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b9668ba4
AK
2111done
2112ac_signal=0
2113
2114# confdefs.h avoids OS command line length limits that DEFS can exceed.
2115rm -f -r conftest* confdefs.h
2116
0fbeb4dc
AK
2117$as_echo "/* confdefs.h */" > confdefs.h
2118
b9668ba4
AK
2119# Predefined preprocessor variables.
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_NAME "$PACKAGE_NAME"
2123_ACEOF
2124
b9668ba4
AK
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127_ACEOF
2128
b9668ba4
AK
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_VERSION "$PACKAGE_VERSION"
2131_ACEOF
2132
b9668ba4
AK
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_STRING "$PACKAGE_STRING"
2135_ACEOF
2136
b9668ba4
AK
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139_ACEOF
2140
0fbeb4dc
AK
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_URL "$PACKAGE_URL"
2143_ACEOF
2144
b9668ba4
AK
2145
2146# Let the site file select an alternate cache file if it wants to.
47dc80f6
AK
2147# Prefer an explicitly selected file to automatically selected ones.
2148ac_site_file1=NONE
2149ac_site_file2=NONE
b9668ba4 2150if test -n "$CONFIG_SITE"; then
0fbeb4dc
AK
2151 # We do not want a PATH search for config.site.
2152 case $CONFIG_SITE in #((
2153 -*) ac_site_file1=./$CONFIG_SITE;;
2154 */*) ac_site_file1=$CONFIG_SITE;;
2155 *) ac_site_file1=./$CONFIG_SITE;;
2156 esac
b9668ba4 2157elif test "x$prefix" != xNONE; then
47dc80f6
AK
2158 ac_site_file1=$prefix/share/config.site
2159 ac_site_file2=$prefix/etc/config.site
b9668ba4 2160else
47dc80f6
AK
2161 ac_site_file1=$ac_default_prefix/share/config.site
2162 ac_site_file2=$ac_default_prefix/etc/config.site
b9668ba4 2163fi
47dc80f6 2164for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b9668ba4 2165do
47dc80f6 2166 test "x$ac_site_file" = xNONE && continue
0fbeb4dc
AK
2167 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
47dc80f6 2169$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b9668ba4 2170 sed 's/^/| /' "$ac_site_file" >&5
0fbeb4dc
AK
2171 . "$ac_site_file" \
2172 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174as_fn_error $? "failed to load site script $ac_site_file
059850b5 2175See \`config.log' for more details" "$LINENO" 5; }
b9668ba4
AK
2176 fi
2177done
2178
2179if test -r "$cache_file"; then
0fbeb4dc
AK
2180 # Some versions of bash will fail to source /dev/null (special files
2181 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2182 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
47dc80f6 2184$as_echo "$as_me: loading cache $cache_file" >&6;}
b9668ba4
AK
2185 case $cache_file in
2186 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187 *) . "./$cache_file";;
2188 esac
2189 fi
2190else
0fbeb4dc 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
47dc80f6 2192$as_echo "$as_me: creating cache $cache_file" >&6;}
b9668ba4
AK
2193 >$cache_file
2194fi
2195
2196# Check that the precious variables saved in the cache have kept the same
2197# value.
2198ac_cache_corrupted=false
2199for ac_var in $ac_precious_vars; do
2200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201 eval ac_new_set=\$ac_env_${ac_var}_set
2202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203 eval ac_new_val=\$ac_env_${ac_var}_value
2204 case $ac_old_set,$ac_new_set in
2205 set,)
0fbeb4dc 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
47dc80f6 2207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b9668ba4
AK
2208 ac_cache_corrupted=: ;;
2209 ,set)
0fbeb4dc 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
47dc80f6 2211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b9668ba4
AK
2212 ac_cache_corrupted=: ;;
2213 ,);;
2214 *)
2215 if test "x$ac_old_val" != "x$ac_new_val"; then
47dc80f6
AK
2216 # differences in whitespace do not lead to failure.
2217 ac_old_val_w=`echo x $ac_old_val`
2218 ac_new_val_w=`echo x $ac_new_val`
2219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
0fbeb4dc 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
47dc80f6
AK
2221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222 ac_cache_corrupted=:
2223 else
0fbeb4dc 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
47dc80f6
AK
2225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226 eval $ac_var=\$ac_old_val
2227 fi
0fbeb4dc 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
47dc80f6 2229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
0fbeb4dc 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
47dc80f6 2231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b9668ba4
AK
2232 fi;;
2233 esac
2234 # Pass precious variables to config.status.
2235 if test "$ac_new_set" = set; then
2236 case $ac_new_val in
47dc80f6 2237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b9668ba4
AK
2238 *) ac_arg=$ac_var=$ac_new_val ;;
2239 esac
2240 case " $ac_configure_args " in
2241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
0fbeb4dc 2242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b9668ba4
AK
2243 esac
2244 fi
2245done
2246if $ac_cache_corrupted; then
0fbeb4dc 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
47dc80f6 2250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
0fbeb4dc 2251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b9668ba4 2252fi
0fbeb4dc
AK
2253## -------------------- ##
2254## Main body of script. ##
2255## -------------------- ##
b9668ba4
AK
2256
2257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264ac_aux_dir=
2265for ac_dir in config "$srcdir"/config; do
2266 if test -f "$ac_dir/install-sh"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/install-sh -c"
2269 break
2270 elif test -f "$ac_dir/install.sh"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/install.sh -c"
2273 break
2274 elif test -f "$ac_dir/shtool"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/shtool install -c"
2277 break
2278 fi
2279done
2280if test -z "$ac_aux_dir"; then
0fbeb4dc 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
b9668ba4
AK
2282fi
2283
2284# These three variables are undocumented and unsupported,
2285# and are intended to be withdrawn in a future Autoconf release.
2286# They can cause serious problems if a builder's source tree is in a directory
2287# whose full name contains unusual characters.
2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
2292
2293ac_config_headers="$ac_config_headers config.h"
2294
0044e680 2295am__api_version='1.14'
5c706339 2296
b9668ba4
AK
2297# Find a good install program. We prefer a C program (faster),
2298# so one script is as good as another. But avoid the broken or
2299# incompatible versions:
2300# SysV /etc/install, /usr/sbin/install
2301# SunOS /usr/etc/install
2302# IRIX /sbin/install
2303# AIX /bin/install
2304# AmigaOS /C/install, which installs bootblocks on floppy discs
2305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2308# OS/2's system install, which has a completely different semantic
2309# ./install, which can be erroneously created by make from ./install.sh.
47dc80f6 2310# Reject install programs that cannot install multiple files.
0fbeb4dc 2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
47dc80f6 2312$as_echo_n "checking for a BSD-compatible install... " >&6; }
b9668ba4 2313if test -z "$INSTALL"; then
059850b5 2314if ${ac_cv_path_install+:} false; then :
47dc80f6 2315 $as_echo_n "(cached) " >&6
b9668ba4
AK
2316else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
2322 # Account for people who put trailing slashes in PATH elements.
2323case $as_dir/ in #((
2324 ./ | .// | /[cC]/* | \
b9668ba4 2325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0fbeb4dc 2326 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b9668ba4
AK
2327 /usr/ucb/* ) ;;
2328 *)
2329 # OSF1 and SCO ODT 3.0 have their own names for install.
2330 # Don't use installbsd from OSF since it installs stuff as root
2331 # by default.
2332 for ac_prog in ginstall scoinst install; do
2333 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2334 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b9668ba4
AK
2335 if test $ac_prog = install &&
2336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # AIX install. It has an incompatible calling convention.
2338 :
2339 elif test $ac_prog = install &&
2340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341 # program-specific install script used by HP pwplus--don't use.
2342 :
2343 else
47dc80f6
AK
2344 rm -rf conftest.one conftest.two conftest.dir
2345 echo one > conftest.one
2346 echo two > conftest.two
2347 mkdir conftest.dir
2348 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2349 test -s conftest.one && test -s conftest.two &&
2350 test -s conftest.dir/conftest.one &&
2351 test -s conftest.dir/conftest.two
2352 then
2353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354 break 3
2355 fi
b9668ba4
AK
2356 fi
2357 fi
2358 done
2359 done
2360 ;;
2361esac
47dc80f6 2362
0fbeb4dc 2363 done
b9668ba4
AK
2364IFS=$as_save_IFS
2365
47dc80f6 2366rm -rf conftest.one conftest.two conftest.dir
b9668ba4
AK
2367
2368fi
2369 if test "${ac_cv_path_install+set}" = set; then
2370 INSTALL=$ac_cv_path_install
2371 else
2372 # As a last resort, use the slow shell script. Don't cache a
2373 # value for INSTALL within a source directory, because that will
2374 # break other packages using the cache if that directory is
2375 # removed, or if the value is a relative name.
2376 INSTALL=$ac_install_sh
2377 fi
2378fi
0fbeb4dc 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
47dc80f6 2380$as_echo "$INSTALL" >&6; }
b9668ba4
AK
2381
2382# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2383# It thinks the first close brace ends the variable substitution.
2384test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385
2386test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387
2388test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389
0fbeb4dc 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
47dc80f6 2391$as_echo_n "checking whether build environment is sane... " >&6; }
0fbeb4dc
AK
2392# Reject unsafe characters in $srcdir or the absolute working directory
2393# name. Accept space and tab only in the latter.
2394am_lf='
2395'
2396case `pwd` in
2397 *[\\\"\#\$\&\'\`$am_lf]*)
059850b5 2398 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0fbeb4dc
AK
2399esac
2400case $srcdir in
2401 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
0044e680 2402 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
0fbeb4dc
AK
2403esac
2404
0044e680 2405# Do 'set' in a subshell so we don't clobber the current shell's
b9668ba4
AK
2406# arguments. Must try -L first in case configure is actually a
2407# symlink; some systems play weird games with the mod time of symlinks
2408# (eg FreeBSD returns the mod time of the symlink's containing
2409# directory).
2410if (
0044e680
AK
2411 am_has_slept=no
2412 for am_try in 1 2; do
2413 echo "timestamp, slept: $am_has_slept" > conftest.file
2414 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2415 if test "$*" = "X"; then
2416 # -L didn't work.
2417 set X `ls -t "$srcdir/configure" conftest.file`
2418 fi
2419 if test "$*" != "X $srcdir/configure conftest.file" \
2420 && test "$*" != "X conftest.file $srcdir/configure"; then
2421
2422 # If neither matched, then we have a broken ls. This can happen
2423 # if, for instance, CONFIG_SHELL is bash and it inherits a
2424 # broken ls alias from the environment. This has actually
2425 # happened. Such a system could not be considered "sane".
2426 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2427 alias in your environment" "$LINENO" 5
2428 fi
2429 if test "$2" = conftest.file || test $am_try -eq 2; then
2430 break
2431 fi
2432 # Just in case.
2433 sleep 1
2434 am_has_slept=yes
2435 done
b9668ba4
AK
2436 test "$2" = conftest.file
2437 )
2438then
2439 # Ok.
2440 :
2441else
0fbeb4dc
AK
2442 as_fn_error $? "newly created file is older than distributed files!
2443Check your system clock" "$LINENO" 5
2444fi
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446$as_echo "yes" >&6; }
0044e680
AK
2447# If we didn't sleep, we still need to ensure time stamps of config.status and
2448# generated files are strictly newer.
2449am_sleep_pid=
2450if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2451 ( sleep 1 ) &
2452 am_sleep_pid=$!
2453fi
2454
2455rm -f conftest.file
2456
0fbeb4dc
AK
2457test "$program_prefix" != NONE &&
2458 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2459# Use a double $ so make ignores it.
2460test "$program_suffix" != NONE &&
2461 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2462# Double any \ or $.
2463# By default was `s,x,x', remove it if useless.
2464ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2465program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2466
2467# expand $ac_aux_dir to an absolute path
2468am_aux_dir=`cd $ac_aux_dir && pwd`
2469
2470if test x"${MISSING+set}" != xset; then
2471 case $am_aux_dir in
2472 *\ * | *\ *)
2473 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2474 *)
2475 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2476 esac
2477fi
2478# Use eval to expand $SHELL
0044e680
AK
2479if eval "$MISSING --is-lightweight"; then
2480 am_missing_run="$MISSING "
0fbeb4dc
AK
2481else
2482 am_missing_run=
0044e680
AK
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2484$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
0fbeb4dc
AK
2485fi
2486
2487if test x"${install_sh}" != xset; then
2488 case $am_aux_dir in
2489 *\ * | *\ *)
2490 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2491 *)
2492 install_sh="\${SHELL} $am_aux_dir/install-sh"
2493 esac
2494fi
2495
0044e680
AK
2496# Installed binaries are usually stripped using 'strip' when the user
2497# run "make install-strip". However 'strip' might not be the right
0fbeb4dc 2498# tool to use in cross-compilation environments, therefore Automake
0044e680 2499# will honor the 'STRIP' environment variable to overrule this program.
0fbeb4dc
AK
2500if test "$cross_compiling" != no; then
2501 if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}strip; ac_word=$2
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2506if ${ac_cv_prog_STRIP+:} false; then :
0fbeb4dc
AK
2507 $as_echo_n "(cached) " >&6
2508else
2509 if test -n "$STRIP"; then
2510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0fbeb4dc
AK
2519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524 done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529STRIP=$ac_cv_prog_STRIP
2530if test -n "$STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2532$as_echo "$STRIP" >&6; }
2533else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
2536fi
2537
2538
2539fi
2540if test -z "$ac_cv_prog_STRIP"; then
2541 ac_ct_STRIP=$STRIP
2542 # Extract the first word of "strip", so it can be a program name with args.
2543set dummy strip; ac_word=$2
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2546if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0fbeb4dc
AK
2547 $as_echo_n "(cached) " >&6
2548else
2549 if test -n "$ac_ct_STRIP"; then
2550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0fbeb4dc
AK
2559 ac_cv_prog_ac_ct_STRIP="strip"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564 done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2570if test -n "$ac_ct_STRIP"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2572$as_echo "$ac_ct_STRIP" >&6; }
2573else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575$as_echo "no" >&6; }
b9668ba4 2576fi
b9668ba4 2577
0fbeb4dc
AK
2578 if test "x$ac_ct_STRIP" = x; then
2579 STRIP=":"
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2585ac_tool_warned=yes ;;
2586esac
2587 STRIP=$ac_ct_STRIP
2588 fi
b9668ba4 2589else
0fbeb4dc
AK
2590 STRIP="$ac_cv_prog_STRIP"
2591fi
2592
b9668ba4 2593fi
0fbeb4dc 2594INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b9668ba4 2595
0fbeb4dc 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
47dc80f6 2597$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5c706339 2598if test -z "$MKDIR_P"; then
059850b5 2599 if ${ac_cv_path_mkdir+:} false; then :
47dc80f6 2600 $as_echo_n "(cached) " >&6
5c706339
AK
2601else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
0fbeb4dc 2607 for ac_prog in mkdir gmkdir; do
5c706339 2608 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2609 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5c706339
AK
2610 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2611 'mkdir (GNU coreutils) '* | \
2612 'mkdir (coreutils) '* | \
2613 'mkdir (fileutils) '4.1*)
2614 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2615 break 3;;
2616 esac
2617 done
2618 done
0fbeb4dc 2619 done
5c706339
AK
2620IFS=$as_save_IFS
2621
2622fi
2623
0fbeb4dc 2624 test -d ./--version && rmdir ./--version
5c706339
AK
2625 if test "${ac_cv_path_mkdir+set}" = set; then
2626 MKDIR_P="$ac_cv_path_mkdir -p"
b9668ba4 2627 else
5c706339
AK
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for MKDIR_P within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
5c706339 2632 MKDIR_P="$ac_install_sh -d"
b9668ba4
AK
2633 fi
2634fi
0fbeb4dc 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
47dc80f6 2636$as_echo "$MKDIR_P" >&6; }
5c706339 2637
b9668ba4
AK
2638for ac_prog in gawk mawk nawk awk
2639do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641set dummy $ac_prog; ac_word=$2
0fbeb4dc 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2643$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2644if ${ac_cv_prog_AWK+:} false; then :
47dc80f6 2645 $as_echo_n "(cached) " >&6
b9668ba4
AK
2646else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
0fbeb4dc 2655 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2657 ac_cv_prog_AWK="$ac_prog"
0fbeb4dc 2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2659 break 2
2660 fi
2661done
0fbeb4dc 2662 done
b9668ba4
AK
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667AWK=$ac_cv_prog_AWK
2668if test -n "$AWK"; then
0fbeb4dc 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
47dc80f6 2670$as_echo "$AWK" >&6; }
b9668ba4 2671else
0fbeb4dc 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2673$as_echo "no" >&6; }
b9668ba4
AK
2674fi
2675
2676
2677 test -n "$AWK" && break
2678done
2679
0fbeb4dc 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47dc80f6
AK
2681$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682set x ${MAKE-make}
2683ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
059850b5 2684if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
47dc80f6 2685 $as_echo_n "(cached) " >&6
b9668ba4
AK
2686else
2687 cat >conftest.make <<\_ACEOF
2688SHELL = /bin/sh
2689all:
2690 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691_ACEOF
0fbeb4dc 2692# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b9668ba4
AK
2693case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 *)
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698esac
2699rm -f conftest.make
2700fi
2701if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0fbeb4dc 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 2703$as_echo "yes" >&6; }
b9668ba4
AK
2704 SET_MAKE=
2705else
0fbeb4dc 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2707$as_echo "no" >&6; }
b9668ba4
AK
2708 SET_MAKE="MAKE=${MAKE-make}"
2709fi
2710
2711rm -rf .tst 2>/dev/null
2712mkdir .tst 2>/dev/null
2713if test -d .tst; then
2714 am__leading_dot=.
2715else
2716 am__leading_dot=_
2717fi
2718rmdir .tst 2>/dev/null
2719
0044e680
AK
2720# Check whether --enable-silent-rules was given.
2721if test "${enable_silent_rules+set}" = set; then :
2722 enableval=$enable_silent_rules;
2723fi
2724
2725case $enable_silent_rules in # (((
2726 yes) AM_DEFAULT_VERBOSITY=0;;
2727 no) AM_DEFAULT_VERBOSITY=1;;
2728 *) AM_DEFAULT_VERBOSITY=1;;
2729esac
2730am_make=${MAKE-make}
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2732$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2733if ${am_cv_make_support_nested_variables+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735else
2736 if $as_echo 'TRUE=$(BAR$(V))
2737BAR0=false
2738BAR1=true
2739V=1
2740am__doit:
2741 @$(TRUE)
2742.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2743 am_cv_make_support_nested_variables=yes
2744else
2745 am_cv_make_support_nested_variables=no
2746fi
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2749$as_echo "$am_cv_make_support_nested_variables" >&6; }
2750if test $am_cv_make_support_nested_variables = yes; then
2751 AM_V='$(V)'
2752 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2753else
2754 AM_V=$AM_DEFAULT_VERBOSITY
2755 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2756fi
2757AM_BACKSLASH='\'
2758
5c706339
AK
2759if test "`cd $srcdir && pwd`" != "`pwd`"; then
2760 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2761 # is not polluted with repeated "-I."
2762 am__isrc=' -I$(srcdir)'
2763 # test to see if srcdir already configured
2764 if test -f $srcdir/config.status; then
0fbeb4dc 2765 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5c706339 2766 fi
b9668ba4
AK
2767fi
2768
2769# test whether we have cygpath
2770if test -z "$CYGPATH_W"; then
2771 if (cygpath --version) >/dev/null 2>/dev/null; then
2772 CYGPATH_W='cygpath -w'
2773 else
2774 CYGPATH_W=echo
2775 fi
2776fi
2777
2778
2779# Define the identity of the package.
2780 PACKAGE='yaml'
0044e680 2781 VERSION='0.1.7'
b9668ba4
AK
2782
2783
2784cat >>confdefs.h <<_ACEOF
2785#define PACKAGE "$PACKAGE"
2786_ACEOF
2787
2788
2789cat >>confdefs.h <<_ACEOF
2790#define VERSION "$VERSION"
2791_ACEOF
2792
2793# Some tools Automake needs.
2794
2795ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
0044e680
AK
2809# For better backward compatibility. To be removed once Automake 1.9.x
2810# dies out for good. For more background, see:
2811# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2812# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2813mkdir_p='$(MKDIR_P)'
2814
b9668ba4
AK
2815# We need awk for the "check" target. The system "awk" is bad on
2816# some platforms.
059850b5
AK
2817# Always define AMTAR for backward compatibility. Yes, it's still used
2818# in the wild :-( We should find a proper way to deprecate it ...
2819AMTAR='$${TAR-tar}'
b9668ba4 2820
0044e680
AK
2821
2822# We'll loop over all known methods to create a tar archive until one works.
2823_am_tools='gnutar pax cpio none'
2824
059850b5 2825am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b9668ba4
AK
2826
2827
2828
2829
2830
2831
0044e680
AK
2832# POSIX will say in a future version that running "rm -f" with no argument
2833# is OK; and we want to be able to make that assumption in our Makefile
2834# recipes. So use an aggressive probe to check that the usage we want is
2835# actually supported "in the wild" to an acceptable degree.
2836# See automake bug#10828.
2837# To make any issue more visible, cause the running configure to be aborted
2838# by default if the 'rm' program in use doesn't match our expectations; the
2839# user can still override this though.
2840if rm -f && rm -fr && rm -rf; then : OK; else
2841 cat >&2 <<'END'
2842Oops!
2843
2844Your 'rm' program seems unable to run without file operands specified
2845on the command line, even when the '-f' option is present. This is contrary
2846to the behaviour of most rm programs out there, and not conforming with
2847the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2848
2849Please tell bug-automake@gnu.org about your system, including the value
2850of your $PATH and any error possibly output before this message. This
2851can help us improve future automake versions.
2852
2853END
2854 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2855 echo 'Configuration will proceed anyway, since you have set the' >&2
2856 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2857 echo >&2
2858 else
2859 cat >&2 <<'END'
2860Aborting the configuration process, to ensure you take notice of the issue.
2861
2862You can download and install GNU coreutils to get an 'rm' implementation
2863that behaves properly: <http://www.gnu.org/software/coreutils/>.
2864
2865If you want to complete the configuration process using your problematic
2866'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2867to "yes", and re-run configure.
2868
2869END
2870 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2871 fi
2872fi
2873
b9668ba4
AK
2874# Define macro variables for the package version numbers.
2875
0fbeb4dc 2876$as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h
b9668ba4
AK
2877
2878
0fbeb4dc 2879$as_echo "#define YAML_VERSION_MINOR 1" >>confdefs.h
b9668ba4
AK
2880
2881
0044e680 2882$as_echo "#define YAML_VERSION_PATCH 7" >>confdefs.h
b9668ba4
AK
2883
2884
0044e680 2885$as_echo "#define YAML_VERSION_STRING \"0.1.7\"" >>confdefs.h
b9668ba4
AK
2886
2887
2888# Define substitutions for the libtool version numbers.
2889YAML_LT_RELEASE=0
5c706339 2890YAML_LT_CURRENT=2
0044e680 2891YAML_LT_REVISION=5
47dc80f6 2892YAML_LT_AGE=0
b9668ba4
AK
2893
2894
2895
2896
2897
2898# Note: in order to update checks, run `autoscan` and look through "configure.scan".
2899
2900# Checks for programs.
2901ac_ext=c
2902ac_cpp='$CPP $CPPFLAGS'
2903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908set dummy ${ac_tool_prefix}gcc; ac_word=$2
0fbeb4dc 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2910$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2911if ${ac_cv_prog_CC+:} false; then :
47dc80f6 2912 $as_echo_n "(cached) " >&6
b9668ba4
AK
2913else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
0fbeb4dc 2922 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
0fbeb4dc 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2926 break 2
2927 fi
2928done
0fbeb4dc 2929 done
b9668ba4
AK
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
0fbeb4dc 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 2937$as_echo "$CC" >&6; }
b9668ba4 2938else
0fbeb4dc 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2940$as_echo "no" >&6; }
b9668ba4
AK
2941fi
2942
2943
2944fi
2945if test -z "$ac_cv_prog_CC"; then
2946 ac_ct_CC=$CC
2947 # Extract the first word of "gcc", so it can be a program name with args.
2948set dummy gcc; ac_word=$2
0fbeb4dc 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 2950$as_echo_n "checking for $ac_word... " >&6; }
059850b5 2951if ${ac_cv_prog_ac_ct_CC+:} false; then :
47dc80f6 2952 $as_echo_n "(cached) " >&6
b9668ba4
AK
2953else
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
0fbeb4dc 2962 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 2964 ac_cv_prog_ac_ct_CC="gcc"
0fbeb4dc 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
2966 break 2
2967 fi
2968done
0fbeb4dc 2969 done
b9668ba4
AK
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
0fbeb4dc 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
47dc80f6 2977$as_echo "$ac_ct_CC" >&6; }
b9668ba4 2978else
0fbeb4dc 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 2980$as_echo "no" >&6; }
b9668ba4
AK
2981fi
2982
2983 if test "x$ac_ct_CC" = x; then
2984 CC=""
2985 else
2986 case $cross_compiling:$ac_tool_warned in
2987yes:)
0fbeb4dc 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 2989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
2990ac_tool_warned=yes ;;
2991esac
2992 CC=$ac_ct_CC
2993 fi
2994else
2995 CC="$ac_cv_prog_CC"
2996fi
2997
2998if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001set dummy ${ac_tool_prefix}cc; ac_word=$2
0fbeb4dc 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3003$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3004if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3005 $as_echo_n "(cached) " >&6
b9668ba4
AK
3006else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
0fbeb4dc 3015 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3017 ac_cv_prog_CC="${ac_tool_prefix}cc"
0fbeb4dc 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3019 break 2
3020 fi
3021done
0fbeb4dc 3022 done
b9668ba4
AK
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
0fbeb4dc 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3030$as_echo "$CC" >&6; }
b9668ba4 3031else
0fbeb4dc 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3033$as_echo "no" >&6; }
b9668ba4
AK
3034fi
3035
3036
3037 fi
3038fi
3039if test -z "$CC"; then
3040 # Extract the first word of "cc", so it can be a program name with args.
3041set dummy cc; ac_word=$2
0fbeb4dc 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3043$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3044if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3045 $as_echo_n "(cached) " >&6
b9668ba4
AK
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050 ac_prog_rejected=no
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
0fbeb4dc 3056 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4
AK
3058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3059 ac_prog_rejected=yes
3060 continue
3061 fi
3062 ac_cv_prog_CC="cc"
0fbeb4dc 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3064 break 2
3065 fi
3066done
0fbeb4dc 3067 done
b9668ba4
AK
3068IFS=$as_save_IFS
3069
3070if test $ac_prog_rejected = yes; then
3071 # We found a bogon in the path, so make sure we never use it.
3072 set dummy $ac_cv_prog_CC
3073 shift
3074 if test $# != 0; then
3075 # We chose a different compiler from the bogus one.
3076 # However, it has the same basename, so the bogon will be chosen
3077 # first if we set CC to just the basename; use the full file name.
3078 shift
3079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 fi
3081fi
3082fi
3083fi
3084CC=$ac_cv_prog_CC
3085if test -n "$CC"; then
0fbeb4dc 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3087$as_echo "$CC" >&6; }
b9668ba4 3088else
0fbeb4dc 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3090$as_echo "no" >&6; }
b9668ba4
AK
3091fi
3092
3093
3094fi
3095if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3102$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3103if ${ac_cv_prog_CC+:} false; then :
47dc80f6 3104 $as_echo_n "(cached) " >&6
b9668ba4
AK
3105else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
0fbeb4dc 3114 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
0fbeb4dc 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3118 break 2
3119 fi
3120done
0fbeb4dc 3121 done
b9668ba4
AK
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
0fbeb4dc 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47dc80f6 3129$as_echo "$CC" >&6; }
b9668ba4 3130else
0fbeb4dc 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3132$as_echo "no" >&6; }
b9668ba4
AK
3133fi
3134
3135
3136 test -n "$CC" && break
3137 done
3138fi
3139if test -z "$CC"; then
3140 ac_ct_CC=$CC
3141 for ac_prog in cl.exe
3142do
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144set dummy $ac_prog; ac_word=$2
0fbeb4dc 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 3146$as_echo_n "checking for $ac_word... " >&6; }
059850b5 3147if ${ac_cv_prog_ac_ct_CC+:} false; then :
47dc80f6 3148 $as_echo_n "(cached) " >&6
b9668ba4
AK
3149else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
0fbeb4dc 3158 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b9668ba4 3160 ac_cv_prog_ac_ct_CC="$ac_prog"
0fbeb4dc 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
3162 break 2
3163 fi
3164done
0fbeb4dc 3165 done
b9668ba4
AK
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171if test -n "$ac_ct_CC"; then
0fbeb4dc 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
47dc80f6 3173$as_echo "$ac_ct_CC" >&6; }
b9668ba4 3174else
0fbeb4dc 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 3176$as_echo "no" >&6; }
b9668ba4
AK
3177fi
3178
3179
3180 test -n "$ac_ct_CC" && break
3181done
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187yes:)
0fbeb4dc 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 3189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
3190ac_tool_warned=yes ;;
3191esac
3192 CC=$ac_ct_CC
3193 fi
3194fi
3195
3196fi
3197
3198
0fbeb4dc 3199test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3201as_fn_error $? "no acceptable C compiler found in \$PATH
059850b5 3202See \`config.log' for more details" "$LINENO" 5; }
b9668ba4
AK
3203
3204# Provide some information about the compiler.
0fbeb4dc 3205$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
47dc80f6
AK
3206set X $ac_compile
3207ac_compiler=$2
0fbeb4dc
AK
3208for ac_option in --version -v -V -qversion; do
3209 { { ac_try="$ac_compiler $ac_option >&5"
b9668ba4
AK
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
0fbeb4dc
AK
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b9668ba4 3217 ac_status=$?
0fbeb4dc
AK
3218 if test -s conftest.err; then
3219 sed '10a\
3220... rest of stderr output deleted ...
3221 10q' conftest.err >conftest.er1
3222 cat conftest.er1 >&5
3223 fi
3224 rm -f conftest.er1 conftest.err
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3227done
b9668ba4 3228
0fbeb4dc 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3230/* end confdefs.h. */
3231
3232int
3233main ()
3234{
3235
3236 ;
3237 return 0;
3238}
3239_ACEOF
3240ac_clean_files_save=$ac_clean_files
47dc80f6 3241ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b9668ba4
AK
3242# Try to create an executable without -o first, disregard a.out.
3243# It will help us diagnose broken compilers, and finding out an intuition
3244# of exeext.
0fbeb4dc
AK
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3246$as_echo_n "checking whether the C compiler works... " >&6; }
47dc80f6
AK
3247ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248
3249# The possible output files:
3250ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251
b9668ba4
AK
3252ac_rmfiles=
3253for ac_file in $ac_files
3254do
3255 case $ac_file in
47dc80f6 3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258 esac
3259done
3260rm -f $ac_rmfiles
3261
0fbeb4dc 3262if { { ac_try="$ac_link_default"
b9668ba4
AK
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
0fbeb4dc
AK
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3269 (eval "$ac_link_default") 2>&5
3270 ac_status=$?
0fbeb4dc
AK
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
b9668ba4
AK
3273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3274# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3275# in a Makefile. We should not override ac_cv_exeext if it was cached,
3276# so that the user can short-circuit this test for compilers unknown to
3277# Autoconf.
3278for ac_file in $ac_files ''
3279do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
47dc80f6 3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b9668ba4
AK
3283 ;;
3284 [ab].out )
3285 # We found the default executable, but exeext='' is most
3286 # certainly right.
3287 break;;
3288 *.* )
0fbeb4dc 3289 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b9668ba4
AK
3290 then :; else
3291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 fi
3293 # We set ac_cv_exeext here because the later test for it is not
3294 # safe: cross compilers may not add the suffix if given an `-o'
3295 # argument, so we may need to know it at that point already.
3296 # Even if this section looks crufty: it has the advantage of
3297 # actually working.
3298 break;;
3299 * )
3300 break;;
3301 esac
3302done
3303test "$ac_cv_exeext" = no && ac_cv_exeext=
3304
3305else
3306 ac_file=''
3307fi
0fbeb4dc
AK
3308if test -z "$ac_file"; then :
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311$as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
0fbeb4dc 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3316as_fn_error 77 "C compiler cannot create executables
059850b5 3317See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
3318else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320$as_echo "yes" >&6; }
b9668ba4 3321fi
0fbeb4dc
AK
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323$as_echo_n "checking for C compiler default output file name... " >&6; }
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325$as_echo "$ac_file" >&6; }
b9668ba4
AK
3326ac_exeext=$ac_cv_exeext
3327
47dc80f6 3328rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b9668ba4 3329ac_clean_files=$ac_clean_files_save
0fbeb4dc 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
47dc80f6 3331$as_echo_n "checking for suffix of executables... " >&6; }
0fbeb4dc 3332if { { ac_try="$ac_link"
b9668ba4
AK
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
0fbeb4dc
AK
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3339 (eval "$ac_link") 2>&5
3340 ac_status=$?
0fbeb4dc
AK
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
b9668ba4
AK
3343 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3345# work properly (i.e., refer to `conftest.exe'), while it won't with
3346# `rm'.
3347for ac_file in conftest.exe conftest conftest.*; do
3348 test -f "$ac_file" || continue
3349 case $ac_file in
47dc80f6 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b9668ba4
AK
3351 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 break;;
3353 * ) break;;
3354 esac
3355done
3356else
0fbeb4dc 3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3359as_fn_error $? "cannot compute suffix of executables: cannot compile and link
059850b5 3360See \`config.log' for more details" "$LINENO" 5; }
b9668ba4 3361fi
0fbeb4dc
AK
3362rm -f conftest conftest$ac_cv_exeext
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
47dc80f6 3364$as_echo "$ac_cv_exeext" >&6; }
b9668ba4
AK
3365
3366rm -f conftest.$ac_ext
3367EXEEXT=$ac_cv_exeext
3368ac_exeext=$EXEEXT
0fbeb4dc
AK
3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h. */
3371#include <stdio.h>
3372int
3373main ()
3374{
3375FILE *f = fopen ("conftest.out", "w");
3376 return ferror (f) || fclose (f) != 0;
3377
3378 ;
3379 return 0;
3380}
3381_ACEOF
3382ac_clean_files="$ac_clean_files conftest.out"
3383# Check that the compiler produces executables we can run. If not, either
3384# the compiler is broken, or we cross compile.
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3386$as_echo_n "checking whether we are cross compiling... " >&6; }
3387if test "$cross_compiling" != yes; then
3388 { { ac_try="$ac_link"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 if { ac_try='./conftest$ac_cv_exeext'
3400 { { case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417as_fn_error $? "cannot run C compiled programs.
3418If you meant to cross compile, use \`--host'.
059850b5 3419See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
3420 fi
3421 fi
3422fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424$as_echo "$cross_compiling" >&6; }
3425
3426rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3427ac_clean_files=$ac_clean_files_save
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
47dc80f6 3429$as_echo_n "checking for suffix of object files... " >&6; }
059850b5 3430if ${ac_cv_objext+:} false; then :
47dc80f6 3431 $as_echo_n "(cached) " >&6
b9668ba4 3432else
0fbeb4dc 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3434/* end confdefs.h. */
3435
3436int
3437main ()
3438{
3439
3440 ;
3441 return 0;
3442}
3443_ACEOF
3444rm -f conftest.o conftest.obj
0fbeb4dc 3445if { { ac_try="$ac_compile"
b9668ba4
AK
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
0fbeb4dc
AK
3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451$as_echo "$ac_try_echo"; } >&5
b9668ba4
AK
3452 (eval "$ac_compile") 2>&5
3453 ac_status=$?
0fbeb4dc
AK
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
b9668ba4
AK
3456 for ac_file in conftest.o conftest.obj conftest.*; do
3457 test -f "$ac_file" || continue;
3458 case $ac_file in
47dc80f6 3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b9668ba4
AK
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463done
3464else
47dc80f6 3465 $as_echo "$as_me: failed program was:" >&5
b9668ba4
AK
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
0fbeb4dc 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47dc80f6 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0fbeb4dc 3470as_fn_error $? "cannot compute suffix of object files: cannot compile
059850b5 3471See \`config.log' for more details" "$LINENO" 5; }
b9668ba4 3472fi
b9668ba4
AK
3473rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474fi
0fbeb4dc 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
47dc80f6 3476$as_echo "$ac_cv_objext" >&6; }
b9668ba4
AK
3477OBJEXT=$ac_cv_objext
3478ac_objext=$OBJEXT
0fbeb4dc 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
47dc80f6 3480$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
059850b5 3481if ${ac_cv_c_compiler_gnu+:} false; then :
47dc80f6 3482 $as_echo_n "(cached) " >&6
b9668ba4 3483else
0fbeb4dc 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490#ifndef __GNUC__
3491 choke me
3492#endif
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
0fbeb4dc 3498if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3499 ac_compiler_gnu=yes
0fbeb4dc
AK
3500else
3501 ac_compiler_gnu=no
b9668ba4 3502fi
b9668ba4
AK
3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506fi
0fbeb4dc 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
47dc80f6
AK
3508$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3509if test $ac_compiler_gnu = yes; then
3510 GCC=yes
3511else
3512 GCC=
3513fi
b9668ba4
AK
3514ac_test_CFLAGS=${CFLAGS+set}
3515ac_save_CFLAGS=$CFLAGS
0fbeb4dc 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
47dc80f6 3517$as_echo_n "checking whether $CC accepts -g... " >&6; }
059850b5 3518if ${ac_cv_prog_cc_g+:} false; then :
47dc80f6 3519 $as_echo_n "(cached) " >&6
b9668ba4
AK
3520else
3521 ac_save_c_werror_flag=$ac_c_werror_flag
3522 ac_c_werror_flag=yes
3523 ac_cv_prog_cc_g=no
3524 CFLAGS="-g"
0fbeb4dc 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3526/* end confdefs.h. */
3527
3528int
3529main ()
3530{
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
0fbeb4dc 3536if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4
AK
3537 ac_cv_prog_cc_g=yes
3538else
0fbeb4dc
AK
3539 CFLAGS=""
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
0fbeb4dc 3551if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3552
0fbeb4dc
AK
3553else
3554 ac_c_werror_flag=$ac_save_c_werror_flag
b9668ba4 3555 CFLAGS="-g"
0fbeb4dc 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3557/* end confdefs.h. */
3558
3559int
3560main ()
3561{
3562
3563 ;
3564 return 0;
3565}
3566_ACEOF
0fbeb4dc 3567if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3568 ac_cv_prog_cc_g=yes
b9668ba4 3569fi
b9668ba4
AK
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571fi
b9668ba4
AK
3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
b9668ba4
AK
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576fi
0fbeb4dc 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
47dc80f6 3578$as_echo "$ac_cv_prog_cc_g" >&6; }
b9668ba4
AK
3579if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS=$ac_save_CFLAGS
3581elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3583 CFLAGS="-g -O2"
3584 else
3585 CFLAGS="-g"
3586 fi
3587else
3588 if test "$GCC" = yes; then
3589 CFLAGS="-O2"
3590 else
3591 CFLAGS=
3592 fi
3593fi
0fbeb4dc 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
47dc80f6 3595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
059850b5 3596if ${ac_cv_prog_cc_c89+:} false; then :
47dc80f6 3597 $as_echo_n "(cached) " >&6
b9668ba4
AK
3598else
3599 ac_cv_prog_cc_c89=no
3600ac_save_CC=$CC
0fbeb4dc 3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3602/* end confdefs.h. */
3603#include <stdarg.h>
3604#include <stdio.h>
0044e680 3605struct stat;
b9668ba4
AK
3606/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3607struct buf { int x; };
3608FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609static char *e (p, i)
3610 char **p;
3611 int i;
3612{
3613 return p[i];
3614}
3615static char *f (char * (*g) (char **, int), char **p, ...)
3616{
3617 char *s;
3618 va_list v;
3619 va_start (v,p);
3620 s = g (p, va_arg (v,int));
3621 va_end (v);
3622 return s;
3623}
3624
3625/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3626 function prototypes and stuff, but not '\xHH' hex character constants.
3627 These don't provoke an error unfortunately, instead are silently treated
3628 as 'x'. The following induces an error, until -std is added to get
3629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3630 array size at least. It's necessary to write '\x00'==0 to get something
3631 that's true only with -std. */
3632int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633
3634/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635 inside strings and character constants. */
3636#define FOO(x) 'x'
3637int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638
3639int test (int i, double x);
3640struct s1 {int (*f) (int a);};
3641struct s2 {int (*f) (double a);};
3642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643int argc;
3644char **argv;
3645int
3646main ()
3647{
3648return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655do
3656 CC="$ac_save_CC $ac_arg"
0fbeb4dc 3657 if ac_fn_c_try_compile "$LINENO"; then :
b9668ba4 3658 ac_cv_prog_cc_c89=$ac_arg
b9668ba4 3659fi
b9668ba4
AK
3660rm -f core conftest.err conftest.$ac_objext
3661 test "x$ac_cv_prog_cc_c89" != "xno" && break
3662done
3663rm -f conftest.$ac_ext
3664CC=$ac_save_CC
3665
3666fi
3667# AC_CACHE_VAL
3668case "x$ac_cv_prog_cc_c89" in
3669 x)
0fbeb4dc 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
47dc80f6 3671$as_echo "none needed" >&6; } ;;
b9668ba4 3672 xno)
0fbeb4dc 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
47dc80f6 3674$as_echo "unsupported" >&6; } ;;
b9668ba4
AK
3675 *)
3676 CC="$CC $ac_cv_prog_cc_c89"
0fbeb4dc 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
47dc80f6 3678$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b9668ba4 3679esac
0fbeb4dc 3680if test "x$ac_cv_prog_cc_c89" != xno; then :
b9668ba4 3681
0fbeb4dc 3682fi
b9668ba4
AK
3683
3684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
0044e680
AK
3689
3690ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3696$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3697if ${am_cv_prog_cc_c_o+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706
3707 ;
3708 return 0;
3709}
3710_ACEOF
3711 # Make sure it works both with $CC and with simple cc.
3712 # Following AC_PROG_CC_C_O, we do the test twice because some
3713 # compilers refuse to overwrite an existing .o file with -o,
3714 # though they will create one.
3715 am_cv_prog_cc_c_o=yes
3716 for am_i in 1 2; do
3717 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3718 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } \
3722 && test -f conftest2.$ac_objext; then
3723 : OK
3724 else
3725 am_cv_prog_cc_c_o=no
3726 break
3727 fi
3728 done
3729 rm -f core conftest*
3730 unset am_i
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3733$as_echo "$am_cv_prog_cc_c_o" >&6; }
3734if test "$am_cv_prog_cc_c_o" != yes; then
3735 # Losing compiler, so override with the script.
3736 # FIXME: It is wrong to rewrite CC.
3737 # But if we don't then we get into trouble of one sort or another.
3738 # A longer-term fix would be to have automake use am__CC in this case,
3739 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3740 CC="$am_aux_dir/compile $CC"
3741fi
3742ac_ext=c
3743ac_cpp='$CPP $CPPFLAGS'
3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
b9668ba4
AK
3748DEPDIR="${am__leading_dot}deps"
3749
3750ac_config_commands="$ac_config_commands depfiles"
3751
3752
3753am_make=${MAKE-make}
3754cat > confinc << 'END'
3755am__doit:
0fbeb4dc 3756 @echo this is the am__doit target
b9668ba4
AK
3757.PHONY: am__doit
3758END
3759# If we don't find an include directive, just comment out the code.
0fbeb4dc 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
47dc80f6 3761$as_echo_n "checking for style of include used by $am_make... " >&6; }
b9668ba4
AK
3762am__include="#"
3763am__quote=
3764_am_result=none
3765# First try GNU make style include.
3766echo "include confinc" > confmf
0044e680 3767# Ignore all kinds of additional output from 'make'.
0fbeb4dc
AK
3768case `$am_make -s -f confmf 2> /dev/null` in #(
3769*the\ am__doit\ target*)
3770 am__include=include
3771 am__quote=
3772 _am_result=GNU
3773 ;;
3774esac
b9668ba4
AK
3775# Now try BSD make style include.
3776if test "$am__include" = "#"; then
3777 echo '.include "confinc"' > confmf
0fbeb4dc
AK
3778 case `$am_make -s -f confmf 2> /dev/null` in #(
3779 *the\ am__doit\ target*)
3780 am__include=.include
3781 am__quote="\""
3782 _am_result=BSD
3783 ;;
3784 esac
b9668ba4
AK
3785fi
3786
3787
0fbeb4dc 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
47dc80f6 3789$as_echo "$_am_result" >&6; }
b9668ba4
AK
3790rm -f confinc confmf
3791
3792# Check whether --enable-dependency-tracking was given.
0fbeb4dc 3793if test "${enable_dependency_tracking+set}" = set; then :
b9668ba4
AK
3794 enableval=$enable_dependency_tracking;
3795fi
3796
3797if test "x$enable_dependency_tracking" != xno; then
3798 am_depcomp="$ac_aux_dir/depcomp"
3799 AMDEPBACKSLASH='\'
059850b5 3800 am__nodep='_no'
b9668ba4 3801fi
5c706339 3802 if test "x$enable_dependency_tracking" != xno; then
b9668ba4
AK
3803 AMDEP_TRUE=
3804 AMDEP_FALSE='#'
3805else
3806 AMDEP_TRUE='#'
3807 AMDEP_FALSE=
3808fi
3809
3810
3811
b9668ba4
AK
3812depcc="$CC" am_compiler_list=
3813
0fbeb4dc 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
47dc80f6 3815$as_echo_n "checking dependency style of $depcc... " >&6; }
059850b5 3816if ${am_cv_CC_dependencies_compiler_type+:} false; then :
47dc80f6 3817 $as_echo_n "(cached) " >&6
b9668ba4
AK
3818else
3819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820 # We make a subdir and do the tests there. Otherwise we can end up
3821 # making bogus files that we don't know about and never remove. For
3822 # instance it was reported that on HP-UX the gcc test will end up
0044e680
AK
3823 # making a dummy file named 'D' -- because '-MD' means "put the output
3824 # in D".
059850b5 3825 rm -rf conftest.dir
b9668ba4
AK
3826 mkdir conftest.dir
3827 # Copy depcomp to subdir because otherwise we won't find it if we're
3828 # using a relative directory.
3829 cp "$am_depcomp" conftest.dir
3830 cd conftest.dir
3831 # We will build objects and dependencies in a subdirectory because
3832 # it helps to detect inapplicable dependency modes. For instance
3833 # both Tru64's cc and ICC support -MD to output dependencies as a
3834 # side effect of compilation, but ICC will put the dependencies in
3835 # the current directory while Tru64 will put them in the object
3836 # directory.
3837 mkdir sub
3838
3839 am_cv_CC_dependencies_compiler_type=none
3840 if test "$am_compiler_list" = ""; then
3841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3842 fi
0fbeb4dc
AK
3843 am__universal=false
3844 case " $depcc " in #(
3845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3846 esac
3847
b9668ba4
AK
3848 for depmode in $am_compiler_list; do
3849 # Setup a source with many dependencies, because some compilers
3850 # like to wrap large dependency lists on column 80 (with \), and
3851 # we should not choose a depcomp mode which is confused by this.
3852 #
3853 # We need to recreate these files for each test, as the compiler may
3854 # overwrite some of them when testing with obscure command lines.
3855 # This happens at least with the AIX C compiler.
3856 : > sub/conftest.c
3857 for i in 1 2 3 4 5 6; do
3858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
0044e680
AK
3859 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3860 # Solaris 10 /bin/sh.
3861 echo '/* dummy */' > sub/conftst$i.h
b9668ba4
AK
3862 done
3863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864
0044e680 3865 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0fbeb4dc 3866 # mode. It turns out that the SunPro C++ compiler does not properly
0044e680
AK
3867 # handle '-M -o', and we need to detect this. Also, some Intel
3868 # versions had trouble with output in subdirs.
0fbeb4dc
AK
3869 am__obj=sub/conftest.${OBJEXT-o}
3870 am__minus_obj="-o $am__obj"
b9668ba4 3871 case $depmode in
0fbeb4dc
AK
3872 gcc)
3873 # This depmode causes a compiler race in universal mode.
3874 test "$am__universal" = false || continue
3875 ;;
b9668ba4 3876 nosideeffect)
0044e680
AK
3877 # After this tag, mechanisms are not by side-effect, so they'll
3878 # only be used when explicitly requested.
b9668ba4
AK
3879 if test "x$enable_dependency_tracking" = xyes; then
3880 continue
3881 else
3882 break
3883 fi
3884 ;;
059850b5 3885 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0044e680 3886 # This compiler won't grok '-c -o', but also, the minuso test has
0fbeb4dc
AK
3887 # not run yet. These depmodes are late enough in the game, and
3888 # so weak that their functioning should not be impacted.
3889 am__obj=conftest.${OBJEXT-o}
3890 am__minus_obj=
3891 ;;
b9668ba4
AK
3892 none) break ;;
3893 esac
b9668ba4 3894 if depmode=$depmode \
0fbeb4dc 3895 source=sub/conftest.c object=$am__obj \
b9668ba4 3896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0fbeb4dc 3897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
b9668ba4 3898 >/dev/null 2>conftest.err &&
5c706339 3899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4 3900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0fbeb4dc 3901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4
AK
3902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3903 # icc doesn't choke on unknown options, it will just issue warnings
3904 # or remarks (even with -Werror). So we grep stderr for any message
3905 # that says an option was ignored or not supported.
3906 # When given -MP, icc 7.0 and 7.1 complain thusly:
3907 # icc: Command line warning: ignoring option '-M'; no argument required
3908 # The diagnosis changed in icc 8.0:
3909 # icc: Command line remark: option '-MP' not supported
3910 if (grep 'ignoring option' conftest.err ||
3911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3912 am_cv_CC_dependencies_compiler_type=$depmode
3913 break
3914 fi
3915 fi
3916 done
3917
3918 cd ..
3919 rm -rf conftest.dir
3920else
3921 am_cv_CC_dependencies_compiler_type=none
3922fi
3923
3924fi
0fbeb4dc 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
47dc80f6 3926$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b9668ba4
AK
3927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3928
5c706339 3929 if
b9668ba4
AK
3930 test "x$enable_dependency_tracking" != xno \
3931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932 am__fastdepCC_TRUE=
3933 am__fastdepCC_FALSE='#'
3934else
3935 am__fastdepCC_TRUE='#'
3936 am__fastdepCC_FALSE=
3937fi
3938
3939
3940ac_ext=c
3941ac_cpp='$CPP $CPPFLAGS'
3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944ac_compiler_gnu=$ac_cv_c_compiler_gnu
0fbeb4dc 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
47dc80f6 3946$as_echo_n "checking how to run the C preprocessor... " >&6; }
b9668ba4
AK
3947# On Suns, sometimes $CPP names a directory.
3948if test -n "$CPP" && test -d "$CPP"; then
3949 CPP=
3950fi
3951if test -z "$CPP"; then
059850b5 3952 if ${ac_cv_prog_CPP+:} false; then :
47dc80f6 3953 $as_echo_n "(cached) " >&6
b9668ba4
AK
3954else
3955 # Double quotes because CPP needs to be expanded
3956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3957 do
3958 ac_preproc_ok=false
3959for ac_c_preproc_warn_flag in '' yes
3960do
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
0fbeb4dc 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3968/* end confdefs.h. */
3969#ifdef __STDC__
3970# include <limits.h>
3971#else
3972# include <assert.h>
3973#endif
3974 Syntax error
3975_ACEOF
0fbeb4dc 3976if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4 3977
b9668ba4 3978else
b9668ba4
AK
3979 # Broken: fails on valid input.
3980continue
3981fi
0fbeb4dc 3982rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4
AK
3983
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
0fbeb4dc 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b9668ba4
AK
3987/* end confdefs.h. */
3988#include <ac_nonexistent.h>
3989_ACEOF
0fbeb4dc 3990if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4
AK
3991 # Broken: success on invalid input.
3992continue
0fbeb4dc
AK
3993else
3994 # Passes both tests.
3995ac_preproc_ok=:
3996break
3997fi
3998rm -f conftest.err conftest.i conftest.$ac_ext
47dc80f6 3999
b9668ba4 4000done
0fbeb4dc
AK
4001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002rm -f conftest.i conftest.err conftest.$ac_ext
4003if $ac_preproc_ok; then :
4004 break
4005fi
b9668ba4 4006
0fbeb4dc
AK
4007 done
4008 ac_cv_prog_CPP=$CPP
b9668ba4
AK
4009
4010fi
0fbeb4dc
AK
4011 CPP=$ac_cv_prog_CPP
4012else
4013 ac_cv_prog_CPP=$CPP
b9668ba4 4014fi
0fbeb4dc
AK
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4016$as_echo "$CPP" >&6; }
4017ac_preproc_ok=false
4018for ac_c_preproc_warn_flag in '' yes
4019do
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#ifdef __STDC__
4029# include <limits.h>
4030#else
4031# include <assert.h>
4032#endif
4033 Syntax error
4034_ACEOF
4035if ac_fn_c_try_cpp "$LINENO"; then :
b9668ba4 4036
0fbeb4dc
AK
4037else
4038 # Broken: fails on valid input.
4039continue
4040fi
4041rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4 4042
0fbeb4dc
AK
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
4047#include <ac_nonexistent.h>
4048_ACEOF
4049if ac_fn_c_try_cpp "$LINENO"; then :
4050 # Broken: success on invalid input.
4051continue
4052else
4053 # Passes both tests.
4054ac_preproc_ok=:
4055break
4056fi
4057rm -f conftest.err conftest.i conftest.$ac_ext
b9668ba4 4058
0fbeb4dc
AK
4059done
4060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061rm -f conftest.i conftest.err conftest.$ac_ext
4062if $ac_preproc_ok; then :
4063
4064else
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
059850b5 4068See \`config.log' for more details" "$LINENO" 5; }
0fbeb4dc
AK
4069fi
4070
4071ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 4076
0fbeb4dc
AK
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
47dc80f6 4079$as_echo_n "checking whether ln -s works... " >&6; }
b9668ba4
AK
4080LN_S=$as_ln_s
4081if test "$LN_S" = "ln -s"; then
0fbeb4dc 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 4083$as_echo "yes" >&6; }
b9668ba4 4084else
0fbeb4dc 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
47dc80f6 4086$as_echo "no, using $LN_S" >&6; }
b9668ba4
AK
4087fi
4088
0fbeb4dc 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47dc80f6
AK
4090$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4091set x ${MAKE-make}
4092ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
059850b5 4093if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
47dc80f6 4094 $as_echo_n "(cached) " >&6
b9668ba4
AK
4095else
4096 cat >conftest.make <<\_ACEOF
4097SHELL = /bin/sh
4098all:
4099 @echo '@@@%%%=$(MAKE)=@@@%%%'
4100_ACEOF
0fbeb4dc 4101# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
b9668ba4
AK
4102case `${MAKE-make} -f conftest.make 2>/dev/null` in
4103 *@@@%%%=?*=@@@%%%*)
4104 eval ac_cv_prog_make_${ac_make}_set=yes;;
4105 *)
4106 eval ac_cv_prog_make_${ac_make}_set=no;;
4107esac
4108rm -f conftest.make
4109fi
4110if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0fbeb4dc 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 4112$as_echo "yes" >&6; }
b9668ba4
AK
4113 SET_MAKE=
4114else
0fbeb4dc 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4116$as_echo "no" >&6; }
b9668ba4
AK
4117 SET_MAKE="MAKE=${MAKE-make}"
4118fi
4119
5c706339
AK
4120case `pwd` in
4121 *\ * | *\ *)
0fbeb4dc 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
47dc80f6 4123$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5c706339
AK
4124esac
4125
4126
4127
059850b5
AK
4128macro_version='2.4.2'
4129macro_revision='1.3337'
5c706339 4130
b9668ba4
AK
4131
4132
b9668ba4
AK
4133
4134
b9668ba4
AK
4135
4136
5c706339
AK
4137
4138
4139
4140
4141
4142
4143ltmain="$ac_aux_dir/ltmain.sh"
4144
b9668ba4
AK
4145# Make sure we can run config.sub.
4146$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
0fbeb4dc 4147 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b9668ba4 4148
0fbeb4dc 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
47dc80f6 4150$as_echo_n "checking build system type... " >&6; }
059850b5 4151if ${ac_cv_build+:} false; then :
47dc80f6 4152 $as_echo_n "(cached) " >&6
b9668ba4
AK
4153else
4154 ac_build_alias=$build_alias
4155test "x$ac_build_alias" = x &&
4156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4157test "x$ac_build_alias" = x &&
0fbeb4dc 4158 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b9668ba4 4159ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
0fbeb4dc 4160 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b9668ba4
AK
4161
4162fi
0fbeb4dc 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
47dc80f6 4164$as_echo "$ac_cv_build" >&6; }
b9668ba4
AK
4165case $ac_cv_build in
4166*-*-*) ;;
059850b5 4167*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b9668ba4
AK
4168esac
4169build=$ac_cv_build
4170ac_save_IFS=$IFS; IFS='-'
4171set x $ac_cv_build
4172shift
4173build_cpu=$1
4174build_vendor=$2
4175shift; shift
4176# Remember, the first character of IFS is used to create $*,
4177# except with old shells:
4178build_os=$*
4179IFS=$ac_save_IFS
4180case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4181
4182
0fbeb4dc 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
47dc80f6 4184$as_echo_n "checking host system type... " >&6; }
059850b5 4185if ${ac_cv_host+:} false; then :
47dc80f6 4186 $as_echo_n "(cached) " >&6
b9668ba4
AK
4187else
4188 if test "x$host_alias" = x; then
4189 ac_cv_host=$ac_cv_build
4190else
4191 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
0fbeb4dc 4192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b9668ba4
AK
4193fi
4194
4195fi
0fbeb4dc 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
47dc80f6 4197$as_echo "$ac_cv_host" >&6; }
b9668ba4
AK
4198case $ac_cv_host in
4199*-*-*) ;;
059850b5 4200*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b9668ba4
AK
4201esac
4202host=$ac_cv_host
4203ac_save_IFS=$IFS; IFS='-'
4204set x $ac_cv_host
4205shift
4206host_cpu=$1
4207host_vendor=$2
4208shift; shift
4209# Remember, the first character of IFS is used to create $*,
4210# except with old shells:
4211host_os=$*
4212IFS=$ac_save_IFS
4213case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4214
4215
059850b5
AK
4216# Backslashify metacharacters that are still active within
4217# double-quoted strings.
4218sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4219
4220# Same as above, but do not quote variable references.
4221double_quote_subst='s/\(["`\\]\)/\\\1/g'
4222
4223# Sed substitution to delay expansion of an escaped shell variable in a
4224# double_quote_subst'ed string.
4225delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4226
4227# Sed substitution to delay expansion of an escaped single quote.
4228delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4229
4230# Sed substitution to avoid accidental globbing in evaled expressions
4231no_glob_subst='s/\*/\\\*/g'
4232
4233ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4234ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4235ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4238$as_echo_n "checking how to print strings... " >&6; }
4239# Test print first, because it will be a builtin if present.
4240if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4241 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4242 ECHO='print -r --'
4243elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4244 ECHO='printf %s\n'
4245else
4246 # Use this function as a fallback that always works.
4247 func_fallback_echo ()
4248 {
4249 eval 'cat <<_LTECHO_EOF
4250$1
4251_LTECHO_EOF'
4252 }
4253 ECHO='func_fallback_echo'
4254fi
4255
4256# func_echo_all arg...
4257# Invoke $ECHO with all args, space-separated.
4258func_echo_all ()
4259{
4260 $ECHO ""
4261}
4262
4263case "$ECHO" in
4264 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4265$as_echo "printf" >&6; } ;;
4266 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4267$as_echo "print -r" >&6; } ;;
4268 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4269$as_echo "cat" >&6; } ;;
4270esac
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
0fbeb4dc 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47dc80f6 4286$as_echo_n "checking for a sed that does not truncate output... " >&6; }
059850b5 4287if ${ac_cv_path_SED+:} false; then :
47dc80f6 4288 $as_echo_n "(cached) " >&6
b9668ba4 4289else
5c706339
AK
4290 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4291 for ac_i in 1 2 3 4 5 6 7; do
4292 ac_script="$ac_script$as_nl$ac_script"
4293 done
47dc80f6 4294 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
0fbeb4dc 4295 { ac_script=; unset ac_script;}
47dc80f6 4296 if test -z "$SED"; then
5c706339 4297 ac_path_SED_found=false
47dc80f6
AK
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
0fbeb4dc 4304 for ac_prog in sed gsed; do
47dc80f6
AK
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4307 as_fn_executable_p "$ac_path_SED" || continue
47dc80f6 4308# Check for GNU ac_path_SED and select it if it is found.
5c706339
AK
4309 # Check for GNU $ac_path_SED
4310case `"$ac_path_SED" --version 2>&1` in
4311*GNU*)
4312 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4313*)
4314 ac_count=0
47dc80f6 4315 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
47dc80f6 4321 $as_echo '' >> "conftest.nl"
5c706339
AK
4322 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
5c706339
AK
4325 if test $ac_count -gt ${ac_path_SED_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_SED="$ac_path_SED"
4328 ac_path_SED_max=$ac_count
b9668ba4 4329 fi
5c706339
AK
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
b9668ba4 4332 done
5c706339
AK
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
47dc80f6
AK
4336 $ac_path_SED_found && break 3
4337 done
5c706339 4338 done
0fbeb4dc 4339 done
5c706339 4340IFS=$as_save_IFS
47dc80f6 4341 if test -z "$ac_cv_path_SED"; then
0fbeb4dc 4342 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47dc80f6 4343 fi
5c706339
AK
4344else
4345 ac_cv_path_SED=$SED
4346fi
b9668ba4
AK
4347
4348fi
0fbeb4dc 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47dc80f6 4350$as_echo "$ac_cv_path_SED" >&6; }
5c706339
AK
4351 SED="$ac_cv_path_SED"
4352 rm -f conftest.sed
4353
4354test -z "$SED" && SED=sed
4355Xsed="$SED -e 1s/^X//"
4356
4357
4358
4359
4360
4361
4362
4363
4364
b9668ba4 4365
b9668ba4 4366
0fbeb4dc 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
47dc80f6 4368$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
059850b5 4369if ${ac_cv_path_GREP+:} false; then :
47dc80f6 4370 $as_echo_n "(cached) " >&6
b9668ba4 4371else
47dc80f6 4372 if test -z "$GREP"; then
b9668ba4 4373 ac_path_GREP_found=false
47dc80f6
AK
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
0fbeb4dc 4380 for ac_prog in grep ggrep; do
47dc80f6
AK
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4383 as_fn_executable_p "$ac_path_GREP" || continue
47dc80f6 4384# Check for GNU ac_path_GREP and select it if it is found.
b9668ba4
AK
4385 # Check for GNU $ac_path_GREP
4386case `"$ac_path_GREP" --version 2>&1` in
4387*GNU*)
4388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4389*)
4390 ac_count=0
47dc80f6 4391 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4392 while :
4393 do
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
47dc80f6 4397 $as_echo 'GREP' >> "conftest.nl"
b9668ba4
AK
4398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4400 as_fn_arith $ac_count + 1 && ac_count=$as_val
b9668ba4
AK
4401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_GREP="$ac_path_GREP"
4404 ac_path_GREP_max=$ac_count
4405 fi
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4408 done
4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
47dc80f6
AK
4412 $ac_path_GREP_found && break 3
4413 done
b9668ba4 4414 done
0fbeb4dc 4415 done
b9668ba4 4416IFS=$as_save_IFS
47dc80f6 4417 if test -z "$ac_cv_path_GREP"; then
0fbeb4dc 4418 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4419 fi
b9668ba4
AK
4420else
4421 ac_cv_path_GREP=$GREP
4422fi
4423
b9668ba4 4424fi
0fbeb4dc 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
47dc80f6 4426$as_echo "$ac_cv_path_GREP" >&6; }
b9668ba4
AK
4427 GREP="$ac_cv_path_GREP"
4428
4429
0fbeb4dc 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
47dc80f6 4431$as_echo_n "checking for egrep... " >&6; }
059850b5 4432if ${ac_cv_path_EGREP+:} false; then :
47dc80f6 4433 $as_echo_n "(cached) " >&6
b9668ba4
AK
4434else
4435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4436 then ac_cv_path_EGREP="$GREP -E"
4437 else
47dc80f6 4438 if test -z "$EGREP"; then
b9668ba4 4439 ac_path_EGREP_found=false
47dc80f6
AK
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b9668ba4
AK
4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
0fbeb4dc 4446 for ac_prog in egrep; do
47dc80f6
AK
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4449 as_fn_executable_p "$ac_path_EGREP" || continue
47dc80f6 4450# Check for GNU ac_path_EGREP and select it if it is found.
b9668ba4
AK
4451 # Check for GNU $ac_path_EGREP
4452case `"$ac_path_EGREP" --version 2>&1` in
4453*GNU*)
4454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4455*)
4456 ac_count=0
47dc80f6 4457 $as_echo_n 0123456789 >"conftest.in"
b9668ba4
AK
4458 while :
4459 do
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
47dc80f6 4463 $as_echo 'EGREP' >> "conftest.nl"
b9668ba4
AK
4464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4466 as_fn_arith $ac_count + 1 && ac_count=$as_val
b9668ba4
AK
4467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_EGREP="$ac_path_EGREP"
4470 ac_path_EGREP_max=$ac_count
4471 fi
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476esac
4477
47dc80f6
AK
4478 $ac_path_EGREP_found && break 3
4479 done
b9668ba4 4480 done
0fbeb4dc 4481 done
b9668ba4 4482IFS=$as_save_IFS
47dc80f6 4483 if test -z "$ac_cv_path_EGREP"; then
0fbeb4dc 4484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4485 fi
b9668ba4
AK
4486else
4487 ac_cv_path_EGREP=$EGREP
4488fi
4489
b9668ba4
AK
4490 fi
4491fi
0fbeb4dc 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
47dc80f6 4493$as_echo "$ac_cv_path_EGREP" >&6; }
b9668ba4
AK
4494 EGREP="$ac_cv_path_EGREP"
4495
4496
0fbeb4dc 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
47dc80f6 4498$as_echo_n "checking for fgrep... " >&6; }
059850b5 4499if ${ac_cv_path_FGREP+:} false; then :
47dc80f6 4500 $as_echo_n "(cached) " >&6
5c706339
AK
4501else
4502 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4503 then ac_cv_path_FGREP="$GREP -F"
4504 else
47dc80f6 4505 if test -z "$FGREP"; then
5c706339 4506 ac_path_FGREP_found=false
47dc80f6
AK
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5c706339
AK
4509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
0fbeb4dc 4513 for ac_prog in fgrep; do
47dc80f6
AK
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
0044e680 4516 as_fn_executable_p "$ac_path_FGREP" || continue
47dc80f6 4517# Check for GNU ac_path_FGREP and select it if it is found.
5c706339
AK
4518 # Check for GNU $ac_path_FGREP
4519case `"$ac_path_FGREP" --version 2>&1` in
4520*GNU*)
4521 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4522*)
4523 ac_count=0
47dc80f6 4524 $as_echo_n 0123456789 >"conftest.in"
5c706339
AK
4525 while :
4526 do
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
47dc80f6 4530 $as_echo 'FGREP' >> "conftest.nl"
5c706339
AK
4531 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0fbeb4dc 4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
5c706339
AK
4534 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_FGREP="$ac_path_FGREP"
4537 ac_path_FGREP_max=$ac_count
4538 fi
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4541 done
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543esac
4544
47dc80f6
AK
4545 $ac_path_FGREP_found && break 3
4546 done
5c706339 4547 done
0fbeb4dc 4548 done
5c706339 4549IFS=$as_save_IFS
47dc80f6 4550 if test -z "$ac_cv_path_FGREP"; then
0fbeb4dc 4551 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
47dc80f6 4552 fi
b9668ba4 4553else
5c706339 4554 ac_cv_path_FGREP=$FGREP
b9668ba4
AK
4555fi
4556
5c706339
AK
4557 fi
4558fi
0fbeb4dc 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
47dc80f6 4560$as_echo "$ac_cv_path_FGREP" >&6; }
5c706339
AK
4561 FGREP="$ac_cv_path_FGREP"
4562
4563
4564test -z "$GREP" && GREP=grep
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584# Check whether --with-gnu-ld was given.
0fbeb4dc 4585if test "${with_gnu_ld+set}" = set; then :
5c706339
AK
4586 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4587else
4588 with_gnu_ld=no
4589fi
4590
4591ac_prog=ld
4592if test "$GCC" = yes; then
b9668ba4 4593 # Check if gcc -print-prog-name=ld gives a path.
0fbeb4dc 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
47dc80f6 4595$as_echo_n "checking for ld used by $CC... " >&6; }
b9668ba4
AK
4596 case $host in
4597 *-*-mingw*)
4598 # gcc leaves a trailing carriage return which upsets mingw
4599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4600 *)
4601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4602 esac
4603 case $ac_prog in
4604 # Accept absolute paths.
4605 [\\/]* | ?:[\\/]*)
4606 re_direlt='/[^/][^/]*/\.\./'
4607 # Canonicalize the pathname of ld
5c706339
AK
4608 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4609 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4610 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b9668ba4
AK
4611 done
4612 test -z "$LD" && LD="$ac_prog"
4613 ;;
4614 "")
4615 # If it fails, then pretend we aren't using GCC.
4616 ac_prog=ld
4617 ;;
4618 *)
4619 # If it is relative, then search for the first ld in PATH.
4620 with_gnu_ld=unknown
4621 ;;
4622 esac
4623elif test "$with_gnu_ld" = yes; then
0fbeb4dc 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
47dc80f6 4625$as_echo_n "checking for GNU ld... " >&6; }
b9668ba4 4626else
0fbeb4dc 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
47dc80f6 4628$as_echo_n "checking for non-GNU ld... " >&6; }
b9668ba4 4629fi
059850b5 4630if ${lt_cv_path_LD+:} false; then :
47dc80f6 4631 $as_echo_n "(cached) " >&6
b9668ba4
AK
4632else
4633 if test -z "$LD"; then
4634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4635 for ac_dir in $PATH; do
4636 IFS="$lt_save_ifs"
4637 test -z "$ac_dir" && ac_dir=.
4638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4639 lt_cv_path_LD="$ac_dir/$ac_prog"
4640 # Check to see if the program is GNU ld. I'd rather use --version,
4641 # but apparently some variants of GNU ld only accept -v.
4642 # Break only if it was the GNU/non-GNU ld that we prefer.
4643 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4644 *GNU* | *'with BFD'*)
4645 test "$with_gnu_ld" != no && break
4646 ;;
4647 *)
4648 test "$with_gnu_ld" != yes && break
4649 ;;
4650 esac
4651 fi
4652 done
4653 IFS="$lt_save_ifs"
4654else
4655 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4656fi
4657fi
4658
4659LD="$lt_cv_path_LD"
4660if test -n "$LD"; then
0fbeb4dc 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
47dc80f6 4662$as_echo "$LD" >&6; }
b9668ba4 4663else
0fbeb4dc 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4665$as_echo "no" >&6; }
b9668ba4 4666fi
0fbeb4dc
AK
4667test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
47dc80f6 4669$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
059850b5 4670if ${lt_cv_prog_gnu_ld+:} false; then :
47dc80f6 4671 $as_echo_n "(cached) " >&6
b9668ba4
AK
4672else
4673 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4674case `$LD -v 2>&1 </dev/null` in
4675*GNU* | *'with BFD'*)
4676 lt_cv_prog_gnu_ld=yes
4677 ;;
4678*)
4679 lt_cv_prog_gnu_ld=no
4680 ;;
4681esac
4682fi
0fbeb4dc 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
47dc80f6 4684$as_echo "$lt_cv_prog_gnu_ld" >&6; }
b9668ba4
AK
4685with_gnu_ld=$lt_cv_prog_gnu_ld
4686
4687
b9668ba4 4688
5c706339
AK
4689
4690
4691
4692
4693
4694
0fbeb4dc 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
47dc80f6 4696$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
059850b5 4697if ${lt_cv_path_NM+:} false; then :
47dc80f6 4698 $as_echo_n "(cached) " >&6
b9668ba4
AK
4699else
4700 if test -n "$NM"; then
4701 # Let the user override the test.
4702 lt_cv_path_NM="$NM"
4703else
4704 lt_nm_to_check="${ac_tool_prefix}nm"
4705 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4706 lt_nm_to_check="$lt_nm_to_check nm"
4707 fi
4708 for lt_tmp_nm in $lt_nm_to_check; do
4709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4710 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4711 IFS="$lt_save_ifs"
4712 test -z "$ac_dir" && ac_dir=.
4713 tmp_nm="$ac_dir/$lt_tmp_nm"
4714 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4715 # Check to see if the nm accepts a BSD-compat flag.
4716 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4717 # nm: unknown option "B" ignored
4718 # Tru64's nm complains that /dev/null is an invalid object file
4719 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4720 */dev/null* | *'Invalid file or object type'*)
4721 lt_cv_path_NM="$tmp_nm -B"
4722 break
4723 ;;
4724 *)
4725 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4726 */dev/null*)
4727 lt_cv_path_NM="$tmp_nm -p"
4728 break
4729 ;;
4730 *)
4731 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4732 continue # so that we can try to find one that supports BSD flags
4733 ;;
4734 esac
4735 ;;
4736 esac
4737 fi
4738 done
4739 IFS="$lt_save_ifs"
4740 done
5c706339 4741 : ${lt_cv_path_NM=no}
b9668ba4
AK
4742fi
4743fi
0fbeb4dc 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
47dc80f6 4745$as_echo "$lt_cv_path_NM" >&6; }
5c706339
AK
4746if test "$lt_cv_path_NM" != "no"; then
4747 NM="$lt_cv_path_NM"
4748else
4749 # Didn't find any BSD compatible name lister, look for dumpbin.
059850b5
AK
4750 if test -n "$DUMPBIN"; then :
4751 # Let the user override the test.
4752 else
4753 if test -n "$ac_tool_prefix"; then
4754 for ac_prog in dumpbin "link -dump"
5c706339
AK
4755 do
4756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 4759$as_echo_n "checking for $ac_word... " >&6; }
059850b5 4760if ${ac_cv_prog_DUMPBIN+:} false; then :
47dc80f6 4761 $as_echo_n "(cached) " >&6
b9668ba4 4762else
5c706339
AK
4763 if test -n "$DUMPBIN"; then
4764 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4765else
4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
0fbeb4dc 4771 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 4773 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
0fbeb4dc 4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4775 break 2
4776 fi
4777done
0fbeb4dc 4778 done
5c706339 4779IFS=$as_save_IFS
b9668ba4 4780
5c706339
AK
4781fi
4782fi
4783DUMPBIN=$ac_cv_prog_DUMPBIN
4784if test -n "$DUMPBIN"; then
0fbeb4dc 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
47dc80f6 4786$as_echo "$DUMPBIN" >&6; }
5c706339 4787else
0fbeb4dc 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4789$as_echo "no" >&6; }
5c706339 4790fi
b9668ba4 4791
b9668ba4 4792
5c706339
AK
4793 test -n "$DUMPBIN" && break
4794 done
4795fi
4796if test -z "$DUMPBIN"; then
4797 ac_ct_DUMPBIN=$DUMPBIN
059850b5 4798 for ac_prog in dumpbin "link -dump"
5c706339
AK
4799do
4800 # Extract the first word of "$ac_prog", so it can be a program name with args.
4801set dummy $ac_prog; ac_word=$2
0fbeb4dc 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 4803$as_echo_n "checking for $ac_word... " >&6; }
059850b5 4804if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
47dc80f6 4805 $as_echo_n "(cached) " >&6
5c706339
AK
4806else
4807 if test -n "$ac_ct_DUMPBIN"; then
4808 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
0fbeb4dc 4815 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 4817 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
0fbeb4dc 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
4819 break 2
4820 fi
4821done
0fbeb4dc 4822 done
5c706339 4823IFS=$as_save_IFS
b9668ba4 4824
5c706339
AK
4825fi
4826fi
4827ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4828if test -n "$ac_ct_DUMPBIN"; then
0fbeb4dc 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
47dc80f6 4830$as_echo "$ac_ct_DUMPBIN" >&6; }
5c706339 4831else
0fbeb4dc 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 4833$as_echo "no" >&6; }
5c706339 4834fi
b9668ba4 4835
b9668ba4 4836
5c706339
AK
4837 test -n "$ac_ct_DUMPBIN" && break
4838done
b9668ba4 4839
5c706339
AK
4840 if test "x$ac_ct_DUMPBIN" = x; then
4841 DUMPBIN=":"
b9668ba4 4842 else
5c706339
AK
4843 case $cross_compiling:$ac_tool_warned in
4844yes:)
0fbeb4dc 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 4846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
4847ac_tool_warned=yes ;;
4848esac
4849 DUMPBIN=$ac_ct_DUMPBIN
b9668ba4 4850 fi
5c706339 4851fi
b9668ba4 4852
059850b5
AK
4853 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4854 *COFF*)
4855 DUMPBIN="$DUMPBIN -symbols"
4856 ;;
4857 *)
4858 DUMPBIN=:
4859 ;;
4860 esac
4861 fi
b9668ba4 4862
5c706339
AK
4863 if test "$DUMPBIN" != ":"; then
4864 NM="$DUMPBIN"
4865 fi
4866fi
4867test -z "$NM" && NM=nm
b9668ba4 4868
b9668ba4 4869
b9668ba4 4870
b9668ba4 4871
b9668ba4 4872
b9668ba4 4873
0fbeb4dc 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
47dc80f6 4875$as_echo_n "checking the name lister ($NM) interface... " >&6; }
059850b5 4876if ${lt_cv_nm_interface+:} false; then :
47dc80f6 4877 $as_echo_n "(cached) " >&6
5c706339
AK
4878else
4879 lt_cv_nm_interface="BSD nm"
4880 echo "int some_variable = 0;" > conftest.$ac_ext
059850b5 4881 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5c706339
AK
4882 (eval "$ac_compile" 2>conftest.err)
4883 cat conftest.err >&5
059850b5 4884 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5c706339
AK
4885 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4886 cat conftest.err >&5
059850b5 4887 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5c706339
AK
4888 cat conftest.out >&5
4889 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4890 lt_cv_nm_interface="MS dumpbin"
b9668ba4 4891 fi
5c706339
AK
4892 rm -f conftest*
4893fi
0fbeb4dc 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
47dc80f6 4895$as_echo "$lt_cv_nm_interface" >&6; }
b9668ba4 4896
5c706339 4897# find the maximum length of command line arguments
0fbeb4dc 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
47dc80f6 4899$as_echo_n "checking the maximum length of command line arguments... " >&6; }
059850b5 4900if ${lt_cv_sys_max_cmd_len+:} false; then :
47dc80f6 4901 $as_echo_n "(cached) " >&6
5c706339
AK
4902else
4903 i=0
4904 teststring="ABCD"
b9668ba4 4905
5c706339
AK
4906 case $build_os in
4907 msdosdjgpp*)
4908 # On DJGPP, this test can blow up pretty badly due to problems in libc
4909 # (any single argument exceeding 2000 bytes causes a buffer overrun
4910 # during glob expansion). Even if it were fixed, the result of this
4911 # check would be larger than it should be.
4912 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4913 ;;
b9668ba4 4914
5c706339
AK
4915 gnu*)
4916 # Under GNU Hurd, this test is not required because there is
4917 # no limit to the length of command line arguments.
4918 # Libtool will interpret -1 as no limit whatsoever
4919 lt_cv_sys_max_cmd_len=-1;
b9668ba4 4920 ;;
5c706339 4921
47dc80f6 4922 cygwin* | mingw* | cegcc*)
5c706339
AK
4923 # On Win9x/ME, this test blows up -- it succeeds, but takes
4924 # about 5 minutes as the teststring grows exponentially.
4925 # Worse, since 9x/ME are not pre-emptively multitasking,
4926 # you end up with a "frozen" computer, even though with patience
4927 # the test eventually succeeds (with a max line length of 256k).
4928 # Instead, let's just punt: use the minimum linelength reported by
4929 # all of the supported platforms: 8192 (on NT/2K/XP).
4930 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4931 ;;
5c706339 4932
059850b5
AK
4933 mint*)
4934 # On MiNT this can take a long time and run out of memory.
4935 lt_cv_sys_max_cmd_len=8192;
4936 ;;
4937
5c706339
AK
4938 amigaos*)
4939 # On AmigaOS with pdksh, this test takes hours, literally.
4940 # So we just punt and use a minimum line length of 8192.
4941 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4942 ;;
5c706339
AK
4943
4944 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4945 # This has been around since 386BSD, at least. Likely further.
4946 if test -x /sbin/sysctl; then
4947 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4948 elif test -x /usr/sbin/sysctl; then
4949 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4950 else
4951 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4952 fi
4953 # And add a safety zone
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
b9668ba4 4956 ;;
5c706339
AK
4957
4958 interix*)
4959 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4960 lt_cv_sys_max_cmd_len=196608
b9668ba4 4961 ;;
5c706339 4962
059850b5
AK
4963 os2*)
4964 # The test takes a long time on OS/2.
4965 lt_cv_sys_max_cmd_len=8192
4966 ;;
4967
5c706339
AK
4968 osf*)
4969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4971 # nice to cause kernel panics so lets avoid the loop below.
4972 # First set a reasonable default.
4973 lt_cv_sys_max_cmd_len=16384
4974 #
4975 if test -x /sbin/sysconfig; then
4976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4977 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4978 esac
4979 fi
4980 ;;
4981 sco3.2v5*)
4982 lt_cv_sys_max_cmd_len=102400
4983 ;;
4984 sysv5* | sco5v6* | sysv4.2uw2*)
4985 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4986 if test -n "$kargmax"; then
4987 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4988 else
4989 lt_cv_sys_max_cmd_len=32768
4990 fi
4991 ;;
4992 *)
4993 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
0044e680
AK
4994 if test -n "$lt_cv_sys_max_cmd_len" && \
4995 test undefined != "$lt_cv_sys_max_cmd_len"; then
5c706339
AK
4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4998 else
4999 # Make teststring a little bigger before we do anything with it.
5000 # a 1K string should be a reasonable start.
5001 for i in 1 2 3 4 5 6 7 8 ; do
5002 teststring=$teststring$teststring
5003 done
5004 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5005 # If test is not a shell built-in, we'll probably end up computing a
5006 # maximum length that is only half of the actual maximum length, but
5007 # we can't tell.
059850b5
AK
5008 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5009 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5c706339
AK
5010 test $i != 17 # 1/2 MB should be enough
5011 do
5012 i=`expr $i + 1`
5013 teststring=$teststring$teststring
5014 done
5015 # Only check the string length outside the loop.
5016 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5017 teststring=
5018 # Add a significant safety factor because C++ compilers can tack on
5019 # massive amounts of additional arguments before passing them to the
5020 # linker. It appears as though 1/2 is a usable value.
5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5022 fi
b9668ba4
AK
5023 ;;
5024 esac
b9668ba4 5025
5c706339 5026fi
b9668ba4 5027
5c706339 5028if test -n $lt_cv_sys_max_cmd_len ; then
0fbeb4dc 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
47dc80f6 5030$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5c706339 5031else
0fbeb4dc 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
47dc80f6 5033$as_echo "none" >&6; }
b9668ba4 5034fi
5c706339 5035max_cmd_len=$lt_cv_sys_max_cmd_len
b9668ba4
AK
5036
5037
5038
5039
b9668ba4 5040
b9668ba4 5041
5c706339
AK
5042: ${CP="cp -f"}
5043: ${MV="mv -f"}
5044: ${RM="rm -f"}
b9668ba4 5045
0fbeb4dc 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
47dc80f6 5047$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5c706339
AK
5048# Try some XSI features
5049xsi_shell=no
5050( _lt_dummy="a/b/c"
059850b5
AK
5051 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5052 = c,a/b,b/c, \
5c706339
AK
5053 && eval 'test $(( 1 + 1 )) -eq 2 \
5054 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5055 && xsi_shell=yes
0fbeb4dc 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
47dc80f6 5057$as_echo "$xsi_shell" >&6; }
b9668ba4 5058
5c706339 5059
0fbeb4dc 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
47dc80f6 5061$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5c706339
AK
5062lt_shell_append=no
5063( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5064 >/dev/null 2>&1 \
5065 && lt_shell_append=yes
0fbeb4dc 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
47dc80f6 5067$as_echo "$lt_shell_append" >&6; }
5c706339
AK
5068
5069
5070if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5071 lt_unset=unset
5072else
5073 lt_unset=false
b9668ba4
AK
5074fi
5075
b9668ba4 5076
5c706339
AK
5077
5078
5079
5080# test EBCDIC or ASCII
5081case `echo X|tr X '\101'` in
5082 A) # ASCII based system
5083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5084 lt_SP2NL='tr \040 \012'
5085 lt_NL2SP='tr \015\012 \040\040'
b9668ba4 5086 ;;
5c706339
AK
5087 *) # EBCDIC based system
5088 lt_SP2NL='tr \100 \n'
5089 lt_NL2SP='tr \r\n \100\100'
b9668ba4 5090 ;;
5c706339 5091esac
b9668ba4 5092
b9668ba4 5093
b9668ba4 5094
b9668ba4 5095
b9668ba4 5096
b9668ba4 5097
b9668ba4 5098
b9668ba4 5099
5c706339 5100
059850b5
AK
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5102$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5103if ${lt_cv_to_host_file_cmd+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105else
5106 case $host in
5107 *-*-mingw* )
5108 case $build in
5109 *-*-mingw* ) # actually msys
5110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5111 ;;
5112 *-*-cygwin* )
5113 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5114 ;;
5115 * ) # otherwise, assume *nix
5116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5117 ;;
5118 esac
5119 ;;
5120 *-*-cygwin* )
5121 case $build in
5122 *-*-mingw* ) # actually msys
5123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5124 ;;
5125 *-*-cygwin* )
5126 lt_cv_to_host_file_cmd=func_convert_file_noop
5127 ;;
5128 * ) # otherwise, assume *nix
5129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5130 ;;
5131 esac
5132 ;;
5133 * ) # unhandled hosts (and "normal" native builds)
5134 lt_cv_to_host_file_cmd=func_convert_file_noop
5135 ;;
5136esac
5137
5138fi
5139
5140to_host_file_cmd=$lt_cv_to_host_file_cmd
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5142$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5143
5144
5145
5146
5147
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5149$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5150if ${lt_cv_to_tool_file_cmd+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 #assume ordinary cross tools, or native build.
5154lt_cv_to_tool_file_cmd=func_convert_file_noop
5155case $host in
5156 *-*-mingw* )
5157 case $build in
5158 *-*-mingw* ) # actually msys
5159 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5160 ;;
5161 esac
5162 ;;
5163esac
5164
5165fi
5166
5167to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5169$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5170
5171
5172
5173
5174
0fbeb4dc 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
47dc80f6 5176$as_echo_n "checking for $LD option to reload object files... " >&6; }
059850b5 5177if ${lt_cv_ld_reload_flag+:} false; then :
47dc80f6 5178 $as_echo_n "(cached) " >&6
5c706339
AK
5179else
5180 lt_cv_ld_reload_flag='-r'
b9668ba4 5181fi
0fbeb4dc 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
47dc80f6 5183$as_echo "$lt_cv_ld_reload_flag" >&6; }
5c706339
AK
5184reload_flag=$lt_cv_ld_reload_flag
5185case $reload_flag in
5186"" | " "*) ;;
5187*) reload_flag=" $reload_flag" ;;
b9668ba4 5188esac
5c706339
AK
5189reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190case $host_os in
059850b5
AK
5191 cygwin* | mingw* | pw32* | cegcc*)
5192 if test "$GCC" != yes; then
5193 reload_cmds=false
5194 fi
5195 ;;
5c706339
AK
5196 darwin*)
5197 if test "$GCC" = yes; then
5198 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5199 else
5200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5201 fi
5202 ;;
b9668ba4 5203esac
b9668ba4 5204
b9668ba4 5205
b9668ba4 5206
b9668ba4 5207
b9668ba4 5208
b9668ba4 5209
b9668ba4 5210
b9668ba4 5211
b9668ba4 5212
47dc80f6
AK
5213if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5215set dummy ${ac_tool_prefix}objdump; ac_word=$2
0fbeb4dc 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5217$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5218if ${ac_cv_prog_OBJDUMP+:} false; then :
47dc80f6
AK
5219 $as_echo_n "(cached) " >&6
5220else
5221 if test -n "$OBJDUMP"; then
5222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
0fbeb4dc 5229 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47dc80f6 5231 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
0fbeb4dc 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47dc80f6
AK
5233 break 2
5234 fi
5235done
0fbeb4dc 5236 done
47dc80f6
AK
5237IFS=$as_save_IFS
5238
5239fi
5240fi
5241OBJDUMP=$ac_cv_prog_OBJDUMP
5242if test -n "$OBJDUMP"; then
0fbeb4dc 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
47dc80f6
AK
5244$as_echo "$OBJDUMP" >&6; }
5245else
0fbeb4dc 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6
AK
5247$as_echo "no" >&6; }
5248fi
5249
5250
5251fi
5252if test -z "$ac_cv_prog_OBJDUMP"; then
5253 ac_ct_OBJDUMP=$OBJDUMP
5254 # Extract the first word of "objdump", so it can be a program name with args.
5255set dummy objdump; ac_word=$2
0fbeb4dc 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5257$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5258if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
47dc80f6
AK
5259 $as_echo_n "(cached) " >&6
5260else
5261 if test -n "$ac_ct_OBJDUMP"; then
5262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
0fbeb4dc 5269 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47dc80f6 5271 ac_cv_prog_ac_ct_OBJDUMP="objdump"
0fbeb4dc 5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47dc80f6
AK
5273 break 2
5274 fi
5275done
0fbeb4dc 5276 done
47dc80f6
AK
5277IFS=$as_save_IFS
5278
5279fi
5280fi
5281ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5282if test -n "$ac_ct_OBJDUMP"; then
0fbeb4dc 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
47dc80f6
AK
5284$as_echo "$ac_ct_OBJDUMP" >&6; }
5285else
0fbeb4dc 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6
AK
5287$as_echo "no" >&6; }
5288fi
5289
5290 if test "x$ac_ct_OBJDUMP" = x; then
5291 OBJDUMP="false"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294yes:)
0fbeb4dc 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6
AK
5296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299 OBJDUMP=$ac_ct_OBJDUMP
5300 fi
5301else
5302 OBJDUMP="$ac_cv_prog_OBJDUMP"
5303fi
5304
5305test -z "$OBJDUMP" && OBJDUMP=objdump
5306
5307
5308
5309
5310
5311
5312
5313
b9668ba4 5314
0fbeb4dc 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
47dc80f6 5316$as_echo_n "checking how to recognize dependent libraries... " >&6; }
059850b5 5317if ${lt_cv_deplibs_check_method+:} false; then :
47dc80f6 5318 $as_echo_n "(cached) " >&6
b9668ba4 5319else
5c706339
AK
5320 lt_cv_file_magic_cmd='$MAGIC_CMD'
5321lt_cv_file_magic_test_file=
5322lt_cv_deplibs_check_method='unknown'
5323# Need to set the preceding variable on all platforms that support
5324# interlibrary dependencies.
5325# 'none' -- dependencies not supported.
5326# `unknown' -- same as none, but documents that we really don't know.
5327# 'pass_all' -- all dependencies passed with no checks.
5328# 'test_compile' -- check by making test program.
5329# 'file_magic [[regex]]' -- check by looking for files in library path
5330# which responds to the $file_magic_cmd with a given extended regex.
5331# If you have `file' or equivalent on your system and you're not sure
5332# whether `pass_all' will *always* work, you probably want this one.
b9668ba4 5333
5c706339
AK
5334case $host_os in
5335aix[4-9]*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
b9668ba4 5338
5c706339
AK
5339beos*)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
b9668ba4 5342
5c706339
AK
5343bsdi[45]*)
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5345 lt_cv_file_magic_cmd='/usr/bin/file -L'
5346 lt_cv_file_magic_test_file=/shlib/libc.so
5347 ;;
b9668ba4 5348
5c706339
AK
5349cygwin*)
5350 # func_win32_libid is a shell function defined in ltmain.sh
5351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5352 lt_cv_file_magic_cmd='func_win32_libid'
5353 ;;
b9668ba4 5354
5c706339
AK
5355mingw* | pw32*)
5356 # Base MSYS/MinGW do not provide the 'file' command needed by
5357 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5358 # unless we find 'file', for example because we are cross-compiling.
059850b5
AK
5359 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5360 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5c706339
AK
5361 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5362 lt_cv_file_magic_cmd='func_win32_libid'
5363 else
059850b5
AK
5364 # Keep this pattern in sync with the one in func_win32_libid.
5365 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5c706339
AK
5366 lt_cv_file_magic_cmd='$OBJDUMP -f'
5367 fi
5368 ;;
b9668ba4 5369
059850b5 5370cegcc*)
47dc80f6
AK
5371 # use the weaker test based on 'objdump'. See mingw*.
5372 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5373 lt_cv_file_magic_cmd='$OBJDUMP -f'
5374 ;;
5375
5c706339
AK
5376darwin* | rhapsody*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
b9668ba4 5379
5c706339
AK
5380freebsd* | dragonfly*)
5381 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5382 case $host_cpu in
5383 i*86 )
5384 # Not sure whether the presence of OpenBSD here was a mistake.
5385 # Let's accept both of them until this is cleared up.
5386 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5387 lt_cv_file_magic_cmd=/usr/bin/file
5388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5389 ;;
5390 esac
5391 else
5392 lt_cv_deplibs_check_method=pass_all
5393 fi
5394 ;;
b9668ba4 5395
059850b5
AK
5396haiku*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399
5c706339
AK
5400hpux10.20* | hpux11*)
5401 lt_cv_file_magic_cmd=/usr/bin/file
5402 case $host_cpu in
5403 ia64*)
5404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5405 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5406 ;;
5407 hppa*64*)
059850b5 5408 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]'
5c706339
AK
5409 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5410 ;;
5411 *)
059850b5 5412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5c706339
AK
5413 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5414 ;;
5415 esac
5416 ;;
b9668ba4 5417
5c706339
AK
5418interix[3-9]*)
5419 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5421 ;;
b9668ba4 5422
5c706339
AK
5423irix5* | irix6* | nonstopux*)
5424 case $LD in
5425 *-32|*"-32 ") libmagic=32-bit;;
5426 *-n32|*"-n32 ") libmagic=N32;;
5427 *-64|*"-64 ") libmagic=64-bit;;
5428 *) libmagic=never-match;;
5429 esac
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
b9668ba4 5432
059850b5 5433# This must be glibc/ELF.
0044e680 5434linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5c706339
AK
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
b9668ba4 5437
5c706339
AK
5438netbsd* | netbsdelf*-gnu)
5439 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5441 else
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5443 fi
5444 ;;
b9668ba4 5445
5c706339
AK
5446newos6*)
5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5448 lt_cv_file_magic_cmd=/usr/bin/file
5449 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5450 ;;
b9668ba4 5451
5c706339
AK
5452*nto* | *qnx*)
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
b9668ba4 5455
5c706339
AK
5456openbsd*)
5457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5459 else
5460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461 fi
5462 ;;
5463
5464osf3* | osf4* | osf5*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467
5468rdos*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472solaris*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5477 lt_cv_deplibs_check_method=pass_all
5478 ;;
5479
5480sysv4 | sysv4.3*)
5481 case $host_vendor in
5482 motorola)
5483 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]'
5484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5485 ;;
5486 ncr)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489 sequent)
5490 lt_cv_file_magic_cmd='/bin/file'
5491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5492 ;;
5493 sni)
5494 lt_cv_file_magic_cmd='/bin/file'
5495 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5496 lt_cv_file_magic_test_file=/lib/libc.so
5497 ;;
5498 siemens)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501 pc)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504 esac
5505 ;;
5506
5507tpf*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
b9668ba4 5510esac
b9668ba4 5511
b9668ba4 5512fi
0fbeb4dc 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
47dc80f6 5514$as_echo "$lt_cv_deplibs_check_method" >&6; }
059850b5
AK
5515
5516file_magic_glob=
5517want_nocaseglob=no
5518if test "$build" = "$host"; then
5519 case $host_os in
5520 mingw* | pw32*)
5521 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5522 want_nocaseglob=yes
5523 else
5524 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5525 fi
5526 ;;
5527 esac
5528fi
5529
5c706339
AK
5530file_magic_cmd=$lt_cv_file_magic_cmd
5531deplibs_check_method=$lt_cv_deplibs_check_method
5532test -z "$deplibs_check_method" && deplibs_check_method=unknown
b9668ba4 5533
b9668ba4 5534
b9668ba4 5535
b9668ba4
AK
5536
5537
5538
5c706339
AK
5539
5540
5541
5542
059850b5
AK
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5c706339
AK
5553
5554
5555if test -n "$ac_tool_prefix"; then
059850b5
AK
5556 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5557set dummy ${ac_tool_prefix}dlltool; ac_word=$2
0fbeb4dc 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5559$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5560if ${ac_cv_prog_DLLTOOL+:} false; then :
47dc80f6 5561 $as_echo_n "(cached) " >&6
b9668ba4 5562else
059850b5
AK
5563 if test -n "$DLLTOOL"; then
5564 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
b9668ba4 5565else
5c706339
AK
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
0fbeb4dc 5571 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5573 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
0fbeb4dc 5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5575 break 2
5576 fi
5577done
0fbeb4dc 5578 done
5c706339 5579IFS=$as_save_IFS
b9668ba4 5580
5c706339
AK
5581fi
5582fi
059850b5
AK
5583DLLTOOL=$ac_cv_prog_DLLTOOL
5584if test -n "$DLLTOOL"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5586$as_echo "$DLLTOOL" >&6; }
5c706339 5587else
0fbeb4dc 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5589$as_echo "no" >&6; }
b9668ba4
AK
5590fi
5591
b9668ba4 5592
5c706339 5593fi
059850b5
AK
5594if test -z "$ac_cv_prog_DLLTOOL"; then
5595 ac_ct_DLLTOOL=$DLLTOOL
5596 # Extract the first word of "dlltool", so it can be a program name with args.
5597set dummy dlltool; ac_word=$2
0fbeb4dc 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5599$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5600if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
47dc80f6 5601 $as_echo_n "(cached) " >&6
b9668ba4 5602else
059850b5
AK
5603 if test -n "$ac_ct_DLLTOOL"; then
5604 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5c706339
AK
5605else
5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
0fbeb4dc 5611 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5613 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
0fbeb4dc 5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5615 break 2
5616 fi
5617done
0fbeb4dc 5618 done
5c706339 5619IFS=$as_save_IFS
b9668ba4 5620
5c706339
AK
5621fi
5622fi
059850b5
AK
5623ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5624if test -n "$ac_ct_DLLTOOL"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5626$as_echo "$ac_ct_DLLTOOL" >&6; }
5c706339 5627else
0fbeb4dc 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5629$as_echo "no" >&6; }
b9668ba4
AK
5630fi
5631
059850b5
AK
5632 if test "x$ac_ct_DLLTOOL" = x; then
5633 DLLTOOL="false"
5c706339
AK
5634 else
5635 case $cross_compiling:$ac_tool_warned in
5636yes:)
0fbeb4dc 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 5638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 5639ac_tool_warned=yes ;;
b9668ba4 5640esac
059850b5 5641 DLLTOOL=$ac_ct_DLLTOOL
5c706339 5642 fi
b9668ba4 5643else
059850b5 5644 DLLTOOL="$ac_cv_prog_DLLTOOL"
b9668ba4 5645fi
b9668ba4 5646
059850b5
AK
5647test -z "$DLLTOOL" && DLLTOOL=dlltool
5648
5649
5650
5651
5652
b9668ba4 5653
b9668ba4 5654
b9668ba4 5655
5c706339
AK
5656
5657
059850b5
AK
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5659$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5660if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 lt_cv_sharedlib_from_linklib_cmd='unknown'
5664
5665case $host_os in
5666cygwin* | mingw* | pw32* | cegcc*)
5667 # two different shell functions defined in ltmain.sh
5668 # decide which to use based on capabilities of $DLLTOOL
5669 case `$DLLTOOL --help 2>&1` in
5670 *--identify-strict*)
5671 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5672 ;;
5673 *)
5674 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5675 ;;
5676 esac
5677 ;;
5678*)
5679 # fallback: assume linklib IS sharedlib
5680 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5681 ;;
5682esac
5683
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5686$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5687sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5688test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5689
5690
5c706339
AK
5691
5692
5693
5694
5695
5696
5697if test -n "$ac_tool_prefix"; then
059850b5
AK
5698 for ac_prog in ar
5699 do
5700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0fbeb4dc 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5703$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5704if ${ac_cv_prog_AR+:} false; then :
47dc80f6 5705 $as_echo_n "(cached) " >&6
b9668ba4 5706else
059850b5
AK
5707 if test -n "$AR"; then
5708 ac_cv_prog_AR="$AR" # Let the user override the test.
b9668ba4
AK
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
0fbeb4dc 5715 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5717 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
0fbeb4dc 5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5719 break 2
5720 fi
5721done
0fbeb4dc 5722 done
b9668ba4
AK
5723IFS=$as_save_IFS
5724
5725fi
5726fi
059850b5
AK
5727AR=$ac_cv_prog_AR
5728if test -n "$AR"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5730$as_echo "$AR" >&6; }
b9668ba4 5731else
0fbeb4dc 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5733$as_echo "no" >&6; }
b9668ba4
AK
5734fi
5735
5736
059850b5
AK
5737 test -n "$AR" && break
5738 done
b9668ba4 5739fi
059850b5
AK
5740if test -z "$AR"; then
5741 ac_ct_AR=$AR
5742 for ac_prog in ar
5743do
5744 # Extract the first word of "$ac_prog", so it can be a program name with args.
5745set dummy $ac_prog; ac_word=$2
0fbeb4dc 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5747$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5748if ${ac_cv_prog_ac_ct_AR+:} false; then :
47dc80f6 5749 $as_echo_n "(cached) " >&6
b9668ba4 5750else
059850b5
AK
5751 if test -n "$ac_ct_AR"; then
5752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b9668ba4
AK
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
0fbeb4dc 5759 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5 5761 ac_cv_prog_ac_ct_AR="$ac_prog"
0fbeb4dc 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
5763 break 2
5764 fi
5765done
0fbeb4dc 5766 done
b9668ba4
AK
5767IFS=$as_save_IFS
5768
5769fi
5770fi
059850b5
AK
5771ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772if test -n "$ac_ct_AR"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5774$as_echo "$ac_ct_AR" >&6; }
b9668ba4 5775else
0fbeb4dc 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 5777$as_echo "no" >&6; }
b9668ba4
AK
5778fi
5779
059850b5
AK
5780
5781 test -n "$ac_ct_AR" && break
5782done
5783
5784 if test "x$ac_ct_AR" = x; then
5785 AR="false"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788yes:)
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791ac_tool_warned=yes ;;
5792esac
5793 AR=$ac_ct_AR
5794 fi
5795fi
5796
5797: ${AR=ar}
5798: ${AR_FLAGS=cru}
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5811$as_echo_n "checking for archiver @FILE support... " >&6; }
5812if ${lt_cv_ar_at_file+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815 lt_cv_ar_at_file=no
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h. */
5818
5819int
5820main ()
5821{
5822
5823 ;
5824 return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_compile "$LINENO"; then :
5828 echo conftest.$ac_objext > conftest.lst
5829 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5831 (eval $lt_ar_try) 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834 test $ac_status = 0; }
5835 if test "$ac_status" -eq 0; then
5836 # Ensure the archiver fails upon bogus file names.
5837 rm -f conftest.$ac_objext libconftest.a
5838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5839 (eval $lt_ar_try) 2>&5
5840 ac_status=$?
5841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842 test $ac_status = 0; }
5843 if test "$ac_status" -ne 0; then
5844 lt_cv_ar_at_file=@
5845 fi
5846 fi
5847 rm -f conftest.* libconftest.a
5848
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5854$as_echo "$lt_cv_ar_at_file" >&6; }
5855
5856if test "x$lt_cv_ar_at_file" = xno; then
5857 archiver_list_spec=
5858else
5859 archiver_list_spec=$lt_cv_ar_at_file
5860fi
5861
5862
5863
5864
5865
5866
5867
5868if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5870set dummy ${ac_tool_prefix}strip; ac_word=$2
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if ${ac_cv_prog_STRIP+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875else
5876 if test -n "$STRIP"; then
5877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
5886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890done
5891 done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896STRIP=$ac_cv_prog_STRIP
5897if test -n "$STRIP"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5899$as_echo "$STRIP" >&6; }
5900else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903fi
5904
5905
5906fi
5907if test -z "$ac_cv_prog_STRIP"; then
5908 ac_ct_STRIP=$STRIP
5909 # Extract the first word of "strip", so it can be a program name with args.
5910set dummy strip; ac_word=$2
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915else
5916 if test -n "$ac_ct_STRIP"; then
5917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
5926 ac_cv_prog_ac_ct_STRIP="strip"
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5929 fi
5930done
5931 done
5932IFS=$as_save_IFS
5933
5934fi
5935fi
5936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5937if test -n "$ac_ct_STRIP"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5939$as_echo "$ac_ct_STRIP" >&6; }
5940else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945 if test "x$ac_ct_STRIP" = x; then
5946 STRIP=":"
b9668ba4
AK
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949yes:)
0fbeb4dc 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 5951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
5952ac_tool_warned=yes ;;
5953esac
5c706339 5954 STRIP=$ac_ct_STRIP
b9668ba4 5955 fi
5c706339
AK
5956else
5957 STRIP="$ac_cv_prog_STRIP"
b9668ba4
AK
5958fi
5959
5c706339 5960test -z "$STRIP" && STRIP=:
b9668ba4 5961
b9668ba4 5962
b9668ba4 5963
b9668ba4 5964
b9668ba4 5965
b9668ba4 5966
5c706339
AK
5967if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}ranlib; ac_word=$2
0fbeb4dc 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 5971$as_echo_n "checking for $ac_word... " >&6; }
059850b5 5972if ${ac_cv_prog_RANLIB+:} false; then :
47dc80f6 5973 $as_echo_n "(cached) " >&6
b9668ba4 5974else
5c706339
AK
5975 if test -n "$RANLIB"; then
5976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b9668ba4 5977else
5c706339
AK
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
0fbeb4dc 5983 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 5985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
0fbeb4dc 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
5987 break 2
5988 fi
5989done
0fbeb4dc 5990 done
5c706339 5991IFS=$as_save_IFS
b9668ba4 5992
5c706339
AK
5993fi
5994fi
5995RANLIB=$ac_cv_prog_RANLIB
5996if test -n "$RANLIB"; then
0fbeb4dc 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
47dc80f6 5998$as_echo "$RANLIB" >&6; }
b9668ba4 5999else
0fbeb4dc 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6001$as_echo "no" >&6; }
5c706339 6002fi
b9668ba4 6003
b9668ba4 6004
5c706339
AK
6005fi
6006if test -z "$ac_cv_prog_RANLIB"; then
6007 ac_ct_RANLIB=$RANLIB
6008 # Extract the first word of "ranlib", so it can be a program name with args.
6009set dummy ranlib; ac_word=$2
0fbeb4dc 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6011$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6012if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
47dc80f6 6013 $as_echo_n "(cached) " >&6
b9668ba4 6014else
5c706339
AK
6015 if test -n "$ac_ct_RANLIB"; then
6016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
0fbeb4dc 6023 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6025 ac_cv_prog_ac_ct_RANLIB="ranlib"
0fbeb4dc 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
6027 break 2
6028 fi
6029done
0fbeb4dc 6030 done
5c706339 6031IFS=$as_save_IFS
b9668ba4
AK
6032
6033fi
b9668ba4 6034fi
5c706339
AK
6035ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6036if test -n "$ac_ct_RANLIB"; then
0fbeb4dc 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
47dc80f6 6038$as_echo "$ac_ct_RANLIB" >&6; }
5c706339 6039else
0fbeb4dc 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6041$as_echo "no" >&6; }
b9668ba4
AK
6042fi
6043
5c706339
AK
6044 if test "x$ac_ct_RANLIB" = x; then
6045 RANLIB=":"
b9668ba4 6046 else
5c706339
AK
6047 case $cross_compiling:$ac_tool_warned in
6048yes:)
0fbeb4dc 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
6051ac_tool_warned=yes ;;
6052esac
6053 RANLIB=$ac_ct_RANLIB
b9668ba4
AK
6054 fi
6055else
5c706339 6056 RANLIB="$ac_cv_prog_RANLIB"
b9668ba4 6057fi
b9668ba4 6058
5c706339 6059test -z "$RANLIB" && RANLIB=:
b9668ba4 6060
b9668ba4 6061
b9668ba4 6062
b9668ba4 6063
b9668ba4
AK
6064
6065
5c706339
AK
6066# Determine commands to create old-style static archives.
6067old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6068old_postinstall_cmds='chmod 644 $oldlib'
6069old_postuninstall_cmds=
b9668ba4 6070
5c706339
AK
6071if test -n "$RANLIB"; then
6072 case $host_os in
6073 openbsd*)
059850b5 6074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5c706339
AK
6075 ;;
6076 *)
059850b5 6077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5c706339
AK
6078 ;;
6079 esac
059850b5 6080 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
b9668ba4
AK
6081fi
6082
059850b5
AK
6083case $host_os in
6084 darwin*)
6085 lock_old_archive_extraction=yes ;;
6086 *)
6087 lock_old_archive_extraction=no ;;
6088esac
6089
6090
6091
6092
6093
6094
b9668ba4
AK
6095
6096
6097
b9668ba4 6098
b9668ba4 6099
b9668ba4 6100
b9668ba4 6101
b9668ba4 6102
b9668ba4 6103
b9668ba4 6104
b9668ba4 6105
b9668ba4 6106
b9668ba4 6107
b9668ba4 6108
b9668ba4 6109
b9668ba4 6110
b9668ba4 6111
b9668ba4 6112
b9668ba4 6113
b9668ba4
AK
6114
6115
b9668ba4 6116
b9668ba4
AK
6117
6118
b9668ba4 6119
b9668ba4
AK
6120
6121
b9668ba4 6122
b9668ba4 6123
b9668ba4 6124
b9668ba4 6125
b9668ba4 6126
b9668ba4 6127
5c706339
AK
6128# If no C compiler was specified, use CC.
6129LTCC=${LTCC-"$CC"}
b9668ba4 6130
5c706339
AK
6131# If no C compiler flags were specified, use CFLAGS.
6132LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 6133
5c706339
AK
6134# Allow CC to be a program name with arguments.
6135compiler=$CC
b9668ba4
AK
6136
6137
6138# Check for command to grab the raw symbol name followed by C symbol from nm.
0fbeb4dc 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
47dc80f6 6140$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
059850b5 6141if ${lt_cv_sys_global_symbol_pipe+:} false; then :
47dc80f6 6142 $as_echo_n "(cached) " >&6
b9668ba4
AK
6143else
6144
6145# These are sane defaults that work on at least a few old systems.
6146# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6147
6148# Character class describing NM global symbol codes.
6149symcode='[BCDEGRST]'
6150
6151# Regexp to match symbols that can be accessed directly from C.
6152sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6153
b9668ba4
AK
6154# Define system-specific variables.
6155case $host_os in
6156aix*)
6157 symcode='[BCDT]'
6158 ;;
47dc80f6 6159cygwin* | mingw* | pw32* | cegcc*)
b9668ba4
AK
6160 symcode='[ABCDGISTW]'
6161 ;;
5c706339 6162hpux*)
b9668ba4
AK
6163 if test "$host_cpu" = ia64; then
6164 symcode='[ABCDEGRST]'
6165 fi
b9668ba4
AK
6166 ;;
6167irix* | nonstopux*)
6168 symcode='[BCDEGRST]'
6169 ;;
6170osf*)
6171 symcode='[BCDEGQRST]'
6172 ;;
6173solaris*)
6174 symcode='[BDRT]'
6175 ;;
6176sco3.2v5*)
6177 symcode='[DT]'
6178 ;;
6179sysv4.2uw2*)
6180 symcode='[DT]'
6181 ;;
6182sysv5* | sco5v6* | unixware* | OpenUNIX*)
6183 symcode='[ABDT]'
6184 ;;
6185sysv4)
6186 symcode='[DFNSTU]'
6187 ;;
6188esac
6189
5c706339
AK
6190# If we're using GNU nm, then use its standard symbol codes.
6191case `$NM -V 2>&1` in
6192*GNU* | *'with BFD'*)
6193 symcode='[ABCDGIRSTW]' ;;
6194esac
6195
6196# Transform an extracted symbol line into a proper C declaration.
6197# Some systems (esp. on ia64) link data and code symbols differently,
6198# so use this general approach.
6199lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6200
6201# Transform an extracted symbol line into symbol name and symbol address
059850b5
AK
6202lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6203lt_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'"
5c706339 6204
b9668ba4
AK
6205# Handle CRLF in mingw tool chain
6206opt_cr=
6207case $build_os in
6208mingw*)
5c706339 6209 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b9668ba4
AK
6210 ;;
6211esac
6212
5c706339 6213# Try without a prefix underscore, then with it.
b9668ba4
AK
6214for ac_symprfx in "" "_"; do
6215
6216 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6217 symxfrm="\\1 $ac_symprfx\\2 \\2"
6218
6219 # Write the raw and C identifiers.
5c706339
AK
6220 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6221 # Fake it for dumpbin and say T for any non-static function
6222 # and D for any global variable.
6223 # Also find C++ and __fastcall symbols from MSVC++,
6224 # which start with @ or ?.
6225 lt_cv_sys_global_symbol_pipe="$AWK '"\
6226" {last_section=section; section=\$ 3};"\
059850b5 6227" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5c706339
AK
6228" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6229" \$ 0!~/External *\|/{next};"\
6230" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6231" {if(hide[section]) next};"\
6232" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6233" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6234" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6235" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6236" ' prfx=^$ac_symprfx"
6237 else
6238 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6239 fi
059850b5 6240 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
b9668ba4
AK
6241
6242 # Check to see that the pipe works correctly.
6243 pipe_works=no
6244
6245 rm -f conftest*
5c706339 6246 cat > conftest.$ac_ext <<_LT_EOF
b9668ba4
AK
6247#ifdef __cplusplus
6248extern "C" {
6249#endif
6250char nm_test_var;
5c706339
AK
6251void nm_test_func(void);
6252void nm_test_func(void){}
b9668ba4
AK
6253#ifdef __cplusplus
6254}
6255#endif
6256int main(){nm_test_var='a';nm_test_func();return(0);}
5c706339 6257_LT_EOF
b9668ba4 6258
0fbeb4dc 6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b9668ba4
AK
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
0fbeb4dc
AK
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
b9668ba4
AK
6264 # Now try to grab the symbols.
6265 nlist=conftest.nm
059850b5
AK
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
b9668ba4 6268 ac_status=$?
0fbeb4dc
AK
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; } && test -s "$nlist"; then
b9668ba4
AK
6271 # Try sorting and uniquifying the output.
6272 if sort "$nlist" | uniq > "$nlist"T; then
6273 mv -f "$nlist"T "$nlist"
6274 else
6275 rm -f "$nlist"T
6276 fi
6277
6278 # Make sure that we snagged all the symbols we need.
5c706339
AK
6279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6281 cat <<_LT_EOF > conftest.$ac_ext
059850b5
AK
6282/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6283#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6284/* DATA imports from DLLs on WIN32 con't be const, because runtime
6285 relocations are performed -- see ld's documentation on pseudo-relocs. */
6286# define LT_DLSYM_CONST
6287#elif defined(__osf__)
6288/* This system does not cope well with relocations in const data. */
6289# define LT_DLSYM_CONST
6290#else
6291# define LT_DLSYM_CONST const
6292#endif
6293
b9668ba4
AK
6294#ifdef __cplusplus
6295extern "C" {
6296#endif
6297
5c706339 6298_LT_EOF
b9668ba4 6299 # Now generate the symbol file.
5c706339 6300 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b9668ba4 6301
5c706339 6302 cat <<_LT_EOF >> conftest.$ac_ext
b9668ba4 6303
5c706339 6304/* The mapping between symbol names and symbols. */
059850b5 6305LT_DLSYM_CONST struct {
b9668ba4 6306 const char *name;
5c706339 6307 void *address;
b9668ba4 6308}
5c706339 6309lt__PROGRAM__LTX_preloaded_symbols[] =
b9668ba4 6310{
5c706339
AK
6311 { "@PROGRAM@", (void *) 0 },
6312_LT_EOF
6313 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6314 cat <<\_LT_EOF >> conftest.$ac_ext
6315 {0, (void *) 0}
b9668ba4
AK
6316};
6317
5c706339
AK
6318/* This works around a problem in FreeBSD linker */
6319#ifdef FREEBSD_WORKAROUND
6320static const void *lt_preloaded_setup() {
6321 return lt__PROGRAM__LTX_preloaded_symbols;
6322}
6323#endif
6324
b9668ba4
AK
6325#ifdef __cplusplus
6326}
6327#endif
5c706339 6328_LT_EOF
b9668ba4
AK
6329 # Now try linking the two files.
6330 mv conftest.$ac_objext conftstm.$ac_objext
059850b5
AK
6331 lt_globsym_save_LIBS=$LIBS
6332 lt_globsym_save_CFLAGS=$CFLAGS
b9668ba4
AK
6333 LIBS="conftstm.$ac_objext"
6334 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
0fbeb4dc 6335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b9668ba4
AK
6336 (eval $ac_link) 2>&5
6337 ac_status=$?
0fbeb4dc
AK
6338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
b9668ba4
AK
6340 pipe_works=yes
6341 fi
059850b5
AK
6342 LIBS=$lt_globsym_save_LIBS
6343 CFLAGS=$lt_globsym_save_CFLAGS
b9668ba4
AK
6344 else
6345 echo "cannot find nm_test_func in $nlist" >&5
6346 fi
6347 else
6348 echo "cannot find nm_test_var in $nlist" >&5
6349 fi
6350 else
6351 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6352 fi
6353 else
6354 echo "$progname: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 fi
5c706339 6357 rm -rf conftest* conftst*
b9668ba4
AK
6358
6359 # Do not use the global_symbol_pipe unless it works.
6360 if test "$pipe_works" = yes; then
6361 break
6362 else
6363 lt_cv_sys_global_symbol_pipe=
6364 fi
6365done
6366
6367fi
6368
6369if test -z "$lt_cv_sys_global_symbol_pipe"; then
6370 lt_cv_sys_global_symbol_to_cdecl=
6371fi
6372if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
0fbeb4dc 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
47dc80f6 6374$as_echo "failed" >&6; }
b9668ba4 6375else
0fbeb4dc 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
47dc80f6 6377$as_echo "ok" >&6; }
b9668ba4
AK
6378fi
6379
059850b5
AK
6380# Response file support.
6381if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6382 nm_file_list_spec='@'
6383elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6384 nm_file_list_spec='@'
6385fi
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
b9668ba4
AK
6396
6397
6398
6399
6400
5c706339
AK
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
059850b5
AK
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6414$as_echo_n "checking for sysroot... " >&6; }
6415
6416# Check whether --with-sysroot was given.
6417if test "${with_sysroot+set}" = set; then :
6418 withval=$with_sysroot;
6419else
6420 with_sysroot=no
6421fi
6422
6423
6424lt_sysroot=
6425case ${with_sysroot} in #(
6426 yes)
6427 if test "$GCC" = yes; then
6428 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6429 fi
6430 ;; #(
6431 /*)
6432 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6433 ;; #(
6434 no|'')
6435 ;; #(
6436 *)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6438$as_echo "${with_sysroot}" >&6; }
6439 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6440 ;;
6441esac
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6444$as_echo "${lt_sysroot:-no}" >&6; }
5c706339
AK
6445
6446
6447
6448
6449
6450# Check whether --enable-libtool-lock was given.
0fbeb4dc 6451if test "${enable_libtool_lock+set}" = set; then :
5c706339
AK
6452 enableval=$enable_libtool_lock;
6453fi
6454
6455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6456
6457# Some flags need to be propagated to the compiler or linker for good
6458# libtool support.
6459case $host in
6460ia64-*-hpux*)
6461 # Find out which ABI we are using.
6462 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6464 (eval $ac_compile) 2>&5
6465 ac_status=$?
0fbeb4dc
AK
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }; then
5c706339
AK
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *ELF-32*)
6470 HPUX_IA64_MODE="32"
6471 ;;
6472 *ELF-64*)
6473 HPUX_IA64_MODE="64"
6474 ;;
6475 esac
6476 fi
6477 rm -rf conftest*
6478 ;;
6479*-*-irix6*)
6480 # Find out which ABI we are using.
059850b5 6481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
0fbeb4dc 6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6483 (eval $ac_compile) 2>&5
6484 ac_status=$?
0fbeb4dc
AK
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
5c706339
AK
6487 if test "$lt_cv_prog_gnu_ld" = yes; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -melf32bsmip"
6491 ;;
6492 *N32*)
6493 LD="${LD-ld} -melf32bmipn32"
6494 ;;
6495 *64-bit*)
6496 LD="${LD-ld} -melf64bmip"
6497 ;;
6498 esac
6499 else
6500 case `/usr/bin/file conftest.$ac_objext` in
6501 *32-bit*)
6502 LD="${LD-ld} -32"
6503 ;;
6504 *N32*)
6505 LD="${LD-ld} -n32"
6506 ;;
6507 *64-bit*)
6508 LD="${LD-ld} -64"
6509 ;;
6510 esac
6511 fi
b9668ba4 6512 fi
5c706339 6513 rm -rf conftest*
b9668ba4 6514 ;;
b9668ba4 6515
0044e680 6516x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5c706339
AK
6517s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6518 # Find out which ABI we are using.
6519 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6521 (eval $ac_compile) 2>&5
6522 ac_status=$?
0fbeb4dc
AK
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
5c706339
AK
6525 case `/usr/bin/file conftest.o` in
6526 *32-bit*)
6527 case $host in
6528 x86_64-*kfreebsd*-gnu)
6529 LD="${LD-ld} -m elf_i386_fbsd"
6530 ;;
6531 x86_64-*linux*)
0044e680
AK
6532 case `/usr/bin/file conftest.o` in
6533 *x86-64*)
6534 LD="${LD-ld} -m elf32_x86_64"
6535 ;;
6536 *)
6537 LD="${LD-ld} -m elf_i386"
6538 ;;
6539 esac
6540 ;;
6541 powerpc64le-*)
6542 LD="${LD-ld} -m elf32lppclinux"
5c706339 6543 ;;
0044e680 6544 powerpc64-*)
5c706339
AK
6545 LD="${LD-ld} -m elf32ppclinux"
6546 ;;
6547 s390x-*linux*)
6548 LD="${LD-ld} -m elf_s390"
6549 ;;
6550 sparc64-*linux*)
6551 LD="${LD-ld} -m elf32_sparc"
6552 ;;
6553 esac
6554 ;;
6555 *64-bit*)
6556 case $host in
6557 x86_64-*kfreebsd*-gnu)
6558 LD="${LD-ld} -m elf_x86_64_fbsd"
6559 ;;
6560 x86_64-*linux*)
6561 LD="${LD-ld} -m elf_x86_64"
6562 ;;
0044e680
AK
6563 powerpcle-*)
6564 LD="${LD-ld} -m elf64lppc"
6565 ;;
6566 powerpc-*)
5c706339
AK
6567 LD="${LD-ld} -m elf64ppc"
6568 ;;
6569 s390*-*linux*|s390*-*tpf*)
6570 LD="${LD-ld} -m elf64_s390"
6571 ;;
6572 sparc*-*linux*)
6573 LD="${LD-ld} -m elf64_sparc"
6574 ;;
6575 esac
6576 ;;
6577 esac
6578 fi
6579 rm -rf conftest*
6580 ;;
b9668ba4 6581
5c706339
AK
6582*-*-sco3.2v5*)
6583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6584 SAVE_CFLAGS="$CFLAGS"
6585 CFLAGS="$CFLAGS -belf"
0fbeb4dc 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
47dc80f6 6587$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
059850b5 6588if ${lt_cv_cc_needs_belf+:} false; then :
47dc80f6 6589 $as_echo_n "(cached) " >&6
5c706339
AK
6590else
6591 ac_ext=c
6592ac_cpp='$CPP $CPPFLAGS'
6593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6596
0fbeb4dc 6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 6598/* end confdefs.h. */
b9668ba4 6599
5c706339
AK
6600int
6601main ()
6602{
b9668ba4 6603
5c706339
AK
6604 ;
6605 return 0;
6606}
6607_ACEOF
0fbeb4dc 6608if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
6609 lt_cv_cc_needs_belf=yes
6610else
0fbeb4dc 6611 lt_cv_cc_needs_belf=no
5c706339 6612fi
0fbeb4dc
AK
6613rm -f core conftest.err conftest.$ac_objext \
6614 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
6615 ac_ext=c
6616ac_cpp='$CPP $CPPFLAGS'
6617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 6620
5c706339 6621fi
0fbeb4dc 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
47dc80f6 6623$as_echo "$lt_cv_cc_needs_belf" >&6; }
5c706339
AK
6624 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6625 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6626 CFLAGS="$SAVE_CFLAGS"
6627 fi
6628 ;;
059850b5 6629*-*solaris*)
5c706339
AK
6630 # Find out which ABI we are using.
6631 echo 'int i;' > conftest.$ac_ext
0fbeb4dc 6632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
0fbeb4dc
AK
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
5c706339
AK
6637 case `/usr/bin/file conftest.o` in
6638 *64-bit*)
6639 case $lt_cv_prog_gnu_ld in
059850b5
AK
6640 yes*)
6641 case $host in
6642 i?86-*-solaris*)
6643 LD="${LD-ld} -m elf_x86_64"
6644 ;;
6645 sparc*-*-solaris*)
6646 LD="${LD-ld} -m elf64_sparc"
6647 ;;
6648 esac
6649 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6650 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6651 LD="${LD-ld}_sol2"
6652 fi
6653 ;;
5c706339
AK
6654 *)
6655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6656 LD="${LD-ld} -64"
6657 fi
6658 ;;
6659 esac
6660 ;;
6661 esac
6662 fi
6663 rm -rf conftest*
6664 ;;
6665esac
6666
6667need_locks="$enable_libtool_lock"
6668
059850b5
AK
6669if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6671set dummy ${ac_tool_prefix}mt; ac_word=$2
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676else
6677 if test -n "$MANIFEST_TOOL"; then
6678 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
6687 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692 done
6693IFS=$as_save_IFS
6694
6695fi
6696fi
6697MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6698if test -n "$MANIFEST_TOOL"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6700$as_echo "$MANIFEST_TOOL" >&6; }
6701else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706
6707fi
6708if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6709 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6710 # Extract the first word of "mt", so it can be a program name with args.
6711set dummy mt; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716else
6717 if test -n "$ac_ct_MANIFEST_TOOL"; then
6718 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
059850b5
AK
6727 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6738if test -n "$ac_ct_MANIFEST_TOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6740$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6741else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6747 MANIFEST_TOOL=":"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6756 fi
6757else
6758 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6759fi
6760
6761test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6763$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6764if ${lt_cv_path_mainfest_tool+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766else
6767 lt_cv_path_mainfest_tool=no
6768 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6769 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6770 cat conftest.err >&5
6771 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6772 lt_cv_path_mainfest_tool=yes
6773 fi
6774 rm -f conftest*
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6777$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6778if test "x$lt_cv_path_mainfest_tool" != xyes; then
6779 MANIFEST_TOOL=:
6780fi
6781
6782
6783
6784
6785
5c706339
AK
6786
6787 case $host_os in
6788 rhapsody* | darwin*)
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
0fbeb4dc 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6793$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6794if ${ac_cv_prog_DSYMUTIL+:} false; then :
47dc80f6 6795 $as_echo_n "(cached) " >&6
b9668ba4 6796else
5c706339
AK
6797 if test -n "$DSYMUTIL"; then
6798 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
0fbeb4dc 6805 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6807 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
0fbeb4dc 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6809 break 2
6810 fi
6811done
0fbeb4dc 6812 done
b9668ba4
AK
6813IFS=$as_save_IFS
6814
6815fi
6816fi
5c706339
AK
6817DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818if test -n "$DSYMUTIL"; then
0fbeb4dc 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
47dc80f6 6820$as_echo "$DSYMUTIL" >&6; }
b9668ba4 6821else
0fbeb4dc 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6823$as_echo "no" >&6; }
b9668ba4
AK
6824fi
6825
6826
6827fi
5c706339
AK
6828if test -z "$ac_cv_prog_DSYMUTIL"; then
6829 ac_ct_DSYMUTIL=$DSYMUTIL
6830 # Extract the first word of "dsymutil", so it can be a program name with args.
6831set dummy dsymutil; ac_word=$2
0fbeb4dc 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6833$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6834if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
47dc80f6 6835 $as_echo_n "(cached) " >&6
b9668ba4 6836else
5c706339
AK
6837 if test -n "$ac_ct_DSYMUTIL"; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
b9668ba4
AK
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
0fbeb4dc 6845 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6847 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
0fbeb4dc 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6849 break 2
6850 fi
6851done
0fbeb4dc 6852 done
b9668ba4
AK
6853IFS=$as_save_IFS
6854
6855fi
6856fi
5c706339
AK
6857ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858if test -n "$ac_ct_DSYMUTIL"; then
0fbeb4dc 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
47dc80f6 6860$as_echo "$ac_ct_DSYMUTIL" >&6; }
b9668ba4 6861else
0fbeb4dc 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6863$as_echo "no" >&6; }
b9668ba4
AK
6864fi
6865
5c706339
AK
6866 if test "x$ac_ct_DSYMUTIL" = x; then
6867 DSYMUTIL=":"
b9668ba4
AK
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870yes:)
0fbeb4dc 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
6873ac_tool_warned=yes ;;
6874esac
5c706339 6875 DSYMUTIL=$ac_ct_DSYMUTIL
b9668ba4
AK
6876 fi
6877else
5c706339 6878 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b9668ba4
AK
6879fi
6880
5c706339
AK
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883set dummy ${ac_tool_prefix}nmedit; ac_word=$2
0fbeb4dc 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6885$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6886if ${ac_cv_prog_NMEDIT+:} false; then :
47dc80f6 6887 $as_echo_n "(cached) " >&6
b9668ba4 6888else
5c706339
AK
6889 if test -n "$NMEDIT"; then
6890 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b9668ba4
AK
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
0fbeb4dc 6897 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6899 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
0fbeb4dc 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6901 break 2
6902 fi
6903done
0fbeb4dc 6904 done
b9668ba4
AK
6905IFS=$as_save_IFS
6906
6907fi
6908fi
5c706339
AK
6909NMEDIT=$ac_cv_prog_NMEDIT
6910if test -n "$NMEDIT"; then
0fbeb4dc 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
47dc80f6 6912$as_echo "$NMEDIT" >&6; }
b9668ba4 6913else
0fbeb4dc 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6915$as_echo "no" >&6; }
b9668ba4
AK
6916fi
6917
6918
6919fi
5c706339
AK
6920if test -z "$ac_cv_prog_NMEDIT"; then
6921 ac_ct_NMEDIT=$NMEDIT
6922 # Extract the first word of "nmedit", so it can be a program name with args.
6923set dummy nmedit; ac_word=$2
0fbeb4dc 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6925$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6926if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
47dc80f6 6927 $as_echo_n "(cached) " >&6
b9668ba4 6928else
5c706339
AK
6929 if test -n "$ac_ct_NMEDIT"; then
6930 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b9668ba4
AK
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
0fbeb4dc 6937 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6939 ac_cv_prog_ac_ct_NMEDIT="nmedit"
0fbeb4dc 6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6941 break 2
6942 fi
6943done
0fbeb4dc 6944 done
b9668ba4
AK
6945IFS=$as_save_IFS
6946
6947fi
6948fi
5c706339
AK
6949ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950if test -n "$ac_ct_NMEDIT"; then
0fbeb4dc 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
47dc80f6 6952$as_echo "$ac_ct_NMEDIT" >&6; }
b9668ba4 6953else
0fbeb4dc 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 6955$as_echo "no" >&6; }
b9668ba4
AK
6956fi
6957
5c706339
AK
6958 if test "x$ac_ct_NMEDIT" = x; then
6959 NMEDIT=":"
b9668ba4
AK
6960 else
6961 case $cross_compiling:$ac_tool_warned in
6962yes:)
0fbeb4dc 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 6964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
6965ac_tool_warned=yes ;;
6966esac
5c706339 6967 NMEDIT=$ac_ct_NMEDIT
b9668ba4
AK
6968 fi
6969else
5c706339 6970 NMEDIT="$ac_cv_prog_NMEDIT"
b9668ba4
AK
6971fi
6972
5c706339
AK
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975set dummy ${ac_tool_prefix}lipo; ac_word=$2
0fbeb4dc 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 6977$as_echo_n "checking for $ac_word... " >&6; }
059850b5 6978if ${ac_cv_prog_LIPO+:} false; then :
47dc80f6 6979 $as_echo_n "(cached) " >&6
b9668ba4 6980else
5c706339
AK
6981 if test -n "$LIPO"; then
6982 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b9668ba4
AK
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
0fbeb4dc 6989 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 6991 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
0fbeb4dc 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
6993 break 2
6994 fi
6995done
0fbeb4dc 6996 done
b9668ba4
AK
6997IFS=$as_save_IFS
6998
6999fi
7000fi
5c706339
AK
7001LIPO=$ac_cv_prog_LIPO
7002if test -n "$LIPO"; then
0fbeb4dc 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
47dc80f6 7004$as_echo "$LIPO" >&6; }
b9668ba4 7005else
0fbeb4dc 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7007$as_echo "no" >&6; }
b9668ba4
AK
7008fi
7009
7010
7011fi
5c706339
AK
7012if test -z "$ac_cv_prog_LIPO"; then
7013 ac_ct_LIPO=$LIPO
7014 # Extract the first word of "lipo", so it can be a program name with args.
7015set dummy lipo; ac_word=$2
0fbeb4dc 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7017$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7018if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
47dc80f6 7019 $as_echo_n "(cached) " >&6
b9668ba4 7020else
5c706339
AK
7021 if test -n "$ac_ct_LIPO"; then
7022 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b9668ba4
AK
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
0fbeb4dc 7029 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7031 ac_cv_prog_ac_ct_LIPO="lipo"
0fbeb4dc 7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b9668ba4
AK
7033 break 2
7034 fi
7035done
0fbeb4dc 7036 done
b9668ba4
AK
7037IFS=$as_save_IFS
7038
7039fi
7040fi
5c706339
AK
7041ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042if test -n "$ac_ct_LIPO"; then
0fbeb4dc 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
47dc80f6 7044$as_echo "$ac_ct_LIPO" >&6; }
b9668ba4 7045else
0fbeb4dc 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7047$as_echo "no" >&6; }
b9668ba4
AK
7048fi
7049
5c706339
AK
7050 if test "x$ac_ct_LIPO" = x; then
7051 LIPO=":"
b9668ba4
AK
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054yes:)
0fbeb4dc 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b9668ba4
AK
7057ac_tool_warned=yes ;;
7058esac
5c706339 7059 LIPO=$ac_ct_LIPO
b9668ba4
AK
7060 fi
7061else
5c706339 7062 LIPO="$ac_cv_prog_LIPO"
b9668ba4
AK
7063fi
7064
5c706339
AK
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}otool; ac_word=$2
0fbeb4dc 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7069$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7070if ${ac_cv_prog_OTOOL+:} false; then :
47dc80f6 7071 $as_echo_n "(cached) " >&6
b9668ba4 7072else
5c706339
AK
7073 if test -n "$OTOOL"; then
7074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
0fbeb4dc 7081 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7083 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
0fbeb4dc 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7085 break 2
7086 fi
7087done
0fbeb4dc 7088 done
5c706339 7089IFS=$as_save_IFS
b9668ba4 7090
b9668ba4 7091fi
5c706339
AK
7092fi
7093OTOOL=$ac_cv_prog_OTOOL
7094if test -n "$OTOOL"; then
0fbeb4dc 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
47dc80f6 7096$as_echo "$OTOOL" >&6; }
b9668ba4 7097else
0fbeb4dc 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7099$as_echo "no" >&6; }
b9668ba4
AK
7100fi
7101
5c706339
AK
7102
7103fi
7104if test -z "$ac_cv_prog_OTOOL"; then
7105 ac_ct_OTOOL=$OTOOL
7106 # Extract the first word of "otool", so it can be a program name with args.
7107set dummy otool; ac_word=$2
0fbeb4dc 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7109$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7110if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
47dc80f6 7111 $as_echo_n "(cached) " >&6
b9668ba4 7112else
5c706339
AK
7113 if test -n "$ac_ct_OTOOL"; then
7114 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
0fbeb4dc 7121 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7123 ac_cv_prog_ac_ct_OTOOL="otool"
0fbeb4dc 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7125 break 2
7126 fi
7127done
0fbeb4dc 7128 done
5c706339 7129IFS=$as_save_IFS
b9668ba4 7130
b9668ba4 7131fi
5c706339
AK
7132fi
7133ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134if test -n "$ac_ct_OTOOL"; then
0fbeb4dc 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
47dc80f6 7136$as_echo "$ac_ct_OTOOL" >&6; }
b9668ba4 7137else
0fbeb4dc 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7139$as_echo "no" >&6; }
b9668ba4
AK
7140fi
7141
5c706339
AK
7142 if test "x$ac_ct_OTOOL" = x; then
7143 OTOOL=":"
b9668ba4 7144 else
5c706339
AK
7145 case $cross_compiling:$ac_tool_warned in
7146yes:)
0fbeb4dc 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339 7149ac_tool_warned=yes ;;
b9668ba4 7150esac
5c706339
AK
7151 OTOOL=$ac_ct_OTOOL
7152 fi
7153else
7154 OTOOL="$ac_cv_prog_OTOOL"
b9668ba4
AK
7155fi
7156
5c706339
AK
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159set dummy ${ac_tool_prefix}otool64; ac_word=$2
0fbeb4dc 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7161$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7162if ${ac_cv_prog_OTOOL64+:} false; then :
47dc80f6 7163 $as_echo_n "(cached) " >&6
5c706339
AK
7164else
7165 if test -n "$OTOOL64"; then
7166 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
0fbeb4dc 7173 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7175 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
0fbeb4dc 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7177 break 2
7178 fi
7179done
0fbeb4dc 7180 done
5c706339 7181IFS=$as_save_IFS
b9668ba4 7182
5c706339
AK
7183fi
7184fi
7185OTOOL64=$ac_cv_prog_OTOOL64
7186if test -n "$OTOOL64"; then
0fbeb4dc 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
47dc80f6 7188$as_echo "$OTOOL64" >&6; }
b9668ba4 7189else
0fbeb4dc 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7191$as_echo "no" >&6; }
b9668ba4
AK
7192fi
7193
b9668ba4 7194
5c706339
AK
7195fi
7196if test -z "$ac_cv_prog_OTOOL64"; then
7197 ac_ct_OTOOL64=$OTOOL64
7198 # Extract the first word of "otool64", so it can be a program name with args.
7199set dummy otool64; ac_word=$2
0fbeb4dc 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 7201$as_echo_n "checking for $ac_word... " >&6; }
059850b5 7202if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
47dc80f6 7203 $as_echo_n "(cached) " >&6
5c706339
AK
7204else
7205 if test -n "$ac_ct_OTOOL64"; then
7206 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
0fbeb4dc 7213 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 7215 ac_cv_prog_ac_ct_OTOOL64="otool64"
0fbeb4dc 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
7217 break 2
7218 fi
7219done
0fbeb4dc 7220 done
5c706339 7221IFS=$as_save_IFS
b9668ba4 7222
5c706339
AK
7223fi
7224fi
7225ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226if test -n "$ac_ct_OTOOL64"; then
0fbeb4dc 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
47dc80f6 7228$as_echo "$ac_ct_OTOOL64" >&6; }
5c706339 7229else
0fbeb4dc 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7231$as_echo "no" >&6; }
5c706339 7232fi
b9668ba4 7233
5c706339
AK
7234 if test "x$ac_ct_OTOOL64" = x; then
7235 OTOOL64=":"
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238yes:)
0fbeb4dc 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
47dc80f6 7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5c706339
AK
7241ac_tool_warned=yes ;;
7242esac
7243 OTOOL64=$ac_ct_OTOOL64
7244 fi
7245else
7246 OTOOL64="$ac_cv_prog_OTOOL64"
7247fi
b9668ba4 7248
b9668ba4 7249
b9668ba4 7250
b9668ba4
AK
7251
7252
b9668ba4 7253
b9668ba4 7254
b9668ba4
AK
7255
7256
b9668ba4 7257
b9668ba4
AK
7258
7259
7260
b9668ba4 7261
b9668ba4
AK
7262
7263
b9668ba4 7264
b9668ba4 7265
b9668ba4 7266
b9668ba4 7267
b9668ba4 7268
b9668ba4 7269
b9668ba4 7270
b9668ba4 7271
b9668ba4 7272
b9668ba4 7273
b9668ba4 7274
0fbeb4dc 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
47dc80f6 7276$as_echo_n "checking for -single_module linker flag... " >&6; }
059850b5 7277if ${lt_cv_apple_cc_single_mod+:} false; then :
47dc80f6 7278 $as_echo_n "(cached) " >&6
5c706339
AK
7279else
7280 lt_cv_apple_cc_single_mod=no
7281 if test -z "${LT_MULTI_MODULE}"; then
7282 # By default we will add the -single_module flag. You can override
7283 # by either setting the environment variable LT_MULTI_MODULE
7284 # non-empty at configure time, or by adding -multi_module to the
7285 # link flags.
7286 rm -rf libconftest.dylib*
7287 echo "int foo(void){return 1;}" > conftest.c
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289-dynamiclib -Wl,-single_module conftest.c" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292 _lt_result=$?
059850b5
AK
7293 # If there is a non-empty error log, and "single_module"
7294 # appears in it, assume the flag caused a linker warning
7295 if test -s conftest.err && $GREP single_module conftest.err; then
7296 cat conftest.err >&5
7297 # Otherwise, if the output was created with a 0 exit code from
7298 # the compiler, it worked.
7299 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
5c706339
AK
7300 lt_cv_apple_cc_single_mod=yes
7301 else
7302 cat conftest.err >&5
7303 fi
7304 rm -rf libconftest.dylib*
7305 rm -f conftest.*
7306 fi
7307fi
0fbeb4dc 7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
47dc80f6 7309$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
059850b5 7310
0fbeb4dc 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
47dc80f6 7312$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
059850b5 7313if ${lt_cv_ld_exported_symbols_list+:} false; then :
47dc80f6 7314 $as_echo_n "(cached) " >&6
5c706339
AK
7315else
7316 lt_cv_ld_exported_symbols_list=no
7317 save_LDFLAGS=$LDFLAGS
7318 echo "_main" > conftest.sym
7319 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
0fbeb4dc 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 7321/* end confdefs.h. */
b9668ba4 7322
5c706339
AK
7323int
7324main ()
7325{
b9668ba4 7326
5c706339
AK
7327 ;
7328 return 0;
7329}
7330_ACEOF
0fbeb4dc 7331if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
7332 lt_cv_ld_exported_symbols_list=yes
7333else
0fbeb4dc 7334 lt_cv_ld_exported_symbols_list=no
5c706339 7335fi
0fbeb4dc
AK
7336rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
5c706339 7338 LDFLAGS="$save_LDFLAGS"
b9668ba4 7339
5c706339 7340fi
0fbeb4dc 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
47dc80f6 7342$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
059850b5
AK
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7345$as_echo_n "checking for -force_load linker flag... " >&6; }
7346if ${lt_cv_ld_force_load+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348else
7349 lt_cv_ld_force_load=no
7350 cat > conftest.c << _LT_EOF
7351int forced_loaded() { return 2;}
7352_LT_EOF
7353 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7354 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7355 echo "$AR cru libconftest.a conftest.o" >&5
7356 $AR cru libconftest.a conftest.o 2>&5
7357 echo "$RANLIB libconftest.a" >&5
7358 $RANLIB libconftest.a 2>&5
7359 cat > conftest.c << _LT_EOF
7360int main() { return 0;}
7361_LT_EOF
7362 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7363 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7364 _lt_result=$?
7365 if test -s conftest.err && $GREP force_load conftest.err; then
7366 cat conftest.err >&5
7367 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7368 lt_cv_ld_force_load=yes
7369 else
7370 cat conftest.err >&5
7371 fi
7372 rm -f conftest.err libconftest.a conftest conftest.c
7373 rm -rf conftest.dSYM
7374
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7377$as_echo "$lt_cv_ld_force_load" >&6; }
b9668ba4 7378 case $host_os in
5c706339
AK
7379 rhapsody* | darwin1.[012])
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7381 darwin1.*)
7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383 darwin*) # darwin 5.x on
7384 # if running on 10.5 or later, the deployment target defaults
7385 # to the OS version, if on x86, and 10.4, the deployment
7386 # target defaults to 10.4. Don't you love it?
7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390 10.[012]*)
7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7392 10.*)
7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b9668ba4 7394 esac
5c706339
AK
7395 ;;
7396 esac
7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7398 _lt_dar_single_mod='$single_module'
7399 fi
7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7402 else
7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404 fi
059850b5 7405 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
5c706339
AK
7406 _lt_dsymutil='~$DSYMUTIL $lib || :'
7407 else
7408 _lt_dsymutil=
7409 fi
7410 ;;
7411 esac
b9668ba4 7412
b9668ba4 7413
0fbeb4dc 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
47dc80f6 7415$as_echo_n "checking for ANSI C header files... " >&6; }
059850b5 7416if ${ac_cv_header_stdc+:} false; then :
47dc80f6 7417 $as_echo_n "(cached) " >&6
5c706339 7418else
0fbeb4dc 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7420/* end confdefs.h. */
7421#include <stdlib.h>
7422#include <stdarg.h>
7423#include <string.h>
7424#include <float.h>
b9668ba4 7425
5c706339
AK
7426int
7427main ()
7428{
b9668ba4 7429
5c706339
AK
7430 ;
7431 return 0;
7432}
7433_ACEOF
0fbeb4dc 7434if ac_fn_c_try_compile "$LINENO"; then :
5c706339
AK
7435 ac_cv_header_stdc=yes
7436else
0fbeb4dc 7437 ac_cv_header_stdc=no
5c706339 7438fi
5c706339 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 7440
5c706339
AK
7441if test $ac_cv_header_stdc = yes; then
7442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0fbeb4dc 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7444/* end confdefs.h. */
7445#include <string.h>
b9668ba4 7446
5c706339
AK
7447_ACEOF
7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
7449 $EGREP "memchr" >/dev/null 2>&1; then :
7450
b9668ba4 7451else
5c706339 7452 ac_cv_header_stdc=no
b9668ba4 7453fi
5c706339 7454rm -f conftest*
b9668ba4 7455
b9668ba4
AK
7456fi
7457
5c706339
AK
7458if test $ac_cv_header_stdc = yes; then
7459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
0fbeb4dc 7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7461/* end confdefs.h. */
7462#include <stdlib.h>
b9668ba4 7463
5c706339
AK
7464_ACEOF
7465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
7466 $EGREP "free" >/dev/null 2>&1; then :
7467
b9668ba4 7468else
5c706339 7469 ac_cv_header_stdc=no
b9668ba4 7470fi
5c706339 7471rm -f conftest*
b9668ba4 7472
b9668ba4
AK
7473fi
7474
5c706339
AK
7475if test $ac_cv_header_stdc = yes; then
7476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0fbeb4dc 7477 if test "$cross_compiling" = yes; then :
5c706339 7478 :
b9668ba4 7479else
0fbeb4dc 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
7481/* end confdefs.h. */
7482#include <ctype.h>
7483#include <stdlib.h>
7484#if ((' ' & 0x0FF) == 0x020)
7485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7487#else
7488# define ISLOWER(c) \
7489 (('a' <= (c) && (c) <= 'i') \
7490 || ('j' <= (c) && (c) <= 'r') \
7491 || ('s' <= (c) && (c) <= 'z'))
7492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7493#endif
b9668ba4 7494
5c706339
AK
7495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7496int
7497main ()
7498{
7499 int i;
7500 for (i = 0; i < 256; i++)
7501 if (XOR (islower (i), ISLOWER (i))
7502 || toupper (i) != TOUPPER (i))
7503 return 2;
7504 return 0;
7505}
7506_ACEOF
0fbeb4dc
AK
7507if ac_fn_c_try_run "$LINENO"; then :
7508
5c706339 7509else
0fbeb4dc
AK
7510 ac_cv_header_stdc=no
7511fi
7512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7513 conftest.$ac_objext conftest.beam conftest.$ac_ext
7514fi
b9668ba4 7515
5c706339 7516fi
0fbeb4dc
AK
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519$as_echo "$ac_cv_header_stdc" >&6; }
7520if test $ac_cv_header_stdc = yes; then
7521
7522$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b9668ba4 7523
5c706339 7524fi
0fbeb4dc
AK
7525
7526# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7528 inttypes.h stdint.h unistd.h
7529do :
7530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7532"
7533if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5c706339 7534 cat >>confdefs.h <<_ACEOF
47dc80f6 7535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5c706339 7536_ACEOF
b9668ba4 7537
5c706339 7538fi
b9668ba4 7539
5c706339 7540done
b9668ba4 7541
b9668ba4 7542
5c706339 7543for ac_header in dlfcn.h
0fbeb4dc
AK
7544do :
7545 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7546"
059850b5 7547if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5c706339 7548 cat >>confdefs.h <<_ACEOF
0fbeb4dc 7549#define HAVE_DLFCN_H 1
5c706339 7550_ACEOF
b9668ba4 7551
5c706339 7552fi
b9668ba4 7553
5c706339 7554done
b9668ba4 7555
b9668ba4 7556
b9668ba4 7557
059850b5
AK
7558
7559
5c706339 7560# Set options
b9668ba4
AK
7561
7562
b9668ba4 7563
5c706339 7564 enable_dlopen=no
b9668ba4 7565
5c706339
AK
7566
7567 enable_win32_dll=no
7568
7569
7570 # Check whether --enable-shared was given.
0fbeb4dc 7571if test "${enable_shared+set}" = set; then :
5c706339
AK
7572 enableval=$enable_shared; p=${PACKAGE-default}
7573 case $enableval in
7574 yes) enable_shared=yes ;;
7575 no) enable_shared=no ;;
7576 *)
7577 enable_shared=no
7578 # Look at the argument we got. We use all the common list separators.
7579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7580 for pkg in $enableval; do
7581 IFS="$lt_save_ifs"
7582 if test "X$pkg" = "X$p"; then
7583 enable_shared=yes
b9668ba4 7584 fi
5c706339
AK
7585 done
7586 IFS="$lt_save_ifs"
b9668ba4 7587 ;;
5c706339
AK
7588 esac
7589else
7590 enable_shared=yes
7591fi
b9668ba4 7592
b9668ba4 7593
b9668ba4 7594
b9668ba4 7595
b9668ba4 7596
b9668ba4 7597
b9668ba4 7598
b9668ba4 7599
b9668ba4 7600
5c706339 7601 # Check whether --enable-static was given.
0fbeb4dc 7602if test "${enable_static+set}" = set; then :
5c706339
AK
7603 enableval=$enable_static; p=${PACKAGE-default}
7604 case $enableval in
7605 yes) enable_static=yes ;;
7606 no) enable_static=no ;;
7607 *)
7608 enable_static=no
7609 # Look at the argument we got. We use all the common list separators.
7610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7611 for pkg in $enableval; do
7612 IFS="$lt_save_ifs"
7613 if test "X$pkg" = "X$p"; then
7614 enable_static=yes
7615 fi
7616 done
7617 IFS="$lt_save_ifs"
b9668ba4 7618 ;;
5c706339
AK
7619 esac
7620else
7621 enable_static=yes
7622fi
b9668ba4 7623
b9668ba4 7624
b9668ba4 7625
b9668ba4 7626
b9668ba4 7627
b9668ba4 7628
b9668ba4 7629
b9668ba4 7630
b9668ba4 7631
b9668ba4 7632
5c706339 7633# Check whether --with-pic was given.
0fbeb4dc 7634if test "${with_pic+set}" = set; then :
059850b5
AK
7635 withval=$with_pic; lt_p=${PACKAGE-default}
7636 case $withval in
7637 yes|no) pic_mode=$withval ;;
7638 *)
7639 pic_mode=default
7640 # Look at the argument we got. We use all the common list separators.
7641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7642 for lt_pkg in $withval; do
7643 IFS="$lt_save_ifs"
7644 if test "X$lt_pkg" = "X$lt_p"; then
7645 pic_mode=yes
7646 fi
7647 done
7648 IFS="$lt_save_ifs"
7649 ;;
7650 esac
5c706339
AK
7651else
7652 pic_mode=default
7653fi
b9668ba4 7654
b9668ba4 7655
5c706339 7656test -z "$pic_mode" && pic_mode=default
b9668ba4 7657
b9668ba4 7658
b9668ba4 7659
b9668ba4 7660
b9668ba4 7661
b9668ba4 7662
b9668ba4 7663
5c706339 7664 # Check whether --enable-fast-install was given.
0fbeb4dc 7665if test "${enable_fast_install+set}" = set; then :
5c706339
AK
7666 enableval=$enable_fast_install; p=${PACKAGE-default}
7667 case $enableval in
7668 yes) enable_fast_install=yes ;;
7669 no) enable_fast_install=no ;;
7670 *)
7671 enable_fast_install=no
7672 # Look at the argument we got. We use all the common list separators.
7673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7674 for pkg in $enableval; do
7675 IFS="$lt_save_ifs"
7676 if test "X$pkg" = "X$p"; then
7677 enable_fast_install=yes
7678 fi
7679 done
7680 IFS="$lt_save_ifs"
b9668ba4 7681 ;;
5c706339
AK
7682 esac
7683else
7684 enable_fast_install=yes
7685fi
b9668ba4 7686
b9668ba4 7687
b9668ba4 7688
b9668ba4 7689
b9668ba4 7690
b9668ba4 7691
b9668ba4 7692
b9668ba4 7693
b9668ba4 7694
b9668ba4 7695
b9668ba4 7696
5c706339
AK
7697# This can be used to rebuild libtool when needed
7698LIBTOOL_DEPS="$ltmain"
b9668ba4 7699
5c706339
AK
7700# Always use our own libtool.
7701LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b9668ba4 7702
5c706339
AK
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
059850b5
AK
7721
7722
7723
7724
7725
5c706339
AK
7726
7727
7728
7729
7730
7731
7732test -z "$LN_S" && LN_S="ln -s"
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747if test -n "${ZSH_VERSION+set}" ; then
7748 setopt NO_GLOB_SUBST
7749fi
7750
0fbeb4dc 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
47dc80f6 7752$as_echo_n "checking for objdir... " >&6; }
059850b5 7753if ${lt_cv_objdir+:} false; then :
47dc80f6 7754 $as_echo_n "(cached) " >&6
b9668ba4 7755else
5c706339
AK
7756 rm -f .libs 2>/dev/null
7757mkdir .libs 2>/dev/null
7758if test -d .libs; then
7759 lt_cv_objdir=.libs
7760else
7761 # MS-DOS does not allow filenames that begin with a dot.
7762 lt_cv_objdir=_libs
b9668ba4 7763fi
5c706339
AK
7764rmdir .libs 2>/dev/null
7765fi
0fbeb4dc 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
47dc80f6 7767$as_echo "$lt_cv_objdir" >&6; }
5c706339 7768objdir=$lt_cv_objdir
b9668ba4 7769
b9668ba4 7770
b9668ba4 7771
b9668ba4 7772
b9668ba4 7773
5c706339
AK
7774cat >>confdefs.h <<_ACEOF
7775#define LT_OBJDIR "$lt_cv_objdir/"
7776_ACEOF
b9668ba4 7777
b9668ba4 7778
b9668ba4 7779
b9668ba4 7780
5c706339
AK
7781case $host_os in
7782aix3*)
7783 # AIX sometimes has problems with the GCC collect2 program. For some
7784 # reason, if we set the COLLECT_NAMES environment variable, the problems
7785 # vanish in a puff of smoke.
7786 if test "X${COLLECT_NAMES+set}" != Xset; then
7787 COLLECT_NAMES=
7788 export COLLECT_NAMES
b9668ba4 7789 fi
b9668ba4 7790 ;;
5c706339 7791esac
b9668ba4 7792
5c706339
AK
7793# Global variables:
7794ofile=libtool
7795can_build_shared=yes
b9668ba4 7796
5c706339
AK
7797# All known linkers require a `.a' archive for static linking (except MSVC,
7798# which needs '.lib').
7799libext=a
b9668ba4 7800
5c706339 7801with_gnu_ld="$lt_cv_prog_gnu_ld"
b9668ba4 7802
5c706339
AK
7803old_CC="$CC"
7804old_CFLAGS="$CFLAGS"
b9668ba4 7805
5c706339
AK
7806# Set sane defaults for various variables
7807test -z "$CC" && CC=cc
7808test -z "$LTCC" && LTCC=$CC
7809test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7810test -z "$LD" && LD=ld
7811test -z "$ac_objext" && ac_objext=o
b9668ba4 7812
5c706339
AK
7813for cc_temp in $compiler""; do
7814 case $cc_temp in
7815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7817 \-*) ;;
7818 *) break;;
7819 esac
7820done
059850b5 7821cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
b9668ba4 7822
b9668ba4 7823
5c706339
AK
7824# Only perform the check for file, if the check method requires it
7825test -z "$MAGIC_CMD" && MAGIC_CMD=file
7826case $deplibs_check_method in
7827file_magic*)
7828 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
0fbeb4dc 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
47dc80f6 7830$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
059850b5 7831if ${lt_cv_path_MAGIC_CMD+:} false; then :
47dc80f6 7832 $as_echo_n "(cached) " >&6
5c706339
AK
7833else
7834 case $MAGIC_CMD in
7835[\\/*] | ?:[\\/]*)
7836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7837 ;;
5c706339
AK
7838*)
7839 lt_save_MAGIC_CMD="$MAGIC_CMD"
7840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7842 for ac_dir in $ac_dummy; do
7843 IFS="$lt_save_ifs"
7844 test -z "$ac_dir" && ac_dir=.
7845 if test -f $ac_dir/${ac_tool_prefix}file; then
7846 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7847 if test -n "$file_magic_test_file"; then
7848 case $deplibs_check_method in
7849 "file_magic "*)
7850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7853 $EGREP "$file_magic_regex" > /dev/null; then
7854 :
7855 else
7856 cat <<_LT_EOF 1>&2
b9668ba4 7857
5c706339
AK
7858*** Warning: the command libtool uses to detect shared libraries,
7859*** $file_magic_cmd, produces output that libtool cannot recognize.
7860*** The result is that libtool may fail to recognize shared libraries
7861*** as such. This will affect the creation of libtool libraries that
7862*** depend on shared libraries, but programs linked with such libtool
7863*** libraries will work regardless of this problem. Nevertheless, you
7864*** may want to report the problem to your system manager and/or to
7865*** bug-libtool@gnu.org
7866
7867_LT_EOF
7868 fi ;;
7869 esac
7870 fi
7871 break
7872 fi
7873 done
7874 IFS="$lt_save_ifs"
7875 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4 7876 ;;
5c706339
AK
7877esac
7878fi
b9668ba4 7879
5c706339
AK
7880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7881if test -n "$MAGIC_CMD"; then
0fbeb4dc 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
47dc80f6 7883$as_echo "$MAGIC_CMD" >&6; }
5c706339 7884else
0fbeb4dc 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7886$as_echo "no" >&6; }
5c706339 7887fi
b9668ba4 7888
b9668ba4 7889
b9668ba4 7890
b9668ba4 7891
b9668ba4 7892
5c706339
AK
7893if test -z "$lt_cv_path_MAGIC_CMD"; then
7894 if test -n "$ac_tool_prefix"; then
0fbeb4dc 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
47dc80f6 7896$as_echo_n "checking for file... " >&6; }
059850b5 7897if ${lt_cv_path_MAGIC_CMD+:} false; then :
47dc80f6 7898 $as_echo_n "(cached) " >&6
5c706339
AK
7899else
7900 case $MAGIC_CMD in
7901[\\/*] | ?:[\\/]*)
7902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7903 ;;
5c706339
AK
7904*)
7905 lt_save_MAGIC_CMD="$MAGIC_CMD"
7906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7908 for ac_dir in $ac_dummy; do
7909 IFS="$lt_save_ifs"
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/file; then
7912 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7913 if test -n "$file_magic_test_file"; then
7914 case $deplibs_check_method in
7915 "file_magic "*)
7916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7919 $EGREP "$file_magic_regex" > /dev/null; then
7920 :
7921 else
7922 cat <<_LT_EOF 1>&2
b9668ba4 7923
5c706339
AK
7924*** Warning: the command libtool uses to detect shared libraries,
7925*** $file_magic_cmd, produces output that libtool cannot recognize.
7926*** The result is that libtool may fail to recognize shared libraries
7927*** as such. This will affect the creation of libtool libraries that
7928*** depend on shared libraries, but programs linked with such libtool
7929*** libraries will work regardless of this problem. Nevertheless, you
7930*** may want to report the problem to your system manager and/or to
7931*** bug-libtool@gnu.org
b9668ba4 7932
5c706339
AK
7933_LT_EOF
7934 fi ;;
7935 esac
7936 fi
7937 break
7938 fi
7939 done
7940 IFS="$lt_save_ifs"
7941 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4
AK
7942 ;;
7943esac
5c706339 7944fi
b9668ba4 7945
5c706339
AK
7946MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947if test -n "$MAGIC_CMD"; then
0fbeb4dc 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
47dc80f6 7949$as_echo "$MAGIC_CMD" >&6; }
5c706339 7950else
0fbeb4dc 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 7952$as_echo "no" >&6; }
b9668ba4
AK
7953fi
7954
b9668ba4 7955
b9668ba4 7956 else
5c706339 7957 MAGIC_CMD=:
b9668ba4 7958 fi
b9668ba4
AK
7959fi
7960
5c706339
AK
7961 fi
7962 ;;
7963esac
b9668ba4 7964
5c706339 7965# Use C for the default configuration in the libtool script
b9668ba4 7966
5c706339
AK
7967lt_save_CC="$CC"
7968ac_ext=c
7969ac_cpp='$CPP $CPPFLAGS'
7970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 7973
b9668ba4 7974
5c706339
AK
7975# Source file extension for C test sources.
7976ac_ext=c
b9668ba4 7977
5c706339
AK
7978# Object file extension for compiled C test sources.
7979objext=o
7980objext=$objext
b9668ba4 7981
5c706339
AK
7982# Code to be used in simple compile tests
7983lt_simple_compile_test_code="int some_variable = 0;"
b9668ba4 7984
5c706339
AK
7985# Code to be used in simple link tests
7986lt_simple_link_test_code='int main(){return(0);}'
b9668ba4 7987
b9668ba4 7988
b9668ba4 7989
b9668ba4 7990
b9668ba4 7991
b9668ba4 7992
b9668ba4 7993
5c706339
AK
7994# If no C compiler was specified, use CC.
7995LTCC=${LTCC-"$CC"}
b9668ba4 7996
5c706339
AK
7997# If no C compiler flags were specified, use CFLAGS.
7998LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 7999
5c706339
AK
8000# Allow CC to be a program name with arguments.
8001compiler=$CC
b9668ba4 8002
5c706339
AK
8003# Save the default compiler, since it gets overwritten when the other
8004# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8005compiler_DEFAULT=$CC
b9668ba4 8006
5c706339
AK
8007# save warnings/boilerplate of simple test code
8008ac_outfile=conftest.$ac_objext
8009echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8010eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8011_lt_compiler_boilerplate=`cat conftest.err`
8012$RM conftest*
b9668ba4 8013
5c706339
AK
8014ac_outfile=conftest.$ac_objext
8015echo "$lt_simple_link_test_code" >conftest.$ac_ext
8016eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8017_lt_linker_boilerplate=`cat conftest.err`
8018$RM -r conftest*
b9668ba4 8019
b9668ba4 8020
5c706339 8021if test -n "$compiler"; then
b9668ba4 8022
5c706339
AK
8023lt_prog_compiler_no_builtin_flag=
8024
8025if test "$GCC" = yes; then
059850b5
AK
8026 case $cc_basename in
8027 nvcc*)
8028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8029 *)
8030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8031 esac
5c706339 8032
0fbeb4dc 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47dc80f6 8034$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
059850b5 8035if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
47dc80f6 8036 $as_echo_n "(cached) " >&6
b9668ba4 8037else
5c706339
AK
8038 lt_cv_prog_compiler_rtti_exceptions=no
8039 ac_outfile=conftest.$ac_objext
8040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8041 lt_compiler_flag="-fno-rtti -fno-exceptions"
8042 # Insert the option either (1) after the last *FLAGS variable, or
8043 # (2) before a word containing "conftest.", or (3) at the end.
8044 # Note that $ac_compile itself does not contain backslashes and begins
8045 # with a dollar sign (not a hyphen), so the echo should work correctly.
8046 # The option is referenced via a variable to avoid confusing sed.
8047 lt_compile=`echo "$ac_compile" | $SED \
8048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050 -e 's:$: $lt_compiler_flag:'`
059850b5 8051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8052 (eval "$lt_compile" 2>conftest.err)
8053 ac_status=$?
8054 cat conftest.err >&5
059850b5 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8056 if (exit $ac_status) && test -s "$ac_outfile"; then
8057 # The compiler can only warn and ignore the option if not recognized
8058 # So say no if there are warnings other than the usual output.
059850b5 8059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5c706339
AK
8060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8062 lt_cv_prog_compiler_rtti_exceptions=yes
8063 fi
8064 fi
8065 $RM conftest*
b9668ba4 8066
5c706339 8067fi
0fbeb4dc 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47dc80f6 8069$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b9668ba4 8070
5c706339
AK
8071if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8073else
8074 :
8075fi
b9668ba4 8076
5c706339 8077fi
b9668ba4 8078
b9668ba4 8079
b9668ba4 8080
b9668ba4 8081
b9668ba4 8082
b9668ba4 8083
5c706339
AK
8084 lt_prog_compiler_wl=
8085lt_prog_compiler_pic=
8086lt_prog_compiler_static=
b9668ba4 8087
b9668ba4 8088
5c706339
AK
8089 if test "$GCC" = yes; then
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_static='-static'
b9668ba4 8092
5c706339
AK
8093 case $host_os in
8094 aix*)
8095 # All AIX code is PIC.
8096 if test "$host_cpu" = ia64; then
8097 # AIX 5 now supports IA64 processor
8098 lt_prog_compiler_static='-Bstatic'
8099 fi
8100 ;;
b9668ba4 8101
5c706339
AK
8102 amigaos*)
8103 case $host_cpu in
8104 powerpc)
8105 # see comment about AmigaOS4 .so support
8106 lt_prog_compiler_pic='-fPIC'
8107 ;;
8108 m68k)
8109 # FIXME: we need at least 68020 code to build shared libraries, but
8110 # adding the `-m68020' flag to GCC prevents building anything better,
8111 # like `-m68040'.
8112 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8113 ;;
8114 esac
8115 ;;
b9668ba4 8116
5c706339
AK
8117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8118 # PIC is the default for these OSes.
8119 ;;
b9668ba4 8120
47dc80f6 8121 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
8122 # This hack is so that the source file can tell whether it is being
8123 # built for inclusion in a dll (and should export symbols for example).
8124 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8125 # (--disable-auto-import) libraries
8126 lt_prog_compiler_pic='-DDLL_EXPORT'
8127 ;;
b9668ba4 8128
5c706339
AK
8129 darwin* | rhapsody*)
8130 # PIC is the default on this platform
8131 # Common symbols not allowed in MH_DYLIB files
8132 lt_prog_compiler_pic='-fno-common'
8133 ;;
b9668ba4 8134
059850b5
AK
8135 haiku*)
8136 # PIC is the default for Haiku.
8137 # The "-static" flag exists, but is broken.
8138 lt_prog_compiler_static=
8139 ;;
8140
5c706339 8141 hpux*)
47dc80f6
AK
8142 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8143 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8144 # sets the default TLS model and affects inlining.
5c706339 8145 case $host_cpu in
47dc80f6 8146 hppa*64*)
5c706339
AK
8147 # +Z the default
8148 ;;
8149 *)
8150 lt_prog_compiler_pic='-fPIC'
8151 ;;
8152 esac
8153 ;;
b9668ba4 8154
5c706339
AK
8155 interix[3-9]*)
8156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8157 # Instead, we relocate shared libraries at runtime.
8158 ;;
b9668ba4 8159
5c706339
AK
8160 msdosdjgpp*)
8161 # Just because we use GCC doesn't mean we suddenly get shared libraries
8162 # on systems that don't support them.
8163 lt_prog_compiler_can_build_shared=no
8164 enable_shared=no
8165 ;;
b9668ba4 8166
5c706339
AK
8167 *nto* | *qnx*)
8168 # QNX uses GNU C++, but need to define -shared option too, otherwise
8169 # it will coredump.
8170 lt_prog_compiler_pic='-fPIC -shared'
8171 ;;
b9668ba4 8172
5c706339
AK
8173 sysv4*MP*)
8174 if test -d /usr/nec; then
8175 lt_prog_compiler_pic=-Kconform_pic
8176 fi
8177 ;;
b9668ba4 8178
5c706339
AK
8179 *)
8180 lt_prog_compiler_pic='-fPIC'
8181 ;;
8182 esac
059850b5
AK
8183
8184 case $cc_basename in
8185 nvcc*) # Cuda Compiler Driver 2.2
8186 lt_prog_compiler_wl='-Xlinker '
8187 if test -n "$lt_prog_compiler_pic"; then
8188 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8189 fi
8190 ;;
8191 esac
5c706339
AK
8192 else
8193 # PORTME Check for flag to pass linker flags through the system compiler.
8194 case $host_os in
8195 aix*)
8196 lt_prog_compiler_wl='-Wl,'
8197 if test "$host_cpu" = ia64; then
8198 # AIX 5 now supports IA64 processor
8199 lt_prog_compiler_static='-Bstatic'
8200 else
8201 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8202 fi
8203 ;;
b9668ba4 8204
47dc80f6 8205 mingw* | cygwin* | pw32* | os2* | cegcc*)
5c706339
AK
8206 # This hack is so that the source file can tell whether it is being
8207 # built for inclusion in a dll (and should export symbols for example).
8208 lt_prog_compiler_pic='-DDLL_EXPORT'
8209 ;;
b9668ba4 8210
5c706339
AK
8211 hpux9* | hpux10* | hpux11*)
8212 lt_prog_compiler_wl='-Wl,'
8213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8214 # not for PA HP-UX.
8215 case $host_cpu in
8216 hppa*64*|ia64*)
8217 # +Z the default
8218 ;;
8219 *)
8220 lt_prog_compiler_pic='+Z'
8221 ;;
8222 esac
8223 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8224 lt_prog_compiler_static='${wl}-a ${wl}archive'
8225 ;;
b9668ba4 8226
5c706339
AK
8227 irix5* | irix6* | nonstopux*)
8228 lt_prog_compiler_wl='-Wl,'
8229 # PIC (with -KPIC) is the default.
8230 lt_prog_compiler_static='-non_shared'
8231 ;;
b9668ba4 8232
0044e680 8233 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5c706339 8234 case $cc_basename in
47dc80f6
AK
8235 # old Intel for x86_64 which still supported -KPIC.
8236 ecc*)
5c706339
AK
8237 lt_prog_compiler_wl='-Wl,'
8238 lt_prog_compiler_pic='-KPIC'
8239 lt_prog_compiler_static='-static'
8240 ;;
47dc80f6
AK
8241 # icc used to be incompatible with GCC.
8242 # ICC 10 doesn't accept -KPIC any more.
8243 icc* | ifort*)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-fPIC'
8246 lt_prog_compiler_static='-static'
8247 ;;
8248 # Lahey Fortran 8.1.
8249 lf95*)
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_pic='--shared'
8252 lt_prog_compiler_static='--static'
8253 ;;
059850b5
AK
8254 nagfor*)
8255 # NAG Fortran compiler
8256 lt_prog_compiler_wl='-Wl,-Wl,,'
8257 lt_prog_compiler_pic='-PIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 ;;
8260 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5c706339
AK
8261 # Portland Group compilers (*not* the Pentium gcc compiler,
8262 # which looks to be a dead project)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-fpic'
8265 lt_prog_compiler_static='-Bstatic'
8266 ;;
8267 ccc*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # All Alpha code is PIC.
8270 lt_prog_compiler_static='-non_shared'
8271 ;;
059850b5
AK
8272 xl* | bgxl* | bgf* | mpixl*)
8273 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5c706339
AK
8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='-qpic'
8276 lt_prog_compiler_static='-qstaticlink'
8277 ;;
8278 *)
8279 case `$CC -V 2>&1 | sed 5q` in
059850b5
AK
8280 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8281 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8282 lt_prog_compiler_pic='-KPIC'
8283 lt_prog_compiler_static='-Bstatic'
8284 lt_prog_compiler_wl=''
8285 ;;
8286 *Sun\ F* | *Sun*Fortran*)
8287 lt_prog_compiler_pic='-KPIC'
8288 lt_prog_compiler_static='-Bstatic'
8289 lt_prog_compiler_wl='-Qoption ld '
8290 ;;
5c706339
AK
8291 *Sun\ C*)
8292 # Sun C 5.9
8293 lt_prog_compiler_pic='-KPIC'
8294 lt_prog_compiler_static='-Bstatic'
8295 lt_prog_compiler_wl='-Wl,'
8296 ;;
059850b5
AK
8297 *Intel*\ [CF]*Compiler*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-fPIC'
8300 lt_prog_compiler_static='-static'
8301 ;;
8302 *Portland\ Group*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fpic'
5c706339 8305 lt_prog_compiler_static='-Bstatic'
5c706339
AK
8306 ;;
8307 esac
8308 ;;
8309 esac
8310 ;;
b9668ba4 8311
5c706339
AK
8312 newsos6)
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 ;;
b9668ba4 8316
5c706339
AK
8317 *nto* | *qnx*)
8318 # QNX uses GNU C++, but need to define -shared option too, otherwise
8319 # it will coredump.
8320 lt_prog_compiler_pic='-fPIC -shared'
8321 ;;
b9668ba4 8322
5c706339
AK
8323 osf3* | osf4* | osf5*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # All OSF/1 code is PIC.
8326 lt_prog_compiler_static='-non_shared'
8327 ;;
b9668ba4 8328
5c706339
AK
8329 rdos*)
8330 lt_prog_compiler_static='-non_shared'
8331 ;;
b9668ba4 8332
5c706339
AK
8333 solaris*)
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 case $cc_basename in
059850b5 8337 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5c706339
AK
8338 lt_prog_compiler_wl='-Qoption ld ';;
8339 *)
8340 lt_prog_compiler_wl='-Wl,';;
8341 esac
8342 ;;
b9668ba4 8343
5c706339
AK
8344 sunos4*)
8345 lt_prog_compiler_wl='-Qoption ld '
8346 lt_prog_compiler_pic='-PIC'
8347 lt_prog_compiler_static='-Bstatic'
8348 ;;
b9668ba4 8349
5c706339
AK
8350 sysv4 | sysv4.2uw2* | sysv4.3*)
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8354 ;;
b9668ba4 8355
5c706339
AK
8356 sysv4*MP*)
8357 if test -d /usr/nec ;then
8358 lt_prog_compiler_pic='-Kconform_pic'
8359 lt_prog_compiler_static='-Bstatic'
8360 fi
8361 ;;
b9668ba4 8362
5c706339
AK
8363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8364 lt_prog_compiler_wl='-Wl,'
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 ;;
b9668ba4 8368
5c706339
AK
8369 unicos*)
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_can_build_shared=no
8372 ;;
b9668ba4 8373
5c706339
AK
8374 uts4*)
8375 lt_prog_compiler_pic='-pic'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
b9668ba4 8378
5c706339
AK
8379 *)
8380 lt_prog_compiler_can_build_shared=no
8381 ;;
b9668ba4 8382 esac
b9668ba4 8383 fi
b9668ba4 8384
5c706339
AK
8385case $host_os in
8386 # For platforms which do not support PIC, -DPIC is meaningless:
8387 *djgpp*)
8388 lt_prog_compiler_pic=
8389 ;;
8390 *)
8391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8392 ;;
8393esac
b9668ba4 8394
059850b5
AK
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8396$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8397if ${lt_cv_prog_compiler_pic+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399else
8400 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8403$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8404lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
b9668ba4 8405
5c706339
AK
8406#
8407# Check to make sure the PIC flag actually works.
8408#
8409if test -n "$lt_prog_compiler_pic"; then
0fbeb4dc 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
47dc80f6 8411$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
059850b5 8412if ${lt_cv_prog_compiler_pic_works+:} false; then :
47dc80f6 8413 $as_echo_n "(cached) " >&6
5c706339
AK
8414else
8415 lt_cv_prog_compiler_pic_works=no
8416 ac_outfile=conftest.$ac_objext
8417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8419 # Insert the option either (1) after the last *FLAGS variable, or
8420 # (2) before a word containing "conftest.", or (3) at the end.
8421 # Note that $ac_compile itself does not contain backslashes and begins
8422 # with a dollar sign (not a hyphen), so the echo should work correctly.
8423 # The option is referenced via a variable to avoid confusing sed.
8424 lt_compile=`echo "$ac_compile" | $SED \
8425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8427 -e 's:$: $lt_compiler_flag:'`
059850b5 8428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8429 (eval "$lt_compile" 2>conftest.err)
8430 ac_status=$?
8431 cat conftest.err >&5
059850b5 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8433 if (exit $ac_status) && test -s "$ac_outfile"; then
8434 # The compiler can only warn and ignore the option if not recognized
8435 # So say no if there are warnings other than the usual output.
059850b5 8436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5c706339
AK
8437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8439 lt_cv_prog_compiler_pic_works=yes
8440 fi
8441 fi
8442 $RM conftest*
b9668ba4 8443
b9668ba4 8444fi
0fbeb4dc 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
47dc80f6 8446$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
b9668ba4 8447
5c706339
AK
8448if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8449 case $lt_prog_compiler_pic in
8450 "" | " "*) ;;
8451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8452 esac
8453else
8454 lt_prog_compiler_pic=
8455 lt_prog_compiler_can_build_shared=no
8456fi
b9668ba4
AK
8457
8458fi
b9668ba4 8459
b9668ba4 8460
b9668ba4 8461
b9668ba4
AK
8462
8463
b9668ba4 8464
059850b5
AK
8465
8466
8467
8468
8469
5c706339
AK
8470#
8471# Check to make sure the static flag actually works.
8472#
8473wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
0fbeb4dc 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
47dc80f6 8475$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
059850b5 8476if ${lt_cv_prog_compiler_static_works+:} false; then :
47dc80f6 8477 $as_echo_n "(cached) " >&6
5c706339
AK
8478else
8479 lt_cv_prog_compiler_static_works=no
8480 save_LDFLAGS="$LDFLAGS"
8481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8482 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484 # The linker can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 if test -s conftest.err; then
8487 # Append any errors to the config.log.
8488 cat conftest.err 1>&5
059850b5 8489 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
5c706339
AK
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_static_works=yes
8493 fi
8494 else
8495 lt_cv_prog_compiler_static_works=yes
8496 fi
8497 fi
8498 $RM -r conftest*
8499 LDFLAGS="$save_LDFLAGS"
b9668ba4 8500
5c706339 8501fi
0fbeb4dc 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
47dc80f6 8503$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b9668ba4 8504
5c706339
AK
8505if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8506 :
8507else
8508 lt_prog_compiler_static=
8509fi
b9668ba4 8510
b9668ba4 8511
b9668ba4 8512
b9668ba4 8513
b9668ba4 8514
b9668ba4 8515
b9668ba4 8516
0fbeb4dc 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
47dc80f6 8518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
059850b5 8519if ${lt_cv_prog_compiler_c_o+:} false; then :
47dc80f6 8520 $as_echo_n "(cached) " >&6
5c706339
AK
8521else
8522 lt_cv_prog_compiler_c_o=no
8523 $RM -r conftest 2>/dev/null
8524 mkdir conftest
8525 cd conftest
8526 mkdir out
8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 8528
5c706339
AK
8529 lt_compiler_flag="-o out/conftest2.$ac_objext"
8530 # Insert the option either (1) after the last *FLAGS variable, or
8531 # (2) before a word containing "conftest.", or (3) at the end.
8532 # Note that $ac_compile itself does not contain backslashes and begins
8533 # with a dollar sign (not a hyphen), so the echo should work correctly.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
059850b5 8538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8539 (eval "$lt_compile" 2>out/conftest.err)
8540 ac_status=$?
8541 cat out/conftest.err >&5
059850b5 8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8544 then
8545 # The compiler can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
059850b5 8547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5c706339
AK
8548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8550 lt_cv_prog_compiler_c_o=yes
8551 fi
8552 fi
8553 chmod u+w . 2>&5
8554 $RM conftest*
8555 # SGI C++ compiler will create directory out/ii_files/ for
8556 # template instantiation
8557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8558 $RM out/* && rmdir out
8559 cd ..
8560 $RM -r conftest
8561 $RM conftest*
b9668ba4 8562
5c706339 8563fi
0fbeb4dc 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
47dc80f6 8565$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8566
b9668ba4 8567
b9668ba4 8568
b9668ba4 8569
b9668ba4 8570
b9668ba4 8571
0fbeb4dc 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
47dc80f6 8573$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
059850b5 8574if ${lt_cv_prog_compiler_c_o+:} false; then :
47dc80f6 8575 $as_echo_n "(cached) " >&6
5c706339
AK
8576else
8577 lt_cv_prog_compiler_c_o=no
8578 $RM -r conftest 2>/dev/null
8579 mkdir conftest
8580 cd conftest
8581 mkdir out
8582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 8583
5c706339
AK
8584 lt_compiler_flag="-o out/conftest2.$ac_objext"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 lt_compile=`echo "$ac_compile" | $SED \
8590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
059850b5 8593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5c706339
AK
8594 (eval "$lt_compile" 2>out/conftest.err)
8595 ac_status=$?
8596 cat out/conftest.err >&5
059850b5 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5c706339
AK
8598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8599 then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings
059850b5 8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5c706339
AK
8603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_c_o=yes
8606 fi
8607 fi
8608 chmod u+w . 2>&5
8609 $RM conftest*
8610 # SGI C++ compiler will create directory out/ii_files/ for
8611 # template instantiation
8612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8613 $RM out/* && rmdir out
8614 cd ..
8615 $RM -r conftest
8616 $RM conftest*
b9668ba4 8617
5c706339 8618fi
0fbeb4dc 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
47dc80f6 8620$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 8621
b9668ba4 8622
b9668ba4 8623
b9668ba4 8624
5c706339
AK
8625hard_links="nottested"
8626if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8627 # do not overwrite the value of need_locks provided by the user
0fbeb4dc 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
47dc80f6 8629$as_echo_n "checking if we can lock with hard links... " >&6; }
5c706339
AK
8630 hard_links=yes
8631 $RM conftest*
8632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8633 touch conftest.a
8634 ln conftest.a conftest.b 2>&5 || hard_links=no
8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
0fbeb4dc 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
47dc80f6 8637$as_echo "$hard_links" >&6; }
5c706339 8638 if test "$hard_links" = no; then
0fbeb4dc 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
47dc80f6 8640$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5c706339
AK
8641 need_locks=warn
8642 fi
8643else
8644 need_locks=no
8645fi
b9668ba4 8646
b9668ba4 8647
b9668ba4 8648
b9668ba4 8649
b9668ba4 8650
b9668ba4 8651
0fbeb4dc 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47dc80f6 8653$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b9668ba4 8654
5c706339
AK
8655 runpath_var=
8656 allow_undefined_flag=
8657 always_export_symbols=no
8658 archive_cmds=
8659 archive_expsym_cmds=
8660 compiler_needs_object=no
8661 enable_shared_with_static_runtimes=no
8662 export_dynamic_flag_spec=
8663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8664 hardcode_automatic=no
8665 hardcode_direct=no
8666 hardcode_direct_absolute=no
8667 hardcode_libdir_flag_spec=
5c706339
AK
8668 hardcode_libdir_separator=
8669 hardcode_minus_L=no
8670 hardcode_shlibpath_var=unsupported
8671 inherit_rpath=no
8672 link_all_deplibs=unknown
8673 module_cmds=
8674 module_expsym_cmds=
8675 old_archive_from_new_cmds=
8676 old_archive_from_expsyms_cmds=
8677 thread_safe_flag_spec=
8678 whole_archive_flag_spec=
8679 # include_expsyms should be a list of space-separated symbols to be *always*
8680 # included in the symbol list
8681 include_expsyms=
8682 # exclude_expsyms can be an extended regexp of symbols to exclude
8683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8685 # as well as any symbol that contains `d'.
8686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8688 # platforms (ab)use it in PIC code, but their linkers get confused if
8689 # the symbol is explicitly referenced. Since portable code cannot
8690 # rely on this symbol name, it's probably fine to never include it in
8691 # preloaded symbol tables.
8692 # Exclude shared library initialization/finalization symbols.
8693 extract_expsyms_cmds=
b9668ba4 8694
5c706339 8695 case $host_os in
47dc80f6 8696 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8698 # When not using gcc, we currently assume that we are using
8699 # Microsoft Visual C++.
8700 if test "$GCC" != yes; then
8701 with_gnu_ld=no
8702 fi
8703 ;;
8704 interix*)
8705 # we just hope/assume this is gcc and not c89 (= MSVC++)
8706 with_gnu_ld=yes
8707 ;;
8708 openbsd*)
8709 with_gnu_ld=no
8710 ;;
059850b5 8711 linux* | k*bsd*-gnu | gnu*)
0fbeb4dc
AK
8712 link_all_deplibs=no
8713 ;;
5c706339 8714 esac
b9668ba4 8715
5c706339 8716 ld_shlibs=yes
059850b5
AK
8717
8718 # On some targets, GNU ld is compatible enough with the native linker
8719 # that we're better off using the native interface for both.
8720 lt_use_gnu_ld_interface=no
5c706339 8721 if test "$with_gnu_ld" = yes; then
059850b5
AK
8722 case $host_os in
8723 aix*)
8724 # The AIX port of GNU ld has always aspired to compatibility
8725 # with the native linker. However, as the warning in the GNU ld
8726 # block says, versions before 2.19.5* couldn't really create working
8727 # shared libraries, regardless of the interface used.
8728 case `$LD -v 2>&1` in
8729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8732 *)
8733 lt_use_gnu_ld_interface=yes
8734 ;;
8735 esac
8736 ;;
8737 *)
8738 lt_use_gnu_ld_interface=yes
8739 ;;
8740 esac
8741 fi
8742
8743 if test "$lt_use_gnu_ld_interface" = yes; then
5c706339
AK
8744 # If archive_cmds runs LD, not CC, wlarc should be empty
8745 wlarc='${wl}'
b9668ba4 8746
5c706339
AK
8747 # Set some defaults for GNU ld with shared library support. These
8748 # are reset later if shared libraries are not supported. Putting them
8749 # here allows them to be overridden if necessary.
8750 runpath_var=LD_RUN_PATH
8751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752 export_dynamic_flag_spec='${wl}--export-dynamic'
8753 # ancient GNU ld didn't support --whole-archive et. al.
8754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8756 else
8757 whole_archive_flag_spec=
8758 fi
8759 supports_anon_versioning=no
8760 case `$LD -v 2>&1` in
0fbeb4dc 8761 *GNU\ gold*) supports_anon_versioning=yes ;;
5c706339
AK
8762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8765 *\ 2.11.*) ;; # other 2.11 versions
8766 *) supports_anon_versioning=yes ;;
8767 esac
b9668ba4 8768
5c706339
AK
8769 # See if GNU ld supports shared libraries.
8770 case $host_os in
8771 aix[3-9]*)
8772 # On AIX/PPC, the GNU linker is very broken
8773 if test "$host_cpu" != ia64; then
8774 ld_shlibs=no
8775 cat <<_LT_EOF 1>&2
b9668ba4 8776
059850b5 8777*** Warning: the GNU linker, at least up to release 2.19, is reported
5c706339
AK
8778*** to be unable to reliably create shared libraries on AIX.
8779*** Therefore, libtool is disabling shared libraries support. If you
059850b5
AK
8780*** really care for shared libraries, you may want to install binutils
8781*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8782*** You will then need to restart the configuration process.
b9668ba4 8783
5c706339
AK
8784_LT_EOF
8785 fi
8786 ;;
b9668ba4 8787
5c706339
AK
8788 amigaos*)
8789 case $host_cpu in
8790 powerpc)
8791 # see comment about AmigaOS4 .so support
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds=''
8794 ;;
8795 m68k)
8796 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)'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_minus_L=yes
8799 ;;
8800 esac
8801 ;;
b9668ba4 8802
5c706339
AK
8803 beos*)
8804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805 allow_undefined_flag=unsupported
8806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8807 # support --undefined. This deserves some investigation. FIXME
8808 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 else
8810 ld_shlibs=no
8811 fi
8812 ;;
b9668ba4 8813
47dc80f6 8814 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
8815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8816 # as there is no search path for DLLs.
8817 hardcode_libdir_flag_spec='-L$libdir'
059850b5 8818 export_dynamic_flag_spec='${wl}--export-all-symbols'
5c706339
AK
8819 allow_undefined_flag=unsupported
8820 always_export_symbols=no
8821 enable_shared_with_static_runtimes=yes
059850b5
AK
8822 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'
8823 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
b9668ba4 8824
5c706339
AK
8825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827 # If the export-symbols file already is a .def file (1st line
8828 # is EXPORTS), use it as is; otherwise, prepend...
8829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8830 cp $export_symbols $output_objdir/$soname.def;
8831 else
8832 echo EXPORTS > $output_objdir/$soname.def;
8833 cat $export_symbols >> $output_objdir/$soname.def;
8834 fi~
8835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
b9668ba4 8840
059850b5
AK
8841 haiku*)
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 link_all_deplibs=yes
8844 ;;
8845
5c706339
AK
8846 interix[3-9]*)
8847 hardcode_direct=no
8848 hardcode_shlibpath_var=no
8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8850 export_dynamic_flag_spec='${wl}-E'
8851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8852 # Instead, shared libraries are loaded at an image base (0x10000000 by
8853 # default) and relocated if they conflict, which is a slow very memory
8854 # consuming and fragmenting process. To avoid this, we pick a random,
8855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8858 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'
8859 ;;
b9668ba4 8860
0fbeb4dc 8861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5c706339
AK
8862 tmp_diet=no
8863 if test "$host_os" = linux-dietlibc; then
8864 case $cc_basename in
8865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8866 esac
8867 fi
8868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8869 && test "$tmp_diet" = no
8870 then
059850b5 8871 tmp_addflag=' $pic_flag'
5c706339
AK
8872 tmp_sharedflag='-shared'
8873 case $cc_basename,$host_cpu in
8874 pgcc*) # Portland Group C compiler
059850b5 8875 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'
5c706339
AK
8876 tmp_addflag=' $pic_flag'
8877 ;;
059850b5
AK
8878 pgf77* | pgf90* | pgf95* | pgfortran*)
8879 # Portland Group f77 and f90 compilers
8880 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'
5c706339
AK
8881 tmp_addflag=' $pic_flag -Mnomain' ;;
8882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8883 tmp_addflag=' -i_dynamic' ;;
8884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8885 tmp_addflag=' -i_dynamic -nofor_main' ;;
8886 ifc* | ifort*) # Intel Fortran compiler
8887 tmp_addflag=' -nofor_main' ;;
47dc80f6
AK
8888 lf95*) # Lahey Fortran 8.1
8889 whole_archive_flag_spec=
8890 tmp_sharedflag='--shared' ;;
059850b5 8891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5c706339
AK
8892 tmp_sharedflag='-qmkshrobj'
8893 tmp_addflag= ;;
059850b5
AK
8894 nvcc*) # Cuda Compiler Driver 2.2
8895 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'
8896 compiler_needs_object=yes
8897 ;;
5c706339
AK
8898 esac
8899 case `$CC -V 2>&1 | sed 5q` in
8900 *Sun\ C*) # Sun C 5.9
059850b5 8901 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'
5c706339
AK
8902 compiler_needs_object=yes
8903 tmp_sharedflag='-G' ;;
8904 *Sun\ F*) # Sun Fortran 8.3
8905 tmp_sharedflag='-G' ;;
8906 esac
8907 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b9668ba4 8908
5c706339
AK
8909 if test "x$supports_anon_versioning" = xyes; then
8910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8912 echo "local: *; };" >> $output_objdir/$libname.ver~
8913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8914 fi
b9668ba4 8915
5c706339 8916 case $cc_basename in
059850b5 8917 xlf* | bgf* | bgxlf* | mpixlf*)
5c706339
AK
8918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8919 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
059850b5
AK
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5c706339
AK
8922 if test "x$supports_anon_versioning" = xyes; then
8923 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8925 echo "local: *; };" >> $output_objdir/$libname.ver~
059850b5 8926 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5c706339
AK
8927 fi
8928 ;;
8929 esac
8930 else
8931 ld_shlibs=no
8932 fi
8933 ;;
b9668ba4 8934
5c706339
AK
8935 netbsd* | netbsdelf*-gnu)
8936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8937 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8938 wlarc=
8939 else
059850b5
AK
8940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
8942 fi
8943 ;;
b9668ba4 8944
5c706339
AK
8945 solaris*)
8946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8947 ld_shlibs=no
8948 cat <<_LT_EOF 1>&2
b9668ba4 8949
5c706339
AK
8950*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8951*** create shared libraries on Solaris systems. Therefore, libtool
8952*** is disabling shared libraries support. We urge you to upgrade GNU
8953*** binutils to release 2.9.1 or newer. Another option is to modify
8954*** your PATH or compiler configuration so that the native linker is
8955*** used, and then restart.
b9668ba4 8956
5c706339
AK
8957_LT_EOF
8958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
059850b5
AK
8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
8961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
b9668ba4 8965
5c706339
AK
8966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8967 case `$LD -v 2>&1` in
8968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8969 ld_shlibs=no
8970 cat <<_LT_EOF 1>&2
b9668ba4 8971
5c706339
AK
8972*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8973*** reliably create shared libraries on SCO systems. Therefore, libtool
8974*** is disabling shared libraries support. We urge you to upgrade GNU
8975*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8976*** your PATH or compiler configuration so that the native linker is
8977*** used, and then restart.
b9668ba4 8978
5c706339
AK
8979_LT_EOF
8980 ;;
8981 *)
8982 # For security reasons, it is highly recommended that you always
8983 # use absolute paths for naming shared libraries, and exclude the
8984 # DT_RUNPATH tag from executables and libraries. But doing so
8985 # requires that you compile everything twice, which is a pain.
8986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 else
8991 ld_shlibs=no
8992 fi
8993 ;;
8994 esac
8995 ;;
b9668ba4 8996
5c706339
AK
8997 sunos4*)
8998 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999 wlarc=
9000 hardcode_direct=yes
9001 hardcode_shlibpath_var=no
9002 ;;
b9668ba4 9003
5c706339
AK
9004 *)
9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
059850b5
AK
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5c706339
AK
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012 esac
b9668ba4 9013
5c706339
AK
9014 if test "$ld_shlibs" = no; then
9015 runpath_var=
9016 hardcode_libdir_flag_spec=
9017 export_dynamic_flag_spec=
9018 whole_archive_flag_spec=
9019 fi
9020 else
9021 # PORTME fill in a description of your system's linker (not GNU ld)
9022 case $host_os in
9023 aix3*)
9024 allow_undefined_flag=unsupported
9025 always_export_symbols=yes
9026 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'
9027 # Note: this linker hardcodes the directories in LIBPATH if there
9028 # are no directories specified by -L.
9029 hardcode_minus_L=yes
9030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9031 # Neither direct hardcoding nor static linking is supported with a
9032 # broken collect2.
9033 hardcode_direct=unsupported
9034 fi
9035 ;;
b9668ba4 9036
5c706339
AK
9037 aix[4-9]*)
9038 if test "$host_cpu" = ia64; then
9039 # On IA64, the linker does run time linking by default, so we don't
9040 # have to do anything special.
9041 aix_use_runtimelinking=no
9042 exp_sym_flag='-Bexport'
9043 no_entry_flag=""
9044 else
9045 # If we're using GNU nm, then we don't want the "-C" option.
9046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
059850b5
AK
9047 # Also, AIX nm treats weak defined symbols like other global
9048 # defined symbols, whereas GNU nm marks them as "W".
5c706339 9049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
059850b5 9050 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'
5c706339
AK
9051 else
9052 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'
9053 fi
9054 aix_use_runtimelinking=no
b9668ba4 9055
5c706339
AK
9056 # Test if we are trying to use run time linking or normal
9057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9058 # need to do runtime linking.
9059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9060 for ld_flag in $LDFLAGS; do
9061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9062 aix_use_runtimelinking=yes
9063 break
9064 fi
9065 done
9066 ;;
9067 esac
b9668ba4 9068
5c706339
AK
9069 exp_sym_flag='-bexport'
9070 no_entry_flag='-bnoentry'
9071 fi
b9668ba4 9072
5c706339
AK
9073 # When large executables or shared objects are built, AIX ld can
9074 # have problems creating the table of contents. If linking a library
9075 # or program results in "error TOC overflow" add -mminimal-toc to
9076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
b9668ba4 9078
5c706339
AK
9079 archive_cmds=''
9080 hardcode_direct=yes
9081 hardcode_direct_absolute=yes
9082 hardcode_libdir_separator=':'
9083 link_all_deplibs=yes
9084 file_list_spec='${wl}-f,'
b9668ba4 9085
5c706339
AK
9086 if test "$GCC" = yes; then
9087 case $host_os in aix4.[012]|aix4.[012].*)
9088 # We only want to do this on AIX 4.2 and lower, the check
9089 # below for broken collect2 doesn't work under 4.3+
9090 collect2name=`${CC} -print-prog-name=collect2`
9091 if test -f "$collect2name" &&
9092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9093 then
9094 # We have reworked collect2
9095 :
9096 else
9097 # We have old collect2
9098 hardcode_direct=unsupported
9099 # It fails to find uninstalled libraries when the uninstalled
9100 # path is not listed in the libpath. Setting hardcode_minus_L
9101 # to unsupported forces relinking
9102 hardcode_minus_L=yes
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_libdir_separator=
9105 fi
9106 ;;
9107 esac
9108 shared_flag='-shared'
9109 if test "$aix_use_runtimelinking" = yes; then
9110 shared_flag="$shared_flag "'${wl}-G'
9111 fi
9112 link_all_deplibs=no
9113 else
9114 # not using gcc
9115 if test "$host_cpu" = ia64; then
9116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9117 # chokes on -Wl,-G. The following line is correct:
9118 shared_flag='-G'
9119 else
9120 if test "$aix_use_runtimelinking" = yes; then
9121 shared_flag='${wl}-G'
9122 else
9123 shared_flag='${wl}-bM:SRE'
9124 fi
9125 fi
9126 fi
b9668ba4 9127
47dc80f6 9128 export_dynamic_flag_spec='${wl}-bexpall'
5c706339
AK
9129 # It seems that -bexpall does not export symbols beginning with
9130 # underscore (_), so it is better to generate a list of symbols to export.
9131 always_export_symbols=yes
9132 if test "$aix_use_runtimelinking" = yes; then
9133 # Warning - without using the other runtime loading flags (-brtl),
9134 # -berok will link without error, but may produce a broken library.
9135 allow_undefined_flag='-berok'
9136 # Determine the default libpath from the value encoded in an
9137 # empty executable.
059850b5
AK
9138 if test "${lt_cv_aix_libpath+set}" = set; then
9139 aix_libpath=$lt_cv_aix_libpath
9140else
9141 if ${lt_cv_aix_libpath_+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 9145/* end confdefs.h. */
b9668ba4 9146
5c706339
AK
9147int
9148main ()
9149{
b9668ba4 9150
5c706339
AK
9151 ;
9152 return 0;
9153}
9154_ACEOF
0fbeb4dc 9155if ac_fn_c_try_link "$LINENO"; then :
b9668ba4 9156
059850b5
AK
9157 lt_aix_libpath_sed='
9158 /Import File Strings/,/^$/ {
9159 /^0/ {
9160 s/^0 *\([^ ]*\) *$/\1/
9161 p
9162 }
9163 }'
9164 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9165 # Check for a 64-bit object if we didn't find anything.
9166 if test -z "$lt_cv_aix_libpath_"; then
9167 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9168 fi
5c706339 9169fi
0fbeb4dc
AK
9170rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
059850b5
AK
9172 if test -z "$lt_cv_aix_libpath_"; then
9173 lt_cv_aix_libpath_="/usr/lib:/lib"
9174 fi
9175
9176fi
9177
9178 aix_libpath=$lt_cv_aix_libpath_
9179fi
b9668ba4 9180
5c706339 9181 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
059850b5 9182 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"
5c706339
AK
9183 else
9184 if test "$host_cpu" = ia64; then
9185 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9186 allow_undefined_flag="-z nodefs"
9187 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"
9188 else
9189 # Determine the default libpath from the value encoded in an
9190 # empty executable.
059850b5
AK
9191 if test "${lt_cv_aix_libpath+set}" = set; then
9192 aix_libpath=$lt_cv_aix_libpath
9193else
9194 if ${lt_cv_aix_libpath_+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 9198/* end confdefs.h. */
b9668ba4 9199
5c706339
AK
9200int
9201main ()
9202{
b9668ba4 9203
5c706339
AK
9204 ;
9205 return 0;
9206}
9207_ACEOF
0fbeb4dc 9208if ac_fn_c_try_link "$LINENO"; then :
b9668ba4 9209
059850b5
AK
9210 lt_aix_libpath_sed='
9211 /Import File Strings/,/^$/ {
9212 /^0/ {
9213 s/^0 *\([^ ]*\) *$/\1/
9214 p
9215 }
9216 }'
9217 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218 # Check for a 64-bit object if we didn't find anything.
9219 if test -z "$lt_cv_aix_libpath_"; then
9220 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221 fi
5c706339 9222fi
0fbeb4dc
AK
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
059850b5
AK
9225 if test -z "$lt_cv_aix_libpath_"; then
9226 lt_cv_aix_libpath_="/usr/lib:/lib"
9227 fi
9228
9229fi
9230
9231 aix_libpath=$lt_cv_aix_libpath_
9232fi
b9668ba4 9233
5c706339
AK
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 # Warning - without using the other run time loading flags,
9236 # -berok will link without error, but may produce a broken library.
9237 no_undefined_flag=' ${wl}-bernotok'
9238 allow_undefined_flag=' ${wl}-berok'
059850b5
AK
9239 if test "$with_gnu_ld" = yes; then
9240 # We only use this code for GNU lds that support --whole-archive.
9241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 else
9243 # Exported symbols can be pulled into shared objects from archives
9244 whole_archive_flag_spec='$convenience'
9245 fi
5c706339
AK
9246 archive_cmds_need_lc=yes
9247 # This is similar to how AIX traditionally builds its shared libraries.
9248 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'
9249 fi
9250 fi
9251 ;;
b9668ba4 9252
5c706339
AK
9253 amigaos*)
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds=''
9259 ;;
9260 m68k)
9261 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)'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 ;;
9265 esac
9266 ;;
b9668ba4 9267
5c706339
AK
9268 bsdi[45]*)
9269 export_dynamic_flag_spec=-rdynamic
9270 ;;
b9668ba4 9271
47dc80f6 9272 cygwin* | mingw* | pw32* | cegcc*)
5c706339
AK
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 # hardcode_libdir_flag_spec is actually meaningless, as there is
9276 # no search path for DLLs.
059850b5
AK
9277 case $cc_basename in
9278 cl*)
9279 # Native MSVC
9280 hardcode_libdir_flag_spec=' '
9281 allow_undefined_flag=unsupported
9282 always_export_symbols=yes
9283 file_list_spec='@'
9284 # Tell ltmain to make .lib files, not .a files.
9285 libext=lib
9286 # Tell ltmain to make .dll files, not .so files.
9287 shrext_cmds=".dll"
9288 # FIXME: Setting linknames here is a bad hack.
9289 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9290 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9291 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9292 else
9293 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9294 fi~
9295 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9296 linknames='
9297 # The linker will not automatically build a static lib if we build a DLL.
9298 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9299 enable_shared_with_static_runtimes=yes
9300 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302 # Don't use ranlib
9303 old_postinstall_cmds='chmod 644 $oldlib'
9304 postlink_cmds='lt_outputfile="@OUTPUT@"~
9305 lt_tool_outputfile="@TOOL_OUTPUT@"~
9306 case $lt_outputfile in
9307 *.exe|*.EXE) ;;
9308 *)
9309 lt_outputfile="$lt_outputfile.exe"
9310 lt_tool_outputfile="$lt_tool_outputfile.exe"
9311 ;;
9312 esac~
9313 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9315 $RM "$lt_outputfile.manifest";
9316 fi'
9317 ;;
9318 *)
9319 # Assume MSVC wrapper
9320 hardcode_libdir_flag_spec=' '
9321 allow_undefined_flag=unsupported
9322 # Tell ltmain to make .lib files, not .a files.
9323 libext=lib
9324 # Tell ltmain to make .dll files, not .so files.
9325 shrext_cmds=".dll"
9326 # FIXME: Setting linknames here is a bad hack.
9327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9328 # The linker will automatically build a .lib file if we build a DLL.
9329 old_archive_from_new_cmds='true'
9330 # FIXME: Should let the user specify the lib program.
9331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332 enable_shared_with_static_runtimes=yes
9333 ;;
9334 esac
5c706339 9335 ;;
b9668ba4 9336
5c706339 9337 darwin* | rhapsody*)
b9668ba4 9338
b9668ba4 9339
5c706339
AK
9340 archive_cmds_need_lc=no
9341 hardcode_direct=no
9342 hardcode_automatic=yes
9343 hardcode_shlibpath_var=unsupported
059850b5
AK
9344 if test "$lt_cv_ld_force_load" = "yes"; then
9345 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\"`'
9346
9347 else
9348 whole_archive_flag_spec=''
9349 fi
5c706339
AK
9350 link_all_deplibs=yes
9351 allow_undefined_flag="$_lt_dar_allow_undefined"
47dc80f6
AK
9352 case $cc_basename in
9353 ifort*) _lt_dar_can_shared=yes ;;
9354 *) _lt_dar_can_shared=$GCC ;;
9355 esac
9356 if test "$_lt_dar_can_shared" = "yes"; then
059850b5 9357 output_verbose_link_cmd=func_echo_all
5c706339
AK
9358 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9359 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9360 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}"
9361 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}"
b9668ba4 9362
5c706339
AK
9363 else
9364 ld_shlibs=no
9365 fi
b9668ba4 9366
5c706339 9367 ;;
b9668ba4 9368
5c706339
AK
9369 dgux*)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-L$libdir'
9372 hardcode_shlibpath_var=no
9373 ;;
b9668ba4 9374
5c706339
AK
9375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376 # support. Future versions do this automatically, but an explicit c++rt0.o
9377 # does not break anything, and helps significantly (at the cost of a little
9378 # extra space).
9379 freebsd2.2*)
9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_direct=yes
9383 hardcode_shlibpath_var=no
9384 ;;
b9668ba4 9385
5c706339 9386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
059850b5 9387 freebsd2.*)
5c706339
AK
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes
9390 hardcode_minus_L=yes
9391 hardcode_shlibpath_var=no
9392 ;;
b9668ba4 9393
5c706339
AK
9394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395 freebsd* | dragonfly*)
059850b5 9396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 ;;
b9668ba4 9401
5c706339
AK
9402 hpux9*)
9403 if test "$GCC" = yes; then
059850b5 9404 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'
5c706339
AK
9405 else
9406 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'
9407 fi
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_separator=:
9410 hardcode_direct=yes
b9668ba4 9411
5c706339
AK
9412 # hardcode_minus_L: Not really in the search PATH,
9413 # but as the default location of the library.
9414 hardcode_minus_L=yes
9415 export_dynamic_flag_spec='${wl}-E'
9416 ;;
b9668ba4 9417
5c706339 9418 hpux10*)
059850b5
AK
9419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9420 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9421 else
9422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423 fi
9424 if test "$with_gnu_ld" = no; then
9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5c706339
AK
9426 hardcode_libdir_separator=:
9427 hardcode_direct=yes
9428 hardcode_direct_absolute=yes
9429 export_dynamic_flag_spec='${wl}-E'
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9433 fi
9434 ;;
b9668ba4 9435
5c706339 9436 hpux11*)
059850b5 9437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5c706339
AK
9438 case $host_cpu in
9439 hppa*64*)
9440 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 ia64*)
059850b5 9443 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9444 ;;
9445 *)
059850b5 9446 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5c706339
AK
9447 ;;
9448 esac
9449 else
9450 case $host_cpu in
9451 hppa*64*)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 ia64*)
9455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 *)
059850b5
AK
9458
9459 # Older versions of the 11.00 compiler do not understand -b yet
9460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462$as_echo_n "checking if $CC understands -b... " >&6; }
9463if ${lt_cv_prog_compiler__b+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465else
9466 lt_cv_prog_compiler__b=no
9467 save_LDFLAGS="$LDFLAGS"
9468 LDFLAGS="$LDFLAGS -b"
9469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9471 # The linker can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 if test -s conftest.err; then
9474 # Append any errors to the config.log.
9475 cat conftest.err 1>&5
9476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478 if diff conftest.exp conftest.er2 >/dev/null; then
9479 lt_cv_prog_compiler__b=yes
9480 fi
9481 else
9482 lt_cv_prog_compiler__b=yes
9483 fi
9484 fi
9485 $RM -r conftest*
9486 LDFLAGS="$save_LDFLAGS"
9487
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9490$as_echo "$lt_cv_prog_compiler__b" >&6; }
9491
9492if test x"$lt_cv_prog_compiler__b" = xyes; then
9493 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494else
9495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496fi
9497
5c706339
AK
9498 ;;
9499 esac
9500 fi
9501 if test "$with_gnu_ld" = no; then
9502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9503 hardcode_libdir_separator=:
b9668ba4 9504
5c706339
AK
9505 case $host_cpu in
9506 hppa*64*|ia64*)
9507 hardcode_direct=no
9508 hardcode_shlibpath_var=no
9509 ;;
9510 *)
9511 hardcode_direct=yes
9512 hardcode_direct_absolute=yes
9513 export_dynamic_flag_spec='${wl}-E'
b9668ba4 9514
5c706339
AK
9515 # hardcode_minus_L: Not really in the search PATH,
9516 # but as the default location of the library.
9517 hardcode_minus_L=yes
9518 ;;
9519 esac
9520 fi
9521 ;;
b9668ba4 9522
5c706339
AK
9523 irix5* | irix6* | nonstopux*)
9524 if test "$GCC" = yes; then
059850b5 9525 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'
5c706339
AK
9526 # Try to use the -exported_symbol ld option, if it does not
9527 # work, assume that -exports_file does not work either and
9528 # implicitly export all symbols.
059850b5
AK
9529 # This should be the same for all languages, so no per-tag cache variable.
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9531$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9532if ${lt_cv_irix_exported_symbol+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534else
9535 save_LDFLAGS="$LDFLAGS"
9536 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0fbeb4dc 9538/* end confdefs.h. */
059850b5 9539int foo (void) { return 0; }
5c706339 9540_ACEOF
0fbeb4dc 9541if ac_fn_c_try_link "$LINENO"; then :
059850b5
AK
9542 lt_cv_irix_exported_symbol=yes
9543else
9544 lt_cv_irix_exported_symbol=no
5c706339 9545fi
0fbeb4dc
AK
9546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
059850b5
AK
9548 LDFLAGS="$save_LDFLAGS"
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9551$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9552 if test "$lt_cv_irix_exported_symbol" = yes; then
9553 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'
9554 fi
5c706339 9555 else
059850b5
AK
9556 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'
9557 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'
5c706339
AK
9558 fi
9559 archive_cmds_need_lc='no'
9560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562 inherit_rpath=yes
9563 link_all_deplibs=yes
9564 ;;
b9668ba4 9565
5c706339
AK
9566 netbsd* | netbsdelf*-gnu)
9567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9569 else
9570 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9571 fi
9572 hardcode_libdir_flag_spec='-R$libdir'
9573 hardcode_direct=yes
9574 hardcode_shlibpath_var=no
9575 ;;
b9668ba4 9576
5c706339
AK
9577 newsos6)
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_direct=yes
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582 hardcode_shlibpath_var=no
9583 ;;
b9668ba4 9584
5c706339
AK
9585 *nto* | *qnx*)
9586 ;;
b9668ba4 9587
5c706339
AK
9588 openbsd*)
9589 if test -f /usr/libexec/ld.so; then
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9592 hardcode_direct_absolute=yes
9593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597 export_dynamic_flag_spec='${wl}-E'
9598 else
9599 case $host_os in
9600 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_libdir_flag_spec='-R$libdir'
9603 ;;
9604 *)
9605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607 ;;
9608 esac
9609 fi
9610 else
9611 ld_shlibs=no
9612 fi
9613 ;;
b9668ba4 9614
5c706339
AK
9615 os2*)
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_minus_L=yes
9618 allow_undefined_flag=unsupported
059850b5 9619 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'
5c706339
AK
9620 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9621 ;;
b9668ba4 9622
5c706339
AK
9623 osf3*)
9624 if test "$GCC" = yes; then
9625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
059850b5 9626 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'
5c706339
AK
9627 else
9628 allow_undefined_flag=' -expect_unresolved \*'
059850b5 9629 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'
5c706339
AK
9630 fi
9631 archive_cmds_need_lc='no'
9632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633 hardcode_libdir_separator=:
9634 ;;
b9668ba4 9635
5c706339
AK
9636 osf4* | osf5*) # as osf3* with the addition of -msym flag
9637 if test "$GCC" = yes; then
9638 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
059850b5 9639 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'
5c706339
AK
9640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641 else
9642 allow_undefined_flag=' -expect_unresolved \*'
059850b5 9643 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'
5c706339 9644 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~
059850b5 9645 $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'
b9668ba4 9646
5c706339
AK
9647 # Both c and cxx compiler support -rpath directly
9648 hardcode_libdir_flag_spec='-rpath $libdir'
9649 fi
9650 archive_cmds_need_lc='no'
9651 hardcode_libdir_separator=:
9652 ;;
b9668ba4 9653
5c706339
AK
9654 solaris*)
9655 no_undefined_flag=' -z defs'
9656 if test "$GCC" = yes; then
9657 wlarc='${wl}'
059850b5 9658 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5c706339 9659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
059850b5 9660 $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'
5c706339
AK
9661 else
9662 case `$CC -V 2>&1` in
9663 *"Compilers 5.0"*)
9664 wlarc=''
9665 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9668 ;;
9669 *)
9670 wlarc='${wl}'
9671 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9674 ;;
9675 esac
9676 fi
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 hardcode_shlibpath_var=no
9679 case $host_os in
9680 solaris2.[0-5] | solaris2.[0-5].*) ;;
9681 *)
9682 # The compiler driver will combine and reorder linker options,
9683 # but understands `-z linker_flag'. GCC discards it without `$wl',
9684 # but is careful enough not to reorder.
9685 # Supported since Solaris 2.6 (maybe 2.5.1?)
9686 if test "$GCC" = yes; then
9687 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9688 else
9689 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9690 fi
9691 ;;
9692 esac
9693 link_all_deplibs=yes
9694 ;;
b9668ba4 9695
5c706339
AK
9696 sunos4*)
9697 if test "x$host_vendor" = xsequent; then
9698 # Use $CC to link under sequent, because it throws in some extra .o
9699 # files that make .init and .fini sections work.
9700 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9703 fi
9704 hardcode_libdir_flag_spec='-L$libdir'
9705 hardcode_direct=yes
9706 hardcode_minus_L=yes
9707 hardcode_shlibpath_var=no
9708 ;;
b9668ba4 9709
5c706339
AK
9710 sysv4)
9711 case $host_vendor in
9712 sni)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_direct=yes # is this really true???
9715 ;;
9716 siemens)
9717 ## LD is ld it makes a PLAMLIB
9718 ## CC just makes a GrossModule.
9719 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9720 reload_cmds='$CC -r -o $output$reload_objs'
9721 hardcode_direct=no
9722 ;;
9723 motorola)
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9726 ;;
9727 esac
9728 runpath_var='LD_RUN_PATH'
9729 hardcode_shlibpath_var=no
9730 ;;
b9668ba4 9731
5c706339
AK
9732 sysv4.3*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_shlibpath_var=no
9735 export_dynamic_flag_spec='-Bexport'
9736 ;;
b9668ba4 9737
5c706339
AK
9738 sysv4*MP*)
9739 if test -d /usr/nec; then
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_shlibpath_var=no
9742 runpath_var=LD_RUN_PATH
9743 hardcode_runpath_var=yes
9744 ld_shlibs=yes
9745 fi
9746 ;;
b9668ba4 9747
5c706339
AK
9748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9749 no_undefined_flag='${wl}-z,text'
9750 archive_cmds_need_lc=no
9751 hardcode_shlibpath_var=no
9752 runpath_var='LD_RUN_PATH'
b9668ba4 9753
5c706339
AK
9754 if test "$GCC" = yes; then
9755 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 fi
9761 ;;
b9668ba4 9762
5c706339
AK
9763 sysv5* | sco3.2v5* | sco5v6*)
9764 # Note: We can NOT use -z defs as we might desire, because we do not
9765 # link with -lc, and that would cause any symbols used from libc to
9766 # always be unresolved, which means just about no library would
9767 # ever link correctly. If we're not using GNU ld we use -z text
9768 # though, which does catch some bad symbols but isn't as heavy-handed
9769 # as -z defs.
9770 no_undefined_flag='${wl}-z,text'
9771 allow_undefined_flag='${wl}-z,nodefs'
9772 archive_cmds_need_lc=no
9773 hardcode_shlibpath_var=no
9774 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9775 hardcode_libdir_separator=':'
9776 link_all_deplibs=yes
9777 export_dynamic_flag_spec='${wl}-Bexport'
9778 runpath_var='LD_RUN_PATH'
b9668ba4 9779
5c706339
AK
9780 if test "$GCC" = yes; then
9781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 else
9784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 fi
9787 ;;
b9668ba4 9788
5c706339
AK
9789 uts4*)
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_shlibpath_var=no
9793 ;;
b9668ba4 9794
5c706339
AK
9795 *)
9796 ld_shlibs=no
9797 ;;
b9668ba4
AK
9798 esac
9799
5c706339
AK
9800 if test x$host_vendor = xsni; then
9801 case $host in
9802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9803 export_dynamic_flag_spec='${wl}-Blargedynsym'
9804 ;;
9805 esac
b9668ba4 9806 fi
5c706339 9807 fi
b9668ba4 9808
0fbeb4dc 9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
47dc80f6 9810$as_echo "$ld_shlibs" >&6; }
5c706339 9811test "$ld_shlibs" = no && can_build_shared=no
b9668ba4 9812
5c706339 9813with_gnu_ld=$with_gnu_ld
b9668ba4 9814
b9668ba4 9815
b9668ba4 9816
b9668ba4 9817
b9668ba4 9818
b9668ba4
AK
9819
9820
b9668ba4 9821
b9668ba4
AK
9822
9823
b9668ba4
AK
9824
9825
b9668ba4 9826
b9668ba4
AK
9827
9828
5c706339
AK
9829#
9830# Do we need to explicitly link libc?
9831#
9832case "x$archive_cmds_need_lc" in
9833x|xyes)
9834 # Assume -lc should be added
9835 archive_cmds_need_lc=yes
b9668ba4 9836
5c706339
AK
9837 if test "$enable_shared" = yes && test "$GCC" = yes; then
9838 case $archive_cmds in
9839 *'~'*)
9840 # FIXME: we may have to deal with multi-command sequences.
b9668ba4 9841 ;;
5c706339
AK
9842 '$CC '*)
9843 # Test whether the compiler implicitly links with -lc since on some
9844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845 # to ld, don't add -lc before -lgcc.
0fbeb4dc 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
47dc80f6 9847$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
059850b5
AK
9848if ${lt_cv_archive_cmds_need_lc+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851 $RM conftest*
9852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 9853
059850b5 9854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5c706339
AK
9855 (eval $ac_compile) 2>&5
9856 ac_status=$?
0fbeb4dc
AK
9857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9858 test $ac_status = 0; } 2>conftest.err; then
059850b5
AK
9859 soname=conftest
9860 lib=conftest
9861 libobjs=conftest.$ac_objext
9862 deplibs=
9863 wl=$lt_prog_compiler_wl
9864 pic_flag=$lt_prog_compiler_pic
9865 compiler_flags=-v
9866 linker_flags=-v
9867 verstring=
9868 output_objdir=.
9869 libname=conftest
9870 lt_save_allow_undefined_flag=$allow_undefined_flag
9871 allow_undefined_flag=
9872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
5c706339
AK
9873 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9874 ac_status=$?
0fbeb4dc
AK
9875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876 test $ac_status = 0; }
059850b5
AK
9877 then
9878 lt_cv_archive_cmds_need_lc=no
9879 else
9880 lt_cv_archive_cmds_need_lc=yes
9881 fi
9882 allow_undefined_flag=$lt_save_allow_undefined_flag
9883 else
9884 cat conftest.err 1>&5
9885 fi
9886 $RM conftest*
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9890$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9891 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
5c706339
AK
9892 ;;
9893 esac
9894 fi
b9668ba4
AK
9895 ;;
9896esac
b9668ba4
AK
9897
9898
9899
b9668ba4 9900
b9668ba4 9901
b9668ba4 9902
b9668ba4 9903
b9668ba4 9904
b9668ba4 9905
b9668ba4 9906
b9668ba4 9907
b9668ba4 9908
b9668ba4 9909
b9668ba4 9910
b9668ba4 9911
b9668ba4
AK
9912
9913
b9668ba4 9914
b9668ba4 9915
b9668ba4 9916
b9668ba4 9917
b9668ba4 9918
b9668ba4 9919
b9668ba4
AK
9920
9921
b9668ba4 9922
b9668ba4 9923
b9668ba4 9924
b9668ba4 9925
b9668ba4 9926
b9668ba4 9927
b9668ba4 9928
b9668ba4 9929
b9668ba4 9930
b9668ba4 9931
b9668ba4 9932
b9668ba4 9933
b9668ba4 9934
b9668ba4 9935
b9668ba4 9936
b9668ba4 9937
b9668ba4 9938
b9668ba4 9939
b9668ba4 9940
b9668ba4 9941
b9668ba4 9942
b9668ba4 9943
b9668ba4 9944
b9668ba4 9945
b9668ba4
AK
9946
9947
b9668ba4 9948
b9668ba4 9949
b9668ba4 9950
b9668ba4 9951
b9668ba4 9952
b9668ba4 9953
b9668ba4 9954
b9668ba4 9955
b9668ba4 9956
b9668ba4
AK
9957
9958
b9668ba4 9959
b9668ba4 9960
b9668ba4 9961
b9668ba4 9962
b9668ba4 9963
b9668ba4 9964
b9668ba4 9965
b9668ba4 9966
b9668ba4 9967
b9668ba4 9968
b9668ba4 9969
b9668ba4 9970
b9668ba4 9971
b9668ba4
AK
9972
9973
b9668ba4 9974
b9668ba4 9975
b9668ba4
AK
9976
9977
b9668ba4 9978
b9668ba4 9979
b9668ba4 9980
b9668ba4 9981
b9668ba4 9982
b9668ba4 9983
b9668ba4 9984
5c706339
AK
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
5c706339
AK
10043
10044
10045
10046
10047
10048
0fbeb4dc 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
47dc80f6 10050$as_echo_n "checking dynamic linker characteristics... " >&6; }
5c706339
AK
10051
10052if test "$GCC" = yes; then
10053 case $host_os in
10054 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10055 *) lt_awk_arg="/^libraries:/" ;;
10056 esac
059850b5
AK
10057 case $host_os in
10058 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10059 *) lt_sed_strip_eq="s,=/,/,g" ;;
10060 esac
10061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10062 case $lt_search_path_spec in
10063 *\;*)
5c706339
AK
10064 # if the path contains ";" then we assume it to be the separator
10065 # otherwise default to the standard path separator (i.e. ":") - it is
10066 # assumed that no part of a normal pathname contains ";" but that should
10067 # okay in the real world where ";" in dirpaths is itself problematic.
059850b5
AK
10068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10069 ;;
10070 *)
10071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10072 ;;
10073 esac
5c706339
AK
10074 # Ok, now we have the path, separated by spaces, we can step through it
10075 # and add multilib dir if necessary.
10076 lt_tmp_lt_search_path_spec=
10077 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10078 for lt_sys_path in $lt_search_path_spec; do
10079 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10081 else
10082 test -d "$lt_sys_path" && \
10083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10084 fi
10085 done
059850b5 10086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
5c706339
AK
10087BEGIN {RS=" "; FS="/|\n";} {
10088 lt_foo="";
10089 lt_count=0;
10090 for (lt_i = NF; lt_i > 0; lt_i--) {
10091 if ($lt_i != "" && $lt_i != ".") {
10092 if ($lt_i == "..") {
10093 lt_count++;
10094 } else {
10095 if (lt_count == 0) {
10096 lt_foo="/" $lt_i lt_foo;
10097 } else {
10098 lt_count--;
10099 }
10100 }
10101 }
10102 }
10103 if (lt_foo != "") { lt_freq[lt_foo]++; }
10104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10105}'`
059850b5
AK
10106 # AWK program above erroneously prepends '/' to C:/dos/paths
10107 # for these hosts.
10108 case $host_os in
10109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10110 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10111 esac
10112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
5c706339
AK
10113else
10114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10115fi
b9668ba4
AK
10116library_names_spec=
10117libname_spec='lib$name'
10118soname_spec=
10119shrext_cmds=".so"
10120postinstall_cmds=
10121postuninstall_cmds=
10122finish_cmds=
10123finish_eval=
10124shlibpath_var=
10125shlibpath_overrides_runpath=unknown
10126version_type=none
10127dynamic_linker="$host_os ld.so"
10128sys_lib_dlsearch_path_spec="/lib /usr/lib"
b9668ba4
AK
10129need_lib_prefix=unknown
10130hardcode_into_libs=no
10131
10132# when you set need_version to no, make sure it does not cause -set_version
10133# flags to be left without arguments
10134need_version=unknown
10135
10136case $host_os in
10137aix3*)
059850b5 10138 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10140 shlibpath_var=LIBPATH
10141
10142 # AIX 3 has no versioning support, so we append a major version to the name.
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 ;;
10145
5c706339 10146aix[4-9]*)
059850b5 10147 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10148 need_lib_prefix=no
10149 need_version=no
10150 hardcode_into_libs=yes
10151 if test "$host_cpu" = ia64; then
10152 # AIX 5 supports IA64
10153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 else
10156 # With GCC up to 2.95.x, collect2 would create an import file
10157 # for dependence libraries. The import file would start with
10158 # the line `#! .'. This would cause the generated library to
10159 # depend on `.', always an invalid library. This was fixed in
10160 # development snapshots of GCC prior to 3.0.
10161 case $host_os in
10162 aix4 | aix4.[01] | aix4.[01].*)
10163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10164 echo ' yes '
5c706339 10165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
b9668ba4
AK
10166 :
10167 else
10168 can_build_shared=no
10169 fi
10170 ;;
10171 esac
10172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10173 # soname into executable. Probably we can add versioning support to
10174 # collect2, so additional links can be useful in future.
10175 if test "$aix_use_runtimelinking" = yes; then
10176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10177 # instead of lib<name>.a to let people know that these are not
10178 # typical AIX shared libraries.
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 else
10181 # We preserve .a as extension for shared libraries through AIX4.2
10182 # and later when we are not doing run time linking.
10183 library_names_spec='${libname}${release}.a $libname.a'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 fi
10186 shlibpath_var=LIBPATH
10187 fi
10188 ;;
10189
10190amigaos*)
5c706339
AK
10191 case $host_cpu in
10192 powerpc)
10193 # Since July 2007 AmigaOS4 officially supports .so libraries.
10194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 ;;
10197 m68k)
10198 library_names_spec='$libname.ixlibrary $libname.a'
10199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
059850b5 10200 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'
5c706339
AK
10201 ;;
10202 esac
b9668ba4
AK
10203 ;;
10204
10205beos*)
10206 library_names_spec='${libname}${shared_ext}'
10207 dynamic_linker="$host_os ld.so"
10208 shlibpath_var=LIBRARY_PATH
10209 ;;
10210
10211bsdi[45]*)
059850b5 10212 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10213 need_version=no
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10220 # the default ld.so.conf also contains /usr/contrib/lib and
10221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10222 # libtool to hard-code these into programs
10223 ;;
10224
47dc80f6 10225cygwin* | mingw* | pw32* | cegcc*)
b9668ba4
AK
10226 version_type=windows
10227 shrext_cmds=".dll"
10228 need_version=no
10229 need_lib_prefix=no
10230
059850b5
AK
10231 case $GCC,$cc_basename in
10232 yes,*)
10233 # gcc
b9668ba4
AK
10234 library_names_spec='$libname.dll.a'
10235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236 postinstall_cmds='base_file=`basename \${file}`~
5c706339 10237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
b9668ba4
AK
10238 dldir=$destdir/`dirname \$dlpath`~
10239 test -d \$dldir || mkdir -p \$dldir~
10240 $install_prog $dir/$dlname \$dldir/$dlname~
5c706339
AK
10241 chmod a+x \$dldir/$dlname~
10242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244 fi'
b9668ba4
AK
10245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10246 dlpath=$dir/\$dldll~
5c706339 10247 $RM \$dlpath'
b9668ba4
AK
10248 shlibpath_overrides_runpath=yes
10249
10250 case $host_os in
10251 cygwin*)
10252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
059850b5
AK
10254
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
b9668ba4 10256 ;;
47dc80f6 10257 mingw* | cegcc*)
b9668ba4
AK
10258 # MinGW DLLs use traditional 'lib' prefix
10259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b9668ba4
AK
10260 ;;
10261 pw32*)
10262 # pw32 DLLs use 'pw' prefix rather than 'lib'
10263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10264 ;;
10265 esac
059850b5
AK
10266 dynamic_linker='Win32 ld.exe'
10267 ;;
10268
10269 *,cl*)
10270 # Native MSVC
10271 libname_spec='$name'
10272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273 library_names_spec='${libname}.dll.lib'
10274
10275 case $build_os in
10276 mingw*)
10277 sys_lib_search_path_spec=
10278 lt_save_ifs=$IFS
10279 IFS=';'
10280 for lt_path in $LIB
10281 do
10282 IFS=$lt_save_ifs
10283 # Let DOS variable expansion print the short 8.3 style file name.
10284 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10285 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10286 done
10287 IFS=$lt_save_ifs
10288 # Convert to MSYS style.
10289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10290 ;;
10291 cygwin*)
10292 # Convert to unix form, then to dos form, then back to unix form
10293 # but this time dos style (no spaces!) so that the unix form looks
10294 # like /cygdrive/c/PROGRA~1:/cygdr...
10295 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10296 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10297 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10298 ;;
10299 *)
10300 sys_lib_search_path_spec="$LIB"
10301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10302 # It is most probably a Windows format PATH.
10303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10304 else
10305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10306 fi
10307 # FIXME: find the short name or the path components, as spaces are
10308 # common. (e.g. "Program Files" -> "PROGRA~1")
10309 ;;
10310 esac
10311
10312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10313 postinstall_cmds='base_file=`basename \${file}`~
10314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10315 dldir=$destdir/`dirname \$dlpath`~
10316 test -d \$dldir || mkdir -p \$dldir~
10317 $install_prog $dir/$dlname \$dldir/$dlname'
10318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10319 dlpath=$dir/\$dldll~
10320 $RM \$dlpath'
10321 shlibpath_overrides_runpath=yes
10322 dynamic_linker='Win32 link.exe'
b9668ba4
AK
10323 ;;
10324
10325 *)
059850b5 10326 # Assume MSVC wrapper
b9668ba4 10327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
059850b5 10328 dynamic_linker='Win32 ld.exe'
b9668ba4
AK
10329 ;;
10330 esac
b9668ba4
AK
10331 # FIXME: first we should search . and the directory the executable is in
10332 shlibpath_var=PATH
10333 ;;
10334
10335darwin* | rhapsody*)
10336 dynamic_linker="$host_os dyld"
10337 version_type=darwin
10338 need_lib_prefix=no
10339 need_version=no
5c706339 10340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
b9668ba4
AK
10341 soname_spec='${libname}${release}${major}$shared_ext'
10342 shlibpath_overrides_runpath=yes
10343 shlibpath_var=DYLD_LIBRARY_PATH
10344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5c706339
AK
10345
10346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
b9668ba4
AK
10347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10348 ;;
10349
10350dgux*)
059850b5 10351 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10352 need_lib_prefix=no
10353 need_version=no
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 ;;
10358
b9668ba4
AK
10359freebsd* | dragonfly*)
10360 # DragonFly does not have aout. When/if they implement a new
10361 # versioning mechanism, adjust this.
10362 if test -x /usr/bin/objformat; then
10363 objformat=`/usr/bin/objformat`
10364 else
10365 case $host_os in
059850b5 10366 freebsd[23].*) objformat=aout ;;
b9668ba4
AK
10367 *) objformat=elf ;;
10368 esac
10369 fi
10370 version_type=freebsd-$objformat
10371 case $version_type in
10372 freebsd-elf*)
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 need_version=no
10375 need_lib_prefix=no
10376 ;;
10377 freebsd-*)
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10379 need_version=yes
10380 ;;
10381 esac
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_os in
059850b5 10384 freebsd2.*)
b9668ba4
AK
10385 shlibpath_overrides_runpath=yes
10386 ;;
10387 freebsd3.[01]* | freebsdelf3.[01]*)
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 ;;
10391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
5c706339 10396 *) # from 4.6 on, and DragonFly
b9668ba4
AK
10397 shlibpath_overrides_runpath=yes
10398 hardcode_into_libs=yes
10399 ;;
10400 esac
10401 ;;
10402
059850b5
AK
10403haiku*)
10404 version_type=linux # correct to gnu/linux during the next big refactor
10405 need_lib_prefix=no
10406 need_version=no
10407 dynamic_linker="$host_os runtime_loader"
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LIBRARY_PATH
10411 shlibpath_overrides_runpath=yes
10412 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
b9668ba4
AK
10413 hardcode_into_libs=yes
10414 ;;
10415
10416hpux9* | hpux10* | hpux11*)
10417 # Give a soname corresponding to the major version so that dld.sl refuses to
10418 # link against other versions.
10419 version_type=sunos
10420 need_lib_prefix=no
10421 need_version=no
10422 case $host_cpu in
10423 ia64*)
10424 shrext_cmds='.so'
10425 hardcode_into_libs=yes
10426 dynamic_linker="$host_os dld.so"
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 if test "X$HPUX_IA64_MODE" = X32; then
10432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10433 else
10434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10435 fi
10436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437 ;;
5c706339
AK
10438 hppa*64*)
10439 shrext_cmds='.sl'
10440 hardcode_into_libs=yes
10441 dynamic_linker="$host_os dld.sl"
10442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10448 ;;
10449 *)
b9668ba4
AK
10450 shrext_cmds='.sl'
10451 dynamic_linker="$host_os dld.sl"
10452 shlibpath_var=SHLIB_PATH
10453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 ;;
10457 esac
059850b5 10458 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
b9668ba4 10459 postinstall_cmds='chmod 555 $lib'
059850b5
AK
10460 # or fails outright, so override atomically:
10461 install_override_mode=555
b9668ba4
AK
10462 ;;
10463
5c706339 10464interix[3-9]*)
059850b5 10465 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10466 need_lib_prefix=no
10467 need_version=no
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473 hardcode_into_libs=yes
10474 ;;
10475
10476irix5* | irix6* | nonstopux*)
10477 case $host_os in
10478 nonstopux*) version_type=nonstopux ;;
10479 *)
10480 if test "$lt_cv_prog_gnu_ld" = yes; then
059850b5 10481 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10482 else
10483 version_type=irix
10484 fi ;;
10485 esac
10486 need_lib_prefix=no
10487 need_version=no
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10490 case $host_os in
10491 irix5* | nonstopux*)
10492 libsuff= shlibsuff=
10493 ;;
10494 *)
10495 case $LD in # libtool.m4 will add one of these switches to LD
10496 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10497 libsuff= shlibsuff= libmagic=32-bit;;
10498 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10499 libsuff=32 shlibsuff=N32 libmagic=N32;;
10500 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10501 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10502 *) libsuff= shlibsuff= libmagic=never-match;;
10503 esac
10504 ;;
10505 esac
10506 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10507 shlibpath_overrides_runpath=no
10508 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10509 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10510 hardcode_into_libs=yes
10511 ;;
10512
10513# No shared lib support for Linux oldld, aout, or coff.
10514linux*oldld* | linux*aout* | linux*coff*)
10515 dynamic_linker=no
10516 ;;
10517
059850b5 10518# This must be glibc/ELF.
0044e680 10519linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
059850b5 10520 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=no
059850b5 10528
5c706339 10529 # Some binutils ld are patched to set DT_RUNPATH
059850b5
AK
10530 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 lt_cv_shlibpath_overrides_runpath=no
10534 save_LDFLAGS=$LDFLAGS
10535 save_libdir=$libdir
10536 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10537 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
10539/* end confdefs.h. */
10540
10541int
10542main ()
10543{
10544
10545 ;
10546 return 0;
10547}
10548_ACEOF
0fbeb4dc
AK
10549if ac_fn_c_try_link "$LINENO"; then :
10550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
059850b5 10551 lt_cv_shlibpath_overrides_runpath=yes
5c706339 10552fi
5c706339 10553fi
0fbeb4dc
AK
10554rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
059850b5
AK
10556 LDFLAGS=$save_LDFLAGS
10557 libdir=$save_libdir
10558
10559fi
10560
10561 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
5c706339 10562
b9668ba4
AK
10563 # This implies no fast_install, which is unacceptable.
10564 # Some rework will be needed to allow for fast_install
10565 # before this can be enabled.
10566 hardcode_into_libs=yes
10567
10568 # Append ld.so.conf contents to the search path
10569 if test -f /etc/ld.so.conf; then
059850b5 10570 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' ' '`
b9668ba4
AK
10571 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10572 fi
10573
10574 # We used to test for /lib/ld.so.1 and disable shared libraries on
10575 # powerpc, because MkLinux only supported shared libraries with the
10576 # GNU dynamic linker. Since this was broken with cross compilers,
10577 # most powerpc-linux boxes support dynamic linking these days and
10578 # people can always --disable-shared, the test was removed, and we
10579 # assume the GNU/Linux dynamic linker is in use.
10580 dynamic_linker='GNU/Linux ld.so'
10581 ;;
10582
10583netbsdelf*-gnu)
10584 version_type=linux
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=no
10591 hardcode_into_libs=yes
10592 dynamic_linker='NetBSD ld.elf_so'
10593 ;;
10594
10595netbsd*)
10596 version_type=sunos
10597 need_lib_prefix=no
10598 need_version=no
5c706339 10599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
b9668ba4
AK
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10602 dynamic_linker='NetBSD (a.out) ld.so'
10603 else
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 dynamic_linker='NetBSD ld.elf_so'
10607 fi
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10611 ;;
10612
10613newsos6)
059850b5 10614 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 ;;
10619
5c706339
AK
10620*nto* | *qnx*)
10621 version_type=qnx
b9668ba4
AK
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
5c706339
AK
10627 shlibpath_overrides_runpath=no
10628 hardcode_into_libs=yes
10629 dynamic_linker='ldqnx.so'
b9668ba4
AK
10630 ;;
10631
10632openbsd*)
10633 version_type=sunos
10634 sys_lib_dlsearch_path_spec="/usr/lib"
10635 need_lib_prefix=no
10636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10637 case $host_os in
5c706339
AK
10638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10639 *) need_version=no ;;
b9668ba4
AK
10640 esac
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10643 shlibpath_var=LD_LIBRARY_PATH
5c706339 10644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
b9668ba4
AK
10645 case $host_os in
10646 openbsd2.[89] | openbsd2.[89].*)
10647 shlibpath_overrides_runpath=no
10648 ;;
10649 *)
10650 shlibpath_overrides_runpath=yes
10651 ;;
10652 esac
10653 else
10654 shlibpath_overrides_runpath=yes
10655 fi
10656 ;;
10657
10658os2*)
10659 libname_spec='$name'
10660 shrext_cmds=".dll"
10661 need_lib_prefix=no
10662 library_names_spec='$libname${shared_ext} $libname.a'
10663 dynamic_linker='OS/2 ld.exe'
10664 shlibpath_var=LIBPATH
10665 ;;
10666
10667osf3* | osf4* | osf5*)
10668 version_type=osf
10669 need_lib_prefix=no
10670 need_version=no
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10676 ;;
10677
5c706339
AK
10678rdos*)
10679 dynamic_linker=no
10680 ;;
10681
b9668ba4 10682solaris*)
059850b5 10683 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10684 need_lib_prefix=no
10685 need_version=no
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 hardcode_into_libs=yes
10691 # ldd complains unless libraries are executable
10692 postinstall_cmds='chmod +x $lib'
10693 ;;
10694
10695sunos4*)
10696 version_type=sunos
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 if test "$with_gnu_ld" = yes; then
10702 need_lib_prefix=no
10703 fi
10704 need_version=yes
10705 ;;
10706
10707sysv4 | sysv4.3*)
059850b5 10708 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 case $host_vendor in
10713 sni)
10714 shlibpath_overrides_runpath=no
10715 need_lib_prefix=no
b9668ba4
AK
10716 runpath_var=LD_RUN_PATH
10717 ;;
10718 siemens)
10719 need_lib_prefix=no
10720 ;;
10721 motorola)
10722 need_lib_prefix=no
10723 need_version=no
10724 shlibpath_overrides_runpath=no
10725 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10726 ;;
10727 esac
10728 ;;
10729
10730sysv4*MP*)
10731 if test -d /usr/nec ;then
059850b5 10732 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10733 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10734 soname_spec='$libname${shared_ext}.$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 fi
10737 ;;
10738
10739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10740 version_type=freebsd-elf
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LD_LIBRARY_PATH
5c706339 10746 shlibpath_overrides_runpath=yes
b9668ba4
AK
10747 hardcode_into_libs=yes
10748 if test "$with_gnu_ld" = yes; then
10749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
b9668ba4
AK
10750 else
10751 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
b9668ba4
AK
10752 case $host_os in
10753 sco3.2v5*)
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10755 ;;
10756 esac
10757 fi
10758 sys_lib_dlsearch_path_spec='/usr/lib'
10759 ;;
10760
5c706339
AK
10761tpf*)
10762 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
059850b5 10763 version_type=linux # correct to gnu/linux during the next big refactor
5c706339
AK
10764 need_lib_prefix=no
10765 need_version=no
47dc80f6 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5c706339
AK
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=no
10769 hardcode_into_libs=yes
10770 ;;
10771
b9668ba4 10772uts4*)
059850b5 10773 version_type=linux # correct to gnu/linux during the next big refactor
b9668ba4
AK
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 ;;
10778
10779*)
10780 dynamic_linker=no
10781 ;;
10782esac
0fbeb4dc 10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
47dc80f6 10784$as_echo "$dynamic_linker" >&6; }
b9668ba4
AK
10785test "$dynamic_linker" = no && can_build_shared=no
10786
10787variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10788if test "$GCC" = yes; then
10789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10790fi
10791
5c706339
AK
10792if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10793 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
b9668ba4 10794fi
5c706339
AK
10795if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10796 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
b9668ba4
AK
10797fi
10798
10799
b9668ba4 10800
b9668ba4 10801
b9668ba4 10802
b9668ba4 10803
b9668ba4 10804
b9668ba4 10805
b9668ba4 10806
b9668ba4 10807
b9668ba4 10808
b9668ba4 10809
b9668ba4 10810
b9668ba4 10811
b9668ba4 10812
b9668ba4 10813
b9668ba4 10814
b9668ba4 10815
b9668ba4 10816
b9668ba4 10817
b9668ba4 10818
b9668ba4 10819
b9668ba4 10820
b9668ba4 10821
b9668ba4 10822
b9668ba4 10823
b9668ba4 10824
b9668ba4 10825
b9668ba4 10826
b9668ba4 10827
b9668ba4 10828
b9668ba4 10829
b9668ba4 10830
b9668ba4 10831
b9668ba4 10832
b9668ba4 10833
b9668ba4 10834
b9668ba4 10835
b9668ba4 10836
b9668ba4 10837
b9668ba4 10838
b9668ba4 10839
b9668ba4 10840
b9668ba4 10841
b9668ba4 10842
b9668ba4 10843
b9668ba4 10844
b9668ba4 10845
b9668ba4 10846
b9668ba4 10847
b9668ba4 10848
b9668ba4 10849
b9668ba4 10850
b9668ba4 10851
b9668ba4 10852
b9668ba4 10853
b9668ba4 10854
b9668ba4 10855
b9668ba4 10856
b9668ba4 10857
b9668ba4 10858
b9668ba4 10859
b9668ba4 10860
b9668ba4 10861
b9668ba4 10862
b9668ba4 10863
b9668ba4 10864
b9668ba4 10865
b9668ba4 10866
b9668ba4 10867
b9668ba4 10868
b9668ba4 10869
b9668ba4 10870
b9668ba4 10871
b9668ba4 10872
b9668ba4 10873
b9668ba4 10874
b9668ba4 10875
b9668ba4 10876
b9668ba4 10877
b9668ba4 10878
059850b5
AK
10879
10880
10881
10882
10883
b9668ba4 10884
b9668ba4 10885
b9668ba4 10886
b9668ba4 10887
b9668ba4 10888
b9668ba4 10889
0fbeb4dc 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
47dc80f6 10891$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5c706339
AK
10892hardcode_action=
10893if test -n "$hardcode_libdir_flag_spec" ||
10894 test -n "$runpath_var" ||
10895 test "X$hardcode_automatic" = "Xyes" ; then
b9668ba4 10896
5c706339
AK
10897 # We can hardcode non-existent directories.
10898 if test "$hardcode_direct" != no &&
10899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10900 # have to relink, otherwise we might link with an installed library
10901 # when we should be linking with a yet-to-be-installed one
10902 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10903 test "$hardcode_minus_L" != no; then
10904 # Linking always hardcodes the temporary library directory.
10905 hardcode_action=relink
10906 else
10907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10908 hardcode_action=immediate
10909 fi
10910else
10911 # We cannot hardcode anything, or else we can only hardcode existing
10912 # directories.
10913 hardcode_action=unsupported
10914fi
0fbeb4dc 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
47dc80f6 10916$as_echo "$hardcode_action" >&6; }
b9668ba4 10917
5c706339
AK
10918if test "$hardcode_action" = relink ||
10919 test "$inherit_rpath" = yes; then
10920 # Fast installation is not supported
10921 enable_fast_install=no
10922elif test "$shlibpath_overrides_runpath" = yes ||
10923 test "$enable_shared" = no; then
10924 # Fast installation is not necessary
10925 enable_fast_install=needless
10926fi
b9668ba4 10927
b9668ba4 10928
b9668ba4 10929
b9668ba4 10930
b9668ba4 10931
b9668ba4 10932
5c706339
AK
10933 if test "x$enable_dlopen" != xyes; then
10934 enable_dlopen=unknown
10935 enable_dlopen_self=unknown
10936 enable_dlopen_self_static=unknown
10937else
10938 lt_cv_dlopen=no
10939 lt_cv_dlopen_libs=
b9668ba4 10940
5c706339
AK
10941 case $host_os in
10942 beos*)
10943 lt_cv_dlopen="load_add_on"
10944 lt_cv_dlopen_libs=
10945 lt_cv_dlopen_self=yes
10946 ;;
b9668ba4 10947
47dc80f6 10948 mingw* | pw32* | cegcc*)
5c706339
AK
10949 lt_cv_dlopen="LoadLibrary"
10950 lt_cv_dlopen_libs=
10951 ;;
b9668ba4 10952
5c706339
AK
10953 cygwin*)
10954 lt_cv_dlopen="dlopen"
10955 lt_cv_dlopen_libs=
10956 ;;
b9668ba4 10957
5c706339
AK
10958 darwin*)
10959 # if libdl is installed we need to link against it
0fbeb4dc 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47dc80f6 10961$as_echo_n "checking for dlopen in -ldl... " >&6; }
059850b5 10962if ${ac_cv_lib_dl_dlopen+:} false; then :
47dc80f6 10963 $as_echo_n "(cached) " >&6
5c706339
AK
10964else
10965 ac_check_lib_save_LIBS=$LIBS
10966LIBS="-ldl $LIBS"
0fbeb4dc 10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 10968/* end confdefs.h. */
b9668ba4 10969
5c706339
AK
10970/* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973#ifdef __cplusplus
10974extern "C"
10975#endif
10976char dlopen ();
10977int
10978main ()
10979{
10980return dlopen ();
10981 ;
10982 return 0;
10983}
10984_ACEOF
0fbeb4dc 10985if ac_fn_c_try_link "$LINENO"; then :
5c706339 10986 ac_cv_lib_dl_dlopen=yes
b9668ba4 10987else
0fbeb4dc 10988 ac_cv_lib_dl_dlopen=no
b9668ba4 10989fi
0fbeb4dc
AK
10990rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
10992LIBS=$ac_check_lib_save_LIBS
10993fi
0fbeb4dc 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47dc80f6 10995$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
059850b5 10996if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5c706339
AK
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998else
b9668ba4 10999
5c706339
AK
11000 lt_cv_dlopen="dyld"
11001 lt_cv_dlopen_libs=
11002 lt_cv_dlopen_self=yes
b9668ba4 11003
5c706339 11004fi
b9668ba4 11005
0fbeb4dc 11006 ;;
b9668ba4 11007
0fbeb4dc
AK
11008 *)
11009 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
059850b5 11010if test "x$ac_cv_func_shl_load" = xyes; then :
0fbeb4dc
AK
11011 lt_cv_dlopen="shl_load"
11012else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11014$as_echo_n "checking for shl_load in -ldld... " >&6; }
059850b5 11015if ${ac_cv_lib_dld_shl_load+:} false; then :
0fbeb4dc
AK
11016 $as_echo_n "(cached) " >&6
11017else
11018 ac_check_lib_save_LIBS=$LIBS
11019LIBS="-ldld $LIBS"
11020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h. */
b9668ba4 11022
5c706339
AK
11023/* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026#ifdef __cplusplus
11027extern "C"
11028#endif
0fbeb4dc 11029char shl_load ();
5c706339
AK
11030int
11031main ()
11032{
0fbeb4dc 11033return shl_load ();
5c706339
AK
11034 ;
11035 return 0;
11036}
11037_ACEOF
0fbeb4dc
AK
11038if ac_fn_c_try_link "$LINENO"; then :
11039 ac_cv_lib_dld_shl_load=yes
5c706339 11040else
0fbeb4dc 11041 ac_cv_lib_dld_shl_load=no
5c706339 11042fi
0fbeb4dc
AK
11043rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045LIBS=$ac_check_lib_save_LIBS
5c706339 11046fi
0fbeb4dc
AK
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11048$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
059850b5 11049if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
0fbeb4dc
AK
11050 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11051else
11052 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
059850b5 11053if test "x$ac_cv_func_dlopen" = xyes; then :
5c706339
AK
11054 lt_cv_dlopen="dlopen"
11055else
0fbeb4dc 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47dc80f6 11057$as_echo_n "checking for dlopen in -ldl... " >&6; }
059850b5 11058if ${ac_cv_lib_dl_dlopen+:} false; then :
47dc80f6 11059 $as_echo_n "(cached) " >&6
5c706339
AK
11060else
11061 ac_check_lib_save_LIBS=$LIBS
11062LIBS="-ldl $LIBS"
0fbeb4dc 11063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11064/* end confdefs.h. */
b9668ba4 11065
5c706339
AK
11066/* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11069#ifdef __cplusplus
11070extern "C"
11071#endif
11072char dlopen ();
11073int
11074main ()
11075{
11076return dlopen ();
11077 ;
11078 return 0;
11079}
11080_ACEOF
0fbeb4dc 11081if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11082 ac_cv_lib_dl_dlopen=yes
11083else
0fbeb4dc 11084 ac_cv_lib_dl_dlopen=no
5c706339 11085fi
0fbeb4dc
AK
11086rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11088LIBS=$ac_check_lib_save_LIBS
11089fi
0fbeb4dc 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47dc80f6 11091$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
059850b5 11092if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5c706339
AK
11093 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11094else
0fbeb4dc 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
47dc80f6 11096$as_echo_n "checking for dlopen in -lsvld... " >&6; }
059850b5 11097if ${ac_cv_lib_svld_dlopen+:} false; then :
47dc80f6 11098 $as_echo_n "(cached) " >&6
5c706339
AK
11099else
11100 ac_check_lib_save_LIBS=$LIBS
11101LIBS="-lsvld $LIBS"
0fbeb4dc 11102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11103/* end confdefs.h. */
b9668ba4 11104
5c706339
AK
11105/* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108#ifdef __cplusplus
11109extern "C"
11110#endif
11111char dlopen ();
11112int
11113main ()
11114{
11115return dlopen ();
11116 ;
11117 return 0;
11118}
11119_ACEOF
0fbeb4dc 11120if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11121 ac_cv_lib_svld_dlopen=yes
11122else
0fbeb4dc 11123 ac_cv_lib_svld_dlopen=no
5c706339 11124fi
0fbeb4dc
AK
11125rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11127LIBS=$ac_check_lib_save_LIBS
11128fi
0fbeb4dc 11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
47dc80f6 11130$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
059850b5 11131if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
5c706339
AK
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11133else
0fbeb4dc 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
47dc80f6 11135$as_echo_n "checking for dld_link in -ldld... " >&6; }
059850b5 11136if ${ac_cv_lib_dld_dld_link+:} false; then :
47dc80f6 11137 $as_echo_n "(cached) " >&6
5c706339
AK
11138else
11139 ac_check_lib_save_LIBS=$LIBS
11140LIBS="-ldld $LIBS"
0fbeb4dc 11141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11142/* end confdefs.h. */
b9668ba4 11143
5c706339
AK
11144/* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147#ifdef __cplusplus
11148extern "C"
11149#endif
11150char dld_link ();
11151int
11152main ()
11153{
11154return dld_link ();
11155 ;
11156 return 0;
11157}
11158_ACEOF
0fbeb4dc 11159if ac_fn_c_try_link "$LINENO"; then :
5c706339
AK
11160 ac_cv_lib_dld_dld_link=yes
11161else
0fbeb4dc 11162 ac_cv_lib_dld_dld_link=no
5c706339 11163fi
0fbeb4dc
AK
11164rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
5c706339
AK
11166LIBS=$ac_check_lib_save_LIBS
11167fi
0fbeb4dc 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
47dc80f6 11169$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
059850b5 11170if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
5c706339
AK
11171 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11172fi
b9668ba4 11173
b9668ba4 11174
5c706339 11175fi
b9668ba4 11176
b9668ba4 11177
5c706339 11178fi
b9668ba4 11179
b9668ba4 11180
5c706339 11181fi
b9668ba4 11182
b9668ba4 11183
5c706339 11184fi
b9668ba4 11185
b9668ba4 11186
5c706339 11187fi
b9668ba4 11188
5c706339
AK
11189 ;;
11190 esac
b9668ba4 11191
5c706339
AK
11192 if test "x$lt_cv_dlopen" != xno; then
11193 enable_dlopen=yes
11194 else
11195 enable_dlopen=no
b9668ba4
AK
11196 fi
11197
5c706339
AK
11198 case $lt_cv_dlopen in
11199 dlopen)
11200 save_CPPFLAGS="$CPPFLAGS"
11201 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11202
11203 save_LDFLAGS="$LDFLAGS"
11204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b9668ba4 11205
5c706339
AK
11206 save_LIBS="$LIBS"
11207 LIBS="$lt_cv_dlopen_libs $LIBS"
b9668ba4 11208
0fbeb4dc 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
47dc80f6 11210$as_echo_n "checking whether a program can dlopen itself... " >&6; }
059850b5 11211if ${lt_cv_dlopen_self+:} false; then :
47dc80f6 11212 $as_echo_n "(cached) " >&6
b9668ba4 11213else
5c706339
AK
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self=cross
b9668ba4 11216else
5c706339
AK
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
059850b5 11220#line $LINENO "configure"
5c706339 11221#include "confdefs.h"
b9668ba4 11222
5c706339
AK
11223#if HAVE_DLFCN_H
11224#include <dlfcn.h>
11225#endif
b9668ba4 11226
5c706339 11227#include <stdio.h>
b9668ba4 11228
5c706339
AK
11229#ifdef RTLD_GLOBAL
11230# define LT_DLGLOBAL RTLD_GLOBAL
11231#else
11232# ifdef DL_GLOBAL
11233# define LT_DLGLOBAL DL_GLOBAL
11234# else
11235# define LT_DLGLOBAL 0
11236# endif
11237#endif
b9668ba4 11238
5c706339
AK
11239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241#ifndef LT_DLLAZY_OR_NOW
11242# ifdef RTLD_LAZY
11243# define LT_DLLAZY_OR_NOW RTLD_LAZY
11244# else
11245# ifdef DL_LAZY
11246# define LT_DLLAZY_OR_NOW DL_LAZY
11247# else
11248# ifdef RTLD_NOW
11249# define LT_DLLAZY_OR_NOW RTLD_NOW
11250# else
11251# ifdef DL_NOW
11252# define LT_DLLAZY_OR_NOW DL_NOW
11253# else
11254# define LT_DLLAZY_OR_NOW 0
11255# endif
11256# endif
11257# endif
11258# endif
11259#endif
b9668ba4 11260
059850b5
AK
11261/* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264int fnord () __attribute__((visibility("default")));
11265#endif
11266
11267int fnord () { return 42; }
5c706339
AK
11268int main ()
11269{
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
b9668ba4 11272
5c706339
AK
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
059850b5
AK
11276 else
11277 {
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11280 }
5c706339
AK
11281 /* dlclose (self); */
11282 }
11283 else
11284 puts (dlerror ());
b9668ba4 11285
47dc80f6 11286 return status;
5c706339
AK
11287}
11288_LT_EOF
0fbeb4dc 11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5c706339
AK
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
0fbeb4dc
AK
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
5c706339
AK
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self=no
11304 fi
b9668ba4 11305fi
5c706339 11306rm -fr conftest*
b9668ba4
AK
11307
11308
b9668ba4 11309fi
0fbeb4dc 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
47dc80f6 11311$as_echo "$lt_cv_dlopen_self" >&6; }
b9668ba4 11312
5c706339
AK
11313 if test "x$lt_cv_dlopen_self" = xyes; then
11314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
0fbeb4dc 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
47dc80f6 11316$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
059850b5 11317if ${lt_cv_dlopen_self_static+:} false; then :
47dc80f6 11318 $as_echo_n "(cached) " >&6
5c706339
AK
11319else
11320 if test "$cross_compiling" = yes; then :
11321 lt_cv_dlopen_self_static=cross
11322else
11323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11324 lt_status=$lt_dlunknown
11325 cat > conftest.$ac_ext <<_LT_EOF
059850b5 11326#line $LINENO "configure"
5c706339 11327#include "confdefs.h"
b9668ba4 11328
5c706339
AK
11329#if HAVE_DLFCN_H
11330#include <dlfcn.h>
11331#endif
b9668ba4 11332
5c706339 11333#include <stdio.h>
b9668ba4 11334
5c706339
AK
11335#ifdef RTLD_GLOBAL
11336# define LT_DLGLOBAL RTLD_GLOBAL
11337#else
11338# ifdef DL_GLOBAL
11339# define LT_DLGLOBAL DL_GLOBAL
11340# else
11341# define LT_DLGLOBAL 0
11342# endif
11343#endif
b9668ba4 11344
5c706339
AK
11345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11346 find out it does not work in some platform. */
11347#ifndef LT_DLLAZY_OR_NOW
11348# ifdef RTLD_LAZY
11349# define LT_DLLAZY_OR_NOW RTLD_LAZY
11350# else
11351# ifdef DL_LAZY
11352# define LT_DLLAZY_OR_NOW DL_LAZY
11353# else
11354# ifdef RTLD_NOW
11355# define LT_DLLAZY_OR_NOW RTLD_NOW
11356# else
11357# ifdef DL_NOW
11358# define LT_DLLAZY_OR_NOW DL_NOW
11359# else
11360# define LT_DLLAZY_OR_NOW 0
11361# endif
11362# endif
11363# endif
11364# endif
11365#endif
11366
059850b5
AK
11367/* When -fvisbility=hidden is used, assume the code has been annotated
11368 correspondingly for the symbols needed. */
11369#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11370int fnord () __attribute__((visibility("default")));
11371#endif
11372
11373int fnord () { return 42; }
5c706339
AK
11374int main ()
11375{
11376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11377 int status = $lt_dlunknown;
11378
11379 if (self)
11380 {
11381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
059850b5
AK
11382 else
11383 {
11384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11385 else puts (dlerror ());
11386 }
5c706339
AK
11387 /* dlclose (self); */
11388 }
11389 else
11390 puts (dlerror ());
11391
47dc80f6 11392 return status;
5c706339
AK
11393}
11394_LT_EOF
0fbeb4dc 11395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5c706339
AK
11396 (eval $ac_link) 2>&5
11397 ac_status=$?
0fbeb4dc
AK
11398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11399 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
5c706339
AK
11400 (./conftest; exit; ) >&5 2>/dev/null
11401 lt_status=$?
11402 case x$lt_status in
11403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
b9668ba4 11406 esac
5c706339
AK
11407 else :
11408 # compilation failed
11409 lt_cv_dlopen_self_static=no
11410 fi
11411fi
11412rm -fr conftest*
b9668ba4 11413
b9668ba4 11414
5c706339 11415fi
0fbeb4dc 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
47dc80f6 11417$as_echo "$lt_cv_dlopen_self_static" >&6; }
5c706339 11418 fi
b9668ba4 11419
5c706339
AK
11420 CPPFLAGS="$save_CPPFLAGS"
11421 LDFLAGS="$save_LDFLAGS"
11422 LIBS="$save_LIBS"
11423 ;;
11424 esac
b9668ba4 11425
5c706339
AK
11426 case $lt_cv_dlopen_self in
11427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11428 *) enable_dlopen_self=unknown ;;
11429 esac
b9668ba4 11430
5c706339
AK
11431 case $lt_cv_dlopen_self_static in
11432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11433 *) enable_dlopen_self_static=unknown ;;
11434 esac
11435fi
b9668ba4 11436
b9668ba4 11437
b9668ba4 11438
b9668ba4 11439
b9668ba4 11440
b9668ba4 11441
b9668ba4 11442
b9668ba4 11443
b9668ba4 11444
b9668ba4 11445
b9668ba4 11446
b9668ba4 11447
b9668ba4 11448
b9668ba4 11449
b9668ba4 11450
b9668ba4 11451
b9668ba4 11452
5c706339
AK
11453striplib=
11454old_striplib=
0fbeb4dc 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
47dc80f6 11456$as_echo_n "checking whether stripping libraries is possible... " >&6; }
5c706339
AK
11457if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11458 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11459 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
0fbeb4dc 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 11461$as_echo "yes" >&6; }
5c706339
AK
11462else
11463# FIXME - insert some real tests, host_os isn't really good enough
11464 case $host_os in
11465 darwin*)
11466 if test -n "$STRIP" ; then
11467 striplib="$STRIP -x"
11468 old_striplib="$STRIP -S"
0fbeb4dc 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47dc80f6 11470$as_echo "yes" >&6; }
5c706339 11471 else
0fbeb4dc 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 11473$as_echo "no" >&6; }
5c706339
AK
11474 fi
11475 ;;
11476 *)
0fbeb4dc 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 11478$as_echo "no" >&6; }
5c706339
AK
11479 ;;
11480 esac
11481fi
b9668ba4 11482
b9668ba4 11483
b9668ba4 11484
b9668ba4 11485
b9668ba4 11486
b9668ba4 11487
b9668ba4
AK
11488
11489
b9668ba4 11490
b9668ba4 11491
b9668ba4 11492
b9668ba4 11493
5c706339 11494 # Report which library types will actually be built
0fbeb4dc 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
47dc80f6 11496$as_echo_n "checking if libtool supports shared libraries... " >&6; }
0fbeb4dc 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
47dc80f6 11498$as_echo "$can_build_shared" >&6; }
b9668ba4 11499
0fbeb4dc 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
47dc80f6 11501$as_echo_n "checking whether to build shared libraries... " >&6; }
5c706339 11502 test "$can_build_shared" = "no" && enable_shared=no
b9668ba4 11503
5c706339
AK
11504 # On AIX, shared libraries and static libraries use the same namespace, and
11505 # are all built from PIC.
11506 case $host_os in
11507 aix3*)
11508 test "$enable_shared" = yes && enable_static=no
11509 if test -n "$RANLIB"; then
11510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11511 postinstall_cmds='$RANLIB $lib'
11512 fi
11513 ;;
b9668ba4 11514
5c706339
AK
11515 aix[4-9]*)
11516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11517 test "$enable_shared" = yes && enable_static=no
11518 fi
11519 ;;
11520 esac
0fbeb4dc 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
47dc80f6 11522$as_echo "$enable_shared" >&6; }
b9668ba4 11523
0fbeb4dc 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
47dc80f6 11525$as_echo_n "checking whether to build static libraries... " >&6; }
5c706339
AK
11526 # Make sure either enable_shared or enable_static is yes.
11527 test "$enable_shared" = yes || enable_static=yes
0fbeb4dc 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
47dc80f6 11529$as_echo "$enable_static" >&6; }
b9668ba4 11530
b9668ba4 11531
b9668ba4 11532
b9668ba4 11533
5c706339
AK
11534fi
11535ac_ext=c
11536ac_cpp='$CPP $CPPFLAGS'
11537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 11540
5c706339 11541CC="$lt_save_CC"
b9668ba4 11542
b9668ba4 11543
b9668ba4 11544
b9668ba4 11545
b9668ba4 11546
b9668ba4 11547
b9668ba4 11548
b9668ba4 11549
b9668ba4 11550
b9668ba4 11551
b9668ba4 11552
b9668ba4 11553
b9668ba4 11554
059850b5
AK
11555
11556
5c706339 11557 ac_config_commands="$ac_config_commands libtool"
b9668ba4 11558
b9668ba4 11559
b9668ba4 11560
b9668ba4 11561
5c706339 11562# Only expand once:
b9668ba4 11563
b9668ba4 11564
b9668ba4 11565
5c706339
AK
11566# Extract the first word of "doxygen", so it can be a program name with args.
11567set dummy doxygen; ac_word=$2
0fbeb4dc 11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47dc80f6 11569$as_echo_n "checking for $ac_word... " >&6; }
059850b5 11570if ${ac_cv_prog_DOXYGEN+:} false; then :
47dc80f6 11571 $as_echo_n "(cached) " >&6
5c706339
AK
11572else
11573 if test -n "$DOXYGEN"; then
11574 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
0fbeb4dc 11581 for ac_exec_ext in '' $ac_executable_extensions; do
0044e680 11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5c706339 11583 ac_cv_prog_DOXYGEN="true"
0fbeb4dc 11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5c706339
AK
11585 break 2
11586 fi
11587done
0fbeb4dc 11588 done
5c706339 11589IFS=$as_save_IFS
b9668ba4 11590
5c706339
AK
11591 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
11592fi
11593fi
11594DOXYGEN=$ac_cv_prog_DOXYGEN
11595if test -n "$DOXYGEN"; then
0fbeb4dc 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
47dc80f6 11597$as_echo "$DOXYGEN" >&6; }
5c706339 11598else
0fbeb4dc 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47dc80f6 11600$as_echo "no" >&6; }
5c706339 11601fi
b9668ba4 11602
b9668ba4 11603
5c706339
AK
11604 if test "$DOXYGEN" = true; then
11605 DOXYGEN_TRUE=
11606 DOXYGEN_FALSE='#'
11607else
11608 DOXYGEN_TRUE='#'
11609 DOXYGEN_FALSE=
11610fi
b9668ba4 11611
b9668ba4 11612
5c706339 11613# Checks for header files.
0fbeb4dc 11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
47dc80f6 11615$as_echo_n "checking for ANSI C header files... " >&6; }
059850b5 11616if ${ac_cv_header_stdc+:} false; then :
47dc80f6 11617 $as_echo_n "(cached) " >&6
5c706339 11618else
0fbeb4dc 11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
11620/* end confdefs.h. */
11621#include <stdlib.h>
11622#include <stdarg.h>
11623#include <string.h>
11624#include <float.h>
b9668ba4 11625
5c706339
AK
11626int
11627main ()
11628{
b9668ba4 11629
5c706339
AK
11630 ;
11631 return 0;
11632}
11633_ACEOF
0fbeb4dc 11634if ac_fn_c_try_compile "$LINENO"; then :
5c706339
AK
11635 ac_cv_header_stdc=yes
11636else
0fbeb4dc 11637 ac_cv_header_stdc=no
5c706339 11638fi
5c706339 11639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 11640
5c706339
AK
11641if test $ac_cv_header_stdc = yes; then
11642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0fbeb4dc 11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
11644/* end confdefs.h. */
11645#include <string.h>
b9668ba4 11646
5c706339
AK
11647_ACEOF
11648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
11649 $EGREP "memchr" >/dev/null 2>&1; then :
11650
5c706339
AK
11651else
11652 ac_cv_header_stdc=no
11653fi
11654rm -f conftest*
b9668ba4 11655
5c706339 11656fi
b9668ba4 11657
5c706339
AK
11658if test $ac_cv_header_stdc = yes; then
11659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
0fbeb4dc 11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
11661/* end confdefs.h. */
11662#include <stdlib.h>
b9668ba4 11663
5c706339
AK
11664_ACEOF
11665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0fbeb4dc
AK
11666 $EGREP "free" >/dev/null 2>&1; then :
11667
5c706339
AK
11668else
11669 ac_cv_header_stdc=no
11670fi
11671rm -f conftest*
b9668ba4 11672
5c706339 11673fi
b9668ba4 11674
5c706339
AK
11675if test $ac_cv_header_stdc = yes; then
11676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0fbeb4dc 11677 if test "$cross_compiling" = yes; then :
5c706339 11678 :
b9668ba4 11679else
0fbeb4dc 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339
AK
11681/* end confdefs.h. */
11682#include <ctype.h>
11683#include <stdlib.h>
11684#if ((' ' & 0x0FF) == 0x020)
11685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11687#else
11688# define ISLOWER(c) \
11689 (('a' <= (c) && (c) <= 'i') \
11690 || ('j' <= (c) && (c) <= 'r') \
11691 || ('s' <= (c) && (c) <= 'z'))
11692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11693#endif
b9668ba4 11694
5c706339
AK
11695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11696int
11697main ()
11698{
11699 int i;
11700 for (i = 0; i < 256; i++)
11701 if (XOR (islower (i), ISLOWER (i))
11702 || toupper (i) != TOUPPER (i))
11703 return 2;
11704 return 0;
11705}
11706_ACEOF
0fbeb4dc 11707if ac_fn_c_try_run "$LINENO"; then :
b9668ba4 11708
0fbeb4dc
AK
11709else
11710 ac_cv_header_stdc=no
5c706339 11711fi
0fbeb4dc
AK
11712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11713 conftest.$ac_objext conftest.beam conftest.$ac_ext
5c706339 11714fi
b9668ba4 11715
5c706339
AK
11716fi
11717fi
0fbeb4dc 11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
47dc80f6 11719$as_echo "$ac_cv_header_stdc" >&6; }
5c706339 11720if test $ac_cv_header_stdc = yes; then
b9668ba4 11721
0fbeb4dc 11722$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b9668ba4 11723
5c706339 11724fi
b9668ba4 11725
5c706339 11726for ac_header in stdlib.h
0fbeb4dc
AK
11727do :
11728 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
059850b5 11729if test "x$ac_cv_header_stdlib_h" = xyes; then :
5c706339 11730 cat >>confdefs.h <<_ACEOF
0fbeb4dc 11731#define HAVE_STDLIB_H 1
5c706339 11732_ACEOF
b9668ba4 11733
5c706339 11734fi
b9668ba4 11735
5c706339 11736done
b9668ba4 11737
b9668ba4 11738
5c706339 11739# Checks for typedefs, structures, and compiler characteristics.
0fbeb4dc 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
47dc80f6 11741$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
059850b5 11742if ${ac_cv_c_const+:} false; then :
47dc80f6 11743 $as_echo_n "(cached) " >&6
5c706339 11744else
0fbeb4dc 11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5c706339 11746/* end confdefs.h. */
b9668ba4 11747
5c706339
AK
11748int
11749main ()
11750{
0044e680 11751
5c706339 11752#ifndef __cplusplus
0044e680 11753 /* Ultrix mips cc rejects this sort of thing. */
5c706339 11754 typedef int charset[2];
0044e680 11755 const charset cs = { 0, 0 };
5c706339
AK
11756 /* SunOS 4.1.1 cc rejects this. */
11757 char const *const *pcpcc;
11758 char **ppc;
11759 /* NEC SVR4.0.2 mips cc rejects this. */
11760 struct point {int x, y;};
11761 static struct point const zero = {0,0};
11762 /* AIX XL C 1.02.0.0 rejects this.
11763 It does not let you subtract one const X* pointer from another in
11764 an arm of an if-expression whose if-part is not a constant
11765 expression */
11766 const char *g = "string";
11767 pcpcc = &g + (g ? g-g : 0);
11768 /* HPUX 7.0 cc rejects these. */
11769 ++pcpcc;
11770 ppc = (char**) pcpcc;
11771 pcpcc = (char const *const *) ppc;
0044e680
AK
11772 { /* SCO 3.2v4 cc rejects this sort of thing. */
11773 char tx;
11774 char *t = &tx;
5c706339 11775 char const *s = 0 ? (char *) 0 : (char const *) 0;
b9668ba4 11776
5c706339
AK
11777 *t++ = 0;
11778 if (s) return 0;
11779 }
11780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11781 int x[] = {25, 17};
11782 const int *foo = &x[0];
11783 ++foo;
11784 }
11785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11786 typedef const int *iptr;
11787 iptr p = 0;
11788 ++p;
11789 }
0044e680 11790 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5c706339 11791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
0044e680
AK
11792 struct s { int j; const int *ap[3]; } bx;
11793 struct s *b = &bx; b->j = 5;
5c706339
AK
11794 }
11795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11796 const int foo = 10;
0fbeb4dc
AK
11797 if (!foo) return 0;
11798 }
11799 return !cs[0] && !zero.x;
11800#endif
11801
5c706339
AK
11802 ;
11803 return 0;
11804}
11805_ACEOF
0fbeb4dc
AK
11806if ac_fn_c_try_compile "$LINENO"; then :
11807 ac_cv_c_const=yes
47dc80f6 11808else
0fbeb4dc 11809 ac_cv_c_const=no
47dc80f6 11810fi
47dc80f6 11811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0fbeb4dc
AK
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11814$as_echo "$ac_cv_c_const" >&6; }
11815if test $ac_cv_c_const = no; then
b9668ba4 11816
0fbeb4dc 11817$as_echo "#define const /**/" >>confdefs.h
47dc80f6 11818
5c706339 11819fi
b9668ba4 11820
0fbeb4dc 11821ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
059850b5 11822if test "x$ac_cv_type_size_t" = xyes; then :
0fbeb4dc 11823
5c706339 11824else
b9668ba4 11825
5c706339
AK
11826cat >>confdefs.h <<_ACEOF
11827#define size_t unsigned int
11828_ACEOF
b9668ba4 11829
5c706339 11830fi
b9668ba4 11831
b9668ba4 11832
5c706339 11833# Define Makefiles.
0fbeb4dc 11834ac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
b9668ba4 11835
b9668ba4 11836
5c706339
AK
11837# Generate the "configure" script.
11838cat >confcache <<\_ACEOF
11839# This file is a shell script that caches the results of configure
11840# tests run on this system so they can be shared between configure
11841# scripts and configure runs, see configure's option --config-cache.
11842# It is not useful on other systems. If it contains results you don't
11843# want to keep, you may remove or edit it.
11844#
11845# config.status only pays attention to the cache file if you give it
11846# the --recheck option to rerun configure.
11847#
11848# `ac_cv_env_foo' variables (set or unset) will be overridden when
11849# loading this file, other *unset* `ac_cv_foo' will be assigned the
11850# following values.
b9668ba4 11851
5c706339 11852_ACEOF
b9668ba4 11853
5c706339
AK
11854# The following way of writing the cache mishandles newlines in values,
11855# but we know of no workaround that is simple, portable, and efficient.
11856# So, we kill variables containing newlines.
11857# Ultrix sh set writes to stderr and can't be redirected directly,
11858# and sets the high bit in the cache file unless we assign to the vars.
11859(
11860 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11861 eval ac_val=\$$ac_var
11862 case $ac_val in #(
11863 *${as_nl}*)
11864 case $ac_var in #(
0fbeb4dc 11865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47dc80f6 11866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5c706339
AK
11867 esac
11868 case $ac_var in #(
11869 _ | IFS | as_nl) ;; #(
47dc80f6 11870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0fbeb4dc 11871 *) { eval $ac_var=; unset $ac_var;} ;;
5c706339
AK
11872 esac ;;
11873 esac
11874 done
b9668ba4 11875
5c706339
AK
11876 (set) 2>&1 |
11877 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11878 *${as_nl}ac_space=\ *)
0fbeb4dc
AK
11879 # `set' does not quote correctly, so add quotes: double-quote
11880 # substitution turns \\\\ into \\, and sed turns \\ into \.
5c706339
AK
11881 sed -n \
11882 "s/'/'\\\\''/g;
11883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11884 ;; #(
11885 *)
11886 # `set' quotes correctly as required by POSIX, so do not add quotes.
11887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11888 ;;
11889 esac |
11890 sort
11891) |
11892 sed '
11893 /^ac_cv_env_/b end
11894 t clear
11895 :clear
11896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11897 t end
11898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11899 :end' >>confcache
11900if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11901 if test -w "$cache_file"; then
059850b5 11902 if test "x$cache_file" != "x/dev/null"; then
0fbeb4dc 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47dc80f6 11904$as_echo "$as_me: updating cache $cache_file" >&6;}
059850b5
AK
11905 if test ! -f "$cache_file" || test -h "$cache_file"; then
11906 cat confcache >"$cache_file"
11907 else
11908 case $cache_file in #(
11909 */* | ?:*)
11910 mv -f confcache "$cache_file"$$ &&
11911 mv -f "$cache_file"$$ "$cache_file" ;; #(
11912 *)
11913 mv -f confcache "$cache_file" ;;
11914 esac
11915 fi
11916 fi
5c706339 11917 else
0fbeb4dc 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47dc80f6 11919$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5c706339
AK
11920 fi
11921fi
11922rm -f confcache
b9668ba4 11923
5c706339
AK
11924test "x$prefix" = xNONE && prefix=$ac_default_prefix
11925# Let make expand exec_prefix.
11926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b9668ba4 11927
5c706339 11928DEFS=-DHAVE_CONFIG_H
b9668ba4 11929
5c706339
AK
11930ac_libobjs=
11931ac_ltlibobjs=
0fbeb4dc 11932U=
5c706339
AK
11933for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11934 # 1. Remove the extension, and $U if already installed.
11935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47dc80f6 11936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5c706339
AK
11937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11938 # will be set to the directory where LIBOBJS objects are built.
0fbeb4dc
AK
11939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5c706339
AK
11941done
11942LIBOBJS=$ac_libobjs
b9668ba4 11943
5c706339 11944LTLIBOBJS=$ac_ltlibobjs
b9668ba4 11945
b9668ba4 11946
0044e680
AK
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11948$as_echo_n "checking that generated files are newer than configure... " >&6; }
11949 if test -n "$am_sleep_pid"; then
11950 # Hide warnings about reused PIDs.
11951 wait $am_sleep_pid 2>/dev/null
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11954$as_echo "done" >&6; }
0fbeb4dc
AK
11955 if test -n "$EXEEXT"; then
11956 am__EXEEXT_TRUE=
11957 am__EXEEXT_FALSE='#'
11958else
11959 am__EXEEXT_TRUE='#'
11960 am__EXEEXT_FALSE=
11961fi
11962
5c706339 11963if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
0fbeb4dc
AK
11964 as_fn_error $? "conditional \"AMDEP\" was never defined.
11965Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339
AK
11966fi
11967if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
0fbeb4dc
AK
11968 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11969Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339
AK
11970fi
11971if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
0fbeb4dc
AK
11972 as_fn_error $? "conditional \"DOXYGEN\" was never defined.
11973Usually this means the macro was only invoked conditionally." "$LINENO" 5
5c706339 11974fi
b9668ba4 11975
059850b5 11976: "${CONFIG_STATUS=./config.status}"
47dc80f6 11977ac_write_fail=0
5c706339
AK
11978ac_clean_files_save=$ac_clean_files
11979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
0fbeb4dc 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
47dc80f6 11981$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
0fbeb4dc
AK
11982as_write_fail=0
11983cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5c706339
AK
11984#! $SHELL
11985# Generated by $as_me.
11986# Run this file to recreate the current configuration.
11987# Compiler output produced by configure, useful for debugging
11988# configure, is in config.log if it exists.
b9668ba4 11989
5c706339
AK
11990debug=false
11991ac_cs_recheck=false
11992ac_cs_silent=false
b9668ba4 11993
0fbeb4dc
AK
11994SHELL=\${CONFIG_SHELL-$SHELL}
11995export SHELL
11996_ASEOF
11997cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11998## -------------------- ##
11999## M4sh Initialization. ##
12000## -------------------- ##
b9668ba4 12001
5c706339
AK
12002# Be more Bourne compatible
12003DUALCASE=1; export DUALCASE # for MKS sh
0fbeb4dc 12004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5c706339
AK
12005 emulate sh
12006 NULLCMD=:
47dc80f6 12007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5c706339
AK
12008 # is contrary to our usage. Disable this feature.
12009 alias -g '${1+"$@"}'='"$@"'
12010 setopt NO_GLOB_SUBST
12011else
0fbeb4dc
AK
12012 case `(set -o) 2>/dev/null` in #(
12013 *posix*) :
12014 set -o posix ;; #(
12015 *) :
12016 ;;
5c706339 12017esac
5c706339 12018fi
b9668ba4 12019
b9668ba4 12020
47dc80f6
AK
12021as_nl='
12022'
12023export as_nl
12024# Printing a long string crashes Solaris 7 /usr/bin/printf.
12025as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12026as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12027as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
0fbeb4dc
AK
12028# Prefer a ksh shell builtin over an external printf program on Solaris,
12029# but without wasting forks for bash or zsh.
12030if test -z "$BASH_VERSION$ZSH_VERSION" \
12031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12032 as_echo='print -r --'
12033 as_echo_n='print -rn --'
12034elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47dc80f6
AK
12035 as_echo='printf %s\n'
12036 as_echo_n='printf %s'
12037else
12038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12040 as_echo_n='/usr/ucb/echo -n'
5c706339 12041 else
47dc80f6
AK
12042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12043 as_echo_n_body='eval
12044 arg=$1;
0fbeb4dc 12045 case $arg in #(
47dc80f6
AK
12046 *"$as_nl"*)
12047 expr "X$arg" : "X\\(.*\\)$as_nl";
12048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12049 esac;
12050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12051 '
12052 export as_echo_n_body
12053 as_echo_n='sh -c $as_echo_n_body as_echo'
5c706339 12054 fi
47dc80f6
AK
12055 export as_echo_body
12056 as_echo='sh -c $as_echo_body as_echo'
12057fi
12058
12059# The user is always right.
12060if test "${PATH_SEPARATOR+set}" != set; then
12061 PATH_SEPARATOR=:
12062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12064 PATH_SEPARATOR=';'
12065 }
5c706339 12066fi
b9668ba4 12067
b9668ba4 12068
5c706339
AK
12069# IFS
12070# We need space, tab and new line, in precisely that order. Quoting is
12071# there to prevent editors from complaining about space-tab.
12072# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12073# splitting by setting IFS to empty value.)
5c706339 12074IFS=" "" $as_nl"
b9668ba4 12075
5c706339 12076# Find who we are. Look in the path if we contain no directory separator.
059850b5 12077as_myself=
0fbeb4dc 12078case $0 in #((
5c706339
AK
12079 *[\\/]* ) as_myself=$0 ;;
12080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
0fbeb4dc
AK
12085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12086 done
5c706339 12087IFS=$as_save_IFS
b9668ba4 12088
5c706339
AK
12089 ;;
12090esac
12091# We did not find ourselves, most probably we were run as `sh COMMAND'
12092# in which case we are not to be found in the path.
12093if test "x$as_myself" = x; then
12094 as_myself=$0
12095fi
12096if test ! -f "$as_myself"; then
47dc80f6 12097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0fbeb4dc 12098 exit 1
5c706339 12099fi
b9668ba4 12100
0fbeb4dc
AK
12101# Unset variables that we do not need and which cause bugs (e.g. in
12102# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12103# suppresses any "Segmentation fault" message there. '((' could
12104# trigger a bug in pdksh 5.2.14.
12105for as_var in BASH_ENV ENV MAIL MAILPATH
12106do eval test x\${$as_var+set} = xset \
12107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5c706339
AK
12108done
12109PS1='$ '
12110PS2='> '
12111PS4='+ '
b9668ba4 12112
5c706339 12113# NLS nuisances.
47dc80f6
AK
12114LC_ALL=C
12115export LC_ALL
12116LANGUAGE=C
12117export LANGUAGE
b9668ba4 12118
0fbeb4dc
AK
12119# CDPATH.
12120(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12121
12122
12123# as_fn_error STATUS ERROR [LINENO LOG_FD]
12124# ----------------------------------------
12125# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12126# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12127# script with STATUS, using 1 if that was 0.
12128as_fn_error ()
12129{
12130 as_status=$1; test $as_status -eq 0 && as_status=1
12131 if test "$4"; then
12132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12134 fi
12135 $as_echo "$as_me: error: $2" >&2
12136 as_fn_exit $as_status
12137} # as_fn_error
12138
12139
12140# as_fn_set_status STATUS
12141# -----------------------
12142# Set $? to STATUS, without forking.
12143as_fn_set_status ()
12144{
12145 return $1
12146} # as_fn_set_status
12147
12148# as_fn_exit STATUS
12149# -----------------
12150# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12151as_fn_exit ()
12152{
12153 set +e
12154 as_fn_set_status $1
12155 exit $1
12156} # as_fn_exit
12157
12158# as_fn_unset VAR
12159# ---------------
12160# Portably unset VAR.
12161as_fn_unset ()
12162{
12163 { eval $1=; unset $1;}
12164}
12165as_unset=as_fn_unset
12166# as_fn_append VAR VALUE
12167# ----------------------
12168# Append the text in VALUE to the end of the definition contained in VAR. Take
12169# advantage of any shell optimizations that allow amortized linear growth over
12170# repeated appends, instead of the typical quadratic growth present in naive
12171# implementations.
12172if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12173 eval 'as_fn_append ()
12174 {
12175 eval $1+=\$2
12176 }'
12177else
12178 as_fn_append ()
12179 {
12180 eval $1=\$$1\$2
12181 }
12182fi # as_fn_append
12183
12184# as_fn_arith ARG...
12185# ------------------
12186# Perform arithmetic evaluation on the ARGs, and store the result in the
12187# global $as_val. Take advantage of shells that can avoid forks. The arguments
12188# must be portable across $(()) and expr.
12189if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12190 eval 'as_fn_arith ()
12191 {
12192 as_val=$(( $* ))
12193 }'
12194else
12195 as_fn_arith ()
12196 {
12197 as_val=`expr "$@" || test $? -eq 1`
12198 }
12199fi # as_fn_arith
12200
12201
5c706339
AK
12202if expr a : '\(a\)' >/dev/null 2>&1 &&
12203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12204 as_expr=expr
12205else
12206 as_expr=false
12207fi
b9668ba4 12208
5c706339
AK
12209if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12210 as_basename=basename
12211else
12212 as_basename=false
12213fi
b9668ba4 12214
0fbeb4dc
AK
12215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12216 as_dirname=dirname
12217else
12218 as_dirname=false
12219fi
b9668ba4 12220
5c706339
AK
12221as_me=`$as_basename -- "$0" ||
12222$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12223 X"$0" : 'X\(//\)$' \| \
12224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 12225$as_echo X/"$0" |
5c706339
AK
12226 sed '/^.*\/\([^/][^/]*\)\/*$/{
12227 s//\1/
12228 q
12229 }
12230 /^X\/\(\/\/\)$/{
12231 s//\1/
12232 q
12233 }
12234 /^X\/\(\/\).*/{
12235 s//\1/
12236 q
12237 }
12238 s/.*/./; q'`
b9668ba4 12239
0fbeb4dc
AK
12240# Avoid depending upon Character Ranges.
12241as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12242as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12243as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12244as_cr_digits='0123456789'
12245as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 12246
5c706339 12247ECHO_C= ECHO_N= ECHO_T=
0fbeb4dc 12248case `echo -n x` in #(((((
5c706339 12249-n*)
0fbeb4dc 12250 case `echo 'xy\c'` in
5c706339 12251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0fbeb4dc
AK
12252 xy) ECHO_C='\c';;
12253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12254 ECHO_T=' ';;
5c706339
AK
12255 esac;;
12256*)
12257 ECHO_N='-n';;
12258esac
b9668ba4 12259
5c706339
AK
12260rm -f conf$$ conf$$.exe conf$$.file
12261if test -d conf$$.dir; then
12262 rm -f conf$$.dir/conf$$.file
12263else
12264 rm -f conf$$.dir
47dc80f6
AK
12265 mkdir conf$$.dir 2>/dev/null
12266fi
12267if (echo >conf$$.file) 2>/dev/null; then
12268 if ln -s conf$$.file conf$$ 2>/dev/null; then
12269 as_ln_s='ln -s'
12270 # ... but there are two gotchas:
12271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0044e680 12273 # In both cases, we have to default to `cp -pR'.
47dc80f6 12274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0044e680 12275 as_ln_s='cp -pR'
47dc80f6
AK
12276 elif ln conf$$.file conf$$ 2>/dev/null; then
12277 as_ln_s=ln
12278 else
0044e680 12279 as_ln_s='cp -pR'
47dc80f6 12280 fi
5c706339 12281else
0044e680 12282 as_ln_s='cp -pR'
5c706339
AK
12283fi
12284rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12285rmdir conf$$.dir 2>/dev/null
b9668ba4 12286
0fbeb4dc
AK
12287
12288# as_fn_mkdir_p
12289# -------------
12290# Create "$as_dir" as a directory, including parents if necessary.
12291as_fn_mkdir_p ()
12292{
12293
12294 case $as_dir in #(
12295 -*) as_dir=./$as_dir;;
12296 esac
12297 test -d "$as_dir" || eval $as_mkdir_p || {
12298 as_dirs=
12299 while :; do
12300 case $as_dir in #(
12301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12302 *) as_qdir=$as_dir;;
12303 esac
12304 as_dirs="'$as_qdir' $as_dirs"
12305 as_dir=`$as_dirname -- "$as_dir" ||
12306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12307 X"$as_dir" : 'X\(//\)[^/]' \| \
12308 X"$as_dir" : 'X\(//\)$' \| \
12309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12310$as_echo X"$as_dir" |
12311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12312 s//\1/
12313 q
12314 }
12315 /^X\(\/\/\)[^/].*/{
12316 s//\1/
12317 q
12318 }
12319 /^X\(\/\/\)$/{
12320 s//\1/
12321 q
12322 }
12323 /^X\(\/\).*/{
12324 s//\1/
12325 q
12326 }
12327 s/.*/./; q'`
12328 test -d "$as_dir" && break
12329 done
12330 test -z "$as_dirs" || eval "mkdir $as_dirs"
12331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12332
12333
12334} # as_fn_mkdir_p
5c706339 12335if mkdir -p . 2>/dev/null; then
0fbeb4dc 12336 as_mkdir_p='mkdir -p "$as_dir"'
5c706339
AK
12337else
12338 test -d ./-p && rmdir ./-p
12339 as_mkdir_p=false
12340fi
b9668ba4 12341
0044e680
AK
12342
12343# as_fn_executable_p FILE
12344# -----------------------
12345# Test if FILE is an executable regular file.
12346as_fn_executable_p ()
12347{
12348 test -f "$1" && test -x "$1"
12349} # as_fn_executable_p
12350as_test_x='test -x'
12351as_executable_p=as_fn_executable_p
b9668ba4 12352
5c706339
AK
12353# Sed expression to map a string onto a valid CPP name.
12354as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12355
5c706339
AK
12356# Sed expression to map a string onto a valid variable name.
12357as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 12358
b9668ba4 12359
5c706339 12360exec 6>&1
0fbeb4dc
AK
12361## ----------------------------------- ##
12362## Main body of $CONFIG_STATUS script. ##
12363## ----------------------------------- ##
12364_ASEOF
12365test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b9668ba4 12366
0fbeb4dc
AK
12367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12368# Save the log message, to keep $0 and so on meaningful, and to
5c706339
AK
12369# report actual input values of CONFIG_FILES etc. instead of their
12370# values after options handling.
12371ac_log="
0044e680
AK
12372This file was extended by yaml $as_me 0.1.7, which was
12373generated by GNU Autoconf 2.69. Invocation command line was
b9668ba4 12374
5c706339
AK
12375 CONFIG_FILES = $CONFIG_FILES
12376 CONFIG_HEADERS = $CONFIG_HEADERS
12377 CONFIG_LINKS = $CONFIG_LINKS
12378 CONFIG_COMMANDS = $CONFIG_COMMANDS
12379 $ $0 $@
b9668ba4 12380
5c706339
AK
12381on `(hostname || uname -n) 2>/dev/null | sed 1q`
12382"
b9668ba4 12383
5c706339 12384_ACEOF
b9668ba4 12385
47dc80f6
AK
12386case $ac_config_files in *"
12387"*) set x $ac_config_files; shift; ac_config_files=$*;;
12388esac
12389
12390case $ac_config_headers in *"
12391"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12392esac
12393
12394
12395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
12396# Files that config.status was made for.
12397config_files="$ac_config_files"
12398config_headers="$ac_config_headers"
12399config_commands="$ac_config_commands"
b9668ba4 12400
5c706339 12401_ACEOF
b9668ba4 12402
47dc80f6 12403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339 12404ac_cs_usage="\
0fbeb4dc
AK
12405\`$as_me' instantiates files and other configuration actions
12406from templates according to the current configuration. Unless the files
12407and actions are specified as TAGs, all are instantiated by default.
b9668ba4 12408
0fbeb4dc 12409Usage: $0 [OPTION]... [TAG]...
b9668ba4 12410
5c706339
AK
12411 -h, --help print this help, then exit
12412 -V, --version print version number and configuration settings, then exit
0fbeb4dc 12413 --config print configuration, then exit
47dc80f6
AK
12414 -q, --quiet, --silent
12415 do not print progress messages
5c706339
AK
12416 -d, --debug don't remove temporary files
12417 --recheck update $as_me by reconfiguring in the same conditions
47dc80f6
AK
12418 --file=FILE[:TEMPLATE]
12419 instantiate the configuration file FILE
12420 --header=FILE[:TEMPLATE]
12421 instantiate the configuration header FILE
b9668ba4 12422
5c706339
AK
12423Configuration files:
12424$config_files
b9668ba4 12425
5c706339
AK
12426Configuration headers:
12427$config_headers
b9668ba4 12428
5c706339
AK
12429Configuration commands:
12430$config_commands
b9668ba4 12431
0044e680 12432Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>."
b9668ba4 12433
5c706339 12434_ACEOF
47dc80f6 12435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0fbeb4dc 12436ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5c706339 12437ac_cs_version="\\
0044e680
AK
12438yaml config.status 0.1.7
12439configured by $0, generated by GNU Autoconf 2.69,
0fbeb4dc 12440 with options \\"\$ac_cs_config\\"
b9668ba4 12441
0044e680 12442Copyright (C) 2012 Free Software Foundation, Inc.
5c706339
AK
12443This config.status script is free software; the Free Software Foundation
12444gives unlimited permission to copy, distribute and modify it."
b9668ba4 12445
5c706339
AK
12446ac_pwd='$ac_pwd'
12447srcdir='$srcdir'
12448INSTALL='$INSTALL'
12449MKDIR_P='$MKDIR_P'
47dc80f6
AK
12450AWK='$AWK'
12451test -n "\$AWK" || AWK=awk
5c706339 12452_ACEOF
b9668ba4 12453
47dc80f6
AK
12454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455# The default lists apply if the user does not specify any file.
5c706339
AK
12456ac_need_defaults=:
12457while test $# != 0
12458do
12459 case $1 in
0fbeb4dc 12460 --*=?*)
5c706339
AK
12461 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12462 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12463 ac_shift=:
12464 ;;
0fbeb4dc
AK
12465 --*=)
12466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12467 ac_optarg=
12468 ac_shift=:
12469 ;;
5c706339
AK
12470 *)
12471 ac_option=$1
12472 ac_optarg=$2
12473 ac_shift=shift
12474 ;;
12475 esac
b9668ba4 12476
5c706339
AK
12477 case $ac_option in
12478 # Handling of the options.
12479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12480 ac_cs_recheck=: ;;
12481 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47dc80f6 12482 $as_echo "$ac_cs_version"; exit ;;
0fbeb4dc
AK
12483 --config | --confi | --conf | --con | --co | --c )
12484 $as_echo "$ac_cs_config"; exit ;;
5c706339
AK
12485 --debug | --debu | --deb | --de | --d | -d )
12486 debug=: ;;
12487 --file | --fil | --fi | --f )
12488 $ac_shift
47dc80f6
AK
12489 case $ac_optarg in
12490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
0fbeb4dc 12491 '') as_fn_error $? "missing file argument" ;;
47dc80f6 12492 esac
0fbeb4dc 12493 as_fn_append CONFIG_FILES " '$ac_optarg'"
5c706339
AK
12494 ac_need_defaults=false;;
12495 --header | --heade | --head | --hea )
12496 $ac_shift
47dc80f6
AK
12497 case $ac_optarg in
12498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12499 esac
0fbeb4dc 12500 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5c706339
AK
12501 ac_need_defaults=false;;
12502 --he | --h)
12503 # Conflict between --help and --header
0fbeb4dc
AK
12504 as_fn_error $? "ambiguous option: \`$1'
12505Try \`$0 --help' for more information.";;
5c706339 12506 --help | --hel | -h )
47dc80f6 12507 $as_echo "$ac_cs_usage"; exit ;;
5c706339
AK
12508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12509 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12510 ac_cs_silent=: ;;
b9668ba4 12511
5c706339 12512 # This is an error.
0fbeb4dc
AK
12513 -*) as_fn_error $? "unrecognized option: \`$1'
12514Try \`$0 --help' for more information." ;;
b9668ba4 12515
0fbeb4dc 12516 *) as_fn_append ac_config_targets " $1"
5c706339 12517 ac_need_defaults=false ;;
b9668ba4 12518
5c706339
AK
12519 esac
12520 shift
b9668ba4 12521done
b9668ba4 12522
5c706339 12523ac_configure_extra_args=
b9668ba4 12524
5c706339
AK
12525if $ac_cs_silent; then
12526 exec 6>/dev/null
12527 ac_configure_extra_args="$ac_configure_extra_args --silent"
b9668ba4
AK
12528fi
12529
b9668ba4 12530_ACEOF
47dc80f6 12531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339 12532if \$ac_cs_recheck; then
0044e680 12533 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47dc80f6
AK
12534 shift
12535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12536 CONFIG_SHELL='$SHELL'
5c706339 12537 export CONFIG_SHELL
47dc80f6 12538 exec "\$@"
5c706339 12539fi
b9668ba4 12540
5c706339 12541_ACEOF
47dc80f6 12542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339 12543exec 5>>config.log
b9668ba4 12544{
5c706339
AK
12545 echo
12546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12547## Running $as_me. ##
12548_ASBOX
47dc80f6 12549 $as_echo "$ac_log"
5c706339 12550} >&5
b9668ba4 12551
b9668ba4 12552_ACEOF
47dc80f6 12553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
12554#
12555# INIT-COMMANDS
12556#
12557AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b9668ba4 12558
b9668ba4 12559
5c706339
AK
12560# The HP-UX ksh and POSIX shell print the target directory to stdout
12561# if CDPATH is set.
12562(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 12563
5c706339
AK
12564sed_quote_subst='$sed_quote_subst'
12565double_quote_subst='$double_quote_subst'
12566delay_variable_subst='$delay_variable_subst'
059850b5
AK
12567macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12568macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12569enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12570enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12571pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12572enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12573SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12574ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12575PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12576host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12577host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12578host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12579build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12580build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12581build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12582SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12583Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12584GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12585EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12586FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12587LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12588NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12589LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12590max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12591ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12592exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12593lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12594lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12595lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12596lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12597lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12598reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12599reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12600OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12601deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12602file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12603file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12604want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12605DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12606sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12607AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12608AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12609archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12610STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12611RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12612old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12613old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12614old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12615lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12616CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12617CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12618compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12619GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12620lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12621lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12622lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12623lt_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"`'
12624nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12625lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12626objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12627MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12628lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12629lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12630lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12631lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12632lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12633need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12634MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12635DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12636NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12637LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12638OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12639OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12640libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12641shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12642extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12643archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12644enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12645export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12646whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12647compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12648old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12649old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12650archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12651archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12652module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12653module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12654with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12655allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12656no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12657hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12658hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12659hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12660hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12661hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12662hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12663hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12664inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12665link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12666always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12667export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12668exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12669include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12670prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12671postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12672file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12673variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12674need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12675need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12676version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12677runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12678shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12679shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12680libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12681library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12682soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12683install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12684postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12685postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12686finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12687finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12688hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12689sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12690sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12691hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12692enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12693enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12694enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12695old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12696striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
5c706339
AK
12697
12698LTCC='$LTCC'
12699LTCFLAGS='$LTCFLAGS'
12700compiler='$compiler_DEFAULT'
12701
059850b5
AK
12702# A function that is used when there is no print builtin or printf.
12703func_fallback_echo ()
12704{
12705 eval 'cat <<_LTECHO_EOF
12706\$1
12707_LTECHO_EOF'
12708}
12709
5c706339 12710# Quote evaled strings.
059850b5
AK
12711for var in SHELL \
12712ECHO \
12713PATH_SEPARATOR \
12714SED \
5c706339
AK
12715GREP \
12716EGREP \
12717FGREP \
12718LD \
12719NM \
12720LN_S \
12721lt_SP2NL \
12722lt_NL2SP \
12723reload_flag \
47dc80f6 12724OBJDUMP \
5c706339
AK
12725deplibs_check_method \
12726file_magic_cmd \
059850b5
AK
12727file_magic_glob \
12728want_nocaseglob \
12729DLLTOOL \
12730sharedlib_from_linklib_cmd \
5c706339
AK
12731AR \
12732AR_FLAGS \
059850b5 12733archiver_list_spec \
5c706339
AK
12734STRIP \
12735RANLIB \
12736CC \
12737CFLAGS \
12738compiler \
12739lt_cv_sys_global_symbol_pipe \
12740lt_cv_sys_global_symbol_to_cdecl \
12741lt_cv_sys_global_symbol_to_c_name_address \
12742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
059850b5 12743nm_file_list_spec \
5c706339 12744lt_prog_compiler_no_builtin_flag \
5c706339 12745lt_prog_compiler_pic \
059850b5 12746lt_prog_compiler_wl \
5c706339
AK
12747lt_prog_compiler_static \
12748lt_cv_prog_compiler_c_o \
12749need_locks \
059850b5 12750MANIFEST_TOOL \
5c706339
AK
12751DSYMUTIL \
12752NMEDIT \
12753LIPO \
12754OTOOL \
12755OTOOL64 \
12756shrext_cmds \
12757export_dynamic_flag_spec \
12758whole_archive_flag_spec \
12759compiler_needs_object \
12760with_gnu_ld \
12761allow_undefined_flag \
12762no_undefined_flag \
12763hardcode_libdir_flag_spec \
5c706339 12764hardcode_libdir_separator \
5c706339
AK
12765exclude_expsyms \
12766include_expsyms \
12767file_list_spec \
12768variables_saved_for_relink \
12769libname_spec \
12770library_names_spec \
12771soname_spec \
059850b5 12772install_override_mode \
5c706339
AK
12773finish_eval \
12774old_striplib \
12775striplib; do
059850b5 12776 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5c706339 12777 *[\\\\\\\`\\"\\\$]*)
059850b5 12778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
5c706339
AK
12779 ;;
12780 *)
12781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12782 ;;
12783 esac
12784done
12785
12786# Double-quote double-evaled strings.
12787for var in reload_cmds \
12788old_postinstall_cmds \
12789old_postuninstall_cmds \
12790old_archive_cmds \
12791extract_expsyms_cmds \
12792old_archive_from_new_cmds \
12793old_archive_from_expsyms_cmds \
12794archive_cmds \
12795archive_expsym_cmds \
12796module_cmds \
12797module_expsym_cmds \
12798export_symbols_cmds \
12799prelink_cmds \
059850b5 12800postlink_cmds \
5c706339
AK
12801postinstall_cmds \
12802postuninstall_cmds \
12803finish_cmds \
12804sys_lib_search_path_spec \
12805sys_lib_dlsearch_path_spec; do
059850b5 12806 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5c706339 12807 *[\\\\\\\`\\"\\\$]*)
059850b5 12808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
5c706339
AK
12809 ;;
12810 *)
12811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12812 ;;
12813 esac
12814done
12815
5c706339
AK
12816ac_aux_dir='$ac_aux_dir'
12817xsi_shell='$xsi_shell'
12818lt_shell_append='$lt_shell_append'
b9668ba4 12819
5c706339
AK
12820# See if we are running on zsh, and set the options which allow our
12821# commands through without removal of \ escapes INIT.
12822if test -n "\${ZSH_VERSION+set}" ; then
12823 setopt NO_GLOB_SUBST
b9668ba4
AK
12824fi
12825
5c706339
AK
12826
12827 PACKAGE='$PACKAGE'
12828 VERSION='$VERSION'
12829 TIMESTAMP='$TIMESTAMP'
12830 RM='$RM'
12831 ofile='$ofile'
12832
12833
12834
b9668ba4
AK
12835
12836_ACEOF
b9668ba4 12837
47dc80f6 12838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
12839
12840# Handling of arguments.
12841for ac_config_target in $ac_config_targets
12842do
12843 case $ac_config_target in
12844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12846 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
0fbeb4dc 12847 "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;;
5c706339
AK
12848 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12849 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12851 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12852 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12853
059850b5 12854 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5c706339
AK
12855 esac
12856done
12857
12858
12859# If the user did not use the arguments to specify the items to instantiate,
12860# then the envvar interface is used. Set only those that are not.
12861# We use the long form for the default assignment because of an extremely
12862# bizarre bug on SunOS 4.1.3.
12863if $ac_need_defaults; then
12864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b9668ba4
AK
12867fi
12868
5c706339
AK
12869# Have a temporary directory for convenience. Make it in the build tree
12870# simply because there is no reason against having it here, and in addition,
12871# creating and moving files from /tmp can sometimes cause problems.
12872# Hook for its removal unless debugging.
12873# Note that there is a small window in which the directory will not be cleaned:
12874# after its creation but before its name has been assigned to `$tmp'.
12875$debug ||
12876{
059850b5 12877 tmp= ac_tmp=
5c706339 12878 trap 'exit_status=$?
059850b5
AK
12879 : "${ac_tmp:=$tmp}"
12880 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5c706339 12881' 0
0fbeb4dc 12882 trap 'as_fn_exit 1' 1 2 13 15
5c706339
AK
12883}
12884# Create a (secure) tmp directory for tmp files.
b9668ba4 12885
b9668ba4 12886{
5c706339 12887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
059850b5 12888 test -d "$tmp"
5c706339
AK
12889} ||
12890{
12891 tmp=./conf$$-$RANDOM
12892 (umask 077 && mkdir "$tmp")
0fbeb4dc 12893} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
059850b5 12894ac_tmp=$tmp
5c706339 12895
47dc80f6
AK
12896# Set up the scripts for CONFIG_FILES section.
12897# No need to generate them if there are no CONFIG_FILES.
12898# This happens for instance with `./config.status config.h'.
5c706339
AK
12899if test -n "$CONFIG_FILES"; then
12900
5c706339 12901
0fbeb4dc
AK
12902ac_cr=`echo X | tr X '\015'`
12903# On cygwin, bash can eat \r inside `` if the user requested igncr.
12904# But we know of no other shell where ac_cr would be empty at this
12905# point, so we can use a bashism as a fallback.
12906if test "x$ac_cr" = x; then
12907 eval ac_cr=\$\'\\r\'
12908fi
47dc80f6
AK
12909ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12910if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12911 ac_cs_awk_cr='\\r'
12912else
12913 ac_cs_awk_cr=$ac_cr
b9668ba4
AK
12914fi
12915
059850b5 12916echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5c706339 12917_ACEOF
b9668ba4 12918
b9668ba4 12919
47dc80f6
AK
12920{
12921 echo "cat >conf$$subs.awk <<_ACEOF" &&
12922 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12923 echo "_ACEOF"
12924} >conf$$subs.sh ||
0fbeb4dc
AK
12925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12926ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5c706339
AK
12927ac_delim='%!_!# '
12928for ac_last_try in false false false false false :; do
47dc80f6 12929 . ./conf$$subs.sh ||
0fbeb4dc 12930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b9668ba4 12931
47dc80f6
AK
12932 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12933 if test $ac_delim_n = $ac_delim_num; then
5c706339
AK
12934 break
12935 elif $ac_last_try; then
0fbeb4dc 12936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5c706339
AK
12937 else
12938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12939 fi
12940done
47dc80f6 12941rm -f conf$$subs.sh
b9668ba4 12942
47dc80f6 12943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
059850b5 12944cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47dc80f6
AK
12945_ACEOF
12946sed -n '
12947h
12948s/^/S["/; s/!.*/"]=/
12949p
12950g
12951s/^[^!]*!//
12952:repl
12953t repl
12954s/'"$ac_delim"'$//
12955t delim
12956:nl
12957h
0fbeb4dc 12958s/\(.\{148\}\)..*/\1/
47dc80f6
AK
12959t more1
12960s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12961p
12962n
12963b repl
12964:more1
12965s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12966p
12967g
12968s/.\{148\}//
12969t nl
12970:delim
12971h
0fbeb4dc 12972s/\(.\{148\}\)..*/\1/
47dc80f6
AK
12973t more2
12974s/["\\]/\\&/g; s/^/"/; s/$/"/
12975p
12976b
12977:more2
12978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12979p
12980g
12981s/.\{148\}//
12982t delim
12983' <conf$$subs.awk | sed '
12984/^[^""]/{
12985 N
12986 s/\n//
12987}
12988' >>$CONFIG_STATUS || ac_write_fail=1
12989rm -f conf$$subs.awk
12990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12991_ACAWK
059850b5 12992cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47dc80f6
AK
12993 for (key in S) S_is_set[key] = 1
12994 FS = "\a"
12995
12996}
12997{
12998 line = $ 0
12999 nfields = split(line, field, "@")
13000 substed = 0
13001 len = length(field[1])
13002 for (i = 2; i < nfields; i++) {
13003 key = field[i]
13004 keylen = length(key)
13005 if (S_is_set[key]) {
13006 value = S[key]
13007 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13008 len += length(value) + length(field[++i])
13009 substed = 1
13010 } else
13011 len += 1 + keylen
13012 }
5c706339 13013
47dc80f6
AK
13014 print line
13015}
13016
13017_ACAWK
b9668ba4 13018_ACEOF
47dc80f6
AK
13019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13020if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13021 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13022else
13023 cat
059850b5 13024fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
0fbeb4dc 13025 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b9668ba4 13026_ACEOF
b9668ba4 13027
0fbeb4dc
AK
13028# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13029# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5c706339
AK
13030# trailing colons and then remove the whole line if VPATH becomes empty
13031# (actually we leave an empty line to preserve line numbers).
13032if test "x$srcdir" = x.; then
0fbeb4dc
AK
13033 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13034h
13035s///
13036s/^/:/
13037s/[ ]*$/:/
13038s/:\$(srcdir):/:/g
13039s/:\${srcdir}:/:/g
13040s/:@srcdir@:/:/g
13041s/^:*//
5c706339 13042s/:*$//
0fbeb4dc
AK
13043x
13044s/\(=[ ]*\).*/\1/
13045G
13046s/\n//
5c706339
AK
13047s/^[^=]*=[ ]*$//
13048}'
b9668ba4
AK
13049fi
13050
47dc80f6 13051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13052fi # test -n "$CONFIG_FILES"
13053
47dc80f6
AK
13054# Set up the scripts for CONFIG_HEADERS section.
13055# No need to generate them if there are no CONFIG_HEADERS.
13056# This happens for instance with `./config.status Makefile'.
13057if test -n "$CONFIG_HEADERS"; then
059850b5 13058cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47dc80f6
AK
13059BEGIN {
13060_ACEOF
13061
13062# Transform confdefs.h into an awk script `defines.awk', embedded as
13063# here-document in config.status, that substitutes the proper values into
13064# config.h.in to produce config.h.
13065
13066# Create a delimiter string that does not exist in confdefs.h, to ease
13067# handling of long lines.
13068ac_delim='%!_!# '
13069for ac_last_try in false false :; do
059850b5
AK
13070 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13071 if test -z "$ac_tt"; then
47dc80f6
AK
13072 break
13073 elif $ac_last_try; then
0fbeb4dc 13074 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47dc80f6
AK
13075 else
13076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13077 fi
13078done
13079
13080# For the awk script, D is an array of macro values keyed by name,
13081# likewise P contains macro parameters if any. Preserve backslash
13082# newline sequences.
5c706339 13083
47dc80f6
AK
13084ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13085sed -n '
13086s/.\{148\}/&'"$ac_delim"'/g
13087t rset
13088:rset
13089s/^[ ]*#[ ]*define[ ][ ]*/ /
13090t def
13091d
13092:def
13093s/\\$//
13094t bsnl
13095s/["\\]/\\&/g
13096s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13097D["\1"]=" \3"/p
13098s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13099d
13100:bsnl
13101s/["\\]/\\&/g
13102s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13103D["\1"]=" \3\\\\\\n"\\/p
13104t cont
13105s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13106t cont
13107d
13108:cont
13109n
13110s/.\{148\}/&'"$ac_delim"'/g
13111t clear
13112:clear
13113s/\\$//
13114t bsnlc
13115s/["\\]/\\&/g; s/^/"/; s/$/"/p
13116d
13117:bsnlc
13118s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13119b cont
13120' <confdefs.h | sed '
13121s/'"$ac_delim"'/"\\\
13122"/g' >>$CONFIG_STATUS || ac_write_fail=1
13123
13124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13125 for (key in D) D_is_set[key] = 1
13126 FS = "\a"
13127}
13128/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13129 line = \$ 0
13130 split(line, arg, " ")
13131 if (arg[1] == "#") {
13132 defundef = arg[2]
13133 mac1 = arg[3]
13134 } else {
13135 defundef = substr(arg[1], 2)
13136 mac1 = arg[2]
13137 }
13138 split(mac1, mac2, "(") #)
13139 macro = mac2[1]
13140 prefix = substr(line, 1, index(line, defundef) - 1)
13141 if (D_is_set[macro]) {
13142 # Preserve the white space surrounding the "#".
13143 print prefix "define", macro P[macro] D[macro]
13144 next
13145 } else {
13146 # Replace #undef with comments. This is necessary, for example,
13147 # in the case of _POSIX_SOURCE, which is predefined and required
13148 # on some systems where configure will not decide to define it.
13149 if (defundef == "undef") {
13150 print "/*", prefix defundef, macro, "*/"
13151 next
13152 }
13153 }
13154}
13155{ print }
13156_ACAWK
13157_ACEOF
13158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0fbeb4dc 13159 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47dc80f6
AK
13160fi # test -n "$CONFIG_HEADERS"
13161
13162
13163eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13164shift
13165for ac_tag
5c706339
AK
13166do
13167 case $ac_tag in
13168 :[FHLC]) ac_mode=$ac_tag; continue;;
13169 esac
13170 case $ac_mode$ac_tag in
13171 :[FHL]*:*);;
059850b5 13172 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5c706339
AK
13173 :[FH]-) ac_tag=-:-;;
13174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13175 esac
13176 ac_save_IFS=$IFS
13177 IFS=:
13178 set x $ac_tag
13179 IFS=$ac_save_IFS
13180 shift
13181 ac_file=$1
13182 shift
13183
13184 case $ac_mode in
13185 :L) ac_source=$1;;
13186 :[FH])
13187 ac_file_inputs=
13188 for ac_f
13189 do
13190 case $ac_f in
059850b5 13191 -) ac_f="$ac_tmp/stdin";;
5c706339
AK
13192 *) # Look for the file first in the build tree, then in the source tree
13193 # (if the path is not absolute). The absolute path cannot be DOS-style,
13194 # because $ac_f cannot contain `:'.
13195 test -f "$ac_f" ||
13196 case $ac_f in
13197 [\\/$]*) false;;
13198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13199 esac ||
059850b5 13200 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5c706339 13201 esac
47dc80f6 13202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
0fbeb4dc 13203 as_fn_append ac_file_inputs " '$ac_f'"
5c706339
AK
13204 done
13205
13206 # Let's still pretend it is `configure' which instantiates (i.e., don't
13207 # use $as_me), people would be surprised to read:
13208 # /* config.h. Generated by config.status. */
47dc80f6
AK
13209 configure_input='Generated from '`
13210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13211 `' by configure.'
5c706339
AK
13212 if test x"$ac_file" != x-; then
13213 configure_input="$ac_file. $configure_input"
0fbeb4dc 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47dc80f6 13215$as_echo "$as_me: creating $ac_file" >&6;}
5c706339 13216 fi
47dc80f6
AK
13217 # Neutralize special characters interpreted by sed in replacement strings.
13218 case $configure_input in #(
13219 *\&* | *\|* | *\\* )
13220 ac_sed_conf_input=`$as_echo "$configure_input" |
13221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13222 *) ac_sed_conf_input=$configure_input;;
13223 esac
5c706339
AK
13224
13225 case $ac_tag in
059850b5
AK
13226 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5c706339
AK
13228 esac
13229 ;;
13230 esac
13231
13232 ac_dir=`$as_dirname -- "$ac_file" ||
13233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13234 X"$ac_file" : 'X\(//\)[^/]' \| \
13235 X"$ac_file" : 'X\(//\)$' \| \
13236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13237$as_echo X"$ac_file" |
5c706339
AK
13238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13239 s//\1/
13240 q
13241 }
13242 /^X\(\/\/\)[^/].*/{
13243 s//\1/
13244 q
13245 }
13246 /^X\(\/\/\)$/{
13247 s//\1/
13248 q
13249 }
13250 /^X\(\/\).*/{
13251 s//\1/
13252 q
13253 }
13254 s/.*/./; q'`
0fbeb4dc 13255 as_dir="$ac_dir"; as_fn_mkdir_p
5c706339 13256 ac_builddir=.
b9668ba4 13257
5c706339
AK
13258case "$ac_dir" in
13259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13260*)
47dc80f6 13261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5c706339 13262 # A ".." for each directory in $ac_dir_suffix.
47dc80f6 13263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5c706339
AK
13264 case $ac_top_builddir_sub in
13265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13267 esac ;;
b9668ba4 13268esac
5c706339
AK
13269ac_abs_top_builddir=$ac_pwd
13270ac_abs_builddir=$ac_pwd$ac_dir_suffix
13271# for backward compatibility:
13272ac_top_builddir=$ac_top_build_prefix
b9668ba4 13273
5c706339
AK
13274case $srcdir in
13275 .) # We are building in place.
13276 ac_srcdir=.
13277 ac_top_srcdir=$ac_top_builddir_sub
13278 ac_abs_top_srcdir=$ac_pwd ;;
13279 [\\/]* | ?:[\\/]* ) # Absolute name.
13280 ac_srcdir=$srcdir$ac_dir_suffix;
13281 ac_top_srcdir=$srcdir
13282 ac_abs_top_srcdir=$srcdir ;;
13283 *) # Relative name.
13284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13285 ac_top_srcdir=$ac_top_build_prefix$srcdir
13286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b9668ba4 13287esac
5c706339 13288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b9668ba4 13289
b9668ba4 13290
5c706339
AK
13291 case $ac_mode in
13292 :F)
13293 #
13294 # CONFIG_FILE
13295 #
b9668ba4 13296
5c706339
AK
13297 case $INSTALL in
13298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13300 esac
13301 ac_MKDIR_P=$MKDIR_P
13302 case $MKDIR_P in
13303 [\\/$]* | ?:[\\/]* ) ;;
13304 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13305 esac
13306_ACEOF
b9668ba4 13307
47dc80f6 13308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13309# If the template does not know about datarootdir, expand it.
13310# FIXME: This hack should be removed a few years after 2.60.
13311ac_datarootdir_hack=; ac_datarootdir_seen=
47dc80f6
AK
13312ac_sed_dataroot='
13313/datarootdir/ {
5c706339
AK
13314 p
13315 q
13316}
13317/@datadir@/p
13318/@docdir@/p
13319/@infodir@/p
13320/@localedir@/p
0fbeb4dc 13321/@mandir@/p'
47dc80f6 13322case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5c706339
AK
13323*datarootdir*) ac_datarootdir_seen=yes;;
13324*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
0fbeb4dc 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47dc80f6 13326$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5c706339 13327_ACEOF
47dc80f6 13328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5c706339
AK
13329 ac_datarootdir_hack='
13330 s&@datadir@&$datadir&g
13331 s&@docdir@&$docdir&g
13332 s&@infodir@&$infodir&g
13333 s&@localedir@&$localedir&g
13334 s&@mandir@&$mandir&g
0fbeb4dc 13335 s&\\\${datarootdir}&$datarootdir&g' ;;
5c706339 13336esac
b9668ba4 13337_ACEOF
b9668ba4 13338
5c706339
AK
13339# Neutralize VPATH when `$srcdir' = `.'.
13340# Shell code in configure.ac might set extrasub.
13341# FIXME: do we really want to maintain this feature?
47dc80f6
AK
13342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13343ac_sed_extra="$ac_vpsub
5c706339
AK
13344$extrasub
13345_ACEOF
47dc80f6 13346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5c706339
AK
13347:t
13348/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47dc80f6 13349s|@configure_input@|$ac_sed_conf_input|;t t
5c706339 13350s&@top_builddir@&$ac_top_builddir_sub&;t t
47dc80f6 13351s&@top_build_prefix@&$ac_top_build_prefix&;t t
5c706339
AK
13352s&@srcdir@&$ac_srcdir&;t t
13353s&@abs_srcdir@&$ac_abs_srcdir&;t t
13354s&@top_srcdir@&$ac_top_srcdir&;t t
13355s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13356s&@builddir@&$ac_builddir&;t t
13357s&@abs_builddir@&$ac_abs_builddir&;t t
13358s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13359s&@INSTALL@&$ac_INSTALL&;t t
13360s&@MKDIR_P@&$ac_MKDIR_P&;t t
13361$ac_datarootdir_hack
47dc80f6 13362"
059850b5
AK
13363eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13364 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b9668ba4 13365
5c706339 13366test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
059850b5
AK
13367 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13369 "$ac_tmp/out"`; test -z "$ac_out"; } &&
0fbeb4dc
AK
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13371which seems to be undefined. Please make sure it is defined" >&5
47dc80f6 13372$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0fbeb4dc 13373which seems to be undefined. Please make sure it is defined" >&2;}
b9668ba4 13374
059850b5 13375 rm -f "$ac_tmp/stdin"
5c706339 13376 case $ac_file in
059850b5
AK
13377 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13378 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47dc80f6 13379 esac \
0fbeb4dc 13380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5c706339
AK
13381 ;;
13382 :H)
13383 #
13384 # CONFIG_HEADER
13385 #
5c706339 13386 if test x"$ac_file" != x-; then
47dc80f6
AK
13387 {
13388 $as_echo "/* $configure_input */" \
059850b5
AK
13389 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13390 } >"$ac_tmp/config.h" \
0fbeb4dc 13391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
059850b5 13392 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
0fbeb4dc 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47dc80f6 13394$as_echo "$as_me: $ac_file is unchanged" >&6;}
5c706339 13395 else
47dc80f6 13396 rm -f "$ac_file"
059850b5 13397 mv "$ac_tmp/config.h" "$ac_file" \
0fbeb4dc 13398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5c706339
AK
13399 fi
13400 else
47dc80f6 13401 $as_echo "/* $configure_input */" \
059850b5 13402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
0fbeb4dc 13403 || as_fn_error $? "could not create -" "$LINENO" 5
5c706339 13404 fi
47dc80f6
AK
13405# Compute "$ac_file"'s index in $config_headers.
13406_am_arg="$ac_file"
5c706339
AK
13407_am_stamp_count=1
13408for _am_header in $config_headers :; do
13409 case $_am_header in
13410 $_am_arg | $_am_arg:* )
13411 break ;;
13412 * )
13413 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13414 esac
13415done
13416echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13417$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418 X"$_am_arg" : 'X\(//\)[^/]' \| \
13419 X"$_am_arg" : 'X\(//\)$' \| \
13420 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13421$as_echo X"$_am_arg" |
5c706339
AK
13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13423 s//\1/
13424 q
13425 }
13426 /^X\(\/\/\)[^/].*/{
13427 s//\1/
13428 q
13429 }
13430 /^X\(\/\/\)$/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\).*/{
13435 s//\1/
13436 q
13437 }
13438 s/.*/./; q'`/stamp-h$_am_stamp_count
13439 ;;
b9668ba4 13440
0fbeb4dc 13441 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47dc80f6 13442$as_echo "$as_me: executing $ac_file commands" >&6;}
5c706339
AK
13443 ;;
13444 esac
b9668ba4 13445
b9668ba4 13446
5c706339 13447 case $ac_file$ac_mode in
47dc80f6 13448 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
0044e680 13449 # Older Autoconf quotes --file arguments for eval, but not when files
47dc80f6
AK
13450 # are listed without --file. Let's play safe and only enable the eval
13451 # if we detect the quoting.
13452 case $CONFIG_FILES in
13453 *\'*) eval set x "$CONFIG_FILES" ;;
13454 *) set x $CONFIG_FILES ;;
13455 esac
13456 shift
13457 for mf
13458 do
13459 # Strip MF so we end up with the name of the file.
13460 mf=`echo "$mf" | sed -e 's/:.*$//'`
13461 # Check whether this is an Automake generated Makefile or not.
0044e680 13462 # We used to match only the files named 'Makefile.in', but
47dc80f6
AK
13463 # some people rename them; so instead we look at the file content.
13464 # Grep'ing the first line is not enough: some people post-process
13465 # each Makefile.in and add a new line on top of each file to say so.
13466 # Grep'ing the whole file is not good either: AIX grep has a line
13467 # limit of 2048, but all sed's we know have understand at least 4000.
13468 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13469 dirpart=`$as_dirname -- "$mf" ||
5c706339
AK
13470$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13471 X"$mf" : 'X\(//\)[^/]' \| \
13472 X"$mf" : 'X\(//\)$' \| \
13473 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13474$as_echo X"$mf" |
5c706339
AK
13475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13476 s//\1/
13477 q
13478 }
13479 /^X\(\/\/\)[^/].*/{
13480 s//\1/
13481 q
13482 }
13483 /^X\(\/\/\)$/{
13484 s//\1/
13485 q
13486 }
13487 /^X\(\/\).*/{
13488 s//\1/
13489 q
13490 }
13491 s/.*/./; q'`
47dc80f6
AK
13492 else
13493 continue
13494 fi
13495 # Extract the definition of DEPDIR, am__include, and am__quote
0044e680 13496 # from the Makefile without running 'make'.
47dc80f6
AK
13497 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13498 test -z "$DEPDIR" && continue
13499 am__include=`sed -n 's/^am__include = //p' < "$mf"`
0044e680 13500 test -z "$am__include" && continue
47dc80f6 13501 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
47dc80f6
AK
13502 # Find all dependency output files, they are included files with
13503 # $(DEPDIR) in their names. We invoke sed twice because it is the
13504 # simplest approach to changing $(DEPDIR) to its actual value in the
13505 # expansion.
13506 for file in `sed -n "
13507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
0044e680 13508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
47dc80f6
AK
13509 # Make sure the directory exists.
13510 test -f "$dirpart/$file" && continue
13511 fdir=`$as_dirname -- "$file" ||
5c706339
AK
13512$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13513 X"$file" : 'X\(//\)[^/]' \| \
13514 X"$file" : 'X\(//\)$' \| \
13515 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47dc80f6 13516$as_echo X"$file" |
5c706339
AK
13517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13518 s//\1/
13519 q
13520 }
13521 /^X\(\/\/\)[^/].*/{
13522 s//\1/
13523 q
13524 }
13525 /^X\(\/\/\)$/{
13526 s//\1/
13527 q
13528 }
13529 /^X\(\/\).*/{
13530 s//\1/
13531 q
13532 }
13533 s/.*/./; q'`
0fbeb4dc 13534 as_dir=$dirpart/$fdir; as_fn_mkdir_p
47dc80f6
AK
13535 # echo "creating $dirpart/$file"
13536 echo '# dummy' > "$dirpart/$file"
13537 done
5c706339 13538 done
47dc80f6 13539}
5c706339
AK
13540 ;;
13541 "libtool":C)
b9668ba4 13542
5c706339
AK
13543 # See if we are running on zsh, and set the options which allow our
13544 # commands through without removal of \ escapes.
13545 if test -n "${ZSH_VERSION+set}" ; then
13546 setopt NO_GLOB_SUBST
13547 fi
b9668ba4 13548
5c706339
AK
13549 cfgfile="${ofile}T"
13550 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13551 $RM "$cfgfile"
b9668ba4 13552
5c706339
AK
13553 cat <<_LT_EOF >> "$cfgfile"
13554#! $SHELL
b9668ba4 13555
5c706339
AK
13556# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13557# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13559# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b9668ba4 13560#
5c706339 13561# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
059850b5
AK
13562# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13563# Foundation, Inc.
5c706339 13564# Written by Gordon Matzigkeit, 1996
b9668ba4 13565#
5c706339
AK
13566# This file is part of GNU Libtool.
13567#
13568# GNU Libtool is free software; you can redistribute it and/or
13569# modify it under the terms of the GNU General Public License as
13570# published by the Free Software Foundation; either version 2 of
13571# the License, or (at your option) any later version.
13572#
13573# As a special exception to the GNU General Public License,
13574# if you distribute this file as part of a program or library that
13575# is built using GNU Libtool, you may include this file under the
13576# same distribution terms that you use for the rest of that program.
13577#
13578# GNU Libtool is distributed in the hope that it will be useful,
13579# but WITHOUT ANY WARRANTY; without even the implied warranty of
13580# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13581# GNU General Public License for more details.
13582#
13583# You should have received a copy of the GNU General Public License
13584# along with GNU Libtool; see the file COPYING. If not, a copy
13585# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13586# obtained by writing to the Free Software Foundation, Inc.,
13587# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b9668ba4 13588
b9668ba4 13589
5c706339
AK
13590# The names of the tagged configurations supported by this script.
13591available_tags=""
b9668ba4 13592
5c706339 13593# ### BEGIN LIBTOOL CONFIG
b9668ba4 13594
5c706339
AK
13595# Which release of libtool.m4 was used?
13596macro_version=$macro_version
13597macro_revision=$macro_revision
b9668ba4 13598
5c706339
AK
13599# Whether or not to build shared libraries.
13600build_libtool_libs=$enable_shared
b9668ba4 13601
5c706339
AK
13602# Whether or not to build static libraries.
13603build_old_libs=$enable_static
b9668ba4 13604
5c706339
AK
13605# What type of objects to build.
13606pic_mode=$pic_mode
b9668ba4 13607
5c706339
AK
13608# Whether or not to optimize for fast installation.
13609fast_install=$enable_fast_install
b9668ba4 13610
059850b5
AK
13611# Shell to use when invoking shell scripts.
13612SHELL=$lt_SHELL
13613
13614# An echo program that protects backslashes.
13615ECHO=$lt_ECHO
13616
13617# The PATH separator for the build system.
13618PATH_SEPARATOR=$lt_PATH_SEPARATOR
13619
5c706339
AK
13620# The host system.
13621host_alias=$host_alias
13622host=$host
13623host_os=$host_os
b9668ba4 13624
5c706339
AK
13625# The build system.
13626build_alias=$build_alias
13627build=$build
13628build_os=$build_os
b9668ba4 13629
5c706339
AK
13630# A sed program that does not truncate output.
13631SED=$lt_SED
b9668ba4 13632
5c706339
AK
13633# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13634Xsed="\$SED -e 1s/^X//"
b9668ba4 13635
5c706339
AK
13636# A grep program that handles long lines.
13637GREP=$lt_GREP
13638
13639# An ERE matcher.
13640EGREP=$lt_EGREP
b9668ba4 13641
5c706339
AK
13642# A literal string matcher.
13643FGREP=$lt_FGREP
b9668ba4 13644
5c706339
AK
13645# A BSD- or MS-compatible name lister.
13646NM=$lt_NM
b9668ba4 13647
5c706339
AK
13648# Whether we need soft or hard links.
13649LN_S=$lt_LN_S
b9668ba4 13650
5c706339
AK
13651# What is the maximum length of a command?
13652max_cmd_len=$max_cmd_len
b9668ba4 13653
5c706339
AK
13654# Object file suffix (normally "o").
13655objext=$ac_objext
b9668ba4 13656
5c706339
AK
13657# Executable file suffix (normally "").
13658exeext=$exeext
b9668ba4 13659
5c706339
AK
13660# whether the shell understands "unset".
13661lt_unset=$lt_unset
b9668ba4 13662
5c706339
AK
13663# turn spaces into newlines.
13664SP2NL=$lt_lt_SP2NL
b9668ba4 13665
5c706339
AK
13666# turn newlines into spaces.
13667NL2SP=$lt_lt_NL2SP
b9668ba4 13668
059850b5
AK
13669# convert \$build file names to \$host format.
13670to_host_file_cmd=$lt_cv_to_host_file_cmd
13671
13672# convert \$build files to toolchain format.
13673to_tool_file_cmd=$lt_cv_to_tool_file_cmd
b9668ba4 13674
47dc80f6
AK
13675# An object symbol dumper.
13676OBJDUMP=$lt_OBJDUMP
13677
5c706339
AK
13678# Method to check whether dependent libraries are shared objects.
13679deplibs_check_method=$lt_deplibs_check_method
b9668ba4 13680
059850b5 13681# Command to use when deplibs_check_method = "file_magic".
5c706339 13682file_magic_cmd=$lt_file_magic_cmd
b9668ba4 13683
059850b5
AK
13684# How to find potential files when deplibs_check_method = "file_magic".
13685file_magic_glob=$lt_file_magic_glob
13686
13687# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13688want_nocaseglob=$lt_want_nocaseglob
13689
13690# DLL creation program.
13691DLLTOOL=$lt_DLLTOOL
13692
13693# Command to associate shared and link libraries.
13694sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13695
5c706339
AK
13696# The archiver.
13697AR=$lt_AR
059850b5
AK
13698
13699# Flags to create an archive.
5c706339 13700AR_FLAGS=$lt_AR_FLAGS
b9668ba4 13701
059850b5
AK
13702# How to feed a file listing to the archiver.
13703archiver_list_spec=$lt_archiver_list_spec
13704
5c706339
AK
13705# A symbol stripping program.
13706STRIP=$lt_STRIP
b9668ba4 13707
5c706339
AK
13708# Commands used to install an old-style archive.
13709RANLIB=$lt_RANLIB
13710old_postinstall_cmds=$lt_old_postinstall_cmds
13711old_postuninstall_cmds=$lt_old_postuninstall_cmds
b9668ba4 13712
059850b5
AK
13713# Whether to use a lock for old archive extraction.
13714lock_old_archive_extraction=$lock_old_archive_extraction
13715
5c706339
AK
13716# A C compiler.
13717LTCC=$lt_CC
b9668ba4 13718
5c706339
AK
13719# LTCC compiler flags.
13720LTCFLAGS=$lt_CFLAGS
b9668ba4 13721
5c706339
AK
13722# Take the output of nm and produce a listing of raw symbols and C names.
13723global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b9668ba4 13724
5c706339
AK
13725# Transform the output of nm in a proper C declaration.
13726global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b9668ba4 13727
5c706339
AK
13728# Transform the output of nm in a C name address pair.
13729global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b9668ba4 13730
5c706339
AK
13731# Transform the output of nm in a C name address pair when lib prefix is needed.
13732global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b9668ba4 13733
059850b5
AK
13734# Specify filename containing input files for \$NM.
13735nm_file_list_spec=$lt_nm_file_list_spec
b9668ba4 13736
059850b5
AK
13737# The root where to search for dependent libraries,and in which our libraries should be installed.
13738lt_sysroot=$lt_sysroot
b9668ba4 13739
059850b5
AK
13740# The name of the directory that contains temporary libtool files.
13741objdir=$objdir
b9668ba4 13742
5c706339
AK
13743# Used to examine libraries when file_magic_cmd begins with "file".
13744MAGIC_CMD=$MAGIC_CMD
b9668ba4 13745
5c706339
AK
13746# Must we lock files when doing compilation?
13747need_locks=$lt_need_locks
b9668ba4 13748
059850b5
AK
13749# Manifest tool.
13750MANIFEST_TOOL=$lt_MANIFEST_TOOL
13751
5c706339
AK
13752# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13753DSYMUTIL=$lt_DSYMUTIL
b9668ba4 13754
5c706339
AK
13755# Tool to change global to local symbols on Mac OS X.
13756NMEDIT=$lt_NMEDIT
b9668ba4 13757
5c706339
AK
13758# Tool to manipulate fat objects and archives on Mac OS X.
13759LIPO=$lt_LIPO
b9668ba4 13760
5c706339
AK
13761# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13762OTOOL=$lt_OTOOL
13763
13764# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13765OTOOL64=$lt_OTOOL64
13766
13767# Old archive suffix (normally "a").
13768libext=$libext
13769
13770# Shared library suffix (normally ".so").
13771shrext_cmds=$lt_shrext_cmds
b9668ba4 13772
5c706339
AK
13773# The commands to extract the exported symbol list from a shared archive.
13774extract_expsyms_cmds=$lt_extract_expsyms_cmds
b9668ba4 13775
5c706339
AK
13776# Variables whose values should be saved in libtool wrapper scripts and
13777# restored at link time.
13778variables_saved_for_relink=$lt_variables_saved_for_relink
b9668ba4 13779
5c706339
AK
13780# Do we need the "lib" prefix for modules?
13781need_lib_prefix=$need_lib_prefix
b9668ba4 13782
5c706339
AK
13783# Do we need a version for libraries?
13784need_version=$need_version
b9668ba4 13785
5c706339
AK
13786# Library versioning type.
13787version_type=$version_type
b9668ba4 13788
5c706339
AK
13789# Shared library runtime path variable.
13790runpath_var=$runpath_var
b9668ba4 13791
5c706339
AK
13792# Shared library path variable.
13793shlibpath_var=$shlibpath_var
b9668ba4 13794
5c706339
AK
13795# Is shlibpath searched before the hard-coded library search path?
13796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b9668ba4 13797
5c706339
AK
13798# Format of library name prefix.
13799libname_spec=$lt_libname_spec
b9668ba4 13800
5c706339
AK
13801# List of archive names. First name is the real one, the rest are links.
13802# The last name is the one that the linker finds with -lNAME
13803library_names_spec=$lt_library_names_spec
b9668ba4 13804
5c706339
AK
13805# The coded name of the library, if different from the real name.
13806soname_spec=$lt_soname_spec
b9668ba4 13807
059850b5
AK
13808# Permission mode override for installation of shared libraries.
13809install_override_mode=$lt_install_override_mode
13810
5c706339
AK
13811# Command to use after installation of a shared archive.
13812postinstall_cmds=$lt_postinstall_cmds
b9668ba4 13813
5c706339
AK
13814# Command to use after uninstallation of a shared archive.
13815postuninstall_cmds=$lt_postuninstall_cmds
b9668ba4 13816
5c706339
AK
13817# Commands used to finish a libtool library installation in a directory.
13818finish_cmds=$lt_finish_cmds
b9668ba4 13819
5c706339
AK
13820# As "finish_cmds", except a single script fragment to be evaled but
13821# not shown.
13822finish_eval=$lt_finish_eval
b9668ba4 13823
5c706339
AK
13824# Whether we should hardcode library paths into libraries.
13825hardcode_into_libs=$hardcode_into_libs
b9668ba4 13826
5c706339
AK
13827# Compile-time system search path for libraries.
13828sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b9668ba4 13829
5c706339
AK
13830# Run-time system search path for libraries.
13831sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b9668ba4 13832
5c706339
AK
13833# Whether dlopen is supported.
13834dlopen_support=$enable_dlopen
b9668ba4 13835
5c706339
AK
13836# Whether dlopen of programs is supported.
13837dlopen_self=$enable_dlopen_self
b9668ba4 13838
5c706339
AK
13839# Whether dlopen of statically linked programs is supported.
13840dlopen_self_static=$enable_dlopen_self_static
b9668ba4 13841
5c706339
AK
13842# Commands to strip libraries.
13843old_striplib=$lt_old_striplib
13844striplib=$lt_striplib
b9668ba4 13845
b9668ba4 13846
5c706339
AK
13847# The linker used to build libraries.
13848LD=$lt_LD
b9668ba4 13849
059850b5
AK
13850# How to create reloadable object files.
13851reload_flag=$lt_reload_flag
13852reload_cmds=$lt_reload_cmds
13853
5c706339
AK
13854# Commands used to build an old-style archive.
13855old_archive_cmds=$lt_old_archive_cmds
b9668ba4 13856
5c706339
AK
13857# A language specific compiler.
13858CC=$lt_compiler
b9668ba4 13859
5c706339
AK
13860# Is the compiler the GNU compiler?
13861with_gcc=$GCC
b9668ba4 13862
5c706339
AK
13863# Compiler flag to turn off builtin functions.
13864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b9668ba4 13865
5c706339
AK
13866# Additional compiler flags for building library objects.
13867pic_flag=$lt_lt_prog_compiler_pic
b9668ba4 13868
059850b5
AK
13869# How to pass a linker flag through the compiler.
13870wl=$lt_lt_prog_compiler_wl
13871
5c706339
AK
13872# Compiler flag to prevent dynamic linking.
13873link_static_flag=$lt_lt_prog_compiler_static
b9668ba4 13874
5c706339
AK
13875# Does compiler simultaneously support -c and -o options?
13876compiler_c_o=$lt_lt_cv_prog_compiler_c_o
b9668ba4 13877
5c706339
AK
13878# Whether or not to add -lc for building shared libraries.
13879build_libtool_need_lc=$archive_cmds_need_lc
b9668ba4 13880
5c706339
AK
13881# Whether or not to disallow shared libs when runtime libs are static.
13882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b9668ba4 13883
5c706339
AK
13884# Compiler flag to allow reflexive dlopens.
13885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b9668ba4 13886
5c706339
AK
13887# Compiler flag to generate shared objects directly from archives.
13888whole_archive_flag_spec=$lt_whole_archive_flag_spec
b9668ba4 13889
5c706339
AK
13890# Whether the compiler copes with passing no objects directly.
13891compiler_needs_object=$lt_compiler_needs_object
b9668ba4 13892
5c706339
AK
13893# Create an old-style archive from a shared archive.
13894old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b9668ba4 13895
5c706339
AK
13896# Create a temporary old-style archive to link instead of a shared archive.
13897old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b9668ba4 13898
5c706339
AK
13899# Commands used to build a shared archive.
13900archive_cmds=$lt_archive_cmds
13901archive_expsym_cmds=$lt_archive_expsym_cmds
b9668ba4 13902
5c706339
AK
13903# Commands used to build a loadable module if different from building
13904# a shared archive.
13905module_cmds=$lt_module_cmds
13906module_expsym_cmds=$lt_module_expsym_cmds
b9668ba4 13907
5c706339
AK
13908# Whether we are building with GNU ld or not.
13909with_gnu_ld=$lt_with_gnu_ld
b9668ba4 13910
5c706339
AK
13911# Flag that allows shared libraries with undefined symbols to be built.
13912allow_undefined_flag=$lt_allow_undefined_flag
b9668ba4 13913
5c706339
AK
13914# Flag that enforces no undefined symbols.
13915no_undefined_flag=$lt_no_undefined_flag
b9668ba4 13916
5c706339
AK
13917# Flag to hardcode \$libdir into a binary during linking.
13918# This must work even if \$libdir does not exist
13919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b9668ba4 13920
5c706339
AK
13921# Whether we need a single "-rpath" flag with a separated argument.
13922hardcode_libdir_separator=$lt_hardcode_libdir_separator
b9668ba4 13923
5c706339
AK
13924# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13925# DIR into the resulting binary.
13926hardcode_direct=$hardcode_direct
b9668ba4 13927
5c706339
AK
13928# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13929# DIR into the resulting binary and the resulting library dependency is
13930# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13931# library is relocated.
13932hardcode_direct_absolute=$hardcode_direct_absolute
b9668ba4 13933
5c706339
AK
13934# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13935# into the resulting binary.
13936hardcode_minus_L=$hardcode_minus_L
b9668ba4 13937
5c706339
AK
13938# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13939# into the resulting binary.
13940hardcode_shlibpath_var=$hardcode_shlibpath_var
b9668ba4 13941
5c706339
AK
13942# Set to "yes" if building a shared library automatically hardcodes DIR
13943# into the library and all subsequent libraries and executables linked
13944# against it.
13945hardcode_automatic=$hardcode_automatic
b9668ba4 13946
5c706339
AK
13947# Set to yes if linker adds runtime paths of dependent libraries
13948# to runtime path list.
13949inherit_rpath=$inherit_rpath
b9668ba4 13950
5c706339
AK
13951# Whether libtool must link a program against all its dependency libraries.
13952link_all_deplibs=$link_all_deplibs
b9668ba4 13953
5c706339
AK
13954# Set to "yes" if exported symbols are required.
13955always_export_symbols=$always_export_symbols
b9668ba4 13956
5c706339
AK
13957# The commands to list exported symbols.
13958export_symbols_cmds=$lt_export_symbols_cmds
b9668ba4 13959
5c706339
AK
13960# Symbols that should not be listed in the preloaded symbols.
13961exclude_expsyms=$lt_exclude_expsyms
b9668ba4 13962
5c706339
AK
13963# Symbols that must always be exported.
13964include_expsyms=$lt_include_expsyms
b9668ba4 13965
5c706339
AK
13966# Commands necessary for linking programs (against libraries) with templates.
13967prelink_cmds=$lt_prelink_cmds
13968
059850b5
AK
13969# Commands necessary for finishing linking programs.
13970postlink_cmds=$lt_postlink_cmds
13971
5c706339
AK
13972# Specify filename containing input files.
13973file_list_spec=$lt_file_list_spec
13974
13975# How to hardcode a shared library path into an executable.
13976hardcode_action=$hardcode_action
13977
13978# ### END LIBTOOL CONFIG
13979
13980_LT_EOF
13981
13982 case $host_os in
13983 aix3*)
13984 cat <<\_LT_EOF >> "$cfgfile"
13985# AIX sometimes has problems with the GCC collect2 program. For some
13986# reason, if we set the COLLECT_NAMES environment variable, the problems
13987# vanish in a puff of smoke.
13988if test "X${COLLECT_NAMES+set}" != Xset; then
13989 COLLECT_NAMES=
13990 export COLLECT_NAMES
13991fi
13992_LT_EOF
b9668ba4
AK
13993 ;;
13994 esac
13995
b9668ba4 13996
5c706339 13997ltmain="$ac_aux_dir/ltmain.sh"
b9668ba4 13998
b9668ba4 13999
5c706339
AK
14000 # We use sed instead of cat because bash on DJGPP gets confused if
14001 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14002 # text mode, it properly converts lines to CR/LF. This bash problem
14003 # is reportedly fixed, but why not run on old versions too?
059850b5
AK
14004 sed '$q' "$ltmain" >> "$cfgfile" \
14005 || (rm -f "$cfgfile"; exit 1)
14006
14007 if test x"$xsi_shell" = xyes; then
14008 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14009func_dirname ()\
14010{\
14011\ case ${1} in\
14012\ */*) func_dirname_result="${1%/*}${2}" ;;\
14013\ * ) func_dirname_result="${3}" ;;\
14014\ esac\
14015} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14016 && mv -f "$cfgfile.tmp" "$cfgfile" \
14017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14018test 0 -eq $? || _lt_function_replace_fail=:
14019
14020
14021 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14022func_basename ()\
14023{\
14024\ func_basename_result="${1##*/}"\
14025} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14026 && mv -f "$cfgfile.tmp" "$cfgfile" \
14027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14028test 0 -eq $? || _lt_function_replace_fail=:
14029
14030
14031 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14032func_dirname_and_basename ()\
14033{\
14034\ case ${1} in\
14035\ */*) func_dirname_result="${1%/*}${2}" ;;\
14036\ * ) func_dirname_result="${3}" ;;\
14037\ esac\
14038\ func_basename_result="${1##*/}"\
14039} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14040 && mv -f "$cfgfile.tmp" "$cfgfile" \
14041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14042test 0 -eq $? || _lt_function_replace_fail=:
14043
14044
14045 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14046func_stripname ()\
14047{\
14048\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14049\ # positional parameters, so assign one to ordinary parameter first.\
14050\ func_stripname_result=${3}\
14051\ func_stripname_result=${func_stripname_result#"${1}"}\
14052\ func_stripname_result=${func_stripname_result%"${2}"}\
14053} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14054 && mv -f "$cfgfile.tmp" "$cfgfile" \
14055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14056test 0 -eq $? || _lt_function_replace_fail=:
14057
14058
14059 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14060func_split_long_opt ()\
14061{\
14062\ func_split_long_opt_name=${1%%=*}\
14063\ func_split_long_opt_arg=${1#*=}\
14064} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14065 && mv -f "$cfgfile.tmp" "$cfgfile" \
14066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14067test 0 -eq $? || _lt_function_replace_fail=:
14068
14069
14070 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14071func_split_short_opt ()\
14072{\
14073\ func_split_short_opt_arg=${1#??}\
14074\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14075} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14076 && mv -f "$cfgfile.tmp" "$cfgfile" \
14077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14078test 0 -eq $? || _lt_function_replace_fail=:
14079
14080
14081 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14082func_lo2o ()\
14083{\
14084\ case ${1} in\
14085\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14086\ *) func_lo2o_result=${1} ;;\
14087\ esac\
14088} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14089 && mv -f "$cfgfile.tmp" "$cfgfile" \
14090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14091test 0 -eq $? || _lt_function_replace_fail=:
14092
14093
14094 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14095func_xform ()\
14096{\
14097 func_xform_result=${1%.*}.lo\
14098} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14099 && mv -f "$cfgfile.tmp" "$cfgfile" \
14100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14101test 0 -eq $? || _lt_function_replace_fail=:
14102
14103
14104 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14105func_arith ()\
14106{\
14107 func_arith_result=$(( $* ))\
14108} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14109 && mv -f "$cfgfile.tmp" "$cfgfile" \
14110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14111test 0 -eq $? || _lt_function_replace_fail=:
14112
14113
14114 sed -e '/^func_len ()$/,/^} # func_len /c\
14115func_len ()\
14116{\
14117 func_len_result=${#1}\
14118} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14119 && mv -f "$cfgfile.tmp" "$cfgfile" \
14120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14121test 0 -eq $? || _lt_function_replace_fail=:
14122
14123fi
14124
14125if test x"$lt_shell_append" = xyes; then
14126 sed -e '/^func_append ()$/,/^} # func_append /c\
14127func_append ()\
14128{\
14129 eval "${1}+=\\${2}"\
14130} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14131 && mv -f "$cfgfile.tmp" "$cfgfile" \
14132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14133test 0 -eq $? || _lt_function_replace_fail=:
14134
14135
14136 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14137func_append_quoted ()\
14138{\
14139\ func_quote_for_eval "${2}"\
14140\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14141} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14142 && mv -f "$cfgfile.tmp" "$cfgfile" \
14143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144test 0 -eq $? || _lt_function_replace_fail=:
14145
14146
14147 # Save a `func_append' function call where possible by direct use of '+='
14148 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14149 && mv -f "$cfgfile.tmp" "$cfgfile" \
14150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14151 test 0 -eq $? || _lt_function_replace_fail=:
14152else
14153 # Save a `func_append' function call even when '+=' is not available
14154 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14155 && mv -f "$cfgfile.tmp" "$cfgfile" \
14156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14157 test 0 -eq $? || _lt_function_replace_fail=:
14158fi
14159
14160if test x"$_lt_function_replace_fail" = x":"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14162$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14163fi
14164
14165
14166 mv -f "$cfgfile" "$ofile" ||
5c706339
AK
14167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14168 chmod +x "$ofile"
14169
b9668ba4
AK
14170 ;;
14171
14172 esac
14173done # for ac_tag
14174
14175
0fbeb4dc 14176as_fn_exit 0
b9668ba4 14177_ACEOF
b9668ba4
AK
14178ac_clean_files=$ac_clean_files_save
14179
47dc80f6 14180test $ac_write_fail = 0 ||
0fbeb4dc 14181 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47dc80f6 14182
b9668ba4
AK
14183
14184# configure is writing to config.log, and then calls config.status.
14185# config.status does its own redirection, appending to config.log.
14186# Unfortunately, on DOS this fails, as config.log is still kept open
14187# by configure, so config.status won't be able to write to it; its
14188# output is simply discarded. So we exec the FD to /dev/null,
14189# effectively closing config.log, so it can be properly (re)opened and
14190# appended to by config.status. When coming back to configure, we
14191# need to make the FD available again.
14192if test "$no_create" != yes; then
14193 ac_cs_success=:
14194 ac_config_status_args=
14195 test "$silent" = yes &&
14196 ac_config_status_args="$ac_config_status_args --quiet"
14197 exec 5>/dev/null
14198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14199 exec 5>>config.log
14200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14201 # would make configure fail if this is the last instruction.
0fbeb4dc 14202 $ac_cs_success || as_fn_exit 1
b9668ba4 14203fi
47dc80f6 14204if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
0fbeb4dc 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47dc80f6
AK
14206$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14207fi
b9668ba4 14208
This page took 2.321854 seconds and 5 git commands to generate.