]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libsframe/configure
libsframe: remove sframe_get_funcdesc_with_addr API
[thirdparty/binutils-gdb.git] / libsframe / configure
CommitLineData
19e559f1
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsframe BFD_VERSION.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libsframe'
589PACKAGE_TARNAME='libsframe'
590PACKAGE_VERSION='BFD_VERSION'
591PACKAGE_STRING='libsframe BFD_VERSION'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="sframe.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_header_list=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637bfdincludedir
638bfdlibdir
639target_noncanonical
640host_noncanonical
641INSTALL_LIBBFD_FALSE
642INSTALL_LIBBFD_TRUE
643MAINT
644MAINTAINER_MODE_FALSE
645MAINTAINER_MODE_TRUE
c1c57352
IB
646BUILD_INFO_FALSE
647BUILD_INFO_TRUE
19e559f1
WP
648COMPAT_DEJAGNU
649HAVE_COMPAT_DEJAGNU_FALSE
650HAVE_COMPAT_DEJAGNU_TRUE
651ac_libsframe_warn_cflags
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673LIBTOOL
674ac_ct_AR
675AR
676RANLIB
677AM_BACKSLASH
678AM_DEFAULT_VERBOSITY
679AM_DEFAULT_V
680AM_V
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684am__nodep
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714EGREP
715GREP
716CPP
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_dependency_tracking
766enable_silent_rules
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_gnu_ld
772enable_libtool_lock
773enable_largefile
774enable_maintainer_mode
775enable_install_libbfd
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
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 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199fi
1200
1201if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207fi
1208
1209# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326\`configure' configures libsframe BFD_VERSION to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libsframe]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of libsframe BFD_VERSION:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-dependency-tracking
1405 do not reject slow dependency extractors
1406 --disable-dependency-tracking
1407 speeds up one-time build
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-shared[=PKGS] build shared libraries [default=no]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --disable-largefile omit support for large files
1416 --enable-maintainer-mode
1417 enable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
1419 --enable-install-libbfd controls installation of libbfd and related headers
1420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427
1428Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to the package provider.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499fi
1500
1501test -n "$ac_init_help" && exit $ac_status
1502if $ac_init_version; then
1503 cat <<\_ACEOF
1504libsframe configure BFD_VERSION
1505generated by GNU Autoconf 2.69
1506
1507Copyright (C) 2012 Free Software Foundation, Inc.
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
1511 exit
1512fi
1513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_cpp LINENO
1557# ----------------------
1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_cpp ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } > conftest.i && {
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_cpp
1592
1593# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1594# -------------------------------------------------------
1595# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1596# the include files in INCLUDES and setting the cache variable VAR
1597# accordingly.
1598ac_fn_c_check_header_mongrel ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if eval \${$3+:} false; then :
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1606fi
1607eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609$as_echo "$ac_res" >&6; }
1610else
1611 # Is the header compilable?
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1613$as_echo_n "checking $2 usability... " >&6; }
1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h. */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620 ac_header_compiler=yes
1621else
1622 ac_header_compiler=no
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1626$as_echo "$ac_header_compiler" >&6; }
1627
1628# Is the header present?
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1630$as_echo_n "checking $2 presence... " >&6; }
1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_cpp "$LINENO"; then :
1636 ac_header_preproc=yes
1637else
1638 ac_header_preproc=no
1639fi
1640rm -f conftest.err conftest.i conftest.$ac_ext
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1642$as_echo "$ac_header_preproc" >&6; }
1643
1644# So? What about this header?
1645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646 yes:no: )
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1648$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651 ;;
1652 no:yes:* )
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1654$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1656$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1658$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1660$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 ;;
1664esac
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669else
1670 eval "$3=\$ac_header_compiler"
1671fi
1672eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_mongrel
1679
1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_run
1721
1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists and can be compiled using the include files in
1725# INCLUDES, setting the cache variable VAR accordingly.
1726ac_fn_c_check_header_compile ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h. */
1736$4
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741else
1742 eval "$3=no"
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751} # ac_fn_c_check_header_compile
1752
1753# ac_fn_c_try_link LINENO
1754# -----------------------
1755# Try to link conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_link ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext conftest$ac_exeext
1760 if { { ac_try="$ac_link"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
1780 test -x conftest$ac_exeext
1781 }; then :
1782 ac_retval=0
1783else
1784 $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788fi
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_link
1798
1799# ac_fn_c_check_func LINENO FUNC VAR
1800# ----------------------------------
1801# Tests whether FUNC exists, setting the cache variable VAR accordingly
1802ac_fn_c_check_func ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814#define $2 innocuous_$2
1815
1816/* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1820
1821#ifdef __STDC__
1822# include <limits.h>
1823#else
1824# include <assert.h>
1825#endif
1826
1827#undef $2
1828
1829/* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832#ifdef __cplusplus
1833extern "C"
1834#endif
1835char $2 ();
1836/* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839#if defined __stub_$2 || defined __stub___$2
1840choke me
1841#endif
1842
1843int
1844main ()
1845{
1846return $2 ();
1847 ;
1848 return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853else
1854 eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1858fi
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864} # ac_fn_c_check_func
1865
1866# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1867# ---------------------------------------------
1868# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1869# accordingly.
1870ac_fn_c_check_decl ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 as_decl_name=`echo $2|sed 's/ *(.*//'`
1874 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1876$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1877if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886#ifndef $as_decl_name
1887#ifdef __cplusplus
1888 (void) $as_decl_use;
1889#else
1890 (void) $as_decl_name;
1891#endif
1892#endif
1893
1894 ;
1895 return 0;
1896}
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899 eval "$3=yes"
1900else
1901 eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_decl
1911cat >config.log <<_ACEOF
1912This file contains any messages produced by compilers while
1913running configure, to aid debugging if configure makes a mistake.
1914
1915It was created by libsframe $as_me BFD_VERSION, which was
1916generated by GNU Autoconf 2.69. Invocation command line was
1917
1918 $ $0 $@
1919
1920_ACEOF
1921exec 5>>config.log
1922{
1923cat <<_ASUNAME
1924## --------- ##
1925## Platform. ##
1926## --------- ##
1927
1928hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933
1934/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1936
1937/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1938/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1939/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1941/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1942/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1943/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944
1945_ASUNAME
1946
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 $as_echo "PATH: $as_dir"
1953 done
1954IFS=$as_save_IFS
1955
1956} >&5
1957
1958cat >&5 <<_ACEOF
1959
1960
1961## ----------- ##
1962## Core tests. ##
1963## ----------- ##
1964
1965_ACEOF
1966
1967
1968# Keep a trace of the command line.
1969# Strip out --no-create and --no-recursion so they do not pile up.
1970# Strip out --silent because we don't want to record it for future runs.
1971# Also quote any args containing shell meta-characters.
1972# Make two passes to allow for proper duplicate-argument suppression.
1973ac_configure_args=
1974ac_configure_args0=
1975ac_configure_args1=
1976ac_must_keep_next=false
1977for ac_pass in 1 2
1978do
1979 for ac_arg
1980 do
1981 case $ac_arg in
1982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984 | -silent | --silent | --silen | --sile | --sil)
1985 continue ;;
1986 *\'*)
1987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 esac
1989 case $ac_pass in
1990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1991 2)
1992 as_fn_append ac_configure_args1 " '$ac_arg'"
1993 if test $ac_must_keep_next = true; then
1994 ac_must_keep_next=false # Got value, back to normal.
1995 else
1996 case $ac_arg in
1997 *=* | --config-cache | -C | -disable-* | --disable-* \
1998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000 | -with-* | --with-* | -without-* | --without-* | --x)
2001 case "$ac_configure_args0 " in
2002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2003 esac
2004 ;;
2005 -* ) ac_must_keep_next=true ;;
2006 esac
2007 fi
2008 as_fn_append ac_configure_args " '$ac_arg'"
2009 ;;
2010 esac
2011 done
2012done
2013{ ac_configure_args0=; unset ac_configure_args0;}
2014{ ac_configure_args1=; unset ac_configure_args1;}
2015
2016# When interrupted or exit'd, cleanup temporary files, and complete
2017# config.log. We remove comments because anyway the quotes in there
2018# would cause problems or look ugly.
2019# WARNING: Use '\'' to represent an apostrophe within the trap.
2020# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2021trap 'exit_status=$?
2022 # Save into config.log some information that might help in debugging.
2023 {
2024 echo
2025
2026 $as_echo "## ---------------- ##
2027## Cache variables. ##
2028## ---------------- ##"
2029 echo
2030 # The following way of writing the cache mishandles newlines in values,
2031(
2032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in #(
2035 *${as_nl}*)
2036 case $ac_var in #(
2037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039 esac
2040 case $ac_var in #(
2041 _ | IFS | as_nl) ;; #(
2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043 *) { eval $ac_var=; unset $ac_var;} ;;
2044 esac ;;
2045 esac
2046 done
2047 (set) 2>&1 |
2048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049 *${as_nl}ac_space=\ *)
2050 sed -n \
2051 "s/'\''/'\''\\\\'\'''\''/g;
2052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053 ;; #(
2054 *)
2055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056 ;;
2057 esac |
2058 sort
2059)
2060 echo
2061
2062 $as_echo "## ----------------- ##
2063## Output variables. ##
2064## ----------------- ##"
2065 echo
2066 for ac_var in $ac_subst_vars
2067 do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 $as_echo "$ac_var='\''$ac_val'\''"
2073 done | sort
2074 echo
2075
2076 if test -n "$ac_subst_files"; then
2077 $as_echo "## ------------------- ##
2078## File substitutions. ##
2079## ------------------- ##"
2080 echo
2081 for ac_var in $ac_subst_files
2082 do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in
2085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086 esac
2087 $as_echo "$ac_var='\''$ac_val'\''"
2088 done | sort
2089 echo
2090 fi
2091
2092 if test -s confdefs.h; then
2093 $as_echo "## ----------- ##
2094## confdefs.h. ##
2095## ----------- ##"
2096 echo
2097 cat confdefs.h
2098 echo
2099 fi
2100 test "$ac_signal" != 0 &&
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
2103 } >&5
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106 exit $exit_status
2107' 0
2108for ac_signal in 1 2 13 15; do
2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110done
2111ac_signal=0
2112
2113# confdefs.h avoids OS command line length limits that DEFS can exceed.
2114rm -f -r conftest* confdefs.h
2115
2116$as_echo "/* confdefs.h */" > confdefs.h
2117
2118# Predefined preprocessor variables.
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_NAME "$PACKAGE_NAME"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_VERSION "$PACKAGE_VERSION"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_STRING "$PACKAGE_STRING"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_URL "$PACKAGE_URL"
2142_ACEOF
2143
2144
2145# Let the site file select an alternate cache file if it wants to.
2146# Prefer an explicitly selected file to automatically selected ones.
2147ac_site_file1=NONE
2148ac_site_file2=NONE
2149if test -n "$CONFIG_SITE"; then
2150 # We do not want a PATH search for config.site.
2151 case $CONFIG_SITE in #((
2152 -*) ac_site_file1=./$CONFIG_SITE;;
2153 */*) ac_site_file1=$CONFIG_SITE;;
2154 *) ac_site_file1=./$CONFIG_SITE;;
2155 esac
2156elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2159else
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
2162fi
2163for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164do
2165 test "x$ac_site_file" = xNONE && continue
2166 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169 sed 's/^/| /' "$ac_site_file" >&5
2170 . "$ac_site_file" \
2171 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173as_fn_error $? "failed to load site script $ac_site_file
2174See \`config.log' for more details" "$LINENO" 5; }
2175 fi
2176done
2177
2178if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special files
2180 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2181 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183$as_echo "$as_me: loading cache $cache_file" >&6;}
2184 case $cache_file in
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2187 esac
2188 fi
2189else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191$as_echo "$as_me: creating cache $cache_file" >&6;}
2192 >$cache_file
2193fi
2194
2195as_fn_append ac_header_list " stdlib.h"
2196as_fn_append ac_header_list " unistd.h"
2197as_fn_append ac_header_list " sys/param.h"
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
2201for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2207 set,)
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2211 ,set)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2234 fi;;
2235 esac
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 esac
2246 fi
2247done
2248if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2254fi
2255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
2258
2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
2266
2267
2268
2269
2270ac_aux_dir=
2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 if test -f "$ac_dir/install-sh"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
2276 elif test -f "$ac_dir/install.sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
2280 elif test -f "$ac_dir/shtool"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285done
2286if test -z "$ac_aux_dir"; then
2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288fi
2289
2290# These three variables are undocumented and unsupported,
2291# and are intended to be withdrawn in a future Autoconf release.
2292# They can cause serious problems if a builder's source tree is in a directory
2293# whose full name contains unusual characters.
2294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
2298
2299# Expand $ac_aux_dir to an absolute path.
2300am_aux_dir=`cd "$ac_aux_dir" && pwd`
2301
2302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2309set dummy ${ac_tool_prefix}gcc; ac_word=$2
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311$as_echo_n "checking for $ac_word... " >&6; }
2312if ${ac_cv_prog_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317else
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2328 fi
2329done
2330 done
2331IFS=$as_save_IFS
2332
2333fi
2334fi
2335CC=$ac_cv_prog_CC
2336if test -n "$CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2338$as_echo "$CC" >&6; }
2339else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341$as_echo "no" >&6; }
2342fi
2343
2344
2345fi
2346if test -z "$ac_cv_prog_CC"; then
2347 ac_ct_CC=$CC
2348 # Extract the first word of "gcc", so it can be a program name with args.
2349set dummy gcc; ac_word=$2
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351$as_echo_n "checking for $ac_word... " >&6; }
2352if ${ac_cv_prog_ac_ct_CC+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354else
2355 if test -n "$ac_ct_CC"; then
2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_ac_ct_CC="gcc"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369done
2370 done
2371IFS=$as_save_IFS
2372
2373fi
2374fi
2375ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376if test -n "$ac_ct_CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2378$as_echo "$ac_ct_CC" >&6; }
2379else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381$as_echo "no" >&6; }
2382fi
2383
2384 if test "x$ac_ct_CC" = x; then
2385 CC=""
2386 else
2387 case $cross_compiling:$ac_tool_warned in
2388yes:)
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2391ac_tool_warned=yes ;;
2392esac
2393 CC=$ac_ct_CC
2394 fi
2395else
2396 CC="$ac_cv_prog_CC"
2397fi
2398
2399if test -z "$CC"; then
2400 if test -n "$ac_tool_prefix"; then
2401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2402set dummy ${ac_tool_prefix}cc; ac_word=$2
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404$as_echo_n "checking for $ac_word... " >&6; }
2405if ${ac_cv_prog_CC+:} false; then :
2406 $as_echo_n "(cached) " >&6
2407else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410else
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_prog_CC="${ac_tool_prefix}cc"
2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422done
2423 done
2424IFS=$as_save_IFS
2425
2426fi
2427fi
2428CC=$ac_cv_prog_CC
2429if test -n "$CC"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2431$as_echo "$CC" >&6; }
2432else
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434$as_echo "no" >&6; }
2435fi
2436
2437
2438 fi
2439fi
2440if test -z "$CC"; then
2441 # Extract the first word of "cc", so it can be a program name with args.
2442set dummy cc; ac_word=$2
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
2445if ${ac_cv_prog_CC+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447else
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451 ac_prog_rejected=no
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2460 ac_prog_rejected=yes
2461 continue
2462 fi
2463 ac_cv_prog_CC="cc"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467done
2468 done
2469IFS=$as_save_IFS
2470
2471if test $ac_prog_rejected = yes; then
2472 # We found a bogon in the path, so make sure we never use it.
2473 set dummy $ac_cv_prog_CC
2474 shift
2475 if test $# != 0; then
2476 # We chose a different compiler from the bogus one.
2477 # However, it has the same basename, so the bogon will be chosen
2478 # first if we set CC to just the basename; use the full file name.
2479 shift
2480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2481 fi
2482fi
2483fi
2484fi
2485CC=$ac_cv_prog_CC
2486if test -n "$CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488$as_echo "$CC" >&6; }
2489else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495fi
2496if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2498 for ac_prog in cl.exe
2499 do
2500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503$as_echo_n "checking for $ac_word... " >&6; }
2504if ${ac_cv_prog_CC+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521done
2522 done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527CC=$ac_cv_prog_CC
2528if test -n "$CC"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2530$as_echo "$CC" >&6; }
2531else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533$as_echo "no" >&6; }
2534fi
2535
2536
2537 test -n "$CC" && break
2538 done
2539fi
2540if test -z "$CC"; then
2541 ac_ct_CC=$CC
2542 for ac_prog in cl.exe
2543do
2544 # Extract the first word of "$ac_prog", so it can be a program name with args.
2545set dummy $ac_prog; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if ${ac_cv_prog_ac_ct_CC+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550else
2551 if test -n "$ac_ct_CC"; then
2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_ac_ct_CC="$ac_prog"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565done
2566 done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571ac_ct_CC=$ac_cv_prog_ac_ct_CC
2572if test -n "$ac_ct_CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2574$as_echo "$ac_ct_CC" >&6; }
2575else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581 test -n "$ac_ct_CC" && break
2582done
2583
2584 if test "x$ac_ct_CC" = x; then
2585 CC=""
2586 else
2587 case $cross_compiling:$ac_tool_warned in
2588yes:)
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591ac_tool_warned=yes ;;
2592esac
2593 CC=$ac_ct_CC
2594 fi
2595fi
2596
2597fi
2598
2599
2600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602as_fn_error $? "no acceptable C compiler found in \$PATH
2603See \`config.log' for more details" "$LINENO" 5; }
2604
2605# Provide some information about the compiler.
2606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2607set X $ac_compile
2608ac_compiler=$2
2609for ac_option in --version -v -V -qversion; do
2610 { { ac_try="$ac_compiler $ac_option >&5"
2611case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614esac
2615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616$as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2618 ac_status=$?
2619 if test -s conftest.err; then
2620 sed '10a\
2621... rest of stderr output deleted ...
2622 10q' conftest.err >conftest.er1
2623 cat conftest.er1 >&5
2624 fi
2625 rm -f conftest.er1 conftest.err
2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627 test $ac_status = 0; }
2628done
2629
2630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632
2633int
2634main ()
2635{
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641ac_clean_files_save=$ac_clean_files
2642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2643# Try to create an executable without -o first, disregard a.out.
2644# It will help us diagnose broken compilers, and finding out an intuition
2645# of exeext.
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2647$as_echo_n "checking whether the C compiler works... " >&6; }
2648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2649
2650# The possible output files:
2651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2652
2653ac_rmfiles=
2654for ac_file in $ac_files
2655do
2656 case $ac_file in
2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2658 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2659 esac
2660done
2661rm -f $ac_rmfiles
2662
2663if { { ac_try="$ac_link_default"
2664case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667esac
2668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669$as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_link_default") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; }; then :
2674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2676# in a Makefile. We should not override ac_cv_exeext if it was cached,
2677# so that the user can short-circuit this test for compilers unknown to
2678# Autoconf.
2679for ac_file in $ac_files ''
2680do
2681 test -f "$ac_file" || continue
2682 case $ac_file in
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2684 ;;
2685 [ab].out )
2686 # We found the default executable, but exeext='' is most
2687 # certainly right.
2688 break;;
2689 *.* )
2690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2691 then :; else
2692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2693 fi
2694 # We set ac_cv_exeext here because the later test for it is not
2695 # safe: cross compilers may not add the suffix if given an `-o'
2696 # argument, so we may need to know it at that point already.
2697 # Even if this section looks crufty: it has the advantage of
2698 # actually working.
2699 break;;
2700 * )
2701 break;;
2702 esac
2703done
2704test "$ac_cv_exeext" = no && ac_cv_exeext=
2705
2706else
2707 ac_file=''
2708fi
2709if test -z "$ac_file"; then :
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712$as_echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717as_fn_error 77 "C compiler cannot create executables
2718See \`config.log' for more details" "$LINENO" 5; }
2719else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721$as_echo "yes" >&6; }
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2724$as_echo_n "checking for C compiler default output file name... " >&6; }
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2726$as_echo "$ac_file" >&6; }
2727ac_exeext=$ac_cv_exeext
2728
2729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2730ac_clean_files=$ac_clean_files_save
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2732$as_echo_n "checking for suffix of executables... " >&6; }
2733if { { ac_try="$ac_link"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739$as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>&5
2741 ac_status=$?
2742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2743 test $ac_status = 0; }; then :
2744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2746# work properly (i.e., refer to `conftest.exe'), while it won't with
2747# `rm'.
2748for ac_file in conftest.exe conftest conftest.*; do
2749 test -f "$ac_file" || continue
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 break;;
2754 * ) break;;
2755 esac
2756done
2757else
2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2761See \`config.log' for more details" "$LINENO" 5; }
2762fi
2763rm -f conftest conftest$ac_cv_exeext
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2765$as_echo "$ac_cv_exeext" >&6; }
2766
2767rm -f conftest.$ac_ext
2768EXEEXT=$ac_cv_exeext
2769ac_exeext=$EXEEXT
2770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771/* end confdefs.h. */
2772#include <stdio.h>
2773int
2774main ()
2775{
2776FILE *f = fopen ("conftest.out", "w");
2777 return ferror (f) || fclose (f) != 0;
2778
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783ac_clean_files="$ac_clean_files conftest.out"
2784# Check that the compiler produces executables we can run. If not, either
2785# the compiler is broken, or we cross compile.
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2787$as_echo_n "checking whether we are cross compiling... " >&6; }
2788if test "$cross_compiling" != yes; then
2789 { { ac_try="$ac_link"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795$as_echo "$ac_try_echo"; } >&5
2796 (eval "$ac_link") 2>&5
2797 ac_status=$?
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }
2800 if { ac_try='./conftest$ac_cv_exeext'
2801 { { case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806$as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_try") 2>&5
2808 ac_status=$?
2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810 test $ac_status = 0; }; }; then
2811 cross_compiling=no
2812 else
2813 if test "$cross_compiling" = maybe; then
2814 cross_compiling=yes
2815 else
2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818as_fn_error $? "cannot run C compiled programs.
2819If you meant to cross compile, use \`--host'.
2820See \`config.log' for more details" "$LINENO" 5; }
2821 fi
2822 fi
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2825$as_echo "$cross_compiling" >&6; }
2826
2827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2828ac_clean_files=$ac_clean_files_save
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2830$as_echo_n "checking for suffix of object files... " >&6; }
2831if ${ac_cv_objext+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833else
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836
2837int
2838main ()
2839{
2840
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845rm -f conftest.o conftest.obj
2846if { { ac_try="$ac_compile"
2847case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850esac
2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852$as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_compile") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }; then :
2857 for ac_file in conftest.o conftest.obj conftest.*; do
2858 test -f "$ac_file" || continue;
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2862 break;;
2863 esac
2864done
2865else
2866 $as_echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error $? "cannot compute suffix of object files: cannot compile
2872See \`config.log' for more details" "$LINENO" 5; }
2873fi
2874rm -f conftest.$ac_cv_objext conftest.$ac_ext
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2877$as_echo "$ac_cv_objext" >&6; }
2878OBJEXT=$ac_cv_objext
2879ac_objext=$OBJEXT
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2882if ${ac_cv_c_compiler_gnu+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884else
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887
2888int
2889main ()
2890{
2891#ifndef __GNUC__
2892 choke me
2893#endif
2894
2895 ;
2896 return 0;
2897}
2898_ACEOF
2899if ac_fn_c_try_compile "$LINENO"; then :
2900 ac_compiler_gnu=yes
2901else
2902 ac_compiler_gnu=no
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905ac_cv_c_compiler_gnu=$ac_compiler_gnu
2906
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2910if test $ac_compiler_gnu = yes; then
2911 GCC=yes
2912else
2913 GCC=
2914fi
2915ac_test_CFLAGS=${CFLAGS+set}
2916ac_save_CFLAGS=$CFLAGS
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2918$as_echo_n "checking whether $CC accepts -g... " >&6; }
2919if ${ac_cv_prog_cc_g+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921else
2922 ac_save_c_werror_flag=$ac_c_werror_flag
2923 ac_c_werror_flag=yes
2924 ac_cv_prog_cc_g=no
2925 CFLAGS="-g"
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_cv_prog_cc_g=yes
2939else
2940 CFLAGS=""
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953
2954else
2955 ac_c_werror_flag=$ac_save_c_werror_flag
2956 CFLAGS="-g"
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h. */
2959
2960int
2961main ()
2962{
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969 ac_cv_prog_cc_g=yes
2970fi
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_c_werror_flag=$ac_save_c_werror_flag
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2979$as_echo "$ac_cv_prog_cc_g" >&6; }
2980if test "$ac_test_CFLAGS" = set; then
2981 CFLAGS=$ac_save_CFLAGS
2982elif test $ac_cv_prog_cc_g = yes; then
2983 if test "$GCC" = yes; then
2984 CFLAGS="-g -O2"
2985 else
2986 CFLAGS="-g"
2987 fi
2988else
2989 if test "$GCC" = yes; then
2990 CFLAGS="-O2"
2991 else
2992 CFLAGS=
2993 fi
2994fi
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2997if ${ac_cv_prog_cc_c89+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 ac_cv_prog_cc_c89=no
3001ac_save_CC=$CC
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h. */
3004#include <stdarg.h>
3005#include <stdio.h>
3006struct stat;
3007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3008struct buf { int x; };
3009FILE * (*rcsopen) (struct buf *, struct stat *, int);
3010static char *e (p, i)
3011 char **p;
3012 int i;
3013{
3014 return p[i];
3015}
3016static char *f (char * (*g) (char **, int), char **p, ...)
3017{
3018 char *s;
3019 va_list v;
3020 va_start (v,p);
3021 s = g (p, va_arg (v,int));
3022 va_end (v);
3023 return s;
3024}
3025
3026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3027 function prototypes and stuff, but not '\xHH' hex character constants.
3028 These don't provoke an error unfortunately, instead are silently treated
3029 as 'x'. The following induces an error, until -std is added to get
3030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3031 array size at least. It's necessary to write '\x00'==0 to get something
3032 that's true only with -std. */
3033int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3034
3035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036 inside strings and character constants. */
3037#define FOO(x) 'x'
3038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3039
3040int test (int i, double x);
3041struct s1 {int (*f) (int a);};
3042struct s2 {int (*f) (double a);};
3043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3044int argc;
3045char **argv;
3046int
3047main ()
3048{
3049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3050 ;
3051 return 0;
3052}
3053_ACEOF
3054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3056do
3057 CC="$ac_save_CC $ac_arg"
3058 if ac_fn_c_try_compile "$LINENO"; then :
3059 ac_cv_prog_cc_c89=$ac_arg
3060fi
3061rm -f core conftest.err conftest.$ac_objext
3062 test "x$ac_cv_prog_cc_c89" != "xno" && break
3063done
3064rm -f conftest.$ac_ext
3065CC=$ac_save_CC
3066
3067fi
3068# AC_CACHE_VAL
3069case "x$ac_cv_prog_cc_c89" in
3070 x)
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3072$as_echo "none needed" >&6; } ;;
3073 xno)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3075$as_echo "unsupported" >&6; } ;;
3076 *)
3077 CC="$CC $ac_cv_prog_cc_c89"
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3080esac
3081if test "x$ac_cv_prog_cc_c89" != xno; then :
3082
3083fi
3084
3085ac_ext=c
3086ac_cpp='$CPP $CPPFLAGS'
3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3097$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3098if ${am_cv_prog_cc_c_o+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100else
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112 # Make sure it works both with $CC and with simple cc.
3113 # Following AC_PROG_CC_C_O, we do the test twice because some
3114 # compilers refuse to overwrite an existing .o file with -o,
3115 # though they will create one.
3116 am_cv_prog_cc_c_o=yes
3117 for am_i in 1 2; do
3118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } \
3123 && test -f conftest2.$ac_objext; then
3124 : OK
3125 else
3126 am_cv_prog_cc_c_o=no
3127 break
3128 fi
3129 done
3130 rm -f core conftest*
3131 unset am_i
3132fi
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3134$as_echo "$am_cv_prog_cc_c_o" >&6; }
3135if test "$am_cv_prog_cc_c_o" != yes; then
3136 # Losing compiler, so override with the script.
3137 # FIXME: It is wrong to rewrite CC.
3138 # But if we don't then we get into trouble of one sort or another.
3139 # A longer-term fix would be to have automake use am__CC in this case,
3140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3141 CC="$am_aux_dir/compile $CC"
3142fi
3143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150
3151ac_ext=c
3152ac_cpp='$CPP $CPPFLAGS'
3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3157$as_echo_n "checking how to run the C preprocessor... " >&6; }
3158# On Suns, sometimes $CPP names a directory.
3159if test -n "$CPP" && test -d "$CPP"; then
3160 CPP=
3161fi
3162if test -z "$CPP"; then
3163 if ${ac_cv_prog_CPP+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165else
3166 # Double quotes because CPP needs to be expanded
3167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3168 do
3169 ac_preproc_ok=false
3170for ac_c_preproc_warn_flag in '' yes
3171do
3172 # Use a header file that comes with gcc, so configuring glibc
3173 # with a fresh cross-compiler works.
3174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3175 # <limits.h> exists even on freestanding compilers.
3176 # On the NeXT, cc -E runs the code through the compiler's parser,
3177 # not just through cpp. "Syntax error" is here to catch this case.
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h. */
3180#ifdef __STDC__
3181# include <limits.h>
3182#else
3183# include <assert.h>
3184#endif
3185 Syntax error
3186_ACEOF
3187if ac_fn_c_try_cpp "$LINENO"; then :
3188
3189else
3190 # Broken: fails on valid input.
3191continue
3192fi
3193rm -f conftest.err conftest.i conftest.$ac_ext
3194
3195 # OK, works on sane cases. Now check whether nonexistent headers
3196 # can be detected and how.
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199#include <ac_nonexistent.h>
3200_ACEOF
3201if ac_fn_c_try_cpp "$LINENO"; then :
3202 # Broken: success on invalid input.
3203continue
3204else
3205 # Passes both tests.
3206ac_preproc_ok=:
3207break
3208fi
3209rm -f conftest.err conftest.i conftest.$ac_ext
3210
3211done
3212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213rm -f conftest.i conftest.err conftest.$ac_ext
3214if $ac_preproc_ok; then :
3215 break
3216fi
3217
3218 done
3219 ac_cv_prog_CPP=$CPP
3220
3221fi
3222 CPP=$ac_cv_prog_CPP
3223else
3224 ac_cv_prog_CPP=$CPP
3225fi
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3227$as_echo "$CPP" >&6; }
3228ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
3246if ac_fn_c_try_cpp "$LINENO"; then :
3247
3248else
3249 # Broken: fails on valid input.
3250continue
3251fi
3252rm -f conftest.err conftest.i conftest.$ac_ext
3253
3254 # OK, works on sane cases. Now check whether nonexistent headers
3255 # can be detected and how.
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257/* end confdefs.h. */
3258#include <ac_nonexistent.h>
3259_ACEOF
3260if ac_fn_c_try_cpp "$LINENO"; then :
3261 # Broken: success on invalid input.
3262continue
3263else
3264 # Passes both tests.
3265ac_preproc_ok=:
3266break
3267fi
3268rm -f conftest.err conftest.i conftest.$ac_ext
3269
3270done
3271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272rm -f conftest.i conftest.err conftest.$ac_ext
3273if $ac_preproc_ok; then :
3274
3275else
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3279See \`config.log' for more details" "$LINENO" 5; }
3280fi
3281
3282ac_ext=c
3283ac_cpp='$CPP $CPPFLAGS'
3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287
3288
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3290$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3291if ${ac_cv_path_GREP+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293else
3294 if test -z "$GREP"; then
3295 ac_path_GREP_found=false
3296 # Loop through the user's path and test for each of PROGNAME-LIST
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_prog in grep ggrep; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3305 as_fn_executable_p "$ac_path_GREP" || continue
3306# Check for GNU ac_path_GREP and select it if it is found.
3307 # Check for GNU $ac_path_GREP
3308case `"$ac_path_GREP" --version 2>&1` in
3309*GNU*)
3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311*)
3312 ac_count=0
3313 $as_echo_n 0123456789 >"conftest.in"
3314 while :
3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
3319 $as_echo 'GREP' >> "conftest.nl"
3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 as_fn_arith $ac_count + 1 && ac_count=$as_val
3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_GREP="$ac_path_GREP"
3326 ac_path_GREP_max=$ac_count
3327 fi
3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332esac
3333
3334 $ac_path_GREP_found && break 3
3335 done
3336 done
3337 done
3338IFS=$as_save_IFS
3339 if test -z "$ac_cv_path_GREP"; then
3340 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3341 fi
3342else
3343 ac_cv_path_GREP=$GREP
3344fi
3345
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3348$as_echo "$ac_cv_path_GREP" >&6; }
3349 GREP="$ac_cv_path_GREP"
3350
3351
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3353$as_echo_n "checking for egrep... " >&6; }
3354if ${ac_cv_path_EGREP+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356else
3357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3358 then ac_cv_path_EGREP="$GREP -E"
3359 else
3360 if test -z "$EGREP"; then
3361 ac_path_EGREP_found=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in egrep; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3371 as_fn_executable_p "$ac_path_EGREP" || continue
3372# Check for GNU ac_path_EGREP and select it if it is found.
3373 # Check for GNU $ac_path_EGREP
3374case `"$ac_path_EGREP" --version 2>&1` in
3375*GNU*)
3376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3377*)
3378 ac_count=0
3379 $as_echo_n 0123456789 >"conftest.in"
3380 while :
3381 do
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo 'EGREP' >> "conftest.nl"
3386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 as_fn_arith $ac_count + 1 && ac_count=$as_val
3389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_EGREP="$ac_path_EGREP"
3392 ac_path_EGREP_max=$ac_count
3393 fi
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3396 done
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398esac
3399
3400 $ac_path_EGREP_found && break 3
3401 done
3402 done
3403 done
3404IFS=$as_save_IFS
3405 if test -z "$ac_cv_path_EGREP"; then
3406 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3407 fi
3408else
3409 ac_cv_path_EGREP=$EGREP
3410fi
3411
3412 fi
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3415$as_echo "$ac_cv_path_EGREP" >&6; }
3416 EGREP="$ac_cv_path_EGREP"
3417
3418
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3420$as_echo_n "checking for ANSI C header files... " >&6; }
3421if ${ac_cv_header_stdc+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423else
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h. */
3426#include <stdlib.h>
3427#include <stdarg.h>
3428#include <string.h>
3429#include <float.h>
3430
3431int
3432main ()
3433{
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_header_stdc=yes
3441else
3442 ac_cv_header_stdc=no
3443fi
3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445
3446if test $ac_cv_header_stdc = yes; then
3447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h. */
3450#include <string.h>
3451
3452_ACEOF
3453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 $EGREP "memchr" >/dev/null 2>&1; then :
3455
3456else
3457 ac_cv_header_stdc=no
3458fi
3459rm -f conftest*
3460
3461fi
3462
3463if test $ac_cv_header_stdc = yes; then
3464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h. */
3467#include <stdlib.h>
3468
3469_ACEOF
3470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3471 $EGREP "free" >/dev/null 2>&1; then :
3472
3473else
3474 ac_cv_header_stdc=no
3475fi
3476rm -f conftest*
3477
3478fi
3479
3480if test $ac_cv_header_stdc = yes; then
3481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3482 if test "$cross_compiling" = yes; then :
3483 :
3484else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h. */
3487#include <ctype.h>
3488#include <stdlib.h>
3489#if ((' ' & 0x0FF) == 0x020)
3490# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3491# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3492#else
3493# define ISLOWER(c) \
3494 (('a' <= (c) && (c) <= 'i') \
3495 || ('j' <= (c) && (c) <= 'r') \
3496 || ('s' <= (c) && (c) <= 'z'))
3497# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3498#endif
3499
3500#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3501int
3502main ()
3503{
3504 int i;
3505 for (i = 0; i < 256; i++)
3506 if (XOR (islower (i), ISLOWER (i))
3507 || toupper (i) != TOUPPER (i))
3508 return 2;
3509 return 0;
3510}
3511_ACEOF
3512if ac_fn_c_try_run "$LINENO"; then :
3513
3514else
3515 ac_cv_header_stdc=no
3516fi
3517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3518 conftest.$ac_objext conftest.beam conftest.$ac_ext
3519fi
3520
3521fi
3522fi
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3524$as_echo "$ac_cv_header_stdc" >&6; }
3525if test $ac_cv_header_stdc = yes; then
3526
3527$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3528
3529fi
3530
3531# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3533 inttypes.h stdint.h unistd.h
3534do :
3535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3536ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3537"
3538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3539 cat >>confdefs.h <<_ACEOF
3540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3541_ACEOF
3542
3543fi
3544
3545done
3546
3547
3548
3549 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3550if test "x$ac_cv_header_minix_config_h" = xyes; then :
3551 MINIX=yes
3552else
3553 MINIX=
3554fi
3555
3556
3557 if test "$MINIX" = yes; then
3558
3559$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3560
3561
3562$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3563
3564
3565$as_echo "#define _MINIX 1" >>confdefs.h
3566
3567 fi
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3571$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3572if ${ac_cv_safe_to_define___extensions__+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577
3578# define __EXTENSIONS__ 1
3579 $ac_includes_default
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_safe_to_define___extensions__=yes
3590else
3591 ac_cv_safe_to_define___extensions__=no
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3596$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3597 test $ac_cv_safe_to_define___extensions__ = yes &&
3598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3599
3600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3601
3602 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3603
3604 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3605
3606 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3607
3608
3609am__api_version='1.15'
3610
3611# Find a good install program. We prefer a C program (faster),
3612# so one script is as good as another. But avoid the broken or
3613# incompatible versions:
3614# SysV /etc/install, /usr/sbin/install
3615# SunOS /usr/etc/install
3616# IRIX /sbin/install
3617# AIX /bin/install
3618# AmigaOS /C/install, which installs bootblocks on floppy discs
3619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622# OS/2's system install, which has a completely different semantic
3623# ./install, which can be erroneously created by make from ./install.sh.
3624# Reject install programs that cannot install multiple files.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3626$as_echo_n "checking for a BSD-compatible install... " >&6; }
3627if test -z "$INSTALL"; then
3628if ${ac_cv_path_install+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 # Account for people who put trailing slashes in PATH elements.
3637case $as_dir/ in #((
3638 ./ | .// | /[cC]/* | \
3639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3641 /usr/ucb/* ) ;;
3642 *)
3643 # OSF1 and SCO ODT 3.0 have their own names for install.
3644 # Don't use installbsd from OSF since it installs stuff as root
3645 # by default.
3646 for ac_prog in ginstall scoinst install; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3649 if test $ac_prog = install &&
3650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # AIX install. It has an incompatible calling convention.
3652 :
3653 elif test $ac_prog = install &&
3654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # program-specific install script used by HP pwplus--don't use.
3656 :
3657 else
3658 rm -rf conftest.one conftest.two conftest.dir
3659 echo one > conftest.one
3660 echo two > conftest.two
3661 mkdir conftest.dir
3662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663 test -s conftest.one && test -s conftest.two &&
3664 test -s conftest.dir/conftest.one &&
3665 test -s conftest.dir/conftest.two
3666 then
3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668 break 3
3669 fi
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675esac
3676
3677 done
3678IFS=$as_save_IFS
3679
3680rm -rf conftest.one conftest.two conftest.dir
3681
3682fi
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
3685 else
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
3691 fi
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3694$as_echo "$INSTALL" >&6; }
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3705$as_echo_n "checking whether build environment is sane... " >&6; }
3706# Reject unsafe characters in $srcdir or the absolute working directory
3707# name. Accept space and tab only in the latter.
3708am_lf='
3709'
3710case `pwd` in
3711 *[\\\"\#\$\&\'\`$am_lf]*)
3712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3713esac
3714case $srcdir in
3715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3717esac
3718
3719# Do 'set' in a subshell so we don't clobber the current shell's
3720# arguments. Must try -L first in case configure is actually a
3721# symlink; some systems play weird games with the mod time of symlinks
3722# (eg FreeBSD returns the mod time of the symlink's containing
3723# directory).
3724if (
3725 am_has_slept=no
3726 for am_try in 1 2; do
3727 echo "timestamp, slept: $am_has_slept" > conftest.file
3728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3729 if test "$*" = "X"; then
3730 # -L didn't work.
3731 set X `ls -t "$srcdir/configure" conftest.file`
3732 fi
3733 if test "$*" != "X $srcdir/configure conftest.file" \
3734 && test "$*" != "X conftest.file $srcdir/configure"; then
3735
3736 # If neither matched, then we have a broken ls. This can happen
3737 # if, for instance, CONFIG_SHELL is bash and it inherits a
3738 # broken ls alias from the environment. This has actually
3739 # happened. Such a system could not be considered "sane".
3740 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3741 alias in your environment" "$LINENO" 5
3742 fi
3743 if test "$2" = conftest.file || test $am_try -eq 2; then
3744 break
3745 fi
3746 # Just in case.
3747 sleep 1
3748 am_has_slept=yes
3749 done
3750 test "$2" = conftest.file
3751 )
3752then
3753 # Ok.
3754 :
3755else
3756 as_fn_error $? "newly created file is older than distributed files!
3757Check your system clock" "$LINENO" 5
3758fi
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3760$as_echo "yes" >&6; }
3761# If we didn't sleep, we still need to ensure time stamps of config.status and
3762# generated files are strictly newer.
3763am_sleep_pid=
3764if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3765 ( sleep 1 ) &
3766 am_sleep_pid=$!
3767fi
3768
3769rm -f conftest.file
3770
3771test "$program_prefix" != NONE &&
3772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3773# Use a double $ so make ignores it.
3774test "$program_suffix" != NONE &&
3775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3776# Double any \ or $.
3777# By default was `s,x,x', remove it if useless.
3778ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3779program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3780
3781if test x"${MISSING+set}" != xset; then
3782 case $am_aux_dir in
3783 *\ * | *\ *)
3784 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3785 *)
3786 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3787 esac
3788fi
3789# Use eval to expand $SHELL
3790if eval "$MISSING --is-lightweight"; then
3791 am_missing_run="$MISSING "
3792else
3793 am_missing_run=
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3795$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3796fi
3797
3798if test x"${install_sh+set}" != xset; then
3799 case $am_aux_dir in
3800 *\ * | *\ *)
3801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3802 *)
3803 install_sh="\${SHELL} $am_aux_dir/install-sh"
3804 esac
3805fi
3806
3807# Installed binaries are usually stripped using 'strip' when the user
3808# run "make install-strip". However 'strip' might not be the right
3809# tool to use in cross-compilation environments, therefore Automake
3810# will honor the 'STRIP' environment variable to overrule this program.
3811if test "$cross_compiling" != no; then
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3814set dummy ${ac_tool_prefix}strip; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if ${ac_cv_prog_STRIP+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 if test -n "$STRIP"; then
3821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
3835 done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840STRIP=$ac_cv_prog_STRIP
3841if test -n "$STRIP"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3843$as_echo "$STRIP" >&6; }
3844else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849
3850fi
3851if test -z "$ac_cv_prog_STRIP"; then
3852 ac_ct_STRIP=$STRIP
3853 # Extract the first word of "strip", so it can be a program name with args.
3854set dummy strip; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859else
3860 if test -n "$ac_ct_STRIP"; then
3861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_STRIP="strip"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875 done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3881if test -n "$ac_ct_STRIP"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3883$as_echo "$ac_ct_STRIP" >&6; }
3884else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889 if test "x$ac_ct_STRIP" = x; then
3890 STRIP=":"
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893yes:)
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896ac_tool_warned=yes ;;
3897esac
3898 STRIP=$ac_ct_STRIP
3899 fi
3900else
3901 STRIP="$ac_cv_prog_STRIP"
3902fi
3903
3904fi
3905INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3908$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3909if test -z "$MKDIR_P"; then
3910 if ${ac_cv_path_mkdir+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in mkdir gmkdir; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3922 'mkdir (GNU coreutils) '* | \
3923 'mkdir (coreutils) '* | \
3924 'mkdir (fileutils) '4.1*)
3925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3926 break 3;;
3927 esac
3928 done
3929 done
3930 done
3931IFS=$as_save_IFS
3932
3933fi
3934
3935 test -d ./--version && rmdir ./--version
3936 if test "${ac_cv_path_mkdir+set}" = set; then
3937 MKDIR_P="$ac_cv_path_mkdir -p"
3938 else
3939 # As a last resort, use the slow shell script. Don't cache a
3940 # value for MKDIR_P within a source directory, because that will
3941 # break other packages using the cache if that directory is
3942 # removed, or if the value is a relative name.
3943 MKDIR_P="$ac_install_sh -d"
3944 fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3947$as_echo "$MKDIR_P" >&6; }
3948
3949for ac_prog in gawk mawk nawk awk
3950do
3951 # Extract the first word of "$ac_prog", so it can be a program name with args.
3952set dummy $ac_prog; ac_word=$2
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if ${ac_cv_prog_AWK+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 if test -n "$AWK"; then
3959 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_AWK="$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972done
3973 done
3974IFS=$as_save_IFS
3975
3976fi
3977fi
3978AWK=$ac_cv_prog_AWK
3979if test -n "$AWK"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3981$as_echo "$AWK" >&6; }
3982else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987
3988 test -n "$AWK" && break
3989done
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3992$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3993set x ${MAKE-make}
3994ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3995if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 cat >conftest.make <<\_ACEOF
3999SHELL = /bin/sh
4000all:
4001 @echo '@@@%%%=$(MAKE)=@@@%%%'
4002_ACEOF
4003# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4004case `${MAKE-make} -f conftest.make 2>/dev/null` in
4005 *@@@%%%=?*=@@@%%%*)
4006 eval ac_cv_prog_make_${ac_make}_set=yes;;
4007 *)
4008 eval ac_cv_prog_make_${ac_make}_set=no;;
4009esac
4010rm -f conftest.make
4011fi
4012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014$as_echo "yes" >&6; }
4015 SET_MAKE=
4016else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019 SET_MAKE="MAKE=${MAKE-make}"
4020fi
4021
4022rm -rf .tst 2>/dev/null
4023mkdir .tst 2>/dev/null
4024if test -d .tst; then
4025 am__leading_dot=.
4026else
4027 am__leading_dot=_
4028fi
4029rmdir .tst 2>/dev/null
4030
4031DEPDIR="${am__leading_dot}deps"
4032
4033ac_config_commands="$ac_config_commands depfiles"
4034
4035
4036am_make=${MAKE-make}
4037cat > confinc << 'END'
4038am__doit:
4039 @echo this is the am__doit target
4040.PHONY: am__doit
4041END
4042# If we don't find an include directive, just comment out the code.
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4044$as_echo_n "checking for style of include used by $am_make... " >&6; }
4045am__include="#"
4046am__quote=
4047_am_result=none
4048# First try GNU make style include.
4049echo "include confinc" > confmf
4050# Ignore all kinds of additional output from 'make'.
4051case `$am_make -s -f confmf 2> /dev/null` in #(
4052*the\ am__doit\ target*)
4053 am__include=include
4054 am__quote=
4055 _am_result=GNU
4056 ;;
4057esac
4058# Now try BSD make style include.
4059if test "$am__include" = "#"; then
4060 echo '.include "confinc"' > confmf
4061 case `$am_make -s -f confmf 2> /dev/null` in #(
4062 *the\ am__doit\ target*)
4063 am__include=.include
4064 am__quote="\""
4065 _am_result=BSD
4066 ;;
4067 esac
4068fi
4069
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4072$as_echo "$_am_result" >&6; }
4073rm -f confinc confmf
4074
4075# Check whether --enable-dependency-tracking was given.
4076if test "${enable_dependency_tracking+set}" = set; then :
4077 enableval=$enable_dependency_tracking;
4078fi
4079
4080if test "x$enable_dependency_tracking" != xno; then
4081 am_depcomp="$ac_aux_dir/depcomp"
4082 AMDEPBACKSLASH='\'
4083 am__nodep='_no'
4084fi
4085 if test "x$enable_dependency_tracking" != xno; then
4086 AMDEP_TRUE=
4087 AMDEP_FALSE='#'
4088else
4089 AMDEP_TRUE='#'
4090 AMDEP_FALSE=
4091fi
4092
4093
4094# Check whether --enable-silent-rules was given.
4095if test "${enable_silent_rules+set}" = set; then :
4096 enableval=$enable_silent_rules;
4097fi
4098
4099case $enable_silent_rules in # (((
4100 yes) AM_DEFAULT_VERBOSITY=0;;
4101 no) AM_DEFAULT_VERBOSITY=1;;
4102 *) AM_DEFAULT_VERBOSITY=1;;
4103esac
4104am_make=${MAKE-make}
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4106$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4107if ${am_cv_make_support_nested_variables+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109else
4110 if $as_echo 'TRUE=$(BAR$(V))
4111BAR0=false
4112BAR1=true
4113V=1
4114am__doit:
4115 @$(TRUE)
4116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4117 am_cv_make_support_nested_variables=yes
4118else
4119 am_cv_make_support_nested_variables=no
4120fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4123$as_echo "$am_cv_make_support_nested_variables" >&6; }
4124if test $am_cv_make_support_nested_variables = yes; then
4125 AM_V='$(V)'
4126 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4127else
4128 AM_V=$AM_DEFAULT_VERBOSITY
4129 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4130fi
4131AM_BACKSLASH='\'
4132
4133if test "`cd $srcdir && pwd`" != "`pwd`"; then
4134 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4135 # is not polluted with repeated "-I."
4136 am__isrc=' -I$(srcdir)'
4137 # test to see if srcdir already configured
4138 if test -f $srcdir/config.status; then
4139 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4140 fi
4141fi
4142
4143# test whether we have cygpath
4144if test -z "$CYGPATH_W"; then
4145 if (cygpath --version) >/dev/null 2>/dev/null; then
4146 CYGPATH_W='cygpath -w'
4147 else
4148 CYGPATH_W=echo
4149 fi
4150fi
4151
4152
4153# Define the identity of the package.
4154 PACKAGE='libsframe'
4155 VERSION='BFD_VERSION'
4156
4157
4158cat >>confdefs.h <<_ACEOF
4159#define PACKAGE "$PACKAGE"
4160_ACEOF
4161
4162
4163cat >>confdefs.h <<_ACEOF
4164#define VERSION "$VERSION"
4165_ACEOF
4166
4167# Some tools Automake needs.
4168
4169ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4170
4171
4172AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4173
4174
4175AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4176
4177
4178AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4179
4180
4181MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4182
4183# For better backward compatibility. To be removed once Automake 1.9.x
4184# dies out for good. For more background, see:
4185# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4186# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4187mkdir_p='$(MKDIR_P)'
4188
4189# We need awk for the "check" target (and possibly the TAP driver). The
4190# system "awk" is bad on some platforms.
4191# Always define AMTAR for backward compatibility. Yes, it's still used
4192# in the wild :-( We should find a proper way to deprecate it ...
4193AMTAR='$${TAR-tar}'
4194
4195
4196# We'll loop over all known methods to create a tar archive until one works.
4197_am_tools='gnutar pax cpio none'
4198
4199am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4200
4201
4202
4203
4204
4205depcc="$CC" am_compiler_list=
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4208$as_echo_n "checking dependency style of $depcc... " >&6; }
4209if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4213 # We make a subdir and do the tests there. Otherwise we can end up
4214 # making bogus files that we don't know about and never remove. For
4215 # instance it was reported that on HP-UX the gcc test will end up
4216 # making a dummy file named 'D' -- because '-MD' means "put the output
4217 # in D".
4218 rm -rf conftest.dir
4219 mkdir conftest.dir
4220 # Copy depcomp to subdir because otherwise we won't find it if we're
4221 # using a relative directory.
4222 cp "$am_depcomp" conftest.dir
4223 cd conftest.dir
4224 # We will build objects and dependencies in a subdirectory because
4225 # it helps to detect inapplicable dependency modes. For instance
4226 # both Tru64's cc and ICC support -MD to output dependencies as a
4227 # side effect of compilation, but ICC will put the dependencies in
4228 # the current directory while Tru64 will put them in the object
4229 # directory.
4230 mkdir sub
4231
4232 am_cv_CC_dependencies_compiler_type=none
4233 if test "$am_compiler_list" = ""; then
4234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4235 fi
4236 am__universal=false
4237 case " $depcc " in #(
4238 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4239 esac
4240
4241 for depmode in $am_compiler_list; do
4242 # Setup a source with many dependencies, because some compilers
4243 # like to wrap large dependency lists on column 80 (with \), and
4244 # we should not choose a depcomp mode which is confused by this.
4245 #
4246 # We need to recreate these files for each test, as the compiler may
4247 # overwrite some of them when testing with obscure command lines.
4248 # This happens at least with the AIX C compiler.
4249 : > sub/conftest.c
4250 for i in 1 2 3 4 5 6; do
4251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4252 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4253 # Solaris 10 /bin/sh.
4254 echo '/* dummy */' > sub/conftst$i.h
4255 done
4256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4257
4258 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4259 # mode. It turns out that the SunPro C++ compiler does not properly
4260 # handle '-M -o', and we need to detect this. Also, some Intel
4261 # versions had trouble with output in subdirs.
4262 am__obj=sub/conftest.${OBJEXT-o}
4263 am__minus_obj="-o $am__obj"
4264 case $depmode in
4265 gcc)
4266 # This depmode causes a compiler race in universal mode.
4267 test "$am__universal" = false || continue
4268 ;;
4269 nosideeffect)
4270 # After this tag, mechanisms are not by side-effect, so they'll
4271 # only be used when explicitly requested.
4272 if test "x$enable_dependency_tracking" = xyes; then
4273 continue
4274 else
4275 break
4276 fi
4277 ;;
4278 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4279 # This compiler won't grok '-c -o', but also, the minuso test has
4280 # not run yet. These depmodes are late enough in the game, and
4281 # so weak that their functioning should not be impacted.
4282 am__obj=conftest.${OBJEXT-o}
4283 am__minus_obj=
4284 ;;
4285 none) break ;;
4286 esac
4287 if depmode=$depmode \
4288 source=sub/conftest.c object=$am__obj \
4289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4290 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4291 >/dev/null 2>conftest.err &&
4292 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4294 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4296 # icc doesn't choke on unknown options, it will just issue warnings
4297 # or remarks (even with -Werror). So we grep stderr for any message
4298 # that says an option was ignored or not supported.
4299 # When given -MP, icc 7.0 and 7.1 complain thusly:
4300 # icc: Command line warning: ignoring option '-M'; no argument required
4301 # The diagnosis changed in icc 8.0:
4302 # icc: Command line remark: option '-MP' not supported
4303 if (grep 'ignoring option' conftest.err ||
4304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4305 am_cv_CC_dependencies_compiler_type=$depmode
4306 break
4307 fi
4308 fi
4309 done
4310
4311 cd ..
4312 rm -rf conftest.dir
4313else
4314 am_cv_CC_dependencies_compiler_type=none
4315fi
4316
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4319$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4320CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4321
4322 if
4323 test "x$enable_dependency_tracking" != xno \
4324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4325 am__fastdepCC_TRUE=
4326 am__fastdepCC_FALSE='#'
4327else
4328 am__fastdepCC_TRUE='#'
4329 am__fastdepCC_FALSE=
4330fi
4331
4332
4333
4334# POSIX will say in a future version that running "rm -f" with no argument
4335# is OK; and we want to be able to make that assumption in our Makefile
4336# recipes. So use an aggressive probe to check that the usage we want is
4337# actually supported "in the wild" to an acceptable degree.
4338# See automake bug#10828.
4339# To make any issue more visible, cause the running configure to be aborted
4340# by default if the 'rm' program in use doesn't match our expectations; the
4341# user can still override this though.
4342if rm -f && rm -fr && rm -rf; then : OK; else
4343 cat >&2 <<'END'
4344Oops!
4345
4346Your 'rm' program seems unable to run without file operands specified
4347on the command line, even when the '-f' option is present. This is contrary
4348to the behaviour of most rm programs out there, and not conforming with
4349the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4350
4351Please tell bug-automake@gnu.org about your system, including the value
4352of your $PATH and any error possibly output before this message. This
4353can help us improve future automake versions.
4354
4355END
4356 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4357 echo 'Configuration will proceed anyway, since you have set the' >&2
4358 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4359 echo >&2
4360 else
4361 cat >&2 <<'END'
4362Aborting the configuration process, to ensure you take notice of the issue.
4363
4364You can download and install GNU coreutils to get an 'rm' implementation
4365that behaves properly: <http://www.gnu.org/software/coreutils/>.
4366
4367If you want to complete the configuration process using your problematic
4368'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4369to "yes", and re-run configure.
4370
4371END
4372 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4373 fi
4374fi
4375
0fcd58d8
IB
4376# Check whether --enable-silent-rules was given.
4377if test "${enable_silent_rules+set}" = set; then :
4378 enableval=$enable_silent_rules;
4379fi
4380
4381case $enable_silent_rules in # (((
4382 yes) AM_DEFAULT_VERBOSITY=0;;
4383 no) AM_DEFAULT_VERBOSITY=1;;
4384 *) AM_DEFAULT_VERBOSITY=0;;
4385esac
4386am_make=${MAKE-make}
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4388$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4389if ${am_cv_make_support_nested_variables+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391else
4392 if $as_echo 'TRUE=$(BAR$(V))
4393BAR0=false
4394BAR1=true
4395V=1
4396am__doit:
4397 @$(TRUE)
4398.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4399 am_cv_make_support_nested_variables=yes
4400else
4401 am_cv_make_support_nested_variables=no
4402fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4405$as_echo "$am_cv_make_support_nested_variables" >&6; }
4406if test $am_cv_make_support_nested_variables = yes; then
4407 AM_V='$(V)'
4408 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4409else
4410 AM_V=$AM_DEFAULT_VERBOSITY
4411 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4412fi
4413AM_BACKSLASH='\'
4414
19e559f1
WP
4415
4416# Checks for programs.
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4418$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4419set x ${MAKE-make}
4420ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4421if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423else
4424 cat >conftest.make <<\_ACEOF
4425SHELL = /bin/sh
4426all:
4427 @echo '@@@%%%=$(MAKE)=@@@%%%'
4428_ACEOF
4429# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4430case `${MAKE-make} -f conftest.make 2>/dev/null` in
4431 *@@@%%%=?*=@@@%%%*)
4432 eval ac_cv_prog_make_${ac_make}_set=yes;;
4433 *)
4434 eval ac_cv_prog_make_${ac_make}_set=no;;
4435esac
4436rm -f conftest.make
4437fi
4438if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440$as_echo "yes" >&6; }
4441 SET_MAKE=
4442else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445 SET_MAKE="MAKE=${MAKE-make}"
4446fi
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453if test -n "$ac_tool_prefix"; then
4454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4455set dummy ${ac_tool_prefix}gcc; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if ${ac_cv_prog_CC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
4476 done
4477IFS=$as_save_IFS
4478
4479fi
4480fi
4481CC=$ac_cv_prog_CC
4482if test -n "$CC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4484$as_echo "$CC" >&6; }
4485else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
4489
4490
4491fi
4492if test -z "$ac_cv_prog_CC"; then
4493 ac_ct_CC=$CC
4494 # Extract the first word of "gcc", so it can be a program name with args.
4495set dummy gcc; ac_word=$2
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497$as_echo_n "checking for $ac_word... " >&6; }
4498if ${ac_cv_prog_ac_ct_CC+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500else
4501 if test -n "$ac_ct_CC"; then
4502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_ac_ct_CC="gcc"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516 done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521ac_ct_CC=$ac_cv_prog_ac_ct_CC
4522if test -n "$ac_ct_CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4524$as_echo "$ac_ct_CC" >&6; }
4525else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528fi
4529
4530 if test "x$ac_ct_CC" = x; then
4531 CC=""
4532 else
4533 case $cross_compiling:$ac_tool_warned in
4534yes:)
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4537ac_tool_warned=yes ;;
4538esac
4539 CC=$ac_ct_CC
4540 fi
4541else
4542 CC="$ac_cv_prog_CC"
4543fi
4544
4545if test -z "$CC"; then
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4548set dummy ${ac_tool_prefix}cc; ac_word=$2
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550$as_echo_n "checking for $ac_word... " >&6; }
4551if ${ac_cv_prog_CC+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553else
4554 if test -n "$CC"; then
4555 ac_cv_prog_CC="$CC" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_CC="${ac_tool_prefix}cc"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568done
4569 done
4570IFS=$as_save_IFS
4571
4572fi
4573fi
4574CC=$ac_cv_prog_CC
4575if test -n "$CC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4577$as_echo "$CC" >&6; }
4578else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581fi
4582
4583
4584 fi
4585fi
4586if test -z "$CC"; then
4587 # Extract the first word of "cc", so it can be a program name with args.
4588set dummy cc; ac_word=$2
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590$as_echo_n "checking for $ac_word... " >&6; }
4591if ${ac_cv_prog_CC+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593else
4594 if test -n "$CC"; then
4595 ac_cv_prog_CC="$CC" # Let the user override the test.
4596else
4597 ac_prog_rejected=no
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4606 ac_prog_rejected=yes
4607 continue
4608 fi
4609 ac_cv_prog_CC="cc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614 done
4615IFS=$as_save_IFS
4616
4617if test $ac_prog_rejected = yes; then
4618 # We found a bogon in the path, so make sure we never use it.
4619 set dummy $ac_cv_prog_CC
4620 shift
4621 if test $# != 0; then
4622 # We chose a different compiler from the bogus one.
4623 # However, it has the same basename, so the bogon will be chosen
4624 # first if we set CC to just the basename; use the full file name.
4625 shift
4626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4627 fi
4628fi
4629fi
4630fi
4631CC=$ac_cv_prog_CC
4632if test -n "$CC"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4634$as_echo "$CC" >&6; }
4635else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641fi
4642if test -z "$CC"; then
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in cl.exe
4645 do
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
4650if ${ac_cv_prog_CC+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
4670
4671fi
4672fi
4673CC=$ac_cv_prog_CC
4674if test -n "$CC"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4676$as_echo "$CC" >&6; }
4677else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681
4682
4683 test -n "$CC" && break
4684 done
4685fi
4686if test -z "$CC"; then
4687 ac_ct_CC=$CC
4688 for ac_prog in cl.exe
4689do
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691set dummy $ac_prog; ac_word=$2
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if ${ac_cv_prog_ac_ct_CC+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$ac_ct_CC"; then
4698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_ac_ct_CC="$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712 done
4713IFS=$as_save_IFS
4714
4715fi
4716fi
4717ac_ct_CC=$ac_cv_prog_ac_ct_CC
4718if test -n "$ac_ct_CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4720$as_echo "$ac_ct_CC" >&6; }
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726
4727 test -n "$ac_ct_CC" && break
4728done
4729
4730 if test "x$ac_ct_CC" = x; then
4731 CC=""
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734yes:)
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737ac_tool_warned=yes ;;
4738esac
4739 CC=$ac_ct_CC
4740 fi
4741fi
4742
4743fi
4744
4745
4746test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4748as_fn_error $? "no acceptable C compiler found in \$PATH
4749See \`config.log' for more details" "$LINENO" 5; }
4750
4751# Provide some information about the compiler.
4752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4753set X $ac_compile
4754ac_compiler=$2
4755for ac_option in --version -v -V -qversion; do
4756 { { ac_try="$ac_compiler $ac_option >&5"
4757case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760esac
4761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4762$as_echo "$ac_try_echo"; } >&5
4763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4764 ac_status=$?
4765 if test -s conftest.err; then
4766 sed '10a\
4767... rest of stderr output deleted ...
4768 10q' conftest.err >conftest.er1
4769 cat conftest.er1 >&5
4770 fi
4771 rm -f conftest.er1 conftest.err
4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }
4774done
4775
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4777$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4778if ${ac_cv_c_compiler_gnu+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780else
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787#ifndef __GNUC__
4788 choke me
4789#endif
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795if ac_fn_c_try_compile "$LINENO"; then :
4796 ac_compiler_gnu=yes
4797else
4798 ac_compiler_gnu=no
4799fi
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801ac_cv_c_compiler_gnu=$ac_compiler_gnu
4802
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4805$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4806if test $ac_compiler_gnu = yes; then
4807 GCC=yes
4808else
4809 GCC=
4810fi
4811ac_test_CFLAGS=${CFLAGS+set}
4812ac_save_CFLAGS=$CFLAGS
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4814$as_echo_n "checking whether $CC accepts -g... " >&6; }
4815if ${ac_cv_prog_cc_g+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 ac_save_c_werror_flag=$ac_c_werror_flag
4819 ac_c_werror_flag=yes
4820 ac_cv_prog_cc_g=no
4821 CFLAGS="-g"
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823/* end confdefs.h. */
4824
4825int
4826main ()
4827{
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_prog_cc_g=yes
4835else
4836 CFLAGS=""
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h. */
4839
4840int
4841main ()
4842{
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_compile "$LINENO"; then :
4849
4850else
4851 ac_c_werror_flag=$ac_save_c_werror_flag
4852 CFLAGS="-g"
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h. */
4855
4856int
4857main ()
4858{
4859
4860 ;
4861 return 0;
4862}
4863_ACEOF
4864if ac_fn_c_try_compile "$LINENO"; then :
4865 ac_cv_prog_cc_g=yes
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870fi
4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 ac_c_werror_flag=$ac_save_c_werror_flag
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4875$as_echo "$ac_cv_prog_cc_g" >&6; }
4876if test "$ac_test_CFLAGS" = set; then
4877 CFLAGS=$ac_save_CFLAGS
4878elif test $ac_cv_prog_cc_g = yes; then
4879 if test "$GCC" = yes; then
4880 CFLAGS="-g -O2"
4881 else
4882 CFLAGS="-g"
4883 fi
4884else
4885 if test "$GCC" = yes; then
4886 CFLAGS="-O2"
4887 else
4888 CFLAGS=
4889 fi
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4892$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4893if ${ac_cv_prog_cc_c89+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 ac_cv_prog_cc_c89=no
4897ac_save_CC=$CC
4898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900#include <stdarg.h>
4901#include <stdio.h>
4902struct stat;
4903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4904struct buf { int x; };
4905FILE * (*rcsopen) (struct buf *, struct stat *, int);
4906static char *e (p, i)
4907 char **p;
4908 int i;
4909{
4910 return p[i];
4911}
4912static char *f (char * (*g) (char **, int), char **p, ...)
4913{
4914 char *s;
4915 va_list v;
4916 va_start (v,p);
4917 s = g (p, va_arg (v,int));
4918 va_end (v);
4919 return s;
4920}
4921
4922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4923 function prototypes and stuff, but not '\xHH' hex character constants.
4924 These don't provoke an error unfortunately, instead are silently treated
4925 as 'x'. The following induces an error, until -std is added to get
4926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4927 array size at least. It's necessary to write '\x00'==0 to get something
4928 that's true only with -std. */
4929int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4930
4931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4932 inside strings and character constants. */
4933#define FOO(x) 'x'
4934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4935
4936int test (int i, double x);
4937struct s1 {int (*f) (int a);};
4938struct s2 {int (*f) (double a);};
4939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4940int argc;
4941char **argv;
4942int
4943main ()
4944{
4945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4946 ;
4947 return 0;
4948}
4949_ACEOF
4950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4952do
4953 CC="$ac_save_CC $ac_arg"
4954 if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_prog_cc_c89=$ac_arg
4956fi
4957rm -f core conftest.err conftest.$ac_objext
4958 test "x$ac_cv_prog_cc_c89" != "xno" && break
4959done
4960rm -f conftest.$ac_ext
4961CC=$ac_save_CC
4962
4963fi
4964# AC_CACHE_VAL
4965case "x$ac_cv_prog_cc_c89" in
4966 x)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968$as_echo "none needed" >&6; } ;;
4969 xno)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4971$as_echo "unsupported" >&6; } ;;
4972 *)
4973 CC="$CC $ac_cv_prog_cc_c89"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4975$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4976esac
4977if test "x$ac_cv_prog_cc_c89" != xno; then :
4978
4979fi
4980
4981ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986
4987ac_ext=c
4988ac_cpp='$CPP $CPPFLAGS'
4989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4993$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4994if ${am_cv_prog_cc_c_o+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998/* end confdefs.h. */
4999
5000int
5001main ()
5002{
5003
5004 ;
5005 return 0;
5006}
5007_ACEOF
5008 # Make sure it works both with $CC and with simple cc.
5009 # Following AC_PROG_CC_C_O, we do the test twice because some
5010 # compilers refuse to overwrite an existing .o file with -o,
5011 # though they will create one.
5012 am_cv_prog_cc_c_o=yes
5013 for am_i in 1 2; do
5014 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5015 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } \
5019 && test -f conftest2.$ac_objext; then
5020 : OK
5021 else
5022 am_cv_prog_cc_c_o=no
5023 break
5024 fi
5025 done
5026 rm -f core conftest*
5027 unset am_i
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5030$as_echo "$am_cv_prog_cc_c_o" >&6; }
5031if test "$am_cv_prog_cc_c_o" != yes; then
5032 # Losing compiler, so override with the script.
5033 # FIXME: It is wrong to rewrite CC.
5034 # But if we don't then we get into trouble of one sort or another.
5035 # A longer-term fix would be to have automake use am__CC in this case,
5036 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5037 CC="$am_aux_dir/compile $CC"
5038fi
5039ac_ext=c
5040ac_cpp='$CPP $CPPFLAGS'
5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044
5045
5046if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5048set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if ${ac_cv_prog_RANLIB+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 if test -n "$RANLIB"; then
5055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069 done
5070IFS=$as_save_IFS
5071
5072fi
5073fi
5074RANLIB=$ac_cv_prog_RANLIB
5075if test -n "$RANLIB"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5077$as_echo "$RANLIB" >&6; }
5078else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082
5083
5084fi
5085if test -z "$ac_cv_prog_RANLIB"; then
5086 ac_ct_RANLIB=$RANLIB
5087 # Extract the first word of "ranlib", so it can be a program name with args.
5088set dummy ranlib; ac_word=$2
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093else
5094 if test -n "$ac_ct_RANLIB"; then
5095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_RANLIB="ranlib"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108done
5109 done
5110IFS=$as_save_IFS
5111
5112fi
5113fi
5114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5115if test -n "$ac_ct_RANLIB"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5117$as_echo "$ac_ct_RANLIB" >&6; }
5118else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5121fi
5122
5123 if test "x$ac_ct_RANLIB" = x; then
5124 RANLIB=":"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127yes:)
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130ac_tool_warned=yes ;;
5131esac
5132 RANLIB=$ac_ct_RANLIB
5133 fi
5134else
5135 RANLIB="$ac_cv_prog_RANLIB"
5136fi
5137
5138if test -n "$ac_tool_prefix"; then
5139 for ac_prog in ar lib "link -lib"
5140 do
5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if ${ac_cv_prog_AR+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147else
5148 if test -n "$AR"; then
5149 ac_cv_prog_AR="$AR" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163 done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168AR=$ac_cv_prog_AR
5169if test -n "$AR"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5171$as_echo "$AR" >&6; }
5172else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177
5178 test -n "$AR" && break
5179 done
5180fi
5181if test -z "$AR"; then
5182 ac_ct_AR=$AR
5183 for ac_prog in ar lib "link -lib"
5184do
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186set dummy $ac_prog; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if ${ac_cv_prog_ac_ct_AR+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191else
5192 if test -n "$ac_ct_AR"; then
5193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_AR="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207 done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213if test -n "$ac_ct_AR"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5215$as_echo "$ac_ct_AR" >&6; }
5216else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221
5222 test -n "$ac_ct_AR" && break
5223done
5224
5225 if test "x$ac_ct_AR" = x; then
5226 AR="false"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229yes:)
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234 AR=$ac_ct_AR
5235 fi
5236fi
5237
5238: ${AR=ar}
5239
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5241$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5242if ${am_cv_ar_interface+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244else
5245 ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250
5251 am_cv_ar_interface=ar
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254int some_variable = 0;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"; then :
5257 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5259 (eval $am_ar_try) 2>&5
5260 ac_status=$?
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }
5263 if test "$ac_status" -eq 0; then
5264 am_cv_ar_interface=ar
5265 else
5266 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5268 (eval $am_ar_try) 2>&5
5269 ac_status=$?
5270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5271 test $ac_status = 0; }
5272 if test "$ac_status" -eq 0; then
5273 am_cv_ar_interface=lib
5274 else
5275 am_cv_ar_interface=unknown
5276 fi
5277 fi
5278 rm -f conftest.lib libconftest.a
5279
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5290$as_echo "$am_cv_ar_interface" >&6; }
5291
5292case $am_cv_ar_interface in
5293ar)
5294 ;;
5295lib)
5296 # Microsoft lib, so override with the ar-lib wrapper script.
5297 # FIXME: It is wrong to rewrite AR.
5298 # But if we don't then we get into trouble of one sort or another.
5299 # A longer-term fix would be to have automake use am__AR in this case,
5300 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5301 # similar.
5302 AR="$am_aux_dir/ar-lib $AR"
5303 ;;
5304unknown)
5305 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5306 ;;
5307esac
5308
5309
5310# Check whether --enable-shared was given.
5311if test "${enable_shared+set}" = set; then :
5312 enableval=$enable_shared; p=${PACKAGE-default}
5313 case $enableval in
5314 yes) enable_shared=yes ;;
5315 no) enable_shared=no ;;
5316 *)
5317 enable_shared=no
5318 # Look at the argument we got. We use all the common list separators.
5319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5320 for pkg in $enableval; do
5321 IFS="$lt_save_ifs"
5322 if test "X$pkg" = "X$p"; then
5323 enable_shared=yes
5324 fi
5325 done
5326 IFS="$lt_save_ifs"
5327 ;;
5328 esac
5329else
5330 enable_shared=no
5331fi
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342case `pwd` in
5343 *\ * | *\ *)
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5345$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5346esac
5347
5348
5349
5350macro_version='2.2.7a'
5351macro_revision='1.3134'
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365ltmain="$ac_aux_dir/ltmain.sh"
5366
5367# Make sure we can run config.sub.
5368$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5369 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5372$as_echo_n "checking build system type... " >&6; }
5373if ${ac_cv_build+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375else
5376 ac_build_alias=$build_alias
5377test "x$ac_build_alias" = x &&
5378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5379test "x$ac_build_alias" = x &&
5380 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5381ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5383
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5386$as_echo "$ac_cv_build" >&6; }
5387case $ac_cv_build in
5388*-*-*) ;;
5389*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5390esac
5391build=$ac_cv_build
5392ac_save_IFS=$IFS; IFS='-'
5393set x $ac_cv_build
5394shift
5395build_cpu=$1
5396build_vendor=$2
5397shift; shift
5398# Remember, the first character of IFS is used to create $*,
5399# except with old shells:
5400build_os=$*
5401IFS=$ac_save_IFS
5402case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5403
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5406$as_echo_n "checking host system type... " >&6; }
5407if ${ac_cv_host+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409else
5410 if test "x$host_alias" = x; then
5411 ac_cv_host=$ac_cv_build
5412else
5413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5415fi
5416
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5419$as_echo "$ac_cv_host" >&6; }
5420case $ac_cv_host in
5421*-*-*) ;;
5422*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5423esac
5424host=$ac_cv_host
5425ac_save_IFS=$IFS; IFS='-'
5426set x $ac_cv_host
5427shift
5428host_cpu=$1
5429host_vendor=$2
5430shift; shift
5431# Remember, the first character of IFS is used to create $*,
5432# except with old shells:
5433host_os=$*
5434IFS=$ac_save_IFS
5435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5436
5437
5438# Backslashify metacharacters that are still active within
5439# double-quoted strings.
5440sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5441
5442# Same as above, but do not quote variable references.
5443double_quote_subst='s/\(["`\\]\)/\\\1/g'
5444
5445# Sed substitution to delay expansion of an escaped shell variable in a
5446# double_quote_subst'ed string.
5447delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5448
5449# Sed substitution to delay expansion of an escaped single quote.
5450delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5451
5452# Sed substitution to avoid accidental globbing in evaled expressions
5453no_glob_subst='s/\*/\\\*/g'
5454
5455ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5456ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5458
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5460$as_echo_n "checking how to print strings... " >&6; }
5461# Test print first, because it will be a builtin if present.
5462if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5464 ECHO='print -r --'
5465elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5466 ECHO='printf %s\n'
5467else
5468 # Use this function as a fallback that always works.
5469 func_fallback_echo ()
5470 {
5471 eval 'cat <<_LTECHO_EOF
5472$1
5473_LTECHO_EOF'
5474 }
5475 ECHO='func_fallback_echo'
5476fi
5477
5478# func_echo_all arg...
5479# Invoke $ECHO with all args, space-separated.
5480func_echo_all ()
5481{
5482 $ECHO ""
5483}
5484
5485case "$ECHO" in
5486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5487$as_echo "printf" >&6; } ;;
5488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5489$as_echo "print -r" >&6; } ;;
5490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5491$as_echo "cat" >&6; } ;;
5492esac
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5508$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5509if ${ac_cv_path_SED+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513 for ac_i in 1 2 3 4 5 6 7; do
5514 ac_script="$ac_script$as_nl$ac_script"
5515 done
5516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5517 { ac_script=; unset ac_script;}
5518 if test -z "$SED"; then
5519 ac_path_SED_found=false
5520 # Loop through the user's path and test for each of PROGNAME-LIST
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_prog in sed gsed; do
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5529 as_fn_executable_p "$ac_path_SED" || continue
5530# Check for GNU ac_path_SED and select it if it is found.
5531 # Check for GNU $ac_path_SED
5532case `"$ac_path_SED" --version 2>&1` in
5533*GNU*)
5534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5535*)
5536 ac_count=0
5537 $as_echo_n 0123456789 >"conftest.in"
5538 while :
5539 do
5540 cat "conftest.in" "conftest.in" >"conftest.tmp"
5541 mv "conftest.tmp" "conftest.in"
5542 cp "conftest.in" "conftest.nl"
5543 $as_echo '' >> "conftest.nl"
5544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546 as_fn_arith $ac_count + 1 && ac_count=$as_val
5547 if test $ac_count -gt ${ac_path_SED_max-0}; then
5548 # Best one so far, save it but keep looking for a better one
5549 ac_cv_path_SED="$ac_path_SED"
5550 ac_path_SED_max=$ac_count
5551 fi
5552 # 10*(2^10) chars as input seems more than enough
5553 test $ac_count -gt 10 && break
5554 done
5555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5556esac
5557
5558 $ac_path_SED_found && break 3
5559 done
5560 done
5561 done
5562IFS=$as_save_IFS
5563 if test -z "$ac_cv_path_SED"; then
5564 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5565 fi
5566else
5567 ac_cv_path_SED=$SED
5568fi
5569
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5572$as_echo "$ac_cv_path_SED" >&6; }
5573 SED="$ac_cv_path_SED"
5574 rm -f conftest.sed
5575
5576test -z "$SED" && SED=sed
5577Xsed="$SED -e 1s/^X//"
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5590$as_echo_n "checking for fgrep... " >&6; }
5591if ${ac_cv_path_FGREP+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595 then ac_cv_path_FGREP="$GREP -F"
5596 else
5597 if test -z "$FGREP"; then
5598 ac_path_FGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in fgrep; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 as_fn_executable_p "$ac_path_FGREP" || continue
5609# Check for GNU ac_path_FGREP and select it if it is found.
5610 # Check for GNU $ac_path_FGREP
5611case `"$ac_path_FGREP" --version 2>&1` in
5612*GNU*)
5613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5614*)
5615 ac_count=0
5616 $as_echo_n 0123456789 >"conftest.in"
5617 while :
5618 do
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'FGREP' >> "conftest.nl"
5623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 as_fn_arith $ac_count + 1 && ac_count=$as_val
5626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_FGREP="$ac_path_FGREP"
5629 ac_path_FGREP_max=$ac_count
5630 fi
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5633 done
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635esac
5636
5637 $ac_path_FGREP_found && break 3
5638 done
5639 done
5640 done
5641IFS=$as_save_IFS
5642 if test -z "$ac_cv_path_FGREP"; then
5643 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5644 fi
5645else
5646 ac_cv_path_FGREP=$FGREP
5647fi
5648
5649 fi
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5652$as_echo "$ac_cv_path_FGREP" >&6; }
5653 FGREP="$ac_cv_path_FGREP"
5654
5655
5656test -z "$GREP" && GREP=grep
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676# Check whether --with-gnu-ld was given.
5677if test "${with_gnu_ld+set}" = set; then :
5678 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5679else
5680 with_gnu_ld=no
5681fi
5682
5683ac_prog=ld
5684if test "$GCC" = yes; then
5685 # Check if gcc -print-prog-name=ld gives a path.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5687$as_echo_n "checking for ld used by $CC... " >&6; }
5688 case $host in
5689 *-*-mingw*)
5690 # gcc leaves a trailing carriage return which upsets mingw
5691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692 *)
5693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5694 esac
5695 case $ac_prog in
5696 # Accept absolute paths.
5697 [\\/]* | ?:[\\/]*)
5698 re_direlt='/[^/][^/]*/\.\./'
5699 # Canonicalize the pathname of ld
5700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5703 done
5704 test -z "$LD" && LD="$ac_prog"
5705 ;;
5706 "")
5707 # If it fails, then pretend we aren't using GCC.
5708 ac_prog=ld
5709 ;;
5710 *)
5711 # If it is relative, then search for the first ld in PATH.
5712 with_gnu_ld=unknown
5713 ;;
5714 esac
5715elif test "$with_gnu_ld" = yes; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5717$as_echo_n "checking for GNU ld... " >&6; }
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5720$as_echo_n "checking for non-GNU ld... " >&6; }
5721fi
5722if ${lt_cv_path_LD+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724else
5725 if test -z "$LD"; then
5726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727 for ac_dir in $PATH; do
5728 IFS="$lt_save_ifs"
5729 test -z "$ac_dir" && ac_dir=.
5730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731 lt_cv_path_LD="$ac_dir/$ac_prog"
5732 # Check to see if the program is GNU ld. I'd rather use --version,
5733 # but apparently some variants of GNU ld only accept -v.
5734 # Break only if it was the GNU/non-GNU ld that we prefer.
5735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 test "$with_gnu_ld" != no && break
5738 ;;
5739 *)
5740 test "$with_gnu_ld" != yes && break
5741 ;;
5742 esac
5743 fi
5744 done
5745 IFS="$lt_save_ifs"
5746else
5747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5748fi
5749fi
5750
5751LD="$lt_cv_path_LD"
5752if test -n "$LD"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5754$as_echo "$LD" >&6; }
5755else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758fi
5759test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5761$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5762if ${lt_cv_prog_gnu_ld+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764else
5765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5766case `$LD -v 2>&1 </dev/null` in
5767*GNU* | *'with BFD'*)
5768 lt_cv_prog_gnu_ld=yes
5769 ;;
5770*)
5771 lt_cv_prog_gnu_ld=no
5772 ;;
5773esac
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5776$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5777with_gnu_ld=$lt_cv_prog_gnu_ld
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5788$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5789if ${lt_cv_path_NM+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791else
5792 if test -n "$NM"; then
5793 # Let the user override the nm to test.
5794 lt_nm_to_check="$NM"
5795 else
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5799 fi
5800 fi
5801 for lt_tmp_nm in "$lt_nm_to_check"; do
5802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804 IFS="$lt_save_ifs"
5805 test -z "$ac_dir" && ac_dir=.
5806 # Strip out any user-provided options from the nm to test twice,
5807 # the first time to test to see if nm (rather than its options) has
5808 # an explicit path, the second time to yield a file which can be
5809 # nm'ed itself.
5810 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5811 case "$tmp_nm_path" in
5812 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5813 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5814 esac
5815 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5816 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5817 # Check to see if the nm accepts a BSD-compat flag.
5818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5819 # nm: unknown option "B" ignored
5820 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5821 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5822 break
5823 ;;
5824 *)
5825 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5826 *$tmp_nm*)
5827 lt_cv_path_NM="$tmp_nm -p"
5828 break
5829 ;;
5830 *)
5831 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5832 continue # so that we can try to find one that supports BSD flags
5833 ;;
5834 esac
5835 ;;
5836 esac
5837 fi
5838 done
5839 IFS="$lt_save_ifs"
5840 done
5841 : ${lt_cv_path_NM=no}
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5844$as_echo "$lt_cv_path_NM" >&6; }
5845if test "$lt_cv_path_NM" != "no"; then
5846 NM="$lt_cv_path_NM"
5847else
5848 # Didn't find any BSD compatible name lister, look for dumpbin.
5849 if test -n "$DUMPBIN"; then :
5850 # Let the user override the test.
5851 else
5852 if test -n "$ac_tool_prefix"; then
5853 for ac_prog in dumpbin "link -dump"
5854 do
5855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5856set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_DUMPBIN+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$DUMPBIN"; then
5863 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882DUMPBIN=$ac_cv_prog_DUMPBIN
5883if test -n "$DUMPBIN"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5885$as_echo "$DUMPBIN" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892 test -n "$DUMPBIN" && break
5893 done
5894fi
5895if test -z "$DUMPBIN"; then
5896 ac_ct_DUMPBIN=$DUMPBIN
5897 for ac_prog in dumpbin "link -dump"
5898do
5899 # Extract the first word of "$ac_prog", so it can be a program name with args.
5900set dummy $ac_prog; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905else
5906 if test -n "$ac_ct_DUMPBIN"; then
5907 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921 done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5927if test -n "$ac_ct_DUMPBIN"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5929$as_echo "$ac_ct_DUMPBIN" >&6; }
5930else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935
5936 test -n "$ac_ct_DUMPBIN" && break
5937done
5938
5939 if test "x$ac_ct_DUMPBIN" = x; then
5940 DUMPBIN=":"
5941 else
5942 case $cross_compiling:$ac_tool_warned in
5943yes:)
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946ac_tool_warned=yes ;;
5947esac
5948 DUMPBIN=$ac_ct_DUMPBIN
5949 fi
5950fi
5951
5952 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5953 *COFF*)
5954 DUMPBIN="$DUMPBIN -symbols"
5955 ;;
5956 *)
5957 DUMPBIN=:
5958 ;;
5959 esac
5960 fi
5961
5962 if test "$DUMPBIN" != ":"; then
5963 NM="$DUMPBIN"
5964 fi
5965fi
5966test -z "$NM" && NM=nm
5967
5968
5969
5970
5971
5972
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5974$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5975if ${lt_cv_nm_interface+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977else
5978 lt_cv_nm_interface="BSD nm"
5979 echo "int some_variable = 0;" > conftest.$ac_ext
5980 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5981 (eval "$ac_compile" 2>conftest.err)
5982 cat conftest.err >&5
5983 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5984 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5987 cat conftest.out >&5
5988 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5989 lt_cv_nm_interface="MS dumpbin"
5990 fi
5991 rm -f conftest*
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5994$as_echo "$lt_cv_nm_interface" >&6; }
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5997$as_echo_n "checking whether ln -s works... " >&6; }
5998LN_S=$as_ln_s
5999if test "$LN_S" = "ln -s"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6001$as_echo "yes" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6004$as_echo "no, using $LN_S" >&6; }
6005fi
6006
6007# find the maximum length of command line arguments
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6009$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6010if ${lt_cv_sys_max_cmd_len+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 i=0
6014 teststring="ABCD"
6015
6016 case $build_os in
6017 msdosdjgpp*)
6018 # On DJGPP, this test can blow up pretty badly due to problems in libc
6019 # (any single argument exceeding 2000 bytes causes a buffer overrun
6020 # during glob expansion). Even if it were fixed, the result of this
6021 # check would be larger than it should be.
6022 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6023 ;;
6024
6025 gnu*)
6026 # Under GNU Hurd, this test is not required because there is
6027 # no limit to the length of command line arguments.
6028 # Libtool will interpret -1 as no limit whatsoever
6029 lt_cv_sys_max_cmd_len=-1;
6030 ;;
6031
6032 cygwin* | mingw* | cegcc*)
6033 # On Win9x/ME, this test blows up -- it succeeds, but takes
6034 # about 5 minutes as the teststring grows exponentially.
6035 # Worse, since 9x/ME are not pre-emptively multitasking,
6036 # you end up with a "frozen" computer, even though with patience
6037 # the test eventually succeeds (with a max line length of 256k).
6038 # Instead, let's just punt: use the minimum linelength reported by
6039 # all of the supported platforms: 8192 (on NT/2K/XP).
6040 lt_cv_sys_max_cmd_len=8192;
6041 ;;
6042
6043 mint*)
6044 # On MiNT this can take a long time and run out of memory.
6045 lt_cv_sys_max_cmd_len=8192;
6046 ;;
6047
6048 amigaos*)
6049 # On AmigaOS with pdksh, this test takes hours, literally.
6050 # So we just punt and use a minimum line length of 8192.
6051 lt_cv_sys_max_cmd_len=8192;
6052 ;;
6053
6054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6055 # This has been around since 386BSD, at least. Likely further.
6056 if test -x /sbin/sysctl; then
6057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6058 elif test -x /usr/sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6060 else
6061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6062 fi
6063 # And add a safety zone
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6066 ;;
6067
6068 interix*)
6069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6070 lt_cv_sys_max_cmd_len=196608
6071 ;;
6072
6073 osf*)
6074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6076 # nice to cause kernel panics so lets avoid the loop below.
6077 # First set a reasonable default.
6078 lt_cv_sys_max_cmd_len=16384
6079 #
6080 if test -x /sbin/sysconfig; then
6081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6083 esac
6084 fi
6085 ;;
6086 sco3.2v5*)
6087 lt_cv_sys_max_cmd_len=102400
6088 ;;
6089 sysv5* | sco5v6* | sysv4.2uw2*)
6090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6091 if test -n "$kargmax"; then
6092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6093 else
6094 lt_cv_sys_max_cmd_len=32768
6095 fi
6096 ;;
6097 *)
6098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6099 if test -n "$lt_cv_sys_max_cmd_len"; then
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 else
6103 # Make teststring a little bigger before we do anything with it.
6104 # a 1K string should be a reasonable start.
6105 for i in 1 2 3 4 5 6 7 8 ; do
6106 teststring=$teststring$teststring
6107 done
6108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6109 # If test is not a shell built-in, we'll probably end up computing a
6110 # maximum length that is only half of the actual maximum length, but
6111 # we can't tell.
6112 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6113 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6114 test $i != 17 # 1/2 MB should be enough
6115 do
6116 i=`expr $i + 1`
6117 teststring=$teststring$teststring
6118 done
6119 # Only check the string length outside the loop.
6120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6121 teststring=
6122 # Add a significant safety factor because C++ compilers can tack on
6123 # massive amounts of additional arguments before passing them to the
6124 # linker. It appears as though 1/2 is a usable value.
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6126 fi
6127 ;;
6128 esac
6129
6130fi
6131
6132if test -n $lt_cv_sys_max_cmd_len ; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6134$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6135else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6137$as_echo "none" >&6; }
6138fi
6139max_cmd_len=$lt_cv_sys_max_cmd_len
6140
6141
6142
6143
6144
6145
6146: ${CP="cp -f"}
6147: ${MV="mv -f"}
6148: ${RM="rm -f"}
6149
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6151$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6152# Try some XSI features
6153xsi_shell=no
6154( _lt_dummy="a/b/c"
6155 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6156 = c,a/b,, \
6157 && eval 'test $(( 1 + 1 )) -eq 2 \
6158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6159 && xsi_shell=yes
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6161$as_echo "$xsi_shell" >&6; }
6162
6163
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6165$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6166lt_shell_append=no
6167( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6168 >/dev/null 2>&1 \
6169 && lt_shell_append=yes
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6171$as_echo "$lt_shell_append" >&6; }
6172
6173
6174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6175 lt_unset=unset
6176else
6177 lt_unset=false
6178fi
6179
6180
6181
6182
6183
6184# test EBCDIC or ASCII
6185case `echo X|tr X '\101'` in
6186 A) # ASCII based system
6187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6188 lt_SP2NL='tr \040 \012'
6189 lt_NL2SP='tr \015\012 \040\040'
6190 ;;
6191 *) # EBCDIC based system
6192 lt_SP2NL='tr \100 \n'
6193 lt_NL2SP='tr \r\n \100\100'
6194 ;;
6195esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206$as_echo_n "checking for $LD option to reload object files... " >&6; }
6207if ${lt_cv_ld_reload_flag+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 lt_cv_ld_reload_flag='-r'
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213$as_echo "$lt_cv_ld_reload_flag" >&6; }
6214reload_flag=$lt_cv_ld_reload_flag
6215case $reload_flag in
6216"" | " "*) ;;
6217*) reload_flag=" $reload_flag" ;;
6218esac
6219reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220case $host_os in
6221 darwin*)
6222 if test "$GCC" = yes; then
6223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6224 else
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 fi
6227 ;;
6228esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6240set dummy ${ac_tool_prefix}objdump; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_prog_OBJDUMP+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245else
6246 if test -n "$OBJDUMP"; then
6247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261 done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266OBJDUMP=$ac_cv_prog_OBJDUMP
6267if test -n "$OBJDUMP"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6269$as_echo "$OBJDUMP" >&6; }
6270else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275
6276fi
6277if test -z "$ac_cv_prog_OBJDUMP"; then
6278 ac_ct_OBJDUMP=$OBJDUMP
6279 # Extract the first word of "objdump", so it can be a program name with args.
6280set dummy objdump; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$ac_ct_OBJDUMP"; then
6287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301 done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6307if test -n "$ac_ct_OBJDUMP"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6309$as_echo "$ac_ct_OBJDUMP" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315 if test "x$ac_ct_OBJDUMP" = x; then
6316 OBJDUMP="false"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319yes:)
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322ac_tool_warned=yes ;;
6323esac
6324 OBJDUMP=$ac_ct_OBJDUMP
6325 fi
6326else
6327 OBJDUMP="$ac_cv_prog_OBJDUMP"
6328fi
6329
6330test -z "$OBJDUMP" && OBJDUMP=objdump
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6341$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6342if ${lt_cv_deplibs_check_method+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344else
6345 lt_cv_file_magic_cmd='$MAGIC_CMD'
6346lt_cv_file_magic_test_file=
6347lt_cv_deplibs_check_method='unknown'
6348# Need to set the preceding variable on all platforms that support
6349# interlibrary dependencies.
6350# 'none' -- dependencies not supported.
6351# `unknown' -- same as none, but documents that we really don't know.
6352# 'pass_all' -- all dependencies passed with no checks.
6353# 'test_compile' -- check by making test program.
6354# 'file_magic [[regex]]' -- check by looking for files in library path
6355# which responds to the $file_magic_cmd with a given extended regex.
6356# If you have `file' or equivalent on your system and you're not sure
6357# whether `pass_all' will *always* work, you probably want this one.
6358
6359case $host_os in
6360aix[4-9]*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364beos*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368bsdi[45]*)
6369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6370 lt_cv_file_magic_cmd='/usr/bin/file -L'
6371 lt_cv_file_magic_test_file=/shlib/libc.so
6372 ;;
6373
6374cygwin*)
6375 # func_win32_libid is a shell function defined in ltmain.sh
6376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6377 lt_cv_file_magic_cmd='func_win32_libid'
6378 ;;
6379
6380mingw* | pw32*)
6381 # Base MSYS/MinGW do not provide the 'file' command needed by
6382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6383 # unless we find 'file', for example because we are cross-compiling.
6384 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6385 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387 lt_cv_file_magic_cmd='func_win32_libid'
6388 else
6389 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6390 lt_cv_file_magic_cmd='$OBJDUMP -f'
6391 fi
6392 ;;
6393
6394cegcc*)
6395 # use the weaker test based on 'objdump'. See mingw*.
6396 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6397 lt_cv_file_magic_cmd='$OBJDUMP -f'
6398 ;;
6399
6400darwin* | rhapsody*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404freebsd* | dragonfly*)
6405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6406 case $host_cpu in
6407 i*86 )
6408 # Not sure whether the presence of OpenBSD here was a mistake.
6409 # Let's accept both of them until this is cleared up.
6410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6411 lt_cv_file_magic_cmd=/usr/bin/file
6412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6413 ;;
6414 esac
6415 else
6416 lt_cv_deplibs_check_method=pass_all
6417 fi
6418 ;;
6419
6420gnu*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424haiku*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428hpux10.20* | hpux11*)
6429 lt_cv_file_magic_cmd=/usr/bin/file
6430 case $host_cpu in
6431 ia64*)
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6434 ;;
6435 hppa*64*)
6436 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]'
6437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6438 ;;
6439 *)
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6441 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6442 ;;
6443 esac
6444 ;;
6445
6446interix[3-9]*)
6447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6449 ;;
6450
6451irix5* | irix6* | nonstopux*)
6452 case $LD in
6453 *-32|*"-32 ") libmagic=32-bit;;
6454 *-n32|*"-n32 ") libmagic=N32;;
6455 *-64|*"-64 ") libmagic=64-bit;;
6456 *) libmagic=never-match;;
6457 esac
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461# This must be Linux ELF.
6462linux* | k*bsd*-gnu | kopensolaris*-gnu)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466netbsd*)
6467 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6469 else
6470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6471 fi
6472 ;;
6473
6474newos6*)
6475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6476 lt_cv_file_magic_cmd=/usr/bin/file
6477 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478 ;;
6479
6480*nto* | *qnx*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484openbsd*)
6485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6487 else
6488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489 fi
6490 ;;
6491
6492osf3* | osf4* | osf5*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496rdos*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500solaris*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508sysv4 | sysv4.3*)
6509 case $host_vendor in
6510 motorola)
6511 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]'
6512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6513 ;;
6514 ncr)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517 sequent)
6518 lt_cv_file_magic_cmd='/bin/file'
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6520 ;;
6521 sni)
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6524 lt_cv_file_magic_test_file=/lib/libc.so
6525 ;;
6526 siemens)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 pc)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532 esac
6533 ;;
6534
6535tpf*)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538esac
6539
6540fi
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6542$as_echo "$lt_cv_deplibs_check_method" >&6; }
6543file_magic_cmd=$lt_cv_file_magic_cmd
6544deplibs_check_method=$lt_cv_deplibs_check_method
6545test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558plugin_option=
6559plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6560for plugin in $plugin_names; do
6561 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6562 if test x$plugin_so = x$plugin; then
6563 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6564 fi
6565 if test x$plugin_so != x$plugin; then
6566 plugin_option="--plugin $plugin_so"
6567 break
6568 fi
6569done
6570
6571if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}ar; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_AR+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 if test -n "$AR"; then
6580 ac_cv_prog_AR="$AR" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_AR="${ac_tool_prefix}ar"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594 done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599AR=$ac_cv_prog_AR
6600if test -n "$AR"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602$as_echo "$AR" >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609fi
6610if test -z "$ac_cv_prog_AR"; then
6611 ac_ct_AR=$AR
6612 # Extract the first word of "ar", so it can be a program name with args.
6613set dummy ar; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_ac_ct_AR+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 if test -n "$ac_ct_AR"; then
6620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_AR="ar"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639ac_ct_AR=$ac_cv_prog_ac_ct_AR
6640if test -n "$ac_ct_AR"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6642$as_echo "$ac_ct_AR" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648 if test "x$ac_ct_AR" = x; then
6649 AR="false"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657 AR=$ac_ct_AR
6658 fi
6659else
6660 AR="$ac_cv_prog_AR"
6661fi
6662
6663test -z "$AR" && AR=ar
6664if test -n "$plugin_option"; then
6665 if $AR --help 2>&1 | grep -q "\--plugin"; then
6666 touch conftest.c
6667 $AR $plugin_option rc conftest.a conftest.c
6668 if test "$?" != 0; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6670$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6671 else
6672 AR="$AR $plugin_option"
6673 fi
6674 rm -f conftest.*
6675 fi
6676fi
6677test -z "$AR_FLAGS" && AR_FLAGS=cru
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6691set dummy ${ac_tool_prefix}strip; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_prog_STRIP+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696else
6697 if test -n "$STRIP"; then
6698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711done
6712 done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717STRIP=$ac_cv_prog_STRIP
6718if test -n "$STRIP"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6720$as_echo "$STRIP" >&6; }
6721else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726
6727fi
6728if test -z "$ac_cv_prog_STRIP"; then
6729 ac_ct_STRIP=$STRIP
6730 # Extract the first word of "strip", so it can be a program name with args.
6731set dummy strip; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736else
6737 if test -n "$ac_ct_STRIP"; then
6738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_ac_ct_STRIP="strip"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751done
6752 done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6758if test -n "$ac_ct_STRIP"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6760$as_echo "$ac_ct_STRIP" >&6; }
6761else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766 if test "x$ac_ct_STRIP" = x; then
6767 STRIP=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770yes:)
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773ac_tool_warned=yes ;;
6774esac
6775 STRIP=$ac_ct_STRIP
6776 fi
6777else
6778 STRIP="$ac_cv_prog_STRIP"
6779fi
6780
6781test -z "$STRIP" && STRIP=:
6782
6783
6784
6785
6786
6787
6788if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if ${ac_cv_prog_RANLIB+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 if test -n "$RANLIB"; then
6797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810done
6811 done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816RANLIB=$ac_cv_prog_RANLIB
6817if test -n "$RANLIB"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6819$as_echo "$RANLIB" >&6; }
6820else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_RANLIB"; then
6828 ac_ct_RANLIB=$RANLIB
6829 # Extract the first word of "ranlib", so it can be a program name with args.
6830set dummy ranlib; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$ac_ct_RANLIB"; then
6837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_RANLIB="ranlib"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850done
6851 done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6857if test -n "$ac_ct_RANLIB"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6859$as_echo "$ac_ct_RANLIB" >&6; }
6860else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865 if test "x$ac_ct_RANLIB" = x; then
6866 RANLIB=":"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869yes:)
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874 RANLIB=$ac_ct_RANLIB
6875 fi
6876else
6877 RANLIB="$ac_cv_prog_RANLIB"
6878fi
6879
6880test -z "$RANLIB" && RANLIB=:
6881if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6882 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6883 RANLIB="$RANLIB $plugin_option"
6884 fi
6885fi
6886
6887
6888
6889
6890
6891
6892# Determine commands to create old-style static archives.
6893old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6894old_postinstall_cmds='chmod 644 $oldlib'
6895old_postuninstall_cmds=
6896
6897if test -n "$RANLIB"; then
6898 case $host_os in
6899 openbsd*)
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6901 ;;
6902 *)
6903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6904 ;;
6905 esac
6906 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6907fi
6908
6909case $host_os in
6910 darwin*)
6911 lock_old_archive_extraction=yes ;;
6912 *)
6913 lock_old_archive_extraction=no ;;
6914esac
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954# If no C compiler was specified, use CC.
6955LTCC=${LTCC-"$CC"}
6956
6957# If no C compiler flags were specified, use CFLAGS.
6958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6959
6960# Allow CC to be a program name with arguments.
6961compiler=$CC
6962
6963
6964# Check for command to grab the raw symbol name followed by C symbol from nm.
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6966$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6967if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969else
6970
6971# These are sane defaults that work on at least a few old systems.
6972# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6973
6974# Character class describing NM global symbol codes.
6975symcode='[BCDEGRST]'
6976
6977# Regexp to match symbols that can be accessed directly from C.
6978sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6979
6980# Define system-specific variables.
6981case $host_os in
6982aix*)
6983 symcode='[BCDT]'
6984 ;;
6985cygwin* | mingw* | pw32* | cegcc*)
6986 symcode='[ABCDGISTW]'
6987 ;;
6988hpux*)
6989 if test "$host_cpu" = ia64; then
6990 symcode='[ABCDEGRST]'
6991 fi
6992 ;;
6993irix* | nonstopux*)
6994 symcode='[BCDEGRST]'
6995 ;;
6996osf*)
6997 symcode='[BCDEGQRST]'
6998 ;;
6999solaris*)
7000 symcode='[BCDRT]'
7001 ;;
7002sco3.2v5*)
7003 symcode='[DT]'
7004 ;;
7005sysv4.2uw2*)
7006 symcode='[DT]'
7007 ;;
7008sysv5* | sco5v6* | unixware* | OpenUNIX*)
7009 symcode='[ABDT]'
7010 ;;
7011sysv4)
7012 symcode='[DFNSTU]'
7013 ;;
7014esac
7015
7016# If we're using GNU nm, then use its standard symbol codes.
7017case `$NM -V 2>&1` in
7018*GNU* | *'with BFD'*)
7019 symcode='[ABCDGIRSTW]' ;;
7020esac
7021
7022# Transform an extracted symbol line into a proper C declaration.
7023# Some systems (esp. on ia64) link data and code symbols differently,
7024# so use this general approach.
7025lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7026
7027# Transform an extracted symbol line into symbol name and symbol address
7028lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7029lt_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'"
7030
7031# Handle CRLF in mingw tool chain
7032opt_cr=
7033case $build_os in
7034mingw*)
7035 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7036 ;;
7037esac
7038
7039# Try without a prefix underscore, then with it.
7040for ac_symprfx in "" "_"; do
7041
7042 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7043 symxfrm="\\1 $ac_symprfx\\2 \\2"
7044
7045 # Write the raw and C identifiers.
7046 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7047 # Fake it for dumpbin and say T for any non-static function
7048 # and D for any global variable.
7049 # Also find C++ and __fastcall symbols from MSVC++,
7050 # which start with @ or ?.
7051 lt_cv_sys_global_symbol_pipe="$AWK '"\
7052" {last_section=section; section=\$ 3};"\
7053" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054" \$ 0!~/External *\|/{next};"\
7055" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7056" {if(hide[section]) next};"\
7057" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7058" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7059" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7060" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7061" ' prfx=^$ac_symprfx"
7062 else
7063 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064 fi
7065
7066 # Check to see that the pipe works correctly.
7067 pipe_works=no
7068
7069 rm -f conftest*
7070 cat > conftest.$ac_ext <<_LT_EOF
7071#ifdef __cplusplus
7072extern "C" {
7073#endif
7074char nm_test_var;
7075void nm_test_func(void);
7076void nm_test_func(void){}
7077#ifdef __cplusplus
7078}
7079#endif
7080int main(){nm_test_var='a';nm_test_func();return(0);}
7081_LT_EOF
7082
7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084 (eval $ac_compile) 2>&5
7085 ac_status=$?
7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087 test $ac_status = 0; }; then
7088 # Now try to grab the symbols.
7089 nlist=conftest.nm
7090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7091 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7092 ac_status=$?
7093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094 test $ac_status = 0; } && test -s "$nlist"; then
7095 # Try sorting and uniquifying the output.
7096 if sort "$nlist" | uniq > "$nlist"T; then
7097 mv -f "$nlist"T "$nlist"
7098 else
7099 rm -f "$nlist"T
7100 fi
7101
7102 # Make sure that we snagged all the symbols we need.
7103 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7104 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7105 cat <<_LT_EOF > conftest.$ac_ext
7106#ifdef __cplusplus
7107extern "C" {
7108#endif
7109
7110_LT_EOF
7111 # Now generate the symbol file.
7112 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7113
7114 cat <<_LT_EOF >> conftest.$ac_ext
7115
7116/* The mapping between symbol names and symbols. */
7117const struct {
7118 const char *name;
7119 void *address;
7120}
7121lt__PROGRAM__LTX_preloaded_symbols[] =
7122{
7123 { "@PROGRAM@", (void *) 0 },
7124_LT_EOF
7125 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7126 cat <<\_LT_EOF >> conftest.$ac_ext
7127 {0, (void *) 0}
7128};
7129
7130/* This works around a problem in FreeBSD linker */
7131#ifdef FREEBSD_WORKAROUND
7132static const void *lt_preloaded_setup() {
7133 return lt__PROGRAM__LTX_preloaded_symbols;
7134}
7135#endif
7136
7137#ifdef __cplusplus
7138}
7139#endif
7140_LT_EOF
7141 # Now try linking the two files.
7142 mv conftest.$ac_objext conftstm.$ac_objext
7143 lt_save_LIBS="$LIBS"
7144 lt_save_CFLAGS="$CFLAGS"
7145 LIBS="conftstm.$ac_objext"
7146 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7148 (eval $ac_link) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7152 pipe_works=yes
7153 fi
7154 LIBS="$lt_save_LIBS"
7155 CFLAGS="$lt_save_CFLAGS"
7156 else
7157 echo "cannot find nm_test_func in $nlist" >&5
7158 fi
7159 else
7160 echo "cannot find nm_test_var in $nlist" >&5
7161 fi
7162 else
7163 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7164 fi
7165 else
7166 echo "$progname: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7168 fi
7169 rm -rf conftest* conftst*
7170
7171 # Do not use the global_symbol_pipe unless it works.
7172 if test "$pipe_works" = yes; then
7173 break
7174 else
7175 lt_cv_sys_global_symbol_pipe=
7176 fi
7177done
7178
7179fi
7180
7181if test -z "$lt_cv_sys_global_symbol_pipe"; then
7182 lt_cv_sys_global_symbol_to_cdecl=
7183fi
7184if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7186$as_echo "failed" >&6; }
7187else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7189$as_echo "ok" >&6; }
7190fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213# Check whether --enable-libtool-lock was given.
7214if test "${enable_libtool_lock+set}" = set; then :
7215 enableval=$enable_libtool_lock;
7216fi
7217
7218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7219
7220# Some flags need to be propagated to the compiler or linker for good
7221# libtool support.
7222case $host in
7223ia64-*-hpux*)
7224 # Find out which ABI we are using.
7225 echo 'int i;' > conftest.$ac_ext
7226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227 (eval $ac_compile) 2>&5
7228 ac_status=$?
7229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230 test $ac_status = 0; }; then
7231 case `/usr/bin/file conftest.$ac_objext` in
7232 *ELF-32*)
7233 HPUX_IA64_MODE="32"
7234 ;;
7235 *ELF-64*)
7236 HPUX_IA64_MODE="64"
7237 ;;
7238 esac
7239 fi
7240 rm -rf conftest*
7241 ;;
7242*-*-irix6*)
7243 # Find out which ABI we are using.
7244 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7246 (eval $ac_compile) 2>&5
7247 ac_status=$?
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; }; then
7250 if test "$lt_cv_prog_gnu_ld" = yes; then
7251 case `/usr/bin/file conftest.$ac_objext` in
7252 *32-bit*)
7253 LD="${LD-ld} -melf32bsmip"
7254 ;;
7255 *N32*)
7256 LD="${LD-ld} -melf32bmipn32"
7257 ;;
7258 *64-bit*)
7259 LD="${LD-ld} -melf64bmip"
7260 ;;
7261 esac
7262 else
7263 case `/usr/bin/file conftest.$ac_objext` in
7264 *32-bit*)
7265 LD="${LD-ld} -32"
7266 ;;
7267 *N32*)
7268 LD="${LD-ld} -n32"
7269 ;;
7270 *64-bit*)
7271 LD="${LD-ld} -64"
7272 ;;
7273 esac
7274 fi
7275 fi
7276 rm -rf conftest*
7277 ;;
7278
7279x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7280s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7281 # Find out which ABI we are using.
7282 echo 'int i;' > conftest.$ac_ext
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284 (eval $ac_compile) 2>&5
7285 ac_status=$?
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7288 case `/usr/bin/file conftest.o` in
7289 *32-bit*)
7290 case $host in
7291 x86_64-*kfreebsd*-gnu)
7292 LD="${LD-ld} -m elf_i386_fbsd"
7293 ;;
7294 x86_64-*linux*)
7295 case `/usr/bin/file conftest.o` in
7296 *x86-64*)
7297 LD="${LD-ld} -m elf32_x86_64"
7298 ;;
7299 *)
7300 LD="${LD-ld} -m elf_i386"
7301 ;;
7302 esac
7303 ;;
7304 powerpc64le-*linux*)
7305 LD="${LD-ld} -m elf32lppclinux"
7306 ;;
7307 powerpc64-*linux*)
7308 LD="${LD-ld} -m elf32ppclinux"
7309 ;;
7310 s390x-*linux*)
7311 LD="${LD-ld} -m elf_s390"
7312 ;;
7313 sparc64-*linux*)
7314 LD="${LD-ld} -m elf32_sparc"
7315 ;;
7316 esac
7317 ;;
7318 *64-bit*)
7319 case $host in
7320 x86_64-*kfreebsd*-gnu)
7321 LD="${LD-ld} -m elf_x86_64_fbsd"
7322 ;;
7323 x86_64-*linux*)
7324 LD="${LD-ld} -m elf_x86_64"
7325 ;;
7326 powerpcle-*linux*)
7327 LD="${LD-ld} -m elf64lppc"
7328 ;;
7329 powerpc-*linux*)
7330 LD="${LD-ld} -m elf64ppc"
7331 ;;
7332 s390*-*linux*|s390*-*tpf*)
7333 LD="${LD-ld} -m elf64_s390"
7334 ;;
7335 sparc*-*linux*)
7336 LD="${LD-ld} -m elf64_sparc"
7337 ;;
7338 esac
7339 ;;
7340 esac
7341 fi
7342 rm -rf conftest*
7343 ;;
7344
7345*-*-sco3.2v5*)
7346 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7347 SAVE_CFLAGS="$CFLAGS"
7348 CFLAGS="$CFLAGS -belf"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7350$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7351if ${lt_cv_cc_needs_belf+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 ac_ext=c
7355ac_cpp='$CPP $CPPFLAGS'
7356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h. */
7362
7363int
7364main ()
7365{
7366
7367 ;
7368 return 0;
7369}
7370_ACEOF
7371if ac_fn_c_try_link "$LINENO"; then :
7372 lt_cv_cc_needs_belf=yes
7373else
7374 lt_cv_cc_needs_belf=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 ac_ext=c
7379ac_cpp='$CPP $CPPFLAGS'
7380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384fi
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7386$as_echo "$lt_cv_cc_needs_belf" >&6; }
7387 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7388 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7389 CFLAGS="$SAVE_CFLAGS"
7390 fi
7391 ;;
7392sparc*-*solaris*)
7393 # Find out which ABI we are using.
7394 echo 'int i;' > conftest.$ac_ext
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 case `/usr/bin/file conftest.o` in
7401 *64-bit*)
7402 case $lt_cv_prog_gnu_ld in
7403 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7404 *)
7405 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7406 LD="${LD-ld} -64"
7407 fi
7408 ;;
7409 esac
7410 ;;
7411 esac
7412 fi
7413 rm -rf conftest*
7414 ;;
7415esac
7416
7417need_locks="$enable_libtool_lock"
7418
7419
7420 case $host_os in
7421 rhapsody* | darwin*)
7422 if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7424set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426$as_echo_n "checking for $ac_word... " >&6; }
7427if ${ac_cv_prog_DSYMUTIL+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429else
7430 if test -n "$DSYMUTIL"; then
7431 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444done
7445 done
7446IFS=$as_save_IFS
7447
7448fi
7449fi
7450DSYMUTIL=$ac_cv_prog_DSYMUTIL
7451if test -n "$DSYMUTIL"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7453$as_echo "$DSYMUTIL" >&6; }
7454else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
7458
7459
7460fi
7461if test -z "$ac_cv_prog_DSYMUTIL"; then
7462 ac_ct_DSYMUTIL=$DSYMUTIL
7463 # Extract the first word of "dsymutil", so it can be a program name with args.
7464set dummy dsymutil; ac_word=$2
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466$as_echo_n "checking for $ac_word... " >&6; }
7467if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469else
7470 if test -n "$ac_ct_DSYMUTIL"; then
7471 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484done
7485 done
7486IFS=$as_save_IFS
7487
7488fi
7489fi
7490ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7491if test -n "$ac_ct_DSYMUTIL"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7493$as_echo "$ac_ct_DSYMUTIL" >&6; }
7494else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
7497fi
7498
7499 if test "x$ac_ct_DSYMUTIL" = x; then
7500 DSYMUTIL=":"
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503yes:)
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506ac_tool_warned=yes ;;
7507esac
7508 DSYMUTIL=$ac_ct_DSYMUTIL
7509 fi
7510else
7511 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7512fi
7513
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7516set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518$as_echo_n "checking for $ac_word... " >&6; }
7519if ${ac_cv_prog_NMEDIT+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521else
7522 if test -n "$NMEDIT"; then
7523 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536done
7537 done
7538IFS=$as_save_IFS
7539
7540fi
7541fi
7542NMEDIT=$ac_cv_prog_NMEDIT
7543if test -n "$NMEDIT"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7545$as_echo "$NMEDIT" >&6; }
7546else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548$as_echo "no" >&6; }
7549fi
7550
7551
7552fi
7553if test -z "$ac_cv_prog_NMEDIT"; then
7554 ac_ct_NMEDIT=$NMEDIT
7555 # Extract the first word of "nmedit", so it can be a program name with args.
7556set dummy nmedit; ac_word=$2
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558$as_echo_n "checking for $ac_word... " >&6; }
7559if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561else
7562 if test -n "$ac_ct_NMEDIT"; then
7563 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576done
7577 done
7578IFS=$as_save_IFS
7579
7580fi
7581fi
7582ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7583if test -n "$ac_ct_NMEDIT"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7585$as_echo "$ac_ct_NMEDIT" >&6; }
7586else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
7590
7591 if test "x$ac_ct_NMEDIT" = x; then
7592 NMEDIT=":"
7593 else
7594 case $cross_compiling:$ac_tool_warned in
7595yes:)
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598ac_tool_warned=yes ;;
7599esac
7600 NMEDIT=$ac_ct_NMEDIT
7601 fi
7602else
7603 NMEDIT="$ac_cv_prog_NMEDIT"
7604fi
7605
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610$as_echo_n "checking for $ac_word... " >&6; }
7611if ${ac_cv_prog_LIPO+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613else
7614 if test -n "$LIPO"; then
7615 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628done
7629 done
7630IFS=$as_save_IFS
7631
7632fi
7633fi
7634LIPO=$ac_cv_prog_LIPO
7635if test -n "$LIPO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7637$as_echo "$LIPO" >&6; }
7638else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641fi
7642
7643
7644fi
7645if test -z "$ac_cv_prog_LIPO"; then
7646 ac_ct_LIPO=$LIPO
7647 # Extract the first word of "lipo", so it can be a program name with args.
7648set dummy lipo; ac_word=$2
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650$as_echo_n "checking for $ac_word... " >&6; }
7651if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653else
7654 if test -n "$ac_ct_LIPO"; then
7655 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_ac_ct_LIPO="lipo"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669 done
7670IFS=$as_save_IFS
7671
7672fi
7673fi
7674ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675if test -n "$ac_ct_LIPO"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7677$as_echo "$ac_ct_LIPO" >&6; }
7678else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681fi
7682
7683 if test "x$ac_ct_LIPO" = x; then
7684 LIPO=":"
7685 else
7686 case $cross_compiling:$ac_tool_warned in
7687yes:)
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690ac_tool_warned=yes ;;
7691esac
7692 LIPO=$ac_ct_LIPO
7693 fi
7694else
7695 LIPO="$ac_cv_prog_LIPO"
7696fi
7697
7698 if test -n "$ac_tool_prefix"; then
7699 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7700set dummy ${ac_tool_prefix}otool; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_OTOOL+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705else
7706 if test -n "$OTOOL"; then
7707 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720done
7721 done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726OTOOL=$ac_cv_prog_OTOOL
7727if test -n "$OTOOL"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7729$as_echo "$OTOOL" >&6; }
7730else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735
7736fi
7737if test -z "$ac_cv_prog_OTOOL"; then
7738 ac_ct_OTOOL=$OTOOL
7739 # Extract the first word of "otool", so it can be a program name with args.
7740set dummy otool; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745else
7746 if test -n "$ac_ct_OTOOL"; then
7747 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_ac_ct_OTOOL="otool"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760done
7761 done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7767if test -n "$ac_ct_OTOOL"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7769$as_echo "$ac_ct_OTOOL" >&6; }
7770else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775 if test "x$ac_ct_OTOOL" = x; then
7776 OTOOL=":"
7777 else
7778 case $cross_compiling:$ac_tool_warned in
7779yes:)
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7782ac_tool_warned=yes ;;
7783esac
7784 OTOOL=$ac_ct_OTOOL
7785 fi
7786else
7787 OTOOL="$ac_cv_prog_OTOOL"
7788fi
7789
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7792set dummy ${ac_tool_prefix}otool64; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_OTOOL64+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 if test -n "$OTOOL64"; then
7799 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813 done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818OTOOL64=$ac_cv_prog_OTOOL64
7819if test -n "$OTOOL64"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7821$as_echo "$OTOOL64" >&6; }
7822else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_prog_OTOOL64"; then
7830 ac_ct_OTOOL64=$OTOOL64
7831 # Extract the first word of "otool64", so it can be a program name with args.
7832set dummy otool64; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837else
7838 if test -n "$ac_ct_OTOOL64"; then
7839 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_ac_ct_OTOOL64="otool64"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853 done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7859if test -n "$ac_ct_OTOOL64"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7861$as_echo "$ac_ct_OTOOL64" >&6; }
7862else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867 if test "x$ac_ct_OTOOL64" = x; then
7868 OTOOL64=":"
7869 else
7870 case $cross_compiling:$ac_tool_warned in
7871yes:)
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876 OTOOL64=$ac_ct_OTOOL64
7877 fi
7878else
7879 OTOOL64="$ac_cv_prog_OTOOL64"
7880fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7909$as_echo_n "checking for -single_module linker flag... " >&6; }
7910if ${lt_cv_apple_cc_single_mod+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 lt_cv_apple_cc_single_mod=no
7914 if test -z "${LT_MULTI_MODULE}"; then
7915 # By default we will add the -single_module flag. You can override
7916 # by either setting the environment variable LT_MULTI_MODULE
7917 # non-empty at configure time, or by adding -multi_module to the
7918 # link flags.
7919 rm -rf libconftest.dylib*
7920 echo "int foo(void){return 1;}" > conftest.c
7921 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7922-dynamiclib -Wl,-single_module conftest.c" >&5
7923 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7924 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7925 _lt_result=$?
7926 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7927 lt_cv_apple_cc_single_mod=yes
7928 else
7929 cat conftest.err >&5
7930 fi
7931 rm -rf libconftest.dylib*
7932 rm -f conftest.*
7933 fi
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7936$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7938$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7939if ${lt_cv_ld_exported_symbols_list+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941else
7942 lt_cv_ld_exported_symbols_list=no
7943 save_LDFLAGS=$LDFLAGS
7944 echo "_main" > conftest.sym
7945 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948
7949int
7950main ()
7951{
7952
7953 ;
7954 return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"; then :
7958 lt_cv_ld_exported_symbols_list=yes
7959else
7960 lt_cv_ld_exported_symbols_list=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 LDFLAGS="$save_LDFLAGS"
7965
7966fi
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7968$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7970$as_echo_n "checking for -force_load linker flag... " >&6; }
7971if ${lt_cv_ld_force_load+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973else
7974 lt_cv_ld_force_load=no
7975 cat > conftest.c << _LT_EOF
7976int forced_loaded() { return 2;}
7977_LT_EOF
7978 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7979 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7980 echo "$AR cru libconftest.a conftest.o" >&5
7981 $AR cru libconftest.a conftest.o 2>&5
7982 cat > conftest.c << _LT_EOF
7983int main() { return 0;}
7984_LT_EOF
7985 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7986 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7987 _lt_result=$?
7988 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7989 lt_cv_ld_force_load=yes
7990 else
7991 cat conftest.err >&5
7992 fi
7993 rm -f conftest.err libconftest.a conftest conftest.c
7994 rm -rf conftest.dSYM
7995
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7998$as_echo "$lt_cv_ld_force_load" >&6; }
7999 case $host_os in
8000 rhapsody* | darwin1.[012])
8001 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002 darwin1.*)
8003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8004 darwin*) # darwin 5.x on
8005 # if running on 10.5 or later, the deployment target defaults
8006 # to the OS version, if on x86, and 10.4, the deployment
8007 # target defaults to 10.4. Don't you love it?
8008 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8009 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011 10.[012][,.]*)
8012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013 10.*)
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015 esac
8016 ;;
8017 esac
8018 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8019 _lt_dar_single_mod='$single_module'
8020 fi
8021 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8022 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023 else
8024 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 fi
8026 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8027 _lt_dsymutil='~$DSYMUTIL $lib || :'
8028 else
8029 _lt_dsymutil=
8030 fi
8031 ;;
8032 esac
8033
8034for ac_header in dlfcn.h
8035do :
8036 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8037"
8038if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8039 cat >>confdefs.h <<_ACEOF
8040#define HAVE_DLFCN_H 1
8041_ACEOF
8042
8043fi
8044
8045done
8046
8047
8048
8049
8050
8051# Set options
8052
8053
8054
8055 enable_dlopen=no
8056
8057
8058 enable_win32_dll=no
8059
8060
8061
8062 # Check whether --enable-static was given.
8063if test "${enable_static+set}" = set; then :
8064 enableval=$enable_static; p=${PACKAGE-default}
8065 case $enableval in
8066 yes) enable_static=yes ;;
8067 no) enable_static=no ;;
8068 *)
8069 enable_static=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8072 for pkg in $enableval; do
8073 IFS="$lt_save_ifs"
8074 if test "X$pkg" = "X$p"; then
8075 enable_static=yes
8076 fi
8077 done
8078 IFS="$lt_save_ifs"
8079 ;;
8080 esac
8081else
8082 enable_static=yes
8083fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094# Check whether --with-pic was given.
8095if test "${with_pic+set}" = set; then :
8096 withval=$with_pic; pic_mode="$withval"
8097else
8098 pic_mode=default
8099fi
8100
8101
8102test -z "$pic_mode" && pic_mode=default
8103
8104
8105
8106
8107
8108
8109
8110 # Check whether --enable-fast-install was given.
8111if test "${enable_fast_install+set}" = set; then :
8112 enableval=$enable_fast_install; p=${PACKAGE-default}
8113 case $enableval in
8114 yes) enable_fast_install=yes ;;
8115 no) enable_fast_install=no ;;
8116 *)
8117 enable_fast_install=no
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120 for pkg in $enableval; do
8121 IFS="$lt_save_ifs"
8122 if test "X$pkg" = "X$p"; then
8123 enable_fast_install=yes
8124 fi
8125 done
8126 IFS="$lt_save_ifs"
8127 ;;
8128 esac
8129else
8130 enable_fast_install=yes
8131fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143# This can be used to rebuild libtool when needed
8144LIBTOOL_DEPS="$ltmain"
8145
8146# Always use our own libtool.
8147LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174test -z "$LN_S" && LN_S="ln -s"
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189if test -n "${ZSH_VERSION+set}" ; then
8190 setopt NO_GLOB_SUBST
8191fi
8192
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8194$as_echo_n "checking for objdir... " >&6; }
8195if ${lt_cv_objdir+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197else
8198 rm -f .libs 2>/dev/null
8199mkdir .libs 2>/dev/null
8200if test -d .libs; then
8201 lt_cv_objdir=.libs
8202else
8203 # MS-DOS does not allow filenames that begin with a dot.
8204 lt_cv_objdir=_libs
8205fi
8206rmdir .libs 2>/dev/null
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8209$as_echo "$lt_cv_objdir" >&6; }
8210objdir=$lt_cv_objdir
8211
8212
8213
8214
8215
8216cat >>confdefs.h <<_ACEOF
8217#define LT_OBJDIR "$lt_cv_objdir/"
8218_ACEOF
8219
8220
8221
8222
8223case $host_os in
8224aix3*)
8225 # AIX sometimes has problems with the GCC collect2 program. For some
8226 # reason, if we set the COLLECT_NAMES environment variable, the problems
8227 # vanish in a puff of smoke.
8228 if test "X${COLLECT_NAMES+set}" != Xset; then
8229 COLLECT_NAMES=
8230 export COLLECT_NAMES
8231 fi
8232 ;;
8233esac
8234
8235# Global variables:
8236ofile=libtool
8237can_build_shared=yes
8238
8239# All known linkers require a `.a' archive for static linking (except MSVC,
8240# which needs '.lib').
8241libext=a
8242
8243with_gnu_ld="$lt_cv_prog_gnu_ld"
8244
8245old_CC="$CC"
8246old_CFLAGS="$CFLAGS"
8247
8248# Set sane defaults for various variables
8249test -z "$CC" && CC=cc
8250test -z "$LTCC" && LTCC=$CC
8251test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8252test -z "$LD" && LD=ld
8253test -z "$ac_objext" && ac_objext=o
8254
8255for cc_temp in $compiler""; do
8256 case $cc_temp in
8257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8259 \-*) ;;
8260 *) break;;
8261 esac
8262done
8263cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8264
8265
8266# Only perform the check for file, if the check method requires it
8267test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268case $deplibs_check_method in
8269file_magic*)
8270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8272$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8273if ${lt_cv_path_MAGIC_CMD+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275else
8276 case $MAGIC_CMD in
8277[\\/*] | ?:[\\/]*)
8278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8279 ;;
8280*)
8281 lt_save_MAGIC_CMD="$MAGIC_CMD"
8282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir in $ac_dummy; do
8285 IFS="$lt_save_ifs"
8286 test -z "$ac_dir" && ac_dir=.
8287 if test -f $ac_dir/${ac_tool_prefix}file; then
8288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8291 "file_magic "*)
8292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8295 $EGREP "$file_magic_regex" > /dev/null; then
8296 :
8297 else
8298 cat <<_LT_EOF 1>&2
8299
8300*** Warning: the command libtool uses to detect shared libraries,
8301*** $file_magic_cmd, produces output that libtool cannot recognize.
8302*** The result is that libtool may fail to recognize shared libraries
8303*** as such. This will affect the creation of libtool libraries that
8304*** depend on shared libraries, but programs linked with such libtool
8305*** libraries will work regardless of this problem. Nevertheless, you
8306*** may want to report the problem to your system manager and/or to
8307*** bug-libtool@gnu.org
8308
8309_LT_EOF
8310 fi ;;
8311 esac
8312 fi
8313 break
8314 fi
8315 done
8316 IFS="$lt_save_ifs"
8317 MAGIC_CMD="$lt_save_MAGIC_CMD"
8318 ;;
8319esac
8320fi
8321
8322MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325$as_echo "$MAGIC_CMD" >&6; }
8326else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
8329fi
8330
8331
8332
8333
8334
8335if test -z "$lt_cv_path_MAGIC_CMD"; then
8336 if test -n "$ac_tool_prefix"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8338$as_echo_n "checking for file... " >&6; }
8339if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341else
8342 case $MAGIC_CMD in
8343[\\/*] | ?:[\\/]*)
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8345 ;;
8346*)
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8351 IFS="$lt_save_ifs"
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8357 "file_magic "*)
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8362 :
8363 else
8364 cat <<_LT_EOF 1>&2
8365
8366*** Warning: the command libtool uses to detect shared libraries,
8367*** $file_magic_cmd, produces output that libtool cannot recognize.
8368*** The result is that libtool may fail to recognize shared libraries
8369*** as such. This will affect the creation of libtool libraries that
8370*** depend on shared libraries, but programs linked with such libtool
8371*** libraries will work regardless of this problem. Nevertheless, you
8372*** may want to report the problem to your system manager and/or to
8373*** bug-libtool@gnu.org
8374
8375_LT_EOF
8376 fi ;;
8377 esac
8378 fi
8379 break
8380 fi
8381 done
8382 IFS="$lt_save_ifs"
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8384 ;;
8385esac
8386fi
8387
8388MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391$as_echo "$MAGIC_CMD" >&6; }
8392else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
8395fi
8396
8397
8398 else
8399 MAGIC_CMD=:
8400 fi
8401fi
8402
8403 fi
8404 ;;
8405esac
8406
8407# Use C for the default configuration in the libtool script
8408
8409lt_save_CC="$CC"
8410ac_ext=c
8411ac_cpp='$CPP $CPPFLAGS'
8412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416
8417# Source file extension for C test sources.
8418ac_ext=c
8419
8420# Object file extension for compiled C test sources.
8421objext=o
8422objext=$objext
8423
8424# Code to be used in simple compile tests
8425lt_simple_compile_test_code="int some_variable = 0;"
8426
8427# Code to be used in simple link tests
8428lt_simple_link_test_code='int main(){return(0);}'
8429
8430
8431
8432
8433
8434
8435
8436# If no C compiler was specified, use CC.
8437LTCC=${LTCC-"$CC"}
8438
8439# If no C compiler flags were specified, use CFLAGS.
8440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8441
8442# Allow CC to be a program name with arguments.
8443compiler=$CC
8444
8445# Save the default compiler, since it gets overwritten when the other
8446# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8447compiler_DEFAULT=$CC
8448
8449# save warnings/boilerplate of simple test code
8450ac_outfile=conftest.$ac_objext
8451echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453_lt_compiler_boilerplate=`cat conftest.err`
8454$RM conftest*
8455
8456ac_outfile=conftest.$ac_objext
8457echo "$lt_simple_link_test_code" >conftest.$ac_ext
8458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8459_lt_linker_boilerplate=`cat conftest.err`
8460$RM -r conftest*
8461
8462
8463## CAVEAT EMPTOR:
8464## There is no encapsulation within the following macros, do not change
8465## the running order or otherwise move them around unless you know exactly
8466## what you are doing...
8467if test -n "$compiler"; then
8468
8469lt_prog_compiler_no_builtin_flag=
8470
8471if test "$GCC" = yes; then
8472 case $cc_basename in
8473 nvcc*)
8474 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8475 *)
8476 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8477 esac
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8480$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8481if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 lt_cv_prog_compiler_rtti_exceptions=no
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="-fno-rtti -fno-exceptions"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 # The option is referenced via a variable to avoid confusing sed.
8493 lt_compile=`echo "$ac_compile" | $SED \
8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496 -e 's:$: $lt_compiler_flag:'`
8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498 (eval "$lt_compile" 2>conftest.err)
8499 ac_status=$?
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 if (exit $ac_status) && test -s "$ac_outfile"; then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings other than the usual output.
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_rtti_exceptions=yes
8509 fi
8510 fi
8511 $RM conftest*
8512
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8515$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8516
8517if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8518 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8519else
8520 :
8521fi
8522
8523fi
8524
8525
8526
8527
8528
8529
8530 lt_prog_compiler_wl=
8531lt_prog_compiler_pic=
8532lt_prog_compiler_static=
8533
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8535$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8536
8537 if test "$GCC" = yes; then
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_static='-static'
8540
8541 case $host_os in
8542 aix*)
8543 # All AIX code is PIC.
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static='-Bstatic'
8547 fi
8548 lt_prog_compiler_pic='-fPIC'
8549 ;;
8550
8551 amigaos*)
8552 case $host_cpu in
8553 powerpc)
8554 # see comment about AmigaOS4 .so support
8555 lt_prog_compiler_pic='-fPIC'
8556 ;;
8557 m68k)
8558 # FIXME: we need at least 68020 code to build shared libraries, but
8559 # adding the `-m68020' flag to GCC prevents building anything better,
8560 # like `-m68040'.
8561 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8562 ;;
8563 esac
8564 ;;
8565
8566 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8567 # PIC is the default for these OSes.
8568 ;;
8569
8570 mingw* | cygwin* | pw32* | os2* | cegcc*)
8571 # This hack is so that the source file can tell whether it is being
8572 # built for inclusion in a dll (and should export symbols for example).
8573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8574 # (--disable-auto-import) libraries
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8576 ;;
8577
8578 darwin* | rhapsody*)
8579 # PIC is the default on this platform
8580 # Common symbols not allowed in MH_DYLIB files
8581 lt_prog_compiler_pic='-fno-common'
8582 ;;
8583
8584 haiku*)
8585 # PIC is the default for Haiku.
8586 # The "-static" flag exists, but is broken.
8587 lt_prog_compiler_static=
8588 ;;
8589
8590 hpux*)
8591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8593 # sets the default TLS model and affects inlining.
8594 case $host_cpu in
8595 hppa*64*)
8596 # +Z the default
8597 ;;
8598 *)
8599 lt_prog_compiler_pic='-fPIC'
8600 ;;
8601 esac
8602 ;;
8603
8604 interix[3-9]*)
8605 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8606 # Instead, we relocate shared libraries at runtime.
8607 ;;
8608
8609 msdosdjgpp*)
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared=no
8613 enable_shared=no
8614 ;;
8615
8616 *nto* | *qnx*)
8617 # QNX uses GNU C++, but need to define -shared option too, otherwise
8618 # it will coredump.
8619 lt_prog_compiler_pic='-fPIC -shared'
8620 ;;
8621
8622 sysv4*MP*)
8623 if test -d /usr/nec; then
8624 lt_prog_compiler_pic=-Kconform_pic
8625 fi
8626 ;;
8627
8628 *)
8629 lt_prog_compiler_pic='-fPIC'
8630 ;;
8631 esac
8632
8633 case $cc_basename in
8634 nvcc*) # Cuda Compiler Driver 2.2
8635 lt_prog_compiler_wl='-Xlinker '
8636 lt_prog_compiler_pic='-Xcompiler -fPIC'
8637 ;;
8638 esac
8639 else
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8641 case $host_os in
8642 aix*)
8643 lt_prog_compiler_wl='-Wl,'
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8647 else
8648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8649 fi
8650 ;;
8651
8652 mingw* | cygwin* | pw32* | os2* | cegcc*)
8653 # This hack is so that the source file can tell whether it is being
8654 # built for inclusion in a dll (and should export symbols for example).
8655 lt_prog_compiler_pic='-DDLL_EXPORT'
8656 ;;
8657
8658 hpux9* | hpux10* | hpux11*)
8659 lt_prog_compiler_wl='-Wl,'
8660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8661 # not for PA HP-UX.
8662 case $host_cpu in
8663 hppa*64*|ia64*)
8664 # +Z the default
8665 ;;
8666 *)
8667 lt_prog_compiler_pic='+Z'
8668 ;;
8669 esac
8670 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8671 lt_prog_compiler_static='${wl}-a ${wl}archive'
8672 ;;
8673
8674 irix5* | irix6* | nonstopux*)
8675 lt_prog_compiler_wl='-Wl,'
8676 # PIC (with -KPIC) is the default.
8677 lt_prog_compiler_static='-non_shared'
8678 ;;
8679
8680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8681 case $cc_basename in
8682 # old Intel for x86_64 which still supported -KPIC.
8683 ecc*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-static'
8687 ;;
8688 # icc used to be incompatible with GCC.
8689 # ICC 10 doesn't accept -KPIC any more.
8690 icc* | ifort*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-fPIC'
8693 lt_prog_compiler_static='-static'
8694 ;;
8695 # Lahey Fortran 8.1.
8696 lf95*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='--shared'
8699 lt_prog_compiler_static='--static'
8700 ;;
8701 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8702 # Portland Group compilers (*not* the Pentium gcc compiler,
8703 # which looks to be a dead project)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fpic'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708 ccc*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # All Alpha code is PIC.
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713 xl* | bgxl* | bgf* | mpixl*)
8714 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-qpic'
8717 lt_prog_compiler_static='-qstaticlink'
8718 ;;
8719 *)
8720 case `$CC -V 2>&1 | sed 5q` in
8721 *Sun\ F* | *Sun*Fortran*)
8722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl=''
8726 ;;
8727 *Sun\ C*)
8728 # Sun C 5.9
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl='-Wl,'
8732 ;;
8733 esac
8734 ;;
8735 esac
8736 ;;
8737
8738 newsos6)
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-Bstatic'
8741 ;;
8742
8743 *nto* | *qnx*)
8744 # QNX uses GNU C++, but need to define -shared option too, otherwise
8745 # it will coredump.
8746 lt_prog_compiler_pic='-fPIC -shared'
8747 ;;
8748
8749 osf3* | osf4* | osf5*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # All OSF/1 code is PIC.
8752 lt_prog_compiler_static='-non_shared'
8753 ;;
8754
8755 rdos*)
8756 lt_prog_compiler_static='-non_shared'
8757 ;;
8758
8759 solaris*)
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8762 case $cc_basename in
8763 f77* | f90* | f95*)
8764 lt_prog_compiler_wl='-Qoption ld ';;
8765 *)
8766 lt_prog_compiler_wl='-Wl,';;
8767 esac
8768 ;;
8769
8770 sunos4*)
8771 lt_prog_compiler_wl='-Qoption ld '
8772 lt_prog_compiler_pic='-PIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775
8776 sysv4 | sysv4.2uw2* | sysv4.3*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 sysv4*MP*)
8783 if test -d /usr/nec ;then
8784 lt_prog_compiler_pic='-Kconform_pic'
8785 lt_prog_compiler_static='-Bstatic'
8786 fi
8787 ;;
8788
8789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8793 ;;
8794
8795 unicos*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_can_build_shared=no
8798 ;;
8799
8800 uts4*)
8801 lt_prog_compiler_pic='-pic'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804
8805 *)
8806 lt_prog_compiler_can_build_shared=no
8807 ;;
8808 esac
8809 fi
8810
8811case $host_os in
8812 # For platforms which do not support PIC, -DPIC is meaningless:
8813 *djgpp*)
8814 lt_prog_compiler_pic=
8815 ;;
8816 *)
8817 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8818 ;;
8819esac
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8821$as_echo "$lt_prog_compiler_pic" >&6; }
8822
8823
8824
8825
8826
8827
8828#
8829# Check to make sure the PIC flag actually works.
8830#
8831if test -n "$lt_prog_compiler_pic"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8833$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8834if ${lt_cv_prog_compiler_pic_works+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836else
8837 lt_cv_prog_compiler_pic_works=no
8838 ac_outfile=conftest.$ac_objext
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 # The option is referenced via a variable to avoid confusing sed.
8846 lt_compile=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>conftest.err)
8852 ac_status=$?
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s "$ac_outfile"; then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings other than the usual output.
8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler_pic_works=yes
8862 fi
8863 fi
8864 $RM conftest*
8865
8866fi
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8868$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8869
8870if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8871 case $lt_prog_compiler_pic in
8872 "" | " "*) ;;
8873 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8874 esac
8875else
8876 lt_prog_compiler_pic=
8877 lt_prog_compiler_can_build_shared=no
8878fi
8879
8880fi
8881
8882
8883
8884
8885
8886
8887#
8888# Check to make sure the static flag actually works.
8889#
8890wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8892$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8893if ${lt_cv_prog_compiler_static_works+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 lt_cv_prog_compiler_static_works=no
8897 save_LDFLAGS="$LDFLAGS"
8898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8899 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8901 # The linker can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 if test -s conftest.err; then
8904 # Append any errors to the config.log.
8905 cat conftest.err 1>&5
8906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908 if diff conftest.exp conftest.er2 >/dev/null; then
8909 lt_cv_prog_compiler_static_works=yes
8910 fi
8911 else
8912 lt_cv_prog_compiler_static_works=yes
8913 fi
8914 fi
8915 $RM -r conftest*
8916 LDFLAGS="$save_LDFLAGS"
8917
8918fi
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8920$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8921
8922if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8923 :
8924else
8925 lt_prog_compiler_static=
8926fi
8927
8928
8929
8930
8931
8932
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8936if ${lt_cv_prog_compiler_c_o+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 lt_cv_prog_compiler_c_o=no
8940 $RM -r conftest 2>/dev/null
8941 mkdir conftest
8942 cd conftest
8943 mkdir out
8944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945
8946 lt_compiler_flag="-o out/conftest2.$ac_objext"
8947 # Insert the option either (1) after the last *FLAGS variable, or
8948 # (2) before a word containing "conftest.", or (3) at the end.
8949 # Note that $ac_compile itself does not contain backslashes and begins
8950 # with a dollar sign (not a hyphen), so the echo should work correctly.
8951 lt_compile=`echo "$ac_compile" | $SED \
8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954 -e 's:$: $lt_compiler_flag:'`
8955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956 (eval "$lt_compile" 2>out/conftest.err)
8957 ac_status=$?
8958 cat out/conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8961 then
8962 # The compiler can only warn and ignore the option if not recognized
8963 # So say no if there are warnings
8964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8967 lt_cv_prog_compiler_c_o=yes
8968 fi
8969 fi
8970 chmod u+w . 2>&5
8971 $RM conftest*
8972 # SGI C++ compiler will create directory out/ii_files/ for
8973 # template instantiation
8974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8975 $RM out/* && rmdir out
8976 cd ..
8977 $RM -r conftest
8978 $RM conftest*
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8982$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983
8984
8985
8986
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8991if ${lt_cv_prog_compiler_c_o+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993else
8994 lt_cv_prog_compiler_c_o=no
8995 $RM -r conftest 2>/dev/null
8996 mkdir conftest
8997 cd conftest
8998 mkdir out
8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001 lt_compiler_flag="-o out/conftest2.$ac_objext"
9002 # Insert the option either (1) after the last *FLAGS variable, or
9003 # (2) before a word containing "conftest.", or (3) at the end.
9004 # Note that $ac_compile itself does not contain backslashes and begins
9005 # with a dollar sign (not a hyphen), so the echo should work correctly.
9006 lt_compile=`echo "$ac_compile" | $SED \
9007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009 -e 's:$: $lt_compiler_flag:'`
9010 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011 (eval "$lt_compile" 2>out/conftest.err)
9012 ac_status=$?
9013 cat out/conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9016 then
9017 # The compiler can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9020 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9021 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9022 lt_cv_prog_compiler_c_o=yes
9023 fi
9024 fi
9025 chmod u+w . 2>&5
9026 $RM conftest*
9027 # SGI C++ compiler will create directory out/ii_files/ for
9028 # template instantiation
9029 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9030 $RM out/* && rmdir out
9031 cd ..
9032 $RM -r conftest
9033 $RM conftest*
9034
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038
9039
9040
9041
9042hard_links="nottested"
9043if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9044 # do not overwrite the value of need_locks provided by the user
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9046$as_echo_n "checking if we can lock with hard links... " >&6; }
9047 hard_links=yes
9048 $RM conftest*
9049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9050 touch conftest.a
9051 ln conftest.a conftest.b 2>&5 || hard_links=no
9052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9054$as_echo "$hard_links" >&6; }
9055 if test "$hard_links" = no; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9057$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9058 need_locks=warn
9059 fi
9060else
9061 need_locks=no
9062fi
9063
9064
9065
9066
9067
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9071
9072 runpath_var=
9073 allow_undefined_flag=
9074 always_export_symbols=no
9075 archive_cmds=
9076 archive_expsym_cmds=
9077 compiler_needs_object=no
9078 enable_shared_with_static_runtimes=no
9079 export_dynamic_flag_spec=
9080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9081 hardcode_automatic=no
9082 hardcode_direct=no
9083 hardcode_direct_absolute=no
9084 hardcode_libdir_flag_spec=
9085 hardcode_libdir_flag_spec_ld=
9086 hardcode_libdir_separator=
9087 hardcode_minus_L=no
9088 hardcode_shlibpath_var=unsupported
9089 inherit_rpath=no
9090 link_all_deplibs=unknown
9091 module_cmds=
9092 module_expsym_cmds=
9093 old_archive_from_new_cmds=
9094 old_archive_from_expsyms_cmds=
9095 thread_safe_flag_spec=
9096 whole_archive_flag_spec=
9097 # include_expsyms should be a list of space-separated symbols to be *always*
9098 # included in the symbol list
9099 include_expsyms=
9100 # exclude_expsyms can be an extended regexp of symbols to exclude
9101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9103 # as well as any symbol that contains `d'.
9104 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9106 # platforms (ab)use it in PIC code, but their linkers get confused if
9107 # the symbol is explicitly referenced. Since portable code cannot
9108 # rely on this symbol name, it's probably fine to never include it in
9109 # preloaded symbol tables.
9110 # Exclude shared library initialization/finalization symbols.
9111 extract_expsyms_cmds=
9112
9113 case $host_os in
9114 cygwin* | mingw* | pw32* | cegcc*)
9115 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9116 # When not using gcc, we currently assume that we are using
9117 # Microsoft Visual C++.
9118 if test "$GCC" != yes; then
9119 with_gnu_ld=no
9120 fi
9121 ;;
9122 interix*)
9123 # we just hope/assume this is gcc and not c89 (= MSVC++)
9124 with_gnu_ld=yes
9125 ;;
9126 openbsd*)
9127 with_gnu_ld=no
9128 ;;
9129 esac
9130
9131 ld_shlibs=yes
9132
9133 # On some targets, GNU ld is compatible enough with the native linker
9134 # that we're better off using the native interface for both.
9135 lt_use_gnu_ld_interface=no
9136 if test "$with_gnu_ld" = yes; then
9137 case $host_os in
9138 aix*)
9139 # The AIX port of GNU ld has always aspired to compatibility
9140 # with the native linker. However, as the warning in the GNU ld
9141 # block says, versions before 2.19.5* couldn't really create working
9142 # shared libraries, regardless of the interface used.
9143 case `$LD -v 2>&1` in
9144 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9145 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9146 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9147 *)
9148 lt_use_gnu_ld_interface=yes
9149 ;;
9150 esac
9151 ;;
9152 *)
9153 lt_use_gnu_ld_interface=yes
9154 ;;
9155 esac
9156 fi
9157
9158 if test "$lt_use_gnu_ld_interface" = yes; then
9159 # If archive_cmds runs LD, not CC, wlarc should be empty
9160 wlarc='${wl}'
9161
9162 # Set some defaults for GNU ld with shared library support. These
9163 # are reset later if shared libraries are not supported. Putting them
9164 # here allows them to be overridden if necessary.
9165 runpath_var=LD_RUN_PATH
9166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167 export_dynamic_flag_spec='${wl}--export-dynamic'
9168 # ancient GNU ld didn't support --whole-archive et. al.
9169 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9170 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9171 else
9172 whole_archive_flag_spec=
9173 fi
9174 supports_anon_versioning=no
9175 case `$LD -v 2>&1` in
9176 *GNU\ gold*) supports_anon_versioning=yes ;;
9177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9180 *\ 2.11.*) ;; # other 2.11 versions
9181 *) supports_anon_versioning=yes ;;
9182 esac
9183
9184 # See if GNU ld supports shared libraries.
9185 case $host_os in
9186 aix[3-9]*)
9187 # On AIX/PPC, the GNU linker is very broken
9188 if test "$host_cpu" != ia64; then
9189 ld_shlibs=no
9190 cat <<_LT_EOF 1>&2
9191
9192*** Warning: the GNU linker, at least up to release 2.19, is reported
9193*** to be unable to reliably create shared libraries on AIX.
9194*** Therefore, libtool is disabling shared libraries support. If you
9195*** really care for shared libraries, you may want to install binutils
9196*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9197*** You will then need to restart the configuration process.
9198
9199_LT_EOF
9200 fi
9201 ;;
9202
9203 amigaos*)
9204 case $host_cpu in
9205 powerpc)
9206 # see comment about AmigaOS4 .so support
9207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 archive_expsym_cmds=''
9209 ;;
9210 m68k)
9211 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)'
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_minus_L=yes
9214 ;;
9215 esac
9216 ;;
9217
9218 beos*)
9219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9220 allow_undefined_flag=unsupported
9221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9222 # support --undefined. This deserves some investigation. FIXME
9223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 cygwin* | mingw* | pw32* | cegcc*)
9230 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9231 # as there is no search path for DLLs.
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 export_dynamic_flag_spec='${wl}--export-all-symbols'
9234 allow_undefined_flag=unsupported
9235 always_export_symbols=no
9236 enable_shared_with_static_runtimes=yes
9237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9238
9239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9241 # If the export-symbols file already is a .def file (1st line
9242 # is EXPORTS), use it as is; otherwise, prepend...
9243 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9244 cp $export_symbols $output_objdir/$soname.def;
9245 else
9246 echo EXPORTS > $output_objdir/$soname.def;
9247 cat $export_symbols >> $output_objdir/$soname.def;
9248 fi~
9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 else
9251 ld_shlibs=no
9252 fi
9253 ;;
9254
9255 haiku*)
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 link_all_deplibs=yes
9258 ;;
9259
9260 interix[3-9]*)
9261 hardcode_direct=no
9262 hardcode_shlibpath_var=no
9263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264 export_dynamic_flag_spec='${wl}-E'
9265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9266 # Instead, shared libraries are loaded at an image base (0x10000000 by
9267 # default) and relocated if they conflict, which is a slow very memory
9268 # consuming and fragmenting process. To avoid this, we pick a random,
9269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9272 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'
9273 ;;
9274
9275 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9276 tmp_diet=no
9277 if test "$host_os" = linux-dietlibc; then
9278 case $cc_basename in
9279 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9280 esac
9281 fi
9282 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9283 && test "$tmp_diet" = no
9284 then
9285 tmp_addflag=' $pic_flag'
9286 tmp_sharedflag='-shared'
9287 case $cc_basename,$host_cpu in
9288 pgcc*) # Portland Group C compiler
9289 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'
9290 tmp_addflag=' $pic_flag'
9291 ;;
9292 pgf77* | pgf90* | pgf95* | pgfortran*)
9293 # Portland Group f77 and f90 compilers
9294 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'
9295 tmp_addflag=' $pic_flag -Mnomain' ;;
9296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9297 tmp_addflag=' -i_dynamic' ;;
9298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9299 tmp_addflag=' -i_dynamic -nofor_main' ;;
9300 ifc* | ifort*) # Intel Fortran compiler
9301 tmp_addflag=' -nofor_main' ;;
9302 lf95*) # Lahey Fortran 8.1
9303 whole_archive_flag_spec=
9304 tmp_sharedflag='--shared' ;;
9305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9306 tmp_sharedflag='-qmkshrobj'
9307 tmp_addflag= ;;
9308 nvcc*) # Cuda Compiler Driver 2.2
9309 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'
9310 compiler_needs_object=yes
9311 ;;
9312 esac
9313 case `$CC -V 2>&1 | sed 5q` in
9314 *Sun\ C*) # Sun C 5.9
9315 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'
9316 compiler_needs_object=yes
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 esac
9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322
9323 if test "x$supports_anon_versioning" = xyes; then
9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326 echo "local: *; };" >> $output_objdir/$libname.ver~
9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9328 fi
9329
9330 case $cc_basename in
9331 xlf* | bgf* | bgxlf* | mpixlf*)
9332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9334 hardcode_libdir_flag_spec=
9335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9336 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9337 if test "x$supports_anon_versioning" = xyes; then
9338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9340 echo "local: *; };" >> $output_objdir/$libname.ver~
9341 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9342 fi
9343 ;;
9344 esac
9345 else
9346 ld_shlibs=no
9347 fi
9348 ;;
9349
9350 netbsd*)
9351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9352 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9353 wlarc=
9354 else
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357 fi
9358 ;;
9359
9360 solaris*)
9361 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9362 ld_shlibs=no
9363 cat <<_LT_EOF 1>&2
9364
9365*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9366*** create shared libraries on Solaris systems. Therefore, libtool
9367*** is disabling shared libraries support. We urge you to upgrade GNU
9368*** binutils to release 2.9.1 or newer. Another option is to modify
9369*** your PATH or compiler configuration so that the native linker is
9370*** used, and then restart.
9371
9372_LT_EOF
9373 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9382 case `$LD -v 2>&1` in
9383 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9386
9387*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9388*** reliably create shared libraries on SCO systems. Therefore, libtool
9389*** is disabling shared libraries support. We urge you to upgrade GNU
9390*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9391*** your PATH or compiler configuration so that the native linker is
9392*** used, and then restart.
9393
9394_LT_EOF
9395 ;;
9396 *)
9397 # For security reasons, it is highly recommended that you always
9398 # use absolute paths for naming shared libraries, and exclude the
9399 # DT_RUNPATH tag from executables and libraries. But doing so
9400 # requires that you compile everything twice, which is a pain.
9401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 else
9406 ld_shlibs=no
9407 fi
9408 ;;
9409 esac
9410 ;;
9411
9412 sunos4*)
9413 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9414 wlarc=
9415 hardcode_direct=yes
9416 hardcode_shlibpath_var=no
9417 ;;
9418
9419 *)
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 else
9424 ld_shlibs=no
9425 fi
9426 ;;
9427 esac
9428
9429 if test "$ld_shlibs" = no; then
9430 runpath_var=
9431 hardcode_libdir_flag_spec=
9432 export_dynamic_flag_spec=
9433 whole_archive_flag_spec=
9434 fi
9435 else
9436 # PORTME fill in a description of your system's linker (not GNU ld)
9437 case $host_os in
9438 aix3*)
9439 allow_undefined_flag=unsupported
9440 always_export_symbols=yes
9441 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'
9442 # Note: this linker hardcodes the directories in LIBPATH if there
9443 # are no directories specified by -L.
9444 hardcode_minus_L=yes
9445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9446 # Neither direct hardcoding nor static linking is supported with a
9447 # broken collect2.
9448 hardcode_direct=unsupported
9449 fi
9450 ;;
9451
9452 aix[4-9]*)
9453 if test "$host_cpu" = ia64; then
9454 # On IA64, the linker does run time linking by default, so we don't
9455 # have to do anything special.
9456 aix_use_runtimelinking=no
9457 exp_sym_flag='-Bexport'
9458 no_entry_flag=""
9459 else
9460 # If we're using GNU nm, then we don't want the "-C" option.
9461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9462 # Also, AIX nm treats weak defined symbols like other global
9463 # defined symbols, whereas GNU nm marks them as "W".
9464 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9465 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'
9466 else
9467 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9468 fi
9469 aix_use_runtimelinking=no
9470
9471 # Test if we are trying to use run time linking or normal
9472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9473 # need to do runtime linking.
9474 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9475 for ld_flag in $LDFLAGS; do
9476 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9477 aix_use_runtimelinking=yes
9478 break
9479 fi
9480 done
9481 ;;
9482 esac
9483
9484 exp_sym_flag='-bexport'
9485 no_entry_flag='-bnoentry'
9486 fi
9487
9488 # When large executables or shared objects are built, AIX ld can
9489 # have problems creating the table of contents. If linking a library
9490 # or program results in "error TOC overflow" add -mminimal-toc to
9491 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9492 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9493
9494 archive_cmds=''
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 hardcode_libdir_separator=':'
9498 link_all_deplibs=yes
9499 file_list_spec='${wl}-f,'
9500
9501 if test "$GCC" = yes; then
9502 case $host_os in aix4.[012]|aix4.[012].*)
9503 # We only want to do this on AIX 4.2 and lower, the check
9504 # below for broken collect2 doesn't work under 4.3+
9505 collect2name=`${CC} -print-prog-name=collect2`
9506 if test -f "$collect2name" &&
9507 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9508 then
9509 # We have reworked collect2
9510 :
9511 else
9512 # We have old collect2
9513 hardcode_direct=unsupported
9514 # It fails to find uninstalled libraries when the uninstalled
9515 # path is not listed in the libpath. Setting hardcode_minus_L
9516 # to unsupported forces relinking
9517 hardcode_minus_L=yes
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_libdir_separator=
9520 fi
9521 ;;
9522 esac
9523 shared_flag='-shared'
9524 if test "$aix_use_runtimelinking" = yes; then
9525 shared_flag="$shared_flag "'${wl}-G'
9526 fi
9527 else
9528 # not using gcc
9529 if test "$host_cpu" = ia64; then
9530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9531 # chokes on -Wl,-G. The following line is correct:
9532 shared_flag='-G'
9533 else
9534 if test "$aix_use_runtimelinking" = yes; then
9535 shared_flag='${wl}-G'
9536 else
9537 shared_flag='${wl}-bM:SRE'
9538 fi
9539 fi
9540 fi
9541
9542 export_dynamic_flag_spec='${wl}-bexpall'
9543 # It seems that -bexpall does not export symbols beginning with
9544 # underscore (_), so it is better to generate a list of symbols to export.
9545 always_export_symbols=yes
9546 if test "$aix_use_runtimelinking" = yes; then
9547 # Warning - without using the other runtime loading flags (-brtl),
9548 # -berok will link without error, but may produce a broken library.
9549 allow_undefined_flag='-berok'
9550 # Determine the default libpath from the value encoded in an
9551 # empty executable.
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
9554
9555int
9556main ()
9557{
9558
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563if ac_fn_c_try_link "$LINENO"; then :
9564
9565lt_aix_libpath_sed='
9566 /Import File Strings/,/^$/ {
9567 /^0/ {
9568 s/^0 *\(.*\)$/\1/
9569 p
9570 }
9571 }'
9572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573# Check for a 64-bit object if we didn't find anything.
9574if test -z "$aix_libpath"; then
9575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576fi
9577fi
9578rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9581
9582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9583 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"
9584 else
9585 if test "$host_cpu" = ia64; then
9586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9587 allow_undefined_flag="-z nodefs"
9588 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"
9589 else
9590 # Determine the default libpath from the value encoded in an
9591 # empty executable.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h. */
9594
9595int
9596main ()
9597{
9598
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604
9605lt_aix_libpath_sed='
9606 /Import File Strings/,/^$/ {
9607 /^0/ {
9608 s/^0 *\(.*\)$/\1/
9609 p
9610 }
9611 }'
9612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613# Check for a 64-bit object if we didn't find anything.
9614if test -z "$aix_libpath"; then
9615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616fi
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9621
9622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9623 # Warning - without using the other run time loading flags,
9624 # -berok will link without error, but may produce a broken library.
9625 no_undefined_flag=' ${wl}-bernotok'
9626 allow_undefined_flag=' ${wl}-berok'
9627 if test "$with_gnu_ld" = yes; then
9628 # We only use this code for GNU lds that support --whole-archive.
9629 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9630 else
9631 # Exported symbols can be pulled into shared objects from archives
9632 whole_archive_flag_spec='$convenience'
9633 fi
9634 archive_cmds_need_lc=yes
9635 # This is similar to how AIX traditionally builds its shared libraries.
9636 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'
9637 fi
9638 fi
9639 ;;
9640
9641 amigaos*)
9642 case $host_cpu in
9643 powerpc)
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9647 ;;
9648 m68k)
9649 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)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9652 ;;
9653 esac
9654 ;;
9655
9656 bsdi[45]*)
9657 export_dynamic_flag_spec=-rdynamic
9658 ;;
9659
9660 cygwin* | mingw* | pw32* | cegcc*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 hardcode_libdir_flag_spec=' '
9666 allow_undefined_flag=unsupported
9667 # Tell ltmain to make .lib files, not .a files.
9668 libext=lib
9669 # Tell ltmain to make .dll files, not .so files.
9670 shrext_cmds=".dll"
9671 # FIXME: Setting linknames here is a bad hack.
9672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9673 # The linker will automatically build a .lib file if we build a DLL.
9674 old_archive_from_new_cmds='true'
9675 # FIXME: Should let the user specify the lib program.
9676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9677 fix_srcfile_path='`cygpath -w "$srcfile"`'
9678 enable_shared_with_static_runtimes=yes
9679 ;;
9680
9681 darwin* | rhapsody*)
9682
9683
9684 archive_cmds_need_lc=no
9685 hardcode_direct=no
9686 hardcode_automatic=yes
9687 hardcode_shlibpath_var=unsupported
9688 if test "$lt_cv_ld_force_load" = "yes"; then
9689 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\"`'
9690 else
9691 whole_archive_flag_spec=''
9692 fi
9693 link_all_deplibs=yes
9694 allow_undefined_flag="$_lt_dar_allow_undefined"
9695 case $cc_basename in
9696 ifort*) _lt_dar_can_shared=yes ;;
9697 *) _lt_dar_can_shared=$GCC ;;
9698 esac
9699 if test "$_lt_dar_can_shared" = "yes"; then
9700 output_verbose_link_cmd=func_echo_all
9701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703 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}"
9704 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}"
9705
9706 else
9707 ld_shlibs=no
9708 fi
9709
9710 ;;
9711
9712 dgux*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9721 # extra space).
9722 freebsd2.2*)
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_direct=yes
9726 hardcode_shlibpath_var=no
9727 ;;
9728
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9730 freebsd2.*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_direct=yes
9733 hardcode_minus_L=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd* | dragonfly*)
9739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='-R$libdir'
9741 hardcode_direct=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 hpux9*)
9746 if test "$GCC" = yes; then
9747 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9748 else
9749 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'
9750 fi
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9753 hardcode_direct=yes
9754
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 export_dynamic_flag_spec='${wl}-E'
9759 ;;
9760
9761 hpux10*)
9762 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 else
9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9766 fi
9767 if test "$with_gnu_ld" = no; then
9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_flag_spec_ld='+b $libdir'
9770 hardcode_libdir_separator=:
9771 hardcode_direct=yes
9772 hardcode_direct_absolute=yes
9773 export_dynamic_flag_spec='${wl}-E'
9774 # hardcode_minus_L: Not really in the search PATH,
9775 # but as the default location of the library.
9776 hardcode_minus_L=yes
9777 fi
9778 ;;
9779
9780 hpux11*)
9781 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9782 case $host_cpu in
9783 hppa*64*)
9784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 ia64*)
9787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 *)
9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 esac
9793 else
9794 case $host_cpu in
9795 hppa*64*)
9796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 ia64*)
9799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 *)
9802
9803 # Older versions of the 11.00 compiler do not understand -b yet
9804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9806$as_echo_n "checking if $CC understands -b... " >&6; }
9807if ${lt_cv_prog_compiler__b+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809else
9810 lt_cv_prog_compiler__b=no
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS -b"
9813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815 # The linker can only warn and ignore the option if not recognized
9816 # So say no if there are warnings
9817 if test -s conftest.err; then
9818 # Append any errors to the config.log.
9819 cat conftest.err 1>&5
9820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822 if diff conftest.exp conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler__b=yes
9824 fi
9825 else
9826 lt_cv_prog_compiler__b=yes
9827 fi
9828 fi
9829 $RM -r conftest*
9830 LDFLAGS="$save_LDFLAGS"
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9834$as_echo "$lt_cv_prog_compiler__b" >&6; }
9835
9836if test x"$lt_cv_prog_compiler__b" = xyes; then
9837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838else
9839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9840fi
9841
9842 ;;
9843 esac
9844 fi
9845 if test "$with_gnu_ld" = no; then
9846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848
9849 case $host_cpu in
9850 hppa*64*|ia64*)
9851 hardcode_direct=no
9852 hardcode_shlibpath_var=no
9853 ;;
9854 *)
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
9857 export_dynamic_flag_spec='${wl}-E'
9858
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L=yes
9862 ;;
9863 esac
9864 fi
9865 ;;
9866
9867 irix5* | irix6* | nonstopux*)
9868 if test "$GCC" = yes; then
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9870 # Try to use the -exported_symbol ld option, if it does not
9871 # work, assume that -exports_file does not work either and
9872 # implicitly export all symbols.
9873 save_LDFLAGS="$LDFLAGS"
9874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h. */
9877int foo(void) {}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9881
9882fi
9883rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LDFLAGS="$save_LDFLAGS"
9886 else
9887 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'
9888 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'
9889 fi
9890 archive_cmds_need_lc='no'
9891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9892 hardcode_libdir_separator=:
9893 inherit_rpath=yes
9894 link_all_deplibs=yes
9895 ;;
9896
9897 netbsd*)
9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9900 else
9901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9902 fi
9903 hardcode_libdir_flag_spec='-R$libdir'
9904 hardcode_direct=yes
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 newsos6)
9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_direct=yes
9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912 hardcode_libdir_separator=:
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 *nto* | *qnx*)
9917 ;;
9918
9919 openbsd*)
9920 if test -f /usr/libexec/ld.so; then
9921 hardcode_direct=yes
9922 hardcode_shlibpath_var=no
9923 hardcode_direct_absolute=yes
9924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9928 export_dynamic_flag_spec='${wl}-E'
9929 else
9930 case $host_os in
9931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_libdir_flag_spec='-R$libdir'
9934 ;;
9935 *)
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9938 ;;
9939 esac
9940 fi
9941 else
9942 ld_shlibs=no
9943 fi
9944 ;;
9945
9946 os2*)
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_minus_L=yes
9949 allow_undefined_flag=unsupported
9950 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'
9951 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9952 ;;
9953
9954 osf3*)
9955 if test "$GCC" = yes; then
9956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9957 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'
9958 else
9959 allow_undefined_flag=' -expect_unresolved \*'
9960 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'
9961 fi
9962 archive_cmds_need_lc='no'
9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator=:
9965 ;;
9966
9967 osf4* | osf5*) # as osf3* with the addition of -msym flag
9968 if test "$GCC" = yes; then
9969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9970 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 else
9973 allow_undefined_flag=' -expect_unresolved \*'
9974 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'
9975 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~
9976 $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'
9977
9978 # Both c and cxx compiler support -rpath directly
9979 hardcode_libdir_flag_spec='-rpath $libdir'
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_separator=:
9983 ;;
9984
9985 solaris*)
9986 no_undefined_flag=' -z defs'
9987 if test "$GCC" = yes; then
9988 wlarc='${wl}'
9989 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9992 else
9993 case `$CC -V 2>&1` in
9994 *"Compilers 5.0"*)
9995 wlarc=''
9996 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9999 ;;
10000 *)
10001 wlarc='${wl}'
10002 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10005 ;;
10006 esac
10007 fi
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_shlibpath_var=no
10010 case $host_os in
10011 solaris2.[0-5] | solaris2.[0-5].*) ;;
10012 *)
10013 # The compiler driver will combine and reorder linker options,
10014 # but understands `-z linker_flag'. GCC discards it without `$wl',
10015 # but is careful enough not to reorder.
10016 # Supported since Solaris 2.6 (maybe 2.5.1?)
10017 if test "$GCC" = yes; then
10018 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10019 else
10020 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10021 fi
10022 ;;
10023 esac
10024 link_all_deplibs=yes
10025 ;;
10026
10027 sunos4*)
10028 if test "x$host_vendor" = xsequent; then
10029 # Use $CC to link under sequent, because it throws in some extra .o
10030 # files that make .init and .fini sections work.
10031 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10034 fi
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_direct=yes
10037 hardcode_minus_L=yes
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 sysv4)
10042 case $host_vendor in
10043 sni)
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct=yes # is this really true???
10046 ;;
10047 siemens)
10048 ## LD is ld it makes a PLAMLIB
10049 ## CC just makes a GrossModule.
10050 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10051 reload_cmds='$CC -r -o $output$reload_objs'
10052 hardcode_direct=no
10053 ;;
10054 motorola)
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10057 ;;
10058 esac
10059 runpath_var='LD_RUN_PATH'
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 sysv4.3*)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var=no
10066 export_dynamic_flag_spec='-Bexport'
10067 ;;
10068
10069 sysv4*MP*)
10070 if test -d /usr/nec; then
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_shlibpath_var=no
10073 runpath_var=LD_RUN_PATH
10074 hardcode_runpath_var=yes
10075 ld_shlibs=yes
10076 fi
10077 ;;
10078
10079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10080 no_undefined_flag='${wl}-z,text'
10081 archive_cmds_need_lc=no
10082 hardcode_shlibpath_var=no
10083 runpath_var='LD_RUN_PATH'
10084
10085 if test "$GCC" = yes; then
10086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 else
10089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 fi
10092 ;;
10093
10094 sysv5* | sco3.2v5* | sco5v6*)
10095 # Note: We can NOT use -z defs as we might desire, because we do not
10096 # link with -lc, and that would cause any symbols used from libc to
10097 # always be unresolved, which means just about no library would
10098 # ever link correctly. If we're not using GNU ld we use -z text
10099 # though, which does catch some bad symbols but isn't as heavy-handed
10100 # as -z defs.
10101 no_undefined_flag='${wl}-z,text'
10102 allow_undefined_flag='${wl}-z,nodefs'
10103 archive_cmds_need_lc=no
10104 hardcode_shlibpath_var=no
10105 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10106 hardcode_libdir_separator=':'
10107 link_all_deplibs=yes
10108 export_dynamic_flag_spec='${wl}-Bexport'
10109 runpath_var='LD_RUN_PATH'
10110
10111 if test "$GCC" = yes; then
10112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 else
10115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 fi
10118 ;;
10119
10120 uts4*)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 *)
10127 ld_shlibs=no
10128 ;;
10129 esac
10130
10131 if test x$host_vendor = xsni; then
10132 case $host in
10133 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10134 export_dynamic_flag_spec='${wl}-Blargedynsym'
10135 ;;
10136 esac
10137 fi
10138 fi
10139
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10141$as_echo "$ld_shlibs" >&6; }
10142test "$ld_shlibs" = no && can_build_shared=no
10143
10144with_gnu_ld=$with_gnu_ld
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160#
10161# Do we need to explicitly link libc?
10162#
10163case "x$archive_cmds_need_lc" in
10164x|xyes)
10165 # Assume -lc should be added
10166 archive_cmds_need_lc=yes
10167
10168 if test "$enable_shared" = yes && test "$GCC" = yes; then
10169 case $archive_cmds in
10170 *'~'*)
10171 # FIXME: we may have to deal with multi-command sequences.
10172 ;;
10173 '$CC '*)
10174 # Test whether the compiler implicitly links with -lc since on some
10175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10176 # to ld, don't add -lc before -lgcc.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10178$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10179if ${lt_cv_archive_cmds_need_lc+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181else
10182 $RM conftest*
10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184
10185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10186 (eval $ac_compile) 2>&5
10187 ac_status=$?
10188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10189 test $ac_status = 0; } 2>conftest.err; then
10190 soname=conftest
10191 lib=conftest
10192 libobjs=conftest.$ac_objext
10193 deplibs=
10194 wl=$lt_prog_compiler_wl
10195 pic_flag=$lt_prog_compiler_pic
10196 compiler_flags=-v
10197 linker_flags=-v
10198 verstring=
10199 output_objdir=.
10200 libname=conftest
10201 lt_save_allow_undefined_flag=$allow_undefined_flag
10202 allow_undefined_flag=
10203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10204 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10205 ac_status=$?
10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207 test $ac_status = 0; }
10208 then
10209 lt_cv_archive_cmds_need_lc=no
10210 else
10211 lt_cv_archive_cmds_need_lc=yes
10212 fi
10213 allow_undefined_flag=$lt_save_allow_undefined_flag
10214 else
10215 cat conftest.err 1>&5
10216 fi
10217 $RM conftest*
10218
10219fi
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10221$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10222 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10223 ;;
10224 esac
10225 fi
10226 ;;
10227esac
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10386$as_echo_n "checking dynamic linker characteristics... " >&6; }
10387
10388if test "$GCC" = yes; then
10389 case $host_os in
10390 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10391 *) lt_awk_arg="/^libraries:/" ;;
10392 esac
10393 case $host_os in
10394 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10395 *) lt_sed_strip_eq="s,=/,/,g" ;;
10396 esac
10397 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10398 case $lt_search_path_spec in
10399 *\;*)
10400 # if the path contains ";" then we assume it to be the separator
10401 # otherwise default to the standard path separator (i.e. ":") - it is
10402 # assumed that no part of a normal pathname contains ";" but that should
10403 # okay in the real world where ";" in dirpaths is itself problematic.
10404 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10405 ;;
10406 *)
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10408 ;;
10409 esac
10410 # Ok, now we have the path, separated by spaces, we can step through it
10411 # and add multilib dir if necessary.
10412 lt_tmp_lt_search_path_spec=
10413 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10414 for lt_sys_path in $lt_search_path_spec; do
10415 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10417 else
10418 test -d "$lt_sys_path" && \
10419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 fi
10421 done
10422 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10423BEGIN {RS=" "; FS="/|\n";} {
10424 lt_foo="";
10425 lt_count=0;
10426 for (lt_i = NF; lt_i > 0; lt_i--) {
10427 if ($lt_i != "" && $lt_i != ".") {
10428 if ($lt_i == "..") {
10429 lt_count++;
10430 } else {
10431 if (lt_count == 0) {
10432 lt_foo="/" $lt_i lt_foo;
10433 } else {
10434 lt_count--;
10435 }
10436 }
10437 }
10438 }
10439 if (lt_foo != "") { lt_freq[lt_foo]++; }
10440 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10441}'`
10442 # AWK program above erroneously prepends '/' to C:/dos/paths
10443 # for these hosts.
10444 case $host_os in
10445 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10446 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10447 esac
10448 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10449else
10450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10451fi
10452library_names_spec=
10453libname_spec='lib$name'
10454soname_spec=
10455shrext_cmds=".so"
10456postinstall_cmds=
10457postuninstall_cmds=
10458finish_cmds=
10459finish_eval=
10460shlibpath_var=
10461shlibpath_overrides_runpath=unknown
10462version_type=none
10463dynamic_linker="$host_os ld.so"
10464sys_lib_dlsearch_path_spec="/lib /usr/lib"
10465need_lib_prefix=unknown
10466hardcode_into_libs=no
10467
10468# when you set need_version to no, make sure it does not cause -set_version
10469# flags to be left without arguments
10470need_version=unknown
10471
10472case $host_os in
10473aix3*)
10474 version_type=linux
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10476 shlibpath_var=LIBPATH
10477
10478 # AIX 3 has no versioning support, so we append a major version to the name.
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 ;;
10481
10482aix[4-9]*)
10483 version_type=linux
10484 need_lib_prefix=no
10485 need_version=no
10486 hardcode_into_libs=yes
10487 if test "$host_cpu" = ia64; then
10488 # AIX 5 supports IA64
10489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 else
10492 # With GCC up to 2.95.x, collect2 would create an import file
10493 # for dependence libraries. The import file would start with
10494 # the line `#! .'. This would cause the generated library to
10495 # depend on `.', always an invalid library. This was fixed in
10496 # development snapshots of GCC prior to 3.0.
10497 case $host_os in
10498 aix4 | aix4.[01] | aix4.[01].*)
10499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10500 echo ' yes '
10501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10502 :
10503 else
10504 can_build_shared=no
10505 fi
10506 ;;
10507 esac
10508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10509 # soname into executable. Probably we can add versioning support to
10510 # collect2, so additional links can be useful in future.
10511 if test "$aix_use_runtimelinking" = yes; then
10512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10513 # instead of lib<name>.a to let people know that these are not
10514 # typical AIX shared libraries.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 else
10517 # We preserve .a as extension for shared libraries through AIX4.2
10518 # and later when we are not doing run time linking.
10519 library_names_spec='${libname}${release}.a $libname.a'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 fi
10522 shlibpath_var=LIBPATH
10523 fi
10524 ;;
10525
10526amigaos*)
10527 case $host_cpu in
10528 powerpc)
10529 # Since July 2007 AmigaOS4 officially supports .so libraries.
10530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 ;;
10533 m68k)
10534 library_names_spec='$libname.ixlibrary $libname.a'
10535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10536 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'
10537 ;;
10538 esac
10539 ;;
10540
10541beos*)
10542 library_names_spec='${libname}${shared_ext}'
10543 dynamic_linker="$host_os ld.so"
10544 shlibpath_var=LIBRARY_PATH
10545 ;;
10546
10547bsdi[45]*)
10548 version_type=linux
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10556 # the default ld.so.conf also contains /usr/contrib/lib and
10557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10558 # libtool to hard-code these into programs
10559 ;;
10560
10561cygwin* | mingw* | pw32* | cegcc*)
10562 version_type=windows
10563 shrext_cmds=".dll"
10564 need_version=no
10565 need_lib_prefix=no
10566
10567 case $GCC,$host_os in
10568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10569 library_names_spec='$libname.dll.a'
10570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10571 postinstall_cmds='base_file=`basename \${file}`~
10572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10573 dldir=$destdir/`dirname \$dlpath`~
10574 test -d \$dldir || mkdir -p \$dldir~
10575 $install_prog $dir/$dlname \$dldir/$dlname~
10576 chmod a+x \$dldir/$dlname~
10577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10579 fi'
10580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10582 $RM \$dlpath'
10583 shlibpath_overrides_runpath=yes
10584
10585 case $host_os in
10586 cygwin*)
10587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589
10590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10591 ;;
10592 mingw* | cegcc*)
10593 # MinGW DLLs use traditional 'lib' prefix
10594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10595 ;;
10596 pw32*)
10597 # pw32 DLLs use 'pw' prefix rather than 'lib'
10598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 ;;
10600 esac
10601 ;;
10602
10603 *)
10604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10605 ;;
10606 esac
10607 dynamic_linker='Win32 ld.exe'
10608 # FIXME: first we should search . and the directory the executable is in
10609 shlibpath_var=PATH
10610 ;;
10611
10612darwin* | rhapsody*)
10613 dynamic_linker="$host_os dyld"
10614 version_type=darwin
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10618 soname_spec='${libname}${release}${major}$shared_ext'
10619 shlibpath_overrides_runpath=yes
10620 shlibpath_var=DYLD_LIBRARY_PATH
10621 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10622
10623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10625 ;;
10626
10627dgux*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 ;;
10635
10636freebsd* | dragonfly*)
10637 # DragonFly does not have aout. When/if they implement a new
10638 # versioning mechanism, adjust this.
10639 if test -x /usr/bin/objformat; then
10640 objformat=`/usr/bin/objformat`
10641 else
10642 case $host_os in
10643 freebsd[23].*) objformat=aout ;;
10644 *) objformat=elf ;;
10645 esac
10646 fi
10647 version_type=freebsd-$objformat
10648 case $version_type in
10649 freebsd-elf*)
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651 need_version=no
10652 need_lib_prefix=no
10653 ;;
10654 freebsd-*)
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10656 need_version=yes
10657 ;;
10658 esac
10659 shlibpath_var=LD_LIBRARY_PATH
10660 case $host_os in
10661 freebsd2.*)
10662 shlibpath_overrides_runpath=yes
10663 ;;
10664 freebsd3.[01]* | freebsdelf3.[01]*)
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 ;;
10668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10670 shlibpath_overrides_runpath=no
10671 hardcode_into_libs=yes
10672 ;;
10673 *) # from 4.6 on, and DragonFly
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 ;;
10677 esac
10678 ;;
10679
10680haiku*)
10681 version_type=linux
10682 need_lib_prefix=no
10683 need_version=no
10684 dynamic_linker="$host_os runtime_loader"
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10689 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10690 hardcode_into_libs=yes
10691 ;;
10692
10693hpux9* | hpux10* | hpux11*)
10694 # Give a soname corresponding to the major version so that dld.sl refuses to
10695 # link against other versions.
10696 version_type=sunos
10697 need_lib_prefix=no
10698 need_version=no
10699 case $host_cpu in
10700 ia64*)
10701 shrext_cmds='.so'
10702 hardcode_into_libs=yes
10703 dynamic_linker="$host_os dld.so"
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 if test "X$HPUX_IA64_MODE" = X32; then
10709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10710 else
10711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10712 fi
10713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10714 ;;
10715 hppa*64*)
10716 shrext_cmds='.sl'
10717 hardcode_into_libs=yes
10718 dynamic_linker="$host_os dld.sl"
10719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10725 ;;
10726 *)
10727 shrext_cmds='.sl'
10728 dynamic_linker="$host_os dld.sl"
10729 shlibpath_var=SHLIB_PATH
10730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 ;;
10734 esac
10735 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10736 postinstall_cmds='chmod 555 $lib'
10737 # or fails outright, so override atomically:
10738 install_override_mode=555
10739 ;;
10740
10741interix[3-9]*)
10742 version_type=linux
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=no
10750 hardcode_into_libs=yes
10751 ;;
10752
10753irix5* | irix6* | nonstopux*)
10754 case $host_os in
10755 nonstopux*) version_type=nonstopux ;;
10756 *)
10757 if test "$lt_cv_prog_gnu_ld" = yes; then
10758 version_type=linux
10759 else
10760 version_type=irix
10761 fi ;;
10762 esac
10763 need_lib_prefix=no
10764 need_version=no
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10767 case $host_os in
10768 irix5* | nonstopux*)
10769 libsuff= shlibsuff=
10770 ;;
10771 *)
10772 case $LD in # libtool.m4 will add one of these switches to LD
10773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10774 libsuff= shlibsuff= libmagic=32-bit;;
10775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10776 libsuff=32 shlibsuff=N32 libmagic=N32;;
10777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10779 *) libsuff= shlibsuff= libmagic=never-match;;
10780 esac
10781 ;;
10782 esac
10783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10784 shlibpath_overrides_runpath=no
10785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10787 hardcode_into_libs=yes
10788 ;;
10789
10790# No shared lib support for Linux oldld, aout, or coff.
10791linux*oldld* | linux*aout* | linux*coff*)
10792 dynamic_linker=no
10793 ;;
10794
10795# This must be Linux ELF.
10796linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10797 version_type=linux
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=no
10805
10806 # Some binutils ld are patched to set DT_RUNPATH
10807 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809else
10810 lt_cv_shlibpath_overrides_runpath=no
10811 save_LDFLAGS=$LDFLAGS
10812 save_libdir=$libdir
10813 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10814 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h. */
10817
10818int
10819main ()
10820{
10821
10822 ;
10823 return 0;
10824}
10825_ACEOF
10826if ac_fn_c_try_link "$LINENO"; then :
10827 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10828 lt_cv_shlibpath_overrides_runpath=yes
10829fi
10830fi
10831rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LDFLAGS=$save_LDFLAGS
10834 libdir=$save_libdir
10835
10836fi
10837
10838 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10839
10840 # This implies no fast_install, which is unacceptable.
10841 # Some rework will be needed to allow for fast_install
10842 # before this can be enabled.
10843 hardcode_into_libs=yes
10844
10845 # Append ld.so.conf contents to the search path
10846 if test -f /etc/ld.so.conf; then
10847 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' ' '`
10848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10849 fi
10850
10851 # We used to test for /lib/ld.so.1 and disable shared libraries on
10852 # powerpc, because MkLinux only supported shared libraries with the
10853 # GNU dynamic linker. Since this was broken with cross compilers,
10854 # most powerpc-linux boxes support dynamic linking these days and
10855 # people can always --disable-shared, the test was removed, and we
10856 # assume the GNU/Linux dynamic linker is in use.
10857 dynamic_linker='GNU/Linux ld.so'
10858 ;;
10859
10860netbsd*)
10861 version_type=sunos
10862 need_lib_prefix=no
10863 need_version=no
10864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10867 dynamic_linker='NetBSD (a.out) ld.so'
10868 else
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 dynamic_linker='NetBSD ld.elf_so'
10872 fi
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 hardcode_into_libs=yes
10876 ;;
10877
10878newsos6)
10879 version_type=linux
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 ;;
10884
10885*nto* | *qnx*)
10886 version_type=qnx
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10894 dynamic_linker='ldqnx.so'
10895 ;;
10896
10897openbsd*)
10898 version_type=sunos
10899 sys_lib_dlsearch_path_spec="/usr/lib"
10900 need_lib_prefix=no
10901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10902 case $host_os in
10903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10904 *) need_version=no ;;
10905 esac
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10910 case $host_os in
10911 openbsd2.[89] | openbsd2.[89].*)
10912 shlibpath_overrides_runpath=no
10913 ;;
10914 *)
10915 shlibpath_overrides_runpath=yes
10916 ;;
10917 esac
10918 else
10919 shlibpath_overrides_runpath=yes
10920 fi
10921 ;;
10922
10923os2*)
10924 libname_spec='$name'
10925 shrext_cmds=".dll"
10926 need_lib_prefix=no
10927 library_names_spec='$libname${shared_ext} $libname.a'
10928 dynamic_linker='OS/2 ld.exe'
10929 shlibpath_var=LIBPATH
10930 ;;
10931
10932osf3* | osf4* | osf5*)
10933 version_type=osf
10934 need_lib_prefix=no
10935 need_version=no
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10941 ;;
10942
10943rdos*)
10944 dynamic_linker=no
10945 ;;
10946
10947solaris*)
10948 version_type=linux
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10955 hardcode_into_libs=yes
10956 # ldd complains unless libraries are executable
10957 postinstall_cmds='chmod +x $lib'
10958 ;;
10959
10960sunos4*)
10961 version_type=sunos
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 if test "$with_gnu_ld" = yes; then
10967 need_lib_prefix=no
10968 fi
10969 need_version=yes
10970 ;;
10971
10972sysv4 | sysv4.3*)
10973 version_type=linux
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 case $host_vendor in
10978 sni)
10979 shlibpath_overrides_runpath=no
10980 need_lib_prefix=no
10981 runpath_var=LD_RUN_PATH
10982 ;;
10983 siemens)
10984 need_lib_prefix=no
10985 ;;
10986 motorola)
10987 need_lib_prefix=no
10988 need_version=no
10989 shlibpath_overrides_runpath=no
10990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10991 ;;
10992 esac
10993 ;;
10994
10995sysv4*MP*)
10996 if test -d /usr/nec ;then
10997 version_type=linux
10998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10999 soname_spec='$libname${shared_ext}.$major'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 fi
11002 ;;
11003
11004sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11005 version_type=freebsd-elf
11006 need_lib_prefix=no
11007 need_version=no
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 hardcode_into_libs=yes
11013 if test "$with_gnu_ld" = yes; then
11014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11015 else
11016 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11017 case $host_os in
11018 sco3.2v5*)
11019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11020 ;;
11021 esac
11022 fi
11023 sys_lib_dlsearch_path_spec='/usr/lib'
11024 ;;
11025
11026tpf*)
11027 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11028 version_type=linux
11029 need_lib_prefix=no
11030 need_version=no
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 ;;
11036
11037uts4*)
11038 version_type=linux
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 ;;
11043
11044*)
11045 dynamic_linker=no
11046 ;;
11047esac
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11049$as_echo "$dynamic_linker" >&6; }
11050test "$dynamic_linker" = no && can_build_shared=no
11051
11052variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11053if test "$GCC" = yes; then
11054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11055fi
11056
11057if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11058 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11059fi
11060if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11061 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11062fi
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11156$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11157hardcode_action=
11158if test -n "$hardcode_libdir_flag_spec" ||
11159 test -n "$runpath_var" ||
11160 test "X$hardcode_automatic" = "Xyes" ; then
11161
11162 # We can hardcode non-existent directories.
11163 if test "$hardcode_direct" != no &&
11164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11165 # have to relink, otherwise we might link with an installed library
11166 # when we should be linking with a yet-to-be-installed one
11167 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11168 test "$hardcode_minus_L" != no; then
11169 # Linking always hardcodes the temporary library directory.
11170 hardcode_action=relink
11171 else
11172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11173 hardcode_action=immediate
11174 fi
11175else
11176 # We cannot hardcode anything, or else we can only hardcode existing
11177 # directories.
11178 hardcode_action=unsupported
11179fi
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11181$as_echo "$hardcode_action" >&6; }
11182
11183if test "$hardcode_action" = relink ||
11184 test "$inherit_rpath" = yes; then
11185 # Fast installation is not supported
11186 enable_fast_install=no
11187elif test "$shlibpath_overrides_runpath" = yes ||
11188 test "$enable_shared" = no; then
11189 # Fast installation is not necessary
11190 enable_fast_install=needless
11191fi
11192
11193
11194
11195
11196
11197
11198 if test "x$enable_dlopen" != xyes; then
11199 enable_dlopen=unknown
11200 enable_dlopen_self=unknown
11201 enable_dlopen_self_static=unknown
11202else
11203 lt_cv_dlopen=no
11204 lt_cv_dlopen_libs=
11205
11206 case $host_os in
11207 beos*)
11208 lt_cv_dlopen="load_add_on"
11209 lt_cv_dlopen_libs=
11210 lt_cv_dlopen_self=yes
11211 ;;
11212
11213 mingw* | pw32* | cegcc*)
11214 lt_cv_dlopen="LoadLibrary"
11215 lt_cv_dlopen_libs=
11216 ;;
11217
11218 cygwin*)
11219 lt_cv_dlopen="dlopen"
11220 lt_cv_dlopen_libs=
11221 ;;
11222
11223 darwin*)
11224 # if libdl is installed we need to link against it
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11226$as_echo_n "checking for dlopen in -ldl... " >&6; }
11227if ${ac_cv_lib_dl_dlopen+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229else
11230 ac_check_lib_save_LIBS=$LIBS
11231LIBS="-ldl $LIBS"
11232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233/* end confdefs.h. */
11234
11235/* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238#ifdef __cplusplus
11239extern "C"
11240#endif
11241char dlopen ();
11242int
11243main ()
11244{
11245return dlopen ();
11246 ;
11247 return 0;
11248}
11249_ACEOF
11250if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_dl_dlopen=yes
11252else
11253 ac_cv_lib_dl_dlopen=no
11254fi
11255rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257LIBS=$ac_check_lib_save_LIBS
11258fi
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11260$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11261if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11263else
11264
11265 lt_cv_dlopen="dyld"
11266 lt_cv_dlopen_libs=
11267 lt_cv_dlopen_self=yes
11268
11269fi
11270
11271 ;;
11272
11273 *)
11274 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11275if test "x$ac_cv_func_shl_load" = xyes; then :
11276 lt_cv_dlopen="shl_load"
11277else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11279$as_echo_n "checking for shl_load in -ldld... " >&6; }
11280if ${ac_cv_lib_dld_shl_load+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282else
11283 ac_check_lib_save_LIBS=$LIBS
11284LIBS="-ldld $LIBS"
11285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287
11288/* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291#ifdef __cplusplus
11292extern "C"
11293#endif
11294char shl_load ();
11295int
11296main ()
11297{
11298return shl_load ();
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_dld_shl_load=yes
11305else
11306 ac_cv_lib_dld_shl_load=no
11307fi
11308rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310LIBS=$ac_check_lib_save_LIBS
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11313$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11314if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11315 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11316else
11317 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11318if test "x$ac_cv_func_dlopen" = xyes; then :
11319 lt_cv_dlopen="dlopen"
11320else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11322$as_echo_n "checking for dlopen in -ldl... " >&6; }
11323if ${ac_cv_lib_dl_dlopen+:} false; then :
11324 $as_echo_n "(cached) " >&6
11325else
11326 ac_check_lib_save_LIBS=$LIBS
11327LIBS="-ldl $LIBS"
11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h. */
11330
11331/* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334#ifdef __cplusplus
11335extern "C"
11336#endif
11337char dlopen ();
11338int
11339main ()
11340{
11341return dlopen ();
11342 ;
11343 return 0;
11344}
11345_ACEOF
11346if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_lib_dl_dlopen=yes
11348else
11349 ac_cv_lib_dl_dlopen=no
11350fi
11351rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353LIBS=$ac_check_lib_save_LIBS
11354fi
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11356$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11357if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11359else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11361$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11362if ${ac_cv_lib_svld_dlopen+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364else
11365 ac_check_lib_save_LIBS=$LIBS
11366LIBS="-lsvld $LIBS"
11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368/* end confdefs.h. */
11369
11370/* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373#ifdef __cplusplus
11374extern "C"
11375#endif
11376char dlopen ();
11377int
11378main ()
11379{
11380return dlopen ();
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385if ac_fn_c_try_link "$LINENO"; then :
11386 ac_cv_lib_svld_dlopen=yes
11387else
11388 ac_cv_lib_svld_dlopen=no
11389fi
11390rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392LIBS=$ac_check_lib_save_LIBS
11393fi
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11395$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11396if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11398else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11400$as_echo_n "checking for dld_link in -ldld... " >&6; }
11401if ${ac_cv_lib_dld_dld_link+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403else
11404 ac_check_lib_save_LIBS=$LIBS
11405LIBS="-ldld $LIBS"
11406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h. */
11408
11409/* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11412#ifdef __cplusplus
11413extern "C"
11414#endif
11415char dld_link ();
11416int
11417main ()
11418{
11419return dld_link ();
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424if ac_fn_c_try_link "$LINENO"; then :
11425 ac_cv_lib_dld_dld_link=yes
11426else
11427 ac_cv_lib_dld_dld_link=no
11428fi
11429rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11431LIBS=$ac_check_lib_save_LIBS
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11434$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11435if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11436 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11437fi
11438
11439
11440fi
11441
11442
11443fi
11444
11445
11446fi
11447
11448
11449fi
11450
11451
11452fi
11453
11454 ;;
11455 esac
11456
11457 if test "x$lt_cv_dlopen" != xno; then
11458 enable_dlopen=yes
11459 else
11460 enable_dlopen=no
11461 fi
11462
11463 case $lt_cv_dlopen in
11464 dlopen)
11465 save_CPPFLAGS="$CPPFLAGS"
11466 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11467
11468 save_LDFLAGS="$LDFLAGS"
11469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11470
11471 save_LIBS="$LIBS"
11472 LIBS="$lt_cv_dlopen_libs $LIBS"
11473
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11475$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11476if ${lt_cv_dlopen_self+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478else
11479 if test "$cross_compiling" = yes; then :
11480 lt_cv_dlopen_self=cross
11481else
11482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11483 lt_status=$lt_dlunknown
11484 cat > conftest.$ac_ext <<_LT_EOF
0fcd58d8 11485#line 11485 "configure"
19e559f1
WP
11486#include "confdefs.h"
11487
11488#if HAVE_DLFCN_H
11489#include <dlfcn.h>
11490#endif
11491
11492#include <stdio.h>
11493
11494#ifdef RTLD_GLOBAL
11495# define LT_DLGLOBAL RTLD_GLOBAL
11496#else
11497# ifdef DL_GLOBAL
11498# define LT_DLGLOBAL DL_GLOBAL
11499# else
11500# define LT_DLGLOBAL 0
11501# endif
11502#endif
11503
11504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11505 find out it does not work in some platform. */
11506#ifndef LT_DLLAZY_OR_NOW
11507# ifdef RTLD_LAZY
11508# define LT_DLLAZY_OR_NOW RTLD_LAZY
11509# else
11510# ifdef DL_LAZY
11511# define LT_DLLAZY_OR_NOW DL_LAZY
11512# else
11513# ifdef RTLD_NOW
11514# define LT_DLLAZY_OR_NOW RTLD_NOW
11515# else
11516# ifdef DL_NOW
11517# define LT_DLLAZY_OR_NOW DL_NOW
11518# else
11519# define LT_DLLAZY_OR_NOW 0
11520# endif
11521# endif
11522# endif
11523# endif
11524#endif
11525
11526/* When -fvisbility=hidden is used, assume the code has been annotated
11527 correspondingly for the symbols needed. */
11528#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11529void fnord () __attribute__((visibility("default")));
11530#endif
11531
11532void fnord () { int i=42; }
11533int main ()
11534{
11535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11536 int status = $lt_dlunknown;
11537
11538 if (self)
11539 {
11540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11541 else
11542 {
11543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11544 else puts (dlerror ());
11545 }
11546 /* dlclose (self); */
11547 }
11548 else
11549 puts (dlerror ());
11550
11551 return status;
11552}
11553_LT_EOF
11554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11555 (eval $ac_link) 2>&5
11556 ac_status=$?
11557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11558 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11559 (./conftest; exit; ) >&5 2>/dev/null
11560 lt_status=$?
11561 case x$lt_status in
11562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11564 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11565 esac
11566 else :
11567 # compilation failed
11568 lt_cv_dlopen_self=no
11569 fi
11570fi
11571rm -fr conftest*
11572
11573
11574fi
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11576$as_echo "$lt_cv_dlopen_self" >&6; }
11577
11578 if test "x$lt_cv_dlopen_self" = xyes; then
11579 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11581$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11582if ${lt_cv_dlopen_self_static+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584else
11585 if test "$cross_compiling" = yes; then :
11586 lt_cv_dlopen_self_static=cross
11587else
11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589 lt_status=$lt_dlunknown
11590 cat > conftest.$ac_ext <<_LT_EOF
0fcd58d8 11591#line 11591 "configure"
19e559f1
WP
11592#include "confdefs.h"
11593
11594#if HAVE_DLFCN_H
11595#include <dlfcn.h>
11596#endif
11597
11598#include <stdio.h>
11599
11600#ifdef RTLD_GLOBAL
11601# define LT_DLGLOBAL RTLD_GLOBAL
11602#else
11603# ifdef DL_GLOBAL
11604# define LT_DLGLOBAL DL_GLOBAL
11605# else
11606# define LT_DLGLOBAL 0
11607# endif
11608#endif
11609
11610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612#ifndef LT_DLLAZY_OR_NOW
11613# ifdef RTLD_LAZY
11614# define LT_DLLAZY_OR_NOW RTLD_LAZY
11615# else
11616# ifdef DL_LAZY
11617# define LT_DLLAZY_OR_NOW DL_LAZY
11618# else
11619# ifdef RTLD_NOW
11620# define LT_DLLAZY_OR_NOW RTLD_NOW
11621# else
11622# ifdef DL_NOW
11623# define LT_DLLAZY_OR_NOW DL_NOW
11624# else
11625# define LT_DLLAZY_OR_NOW 0
11626# endif
11627# endif
11628# endif
11629# endif
11630#endif
11631
11632/* When -fvisbility=hidden is used, assume the code has been annotated
11633 correspondingly for the symbols needed. */
11634#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11635void fnord () __attribute__((visibility("default")));
11636#endif
11637
11638void fnord () { int i=42; }
11639int main ()
11640{
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11643
11644 if (self)
11645 {
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else
11648 {
11649 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11650 else puts (dlerror ());
11651 }
11652 /* dlclose (self); */
11653 }
11654 else
11655 puts (dlerror ());
11656
11657 return status;
11658}
11659_LT_EOF
11660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11661 (eval $ac_link) 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11665 (./conftest; exit; ) >&5 2>/dev/null
11666 lt_status=$?
11667 case x$lt_status in
11668 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11669 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11670 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11671 esac
11672 else :
11673 # compilation failed
11674 lt_cv_dlopen_self_static=no
11675 fi
11676fi
11677rm -fr conftest*
11678
11679
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11682$as_echo "$lt_cv_dlopen_self_static" >&6; }
11683 fi
11684
11685 CPPFLAGS="$save_CPPFLAGS"
11686 LDFLAGS="$save_LDFLAGS"
11687 LIBS="$save_LIBS"
11688 ;;
11689 esac
11690
11691 case $lt_cv_dlopen_self in
11692 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11693 *) enable_dlopen_self=unknown ;;
11694 esac
11695
11696 case $lt_cv_dlopen_self_static in
11697 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11698 *) enable_dlopen_self_static=unknown ;;
11699 esac
11700fi
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718striplib=
11719old_striplib=
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11721$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11722if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11723 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11724 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726$as_echo "yes" >&6; }
11727else
11728# FIXME - insert some real tests, host_os isn't really good enough
11729 case $host_os in
11730 darwin*)
11731 if test -n "$STRIP" ; then
11732 striplib="$STRIP -x"
11733 old_striplib="$STRIP -S"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735$as_echo "yes" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739 fi
11740 ;;
11741 *)
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
11744 ;;
11745 esac
11746fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759 # Report which library types will actually be built
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11761$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11763$as_echo "$can_build_shared" >&6; }
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11766$as_echo_n "checking whether to build shared libraries... " >&6; }
11767 test "$can_build_shared" = "no" && enable_shared=no
11768
11769 # On AIX, shared libraries and static libraries use the same namespace, and
11770 # are all built from PIC.
11771 case $host_os in
11772 aix3*)
11773 test "$enable_shared" = yes && enable_static=no
11774 if test -n "$RANLIB"; then
11775 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11776 postinstall_cmds='$RANLIB $lib'
11777 fi
11778 ;;
11779
11780 aix[4-9]*)
11781 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11782 test "$enable_shared" = yes && enable_static=no
11783 fi
11784 ;;
11785 esac
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11787$as_echo "$enable_shared" >&6; }
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11790$as_echo_n "checking whether to build static libraries... " >&6; }
11791 # Make sure either enable_shared or enable_static is yes.
11792 test "$enable_shared" = yes || enable_static=yes
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11794$as_echo "$enable_static" >&6; }
11795
11796
11797
11798
11799fi
11800ac_ext=c
11801ac_cpp='$CPP $CPPFLAGS'
11802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805
11806CC="$lt_save_CC"
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 ac_config_commands="$ac_config_commands libtool"
11821
11822
11823
11824
11825# Only expand once:
11826
11827
11828# Check whether --enable-largefile was given.
11829if test "${enable_largefile+set}" = set; then :
11830 enableval=$enable_largefile;
11831fi
11832
11833if test "$enable_largefile" != no; then
11834
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11836$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11837if ${ac_cv_sys_largefile_CC+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839else
11840 ac_cv_sys_largefile_CC=no
11841 if test "$GCC" != yes; then
11842 ac_save_CC=$CC
11843 while :; do
11844 # IRIX 6.2 and later do not support large files by default,
11845 # so use the C compiler's -n32 option if that helps.
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h. */
11848#include <sys/types.h>
11849 /* Check that off_t can represent 2**63 - 1 correctly.
11850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11851 since some C++ compilers masquerading as C compilers
11852 incorrectly reject 9223372036854775807. */
11853#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11855 && LARGE_OFF_T % 2147483647 == 1)
11856 ? 1 : -1];
11857int
11858main ()
11859{
11860
11861 ;
11862 return 0;
11863}
11864_ACEOF
11865 if ac_fn_c_try_compile "$LINENO"; then :
11866 break
11867fi
11868rm -f core conftest.err conftest.$ac_objext
11869 CC="$CC -n32"
11870 if ac_fn_c_try_compile "$LINENO"; then :
11871 ac_cv_sys_largefile_CC=' -n32'; break
11872fi
11873rm -f core conftest.err conftest.$ac_objext
11874 break
11875 done
11876 CC=$ac_save_CC
11877 rm -f conftest.$ac_ext
11878 fi
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11881$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11882 if test "$ac_cv_sys_largefile_CC" != no; then
11883 CC=$CC$ac_cv_sys_largefile_CC
11884 fi
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11887$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11888if ${ac_cv_sys_file_offset_bits+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890else
11891 while :; do
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h. */
11894#include <sys/types.h>
11895 /* Check that off_t can represent 2**63 - 1 correctly.
11896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11897 since some C++ compilers masquerading as C compilers
11898 incorrectly reject 9223372036854775807. */
11899#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11901 && LARGE_OFF_T % 2147483647 == 1)
11902 ? 1 : -1];
11903int
11904main ()
11905{
11906
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911if ac_fn_c_try_compile "$LINENO"; then :
11912 ac_cv_sys_file_offset_bits=no; break
11913fi
11914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916/* end confdefs.h. */
11917#define _FILE_OFFSET_BITS 64
11918#include <sys/types.h>
11919 /* Check that off_t can represent 2**63 - 1 correctly.
11920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11921 since some C++ compilers masquerading as C compilers
11922 incorrectly reject 9223372036854775807. */
11923#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11925 && LARGE_OFF_T % 2147483647 == 1)
11926 ? 1 : -1];
11927int
11928main ()
11929{
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_cv_sys_file_offset_bits=64; break
11937fi
11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 ac_cv_sys_file_offset_bits=unknown
11940 break
11941done
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11944$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11945case $ac_cv_sys_file_offset_bits in #(
11946 no | unknown) ;;
11947 *)
11948cat >>confdefs.h <<_ACEOF
11949#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11950_ACEOF
11951;;
11952esac
11953rm -rf conftest*
11954 if test $ac_cv_sys_file_offset_bits = unknown; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11956$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11957if ${ac_cv_sys_large_files+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959else
11960 while :; do
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h. */
11963#include <sys/types.h>
11964 /* Check that off_t can represent 2**63 - 1 correctly.
11965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11966 since some C++ compilers masquerading as C compilers
11967 incorrectly reject 9223372036854775807. */
11968#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11970 && LARGE_OFF_T % 2147483647 == 1)
11971 ? 1 : -1];
11972int
11973main ()
11974{
11975
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_compile "$LINENO"; then :
11981 ac_cv_sys_large_files=no; break
11982fi
11983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h. */
11986#define _LARGE_FILES 1
11987#include <sys/types.h>
11988 /* Check that off_t can represent 2**63 - 1 correctly.
11989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11990 since some C++ compilers masquerading as C compilers
11991 incorrectly reject 9223372036854775807. */
11992#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11994 && LARGE_OFF_T % 2147483647 == 1)
11995 ? 1 : -1];
11996int
11997main ()
11998{
11999
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004if ac_fn_c_try_compile "$LINENO"; then :
12005 ac_cv_sys_large_files=1; break
12006fi
12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 ac_cv_sys_large_files=unknown
12009 break
12010done
12011fi
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12013$as_echo "$ac_cv_sys_large_files" >&6; }
12014case $ac_cv_sys_large_files in #(
12015 no | unknown) ;;
12016 *)
12017cat >>confdefs.h <<_ACEOF
12018#define _LARGE_FILES $ac_cv_sys_large_files
12019_ACEOF
12020;;
12021esac
12022rm -rf conftest*
12023 fi
12024
12025
12026fi
12027
12028
12029MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
12030for ac_prog in aclocal
12031do
12032 # Extract the first word of "$ac_prog", so it can be a program name with args.
12033set dummy $ac_prog; ac_word=$2
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035$as_echo_n "checking for $ac_word... " >&6; }
12036if ${ac_cv_prog_ACLOCAL+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038else
12039 if test -n "$ACLOCAL"; then
12040 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
12041else
12042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_ACLOCAL="$ac_prog"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12052 fi
12053done
12054 done
12055IFS=$as_save_IFS
12056
12057fi
12058fi
12059ACLOCAL=$ac_cv_prog_ACLOCAL
12060if test -n "$ACLOCAL"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
12062$as_echo "$ACLOCAL" >&6; }
12063else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066fi
12067
12068
12069 test -n "$ACLOCAL" && break
12070done
12071test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
12072
12073for ac_prog in autoconf
12074do
12075 # Extract the first word of "$ac_prog", so it can be a program name with args.
12076set dummy $ac_prog; ac_word=$2
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if ${ac_cv_prog_AUTOCONF+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081else
12082 if test -n "$AUTOCONF"; then
12083 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092 ac_cv_prog_AUTOCONF="$ac_prog"
12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 break 2
12095 fi
12096done
12097 done
12098IFS=$as_save_IFS
12099
12100fi
12101fi
12102AUTOCONF=$ac_cv_prog_AUTOCONF
12103if test -n "$AUTOCONF"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
12105$as_echo "$AUTOCONF" >&6; }
12106else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
12109fi
12110
12111
12112 test -n "$AUTOCONF" && break
12113done
12114test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
12115
12116for ac_prog in autoheader
12117do
12118 # Extract the first word of "$ac_prog", so it can be a program name with args.
12119set dummy $ac_prog; ac_word=$2
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121$as_echo_n "checking for $ac_word... " >&6; }
12122if ${ac_cv_prog_AUTOHEADER+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124else
12125 if test -n "$AUTOHEADER"; then
12126 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
12127else
12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $PATH
12130do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135 ac_cv_prog_AUTOHEADER="$ac_prog"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12138 fi
12139done
12140 done
12141IFS=$as_save_IFS
12142
12143fi
12144fi
12145AUTOHEADER=$ac_cv_prog_AUTOHEADER
12146if test -n "$AUTOHEADER"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
12148$as_echo "$AUTOHEADER" >&6; }
12149else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
12152fi
12153
12154
12155 test -n "$AUTOHEADER" && break
12156done
12157test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
12158
12159
12160
12161ac_ext=c
12162ac_cpp='$CPP $CPPFLAGS'
12163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166
12167ac_libsframe_warn_cflags=
12168save_CFLAGS="$CFLAGS"
12169for real_option in -Wall -Wextra -Wwrite-strings \
12170 -Wmissing-format-attribute \
12171 -Wstrict-prototypes -Wmissing-prototypes; do
12172 # Do the check with the no- prefix removed since gcc silently
12173 # accepts any -Wno-* option on purpose
12174 case $real_option in
12175 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12176 *) option=$real_option ;;
12177 esac
12178 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12181$as_echo_n "checking whether $CC supports $option... " >&6; }
12182if eval \${$as_acx_Woption+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184else
12185 CFLAGS="$option"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h. */
12188
12189int
12190main ()
12191{
12192
12193 ;
12194 return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_compile "$LINENO"; then :
12198 eval "$as_acx_Woption=yes"
12199else
12200 eval "$as_acx_Woption=no"
12201fi
12202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203
12204fi
12205eval ac_res=\$$as_acx_Woption
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12207$as_echo "$ac_res" >&6; }
12208 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12209 ac_libsframe_warn_cflags="$ac_libsframe_warn_cflags${ac_libsframe_warn_cflags:+ }$real_option"
12210fi
12211 done
12212CFLAGS="$save_CFLAGS"
12213ac_ext=c
12214ac_cpp='$CPP $CPPFLAGS'
12215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217ac_compiler_gnu=$ac_cv_c_compiler_gnu
12218
12219
12220
12221
12222
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for incompatibility between DejaGnu and GCC" >&5
12224$as_echo_n "checking for incompatibility between DejaGnu and GCC... " >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dejagnu_compat" >&5
12226$as_echo "$ac_cv_dejagnu_compat" >&6; }
12227
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
12230#include <dejagnu.h>
12231int
12232main ()
12233{
12234pass ("test foo");
12235 return 0;
12236 ;
12237 return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"; then :
12241 ac_cv_dejagnu_compat=yes
12242else
12243 ac_cv_dejagnu_compat=no
12244fi
12245rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dejagnu_compat" >&5
12248$as_echo "$ac_cv_dejagnu_compat" >&6; }
12249
12250 if test "$ac_cv_dejagnu_compat}" = no ; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: detected incompatibility between dejagnu version and gcc" >&5
12252$as_echo "detected incompatibility between dejagnu version and gcc" >&6; }
12253 fi
12254
12255 if test "x$ac_cv_dejagnu_compat" = "xyes"; then
12256 HAVE_COMPAT_DEJAGNU_TRUE=
12257 HAVE_COMPAT_DEJAGNU_FALSE='#'
12258else
12259 HAVE_COMPAT_DEJAGNU_TRUE='#'
12260 HAVE_COMPAT_DEJAGNU_FALSE=
12261fi
12262
12263
12264COMPAT_DEJAGNU=$ac_cv_dejagnu_compat
12265
12266
c1c57352
IB
12267build_info=
12268for ac_prog in makeinfo
12269do
12270 # Extract the first word of "$ac_prog", so it can be a program name with args.
12271set dummy $ac_prog; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if ${ac_cv_prog_MAKEINFO+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$MAKEINFO"; then
12278 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_MAKEINFO="$ac_prog"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297MAKEINFO=$ac_cv_prog_MAKEINFO
12298if test -n "$MAKEINFO"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12300$as_echo "$MAKEINFO" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307 test -n "$MAKEINFO" && break
12308done
12309test -n "$MAKEINFO" || MAKEINFO="makeinfo"
12310
12311if test "x$MAKEINFO" = "x"; then
12312 MAKEINFO="@echo makeinfo missing; true"
12313 build_info=
12314else
12315 BUILD_INFO=info
12316 case "$MAKEINFO" in
12317 */missing\ makeinfo*)
12318 build_info=
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12320*** Makeinfo is missing. Info documentation will not be built." >&5
12321$as_echo "$as_me: WARNING:
12322*** Makeinfo is missing. Info documentation will not be built." >&2;}
12323 ;;
12324 *)
12325 build_info=yes
12326 ;;
12327 esac
12328fi
12329 if test "${build_info}" = yes; then
12330 BUILD_INFO_TRUE=
12331 BUILD_INFO_FALSE='#'
12332else
12333 BUILD_INFO_TRUE='#'
12334 BUILD_INFO_FALSE=
12335fi
12336
12337
19e559f1
WP
12338
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12340$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12341 # Check whether --enable-maintainer-mode was given.
12342if test "${enable_maintainer_mode+set}" = set; then :
12343 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12344else
12345 USE_MAINTAINER_MODE=no
12346fi
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12349$as_echo "$USE_MAINTAINER_MODE" >&6; }
12350 if test $USE_MAINTAINER_MODE = yes; then
12351 MAINTAINER_MODE_TRUE=
12352 MAINTAINER_MODE_FALSE='#'
12353else
12354 MAINTAINER_MODE_TRUE='#'
12355 MAINTAINER_MODE_FALSE=
12356fi
12357
12358 MAINT=$MAINTAINER_MODE_TRUE
12359
12360
12361 case ${build_alias} in
12362 "") build_noncanonical=${build} ;;
12363 *) build_noncanonical=${build_alias} ;;
12364esac
12365
12366 case ${host_alias} in
12367 "") host_noncanonical=${build_noncanonical} ;;
12368 *) host_noncanonical=${host_alias} ;;
12369esac
12370
12371 case ${target_alias} in
12372 "") target_noncanonical=${host_noncanonical} ;;
12373 *) target_noncanonical=${target_alias} ;;
12374esac
12375
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12377$as_echo_n "checking whether to install libbfd... " >&6; }
12378 # Check whether --enable-install-libbfd was given.
12379if test "${enable_install_libbfd+set}" = set; then :
12380 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12381else
12382 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12383 install_libbfd_p=yes
12384 else
12385 install_libbfd_p=no
12386 fi
12387fi
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12390$as_echo "$install_libbfd_p" >&6; }
12391 if test $install_libbfd_p = yes; then
12392 INSTALL_LIBBFD_TRUE=
12393 INSTALL_LIBBFD_FALSE='#'
12394else
12395 INSTALL_LIBBFD_TRUE='#'
12396 INSTALL_LIBBFD_FALSE=
12397fi
12398
12399 # Need _noncanonical variables for this.
12400
12401
12402
12403
12404 # libbfd.a is a host library containing target dependent code
12405 bfdlibdir='$(libdir)'
12406 bfdincludedir='$(includedir)'
12407 if test "${host}" != "${target}"; then
12408 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12409 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12410 fi
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421 for ac_header in $ac_header_list
12422do :
12423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12425"
12426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12427 cat >>confdefs.h <<_ACEOF
12428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12429_ACEOF
12430
12431fi
12432
12433done
12434
12435
12436
12437
12438
12439
12440
12441
12442for ac_func in getpagesize
12443do :
12444 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12445if test "x$ac_cv_func_getpagesize" = xyes; then :
12446 cat >>confdefs.h <<_ACEOF
12447#define HAVE_GETPAGESIZE 1
12448_ACEOF
12449
12450fi
12451done
12452
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12454$as_echo_n "checking for working mmap... " >&6; }
12455if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12456 $as_echo_n "(cached) " >&6
12457else
12458 if test "$cross_compiling" = yes; then :
12459 ac_cv_func_mmap_fixed_mapped=no
12460else
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h. */
12463$ac_includes_default
12464/* malloc might have been renamed as rpl_malloc. */
12465#undef malloc
12466
12467/* Thanks to Mike Haertel and Jim Avera for this test.
12468 Here is a matrix of mmap possibilities:
12469 mmap private not fixed
12470 mmap private fixed at somewhere currently unmapped
12471 mmap private fixed at somewhere already mapped
12472 mmap shared not fixed
12473 mmap shared fixed at somewhere currently unmapped
12474 mmap shared fixed at somewhere already mapped
12475 For private mappings, we should verify that changes cannot be read()
12476 back from the file, nor mmap's back from the file at a different
12477 address. (There have been systems where private was not correctly
12478 implemented like the infamous i386 svr4.0, and systems where the
12479 VM page cache was not coherent with the file system buffer cache
12480 like early versions of FreeBSD and possibly contemporary NetBSD.)
12481 For shared mappings, we should conversely verify that changes get
12482 propagated back to all the places they're supposed to be.
12483
12484 Grep wants private fixed already mapped.
12485 The main things grep needs to know about mmap are:
12486 * does it exist and is it safe to write into the mmap'd area
12487 * how to use it (BSD variants) */
12488
12489#include <fcntl.h>
12490#include <sys/mman.h>
12491
12492#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12493char *malloc ();
12494#endif
12495
12496/* This mess was copied from the GNU getpagesize.h. */
12497#ifndef HAVE_GETPAGESIZE
12498# ifdef _SC_PAGESIZE
12499# define getpagesize() sysconf(_SC_PAGESIZE)
12500# else /* no _SC_PAGESIZE */
12501# ifdef HAVE_SYS_PARAM_H
12502# include <sys/param.h>
12503# ifdef EXEC_PAGESIZE
12504# define getpagesize() EXEC_PAGESIZE
12505# else /* no EXEC_PAGESIZE */
12506# ifdef NBPG
12507# define getpagesize() NBPG * CLSIZE
12508# ifndef CLSIZE
12509# define CLSIZE 1
12510# endif /* no CLSIZE */
12511# else /* no NBPG */
12512# ifdef NBPC
12513# define getpagesize() NBPC
12514# else /* no NBPC */
12515# ifdef PAGESIZE
12516# define getpagesize() PAGESIZE
12517# endif /* PAGESIZE */
12518# endif /* no NBPC */
12519# endif /* no NBPG */
12520# endif /* no EXEC_PAGESIZE */
12521# else /* no HAVE_SYS_PARAM_H */
12522# define getpagesize() 8192 /* punt totally */
12523# endif /* no HAVE_SYS_PARAM_H */
12524# endif /* no _SC_PAGESIZE */
12525
12526#endif /* no HAVE_GETPAGESIZE */
12527
12528int
12529main ()
12530{
12531 char *data, *data2, *data3;
12532 const char *cdata2;
12533 int i, pagesize;
12534 int fd, fd2;
12535
12536 pagesize = getpagesize ();
12537
12538 /* First, make a file with some known garbage in it. */
12539 data = (char *) malloc (pagesize);
12540 if (!data)
12541 return 1;
12542 for (i = 0; i < pagesize; ++i)
12543 *(data + i) = rand ();
12544 umask (0);
12545 fd = creat ("conftest.mmap", 0600);
12546 if (fd < 0)
12547 return 2;
12548 if (write (fd, data, pagesize) != pagesize)
12549 return 3;
12550 close (fd);
12551
12552 /* Next, check that the tail of a page is zero-filled. File must have
12553 non-zero length, otherwise we risk SIGBUS for entire page. */
12554 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12555 if (fd2 < 0)
12556 return 4;
12557 cdata2 = "";
12558 if (write (fd2, cdata2, 1) != 1)
12559 return 5;
12560 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12561 if (data2 == MAP_FAILED)
12562 return 6;
12563 for (i = 0; i < pagesize; ++i)
12564 if (*(data2 + i))
12565 return 7;
12566 close (fd2);
12567 if (munmap (data2, pagesize))
12568 return 8;
12569
12570 /* Next, try to mmap the file at a fixed address which already has
12571 something else allocated at it. If we can, also make sure that
12572 we see the same garbage. */
12573 fd = open ("conftest.mmap", O_RDWR);
12574 if (fd < 0)
12575 return 9;
12576 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12577 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12578 return 10;
12579 for (i = 0; i < pagesize; ++i)
12580 if (*(data + i) != *(data2 + i))
12581 return 11;
12582
12583 /* Finally, make sure that changes to the mapped area do not
12584 percolate back to the file as seen by read(). (This is a bug on
12585 some variants of i386 svr4.0.) */
12586 for (i = 0; i < pagesize; ++i)
12587 *(data2 + i) = *(data2 + i) + 1;
12588 data3 = (char *) malloc (pagesize);
12589 if (!data3)
12590 return 12;
12591 if (read (fd, data3, pagesize) != pagesize)
12592 return 13;
12593 for (i = 0; i < pagesize; ++i)
12594 if (*(data + i) != *(data3 + i))
12595 return 14;
12596 close (fd);
12597 return 0;
12598}
12599_ACEOF
12600if ac_fn_c_try_run "$LINENO"; then :
12601 ac_cv_func_mmap_fixed_mapped=yes
12602else
12603 ac_cv_func_mmap_fixed_mapped=no
12604fi
12605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12606 conftest.$ac_objext conftest.beam conftest.$ac_ext
12607fi
12608
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12611$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12612if test $ac_cv_func_mmap_fixed_mapped = yes; then
12613
12614$as_echo "#define HAVE_MMAP 1" >>confdefs.h
12615
12616fi
12617rm -f conftest.mmap conftest.txt
12618
12619for ac_header in byteswap.h endian.h
12620do :
12621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12622ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12624 cat >>confdefs.h <<_ACEOF
12625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12626_ACEOF
12627
12628fi
12629
12630done
12631
12632
12633ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12634"
12635if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
12636 ac_have_decl=1
12637else
12638 ac_have_decl=0
12639fi
12640
12641cat >>confdefs.h <<_ACEOF
12642#define HAVE_DECL_BSWAP_16 $ac_have_decl
12643_ACEOF
12644ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12645"
12646if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
12647 ac_have_decl=1
12648else
12649 ac_have_decl=0
12650fi
12651
12652cat >>confdefs.h <<_ACEOF
12653#define HAVE_DECL_BSWAP_32 $ac_have_decl
12654_ACEOF
12655ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12656"
12657if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
12658 ac_have_decl=1
12659else
12660 ac_have_decl=0
12661fi
12662
12663cat >>confdefs.h <<_ACEOF
12664#define HAVE_DECL_BSWAP_64 $ac_have_decl
12665_ACEOF
12666
12667
12668ac_config_files="$ac_config_files Makefile"
12669
12670ac_config_headers="$ac_config_headers config.h"
12671
12672cat >confcache <<\_ACEOF
12673# This file is a shell script that caches the results of configure
12674# tests run on this system so they can be shared between configure
12675# scripts and configure runs, see configure's option --config-cache.
12676# It is not useful on other systems. If it contains results you don't
12677# want to keep, you may remove or edit it.
12678#
12679# config.status only pays attention to the cache file if you give it
12680# the --recheck option to rerun configure.
12681#
12682# `ac_cv_env_foo' variables (set or unset) will be overridden when
12683# loading this file, other *unset* `ac_cv_foo' will be assigned the
12684# following values.
12685
12686_ACEOF
12687
12688# The following way of writing the cache mishandles newlines in values,
12689# but we know of no workaround that is simple, portable, and efficient.
12690# So, we kill variables containing newlines.
12691# Ultrix sh set writes to stderr and can't be redirected directly,
12692# and sets the high bit in the cache file unless we assign to the vars.
12693(
12694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12695 eval ac_val=\$$ac_var
12696 case $ac_val in #(
12697 *${as_nl}*)
12698 case $ac_var in #(
12699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12700$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12701 esac
12702 case $ac_var in #(
12703 _ | IFS | as_nl) ;; #(
12704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12705 *) { eval $ac_var=; unset $ac_var;} ;;
12706 esac ;;
12707 esac
12708 done
12709
12710 (set) 2>&1 |
12711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12712 *${as_nl}ac_space=\ *)
12713 # `set' does not quote correctly, so add quotes: double-quote
12714 # substitution turns \\\\ into \\, and sed turns \\ into \.
12715 sed -n \
12716 "s/'/'\\\\''/g;
12717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12718 ;; #(
12719 *)
12720 # `set' quotes correctly as required by POSIX, so do not add quotes.
12721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12722 ;;
12723 esac |
12724 sort
12725) |
12726 sed '
12727 /^ac_cv_env_/b end
12728 t clear
12729 :clear
12730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12731 t end
12732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12733 :end' >>confcache
12734if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12735 if test -w "$cache_file"; then
12736 if test "x$cache_file" != "x/dev/null"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12738$as_echo "$as_me: updating cache $cache_file" >&6;}
12739 if test ! -f "$cache_file" || test -h "$cache_file"; then
12740 cat confcache >"$cache_file"
12741 else
12742 case $cache_file in #(
12743 */* | ?:*)
12744 mv -f confcache "$cache_file"$$ &&
12745 mv -f "$cache_file"$$ "$cache_file" ;; #(
12746 *)
12747 mv -f confcache "$cache_file" ;;
12748 esac
12749 fi
12750 fi
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12753$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12754 fi
12755fi
12756rm -f confcache
12757
12758test "x$prefix" = xNONE && prefix=$ac_default_prefix
12759# Let make expand exec_prefix.
12760test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12761
12762DEFS=-DHAVE_CONFIG_H
12763
12764ac_libobjs=
12765ac_ltlibobjs=
12766U=
12767for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12768 # 1. Remove the extension, and $U if already installed.
12769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12770 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12772 # will be set to the directory where LIBOBJS objects are built.
12773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12775done
12776LIBOBJS=$ac_libobjs
12777
12778LTLIBOBJS=$ac_ltlibobjs
12779
12780
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12782$as_echo_n "checking that generated files are newer than configure... " >&6; }
12783 if test -n "$am_sleep_pid"; then
12784 # Hide warnings about reused PIDs.
12785 wait $am_sleep_pid 2>/dev/null
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12788$as_echo "done" >&6; }
12789if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12790 as_fn_error $? "conditional \"AMDEP\" was never defined.
12791Usually this means the macro was only invoked conditionally." "$LINENO" 5
12792fi
12793if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12794 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12795Usually this means the macro was only invoked conditionally." "$LINENO" 5
12796fi
12797 if test -n "$EXEEXT"; then
12798 am__EXEEXT_TRUE=
12799 am__EXEEXT_FALSE='#'
12800else
12801 am__EXEEXT_TRUE='#'
12802 am__EXEEXT_FALSE=
12803fi
12804
12805if test -z "${HAVE_COMPAT_DEJAGNU_TRUE}" && test -z "${HAVE_COMPAT_DEJAGNU_FALSE}"; then
12806 as_fn_error $? "conditional \"HAVE_COMPAT_DEJAGNU\" was never defined.
12807Usually this means the macro was only invoked conditionally." "$LINENO" 5
12808fi
c1c57352
IB
12809if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12810 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
12811Usually this means the macro was only invoked conditionally." "$LINENO" 5
12812fi
19e559f1
WP
12813if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12814 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12815Usually this means the macro was only invoked conditionally." "$LINENO" 5
12816fi
12817if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12818 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
12819Usually this means the macro was only invoked conditionally." "$LINENO" 5
12820fi
12821
12822: "${CONFIG_STATUS=./config.status}"
12823ac_write_fail=0
12824ac_clean_files_save=$ac_clean_files
12825ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12827$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12828as_write_fail=0
12829cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12830#! $SHELL
12831# Generated by $as_me.
12832# Run this file to recreate the current configuration.
12833# Compiler output produced by configure, useful for debugging
12834# configure, is in config.log if it exists.
12835
12836debug=false
12837ac_cs_recheck=false
12838ac_cs_silent=false
12839
12840SHELL=\${CONFIG_SHELL-$SHELL}
12841export SHELL
12842_ASEOF
12843cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12844## -------------------- ##
12845## M4sh Initialization. ##
12846## -------------------- ##
12847
12848# Be more Bourne compatible
12849DUALCASE=1; export DUALCASE # for MKS sh
12850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12851 emulate sh
12852 NULLCMD=:
12853 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12854 # is contrary to our usage. Disable this feature.
12855 alias -g '${1+"$@"}'='"$@"'
12856 setopt NO_GLOB_SUBST
12857else
12858 case `(set -o) 2>/dev/null` in #(
12859 *posix*) :
12860 set -o posix ;; #(
12861 *) :
12862 ;;
12863esac
12864fi
12865
12866
12867as_nl='
12868'
12869export as_nl
12870# Printing a long string crashes Solaris 7 /usr/bin/printf.
12871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12874# Prefer a ksh shell builtin over an external printf program on Solaris,
12875# but without wasting forks for bash or zsh.
12876if test -z "$BASH_VERSION$ZSH_VERSION" \
12877 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12878 as_echo='print -r --'
12879 as_echo_n='print -rn --'
12880elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12881 as_echo='printf %s\n'
12882 as_echo_n='printf %s'
12883else
12884 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12885 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12886 as_echo_n='/usr/ucb/echo -n'
12887 else
12888 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12889 as_echo_n_body='eval
12890 arg=$1;
12891 case $arg in #(
12892 *"$as_nl"*)
12893 expr "X$arg" : "X\\(.*\\)$as_nl";
12894 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12895 esac;
12896 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12897 '
12898 export as_echo_n_body
12899 as_echo_n='sh -c $as_echo_n_body as_echo'
12900 fi
12901 export as_echo_body
12902 as_echo='sh -c $as_echo_body as_echo'
12903fi
12904
12905# The user is always right.
12906if test "${PATH_SEPARATOR+set}" != set; then
12907 PATH_SEPARATOR=:
12908 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12909 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12910 PATH_SEPARATOR=';'
12911 }
12912fi
12913
12914
12915# IFS
12916# We need space, tab and new line, in precisely that order. Quoting is
12917# there to prevent editors from complaining about space-tab.
12918# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12919# splitting by setting IFS to empty value.)
12920IFS=" "" $as_nl"
12921
12922# Find who we are. Look in the path if we contain no directory separator.
12923as_myself=
12924case $0 in #((
12925 *[\\/]* ) as_myself=$0 ;;
12926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12932 done
12933IFS=$as_save_IFS
12934
12935 ;;
12936esac
12937# We did not find ourselves, most probably we were run as `sh COMMAND'
12938# in which case we are not to be found in the path.
12939if test "x$as_myself" = x; then
12940 as_myself=$0
12941fi
12942if test ! -f "$as_myself"; then
12943 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12944 exit 1
12945fi
12946
12947# Unset variables that we do not need and which cause bugs (e.g. in
12948# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12949# suppresses any "Segmentation fault" message there. '((' could
12950# trigger a bug in pdksh 5.2.14.
12951for as_var in BASH_ENV ENV MAIL MAILPATH
12952do eval test x\${$as_var+set} = xset \
12953 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12954done
12955PS1='$ '
12956PS2='> '
12957PS4='+ '
12958
12959# NLS nuisances.
12960LC_ALL=C
12961export LC_ALL
12962LANGUAGE=C
12963export LANGUAGE
12964
12965# CDPATH.
12966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12967
12968
12969# as_fn_error STATUS ERROR [LINENO LOG_FD]
12970# ----------------------------------------
12971# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12972# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12973# script with STATUS, using 1 if that was 0.
12974as_fn_error ()
12975{
12976 as_status=$1; test $as_status -eq 0 && as_status=1
12977 if test "$4"; then
12978 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12979 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12980 fi
12981 $as_echo "$as_me: error: $2" >&2
12982 as_fn_exit $as_status
12983} # as_fn_error
12984
12985
12986# as_fn_set_status STATUS
12987# -----------------------
12988# Set $? to STATUS, without forking.
12989as_fn_set_status ()
12990{
12991 return $1
12992} # as_fn_set_status
12993
12994# as_fn_exit STATUS
12995# -----------------
12996# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12997as_fn_exit ()
12998{
12999 set +e
13000 as_fn_set_status $1
13001 exit $1
13002} # as_fn_exit
13003
13004# as_fn_unset VAR
13005# ---------------
13006# Portably unset VAR.
13007as_fn_unset ()
13008{
13009 { eval $1=; unset $1;}
13010}
13011as_unset=as_fn_unset
13012# as_fn_append VAR VALUE
13013# ----------------------
13014# Append the text in VALUE to the end of the definition contained in VAR. Take
13015# advantage of any shell optimizations that allow amortized linear growth over
13016# repeated appends, instead of the typical quadratic growth present in naive
13017# implementations.
13018if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13019 eval 'as_fn_append ()
13020 {
13021 eval $1+=\$2
13022 }'
13023else
13024 as_fn_append ()
13025 {
13026 eval $1=\$$1\$2
13027 }
13028fi # as_fn_append
13029
13030# as_fn_arith ARG...
13031# ------------------
13032# Perform arithmetic evaluation on the ARGs, and store the result in the
13033# global $as_val. Take advantage of shells that can avoid forks. The arguments
13034# must be portable across $(()) and expr.
13035if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13036 eval 'as_fn_arith ()
13037 {
13038 as_val=$(( $* ))
13039 }'
13040else
13041 as_fn_arith ()
13042 {
13043 as_val=`expr "$@" || test $? -eq 1`
13044 }
13045fi # as_fn_arith
13046
13047
13048if expr a : '\(a\)' >/dev/null 2>&1 &&
13049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13050 as_expr=expr
13051else
13052 as_expr=false
13053fi
13054
13055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13056 as_basename=basename
13057else
13058 as_basename=false
13059fi
13060
13061if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13062 as_dirname=dirname
13063else
13064 as_dirname=false
13065fi
13066
13067as_me=`$as_basename -- "$0" ||
13068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13069 X"$0" : 'X\(//\)$' \| \
13070 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13071$as_echo X/"$0" |
13072 sed '/^.*\/\([^/][^/]*\)\/*$/{
13073 s//\1/
13074 q
13075 }
13076 /^X\/\(\/\/\)$/{
13077 s//\1/
13078 q
13079 }
13080 /^X\/\(\/\).*/{
13081 s//\1/
13082 q
13083 }
13084 s/.*/./; q'`
13085
13086# Avoid depending upon Character Ranges.
13087as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13088as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13089as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13090as_cr_digits='0123456789'
13091as_cr_alnum=$as_cr_Letters$as_cr_digits
13092
13093ECHO_C= ECHO_N= ECHO_T=
13094case `echo -n x` in #(((((
13095-n*)
13096 case `echo 'xy\c'` in
13097 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13098 xy) ECHO_C='\c';;
13099 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13100 ECHO_T=' ';;
13101 esac;;
13102*)
13103 ECHO_N='-n';;
13104esac
13105
13106rm -f conf$$ conf$$.exe conf$$.file
13107if test -d conf$$.dir; then
13108 rm -f conf$$.dir/conf$$.file
13109else
13110 rm -f conf$$.dir
13111 mkdir conf$$.dir 2>/dev/null
13112fi
13113if (echo >conf$$.file) 2>/dev/null; then
13114 if ln -s conf$$.file conf$$ 2>/dev/null; then
13115 as_ln_s='ln -s'
13116 # ... but there are two gotchas:
13117 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13118 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13119 # In both cases, we have to default to `cp -pR'.
13120 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13121 as_ln_s='cp -pR'
13122 elif ln conf$$.file conf$$ 2>/dev/null; then
13123 as_ln_s=ln
13124 else
13125 as_ln_s='cp -pR'
13126 fi
13127else
13128 as_ln_s='cp -pR'
13129fi
13130rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13131rmdir conf$$.dir 2>/dev/null
13132
13133
13134# as_fn_mkdir_p
13135# -------------
13136# Create "$as_dir" as a directory, including parents if necessary.
13137as_fn_mkdir_p ()
13138{
13139
13140 case $as_dir in #(
13141 -*) as_dir=./$as_dir;;
13142 esac
13143 test -d "$as_dir" || eval $as_mkdir_p || {
13144 as_dirs=
13145 while :; do
13146 case $as_dir in #(
13147 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13148 *) as_qdir=$as_dir;;
13149 esac
13150 as_dirs="'$as_qdir' $as_dirs"
13151 as_dir=`$as_dirname -- "$as_dir" ||
13152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13153 X"$as_dir" : 'X\(//\)[^/]' \| \
13154 X"$as_dir" : 'X\(//\)$' \| \
13155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13156$as_echo X"$as_dir" |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13158 s//\1/
13159 q
13160 }
13161 /^X\(\/\/\)[^/].*/{
13162 s//\1/
13163 q
13164 }
13165 /^X\(\/\/\)$/{
13166 s//\1/
13167 q
13168 }
13169 /^X\(\/\).*/{
13170 s//\1/
13171 q
13172 }
13173 s/.*/./; q'`
13174 test -d "$as_dir" && break
13175 done
13176 test -z "$as_dirs" || eval "mkdir $as_dirs"
13177 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13178
13179
13180} # as_fn_mkdir_p
13181if mkdir -p . 2>/dev/null; then
13182 as_mkdir_p='mkdir -p "$as_dir"'
13183else
13184 test -d ./-p && rmdir ./-p
13185 as_mkdir_p=false
13186fi
13187
13188
13189# as_fn_executable_p FILE
13190# -----------------------
13191# Test if FILE is an executable regular file.
13192as_fn_executable_p ()
13193{
13194 test -f "$1" && test -x "$1"
13195} # as_fn_executable_p
13196as_test_x='test -x'
13197as_executable_p=as_fn_executable_p
13198
13199# Sed expression to map a string onto a valid CPP name.
13200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13201
13202# Sed expression to map a string onto a valid variable name.
13203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13204
13205
13206exec 6>&1
13207## ----------------------------------- ##
13208## Main body of $CONFIG_STATUS script. ##
13209## ----------------------------------- ##
13210_ASEOF
13211test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13212
13213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13214# Save the log message, to keep $0 and so on meaningful, and to
13215# report actual input values of CONFIG_FILES etc. instead of their
13216# values after options handling.
13217ac_log="
13218This file was extended by libsframe $as_me BFD_VERSION, which was
13219generated by GNU Autoconf 2.69. Invocation command line was
13220
13221 CONFIG_FILES = $CONFIG_FILES
13222 CONFIG_HEADERS = $CONFIG_HEADERS
13223 CONFIG_LINKS = $CONFIG_LINKS
13224 CONFIG_COMMANDS = $CONFIG_COMMANDS
13225 $ $0 $@
13226
13227on `(hostname || uname -n) 2>/dev/null | sed 1q`
13228"
13229
13230_ACEOF
13231
13232case $ac_config_files in *"
13233"*) set x $ac_config_files; shift; ac_config_files=$*;;
13234esac
13235
13236case $ac_config_headers in *"
13237"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13238esac
13239
13240
13241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13242# Files that config.status was made for.
13243config_files="$ac_config_files"
13244config_headers="$ac_config_headers"
13245config_commands="$ac_config_commands"
13246
13247_ACEOF
13248
13249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13250ac_cs_usage="\
13251\`$as_me' instantiates files and other configuration actions
13252from templates according to the current configuration. Unless the files
13253and actions are specified as TAGs, all are instantiated by default.
13254
13255Usage: $0 [OPTION]... [TAG]...
13256
13257 -h, --help print this help, then exit
13258 -V, --version print version number and configuration settings, then exit
13259 --config print configuration, then exit
13260 -q, --quiet, --silent
13261 do not print progress messages
13262 -d, --debug don't remove temporary files
13263 --recheck update $as_me by reconfiguring in the same conditions
13264 --file=FILE[:TEMPLATE]
13265 instantiate the configuration file FILE
13266 --header=FILE[:TEMPLATE]
13267 instantiate the configuration header FILE
13268
13269Configuration files:
13270$config_files
13271
13272Configuration headers:
13273$config_headers
13274
13275Configuration commands:
13276$config_commands
13277
13278Report bugs to the package provider."
13279
13280_ACEOF
13281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13283ac_cs_version="\\
13284libsframe config.status BFD_VERSION
13285configured by $0, generated by GNU Autoconf 2.69,
13286 with options \\"\$ac_cs_config\\"
13287
13288Copyright (C) 2012 Free Software Foundation, Inc.
13289This config.status script is free software; the Free Software Foundation
13290gives unlimited permission to copy, distribute and modify it."
13291
13292ac_pwd='$ac_pwd'
13293srcdir='$srcdir'
13294INSTALL='$INSTALL'
13295MKDIR_P='$MKDIR_P'
13296AWK='$AWK'
13297test -n "\$AWK" || AWK=awk
13298_ACEOF
13299
13300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13301# The default lists apply if the user does not specify any file.
13302ac_need_defaults=:
13303while test $# != 0
13304do
13305 case $1 in
13306 --*=?*)
13307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13309 ac_shift=:
13310 ;;
13311 --*=)
13312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13313 ac_optarg=
13314 ac_shift=:
13315 ;;
13316 *)
13317 ac_option=$1
13318 ac_optarg=$2
13319 ac_shift=shift
13320 ;;
13321 esac
13322
13323 case $ac_option in
13324 # Handling of the options.
13325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13326 ac_cs_recheck=: ;;
13327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13328 $as_echo "$ac_cs_version"; exit ;;
13329 --config | --confi | --conf | --con | --co | --c )
13330 $as_echo "$ac_cs_config"; exit ;;
13331 --debug | --debu | --deb | --de | --d | -d )
13332 debug=: ;;
13333 --file | --fil | --fi | --f )
13334 $ac_shift
13335 case $ac_optarg in
13336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13337 '') as_fn_error $? "missing file argument" ;;
13338 esac
13339 as_fn_append CONFIG_FILES " '$ac_optarg'"
13340 ac_need_defaults=false;;
13341 --header | --heade | --head | --hea )
13342 $ac_shift
13343 case $ac_optarg in
13344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13345 esac
13346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13347 ac_need_defaults=false;;
13348 --he | --h)
13349 # Conflict between --help and --header
13350 as_fn_error $? "ambiguous option: \`$1'
13351Try \`$0 --help' for more information.";;
13352 --help | --hel | -h )
13353 $as_echo "$ac_cs_usage"; exit ;;
13354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13356 ac_cs_silent=: ;;
13357
13358 # This is an error.
13359 -*) as_fn_error $? "unrecognized option: \`$1'
13360Try \`$0 --help' for more information." ;;
13361
13362 *) as_fn_append ac_config_targets " $1"
13363 ac_need_defaults=false ;;
13364
13365 esac
13366 shift
13367done
13368
13369ac_configure_extra_args=
13370
13371if $ac_cs_silent; then
13372 exec 6>/dev/null
13373 ac_configure_extra_args="$ac_configure_extra_args --silent"
13374fi
13375
13376_ACEOF
13377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13378if \$ac_cs_recheck; then
13379 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13380 shift
13381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13382 CONFIG_SHELL='$SHELL'
13383 export CONFIG_SHELL
13384 exec "\$@"
13385fi
13386
13387_ACEOF
13388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13389exec 5>>config.log
13390{
13391 echo
13392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13393## Running $as_me. ##
13394_ASBOX
13395 $as_echo "$ac_log"
13396} >&5
13397
13398_ACEOF
13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400#
13401# INIT-COMMANDS
13402#
13403AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13404
13405
13406# The HP-UX ksh and POSIX shell print the target directory to stdout
13407# if CDPATH is set.
13408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13409
13410sed_quote_subst='$sed_quote_subst'
13411double_quote_subst='$double_quote_subst'
13412delay_variable_subst='$delay_variable_subst'
13413enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13414macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13415macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13416enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13417pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13418enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13419SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13420ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13421host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13422host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13423host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13424build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13425build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13426build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13427SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13428Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13429GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13430EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13431FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13432LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13433NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13434LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13435max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13436ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13437exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13438lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13439lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13440lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13441reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13442reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13443OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13444deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13445file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13446AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13447AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13448STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13449RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13450old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13451old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13452old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13453lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13454CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13455CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13456compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13457GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13458lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13459lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13460lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13461lt_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"`'
13462objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13463MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13464lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13465lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13466lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13467lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13468lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13469need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13470DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13471NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13472LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13473OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13474OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13475libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13476shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13477extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13478archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13479enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13480export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13481whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13482compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13483old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13484old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13485archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13486archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13487module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13488module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13489with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13490allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13491no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13492hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13493hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13494hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13495hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13496hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13497hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13498hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13499hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13500inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13501link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13502fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13503always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13504export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13505exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13506include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13507prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13508file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13509variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13510need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13511need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13512version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13513runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13514shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13515shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13516libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13517library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13518soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13519install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13520postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13521postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13522finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13523finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13524hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13525sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13526sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13527hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13528enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13529enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13530enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13531old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13532striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13533
13534LTCC='$LTCC'
13535LTCFLAGS='$LTCFLAGS'
13536compiler='$compiler_DEFAULT'
13537
13538# A function that is used when there is no print builtin or printf.
13539func_fallback_echo ()
13540{
13541 eval 'cat <<_LTECHO_EOF
13542\$1
13543_LTECHO_EOF'
13544}
13545
13546# Quote evaled strings.
13547for var in SHELL \
13548ECHO \
13549SED \
13550GREP \
13551EGREP \
13552FGREP \
13553LD \
13554NM \
13555LN_S \
13556lt_SP2NL \
13557lt_NL2SP \
13558reload_flag \
13559OBJDUMP \
13560deplibs_check_method \
13561file_magic_cmd \
13562AR \
13563AR_FLAGS \
13564STRIP \
13565RANLIB \
13566CC \
13567CFLAGS \
13568compiler \
13569lt_cv_sys_global_symbol_pipe \
13570lt_cv_sys_global_symbol_to_cdecl \
13571lt_cv_sys_global_symbol_to_c_name_address \
13572lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13573lt_prog_compiler_no_builtin_flag \
13574lt_prog_compiler_wl \
13575lt_prog_compiler_pic \
13576lt_prog_compiler_static \
13577lt_cv_prog_compiler_c_o \
13578need_locks \
13579DSYMUTIL \
13580NMEDIT \
13581LIPO \
13582OTOOL \
13583OTOOL64 \
13584shrext_cmds \
13585export_dynamic_flag_spec \
13586whole_archive_flag_spec \
13587compiler_needs_object \
13588with_gnu_ld \
13589allow_undefined_flag \
13590no_undefined_flag \
13591hardcode_libdir_flag_spec \
13592hardcode_libdir_flag_spec_ld \
13593hardcode_libdir_separator \
13594fix_srcfile_path \
13595exclude_expsyms \
13596include_expsyms \
13597file_list_spec \
13598variables_saved_for_relink \
13599libname_spec \
13600library_names_spec \
13601soname_spec \
13602install_override_mode \
13603finish_eval \
13604old_striplib \
13605striplib; do
13606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13607 *[\\\\\\\`\\"\\\$]*)
13608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13609 ;;
13610 *)
13611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13612 ;;
13613 esac
13614done
13615
13616# Double-quote double-evaled strings.
13617for var in reload_cmds \
13618old_postinstall_cmds \
13619old_postuninstall_cmds \
13620old_archive_cmds \
13621extract_expsyms_cmds \
13622old_archive_from_new_cmds \
13623old_archive_from_expsyms_cmds \
13624archive_cmds \
13625archive_expsym_cmds \
13626module_cmds \
13627module_expsym_cmds \
13628export_symbols_cmds \
13629prelink_cmds \
13630postinstall_cmds \
13631postuninstall_cmds \
13632finish_cmds \
13633sys_lib_search_path_spec \
13634sys_lib_dlsearch_path_spec; do
13635 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13636 *[\\\\\\\`\\"\\\$]*)
13637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13638 ;;
13639 *)
13640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13641 ;;
13642 esac
13643done
13644
13645ac_aux_dir='$ac_aux_dir'
13646xsi_shell='$xsi_shell'
13647lt_shell_append='$lt_shell_append'
13648
13649# See if we are running on zsh, and set the options which allow our
13650# commands through without removal of \ escapes INIT.
13651if test -n "\${ZSH_VERSION+set}" ; then
13652 setopt NO_GLOB_SUBST
13653fi
13654
13655
13656 PACKAGE='$PACKAGE'
13657 VERSION='$VERSION'
13658 TIMESTAMP='$TIMESTAMP'
13659 RM='$RM'
13660 ofile='$ofile'
13661
13662
13663
13664
13665_ACEOF
13666
13667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668
13669# Handling of arguments.
13670for ac_config_target in $ac_config_targets
13671do
13672 case $ac_config_target in
13673 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13674 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13676 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13677
13678 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13679 esac
13680done
13681
13682
13683# If the user did not use the arguments to specify the items to instantiate,
13684# then the envvar interface is used. Set only those that are not.
13685# We use the long form for the default assignment because of an extremely
13686# bizarre bug on SunOS 4.1.3.
13687if $ac_need_defaults; then
13688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13691fi
13692
13693# Have a temporary directory for convenience. Make it in the build tree
13694# simply because there is no reason against having it here, and in addition,
13695# creating and moving files from /tmp can sometimes cause problems.
13696# Hook for its removal unless debugging.
13697# Note that there is a small window in which the directory will not be cleaned:
13698# after its creation but before its name has been assigned to `$tmp'.
13699$debug ||
13700{
13701 tmp= ac_tmp=
13702 trap 'exit_status=$?
13703 : "${ac_tmp:=$tmp}"
13704 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13705' 0
13706 trap 'as_fn_exit 1' 1 2 13 15
13707}
13708# Create a (secure) tmp directory for tmp files.
13709
13710{
13711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13712 test -d "$tmp"
13713} ||
13714{
13715 tmp=./conf$$-$RANDOM
13716 (umask 077 && mkdir "$tmp")
13717} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13718ac_tmp=$tmp
13719
13720# Set up the scripts for CONFIG_FILES section.
13721# No need to generate them if there are no CONFIG_FILES.
13722# This happens for instance with `./config.status config.h'.
13723if test -n "$CONFIG_FILES"; then
13724
13725
13726ac_cr=`echo X | tr X '\015'`
13727# On cygwin, bash can eat \r inside `` if the user requested igncr.
13728# But we know of no other shell where ac_cr would be empty at this
13729# point, so we can use a bashism as a fallback.
13730if test "x$ac_cr" = x; then
13731 eval ac_cr=\$\'\\r\'
13732fi
13733ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13734if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13735 ac_cs_awk_cr='\\r'
13736else
13737 ac_cs_awk_cr=$ac_cr
13738fi
13739
13740echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13741_ACEOF
13742
13743
13744{
13745 echo "cat >conf$$subs.awk <<_ACEOF" &&
13746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13747 echo "_ACEOF"
13748} >conf$$subs.sh ||
13749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13750ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13751ac_delim='%!_!# '
13752for ac_last_try in false false false false false :; do
13753 . ./conf$$subs.sh ||
13754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13755
13756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13757 if test $ac_delim_n = $ac_delim_num; then
13758 break
13759 elif $ac_last_try; then
13760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13761 else
13762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13763 fi
13764done
13765rm -f conf$$subs.sh
13766
13767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13768cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13769_ACEOF
13770sed -n '
13771h
13772s/^/S["/; s/!.*/"]=/
13773p
13774g
13775s/^[^!]*!//
13776:repl
13777t repl
13778s/'"$ac_delim"'$//
13779t delim
13780:nl
13781h
13782s/\(.\{148\}\)..*/\1/
13783t more1
13784s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13785p
13786n
13787b repl
13788:more1
13789s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13790p
13791g
13792s/.\{148\}//
13793t nl
13794:delim
13795h
13796s/\(.\{148\}\)..*/\1/
13797t more2
13798s/["\\]/\\&/g; s/^/"/; s/$/"/
13799p
13800b
13801:more2
13802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13803p
13804g
13805s/.\{148\}//
13806t delim
13807' <conf$$subs.awk | sed '
13808/^[^""]/{
13809 N
13810 s/\n//
13811}
13812' >>$CONFIG_STATUS || ac_write_fail=1
13813rm -f conf$$subs.awk
13814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13815_ACAWK
13816cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13817 for (key in S) S_is_set[key] = 1
13818 FS = "\a"
13819
13820}
13821{
13822 line = $ 0
13823 nfields = split(line, field, "@")
13824 substed = 0
13825 len = length(field[1])
13826 for (i = 2; i < nfields; i++) {
13827 key = field[i]
13828 keylen = length(key)
13829 if (S_is_set[key]) {
13830 value = S[key]
13831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13832 len += length(value) + length(field[++i])
13833 substed = 1
13834 } else
13835 len += 1 + keylen
13836 }
13837
13838 print line
13839}
13840
13841_ACAWK
13842_ACEOF
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13846else
13847 cat
13848fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13850_ACEOF
13851
13852# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13853# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13854# trailing colons and then remove the whole line if VPATH becomes empty
13855# (actually we leave an empty line to preserve line numbers).
13856if test "x$srcdir" = x.; then
13857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13858h
13859s///
13860s/^/:/
13861s/[ ]*$/:/
13862s/:\$(srcdir):/:/g
13863s/:\${srcdir}:/:/g
13864s/:@srcdir@:/:/g
13865s/^:*//
13866s/:*$//
13867x
13868s/\(=[ ]*\).*/\1/
13869G
13870s/\n//
13871s/^[^=]*=[ ]*$//
13872}'
13873fi
13874
13875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876fi # test -n "$CONFIG_FILES"
13877
13878# Set up the scripts for CONFIG_HEADERS section.
13879# No need to generate them if there are no CONFIG_HEADERS.
13880# This happens for instance with `./config.status Makefile'.
13881if test -n "$CONFIG_HEADERS"; then
13882cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13883BEGIN {
13884_ACEOF
13885
13886# Transform confdefs.h into an awk script `defines.awk', embedded as
13887# here-document in config.status, that substitutes the proper values into
13888# config.h.in to produce config.h.
13889
13890# Create a delimiter string that does not exist in confdefs.h, to ease
13891# handling of long lines.
13892ac_delim='%!_!# '
13893for ac_last_try in false false :; do
13894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13895 if test -z "$ac_tt"; then
13896 break
13897 elif $ac_last_try; then
13898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13899 else
13900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13901 fi
13902done
13903
13904# For the awk script, D is an array of macro values keyed by name,
13905# likewise P contains macro parameters if any. Preserve backslash
13906# newline sequences.
13907
13908ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13909sed -n '
13910s/.\{148\}/&'"$ac_delim"'/g
13911t rset
13912:rset
13913s/^[ ]*#[ ]*define[ ][ ]*/ /
13914t def
13915d
13916:def
13917s/\\$//
13918t bsnl
13919s/["\\]/\\&/g
13920s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13921D["\1"]=" \3"/p
13922s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13923d
13924:bsnl
13925s/["\\]/\\&/g
13926s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13927D["\1"]=" \3\\\\\\n"\\/p
13928t cont
13929s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13930t cont
13931d
13932:cont
13933n
13934s/.\{148\}/&'"$ac_delim"'/g
13935t clear
13936:clear
13937s/\\$//
13938t bsnlc
13939s/["\\]/\\&/g; s/^/"/; s/$/"/p
13940d
13941:bsnlc
13942s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13943b cont
13944' <confdefs.h | sed '
13945s/'"$ac_delim"'/"\\\
13946"/g' >>$CONFIG_STATUS || ac_write_fail=1
13947
13948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13949 for (key in D) D_is_set[key] = 1
13950 FS = "\a"
13951}
13952/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13953 line = \$ 0
13954 split(line, arg, " ")
13955 if (arg[1] == "#") {
13956 defundef = arg[2]
13957 mac1 = arg[3]
13958 } else {
13959 defundef = substr(arg[1], 2)
13960 mac1 = arg[2]
13961 }
13962 split(mac1, mac2, "(") #)
13963 macro = mac2[1]
13964 prefix = substr(line, 1, index(line, defundef) - 1)
13965 if (D_is_set[macro]) {
13966 # Preserve the white space surrounding the "#".
13967 print prefix "define", macro P[macro] D[macro]
13968 next
13969 } else {
13970 # Replace #undef with comments. This is necessary, for example,
13971 # in the case of _POSIX_SOURCE, which is predefined and required
13972 # on some systems where configure will not decide to define it.
13973 if (defundef == "undef") {
13974 print "/*", prefix defundef, macro, "*/"
13975 next
13976 }
13977 }
13978}
13979{ print }
13980_ACAWK
13981_ACEOF
13982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13984fi # test -n "$CONFIG_HEADERS"
13985
13986
13987eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13988shift
13989for ac_tag
13990do
13991 case $ac_tag in
13992 :[FHLC]) ac_mode=$ac_tag; continue;;
13993 esac
13994 case $ac_mode$ac_tag in
13995 :[FHL]*:*);;
13996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13997 :[FH]-) ac_tag=-:-;;
13998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13999 esac
14000 ac_save_IFS=$IFS
14001 IFS=:
14002 set x $ac_tag
14003 IFS=$ac_save_IFS
14004 shift
14005 ac_file=$1
14006 shift
14007
14008 case $ac_mode in
14009 :L) ac_source=$1;;
14010 :[FH])
14011 ac_file_inputs=
14012 for ac_f
14013 do
14014 case $ac_f in
14015 -) ac_f="$ac_tmp/stdin";;
14016 *) # Look for the file first in the build tree, then in the source tree
14017 # (if the path is not absolute). The absolute path cannot be DOS-style,
14018 # because $ac_f cannot contain `:'.
14019 test -f "$ac_f" ||
14020 case $ac_f in
14021 [\\/$]*) false;;
14022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14023 esac ||
14024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14025 esac
14026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14027 as_fn_append ac_file_inputs " '$ac_f'"
14028 done
14029
14030 # Let's still pretend it is `configure' which instantiates (i.e., don't
14031 # use $as_me), people would be surprised to read:
14032 # /* config.h. Generated by config.status. */
14033 configure_input='Generated from '`
14034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14035 `' by configure.'
14036 if test x"$ac_file" != x-; then
14037 configure_input="$ac_file. $configure_input"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14039$as_echo "$as_me: creating $ac_file" >&6;}
14040 fi
14041 # Neutralize special characters interpreted by sed in replacement strings.
14042 case $configure_input in #(
14043 *\&* | *\|* | *\\* )
14044 ac_sed_conf_input=`$as_echo "$configure_input" |
14045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14046 *) ac_sed_conf_input=$configure_input;;
14047 esac
14048
14049 case $ac_tag in
14050 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14052 esac
14053 ;;
14054 esac
14055
14056 ac_dir=`$as_dirname -- "$ac_file" ||
14057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058 X"$ac_file" : 'X\(//\)[^/]' \| \
14059 X"$ac_file" : 'X\(//\)$' \| \
14060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14061$as_echo X"$ac_file" |
14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14063 s//\1/
14064 q
14065 }
14066 /^X\(\/\/\)[^/].*/{
14067 s//\1/
14068 q
14069 }
14070 /^X\(\/\/\)$/{
14071 s//\1/
14072 q
14073 }
14074 /^X\(\/\).*/{
14075 s//\1/
14076 q
14077 }
14078 s/.*/./; q'`
14079 as_dir="$ac_dir"; as_fn_mkdir_p
14080 ac_builddir=.
14081
14082case "$ac_dir" in
14083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14084*)
14085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14086 # A ".." for each directory in $ac_dir_suffix.
14087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14088 case $ac_top_builddir_sub in
14089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14091 esac ;;
14092esac
14093ac_abs_top_builddir=$ac_pwd
14094ac_abs_builddir=$ac_pwd$ac_dir_suffix
14095# for backward compatibility:
14096ac_top_builddir=$ac_top_build_prefix
14097
14098case $srcdir in
14099 .) # We are building in place.
14100 ac_srcdir=.
14101 ac_top_srcdir=$ac_top_builddir_sub
14102 ac_abs_top_srcdir=$ac_pwd ;;
14103 [\\/]* | ?:[\\/]* ) # Absolute name.
14104 ac_srcdir=$srcdir$ac_dir_suffix;
14105 ac_top_srcdir=$srcdir
14106 ac_abs_top_srcdir=$srcdir ;;
14107 *) # Relative name.
14108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14109 ac_top_srcdir=$ac_top_build_prefix$srcdir
14110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14111esac
14112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14113
14114
14115 case $ac_mode in
14116 :F)
14117 #
14118 # CONFIG_FILE
14119 #
14120
14121 case $INSTALL in
14122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14124 esac
14125 ac_MKDIR_P=$MKDIR_P
14126 case $MKDIR_P in
14127 [\\/$]* | ?:[\\/]* ) ;;
14128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14129 esac
14130_ACEOF
14131
14132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14133# If the template does not know about datarootdir, expand it.
14134# FIXME: This hack should be removed a few years after 2.60.
14135ac_datarootdir_hack=; ac_datarootdir_seen=
14136ac_sed_dataroot='
14137/datarootdir/ {
14138 p
14139 q
14140}
14141/@datadir@/p
14142/@docdir@/p
14143/@infodir@/p
14144/@localedir@/p
14145/@mandir@/p'
14146case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14147*datarootdir*) ac_datarootdir_seen=yes;;
14148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14150$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14151_ACEOF
14152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14153 ac_datarootdir_hack='
14154 s&@datadir@&$datadir&g
14155 s&@docdir@&$docdir&g
14156 s&@infodir@&$infodir&g
14157 s&@localedir@&$localedir&g
14158 s&@mandir@&$mandir&g
14159 s&\\\${datarootdir}&$datarootdir&g' ;;
14160esac
14161_ACEOF
14162
14163# Neutralize VPATH when `$srcdir' = `.'.
14164# Shell code in configure.ac might set extrasub.
14165# FIXME: do we really want to maintain this feature?
14166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14167ac_sed_extra="$ac_vpsub
14168$extrasub
14169_ACEOF
14170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14171:t
14172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14173s|@configure_input@|$ac_sed_conf_input|;t t
14174s&@top_builddir@&$ac_top_builddir_sub&;t t
14175s&@top_build_prefix@&$ac_top_build_prefix&;t t
14176s&@srcdir@&$ac_srcdir&;t t
14177s&@abs_srcdir@&$ac_abs_srcdir&;t t
14178s&@top_srcdir@&$ac_top_srcdir&;t t
14179s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14180s&@builddir@&$ac_builddir&;t t
14181s&@abs_builddir@&$ac_abs_builddir&;t t
14182s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14183s&@INSTALL@&$ac_INSTALL&;t t
14184s&@MKDIR_P@&$ac_MKDIR_P&;t t
14185$ac_datarootdir_hack
14186"
14187eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189
14190test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14193 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14195which seems to be undefined. Please make sure it is defined" >&5
14196$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14197which seems to be undefined. Please make sure it is defined" >&2;}
14198
14199 rm -f "$ac_tmp/stdin"
14200 case $ac_file in
14201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14203 esac \
14204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14205 ;;
14206 :H)
14207 #
14208 # CONFIG_HEADER
14209 #
14210 if test x"$ac_file" != x-; then
14211 {
14212 $as_echo "/* $configure_input */" \
14213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14214 } >"$ac_tmp/config.h" \
14215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14218$as_echo "$as_me: $ac_file is unchanged" >&6;}
14219 else
14220 rm -f "$ac_file"
14221 mv "$ac_tmp/config.h" "$ac_file" \
14222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14223 fi
14224 else
14225 $as_echo "/* $configure_input */" \
14226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14227 || as_fn_error $? "could not create -" "$LINENO" 5
14228 fi
14229# Compute "$ac_file"'s index in $config_headers.
14230_am_arg="$ac_file"
14231_am_stamp_count=1
14232for _am_header in $config_headers :; do
14233 case $_am_header in
14234 $_am_arg | $_am_arg:* )
14235 break ;;
14236 * )
14237 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14238 esac
14239done
14240echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14241$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242 X"$_am_arg" : 'X\(//\)[^/]' \| \
14243 X"$_am_arg" : 'X\(//\)$' \| \
14244 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14245$as_echo X"$_am_arg" |
14246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\(\/\/\)[^/].*/{
14251 s//\1/
14252 q
14253 }
14254 /^X\(\/\/\)$/{
14255 s//\1/
14256 q
14257 }
14258 /^X\(\/\).*/{
14259 s//\1/
14260 q
14261 }
14262 s/.*/./; q'`/stamp-h$_am_stamp_count
14263 ;;
14264
14265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14266$as_echo "$as_me: executing $ac_file commands" >&6;}
14267 ;;
14268 esac
14269
14270
14271 case $ac_file$ac_mode in
14272 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14273 # Older Autoconf quotes --file arguments for eval, but not when files
14274 # are listed without --file. Let's play safe and only enable the eval
14275 # if we detect the quoting.
14276 case $CONFIG_FILES in
14277 *\'*) eval set x "$CONFIG_FILES" ;;
14278 *) set x $CONFIG_FILES ;;
14279 esac
14280 shift
14281 for mf
14282 do
14283 # Strip MF so we end up with the name of the file.
14284 mf=`echo "$mf" | sed -e 's/:.*$//'`
14285 # Check whether this is an Automake generated Makefile or not.
14286 # We used to match only the files named 'Makefile.in', but
14287 # some people rename them; so instead we look at the file content.
14288 # Grep'ing the first line is not enough: some people post-process
14289 # each Makefile.in and add a new line on top of each file to say so.
14290 # Grep'ing the whole file is not good either: AIX grep has a line
14291 # limit of 2048, but all sed's we know have understand at least 4000.
14292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14293 dirpart=`$as_dirname -- "$mf" ||
14294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295 X"$mf" : 'X\(//\)[^/]' \| \
14296 X"$mf" : 'X\(//\)$' \| \
14297 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14298$as_echo X"$mf" |
14299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14300 s//\1/
14301 q
14302 }
14303 /^X\(\/\/\)[^/].*/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\/\)$/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\).*/{
14312 s//\1/
14313 q
14314 }
14315 s/.*/./; q'`
14316 else
14317 continue
14318 fi
14319 # Extract the definition of DEPDIR, am__include, and am__quote
14320 # from the Makefile without running 'make'.
14321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14322 test -z "$DEPDIR" && continue
14323 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14324 test -z "$am__include" && continue
14325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14326 # Find all dependency output files, they are included files with
14327 # $(DEPDIR) in their names. We invoke sed twice because it is the
14328 # simplest approach to changing $(DEPDIR) to its actual value in the
14329 # expansion.
14330 for file in `sed -n "
14331 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14332 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14333 # Make sure the directory exists.
14334 test -f "$dirpart/$file" && continue
14335 fdir=`$as_dirname -- "$file" ||
14336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14337 X"$file" : 'X\(//\)[^/]' \| \
14338 X"$file" : 'X\(//\)$' \| \
14339 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14340$as_echo X"$file" |
14341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14342 s//\1/
14343 q
14344 }
14345 /^X\(\/\/\)[^/].*/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\/\)$/{
14350 s//\1/
14351 q
14352 }
14353 /^X\(\/\).*/{
14354 s//\1/
14355 q
14356 }
14357 s/.*/./; q'`
14358 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14359 # echo "creating $dirpart/$file"
14360 echo '# dummy' > "$dirpart/$file"
14361 done
14362 done
14363}
14364 ;;
14365 "libtool":C)
14366
14367 # See if we are running on zsh, and set the options which allow our
14368 # commands through without removal of \ escapes.
14369 if test -n "${ZSH_VERSION+set}" ; then
14370 setopt NO_GLOB_SUBST
14371 fi
14372
14373 cfgfile="${ofile}T"
14374 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14375 $RM "$cfgfile"
14376
14377 cat <<_LT_EOF >> "$cfgfile"
14378#! $SHELL
14379
14380# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14381# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14383# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14384#
14385# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14386# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14387# Written by Gordon Matzigkeit, 1996
14388#
14389# This file is part of GNU Libtool.
14390#
14391# GNU Libtool is free software; you can redistribute it and/or
14392# modify it under the terms of the GNU General Public License as
14393# published by the Free Software Foundation; either version 2 of
14394# the License, or (at your option) any later version.
14395#
14396# As a special exception to the GNU General Public License,
14397# if you distribute this file as part of a program or library that
14398# is built using GNU Libtool, you may include this file under the
14399# same distribution terms that you use for the rest of that program.
14400#
14401# GNU Libtool is distributed in the hope that it will be useful,
14402# but WITHOUT ANY WARRANTY; without even the implied warranty of
14403# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14404# GNU General Public License for more details.
14405#
14406# You should have received a copy of the GNU General Public License
14407# along with GNU Libtool; see the file COPYING. If not, a copy
14408# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14409# obtained by writing to the Free Software Foundation, Inc.,
14410# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14411
14412
14413# The names of the tagged configurations supported by this script.
14414available_tags=""
14415
14416# ### BEGIN LIBTOOL CONFIG
14417
14418# Whether or not to build shared libraries.
14419build_libtool_libs=$enable_shared
14420
14421# Which release of libtool.m4 was used?
14422macro_version=$macro_version
14423macro_revision=$macro_revision
14424
14425# Whether or not to build static libraries.
14426build_old_libs=$enable_static
14427
14428# What type of objects to build.
14429pic_mode=$pic_mode
14430
14431# Whether or not to optimize for fast installation.
14432fast_install=$enable_fast_install
14433
14434# Shell to use when invoking shell scripts.
14435SHELL=$lt_SHELL
14436
14437# An echo program that protects backslashes.
14438ECHO=$lt_ECHO
14439
14440# The host system.
14441host_alias=$host_alias
14442host=$host
14443host_os=$host_os
14444
14445# The build system.
14446build_alias=$build_alias
14447build=$build
14448build_os=$build_os
14449
14450# A sed program that does not truncate output.
14451SED=$lt_SED
14452
14453# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14454Xsed="\$SED -e 1s/^X//"
14455
14456# A grep program that handles long lines.
14457GREP=$lt_GREP
14458
14459# An ERE matcher.
14460EGREP=$lt_EGREP
14461
14462# A literal string matcher.
14463FGREP=$lt_FGREP
14464
14465# A BSD- or MS-compatible name lister.
14466NM=$lt_NM
14467
14468# Whether we need soft or hard links.
14469LN_S=$lt_LN_S
14470
14471# What is the maximum length of a command?
14472max_cmd_len=$max_cmd_len
14473
14474# Object file suffix (normally "o").
14475objext=$ac_objext
14476
14477# Executable file suffix (normally "").
14478exeext=$exeext
14479
14480# whether the shell understands "unset".
14481lt_unset=$lt_unset
14482
14483# turn spaces into newlines.
14484SP2NL=$lt_lt_SP2NL
14485
14486# turn newlines into spaces.
14487NL2SP=$lt_lt_NL2SP
14488
14489# An object symbol dumper.
14490OBJDUMP=$lt_OBJDUMP
14491
14492# Method to check whether dependent libraries are shared objects.
14493deplibs_check_method=$lt_deplibs_check_method
14494
14495# Command to use when deplibs_check_method == "file_magic".
14496file_magic_cmd=$lt_file_magic_cmd
14497
14498# The archiver.
14499AR=$lt_AR
14500AR_FLAGS=$lt_AR_FLAGS
14501
14502# A symbol stripping program.
14503STRIP=$lt_STRIP
14504
14505# Commands used to install an old-style archive.
14506RANLIB=$lt_RANLIB
14507old_postinstall_cmds=$lt_old_postinstall_cmds
14508old_postuninstall_cmds=$lt_old_postuninstall_cmds
14509
14510# Whether to use a lock for old archive extraction.
14511lock_old_archive_extraction=$lock_old_archive_extraction
14512
14513# A C compiler.
14514LTCC=$lt_CC
14515
14516# LTCC compiler flags.
14517LTCFLAGS=$lt_CFLAGS
14518
14519# Take the output of nm and produce a listing of raw symbols and C names.
14520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14521
14522# Transform the output of nm in a proper C declaration.
14523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14524
14525# Transform the output of nm in a C name address pair.
14526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14527
14528# Transform the output of nm in a C name address pair when lib prefix is needed.
14529global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14530
14531# The name of the directory that contains temporary libtool files.
14532objdir=$objdir
14533
14534# Used to examine libraries when file_magic_cmd begins with "file".
14535MAGIC_CMD=$MAGIC_CMD
14536
14537# Must we lock files when doing compilation?
14538need_locks=$lt_need_locks
14539
14540# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14541DSYMUTIL=$lt_DSYMUTIL
14542
14543# Tool to change global to local symbols on Mac OS X.
14544NMEDIT=$lt_NMEDIT
14545
14546# Tool to manipulate fat objects and archives on Mac OS X.
14547LIPO=$lt_LIPO
14548
14549# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14550OTOOL=$lt_OTOOL
14551
14552# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14553OTOOL64=$lt_OTOOL64
14554
14555# Old archive suffix (normally "a").
14556libext=$libext
14557
14558# Shared library suffix (normally ".so").
14559shrext_cmds=$lt_shrext_cmds
14560
14561# The commands to extract the exported symbol list from a shared archive.
14562extract_expsyms_cmds=$lt_extract_expsyms_cmds
14563
14564# Variables whose values should be saved in libtool wrapper scripts and
14565# restored at link time.
14566variables_saved_for_relink=$lt_variables_saved_for_relink
14567
14568# Do we need the "lib" prefix for modules?
14569need_lib_prefix=$need_lib_prefix
14570
14571# Do we need a version for libraries?
14572need_version=$need_version
14573
14574# Library versioning type.
14575version_type=$version_type
14576
14577# Shared library runtime path variable.
14578runpath_var=$runpath_var
14579
14580# Shared library path variable.
14581shlibpath_var=$shlibpath_var
14582
14583# Is shlibpath searched before the hard-coded library search path?
14584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14585
14586# Format of library name prefix.
14587libname_spec=$lt_libname_spec
14588
14589# List of archive names. First name is the real one, the rest are links.
14590# The last name is the one that the linker finds with -lNAME
14591library_names_spec=$lt_library_names_spec
14592
14593# The coded name of the library, if different from the real name.
14594soname_spec=$lt_soname_spec
14595
14596# Permission mode override for installation of shared libraries.
14597install_override_mode=$lt_install_override_mode
14598
14599# Command to use after installation of a shared archive.
14600postinstall_cmds=$lt_postinstall_cmds
14601
14602# Command to use after uninstallation of a shared archive.
14603postuninstall_cmds=$lt_postuninstall_cmds
14604
14605# Commands used to finish a libtool library installation in a directory.
14606finish_cmds=$lt_finish_cmds
14607
14608# As "finish_cmds", except a single script fragment to be evaled but
14609# not shown.
14610finish_eval=$lt_finish_eval
14611
14612# Whether we should hardcode library paths into libraries.
14613hardcode_into_libs=$hardcode_into_libs
14614
14615# Compile-time system search path for libraries.
14616sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14617
14618# Run-time system search path for libraries.
14619sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14620
14621# Whether dlopen is supported.
14622dlopen_support=$enable_dlopen
14623
14624# Whether dlopen of programs is supported.
14625dlopen_self=$enable_dlopen_self
14626
14627# Whether dlopen of statically linked programs is supported.
14628dlopen_self_static=$enable_dlopen_self_static
14629
14630# Commands to strip libraries.
14631old_striplib=$lt_old_striplib
14632striplib=$lt_striplib
14633
14634
14635# The linker used to build libraries.
14636LD=$lt_LD
14637
14638# How to create reloadable object files.
14639reload_flag=$lt_reload_flag
14640reload_cmds=$lt_reload_cmds
14641
14642# Commands used to build an old-style archive.
14643old_archive_cmds=$lt_old_archive_cmds
14644
14645# A language specific compiler.
14646CC=$lt_compiler
14647
14648# Is the compiler the GNU compiler?
14649with_gcc=$GCC
14650
14651# Compiler flag to turn off builtin functions.
14652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14653
14654# How to pass a linker flag through the compiler.
14655wl=$lt_lt_prog_compiler_wl
14656
14657# Additional compiler flags for building library objects.
14658pic_flag=$lt_lt_prog_compiler_pic
14659
14660# Compiler flag to prevent dynamic linking.
14661link_static_flag=$lt_lt_prog_compiler_static
14662
14663# Does compiler simultaneously support -c and -o options?
14664compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14665
14666# Whether or not to add -lc for building shared libraries.
14667build_libtool_need_lc=$archive_cmds_need_lc
14668
14669# Whether or not to disallow shared libs when runtime libs are static.
14670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14671
14672# Compiler flag to allow reflexive dlopens.
14673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14674
14675# Compiler flag to generate shared objects directly from archives.
14676whole_archive_flag_spec=$lt_whole_archive_flag_spec
14677
14678# Whether the compiler copes with passing no objects directly.
14679compiler_needs_object=$lt_compiler_needs_object
14680
14681# Create an old-style archive from a shared archive.
14682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14683
14684# Create a temporary old-style archive to link instead of a shared archive.
14685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14686
14687# Commands used to build a shared archive.
14688archive_cmds=$lt_archive_cmds
14689archive_expsym_cmds=$lt_archive_expsym_cmds
14690
14691# Commands used to build a loadable module if different from building
14692# a shared archive.
14693module_cmds=$lt_module_cmds
14694module_expsym_cmds=$lt_module_expsym_cmds
14695
14696# Whether we are building with GNU ld or not.
14697with_gnu_ld=$lt_with_gnu_ld
14698
14699# Flag that allows shared libraries with undefined symbols to be built.
14700allow_undefined_flag=$lt_allow_undefined_flag
14701
14702# Flag that enforces no undefined symbols.
14703no_undefined_flag=$lt_no_undefined_flag
14704
14705# Flag to hardcode \$libdir into a binary during linking.
14706# This must work even if \$libdir does not exist
14707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14708
14709# If ld is used when linking, flag to hardcode \$libdir into a binary
14710# during linking. This must work even if \$libdir does not exist.
14711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14712
14713# Whether we need a single "-rpath" flag with a separated argument.
14714hardcode_libdir_separator=$lt_hardcode_libdir_separator
14715
14716# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14717# DIR into the resulting binary.
14718hardcode_direct=$hardcode_direct
14719
14720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14721# DIR into the resulting binary and the resulting library dependency is
14722# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14723# library is relocated.
14724hardcode_direct_absolute=$hardcode_direct_absolute
14725
14726# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14727# into the resulting binary.
14728hardcode_minus_L=$hardcode_minus_L
14729
14730# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14731# into the resulting binary.
14732hardcode_shlibpath_var=$hardcode_shlibpath_var
14733
14734# Set to "yes" if building a shared library automatically hardcodes DIR
14735# into the library and all subsequent libraries and executables linked
14736# against it.
14737hardcode_automatic=$hardcode_automatic
14738
14739# Set to yes if linker adds runtime paths of dependent libraries
14740# to runtime path list.
14741inherit_rpath=$inherit_rpath
14742
14743# Whether libtool must link a program against all its dependency libraries.
14744link_all_deplibs=$link_all_deplibs
14745
14746# Fix the shell variable \$srcfile for the compiler.
14747fix_srcfile_path=$lt_fix_srcfile_path
14748
14749# Set to "yes" if exported symbols are required.
14750always_export_symbols=$always_export_symbols
14751
14752# The commands to list exported symbols.
14753export_symbols_cmds=$lt_export_symbols_cmds
14754
14755# Symbols that should not be listed in the preloaded symbols.
14756exclude_expsyms=$lt_exclude_expsyms
14757
14758# Symbols that must always be exported.
14759include_expsyms=$lt_include_expsyms
14760
14761# Commands necessary for linking programs (against libraries) with templates.
14762prelink_cmds=$lt_prelink_cmds
14763
14764# Specify filename containing input files.
14765file_list_spec=$lt_file_list_spec
14766
14767# How to hardcode a shared library path into an executable.
14768hardcode_action=$hardcode_action
14769
14770# ### END LIBTOOL CONFIG
14771
14772_LT_EOF
14773
14774 case $host_os in
14775 aix3*)
14776 cat <<\_LT_EOF >> "$cfgfile"
14777# AIX sometimes has problems with the GCC collect2 program. For some
14778# reason, if we set the COLLECT_NAMES environment variable, the problems
14779# vanish in a puff of smoke.
14780if test "X${COLLECT_NAMES+set}" != Xset; then
14781 COLLECT_NAMES=
14782 export COLLECT_NAMES
14783fi
14784_LT_EOF
14785 ;;
14786 esac
14787
14788
14789ltmain="$ac_aux_dir/ltmain.sh"
14790
14791
14792 # We use sed instead of cat because bash on DJGPP gets confused if
14793 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14794 # text mode, it properly converts lines to CR/LF. This bash problem
14795 # is reportedly fixed, but why not run on old versions too?
14796 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14797 || (rm -f "$cfgfile"; exit 1)
14798
14799 case $xsi_shell in
14800 yes)
14801 cat << \_LT_EOF >> "$cfgfile"
14802
14803# func_dirname file append nondir_replacement
14804# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14805# otherwise set result to NONDIR_REPLACEMENT.
14806func_dirname ()
14807{
14808 case ${1} in
14809 */*) func_dirname_result="${1%/*}${2}" ;;
14810 * ) func_dirname_result="${3}" ;;
14811 esac
14812}
14813
14814# func_basename file
14815func_basename ()
14816{
14817 func_basename_result="${1##*/}"
14818}
14819
14820# func_dirname_and_basename file append nondir_replacement
14821# perform func_basename and func_dirname in a single function
14822# call:
14823# dirname: Compute the dirname of FILE. If nonempty,
14824# add APPEND to the result, otherwise set result
14825# to NONDIR_REPLACEMENT.
14826# value returned in "$func_dirname_result"
14827# basename: Compute filename of FILE.
14828# value retuned in "$func_basename_result"
14829# Implementation must be kept synchronized with func_dirname
14830# and func_basename. For efficiency, we do not delegate to
14831# those functions but instead duplicate the functionality here.
14832func_dirname_and_basename ()
14833{
14834 case ${1} in
14835 */*) func_dirname_result="${1%/*}${2}" ;;
14836 * ) func_dirname_result="${3}" ;;
14837 esac
14838 func_basename_result="${1##*/}"
14839}
14840
14841# func_stripname prefix suffix name
14842# strip PREFIX and SUFFIX off of NAME.
14843# PREFIX and SUFFIX must not contain globbing or regex special
14844# characters, hashes, percent signs, but SUFFIX may contain a leading
14845# dot (in which case that matches only a dot).
14846func_stripname ()
14847{
14848 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14849 # positional parameters, so assign one to ordinary parameter first.
14850 func_stripname_result=${3}
14851 func_stripname_result=${func_stripname_result#"${1}"}
14852 func_stripname_result=${func_stripname_result%"${2}"}
14853}
14854
14855# func_opt_split
14856func_opt_split ()
14857{
14858 func_opt_split_opt=${1%%=*}
14859 func_opt_split_arg=${1#*=}
14860}
14861
14862# func_lo2o object
14863func_lo2o ()
14864{
14865 case ${1} in
14866 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14867 *) func_lo2o_result=${1} ;;
14868 esac
14869}
14870
14871# func_xform libobj-or-source
14872func_xform ()
14873{
14874 func_xform_result=${1%.*}.lo
14875}
14876
14877# func_arith arithmetic-term...
14878func_arith ()
14879{
14880 func_arith_result=$(( $* ))
14881}
14882
14883# func_len string
14884# STRING may not start with a hyphen.
14885func_len ()
14886{
14887 func_len_result=${#1}
14888}
14889
14890_LT_EOF
14891 ;;
14892 *) # Bourne compatible functions.
14893 cat << \_LT_EOF >> "$cfgfile"
14894
14895# func_dirname file append nondir_replacement
14896# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14897# otherwise set result to NONDIR_REPLACEMENT.
14898func_dirname ()
14899{
14900 # Extract subdirectory from the argument.
14901 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14902 if test "X$func_dirname_result" = "X${1}"; then
14903 func_dirname_result="${3}"
14904 else
14905 func_dirname_result="$func_dirname_result${2}"
14906 fi
14907}
14908
14909# func_basename file
14910func_basename ()
14911{
14912 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14913}
14914
14915
14916# func_stripname prefix suffix name
14917# strip PREFIX and SUFFIX off of NAME.
14918# PREFIX and SUFFIX must not contain globbing or regex special
14919# characters, hashes, percent signs, but SUFFIX may contain a leading
14920# dot (in which case that matches only a dot).
14921# func_strip_suffix prefix name
14922func_stripname ()
14923{
14924 case ${2} in
14925 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14926 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14927 esac
14928}
14929
14930# sed scripts:
14931my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14932my_sed_long_arg='1s/^-[^=]*=//'
14933
14934# func_opt_split
14935func_opt_split ()
14936{
14937 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14938 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14939}
14940
14941# func_lo2o object
14942func_lo2o ()
14943{
14944 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14945}
14946
14947# func_xform libobj-or-source
14948func_xform ()
14949{
14950 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14951}
14952
14953# func_arith arithmetic-term...
14954func_arith ()
14955{
14956 func_arith_result=`expr "$@"`
14957}
14958
14959# func_len string
14960# STRING may not start with a hyphen.
14961func_len ()
14962{
14963 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14964}
14965
14966_LT_EOF
14967esac
14968
14969case $lt_shell_append in
14970 yes)
14971 cat << \_LT_EOF >> "$cfgfile"
14972
14973# func_append var value
14974# Append VALUE to the end of shell variable VAR.
14975func_append ()
14976{
14977 eval "$1+=\$2"
14978}
14979_LT_EOF
14980 ;;
14981 *)
14982 cat << \_LT_EOF >> "$cfgfile"
14983
14984# func_append var value
14985# Append VALUE to the end of shell variable VAR.
14986func_append ()
14987{
14988 eval "$1=\$$1\$2"
14989}
14990
14991_LT_EOF
14992 ;;
14993 esac
14994
14995
14996 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14997 || (rm -f "$cfgfile"; exit 1)
14998
14999 mv -f "$cfgfile" "$ofile" ||
15000 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15001 chmod +x "$ofile"
15002
15003 ;;
15004
15005 esac
15006done # for ac_tag
15007
15008
15009as_fn_exit 0
15010_ACEOF
15011ac_clean_files=$ac_clean_files_save
15012
15013test $ac_write_fail = 0 ||
15014 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15015
15016
15017# configure is writing to config.log, and then calls config.status.
15018# config.status does its own redirection, appending to config.log.
15019# Unfortunately, on DOS this fails, as config.log is still kept open
15020# by configure, so config.status won't be able to write to it; its
15021# output is simply discarded. So we exec the FD to /dev/null,
15022# effectively closing config.log, so it can be properly (re)opened and
15023# appended to by config.status. When coming back to configure, we
15024# need to make the FD available again.
15025if test "$no_create" != yes; then
15026 ac_cs_success=:
15027 ac_config_status_args=
15028 test "$silent" = yes &&
15029 ac_config_status_args="$ac_config_status_args --quiet"
15030 exec 5>/dev/null
15031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15032 exec 5>>config.log
15033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15034 # would make configure fail if this is the last instruction.
15035 $ac_cs_success || as_fn_exit 1
15036fi
15037if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15039$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15040fi
15041
15042
15043
15044touch config.status.tmp
15045if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
15046 sed '/as_fn_exit 0/i \
15047sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
15048touch --reference=Makefile Makefile.tmp \
15049mv Makefile.tmp Makefile \
15050' config.status > config.status.tmp
15051 touch --reference=config.status config.status.tmp
15052 mv config.status.tmp config.status
15053 chmod +x config.status
15054 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
15055 touch --reference=Makefile Makefile.tmp
15056 mv Makefile.tmp Makefile
15057else
15058 rm -f config.status.tmp
15059fi