]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame_incremental - opcodes/configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / opcodes / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for opcodes 2.44.50.
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='opcodes'
589PACKAGE_TARNAME='opcodes'
590PACKAGE_VERSION='2.44.50'
591PACKAGE_STRING='opcodes 2.44.50'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="z8k-dis.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
632gt_needs=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637BFD_MACHINES
638archdefs
639SHARED_DEPENDENCIES
640SHARED_LIBADD
641SHARED_LDFLAGS
642BUILD_LIB_DEPS
643BUILD_LIBS
644LIBM
645cgendir
646CGEN_MAINT_FALSE
647CGEN_MAINT_TRUE
648HDEFINES
649EXEEXT_FOR_BUILD
650CC_FOR_BUILD
651CATOBJEXT
652GENCAT
653INSTOBJEXT
654DATADIRNAME
655CATALOGS
656INCINTL
657LIBINTL_DEP
658POSUB
659LTLIBINTL
660LIBINTL
661INTLLIBS
662LTLIBICONV
663LIBICONV
664INTL_MACOSX_LIBS
665MSGMERGE
666XGETTEXT
667GMSGFMT
668MSGFMT
669USE_NLS
670MKINSTALLDIRS
671bfdincludedir
672bfdlibdir
673target_noncanonical
674host_noncanonical
675INSTALL_LIBBFD_FALSE
676INSTALL_LIBBFD_TRUE
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
680WARN_WRITE_STRINGS
681NO_WERROR
682WARN_CFLAGS_FOR_BUILD
683WARN_CFLAGS
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696SED
697LIBTOOL
698RANLIB
699AR
700EGREP
701GREP
702CPP
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__quote
711am__include
712DEPDIR
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_os
748target_vendor
749target_cpu
750target
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_silent_rules
801enable_dependency_tracking
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807enable_libtool_lock
808enable_checking
809enable_targets
810enable_werror
811enable_build_warnings
812enable_maintainer_mode
813enable_install_libbfd
814enable_nls
815enable_rpath
816with_libiconv_prefix
817with_libiconv_type
818with_libintl_prefix
819with_libintl_type
820enable_cgen_maint
821'
822 ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
828LIBS
829CPPFLAGS
830CPP'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
880
881ac_prev=
882ac_dashdash=
883for ac_option
884do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239done
1240
1241if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244fi
1245
1246if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252fi
1253
1254# Check all directory arguments for consistency.
1255for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
1296
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
1363
1364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371\`configure' configures opcodes 2.44.50 to adapt to many kinds of systems.
1372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424_ACEOF
1425
1426 cat <<\_ACEOF
1427
1428Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of opcodes 2.44.50:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-shared[=PKGS] build shared libraries [default=no]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-checking enable run-time checks
1462 --enable-targets alternative target configurations
1463 --enable-werror treat compile warnings as errors
1464 --enable-build-warnings enable build-time compiler warnings
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful (and
1467 sometimes confusing) to the casual installer
1468 --enable-install-libbfd controls installation of libbfd and related headers
1469 --disable-nls do not use Native Language Support
1470 --disable-rpath do not hardcode runtime library paths
1471 --enable-cgen-maint=dir build cgen generated files
1472
1473Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-gnu-ld assume the C compiler uses GNU ld default=no
1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1484 --without-libintl-prefix don't search for libintl in includedir and libdir
1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1486
1487Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CPP C preprocessor
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500Report bugs to the package provider.
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562 cat <<\_ACEOF
1563opcodes configure 2.44.50
1564generated by GNU Autoconf 2.69
1565
1566Copyright (C) 2012 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570 exit
1571fi
1572
1573## ------------------------ ##
1574## Autoconf initialization. ##
1575## ------------------------ ##
1576
1577# ac_fn_c_try_compile LINENO
1578# --------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_compile ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_compile
1614
1615# ac_fn_c_try_cpp LINENO
1616# ----------------------
1617# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_cpp ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_cpp
1651
1652# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655# the include files in INCLUDES and setting the cache variable VAR
1656# accordingly.
1657ac_fn_c_check_header_mongrel ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665fi
1666eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669else
1670 # Is the header compilable?
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672$as_echo_n "checking $2 usability... " >&6; }
1673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680else
1681 ac_header_compiler=no
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685$as_echo "$ac_header_compiler" >&6; }
1686
1687# Is the header present?
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689$as_echo_n "checking $2 presence... " >&6; }
1690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h. */
1692#include <$2>
1693_ACEOF
1694if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696else
1697 ac_header_preproc=no
1698fi
1699rm -f conftest.err conftest.i conftest.$ac_ext
1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701$as_echo "$ac_header_preproc" >&6; }
1702
1703# So? What about this header?
1704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 ;;
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ;;
1723esac
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 eval "$3=\$ac_header_compiler"
1730fi
1731eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_mongrel
1738
1739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status
1774fi
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists and can be compiled using the include files in
1784# INCLUDES, setting the cache variable VAR accordingly.
1785ac_fn_c_check_header_compile ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800else
1801 eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_header_compile
1811
1812# ac_fn_c_try_link LINENO
1813# -----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_link ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext conftest$ac_exeext
1819 if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest$ac_exeext && {
1838 test "$cross_compiling" = yes ||
1839 test -x conftest$ac_exeext
1840 }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847fi
1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850 # interfere with the next link command; also delete a directory that is
1851 # left behind by Apple's compiler. We do this before executing the actions.
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_link
1857
1858# ac_fn_c_check_func LINENO FUNC VAR
1859# ----------------------------------
1860# Tests whether FUNC exists, setting the cache variable VAR accordingly
1861ac_fn_c_check_func ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h. */
1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873#define $2 innocuous_$2
1874
1875/* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1879
1880#ifdef __STDC__
1881# include <limits.h>
1882#else
1883# include <assert.h>
1884#endif
1885
1886#undef $2
1887
1888/* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891#ifdef __cplusplus
1892extern "C"
1893#endif
1894char $2 ();
1895/* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898#if defined __stub_$2 || defined __stub___$2
1899choke me
1900#endif
1901
1902int
1903main ()
1904{
1905return $2 ();
1906 ;
1907 return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912else
1913 eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_func
1924
1925# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926# ---------------------------------------------
1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928# accordingly.
1929ac_fn_c_check_decl ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941$4
1942int
1943main ()
1944{
1945#ifndef $as_decl_name
1946#ifdef __cplusplus
1947 (void) $as_decl_use;
1948#else
1949 (void) $as_decl_name;
1950#endif
1951#endif
1952
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 eval "$3=yes"
1959else
1960 eval "$3=no"
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_decl
1970cat >config.log <<_ACEOF
1971This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.
1973
1974It was created by opcodes $as_me 2.44.50, which was
1975generated by GNU Autoconf 2.69. Invocation command line was
1976
1977 $ $0 $@
1978
1979_ACEOF
1980exec 5>>config.log
1981{
1982cat <<_ASUNAME
1983## --------- ##
1984## Platform. ##
1985## --------- ##
1986
1987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004_ASUNAME
2005
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013IFS=$as_save_IFS
2014
2015} >&5
2016
2017cat >&5 <<_ACEOF
2018
2019
2020## ----------- ##
2021## Core tests. ##
2022## ----------- ##
2023
2024_ACEOF
2025
2026
2027# Keep a trace of the command line.
2028# Strip out --no-create and --no-recursion so they do not pile up.
2029# Strip out --silent because we don't want to record it for future runs.
2030# Also quote any args containing shell meta-characters.
2031# Make two passes to allow for proper duplicate-argument suppression.
2032ac_configure_args=
2033ac_configure_args0=
2034ac_configure_args1=
2035ac_must_keep_next=false
2036for ac_pass in 1 2
2037do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071done
2072{ ac_configure_args0=; unset ac_configure_args0;}
2073{ ac_configure_args1=; unset ac_configure_args1;}
2074
2075# When interrupted or exit'd, cleanup temporary files, and complete
2076# config.log. We remove comments because anyway the quotes in there
2077# would cause problems or look ugly.
2078# WARNING: Use '\'' to represent an apostrophe within the trap.
2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 $as_echo "## ---------------- ##
2086## Cache variables. ##
2087## ---------------- ##"
2088 echo
2089 # The following way of writing the cache mishandles newlines in values,
2090(
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in #(
2094 *${as_nl}*)
2095 case $ac_var in #(
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 esac
2099 case $ac_var in #(
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2103 esac ;;
2104 esac
2105 done
2106 (set) 2>&1 |
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2109 sed -n \
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 ;; #(
2113 *)
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ;;
2116 esac |
2117 sort
2118)
2119 echo
2120
2121 $as_echo "## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##"
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137## File substitutions. ##
2138## ------------------- ##"
2139 echo
2140 for ac_var in $ac_subst_files
2141 do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2149 fi
2150
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##"
2155 echo
2156 cat confdefs.h
2157 echo
2158 fi
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2166' 0
2167for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169done
2170ac_signal=0
2171
2172# confdefs.h avoids OS command line length limits that DEFS can exceed.
2173rm -f -r conftest* confdefs.h
2174
2175$as_echo "/* confdefs.h */" > confdefs.h
2176
2177# Predefined preprocessor variables.
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_NAME "$PACKAGE_NAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_VERSION "$PACKAGE_VERSION"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_STRING "$PACKAGE_STRING"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_URL "$PACKAGE_URL"
2201_ACEOF
2202
2203
2204# Let the site file select an alternate cache file if it wants to.
2205# Prefer an explicitly selected file to automatically selected ones.
2206ac_site_file1=NONE
2207ac_site_file2=NONE
2208if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2214 esac
2215elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221fi
2222for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file" \
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232as_fn_error $? "failed to load site script $ac_site_file
2233See \`config.log' for more details" "$LINENO" 5; }
2234 fi
2235done
2236
2237if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242$as_echo "$as_me: loading cache $cache_file" >&6;}
2243 case $cache_file in
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2246 esac
2247 fi
2248else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250$as_echo "$as_me: creating cache $cache_file" >&6;}
2251 >$cache_file
2252fi
2253
2254gt_needs="$gt_needs "
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304done
2305if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311fi
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324
2325
2326
2327
2328ac_aux_dir=
2329for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343done
2344if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346fi
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357# Make sure we can run config.sub.
2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362$as_echo_n "checking build system type... " >&6; }
2363if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 ac_build_alias=$build_alias
2367test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376$as_echo "$ac_cv_build" >&6; }
2377case $ac_cv_build in
2378*-*-*) ;;
2379*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380esac
2381build=$ac_cv_build
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_build
2384shift
2385build_cpu=$1
2386build_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390build_os=$*
2391IFS=$ac_save_IFS
2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393
2394
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396$as_echo_n "checking host system type... " >&6; }
2397if ${ac_cv_host+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399else
2400 if test "x$host_alias" = x; then
2401 ac_cv_host=$ac_cv_build
2402else
2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2405fi
2406
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409$as_echo "$ac_cv_host" >&6; }
2410case $ac_cv_host in
2411*-*-*) ;;
2412*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2413esac
2414host=$ac_cv_host
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_host
2417shift
2418host_cpu=$1
2419host_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423host_os=$*
2424IFS=$ac_save_IFS
2425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2426
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2429$as_echo_n "checking target system type... " >&6; }
2430if ${ac_cv_target+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 if test "x$target_alias" = x; then
2434 ac_cv_target=$ac_cv_host
2435else
2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2438fi
2439
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2442$as_echo "$ac_cv_target" >&6; }
2443case $ac_cv_target in
2444*-*-*) ;;
2445*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2446esac
2447target=$ac_cv_target
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_target
2450shift
2451target_cpu=$1
2452target_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456target_os=$*
2457IFS=$ac_save_IFS
2458case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2459
2460
2461# The aliases save the names the user supplied, while $host etc.
2462# will get canonicalized.
2463test -n "$target_alias" &&
2464 test "$program_prefix$program_suffix$program_transform_name" = \
2465 NONENONEs,x,x, &&
2466 program_prefix=${target_alias}-
2467
2468am__api_version='1.15'
2469
2470# Find a good install program. We prefer a C program (faster),
2471# so one script is as good as another. But avoid the broken or
2472# incompatible versions:
2473# SysV /etc/install, /usr/sbin/install
2474# SunOS /usr/etc/install
2475# IRIX /sbin/install
2476# AIX /bin/install
2477# AmigaOS /C/install, which installs bootblocks on floppy discs
2478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2479# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2481# OS/2's system install, which has a completely different semantic
2482# ./install, which can be erroneously created by make from ./install.sh.
2483# Reject install programs that cannot install multiple files.
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2485$as_echo_n "checking for a BSD-compatible install... " >&6; }
2486if test -z "$INSTALL"; then
2487if ${ac_cv_path_install+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 # Account for people who put trailing slashes in PATH elements.
2496case $as_dir/ in #((
2497 ./ | .// | /[cC]/* | \
2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2500 /usr/ucb/* ) ;;
2501 *)
2502 # OSF1 and SCO ODT 3.0 have their own names for install.
2503 # Don't use installbsd from OSF since it installs stuff as root
2504 # by default.
2505 for ac_prog in ginstall scoinst install; do
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2508 if test $ac_prog = install &&
2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # AIX install. It has an incompatible calling convention.
2511 :
2512 elif test $ac_prog = install &&
2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514 # program-specific install script used by HP pwplus--don't use.
2515 :
2516 else
2517 rm -rf conftest.one conftest.two conftest.dir
2518 echo one > conftest.one
2519 echo two > conftest.two
2520 mkdir conftest.dir
2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2522 test -s conftest.one && test -s conftest.two &&
2523 test -s conftest.dir/conftest.one &&
2524 test -s conftest.dir/conftest.two
2525 then
2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2527 break 3
2528 fi
2529 fi
2530 fi
2531 done
2532 done
2533 ;;
2534esac
2535
2536 done
2537IFS=$as_save_IFS
2538
2539rm -rf conftest.one conftest.two conftest.dir
2540
2541fi
2542 if test "${ac_cv_path_install+set}" = set; then
2543 INSTALL=$ac_cv_path_install
2544 else
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 INSTALL=$ac_install_sh
2550 fi
2551fi
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2553$as_echo "$INSTALL" >&6; }
2554
2555# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556# It thinks the first close brace ends the variable substitution.
2557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558
2559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2560
2561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2564$as_echo_n "checking whether build environment is sane... " >&6; }
2565# Reject unsafe characters in $srcdir or the absolute working directory
2566# name. Accept space and tab only in the latter.
2567am_lf='
2568'
2569case `pwd` in
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2572esac
2573case $srcdir in
2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2576esac
2577
2578# Do 'set' in a subshell so we don't clobber the current shell's
2579# arguments. Must try -L first in case configure is actually a
2580# symlink; some systems play weird games with the mod time of symlinks
2581# (eg FreeBSD returns the mod time of the symlink's containing
2582# directory).
2583if (
2584 am_has_slept=no
2585 for am_try in 1 2; do
2586 echo "timestamp, slept: $am_has_slept" > conftest.file
2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2588 if test "$*" = "X"; then
2589 # -L didn't work.
2590 set X `ls -t "$srcdir/configure" conftest.file`
2591 fi
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
2594
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" "$LINENO" 5
2601 fi
2602 if test "$2" = conftest.file || test $am_try -eq 2; then
2603 break
2604 fi
2605 # Just in case.
2606 sleep 1
2607 am_has_slept=yes
2608 done
2609 test "$2" = conftest.file
2610 )
2611then
2612 # Ok.
2613 :
2614else
2615 as_fn_error $? "newly created file is older than distributed files!
2616Check your system clock" "$LINENO" 5
2617fi
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
2620# If we didn't sleep, we still need to ensure time stamps of config.status and
2621# generated files are strictly newer.
2622am_sleep_pid=
2623if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2624 ( sleep 1 ) &
2625 am_sleep_pid=$!
2626fi
2627
2628rm -f conftest.file
2629
2630test "$program_prefix" != NONE &&
2631 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2632# Use a double $ so make ignores it.
2633test "$program_suffix" != NONE &&
2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2635# Double any \ or $.
2636# By default was `s,x,x', remove it if useless.
2637ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2638program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2639
2640# Expand $ac_aux_dir to an absolute path.
2641am_aux_dir=`cd "$ac_aux_dir" && pwd`
2642
2643if test x"${MISSING+set}" != xset; then
2644 case $am_aux_dir in
2645 *\ * | *\ *)
2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2647 *)
2648 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2649 esac
2650fi
2651# Use eval to expand $SHELL
2652if eval "$MISSING --is-lightweight"; then
2653 am_missing_run="$MISSING "
2654else
2655 am_missing_run=
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2657$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2658fi
2659
2660if test x"${install_sh+set}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2664 *)
2665 install_sh="\${SHELL} $am_aux_dir/install-sh"
2666 esac
2667fi
2668
2669# Installed binaries are usually stripped using 'strip' when the user
2670# run "make install-strip". However 'strip' might not be the right
2671# tool to use in cross-compilation environments, therefore Automake
2672# will honor the 'STRIP' environment variable to overrule this program.
2673if test "$cross_compiling" != no; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}strip; ac_word=$2
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if ${ac_cv_prog_STRIP+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test -n "$STRIP"; then
2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697 done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702STRIP=$ac_cv_prog_STRIP
2703if test -n "$STRIP"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2705$as_echo "$STRIP" >&6; }
2706else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712fi
2713if test -z "$ac_cv_prog_STRIP"; then
2714 ac_ct_STRIP=$STRIP
2715 # Extract the first word of "strip", so it can be a program name with args.
2716set dummy strip; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 if test -n "$ac_ct_STRIP"; then
2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_STRIP="strip"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736done
2737 done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2743if test -n "$ac_ct_STRIP"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2745$as_echo "$ac_ct_STRIP" >&6; }
2746else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751 if test "x$ac_ct_STRIP" = x; then
2752 STRIP=":"
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758ac_tool_warned=yes ;;
2759esac
2760 STRIP=$ac_ct_STRIP
2761 fi
2762else
2763 STRIP="$ac_cv_prog_STRIP"
2764fi
2765
2766fi
2767INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2770$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2771if test -z "$MKDIR_P"; then
2772 if ${ac_cv_path_mkdir+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_prog in mkdir gmkdir; do
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2784 'mkdir (GNU coreutils) '* | \
2785 'mkdir (coreutils) '* | \
2786 'mkdir (fileutils) '4.1*)
2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2788 break 3;;
2789 esac
2790 done
2791 done
2792 done
2793IFS=$as_save_IFS
2794
2795fi
2796
2797 test -d ./--version && rmdir ./--version
2798 if test "${ac_cv_path_mkdir+set}" = set; then
2799 MKDIR_P="$ac_cv_path_mkdir -p"
2800 else
2801 # As a last resort, use the slow shell script. Don't cache a
2802 # value for MKDIR_P within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the value is a relative name.
2805 MKDIR_P="$ac_install_sh -d"
2806 fi
2807fi
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2809$as_echo "$MKDIR_P" >&6; }
2810
2811for ac_prog in gawk mawk nawk awk
2812do
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814set dummy $ac_prog; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_AWK+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 if test -n "$AWK"; then
2821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_AWK="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835 done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840AWK=$ac_cv_prog_AWK
2841if test -n "$AWK"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2843$as_echo "$AWK" >&6; }
2844else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846$as_echo "no" >&6; }
2847fi
2848
2849
2850 test -n "$AWK" && break
2851done
2852
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2854$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2855set x ${MAKE-make}
2856ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2857if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859else
2860 cat >conftest.make <<\_ACEOF
2861SHELL = /bin/sh
2862all:
2863 @echo '@@@%%%=$(MAKE)=@@@%%%'
2864_ACEOF
2865# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2866case `${MAKE-make} -f conftest.make 2>/dev/null` in
2867 *@@@%%%=?*=@@@%%%*)
2868 eval ac_cv_prog_make_${ac_make}_set=yes;;
2869 *)
2870 eval ac_cv_prog_make_${ac_make}_set=no;;
2871esac
2872rm -f conftest.make
2873fi
2874if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876$as_echo "yes" >&6; }
2877 SET_MAKE=
2878else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881 SET_MAKE="MAKE=${MAKE-make}"
2882fi
2883
2884rm -rf .tst 2>/dev/null
2885mkdir .tst 2>/dev/null
2886if test -d .tst; then
2887 am__leading_dot=.
2888else
2889 am__leading_dot=_
2890fi
2891rmdir .tst 2>/dev/null
2892
2893# Check whether --enable-silent-rules was given.
2894if test "${enable_silent_rules+set}" = set; then :
2895 enableval=$enable_silent_rules;
2896fi
2897
2898case $enable_silent_rules in # (((
2899 yes) AM_DEFAULT_VERBOSITY=0;;
2900 no) AM_DEFAULT_VERBOSITY=1;;
2901 *) AM_DEFAULT_VERBOSITY=1;;
2902esac
2903am_make=${MAKE-make}
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2905$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2906if ${am_cv_make_support_nested_variables+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908else
2909 if $as_echo 'TRUE=$(BAR$(V))
2910BAR0=false
2911BAR1=true
2912V=1
2913am__doit:
2914 @$(TRUE)
2915.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2916 am_cv_make_support_nested_variables=yes
2917else
2918 am_cv_make_support_nested_variables=no
2919fi
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2922$as_echo "$am_cv_make_support_nested_variables" >&6; }
2923if test $am_cv_make_support_nested_variables = yes; then
2924 AM_V='$(V)'
2925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2926else
2927 AM_V=$AM_DEFAULT_VERBOSITY
2928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2929fi
2930AM_BACKSLASH='\'
2931
2932if test "`cd $srcdir && pwd`" != "`pwd`"; then
2933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2934 # is not polluted with repeated "-I."
2935 am__isrc=' -I$(srcdir)'
2936 # test to see if srcdir already configured
2937 if test -f $srcdir/config.status; then
2938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2939 fi
2940fi
2941
2942# test whether we have cygpath
2943if test -z "$CYGPATH_W"; then
2944 if (cygpath --version) >/dev/null 2>/dev/null; then
2945 CYGPATH_W='cygpath -w'
2946 else
2947 CYGPATH_W=echo
2948 fi
2949fi
2950
2951
2952# Define the identity of the package.
2953 PACKAGE='opcodes'
2954 VERSION='2.44.50'
2955
2956
2957cat >>confdefs.h <<_ACEOF
2958#define PACKAGE "$PACKAGE"
2959_ACEOF
2960
2961
2962cat >>confdefs.h <<_ACEOF
2963#define VERSION "$VERSION"
2964_ACEOF
2965
2966# Some tools Automake needs.
2967
2968ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2969
2970
2971AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2972
2973
2974AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2975
2976
2977AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2978
2979
2980MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2981
2982# For better backward compatibility. To be removed once Automake 1.9.x
2983# dies out for good. For more background, see:
2984# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2985# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2986mkdir_p='$(MKDIR_P)'
2987
2988# We need awk for the "check" target (and possibly the TAP driver). The
2989# system "awk" is bad on some platforms.
2990# Always define AMTAR for backward compatibility. Yes, it's still used
2991# in the wild :-( We should find a proper way to deprecate it ...
2992AMTAR='$${TAR-tar}'
2993
2994
2995# We'll loop over all known methods to create a tar archive until one works.
2996_am_tools='gnutar pax cpio none'
2997
2998am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2999
3000
3001
3002
3003
3004
3005# POSIX will say in a future version that running "rm -f" with no argument
3006# is OK; and we want to be able to make that assumption in our Makefile
3007# recipes. So use an aggressive probe to check that the usage we want is
3008# actually supported "in the wild" to an acceptable degree.
3009# See automake bug#10828.
3010# To make any issue more visible, cause the running configure to be aborted
3011# by default if the 'rm' program in use doesn't match our expectations; the
3012# user can still override this though.
3013if rm -f && rm -fr && rm -rf; then : OK; else
3014 cat >&2 <<'END'
3015Oops!
3016
3017Your 'rm' program seems unable to run without file operands specified
3018on the command line, even when the '-f' option is present. This is contrary
3019to the behaviour of most rm programs out there, and not conforming with
3020the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3021
3022Please tell bug-automake@gnu.org about your system, including the value
3023of your $PATH and any error possibly output before this message. This
3024can help us improve future automake versions.
3025
3026END
3027 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3028 echo 'Configuration will proceed anyway, since you have set the' >&2
3029 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3030 echo >&2
3031 else
3032 cat >&2 <<'END'
3033Aborting the configuration process, to ensure you take notice of the issue.
3034
3035You can download and install GNU coreutils to get an 'rm' implementation
3036that behaves properly: <http://www.gnu.org/software/coreutils/>.
3037
3038If you want to complete the configuration process using your problematic
3039'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3040to "yes", and re-run configure.
3041
3042END
3043 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3044 fi
3045fi
3046
3047# Check whether --enable-silent-rules was given.
3048if test "${enable_silent_rules+set}" = set; then :
3049 enableval=$enable_silent_rules;
3050fi
3051
3052case $enable_silent_rules in # (((
3053 yes) AM_DEFAULT_VERBOSITY=0;;
3054 no) AM_DEFAULT_VERBOSITY=1;;
3055 *) AM_DEFAULT_VERBOSITY=0;;
3056esac
3057am_make=${MAKE-make}
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3059$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3060if ${am_cv_make_support_nested_variables+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062else
3063 if $as_echo 'TRUE=$(BAR$(V))
3064BAR0=false
3065BAR1=true
3066V=1
3067am__doit:
3068 @$(TRUE)
3069.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3070 am_cv_make_support_nested_variables=yes
3071else
3072 am_cv_make_support_nested_variables=no
3073fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3076$as_echo "$am_cv_make_support_nested_variables" >&6; }
3077if test $am_cv_make_support_nested_variables = yes; then
3078 AM_V='$(V)'
3079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080else
3081 AM_V=$AM_DEFAULT_VERBOSITY
3082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3083fi
3084AM_BACKSLASH='\'
3085
3086
3087ac_ext=c
3088ac_cpp='$CPP $CPPFLAGS'
3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130fi
3131if test -z "$ac_cv_prog_CC"; then
3132 ac_ct_CC=$CC
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134set dummy gcc; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154done
3155 done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163$as_echo "$ac_ct_CC" >&6; }
3164else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173yes:)
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176ac_tool_warned=yes ;;
3177esac
3178 CC=$ac_ct_CC
3179 fi
3180else
3181 CC="$ac_cv_prog_CC"
3182fi
3183
3184if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187set dummy ${ac_tool_prefix}cc; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208 done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223 fi
3224fi
3225if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227set dummy cc; ac_word=$2
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235else
3236 ac_prog_rejected=no
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3246 continue
3247 fi
3248 ac_cv_prog_CC="cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252done
3253 done
3254IFS=$as_save_IFS
3255
3256if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3259 shift
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3264 shift
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266 fi
3267fi
3268fi
3269fi
3270CC=$ac_cv_prog_CC
3271if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273$as_echo "$CC" >&6; }
3274else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277fi
3278
3279
3280fi
3281if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3284 do
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306done
3307 done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312CC=$ac_cv_prog_CC
3313if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315$as_echo "$CC" >&6; }
3316else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321
3322 test -n "$CC" && break
3323 done
3324fi
3325if test -z "$CC"; then
3326 ac_ct_CC=$CC
3327 for ac_prog in cl.exe
3328do
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330set dummy $ac_prog; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350done
3351 done
3352IFS=$as_save_IFS
3353
3354fi
3355fi
3356ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359$as_echo "$ac_ct_CC" >&6; }
3360else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365
3366 test -n "$ac_ct_CC" && break
3367done
3368
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373yes:)
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376ac_tool_warned=yes ;;
3377esac
3378 CC=$ac_ct_CC
3379 fi
3380fi
3381
3382fi
3383
3384
3385test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "no acceptable C compiler found in \$PATH
3388See \`config.log' for more details" "$LINENO" 5; }
3389
3390# Provide some information about the compiler.
3391$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392set X $ac_compile
3393ac_compiler=$2
3394for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403 ac_status=$?
3404 if test -s conftest.err; then
3405 sed '10a\
3406... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3409 fi
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413done
3414
3415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h. */
3417
3418int
3419main ()
3420{
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426ac_clean_files_save=$ac_clean_files
3427ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428# Try to create an executable without -o first, disregard a.out.
3429# It will help us diagnose broken compilers, and finding out an intuition
3430# of exeext.
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432$as_echo_n "checking whether the C compiler works... " >&6; }
3433ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435# The possible output files:
3436ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438ac_rmfiles=
3439for ac_file in $ac_files
3440do
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445done
3446rm -f $ac_rmfiles
3447
3448if { { ac_try="$ac_link_default"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461# in a Makefile. We should not override ac_cv_exeext if it was cached,
3462# so that the user can short-circuit this test for compilers unknown to
3463# Autoconf.
3464for ac_file in $ac_files ''
3465do
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469 ;;
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 fi
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3485 * )
3486 break;;
3487 esac
3488done
3489test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491else
3492 ac_file=''
3493fi
3494if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497$as_echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error 77 "C compiler cannot create executables
3503See \`config.log' for more details" "$LINENO" 5; }
3504else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506$as_echo "yes" >&6; }
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509$as_echo_n "checking for C compiler default output file name... " >&6; }
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511$as_echo "$ac_file" >&6; }
3512ac_exeext=$ac_cv_exeext
3513
3514rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515ac_clean_files=$ac_clean_files_save
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517$as_echo_n "checking for suffix of executables... " >&6; }
3518if { { ac_try="$ac_link"
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524$as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531# work properly (i.e., refer to `conftest.exe'), while it won't with
3532# `rm'.
3533for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 break;;
3539 * ) break;;
3540 esac
3541done
3542else
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546See \`config.log' for more details" "$LINENO" 5; }
3547fi
3548rm -f conftest conftest$ac_cv_exeext
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550$as_echo "$ac_cv_exeext" >&6; }
3551
3552rm -f conftest.$ac_ext
3553EXEEXT=$ac_cv_exeext
3554ac_exeext=$EXEEXT
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h. */
3557#include <stdio.h>
3558int
3559main ()
3560{
3561FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568ac_clean_files="$ac_clean_files conftest.out"
3569# Check that the compiler produces executables we can run. If not, either
3570# the compiler is broken, or we cross compile.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572$as_echo_n "checking whether we are cross compiling... " >&6; }
3573if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589esac
3590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591$as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3596 cross_compiling=no
3597 else
3598 if test "$cross_compiling" = maybe; then
3599 cross_compiling=yes
3600 else
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603as_fn_error $? "cannot run C compiled programs.
3604If you meant to cross compile, use \`--host'.
3605See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 fi
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610$as_echo "$cross_compiling" >&6; }
3611
3612rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613ac_clean_files=$ac_clean_files_save
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615$as_echo_n "checking for suffix of object files... " >&6; }
3616if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h. */
3621
3622int
3623main ()
3624{
3625
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630rm -f conftest.o conftest.obj
3631if { { ac_try="$ac_compile"
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637$as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647 break;;
3648 esac
3649done
3650else
3651 $as_echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error $? "cannot compute suffix of object files: cannot compile
3657See \`config.log' for more details" "$LINENO" 5; }
3658fi
3659rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662$as_echo "$ac_cv_objext" >&6; }
3663OBJEXT=$ac_cv_objext
3664ac_objext=$OBJEXT
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h. */
3672
3673int
3674main ()
3675{
3676#ifndef __GNUC__
3677 choke me
3678#endif
3679
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686else
3687 ac_compiler_gnu=no
3688fi
3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697else
3698 GCC=
3699fi
3700ac_test_CFLAGS=${CFLAGS+set}
3701ac_save_CFLAGS=$CFLAGS
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703$as_echo_n "checking whether $CC accepts -g... " >&6; }
3704if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713
3714int
3715main ()
3716{
3717
3718 ;
3719 return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724else
3725 CFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728
3729int
3730main ()
3731{
3732
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737if ac_fn_c_try_compile "$LINENO"; then :
3738
3739else
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744
3745int
3746main ()
3747{
3748
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755fi
3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757fi
3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759fi
3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764$as_echo "$ac_cv_prog_cc_g" >&6; }
3765if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3769 CFLAGS="-g -O2"
3770 else
3771 CFLAGS="-g"
3772 fi
3773else
3774 if test "$GCC" = yes; then
3775 CFLAGS="-O2"
3776 else
3777 CFLAGS=
3778 fi
3779fi
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 ac_cv_prog_cc_c89=no
3786ac_save_CC=$CC
3787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789#include <stdarg.h>
3790#include <stdio.h>
3791struct stat;
3792/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793struct buf { int x; };
3794FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795static char *e (p, i)
3796 char **p;
3797 int i;
3798{
3799 return p[i];
3800}
3801static char *f (char * (*g) (char **, int), char **p, ...)
3802{
3803 char *s;
3804 va_list v;
3805 va_start (v,p);
3806 s = g (p, va_arg (v,int));
3807 va_end (v);
3808 return s;
3809}
3810
3811/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819
3820/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3822#define FOO(x) 'x'
3823int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824
3825int test (int i, double x);
3826struct s1 {int (*f) (int a);};
3827struct s2 {int (*f) (double a);};
3828int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829int argc;
3830char **argv;
3831int
3832main ()
3833{
3834return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 ;
3836 return 0;
3837}
3838_ACEOF
3839for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841do
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3845fi
3846rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848done
3849rm -f conftest.$ac_ext
3850CC=$ac_save_CC
3851
3852fi
3853# AC_CACHE_VAL
3854case "x$ac_cv_prog_cc_c89" in
3855 x)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857$as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860$as_echo "unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865esac
3866if test "x$ac_cv_prog_cc_c89" != xno; then :
3867
3868fi
3869
3870ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883if ${am_cv_prog_cc_c_o+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h. */
3888
3889int
3890main ()
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897 # Make sure it works both with $CC and with simple cc.
3898 # Following AC_PROG_CC_C_O, we do the test twice because some
3899 # compilers refuse to overwrite an existing .o file with -o,
3900 # though they will create one.
3901 am_cv_prog_cc_c_o=yes
3902 for am_i in 1 2; do
3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } \
3908 && test -f conftest2.$ac_objext; then
3909 : OK
3910 else
3911 am_cv_prog_cc_c_o=no
3912 break
3913 fi
3914 done
3915 rm -f core conftest*
3916 unset am_i
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919$as_echo "$am_cv_prog_cc_c_o" >&6; }
3920if test "$am_cv_prog_cc_c_o" != yes; then
3921 # Losing compiler, so override with the script.
3922 # FIXME: It is wrong to rewrite CC.
3923 # But if we don't then we get into trouble of one sort or another.
3924 # A longer-term fix would be to have automake use am__CC in this case,
3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926 CC="$am_aux_dir/compile $CC"
3927fi
3928ac_ext=c
3929ac_cpp='$CPP $CPPFLAGS'
3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934DEPDIR="${am__leading_dot}deps"
3935
3936ac_config_commands="$ac_config_commands depfiles"
3937
3938
3939am_make=${MAKE-make}
3940cat > confinc << 'END'
3941am__doit:
3942 @echo this is the am__doit target
3943.PHONY: am__doit
3944END
3945# If we don't find an include directive, just comment out the code.
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947$as_echo_n "checking for style of include used by $am_make... " >&6; }
3948am__include="#"
3949am__quote=
3950_am_result=none
3951# First try GNU make style include.
3952echo "include confinc" > confmf
3953# Ignore all kinds of additional output from 'make'.
3954case `$am_make -s -f confmf 2> /dev/null` in #(
3955*the\ am__doit\ target*)
3956 am__include=include
3957 am__quote=
3958 _am_result=GNU
3959 ;;
3960esac
3961# Now try BSD make style include.
3962if test "$am__include" = "#"; then
3963 echo '.include "confinc"' > confmf
3964 case `$am_make -s -f confmf 2> /dev/null` in #(
3965 *the\ am__doit\ target*)
3966 am__include=.include
3967 am__quote="\""
3968 _am_result=BSD
3969 ;;
3970 esac
3971fi
3972
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975$as_echo "$_am_result" >&6; }
3976rm -f confinc confmf
3977
3978# Check whether --enable-dependency-tracking was given.
3979if test "${enable_dependency_tracking+set}" = set; then :
3980 enableval=$enable_dependency_tracking;
3981fi
3982
3983if test "x$enable_dependency_tracking" != xno; then
3984 am_depcomp="$ac_aux_dir/depcomp"
3985 AMDEPBACKSLASH='\'
3986 am__nodep='_no'
3987fi
3988 if test "x$enable_dependency_tracking" != xno; then
3989 AMDEP_TRUE=
3990 AMDEP_FALSE='#'
3991else
3992 AMDEP_TRUE='#'
3993 AMDEP_FALSE=
3994fi
3995
3996
3997
3998depcc="$CC" am_compiler_list=
3999
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4001$as_echo_n "checking dependency style of $depcc... " >&6; }
4002if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006 # We make a subdir and do the tests there. Otherwise we can end up
4007 # making bogus files that we don't know about and never remove. For
4008 # instance it was reported that on HP-UX the gcc test will end up
4009 # making a dummy file named 'D' -- because '-MD' means "put the output
4010 # in D".
4011 rm -rf conftest.dir
4012 mkdir conftest.dir
4013 # Copy depcomp to subdir because otherwise we won't find it if we're
4014 # using a relative directory.
4015 cp "$am_depcomp" conftest.dir
4016 cd conftest.dir
4017 # We will build objects and dependencies in a subdirectory because
4018 # it helps to detect inapplicable dependency modes. For instance
4019 # both Tru64's cc and ICC support -MD to output dependencies as a
4020 # side effect of compilation, but ICC will put the dependencies in
4021 # the current directory while Tru64 will put them in the object
4022 # directory.
4023 mkdir sub
4024
4025 am_cv_CC_dependencies_compiler_type=none
4026 if test "$am_compiler_list" = ""; then
4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 fi
4029 am__universal=false
4030 case " $depcc " in #(
4031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4032 esac
4033
4034 for depmode in $am_compiler_list; do
4035 # Setup a source with many dependencies, because some compilers
4036 # like to wrap large dependency lists on column 80 (with \), and
4037 # we should not choose a depcomp mode which is confused by this.
4038 #
4039 # We need to recreate these files for each test, as the compiler may
4040 # overwrite some of them when testing with obscure command lines.
4041 # This happens at least with the AIX C compiler.
4042 : > sub/conftest.c
4043 for i in 1 2 3 4 5 6; do
4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4046 # Solaris 10 /bin/sh.
4047 echo '/* dummy */' > sub/conftst$i.h
4048 done
4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4050
4051 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4052 # mode. It turns out that the SunPro C++ compiler does not properly
4053 # handle '-M -o', and we need to detect this. Also, some Intel
4054 # versions had trouble with output in subdirs.
4055 am__obj=sub/conftest.${OBJEXT-o}
4056 am__minus_obj="-o $am__obj"
4057 case $depmode in
4058 gcc)
4059 # This depmode causes a compiler race in universal mode.
4060 test "$am__universal" = false || continue
4061 ;;
4062 nosideeffect)
4063 # After this tag, mechanisms are not by side-effect, so they'll
4064 # only be used when explicitly requested.
4065 if test "x$enable_dependency_tracking" = xyes; then
4066 continue
4067 else
4068 break
4069 fi
4070 ;;
4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4072 # This compiler won't grok '-c -o', but also, the minuso test has
4073 # not run yet. These depmodes are late enough in the game, and
4074 # so weak that their functioning should not be impacted.
4075 am__obj=conftest.${OBJEXT-o}
4076 am__minus_obj=
4077 ;;
4078 none) break ;;
4079 esac
4080 if depmode=$depmode \
4081 source=sub/conftest.c object=$am__obj \
4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4084 >/dev/null 2>conftest.err &&
4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089 # icc doesn't choke on unknown options, it will just issue warnings
4090 # or remarks (even with -Werror). So we grep stderr for any message
4091 # that says an option was ignored or not supported.
4092 # When given -MP, icc 7.0 and 7.1 complain thusly:
4093 # icc: Command line warning: ignoring option '-M'; no argument required
4094 # The diagnosis changed in icc 8.0:
4095 # icc: Command line remark: option '-MP' not supported
4096 if (grep 'ignoring option' conftest.err ||
4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098 am_cv_CC_dependencies_compiler_type=$depmode
4099 break
4100 fi
4101 fi
4102 done
4103
4104 cd ..
4105 rm -rf conftest.dir
4106else
4107 am_cv_CC_dependencies_compiler_type=none
4108fi
4109
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4112$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4113CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114
4115 if
4116 test "x$enable_dependency_tracking" != xno \
4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4118 am__fastdepCC_TRUE=
4119 am__fastdepCC_FALSE='#'
4120else
4121 am__fastdepCC_TRUE='#'
4122 am__fastdepCC_FALSE=
4123fi
4124
4125
4126
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133$as_echo_n "checking how to run the C preprocessor... " >&6; }
4134# On Suns, sometimes $CPP names a directory.
4135if test -n "$CPP" && test -d "$CPP"; then
4136 CPP=
4137fi
4138if test -z "$CPP"; then
4139 if ${ac_cv_prog_CPP+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141else
4142 # Double quotes because CPP needs to be expanded
4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4144 do
4145 ac_preproc_ok=false
4146for ac_c_preproc_warn_flag in '' yes
4147do
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155/* end confdefs.h. */
4156#ifdef __STDC__
4157# include <limits.h>
4158#else
4159# include <assert.h>
4160#endif
4161 Syntax error
4162_ACEOF
4163if ac_fn_c_try_cpp "$LINENO"; then :
4164
4165else
4166 # Broken: fails on valid input.
4167continue
4168fi
4169rm -f conftest.err conftest.i conftest.$ac_ext
4170
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h. */
4175#include <ac_nonexistent.h>
4176_ACEOF
4177if ac_fn_c_try_cpp "$LINENO"; then :
4178 # Broken: success on invalid input.
4179continue
4180else
4181 # Passes both tests.
4182ac_preproc_ok=:
4183break
4184fi
4185rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187done
4188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189rm -f conftest.i conftest.err conftest.$ac_ext
4190if $ac_preproc_ok; then :
4191 break
4192fi
4193
4194 done
4195 ac_cv_prog_CPP=$CPP
4196
4197fi
4198 CPP=$ac_cv_prog_CPP
4199else
4200 ac_cv_prog_CPP=$CPP
4201fi
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203$as_echo "$CPP" >&6; }
4204ac_preproc_ok=false
4205for ac_c_preproc_warn_flag in '' yes
4206do
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h. */
4215#ifdef __STDC__
4216# include <limits.h>
4217#else
4218# include <assert.h>
4219#endif
4220 Syntax error
4221_ACEOF
4222if ac_fn_c_try_cpp "$LINENO"; then :
4223
4224else
4225 # Broken: fails on valid input.
4226continue
4227fi
4228rm -f conftest.err conftest.i conftest.$ac_ext
4229
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234#include <ac_nonexistent.h>
4235_ACEOF
4236if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4238continue
4239else
4240 # Passes both tests.
4241ac_preproc_ok=:
4242break
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246done
4247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248rm -f conftest.i conftest.err conftest.$ac_ext
4249if $ac_preproc_ok; then :
4250
4251else
4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255See \`config.log' for more details" "$LINENO" 5; }
4256fi
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4266$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4267if ${ac_cv_path_GREP+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -z "$GREP"; then
4271 ac_path_GREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in grep ggrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_GREP" || continue
4282# Check for GNU ac_path_GREP and select it if it is found.
4283 # Check for GNU $ac_path_GREP
4284case `"$ac_path_GREP" --version 2>&1` in
4285*GNU*)
4286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4287*)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'GREP' >> "conftest.nl"
4296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_GREP="$ac_path_GREP"
4302 ac_path_GREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308esac
4309
4310 $ac_path_GREP_found && break 3
4311 done
4312 done
4313 done
4314IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_GREP"; then
4316 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318else
4319 ac_cv_path_GREP=$GREP
4320fi
4321
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4324$as_echo "$ac_cv_path_GREP" >&6; }
4325 GREP="$ac_cv_path_GREP"
4326
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4329$as_echo_n "checking for egrep... " >&6; }
4330if ${ac_cv_path_EGREP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332else
4333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4334 then ac_cv_path_EGREP="$GREP -E"
4335 else
4336 if test -z "$EGREP"; then
4337 ac_path_EGREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in egrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4347 as_fn_executable_p "$ac_path_EGREP" || continue
4348# Check for GNU ac_path_EGREP and select it if it is found.
4349 # Check for GNU $ac_path_EGREP
4350case `"$ac_path_EGREP" --version 2>&1` in
4351*GNU*)
4352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4353*)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'EGREP' >> "conftest.nl"
4362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_EGREP="$ac_path_EGREP"
4368 ac_path_EGREP_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374esac
4375
4376 $ac_path_EGREP_found && break 3
4377 done
4378 done
4379 done
4380IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_EGREP"; then
4382 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 fi
4384else
4385 ac_cv_path_EGREP=$EGREP
4386fi
4387
4388 fi
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4391$as_echo "$ac_cv_path_EGREP" >&6; }
4392 EGREP="$ac_cv_path_EGREP"
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4396$as_echo_n "checking for ANSI C header files... " >&6; }
4397if ${ac_cv_header_stdc+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h. */
4402#include <stdlib.h>
4403#include <stdarg.h>
4404#include <string.h>
4405#include <float.h>
4406
4407int
4408main ()
4409{
4410
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_header_stdc=yes
4417else
4418 ac_cv_header_stdc=no
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421
4422if test $ac_cv_header_stdc = yes; then
4423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h. */
4426#include <string.h>
4427
4428_ACEOF
4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "memchr" >/dev/null 2>&1; then :
4431
4432else
4433 ac_cv_header_stdc=no
4434fi
4435rm -f conftest*
4436
4437fi
4438
4439if test $ac_cv_header_stdc = yes; then
4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h. */
4443#include <stdlib.h>
4444
4445_ACEOF
4446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447 $EGREP "free" >/dev/null 2>&1; then :
4448
4449else
4450 ac_cv_header_stdc=no
4451fi
4452rm -f conftest*
4453
4454fi
4455
4456if test $ac_cv_header_stdc = yes; then
4457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4458 if test "$cross_compiling" = yes; then :
4459 :
4460else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463#include <ctype.h>
4464#include <stdlib.h>
4465#if ((' ' & 0x0FF) == 0x020)
4466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4468#else
4469# define ISLOWER(c) \
4470 (('a' <= (c) && (c) <= 'i') \
4471 || ('j' <= (c) && (c) <= 'r') \
4472 || ('s' <= (c) && (c) <= 'z'))
4473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4474#endif
4475
4476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4477int
4478main ()
4479{
4480 int i;
4481 for (i = 0; i < 256; i++)
4482 if (XOR (islower (i), ISLOWER (i))
4483 || toupper (i) != TOUPPER (i))
4484 return 2;
4485 return 0;
4486}
4487_ACEOF
4488if ac_fn_c_try_run "$LINENO"; then :
4489
4490else
4491 ac_cv_header_stdc=no
4492fi
4493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4494 conftest.$ac_objext conftest.beam conftest.$ac_ext
4495fi
4496
4497fi
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4500$as_echo "$ac_cv_header_stdc" >&6; }
4501if test $ac_cv_header_stdc = yes; then
4502
4503$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4504
4505fi
4506
4507# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4508for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4509 inttypes.h stdint.h unistd.h
4510do :
4511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4512ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4513"
4514if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4515 cat >>confdefs.h <<_ACEOF
4516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4517_ACEOF
4518
4519fi
4520
4521done
4522
4523
4524
4525 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4526if test "x$ac_cv_header_minix_config_h" = xyes; then :
4527 MINIX=yes
4528else
4529 MINIX=
4530fi
4531
4532
4533 if test "$MINIX" = yes; then
4534
4535$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4536
4537
4538$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4539
4540
4541$as_echo "#define _MINIX 1" >>confdefs.h
4542
4543 fi
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4547$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4548if ${ac_cv_safe_to_define___extensions__+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553
4554# define __EXTENSIONS__ 1
4555 $ac_includes_default
4556int
4557main ()
4558{
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_safe_to_define___extensions__=yes
4566else
4567 ac_cv_safe_to_define___extensions__=no
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4572$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4573 test $ac_cv_safe_to_define___extensions__ = yes &&
4574 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4575
4576 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4577
4578 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4579
4580 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4581
4582 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4583
4584
4585
4586if test -n "$ac_tool_prefix"; then
4587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4588set dummy ${ac_tool_prefix}ar; 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_AR+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593else
4594 if test -n "$AR"; then
4595 ac_cv_prog_AR="$AR" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_AR="${ac_tool_prefix}ar"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608done
4609 done
4610IFS=$as_save_IFS
4611
4612fi
4613fi
4614AR=$ac_cv_prog_AR
4615if test -n "$AR"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4617$as_echo "$AR" >&6; }
4618else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622
4623
4624fi
4625if test -z "$ac_cv_prog_AR"; then
4626 ac_ct_AR=$AR
4627 # Extract the first word of "ar", so it can be a program name with args.
4628set dummy ar; ac_word=$2
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630$as_echo_n "checking for $ac_word... " >&6; }
4631if ${ac_cv_prog_ac_ct_AR+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633else
4634 if test -n "$ac_ct_AR"; then
4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_ac_ct_AR="ar"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648done
4649 done
4650IFS=$as_save_IFS
4651
4652fi
4653fi
4654ac_ct_AR=$ac_cv_prog_ac_ct_AR
4655if test -n "$ac_ct_AR"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4657$as_echo "$ac_ct_AR" >&6; }
4658else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660$as_echo "no" >&6; }
4661fi
4662
4663 if test "x$ac_ct_AR" = x; then
4664 AR=""
4665 else
4666 case $cross_compiling:$ac_tool_warned in
4667yes:)
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4670ac_tool_warned=yes ;;
4671esac
4672 AR=$ac_ct_AR
4673 fi
4674else
4675 AR="$ac_cv_prog_AR"
4676fi
4677
4678if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if ${ac_cv_prog_RANLIB+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685else
4686 if test -n "$RANLIB"; then
4687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700done
4701 done
4702IFS=$as_save_IFS
4703
4704fi
4705fi
4706RANLIB=$ac_cv_prog_RANLIB
4707if test -n "$RANLIB"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4709$as_echo "$RANLIB" >&6; }
4710else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715
4716fi
4717if test -z "$ac_cv_prog_RANLIB"; then
4718 ac_ct_RANLIB=$RANLIB
4719 # Extract the first word of "ranlib", so it can be a program name with args.
4720set dummy ranlib; ac_word=$2
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722$as_echo_n "checking for $ac_word... " >&6; }
4723if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725else
4726 if test -n "$ac_ct_RANLIB"; then
4727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4728else
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736 ac_cv_prog_ac_ct_RANLIB="ranlib"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740done
4741 done
4742IFS=$as_save_IFS
4743
4744fi
4745fi
4746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4747if test -n "$ac_ct_RANLIB"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4749$as_echo "$ac_ct_RANLIB" >&6; }
4750else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752$as_echo "no" >&6; }
4753fi
4754
4755 if test "x$ac_ct_RANLIB" = x; then
4756 RANLIB=":"
4757 else
4758 case $cross_compiling:$ac_tool_warned in
4759yes:)
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762ac_tool_warned=yes ;;
4763esac
4764 RANLIB=$ac_ct_RANLIB
4765 fi
4766else
4767 RANLIB="$ac_cv_prog_RANLIB"
4768fi
4769
4770
4771# Check whether --enable-shared was given.
4772if test "${enable_shared+set}" = set; then :
4773 enableval=$enable_shared; p=${PACKAGE-default}
4774 case $enableval in
4775 yes) enable_shared=yes ;;
4776 no) enable_shared=no ;;
4777 *)
4778 enable_shared=no
4779 # Look at the argument we got. We use all the common list separators.
4780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4781 for pkg in $enableval; do
4782 IFS="$lt_save_ifs"
4783 if test "X$pkg" = "X$p"; then
4784 enable_shared=yes
4785 fi
4786 done
4787 IFS="$lt_save_ifs"
4788 ;;
4789 esac
4790else
4791 enable_shared=no
4792fi
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803case `pwd` in
4804 *\ * | *\ *)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4806$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4807esac
4808
4809
4810
4811macro_version='2.2.7a'
4812macro_revision='1.3134'
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826ltmain="$ac_aux_dir/ltmain.sh"
4827
4828# Backslashify metacharacters that are still active within
4829# double-quoted strings.
4830sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4831
4832# Same as above, but do not quote variable references.
4833double_quote_subst='s/\(["`\\]\)/\\\1/g'
4834
4835# Sed substitution to delay expansion of an escaped shell variable in a
4836# double_quote_subst'ed string.
4837delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4838
4839# Sed substitution to delay expansion of an escaped single quote.
4840delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4841
4842# Sed substitution to avoid accidental globbing in evaled expressions
4843no_glob_subst='s/\*/\\\*/g'
4844
4845ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4846ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4847ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4850$as_echo_n "checking how to print strings... " >&6; }
4851# Test print first, because it will be a builtin if present.
4852if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4853 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4854 ECHO='print -r --'
4855elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4856 ECHO='printf %s\n'
4857else
4858 # Use this function as a fallback that always works.
4859 func_fallback_echo ()
4860 {
4861 eval 'cat <<_LTECHO_EOF
4862$1
4863_LTECHO_EOF'
4864 }
4865 ECHO='func_fallback_echo'
4866fi
4867
4868# func_echo_all arg...
4869# Invoke $ECHO with all args, space-separated.
4870func_echo_all ()
4871{
4872 $ECHO ""
4873}
4874
4875case "$ECHO" in
4876 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4877$as_echo "printf" >&6; } ;;
4878 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4879$as_echo "print -r" >&6; } ;;
4880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4881$as_echo "cat" >&6; } ;;
4882esac
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4898$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4899if ${ac_cv_path_SED+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4903 for ac_i in 1 2 3 4 5 6 7; do
4904 ac_script="$ac_script$as_nl$ac_script"
4905 done
4906 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4907 { ac_script=; unset ac_script;}
4908 if test -z "$SED"; then
4909 ac_path_SED_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in sed gsed; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_SED" || continue
4920# Check for GNU ac_path_SED and select it if it is found.
4921 # Check for GNU $ac_path_SED
4922case `"$ac_path_SED" --version 2>&1` in
4923*GNU*)
4924 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4925*)
4926 ac_count=0
4927 $as_echo_n 0123456789 >"conftest.in"
4928 while :
4929 do
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo '' >> "conftest.nl"
4934 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_SED_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_SED="$ac_path_SED"
4940 ac_path_SED_max=$ac_count
4941 fi
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4944 done
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946esac
4947
4948 $ac_path_SED_found && break 3
4949 done
4950 done
4951 done
4952IFS=$as_save_IFS
4953 if test -z "$ac_cv_path_SED"; then
4954 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4955 fi
4956else
4957 ac_cv_path_SED=$SED
4958fi
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4962$as_echo "$ac_cv_path_SED" >&6; }
4963 SED="$ac_cv_path_SED"
4964 rm -f conftest.sed
4965
4966test -z "$SED" && SED=sed
4967Xsed="$SED -e 1s/^X//"
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4980$as_echo_n "checking for fgrep... " >&6; }
4981if ${ac_cv_path_FGREP+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985 then ac_cv_path_FGREP="$GREP -F"
4986 else
4987 if test -z "$FGREP"; then
4988 ac_path_FGREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in fgrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4998 as_fn_executable_p "$ac_path_FGREP" || continue
4999# Check for GNU ac_path_FGREP and select it if it is found.
5000 # Check for GNU $ac_path_FGREP
5001case `"$ac_path_FGREP" --version 2>&1` in
5002*GNU*)
5003 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5004*)
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5008 do
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'FGREP' >> "conftest.nl"
5013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_FGREP="$ac_path_FGREP"
5019 ac_path_FGREP_max=$ac_count
5020 fi
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025esac
5026
5027 $ac_path_FGREP_found && break 3
5028 done
5029 done
5030 done
5031IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_FGREP"; then
5033 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 fi
5035else
5036 ac_cv_path_FGREP=$FGREP
5037fi
5038
5039 fi
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042$as_echo "$ac_cv_path_FGREP" >&6; }
5043 FGREP="$ac_cv_path_FGREP"
5044
5045
5046test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066# Check whether --with-gnu-ld was given.
5067if test "${with_gnu_ld+set}" = set; then :
5068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5069else
5070 with_gnu_ld=no
5071fi
5072
5073ac_prog=ld
5074if test "$GCC" = yes; then
5075 # Check if gcc -print-prog-name=ld gives a path.
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5077$as_echo_n "checking for ld used by $CC... " >&6; }
5078 case $host in
5079 *-*-mingw*)
5080 # gcc leaves a trailing carriage return which upsets mingw
5081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5082 *)
5083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5084 esac
5085 case $ac_prog in
5086 # Accept absolute paths.
5087 [\\/]* | ?:[\\/]*)
5088 re_direlt='/[^/][^/]*/\.\./'
5089 # Canonicalize the pathname of ld
5090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5093 done
5094 test -z "$LD" && LD="$ac_prog"
5095 ;;
5096 "")
5097 # If it fails, then pretend we aren't using GCC.
5098 ac_prog=ld
5099 ;;
5100 *)
5101 # If it is relative, then search for the first ld in PATH.
5102 with_gnu_ld=unknown
5103 ;;
5104 esac
5105elif test "$with_gnu_ld" = yes; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5107$as_echo_n "checking for GNU ld... " >&6; }
5108else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5110$as_echo_n "checking for non-GNU ld... " >&6; }
5111fi
5112if ${lt_cv_path_LD+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 if test -z "$LD"; then
5116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5117 for ac_dir in $PATH; do
5118 IFS="$lt_save_ifs"
5119 test -z "$ac_dir" && ac_dir=.
5120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5121 lt_cv_path_LD="$ac_dir/$ac_prog"
5122 # Check to see if the program is GNU ld. I'd rather use --version,
5123 # but apparently some variants of GNU ld only accept -v.
5124 # Break only if it was the GNU/non-GNU ld that we prefer.
5125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5126 *GNU* | *'with BFD'*)
5127 test "$with_gnu_ld" != no && break
5128 ;;
5129 *)
5130 test "$with_gnu_ld" != yes && break
5131 ;;
5132 esac
5133 fi
5134 done
5135 IFS="$lt_save_ifs"
5136else
5137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5138fi
5139fi
5140
5141LD="$lt_cv_path_LD"
5142if test -n "$LD"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144$as_echo "$LD" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5152if ${lt_cv_prog_gnu_ld+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156case `$LD -v 2>&1 </dev/null` in
5157*GNU* | *'with BFD'*)
5158 lt_cv_prog_gnu_ld=yes
5159 ;;
5160*)
5161 lt_cv_prog_gnu_ld=no
5162 ;;
5163esac
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5167with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5178$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5179if ${lt_cv_path_NM+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181else
5182 if test -n "$NM"; then
5183 # Let the user override the nm to test.
5184 lt_nm_to_check="$NM"
5185 else
5186 lt_nm_to_check="${ac_tool_prefix}nm"
5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188 lt_nm_to_check="$lt_nm_to_check nm"
5189 fi
5190 fi
5191 for lt_tmp_nm in "$lt_nm_to_check"; do
5192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5194 IFS="$lt_save_ifs"
5195 test -z "$ac_dir" && ac_dir=.
5196 # Strip out any user-provided options from the nm to test twice,
5197 # the first time to test to see if nm (rather than its options) has
5198 # an explicit path, the second time to yield a file which can be
5199 # nm'ed itself.
5200 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5201 case "$tmp_nm_path" in
5202 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5203 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5204 esac
5205 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5206 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5207 # Check to see if the nm accepts a BSD-compat flag.
5208 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5209 # nm: unknown option "B" ignored
5210 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5211 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5212 break
5213 ;;
5214 *)
5215 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5216 *$tmp_nm*)
5217 lt_cv_path_NM="$tmp_nm -p"
5218 break
5219 ;;
5220 *)
5221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5222 continue # so that we can try to find one that supports BSD flags
5223 ;;
5224 esac
5225 ;;
5226 esac
5227 fi
5228 done
5229 IFS="$lt_save_ifs"
5230 done
5231 : ${lt_cv_path_NM=no}
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5234$as_echo "$lt_cv_path_NM" >&6; }
5235if test "$lt_cv_path_NM" != "no"; then
5236 NM="$lt_cv_path_NM"
5237else
5238 # Didn't find any BSD compatible name lister, look for dumpbin.
5239 if test -n "$DUMPBIN"; then :
5240 # Let the user override the test.
5241 else
5242 if test -n "$ac_tool_prefix"; then
5243 for ac_prog in dumpbin "link -dump"
5244 do
5245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248$as_echo_n "checking for $ac_word... " >&6; }
5249if ${ac_cv_prog_DUMPBIN+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251else
5252 if test -n "$DUMPBIN"; then
5253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266done
5267 done
5268IFS=$as_save_IFS
5269
5270fi
5271fi
5272DUMPBIN=$ac_cv_prog_DUMPBIN
5273if test -n "$DUMPBIN"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5275$as_echo "$DUMPBIN" >&6; }
5276else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279fi
5280
5281
5282 test -n "$DUMPBIN" && break
5283 done
5284fi
5285if test -z "$DUMPBIN"; then
5286 ac_ct_DUMPBIN=$DUMPBIN
5287 for ac_prog in dumpbin "link -dump"
5288do
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290set dummy $ac_prog; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 if test -n "$ac_ct_DUMPBIN"; then
5297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5298else
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310done
5311 done
5312IFS=$as_save_IFS
5313
5314fi
5315fi
5316ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5317if test -n "$ac_ct_DUMPBIN"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5319$as_echo "$ac_ct_DUMPBIN" >&6; }
5320else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325
5326 test -n "$ac_ct_DUMPBIN" && break
5327done
5328
5329 if test "x$ac_ct_DUMPBIN" = x; then
5330 DUMPBIN=":"
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333yes:)
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336ac_tool_warned=yes ;;
5337esac
5338 DUMPBIN=$ac_ct_DUMPBIN
5339 fi
5340fi
5341
5342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5343 *COFF*)
5344 DUMPBIN="$DUMPBIN -symbols"
5345 ;;
5346 *)
5347 DUMPBIN=:
5348 ;;
5349 esac
5350 fi
5351
5352 if test "$DUMPBIN" != ":"; then
5353 NM="$DUMPBIN"
5354 fi
5355fi
5356test -z "$NM" && NM=nm
5357
5358
5359
5360
5361
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5364$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5365if ${lt_cv_nm_interface+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367else
5368 lt_cv_nm_interface="BSD nm"
5369 echo "int some_variable = 0;" > conftest.$ac_ext
5370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5371 (eval "$ac_compile" 2>conftest.err)
5372 cat conftest.err >&5
5373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5375 cat conftest.err >&5
5376 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5377 cat conftest.out >&5
5378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5379 lt_cv_nm_interface="MS dumpbin"
5380 fi
5381 rm -f conftest*
5382fi
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5384$as_echo "$lt_cv_nm_interface" >&6; }
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5387$as_echo_n "checking whether ln -s works... " >&6; }
5388LN_S=$as_ln_s
5389if test "$LN_S" = "ln -s"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391$as_echo "yes" >&6; }
5392else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5394$as_echo "no, using $LN_S" >&6; }
5395fi
5396
5397# find the maximum length of command line arguments
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5399$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5400if ${lt_cv_sys_max_cmd_len+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402else
5403 i=0
5404 teststring="ABCD"
5405
5406 case $build_os in
5407 msdosdjgpp*)
5408 # On DJGPP, this test can blow up pretty badly due to problems in libc
5409 # (any single argument exceeding 2000 bytes causes a buffer overrun
5410 # during glob expansion). Even if it were fixed, the result of this
5411 # check would be larger than it should be.
5412 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5413 ;;
5414
5415 gnu*)
5416 # Under GNU Hurd, this test is not required because there is
5417 # no limit to the length of command line arguments.
5418 # Libtool will interpret -1 as no limit whatsoever
5419 lt_cv_sys_max_cmd_len=-1;
5420 ;;
5421
5422 cygwin* | mingw* | cegcc*)
5423 # On Win9x/ME, this test blows up -- it succeeds, but takes
5424 # about 5 minutes as the teststring grows exponentially.
5425 # Worse, since 9x/ME are not pre-emptively multitasking,
5426 # you end up with a "frozen" computer, even though with patience
5427 # the test eventually succeeds (with a max line length of 256k).
5428 # Instead, let's just punt: use the minimum linelength reported by
5429 # all of the supported platforms: 8192 (on NT/2K/XP).
5430 lt_cv_sys_max_cmd_len=8192;
5431 ;;
5432
5433 mint*)
5434 # On MiNT this can take a long time and run out of memory.
5435 lt_cv_sys_max_cmd_len=8192;
5436 ;;
5437
5438 amigaos*)
5439 # On AmigaOS with pdksh, this test takes hours, literally.
5440 # So we just punt and use a minimum line length of 8192.
5441 lt_cv_sys_max_cmd_len=8192;
5442 ;;
5443
5444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5445 # This has been around since 386BSD, at least. Likely further.
5446 if test -x /sbin/sysctl; then
5447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5448 elif test -x /usr/sbin/sysctl; then
5449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5450 else
5451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5452 fi
5453 # And add a safety zone
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5456 ;;
5457
5458 interix*)
5459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5460 lt_cv_sys_max_cmd_len=196608
5461 ;;
5462
5463 osf*)
5464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5466 # nice to cause kernel panics so lets avoid the loop below.
5467 # First set a reasonable default.
5468 lt_cv_sys_max_cmd_len=16384
5469 #
5470 if test -x /sbin/sysconfig; then
5471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5472 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5473 esac
5474 fi
5475 ;;
5476 sco3.2v5*)
5477 lt_cv_sys_max_cmd_len=102400
5478 ;;
5479 sysv5* | sco5v6* | sysv4.2uw2*)
5480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5481 if test -n "$kargmax"; then
5482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5483 else
5484 lt_cv_sys_max_cmd_len=32768
5485 fi
5486 ;;
5487 *)
5488 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5489 if test -n "$lt_cv_sys_max_cmd_len"; then
5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5492 else
5493 # Make teststring a little bigger before we do anything with it.
5494 # a 1K string should be a reasonable start.
5495 for i in 1 2 3 4 5 6 7 8 ; do
5496 teststring=$teststring$teststring
5497 done
5498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5499 # If test is not a shell built-in, we'll probably end up computing a
5500 # maximum length that is only half of the actual maximum length, but
5501 # we can't tell.
5502 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5503 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5504 test $i != 17 # 1/2 MB should be enough
5505 do
5506 i=`expr $i + 1`
5507 teststring=$teststring$teststring
5508 done
5509 # Only check the string length outside the loop.
5510 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5511 teststring=
5512 # Add a significant safety factor because C++ compilers can tack on
5513 # massive amounts of additional arguments before passing them to the
5514 # linker. It appears as though 1/2 is a usable value.
5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5516 fi
5517 ;;
5518 esac
5519
5520fi
5521
5522if test -n $lt_cv_sys_max_cmd_len ; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5524$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5527$as_echo "none" >&6; }
5528fi
5529max_cmd_len=$lt_cv_sys_max_cmd_len
5530
5531
5532
5533
5534
5535
5536: ${CP="cp -f"}
5537: ${MV="mv -f"}
5538: ${RM="rm -f"}
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5541$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5542# Try some XSI features
5543xsi_shell=no
5544( _lt_dummy="a/b/c"
5545 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5546 = c,a/b,, \
5547 && eval 'test $(( 1 + 1 )) -eq 2 \
5548 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5549 && xsi_shell=yes
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5551$as_echo "$xsi_shell" >&6; }
5552
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5555$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5556lt_shell_append=no
5557( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5558 >/dev/null 2>&1 \
5559 && lt_shell_append=yes
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5561$as_echo "$lt_shell_append" >&6; }
5562
5563
5564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5565 lt_unset=unset
5566else
5567 lt_unset=false
5568fi
5569
5570
5571
5572
5573
5574# test EBCDIC or ASCII
5575case `echo X|tr X '\101'` in
5576 A) # ASCII based system
5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5578 lt_SP2NL='tr \040 \012'
5579 lt_NL2SP='tr \015\012 \040\040'
5580 ;;
5581 *) # EBCDIC based system
5582 lt_SP2NL='tr \100 \n'
5583 lt_NL2SP='tr \r\n \100\100'
5584 ;;
5585esac
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5596$as_echo_n "checking for $LD option to reload object files... " >&6; }
5597if ${lt_cv_ld_reload_flag+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599else
5600 lt_cv_ld_reload_flag='-r'
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5603$as_echo "$lt_cv_ld_reload_flag" >&6; }
5604reload_flag=$lt_cv_ld_reload_flag
5605case $reload_flag in
5606"" | " "*) ;;
5607*) reload_flag=" $reload_flag" ;;
5608esac
5609reload_cmds='$LD$reload_flag -o $output$reload_objs'
5610case $host_os in
5611 darwin*)
5612 if test "$GCC" = yes; then
5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5614 else
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 fi
5617 ;;
5618esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}objdump; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_OBJDUMP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635else
5636 if test -n "$OBJDUMP"; then
5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651 done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656OBJDUMP=$ac_cv_prog_OBJDUMP
5657if test -n "$OBJDUMP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5659$as_echo "$OBJDUMP" >&6; }
5660else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_OBJDUMP"; then
5668 ac_ct_OBJDUMP=$OBJDUMP
5669 # Extract the first word of "objdump", so it can be a program name with args.
5670set dummy objdump; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$ac_ct_OBJDUMP"; then
5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5697if test -n "$ac_ct_OBJDUMP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5699$as_echo "$ac_ct_OBJDUMP" >&6; }
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705 if test "x$ac_ct_OBJDUMP" = x; then
5706 OBJDUMP="false"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714 OBJDUMP=$ac_ct_OBJDUMP
5715 fi
5716else
5717 OBJDUMP="$ac_cv_prog_OBJDUMP"
5718fi
5719
5720test -z "$OBJDUMP" && OBJDUMP=objdump
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5731$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5732if ${lt_cv_deplibs_check_method+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 lt_cv_file_magic_cmd='$MAGIC_CMD'
5736lt_cv_file_magic_test_file=
5737lt_cv_deplibs_check_method='unknown'
5738# Need to set the preceding variable on all platforms that support
5739# interlibrary dependencies.
5740# 'none' -- dependencies not supported.
5741# `unknown' -- same as none, but documents that we really don't know.
5742# 'pass_all' -- all dependencies passed with no checks.
5743# 'test_compile' -- check by making test program.
5744# 'file_magic [[regex]]' -- check by looking for files in library path
5745# which responds to the $file_magic_cmd with a given extended regex.
5746# If you have `file' or equivalent on your system and you're not sure
5747# whether `pass_all' will *always* work, you probably want this one.
5748
5749case $host_os in
5750aix[4-9]*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754beos*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758bsdi[45]*)
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5760 lt_cv_file_magic_cmd='/usr/bin/file -L'
5761 lt_cv_file_magic_test_file=/shlib/libc.so
5762 ;;
5763
5764cygwin*)
5765 # func_win32_libid is a shell function defined in ltmain.sh
5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5767 lt_cv_file_magic_cmd='func_win32_libid'
5768 ;;
5769
5770mingw* | pw32*)
5771 # Base MSYS/MinGW do not provide the 'file' command needed by
5772 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5773 # unless we find 'file', for example because we are cross-compiling.
5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5777 lt_cv_file_magic_cmd='func_win32_libid'
5778 else
5779 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5780 lt_cv_file_magic_cmd='$OBJDUMP -f'
5781 fi
5782 ;;
5783
5784cegcc*)
5785 # use the weaker test based on 'objdump'. See mingw*.
5786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5788 ;;
5789
5790darwin* | rhapsody*)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793
5794freebsd* | dragonfly*)
5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5796 case $host_cpu in
5797 i*86 )
5798 # Not sure whether the presence of OpenBSD here was a mistake.
5799 # Let's accept both of them until this is cleared up.
5800 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5801 lt_cv_file_magic_cmd=/usr/bin/file
5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5803 ;;
5804 esac
5805 else
5806 lt_cv_deplibs_check_method=pass_all
5807 fi
5808 ;;
5809
5810gnu*)
5811 lt_cv_deplibs_check_method=pass_all
5812 ;;
5813
5814haiku*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818hpux10.20* | hpux11*)
5819 lt_cv_file_magic_cmd=/usr/bin/file
5820 case $host_cpu in
5821 ia64*)
5822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5823 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5824 ;;
5825 hppa*64*)
5826 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]'
5827 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5828 ;;
5829 *)
5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5831 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5832 ;;
5833 esac
5834 ;;
5835
5836interix[3-9]*)
5837 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5839 ;;
5840
5841irix5* | irix6* | nonstopux*)
5842 case $LD in
5843 *-32|*"-32 ") libmagic=32-bit;;
5844 *-n32|*"-n32 ") libmagic=N32;;
5845 *-64|*"-64 ") libmagic=64-bit;;
5846 *) libmagic=never-match;;
5847 esac
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851# This must be Linux ELF.
5852linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856netbsd*)
5857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5859 else
5860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5861 fi
5862 ;;
5863
5864newos6*)
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5866 lt_cv_file_magic_cmd=/usr/bin/file
5867 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5868 ;;
5869
5870*nto* | *qnx*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874openbsd*)
5875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5877 else
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5879 fi
5880 ;;
5881
5882osf3* | osf4* | osf5*)
5883 lt_cv_deplibs_check_method=pass_all
5884 ;;
5885
5886rdos*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889
5890solaris*)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893
5894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898sysv4 | sysv4.3*)
5899 case $host_vendor in
5900 motorola)
5901 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]'
5902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5903 ;;
5904 ncr)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907 sequent)
5908 lt_cv_file_magic_cmd='/bin/file'
5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5910 ;;
5911 sni)
5912 lt_cv_file_magic_cmd='/bin/file'
5913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5914 lt_cv_file_magic_test_file=/lib/libc.so
5915 ;;
5916 siemens)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919 pc)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922 esac
5923 ;;
5924
5925tpf*)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928vxworks*)
5929 # Assume VxWorks cross toolchains are built on Linux, possibly
5930 # as canadian for Windows hosts.
5931 lt_cv_deplibs_check_method=pass_all
5932 ;;
5933esac
5934
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5937$as_echo "$lt_cv_deplibs_check_method" >&6; }
5938file_magic_cmd=$lt_cv_file_magic_cmd
5939deplibs_check_method=$lt_cv_deplibs_check_method
5940test -z "$deplibs_check_method" && deplibs_check_method=unknown
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953plugin_option=
5954plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5955for plugin in $plugin_names; do
5956 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5957 if test x$plugin_so = x$plugin; then
5958 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5959 fi
5960 if test x$plugin_so != x$plugin; then
5961 plugin_option="--plugin $plugin_so"
5962 break
5963 fi
5964done
5965
5966if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5968set dummy ${ac_tool_prefix}ar; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if ${ac_cv_prog_AR+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 if test -n "$AR"; then
5975 ac_cv_prog_AR="$AR" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_AR="${ac_tool_prefix}ar"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989 done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994AR=$ac_cv_prog_AR
5995if test -n "$AR"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5997$as_echo "$AR" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004fi
6005if test -z "$ac_cv_prog_AR"; then
6006 ac_ct_AR=$AR
6007 # Extract the first word of "ar", so it can be a program name with args.
6008set dummy ar; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_prog_ac_ct_AR+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$ac_ct_AR"; then
6015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_ac_ct_AR="ar"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029 done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034ac_ct_AR=$ac_cv_prog_ac_ct_AR
6035if test -n "$ac_ct_AR"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6037$as_echo "$ac_ct_AR" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043 if test "x$ac_ct_AR" = x; then
6044 AR="false"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047yes:)
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050ac_tool_warned=yes ;;
6051esac
6052 AR=$ac_ct_AR
6053 fi
6054else
6055 AR="$ac_cv_prog_AR"
6056fi
6057
6058test -z "$AR" && AR=ar
6059if test -n "$plugin_option"; then
6060 if $AR --help 2>&1 | grep -q "\--plugin"; then
6061 touch conftest.c
6062 $AR $plugin_option rc conftest.a conftest.c
6063 if test "$?" != 0; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6065$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6066 else
6067 AR="$AR $plugin_option"
6068 fi
6069 rm -f conftest.*
6070 fi
6071fi
6072test -z "$AR_FLAGS" && AR_FLAGS=cru
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084if test -n "$ac_tool_prefix"; then
6085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6086set dummy ${ac_tool_prefix}strip; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if ${ac_cv_prog_STRIP+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092 if test -n "$STRIP"; then
6093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106done
6107 done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112STRIP=$ac_cv_prog_STRIP
6113if test -n "$STRIP"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6115$as_echo "$STRIP" >&6; }
6116else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122fi
6123if test -z "$ac_cv_prog_STRIP"; then
6124 ac_ct_STRIP=$STRIP
6125 # Extract the first word of "strip", so it can be a program name with args.
6126set dummy strip; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132 if test -n "$ac_ct_STRIP"; then
6133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_ac_ct_STRIP="strip"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146done
6147 done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6153if test -n "$ac_ct_STRIP"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6155$as_echo "$ac_ct_STRIP" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161 if test "x$ac_ct_STRIP" = x; then
6162 STRIP=":"
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165yes:)
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168ac_tool_warned=yes ;;
6169esac
6170 STRIP=$ac_ct_STRIP
6171 fi
6172else
6173 STRIP="$ac_cv_prog_STRIP"
6174fi
6175
6176test -z "$STRIP" && STRIP=:
6177
6178
6179
6180
6181
6182
6183if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6185set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if ${ac_cv_prog_RANLIB+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 if test -n "$RANLIB"; then
6192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205done
6206 done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211RANLIB=$ac_cv_prog_RANLIB
6212if test -n "$RANLIB"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6214$as_echo "$RANLIB" >&6; }
6215else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220
6221fi
6222if test -z "$ac_cv_prog_RANLIB"; then
6223 ac_ct_RANLIB=$RANLIB
6224 # Extract the first word of "ranlib", so it can be a program name with args.
6225set dummy ranlib; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 if test -n "$ac_ct_RANLIB"; then
6232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_RANLIB="ranlib"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245done
6246 done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6252if test -n "$ac_ct_RANLIB"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6254$as_echo "$ac_ct_RANLIB" >&6; }
6255else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260 if test "x$ac_ct_RANLIB" = x; then
6261 RANLIB=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269 RANLIB=$ac_ct_RANLIB
6270 fi
6271else
6272 RANLIB="$ac_cv_prog_RANLIB"
6273fi
6274
6275test -z "$RANLIB" && RANLIB=:
6276if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6277 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6278 RANLIB="$RANLIB $plugin_option"
6279 fi
6280fi
6281
6282
6283
6284
6285
6286
6287# Determine commands to create old-style static archives.
6288old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6289old_postinstall_cmds='chmod 644 $oldlib'
6290old_postuninstall_cmds=
6291
6292if test -n "$RANLIB"; then
6293 case $host_os in
6294 openbsd*)
6295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6296 ;;
6297 *)
6298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6299 ;;
6300 esac
6301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6302fi
6303
6304case $host_os in
6305 darwin*)
6306 lock_old_archive_extraction=yes ;;
6307 *)
6308 lock_old_archive_extraction=no ;;
6309esac
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349# If no C compiler was specified, use CC.
6350LTCC=${LTCC-"$CC"}
6351
6352# If no C compiler flags were specified, use CFLAGS.
6353LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6354
6355# Allow CC to be a program name with arguments.
6356compiler=$CC
6357
6358
6359# Check for command to grab the raw symbol name followed by C symbol from nm.
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6361$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6362if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364else
6365
6366# These are sane defaults that work on at least a few old systems.
6367# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6368
6369# Character class describing NM global symbol codes.
6370symcode='[BCDEGRST]'
6371
6372# Regexp to match symbols that can be accessed directly from C.
6373sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6374
6375# Define system-specific variables.
6376case $host_os in
6377aix*)
6378 symcode='[BCDT]'
6379 ;;
6380cygwin* | mingw* | pw32* | cegcc*)
6381 symcode='[ABCDGISTW]'
6382 ;;
6383hpux*)
6384 if test "$host_cpu" = ia64; then
6385 symcode='[ABCDEGRST]'
6386 fi
6387 ;;
6388irix* | nonstopux*)
6389 symcode='[BCDEGRST]'
6390 ;;
6391osf*)
6392 symcode='[BCDEGQRST]'
6393 ;;
6394solaris*)
6395 symcode='[BCDRT]'
6396 ;;
6397sco3.2v5*)
6398 symcode='[DT]'
6399 ;;
6400sysv4.2uw2*)
6401 symcode='[DT]'
6402 ;;
6403sysv5* | sco5v6* | unixware* | OpenUNIX*)
6404 symcode='[ABDT]'
6405 ;;
6406sysv4)
6407 symcode='[DFNSTU]'
6408 ;;
6409esac
6410
6411# If we're using GNU nm, then use its standard symbol codes.
6412case `$NM -V 2>&1` in
6413*GNU* | *'with BFD'*)
6414 symcode='[ABCDGIRSTW]' ;;
6415esac
6416
6417# Transform an extracted symbol line into a proper C declaration.
6418# Some systems (esp. on ia64) link data and code symbols differently,
6419# so use this general approach.
6420lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6421
6422# Transform an extracted symbol line into symbol name and symbol address
6423lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6424lt_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'"
6425
6426# Handle CRLF in mingw tool chain
6427opt_cr=
6428case $build_os in
6429mingw*)
6430 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6431 ;;
6432esac
6433
6434# Try without a prefix underscore, then with it.
6435for ac_symprfx in "" "_"; do
6436
6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6438 symxfrm="\\1 $ac_symprfx\\2 \\2"
6439
6440 # Write the raw and C identifiers.
6441 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6442 # Fake it for dumpbin and say T for any non-static function
6443 # and D for any global variable.
6444 # Also find C++ and __fastcall symbols from MSVC++,
6445 # which start with @ or ?.
6446 lt_cv_sys_global_symbol_pipe="$AWK '"\
6447" {last_section=section; section=\$ 3};"\
6448" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6449" \$ 0!~/External *\|/{next};"\
6450" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6451" {if(hide[section]) next};"\
6452" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6453" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6454" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6455" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6456" ' prfx=^$ac_symprfx"
6457 else
6458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6459 fi
6460
6461 # Check to see that the pipe works correctly.
6462 pipe_works=no
6463
6464 rm -f conftest*
6465 cat > conftest.$ac_ext <<_LT_EOF
6466#ifdef __cplusplus
6467extern "C" {
6468#endif
6469char nm_test_var;
6470void nm_test_func(void);
6471void nm_test_func(void){}
6472#ifdef __cplusplus
6473}
6474#endif
6475int main(){nm_test_var='a';nm_test_func();return(0);}
6476_LT_EOF
6477
6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479 (eval $ac_compile) 2>&5
6480 ac_status=$?
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }; then
6483 # Now try to grab the symbols.
6484 nlist=conftest.nm
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6486 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; } && test -s "$nlist"; then
6490 # Try sorting and uniquifying the output.
6491 if sort "$nlist" | uniq > "$nlist"T; then
6492 mv -f "$nlist"T "$nlist"
6493 else
6494 rm -f "$nlist"T
6495 fi
6496
6497 # Make sure that we snagged all the symbols we need.
6498 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6499 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6500 cat <<_LT_EOF > conftest.$ac_ext
6501#ifdef __cplusplus
6502extern "C" {
6503#endif
6504
6505_LT_EOF
6506 # Now generate the symbol file.
6507 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6508
6509 cat <<_LT_EOF >> conftest.$ac_ext
6510
6511/* The mapping between symbol names and symbols. */
6512const struct {
6513 const char *name;
6514 void *address;
6515}
6516lt__PROGRAM__LTX_preloaded_symbols[] =
6517{
6518 { "@PROGRAM@", (void *) 0 },
6519_LT_EOF
6520 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6521 cat <<\_LT_EOF >> conftest.$ac_ext
6522 {0, (void *) 0}
6523};
6524
6525/* This works around a problem in FreeBSD linker */
6526#ifdef FREEBSD_WORKAROUND
6527static const void *lt_preloaded_setup() {
6528 return lt__PROGRAM__LTX_preloaded_symbols;
6529}
6530#endif
6531
6532#ifdef __cplusplus
6533}
6534#endif
6535_LT_EOF
6536 # Now try linking the two files.
6537 mv conftest.$ac_objext conftstm.$ac_objext
6538 lt_save_LIBS="$LIBS"
6539 lt_save_CFLAGS="$CFLAGS"
6540 LIBS="conftstm.$ac_objext"
6541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6543 (eval $ac_link) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6547 pipe_works=yes
6548 fi
6549 LIBS="$lt_save_LIBS"
6550 CFLAGS="$lt_save_CFLAGS"
6551 else
6552 echo "cannot find nm_test_func in $nlist" >&5
6553 fi
6554 else
6555 echo "cannot find nm_test_var in $nlist" >&5
6556 fi
6557 else
6558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6559 fi
6560 else
6561 echo "$progname: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 fi
6564 rm -rf conftest* conftst*
6565
6566 # Do not use the global_symbol_pipe unless it works.
6567 if test "$pipe_works" = yes; then
6568 break
6569 else
6570 lt_cv_sys_global_symbol_pipe=
6571 fi
6572done
6573
6574fi
6575
6576if test -z "$lt_cv_sys_global_symbol_pipe"; then
6577 lt_cv_sys_global_symbol_to_cdecl=
6578fi
6579if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6581$as_echo "failed" >&6; }
6582else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6584$as_echo "ok" >&6; }
6585fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608# Check whether --enable-libtool-lock was given.
6609if test "${enable_libtool_lock+set}" = set; then :
6610 enableval=$enable_libtool_lock;
6611fi
6612
6613test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6614
6615# Some flags need to be propagated to the compiler or linker for good
6616# libtool support.
6617case $host in
6618ia64-*-hpux*)
6619 # Find out which ABI we are using.
6620 echo 'int i;' > conftest.$ac_ext
6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 case `/usr/bin/file conftest.$ac_objext` in
6627 *ELF-32*)
6628 HPUX_IA64_MODE="32"
6629 ;;
6630 *ELF-64*)
6631 HPUX_IA64_MODE="64"
6632 ;;
6633 esac
6634 fi
6635 rm -rf conftest*
6636 ;;
6637*-*-irix6*)
6638 # Find out which ABI we are using.
6639 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6641 (eval $ac_compile) 2>&5
6642 ac_status=$?
6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644 test $ac_status = 0; }; then
6645 if test "$lt_cv_prog_gnu_ld" = yes; then
6646 case `/usr/bin/file conftest.$ac_objext` in
6647 *32-bit*)
6648 LD="${LD-ld} -melf32bsmip"
6649 ;;
6650 *N32*)
6651 LD="${LD-ld} -melf32bmipn32"
6652 ;;
6653 *64-bit*)
6654 LD="${LD-ld} -melf64bmip"
6655 ;;
6656 esac
6657 else
6658 case `/usr/bin/file conftest.$ac_objext` in
6659 *32-bit*)
6660 LD="${LD-ld} -32"
6661 ;;
6662 *N32*)
6663 LD="${LD-ld} -n32"
6664 ;;
6665 *64-bit*)
6666 LD="${LD-ld} -64"
6667 ;;
6668 esac
6669 fi
6670 fi
6671 rm -rf conftest*
6672 ;;
6673
6674x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6675s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6676 # Find out which ABI we are using.
6677 echo 'int i;' > conftest.$ac_ext
6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6679 (eval $ac_compile) 2>&5
6680 ac_status=$?
6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682 test $ac_status = 0; }; then
6683 case `/usr/bin/file conftest.o` in
6684 *32-bit*)
6685 case $host in
6686 x86_64-*kfreebsd*-gnu)
6687 LD="${LD-ld} -m elf_i386_fbsd"
6688 ;;
6689 x86_64-*linux*)
6690 case `/usr/bin/file conftest.o` in
6691 *x86-64*)
6692 LD="${LD-ld} -m elf32_x86_64"
6693 ;;
6694 *)
6695 LD="${LD-ld} -m elf_i386"
6696 ;;
6697 esac
6698 ;;
6699 powerpc64le-*linux*)
6700 LD="${LD-ld} -m elf32lppclinux"
6701 ;;
6702 powerpc64-*linux*)
6703 LD="${LD-ld} -m elf32ppclinux"
6704 ;;
6705 s390x-*linux*)
6706 LD="${LD-ld} -m elf_s390"
6707 ;;
6708 sparc64-*linux*)
6709 LD="${LD-ld} -m elf32_sparc"
6710 ;;
6711 esac
6712 ;;
6713 *64-bit*)
6714 case $host in
6715 x86_64-*kfreebsd*-gnu)
6716 LD="${LD-ld} -m elf_x86_64_fbsd"
6717 ;;
6718 x86_64-*linux*)
6719 LD="${LD-ld} -m elf_x86_64"
6720 ;;
6721 powerpcle-*linux*)
6722 LD="${LD-ld} -m elf64lppc"
6723 ;;
6724 powerpc-*linux*)
6725 LD="${LD-ld} -m elf64ppc"
6726 ;;
6727 s390*-*linux*|s390*-*tpf*)
6728 LD="${LD-ld} -m elf64_s390"
6729 ;;
6730 sparc*-*linux*)
6731 LD="${LD-ld} -m elf64_sparc"
6732 ;;
6733 esac
6734 ;;
6735 esac
6736 fi
6737 rm -rf conftest*
6738 ;;
6739
6740*-*-sco3.2v5*)
6741 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6742 SAVE_CFLAGS="$CFLAGS"
6743 CFLAGS="$CFLAGS -belf"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6745$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6746if ${lt_cv_cc_needs_belf+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748else
6749 ac_ext=c
6750ac_cpp='$CPP $CPPFLAGS'
6751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h. */
6757
6758int
6759main ()
6760{
6761
6762 ;
6763 return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_link "$LINENO"; then :
6767 lt_cv_cc_needs_belf=yes
6768else
6769 lt_cv_cc_needs_belf=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6781$as_echo "$lt_cv_cc_needs_belf" >&6; }
6782 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6784 CFLAGS="$SAVE_CFLAGS"
6785 fi
6786 ;;
6787sparc*-*solaris*)
6788 # Find out which ABI we are using.
6789 echo 'int i;' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 case `/usr/bin/file conftest.o` in
6796 *64-bit*)
6797 case $lt_cv_prog_gnu_ld in
6798 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6799 *)
6800 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6801 LD="${LD-ld} -64"
6802 fi
6803 ;;
6804 esac
6805 ;;
6806 esac
6807 fi
6808 rm -rf conftest*
6809 ;;
6810esac
6811
6812need_locks="$enable_libtool_lock"
6813
6814
6815 case $host_os in
6816 rhapsody* | darwin*)
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6819set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if ${ac_cv_prog_DSYMUTIL+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824else
6825 if test -n "$DSYMUTIL"; then
6826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845DSYMUTIL=$ac_cv_prog_DSYMUTIL
6846if test -n "$DSYMUTIL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6848$as_echo "$DSYMUTIL" >&6; }
6849else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854
6855fi
6856if test -z "$ac_cv_prog_DSYMUTIL"; then
6857 ac_ct_DSYMUTIL=$DSYMUTIL
6858 # Extract the first word of "dsymutil", so it can be a program name with args.
6859set dummy dsymutil; ac_word=$2
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861$as_echo_n "checking for $ac_word... " >&6; }
6862if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864else
6865 if test -n "$ac_ct_DSYMUTIL"; then
6866 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880 done
6881IFS=$as_save_IFS
6882
6883fi
6884fi
6885ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6886if test -n "$ac_ct_DSYMUTIL"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6888$as_echo "$ac_ct_DSYMUTIL" >&6; }
6889else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891$as_echo "no" >&6; }
6892fi
6893
6894 if test "x$ac_ct_DSYMUTIL" = x; then
6895 DSYMUTIL=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898yes:)
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901ac_tool_warned=yes ;;
6902esac
6903 DSYMUTIL=$ac_ct_DSYMUTIL
6904 fi
6905else
6906 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6907fi
6908
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_NMEDIT+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916else
6917 if test -n "$NMEDIT"; then
6918 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
6932 done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937NMEDIT=$ac_cv_prog_NMEDIT
6938if test -n "$NMEDIT"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6940$as_echo "$NMEDIT" >&6; }
6941else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_NMEDIT"; then
6949 ac_ct_NMEDIT=$NMEDIT
6950 # Extract the first word of "nmedit", so it can be a program name with args.
6951set dummy nmedit; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
6954if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956else
6957 if test -n "$ac_ct_NMEDIT"; then
6958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972 done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6978if test -n "$ac_ct_NMEDIT"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6980$as_echo "$ac_ct_NMEDIT" >&6; }
6981else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986 if test "x$ac_ct_NMEDIT" = x; then
6987 NMEDIT=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995 NMEDIT=$ac_ct_NMEDIT
6996 fi
6997else
6998 NMEDIT="$ac_cv_prog_NMEDIT"
6999fi
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7003set dummy ${ac_tool_prefix}lipo; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if ${ac_cv_prog_LIPO+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008else
7009 if test -n "$LIPO"; then
7010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024 done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029LIPO=$ac_cv_prog_LIPO
7030if test -n "$LIPO"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7032$as_echo "$LIPO" >&6; }
7033else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037
7038
7039fi
7040if test -z "$ac_cv_prog_LIPO"; then
7041 ac_ct_LIPO=$LIPO
7042 # Extract the first word of "lipo", so it can be a program name with args.
7043set dummy lipo; ac_word=$2
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048else
7049 if test -n "$ac_ct_LIPO"; then
7050 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_ac_ct_LIPO="lipo"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063done
7064 done
7065IFS=$as_save_IFS
7066
7067fi
7068fi
7069ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7070if test -n "$ac_ct_LIPO"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7072$as_echo "$ac_ct_LIPO" >&6; }
7073else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
7076fi
7077
7078 if test "x$ac_ct_LIPO" = x; then
7079 LIPO=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082yes:)
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085ac_tool_warned=yes ;;
7086esac
7087 LIPO=$ac_ct_LIPO
7088 fi
7089else
7090 LIPO="$ac_cv_prog_LIPO"
7091fi
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}otool; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if ${ac_cv_prog_OTOOL+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100else
7101 if test -n "$OTOOL"; then
7102 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115done
7116 done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121OTOOL=$ac_cv_prog_OTOOL
7122if test -n "$OTOOL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7124$as_echo "$OTOOL" >&6; }
7125else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_OTOOL"; then
7133 ac_ct_OTOOL=$OTOOL
7134 # Extract the first word of "otool", so it can be a program name with args.
7135set dummy otool; ac_word=$2
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140else
7141 if test -n "$ac_ct_OTOOL"; then
7142 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_ac_ct_OTOOL="otool"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155done
7156 done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7162if test -n "$ac_ct_OTOOL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7164$as_echo "$ac_ct_OTOOL" >&6; }
7165else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168fi
7169
7170 if test "x$ac_ct_OTOOL" = x; then
7171 OTOOL=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179 OTOOL=$ac_ct_OTOOL
7180 fi
7181else
7182 OTOOL="$ac_cv_prog_OTOOL"
7183fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}otool64; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if ${ac_cv_prog_OTOOL64+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192else
7193 if test -n "$OTOOL64"; then
7194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208 done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213OTOOL64=$ac_cv_prog_OTOOL64
7214if test -n "$OTOOL64"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7216$as_echo "$OTOOL64" >&6; }
7217else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
7223fi
7224if test -z "$ac_cv_prog_OTOOL64"; then
7225 ac_ct_OTOOL64=$OTOOL64
7226 # Extract the first word of "otool64", so it can be a program name with args.
7227set dummy otool64; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 if test -n "$ac_ct_OTOOL64"; then
7234 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_ac_ct_OTOOL64="otool64"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248 done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7254if test -n "$ac_ct_OTOOL64"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7256$as_echo "$ac_ct_OTOOL64" >&6; }
7257else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262 if test "x$ac_ct_OTOOL64" = x; then
7263 OTOOL64=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271 OTOOL64=$ac_ct_OTOOL64
7272 fi
7273else
7274 OTOOL64="$ac_cv_prog_OTOOL64"
7275fi
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7304$as_echo_n "checking for -single_module linker flag... " >&6; }
7305if ${lt_cv_apple_cc_single_mod+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307else
7308 lt_cv_apple_cc_single_mod=no
7309 if test -z "${LT_MULTI_MODULE}"; then
7310 # By default we will add the -single_module flag. You can override
7311 # by either setting the environment variable LT_MULTI_MODULE
7312 # non-empty at configure time, or by adding -multi_module to the
7313 # link flags.
7314 rm -rf libconftest.dylib*
7315 echo "int foo(void){return 1;}" > conftest.c
7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7317-dynamiclib -Wl,-single_module conftest.c" >&5
7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7320 _lt_result=$?
7321 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7322 lt_cv_apple_cc_single_mod=yes
7323 else
7324 cat conftest.err >&5
7325 fi
7326 rm -rf libconftest.dylib*
7327 rm -f conftest.*
7328 fi
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7331$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7333$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7334if ${lt_cv_ld_exported_symbols_list+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336else
7337 lt_cv_ld_exported_symbols_list=no
7338 save_LDFLAGS=$LDFLAGS
7339 echo "_main" > conftest.sym
7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */
7343
7344int
7345main ()
7346{
7347
7348 ;
7349 return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_link "$LINENO"; then :
7353 lt_cv_ld_exported_symbols_list=yes
7354else
7355 lt_cv_ld_exported_symbols_list=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LDFLAGS="$save_LDFLAGS"
7360
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7363$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7365$as_echo_n "checking for -force_load linker flag... " >&6; }
7366if ${lt_cv_ld_force_load+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368else
7369 lt_cv_ld_force_load=no
7370 cat > conftest.c << _LT_EOF
7371int forced_loaded() { return 2;}
7372_LT_EOF
7373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7375 echo "$AR cru libconftest.a conftest.o" >&5
7376 $AR cru libconftest.a conftest.o 2>&5
7377 cat > conftest.c << _LT_EOF
7378int main() { return 0;}
7379_LT_EOF
7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7382 _lt_result=$?
7383 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7384 lt_cv_ld_force_load=yes
7385 else
7386 cat conftest.err >&5
7387 fi
7388 rm -f conftest.err libconftest.a conftest conftest.c
7389 rm -rf conftest.dSYM
7390
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7393$as_echo "$lt_cv_ld_force_load" >&6; }
7394 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7395 # build without first building modern cctools / linker.
7396 case $host_cpu-$host_os in
7397 *-rhapsody* | *-darwin1.[012])
7398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7399 *-darwin1.*)
7400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7401 *-darwin*)
7402 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7403 # deployment target is forced to an earlier version.
7404 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7405 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7406 ;;
7407 10.[012][,.]*)
7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7409 ;;
7410 *)
7411 ;;
7412 esac
7413 ;;
7414 esac
7415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7416 _lt_dar_single_mod='$single_module'
7417 fi
7418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7420 else
7421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7422 fi
7423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7424 _lt_dsymutil='~$DSYMUTIL $lib || :'
7425 else
7426 _lt_dsymutil=
7427 fi
7428 ;;
7429 esac
7430
7431for ac_header in dlfcn.h
7432do :
7433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7434"
7435if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7436 cat >>confdefs.h <<_ACEOF
7437#define HAVE_DLFCN_H 1
7438_ACEOF
7439
7440fi
7441
7442done
7443
7444
7445
7446
7447
7448# Set options
7449
7450
7451
7452 enable_dlopen=no
7453
7454
7455 enable_win32_dll=no
7456
7457
7458
7459 # Check whether --enable-static was given.
7460if test "${enable_static+set}" = set; then :
7461 enableval=$enable_static; p=${PACKAGE-default}
7462 case $enableval in
7463 yes) enable_static=yes ;;
7464 no) enable_static=no ;;
7465 *)
7466 enable_static=no
7467 # Look at the argument we got. We use all the common list separators.
7468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7469 for pkg in $enableval; do
7470 IFS="$lt_save_ifs"
7471 if test "X$pkg" = "X$p"; then
7472 enable_static=yes
7473 fi
7474 done
7475 IFS="$lt_save_ifs"
7476 ;;
7477 esac
7478else
7479 enable_static=yes
7480fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491# Check whether --with-pic was given.
7492if test "${with_pic+set}" = set; then :
7493 withval=$with_pic; pic_mode="$withval"
7494else
7495 pic_mode=default
7496fi
7497
7498
7499test -z "$pic_mode" && pic_mode=default
7500
7501
7502
7503
7504
7505
7506
7507 # Check whether --enable-fast-install was given.
7508if test "${enable_fast_install+set}" = set; then :
7509 enableval=$enable_fast_install; p=${PACKAGE-default}
7510 case $enableval in
7511 yes) enable_fast_install=yes ;;
7512 no) enable_fast_install=no ;;
7513 *)
7514 enable_fast_install=no
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517 for pkg in $enableval; do
7518 IFS="$lt_save_ifs"
7519 if test "X$pkg" = "X$p"; then
7520 enable_fast_install=yes
7521 fi
7522 done
7523 IFS="$lt_save_ifs"
7524 ;;
7525 esac
7526else
7527 enable_fast_install=yes
7528fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540# This can be used to rebuild libtool when needed
7541LIBTOOL_DEPS="$ltmain"
7542
7543# Always use our own libtool.
7544LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571test -z "$LN_S" && LN_S="ln -s"
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586if test -n "${ZSH_VERSION+set}" ; then
7587 setopt NO_GLOB_SUBST
7588fi
7589
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7591$as_echo_n "checking for objdir... " >&6; }
7592if ${lt_cv_objdir+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 rm -f .libs 2>/dev/null
7596mkdir .libs 2>/dev/null
7597if test -d .libs; then
7598 lt_cv_objdir=.libs
7599else
7600 # MS-DOS does not allow filenames that begin with a dot.
7601 lt_cv_objdir=_libs
7602fi
7603rmdir .libs 2>/dev/null
7604fi
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7606$as_echo "$lt_cv_objdir" >&6; }
7607objdir=$lt_cv_objdir
7608
7609
7610
7611
7612
7613cat >>confdefs.h <<_ACEOF
7614#define LT_OBJDIR "$lt_cv_objdir/"
7615_ACEOF
7616
7617
7618
7619
7620case $host_os in
7621aix3*)
7622 # AIX sometimes has problems with the GCC collect2 program. For some
7623 # reason, if we set the COLLECT_NAMES environment variable, the problems
7624 # vanish in a puff of smoke.
7625 if test "X${COLLECT_NAMES+set}" != Xset; then
7626 COLLECT_NAMES=
7627 export COLLECT_NAMES
7628 fi
7629 ;;
7630esac
7631
7632# Global variables:
7633ofile=libtool
7634can_build_shared=yes
7635
7636# All known linkers require a `.a' archive for static linking (except MSVC,
7637# which needs '.lib').
7638libext=a
7639
7640with_gnu_ld="$lt_cv_prog_gnu_ld"
7641
7642old_CC="$CC"
7643old_CFLAGS="$CFLAGS"
7644
7645# Set sane defaults for various variables
7646test -z "$CC" && CC=cc
7647test -z "$LTCC" && LTCC=$CC
7648test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7649test -z "$LD" && LD=ld
7650test -z "$ac_objext" && ac_objext=o
7651
7652for cc_temp in $compiler""; do
7653 case $cc_temp in
7654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7656 \-*) ;;
7657 *) break;;
7658 esac
7659done
7660cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7661
7662
7663# Only perform the check for file, if the check method requires it
7664test -z "$MAGIC_CMD" && MAGIC_CMD=file
7665case $deplibs_check_method in
7666file_magic*)
7667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7669$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7670if ${lt_cv_path_MAGIC_CMD+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672else
7673 case $MAGIC_CMD in
7674[\\/*] | ?:[\\/]*)
7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676 ;;
7677*)
7678 lt_save_MAGIC_CMD="$MAGIC_CMD"
7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir in $ac_dummy; do
7682 IFS="$lt_save_ifs"
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/${ac_tool_prefix}file; then
7685 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7688 "file_magic "*)
7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692 $EGREP "$file_magic_regex" > /dev/null; then
7693 :
7694 else
7695 cat <<_LT_EOF 1>&2
7696
7697*** Warning: the command libtool uses to detect shared libraries,
7698*** $file_magic_cmd, produces output that libtool cannot recognize.
7699*** The result is that libtool may fail to recognize shared libraries
7700*** as such. This will affect the creation of libtool libraries that
7701*** depend on shared libraries, but programs linked with such libtool
7702*** libraries will work regardless of this problem. Nevertheless, you
7703*** may want to report the problem to your system manager and/or to
7704*** bug-libtool@gnu.org
7705
7706_LT_EOF
7707 fi ;;
7708 esac
7709 fi
7710 break
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 MAGIC_CMD="$lt_save_MAGIC_CMD"
7715 ;;
7716esac
7717fi
7718
7719MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722$as_echo "$MAGIC_CMD" >&6; }
7723else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
7726fi
7727
7728
7729
7730
7731
7732if test -z "$lt_cv_path_MAGIC_CMD"; then
7733 if test -n "$ac_tool_prefix"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7735$as_echo_n "checking for file... " >&6; }
7736if ${lt_cv_path_MAGIC_CMD+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738else
7739 case $MAGIC_CMD in
7740[\\/*] | ?:[\\/]*)
7741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742 ;;
7743*)
7744 lt_save_MAGIC_CMD="$MAGIC_CMD"
7745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7747 for ac_dir in $ac_dummy; do
7748 IFS="$lt_save_ifs"
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f $ac_dir/file; then
7751 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7752 if test -n "$file_magic_test_file"; then
7753 case $deplibs_check_method in
7754 "file_magic "*)
7755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7758 $EGREP "$file_magic_regex" > /dev/null; then
7759 :
7760 else
7761 cat <<_LT_EOF 1>&2
7762
7763*** Warning: the command libtool uses to detect shared libraries,
7764*** $file_magic_cmd, produces output that libtool cannot recognize.
7765*** The result is that libtool may fail to recognize shared libraries
7766*** as such. This will affect the creation of libtool libraries that
7767*** depend on shared libraries, but programs linked with such libtool
7768*** libraries will work regardless of this problem. Nevertheless, you
7769*** may want to report the problem to your system manager and/or to
7770*** bug-libtool@gnu.org
7771
7772_LT_EOF
7773 fi ;;
7774 esac
7775 fi
7776 break
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 MAGIC_CMD="$lt_save_MAGIC_CMD"
7781 ;;
7782esac
7783fi
7784
7785MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786if test -n "$MAGIC_CMD"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7788$as_echo "$MAGIC_CMD" >&6; }
7789else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794
7795 else
7796 MAGIC_CMD=:
7797 fi
7798fi
7799
7800 fi
7801 ;;
7802esac
7803
7804# Use C for the default configuration in the libtool script
7805
7806lt_save_CC="$CC"
7807ac_ext=c
7808ac_cpp='$CPP $CPPFLAGS'
7809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812
7813
7814# Source file extension for C test sources.
7815ac_ext=c
7816
7817# Object file extension for compiled C test sources.
7818objext=o
7819objext=$objext
7820
7821# Code to be used in simple compile tests
7822lt_simple_compile_test_code="int some_variable = 0;"
7823
7824# Code to be used in simple link tests
7825lt_simple_link_test_code='int main(){return(0);}'
7826
7827
7828
7829
7830
7831
7832
7833# If no C compiler was specified, use CC.
7834LTCC=${LTCC-"$CC"}
7835
7836# If no C compiler flags were specified, use CFLAGS.
7837LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7838
7839# Allow CC to be a program name with arguments.
7840compiler=$CC
7841
7842# Save the default compiler, since it gets overwritten when the other
7843# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7844compiler_DEFAULT=$CC
7845
7846# save warnings/boilerplate of simple test code
7847ac_outfile=conftest.$ac_objext
7848echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7849eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850_lt_compiler_boilerplate=`cat conftest.err`
7851$RM conftest*
7852
7853ac_outfile=conftest.$ac_objext
7854echo "$lt_simple_link_test_code" >conftest.$ac_ext
7855eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7856_lt_linker_boilerplate=`cat conftest.err`
7857$RM -r conftest*
7858
7859
7860## CAVEAT EMPTOR:
7861## There is no encapsulation within the following macros, do not change
7862## the running order or otherwise move them around unless you know exactly
7863## what you are doing...
7864if test -n "$compiler"; then
7865
7866lt_prog_compiler_no_builtin_flag=
7867
7868if test "$GCC" = yes; then
7869 case $cc_basename in
7870 nvcc*)
7871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7872 *)
7873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7874 esac
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7877$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7878if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880else
7881 lt_cv_prog_compiler_rtti_exceptions=no
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="-fno-rtti -fno-exceptions"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7896 ac_status=$?
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_cv_prog_compiler_rtti_exceptions=yes
7906 fi
7907 fi
7908 $RM conftest*
7909
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7912$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7913
7914if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7916else
7917 :
7918fi
7919
7920fi
7921
7922
7923
7924
7925
7926
7927 lt_prog_compiler_wl=
7928lt_prog_compiler_pic=
7929lt_prog_compiler_static=
7930
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7932$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7933
7934 if test "$GCC" = yes; then
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_static='-static'
7937
7938 case $host_os in
7939 aix*)
7940 # All AIX code is PIC.
7941 if test "$host_cpu" = ia64; then
7942 # AIX 5 now supports IA64 processor
7943 lt_prog_compiler_static='-Bstatic'
7944 fi
7945 lt_prog_compiler_pic='-fPIC'
7946 ;;
7947
7948 amigaos*)
7949 case $host_cpu in
7950 powerpc)
7951 # see comment about AmigaOS4 .so support
7952 lt_prog_compiler_pic='-fPIC'
7953 ;;
7954 m68k)
7955 # FIXME: we need at least 68020 code to build shared libraries, but
7956 # adding the `-m68020' flag to GCC prevents building anything better,
7957 # like `-m68040'.
7958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7959 ;;
7960 esac
7961 ;;
7962
7963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7964 # PIC is the default for these OSes.
7965 ;;
7966
7967 mingw* | cygwin* | pw32* | os2* | cegcc*)
7968 # This hack is so that the source file can tell whether it is being
7969 # built for inclusion in a dll (and should export symbols for example).
7970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7971 # (--disable-auto-import) libraries
7972 lt_prog_compiler_pic='-DDLL_EXPORT'
7973 ;;
7974
7975 darwin* | rhapsody*)
7976 # PIC is the default on this platform
7977 # Common symbols not allowed in MH_DYLIB files
7978 lt_prog_compiler_pic='-fno-common'
7979 ;;
7980
7981 haiku*)
7982 # PIC is the default for Haiku.
7983 # The "-static" flag exists, but is broken.
7984 lt_prog_compiler_static=
7985 ;;
7986
7987 hpux*)
7988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7990 # sets the default TLS model and affects inlining.
7991 case $host_cpu in
7992 hppa*64*)
7993 # +Z the default
7994 ;;
7995 *)
7996 lt_prog_compiler_pic='-fPIC'
7997 ;;
7998 esac
7999 ;;
8000
8001 interix[3-9]*)
8002 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8003 # Instead, we relocate shared libraries at runtime.
8004 ;;
8005
8006 msdosdjgpp*)
8007 # Just because we use GCC doesn't mean we suddenly get shared libraries
8008 # on systems that don't support them.
8009 lt_prog_compiler_can_build_shared=no
8010 enable_shared=no
8011 ;;
8012
8013 *nto* | *qnx*)
8014 # QNX uses GNU C++, but need to define -shared option too, otherwise
8015 # it will coredump.
8016 lt_prog_compiler_pic='-fPIC -shared'
8017 ;;
8018
8019 sysv4*MP*)
8020 if test -d /usr/nec; then
8021 lt_prog_compiler_pic=-Kconform_pic
8022 fi
8023 ;;
8024
8025 *)
8026 lt_prog_compiler_pic='-fPIC'
8027 ;;
8028 esac
8029
8030 case $cc_basename in
8031 nvcc*) # Cuda Compiler Driver 2.2
8032 lt_prog_compiler_wl='-Xlinker '
8033 lt_prog_compiler_pic='-Xcompiler -fPIC'
8034 ;;
8035 esac
8036 else
8037 # PORTME Check for flag to pass linker flags through the system compiler.
8038 case $host_os in
8039 aix*)
8040 lt_prog_compiler_wl='-Wl,'
8041 if test "$host_cpu" = ia64; then
8042 # AIX 5 now supports IA64 processor
8043 lt_prog_compiler_static='-Bstatic'
8044 else
8045 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8046 fi
8047 ;;
8048
8049 mingw* | cygwin* | pw32* | os2* | cegcc*)
8050 # This hack is so that the source file can tell whether it is being
8051 # built for inclusion in a dll (and should export symbols for example).
8052 lt_prog_compiler_pic='-DDLL_EXPORT'
8053 ;;
8054
8055 hpux9* | hpux10* | hpux11*)
8056 lt_prog_compiler_wl='-Wl,'
8057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8058 # not for PA HP-UX.
8059 case $host_cpu in
8060 hppa*64*|ia64*)
8061 # +Z the default
8062 ;;
8063 *)
8064 lt_prog_compiler_pic='+Z'
8065 ;;
8066 esac
8067 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8068 lt_prog_compiler_static='${wl}-a ${wl}archive'
8069 ;;
8070
8071 irix5* | irix6* | nonstopux*)
8072 lt_prog_compiler_wl='-Wl,'
8073 # PIC (with -KPIC) is the default.
8074 lt_prog_compiler_static='-non_shared'
8075 ;;
8076
8077 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8078 case $cc_basename in
8079 # old Intel for x86_64 which still supported -KPIC.
8080 ecc*)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-KPIC'
8083 lt_prog_compiler_static='-static'
8084 ;;
8085 # icc used to be incompatible with GCC.
8086 # ICC 10 doesn't accept -KPIC any more.
8087 icc* | ifort*)
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_pic='-fPIC'
8090 lt_prog_compiler_static='-static'
8091 ;;
8092 # Lahey Fortran 8.1.
8093 lf95*)
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='--shared'
8096 lt_prog_compiler_static='--static'
8097 ;;
8098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8099 # Portland Group compilers (*not* the Pentium gcc compiler,
8100 # which looks to be a dead project)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fpic'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105 ccc*)
8106 lt_prog_compiler_wl='-Wl,'
8107 # All Alpha code is PIC.
8108 lt_prog_compiler_static='-non_shared'
8109 ;;
8110 xl* | bgxl* | bgf* | mpixl*)
8111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-qpic'
8114 lt_prog_compiler_static='-qstaticlink'
8115 ;;
8116 *)
8117 case `$CC -V 2>&1 | sed 5q` in
8118 *Sun\ F* | *Sun*Fortran*)
8119 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_wl=''
8123 ;;
8124 *Sun\ C*)
8125 # Sun C 5.9
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 lt_prog_compiler_wl='-Wl,'
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 ;;
8134
8135 newsos6)
8136 lt_prog_compiler_pic='-KPIC'
8137 lt_prog_compiler_static='-Bstatic'
8138 ;;
8139
8140 *nto* | *qnx*)
8141 # QNX uses GNU C++, but need to define -shared option too, otherwise
8142 # it will coredump.
8143 lt_prog_compiler_pic='-fPIC -shared'
8144 ;;
8145
8146 osf3* | osf4* | osf5*)
8147 lt_prog_compiler_wl='-Wl,'
8148 # All OSF/1 code is PIC.
8149 lt_prog_compiler_static='-non_shared'
8150 ;;
8151
8152 rdos*)
8153 lt_prog_compiler_static='-non_shared'
8154 ;;
8155
8156 solaris*)
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 case $cc_basename in
8160 f77* | f90* | f95*)
8161 lt_prog_compiler_wl='-Qoption ld ';;
8162 *)
8163 lt_prog_compiler_wl='-Wl,';;
8164 esac
8165 ;;
8166
8167 sunos4*)
8168 lt_prog_compiler_wl='-Qoption ld '
8169 lt_prog_compiler_pic='-PIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 ;;
8172
8173 sysv4 | sysv4.2uw2* | sysv4.3*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 sysv4*MP*)
8180 if test -d /usr/nec ;then
8181 lt_prog_compiler_pic='-Kconform_pic'
8182 lt_prog_compiler_static='-Bstatic'
8183 fi
8184 ;;
8185
8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 unicos*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_can_build_shared=no
8195 ;;
8196
8197 uts4*)
8198 lt_prog_compiler_pic='-pic'
8199 lt_prog_compiler_static='-Bstatic'
8200 ;;
8201
8202 *)
8203 lt_prog_compiler_can_build_shared=no
8204 ;;
8205 esac
8206 fi
8207
8208case $host_os in
8209 # For platforms which do not support PIC, -DPIC is meaningless:
8210 *djgpp*)
8211 lt_prog_compiler_pic=
8212 ;;
8213 *)
8214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8215 ;;
8216esac
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8218$as_echo "$lt_prog_compiler_pic" >&6; }
8219
8220
8221
8222
8223
8224
8225#
8226# Check to make sure the PIC flag actually works.
8227#
8228if test -n "$lt_prog_compiler_pic"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8230$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8231if ${lt_cv_prog_compiler_pic_works+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233else
8234 lt_cv_prog_compiler_pic_works=no
8235 ac_outfile=conftest.$ac_objext
8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8238 # Insert the option either (1) after the last *FLAGS variable, or
8239 # (2) before a word containing "conftest.", or (3) at the end.
8240 # Note that $ac_compile itself does not contain backslashes and begins
8241 # with a dollar sign (not a hyphen), so the echo should work correctly.
8242 # The option is referenced via a variable to avoid confusing sed.
8243 lt_compile=`echo "$ac_compile" | $SED \
8244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8246 -e 's:$: $lt_compiler_flag:'`
8247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8248 (eval "$lt_compile" 2>conftest.err)
8249 ac_status=$?
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 if (exit $ac_status) && test -s "$ac_outfile"; then
8253 # The compiler can only warn and ignore the option if not recognized
8254 # So say no if there are warnings other than the usual output.
8255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8258 lt_cv_prog_compiler_pic_works=yes
8259 fi
8260 fi
8261 $RM conftest*
8262
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8265$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8266
8267if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8268 case $lt_prog_compiler_pic in
8269 "" | " "*) ;;
8270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8271 esac
8272else
8273 lt_prog_compiler_pic=
8274 lt_prog_compiler_can_build_shared=no
8275fi
8276
8277fi
8278
8279
8280
8281
8282
8283
8284#
8285# Check to make sure the static flag actually works.
8286#
8287wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8289$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8290if ${lt_cv_prog_compiler_static_works+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292else
8293 lt_cv_prog_compiler_static_works=no
8294 save_LDFLAGS="$LDFLAGS"
8295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8298 # The linker can only warn and ignore the option if not recognized
8299 # So say no if there are warnings
8300 if test -s conftest.err; then
8301 # Append any errors to the config.log.
8302 cat conftest.err 1>&5
8303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8305 if diff conftest.exp conftest.er2 >/dev/null; then
8306 lt_cv_prog_compiler_static_works=yes
8307 fi
8308 else
8309 lt_cv_prog_compiler_static_works=yes
8310 fi
8311 fi
8312 $RM -r conftest*
8313 LDFLAGS="$save_LDFLAGS"
8314
8315fi
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8317$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8318
8319if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8320 :
8321else
8322 lt_prog_compiler_static=
8323fi
8324
8325
8326
8327
8328
8329
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333if ${lt_cv_prog_compiler_c_o+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335else
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
8338 mkdir conftest
8339 cd conftest
8340 mkdir out
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8353 (eval "$lt_compile" 2>out/conftest.err)
8354 ac_status=$?
8355 cat out/conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358 then
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364 lt_cv_prog_compiler_c_o=yes
8365 fi
8366 fi
8367 chmod u+w . 2>&5
8368 $RM conftest*
8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
8373 cd ..
8374 $RM -r conftest
8375 $RM conftest*
8376
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8379$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8380
8381
8382
8383
8384
8385
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8388if ${lt_cv_prog_compiler_c_o+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390else
8391 lt_cv_prog_compiler_c_o=no
8392 $RM -r conftest 2>/dev/null
8393 mkdir conftest
8394 cd conftest
8395 mkdir out
8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8397
8398 lt_compiler_flag="-o out/conftest2.$ac_objext"
8399 # Insert the option either (1) after the last *FLAGS variable, or
8400 # (2) before a word containing "conftest.", or (3) at the end.
8401 # Note that $ac_compile itself does not contain backslashes and begins
8402 # with a dollar sign (not a hyphen), so the echo should work correctly.
8403 lt_compile=`echo "$ac_compile" | $SED \
8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8406 -e 's:$: $lt_compiler_flag:'`
8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8408 (eval "$lt_compile" 2>out/conftest.err)
8409 ac_status=$?
8410 cat out/conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8413 then
8414 # The compiler can only warn and ignore the option if not recognized
8415 # So say no if there are warnings
8416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8419 lt_cv_prog_compiler_c_o=yes
8420 fi
8421 fi
8422 chmod u+w . 2>&5
8423 $RM conftest*
8424 # SGI C++ compiler will create directory out/ii_files/ for
8425 # template instantiation
8426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8427 $RM out/* && rmdir out
8428 cd ..
8429 $RM -r conftest
8430 $RM conftest*
8431
8432fi
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8434$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8435
8436
8437
8438
8439hard_links="nottested"
8440if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8441 # do not overwrite the value of need_locks provided by the user
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8443$as_echo_n "checking if we can lock with hard links... " >&6; }
8444 hard_links=yes
8445 $RM conftest*
8446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8447 touch conftest.a
8448 ln conftest.a conftest.b 2>&5 || hard_links=no
8449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8451$as_echo "$hard_links" >&6; }
8452 if test "$hard_links" = no; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8454$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8455 need_locks=warn
8456 fi
8457else
8458 need_locks=no
8459fi
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8467$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8468
8469 runpath_var=
8470 allow_undefined_flag=
8471 always_export_symbols=no
8472 archive_cmds=
8473 archive_expsym_cmds=
8474 compiler_needs_object=no
8475 enable_shared_with_static_runtimes=no
8476 export_dynamic_flag_spec=
8477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8478 hardcode_automatic=no
8479 hardcode_direct=no
8480 hardcode_direct_absolute=no
8481 hardcode_libdir_flag_spec=
8482 hardcode_libdir_flag_spec_ld=
8483 hardcode_libdir_separator=
8484 hardcode_minus_L=no
8485 hardcode_shlibpath_var=unsupported
8486 inherit_rpath=no
8487 link_all_deplibs=unknown
8488 module_cmds=
8489 module_expsym_cmds=
8490 old_archive_from_new_cmds=
8491 old_archive_from_expsyms_cmds=
8492 thread_safe_flag_spec=
8493 whole_archive_flag_spec=
8494 # include_expsyms should be a list of space-separated symbols to be *always*
8495 # included in the symbol list
8496 include_expsyms=
8497 # exclude_expsyms can be an extended regexp of symbols to exclude
8498 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8499 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8500 # as well as any symbol that contains `d'.
8501 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8502 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8503 # platforms (ab)use it in PIC code, but their linkers get confused if
8504 # the symbol is explicitly referenced. Since portable code cannot
8505 # rely on this symbol name, it's probably fine to never include it in
8506 # preloaded symbol tables.
8507 # Exclude shared library initialization/finalization symbols.
8508 extract_expsyms_cmds=
8509
8510 case $host_os in
8511 cygwin* | mingw* | pw32* | cegcc*)
8512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8513 # When not using gcc, we currently assume that we are using
8514 # Microsoft Visual C++.
8515 if test "$GCC" != yes; then
8516 with_gnu_ld=no
8517 fi
8518 ;;
8519 interix*)
8520 # we just hope/assume this is gcc and not c89 (= MSVC++)
8521 with_gnu_ld=yes
8522 ;;
8523 openbsd*)
8524 with_gnu_ld=no
8525 ;;
8526 esac
8527
8528 ld_shlibs=yes
8529
8530 # On some targets, GNU ld is compatible enough with the native linker
8531 # that we're better off using the native interface for both.
8532 lt_use_gnu_ld_interface=no
8533 if test "$with_gnu_ld" = yes; then
8534 case $host_os in
8535 aix*)
8536 # The AIX port of GNU ld has always aspired to compatibility
8537 # with the native linker. However, as the warning in the GNU ld
8538 # block says, versions before 2.19.5* couldn't really create working
8539 # shared libraries, regardless of the interface used.
8540 case `$LD -v 2>&1` in
8541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8543 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8544 *)
8545 lt_use_gnu_ld_interface=yes
8546 ;;
8547 esac
8548 ;;
8549 *)
8550 lt_use_gnu_ld_interface=yes
8551 ;;
8552 esac
8553 fi
8554
8555 if test "$lt_use_gnu_ld_interface" = yes; then
8556 # If archive_cmds runs LD, not CC, wlarc should be empty
8557 wlarc='${wl}'
8558
8559 # Set some defaults for GNU ld with shared library support. These
8560 # are reset later if shared libraries are not supported. Putting them
8561 # here allows them to be overridden if necessary.
8562 runpath_var=LD_RUN_PATH
8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564 export_dynamic_flag_spec='${wl}--export-dynamic'
8565 # ancient GNU ld didn't support --whole-archive et. al.
8566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8567 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8568 else
8569 whole_archive_flag_spec=
8570 fi
8571 supports_anon_versioning=no
8572 case `$LD -v 2>&1` in
8573 *GNU\ gold*) supports_anon_versioning=yes ;;
8574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8577 *\ 2.11.*) ;; # other 2.11 versions
8578 *) supports_anon_versioning=yes ;;
8579 esac
8580
8581 # See if GNU ld supports shared libraries.
8582 case $host_os in
8583 aix[3-9]*)
8584 # On AIX/PPC, the GNU linker is very broken
8585 if test "$host_cpu" != ia64; then
8586 ld_shlibs=no
8587 cat <<_LT_EOF 1>&2
8588
8589*** Warning: the GNU linker, at least up to release 2.19, is reported
8590*** to be unable to reliably create shared libraries on AIX.
8591*** Therefore, libtool is disabling shared libraries support. If you
8592*** really care for shared libraries, you may want to install binutils
8593*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8594*** You will then need to restart the configuration process.
8595
8596_LT_EOF
8597 fi
8598 ;;
8599
8600 amigaos*)
8601 case $host_cpu in
8602 powerpc)
8603 # see comment about AmigaOS4 .so support
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 archive_expsym_cmds=''
8606 ;;
8607 m68k)
8608 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)'
8609 hardcode_libdir_flag_spec='-L$libdir'
8610 hardcode_minus_L=yes
8611 ;;
8612 esac
8613 ;;
8614
8615 beos*)
8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617 allow_undefined_flag=unsupported
8618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8619 # support --undefined. This deserves some investigation. FIXME
8620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 else
8622 ld_shlibs=no
8623 fi
8624 ;;
8625
8626 cygwin* | mingw* | pw32* | cegcc*)
8627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8628 # as there is no search path for DLLs.
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 export_dynamic_flag_spec='${wl}--export-all-symbols'
8631 allow_undefined_flag=unsupported
8632 always_export_symbols=no
8633 enable_shared_with_static_runtimes=yes
8634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8635
8636 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8638 # If the export-symbols file already is a .def file (1st line
8639 # is EXPORTS), use it as is; otherwise, prepend...
8640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8641 cp $export_symbols $output_objdir/$soname.def;
8642 else
8643 echo EXPORTS > $output_objdir/$soname.def;
8644 cat $export_symbols >> $output_objdir/$soname.def;
8645 fi~
8646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647 else
8648 ld_shlibs=no
8649 fi
8650 ;;
8651
8652 haiku*)
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 link_all_deplibs=yes
8655 ;;
8656
8657 interix[3-9]*)
8658 hardcode_direct=no
8659 hardcode_shlibpath_var=no
8660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8661 export_dynamic_flag_spec='${wl}-E'
8662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8663 # Instead, shared libraries are loaded at an image base (0x10000000 by
8664 # default) and relocated if they conflict, which is a slow very memory
8665 # consuming and fragmenting process. To avoid this, we pick a random,
8666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8669 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'
8670 ;;
8671
8672 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8673 tmp_diet=no
8674 if test "$host_os" = linux-dietlibc; then
8675 case $cc_basename in
8676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8677 esac
8678 fi
8679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8680 && test "$tmp_diet" = no
8681 then
8682 tmp_addflag=' $pic_flag'
8683 tmp_sharedflag='-shared'
8684 case $cc_basename,$host_cpu in
8685 pgcc*) # Portland Group C compiler
8686 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'
8687 tmp_addflag=' $pic_flag'
8688 ;;
8689 pgf77* | pgf90* | pgf95* | pgfortran*)
8690 # Portland Group f77 and f90 compilers
8691 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'
8692 tmp_addflag=' $pic_flag -Mnomain' ;;
8693 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8694 tmp_addflag=' -i_dynamic' ;;
8695 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8696 tmp_addflag=' -i_dynamic -nofor_main' ;;
8697 ifc* | ifort*) # Intel Fortran compiler
8698 tmp_addflag=' -nofor_main' ;;
8699 lf95*) # Lahey Fortran 8.1
8700 whole_archive_flag_spec=
8701 tmp_sharedflag='--shared' ;;
8702 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8703 tmp_sharedflag='-qmkshrobj'
8704 tmp_addflag= ;;
8705 nvcc*) # Cuda Compiler Driver 2.2
8706 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'
8707 compiler_needs_object=yes
8708 ;;
8709 esac
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ C*) # Sun C 5.9
8712 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'
8713 compiler_needs_object=yes
8714 tmp_sharedflag='-G' ;;
8715 *Sun\ F*) # Sun Fortran 8.3
8716 tmp_sharedflag='-G' ;;
8717 esac
8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719
8720 if test "x$supports_anon_versioning" = xyes; then
8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8723 echo "local: *; };" >> $output_objdir/$libname.ver~
8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8725 fi
8726
8727 case $cc_basename in
8728 xlf* | bgf* | bgxlf* | mpixlf*)
8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8731 hardcode_libdir_flag_spec=
8732 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8733 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8734 if test "x$supports_anon_versioning" = xyes; then
8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8737 echo "local: *; };" >> $output_objdir/$libname.ver~
8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8739 fi
8740 ;;
8741 esac
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
8747 netbsd*)
8748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8750 wlarc=
8751 else
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754 fi
8755 ;;
8756
8757 solaris*)
8758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8759 ld_shlibs=no
8760 cat <<_LT_EOF 1>&2
8761
8762*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8763*** create shared libraries on Solaris systems. Therefore, libtool
8764*** is disabling shared libraries support. We urge you to upgrade GNU
8765*** binutils to release 2.9.1 or newer. Another option is to modify
8766*** your PATH or compiler configuration so that the native linker is
8767*** used, and then restart.
8768
8769_LT_EOF
8770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773 else
8774 ld_shlibs=no
8775 fi
8776 ;;
8777
8778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8779 case `$LD -v 2>&1` in
8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8781 ld_shlibs=no
8782 cat <<_LT_EOF 1>&2
8783
8784*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8785*** reliably create shared libraries on SCO systems. Therefore, libtool
8786*** is disabling shared libraries support. We urge you to upgrade GNU
8787*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8788*** your PATH or compiler configuration so that the native linker is
8789*** used, and then restart.
8790
8791_LT_EOF
8792 ;;
8793 *)
8794 # For security reasons, it is highly recommended that you always
8795 # use absolute paths for naming shared libraries, and exclude the
8796 # DT_RUNPATH tag from executables and libraries. But doing so
8797 # requires that you compile everything twice, which is a pain.
8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8802 else
8803 ld_shlibs=no
8804 fi
8805 ;;
8806 esac
8807 ;;
8808
8809 sunos4*)
8810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 wlarc=
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 *)
8817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824 esac
8825
8826 if test "$ld_shlibs" = no; then
8827 runpath_var=
8828 hardcode_libdir_flag_spec=
8829 export_dynamic_flag_spec=
8830 whole_archive_flag_spec=
8831 fi
8832 else
8833 # PORTME fill in a description of your system's linker (not GNU ld)
8834 case $host_os in
8835 aix3*)
8836 allow_undefined_flag=unsupported
8837 always_export_symbols=yes
8838 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'
8839 # Note: this linker hardcodes the directories in LIBPATH if there
8840 # are no directories specified by -L.
8841 hardcode_minus_L=yes
8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8843 # Neither direct hardcoding nor static linking is supported with a
8844 # broken collect2.
8845 hardcode_direct=unsupported
8846 fi
8847 ;;
8848
8849 aix[4-9]*)
8850 if test "$host_cpu" = ia64; then
8851 # On IA64, the linker does run time linking by default, so we don't
8852 # have to do anything special.
8853 aix_use_runtimelinking=no
8854 exp_sym_flag='-Bexport'
8855 no_entry_flag=""
8856 else
8857 # If we're using GNU nm, then we don't want the "-C" option.
8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8859 # Also, AIX nm treats weak defined symbols like other global
8860 # defined symbols, whereas GNU nm marks them as "W".
8861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8862 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'
8863 else
8864 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'
8865 fi
8866 aix_use_runtimelinking=no
8867
8868 # Test if we are trying to use run time linking or normal
8869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8870 # need to do runtime linking.
8871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8872 for ld_flag in $LDFLAGS; do
8873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8874 aix_use_runtimelinking=yes
8875 break
8876 fi
8877 done
8878 ;;
8879 esac
8880
8881 exp_sym_flag='-bexport'
8882 no_entry_flag='-bnoentry'
8883 fi
8884
8885 # When large executables or shared objects are built, AIX ld can
8886 # have problems creating the table of contents. If linking a library
8887 # or program results in "error TOC overflow" add -mminimal-toc to
8888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8890
8891 archive_cmds=''
8892 hardcode_direct=yes
8893 hardcode_direct_absolute=yes
8894 hardcode_libdir_separator=':'
8895 link_all_deplibs=yes
8896 file_list_spec='${wl}-f,'
8897
8898 if test "$GCC" = yes; then
8899 case $host_os in aix4.[012]|aix4.[012].*)
8900 # We only want to do this on AIX 4.2 and lower, the check
8901 # below for broken collect2 doesn't work under 4.3+
8902 collect2name=`${CC} -print-prog-name=collect2`
8903 if test -f "$collect2name" &&
8904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8905 then
8906 # We have reworked collect2
8907 :
8908 else
8909 # We have old collect2
8910 hardcode_direct=unsupported
8911 # It fails to find uninstalled libraries when the uninstalled
8912 # path is not listed in the libpath. Setting hardcode_minus_L
8913 # to unsupported forces relinking
8914 hardcode_minus_L=yes
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 hardcode_libdir_separator=
8917 fi
8918 ;;
8919 esac
8920 shared_flag='-shared'
8921 if test "$aix_use_runtimelinking" = yes; then
8922 shared_flag="$shared_flag "'${wl}-G'
8923 fi
8924 else
8925 # not using gcc
8926 if test "$host_cpu" = ia64; then
8927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8928 # chokes on -Wl,-G. The following line is correct:
8929 shared_flag='-G'
8930 else
8931 if test "$aix_use_runtimelinking" = yes; then
8932 shared_flag='${wl}-G'
8933 else
8934 shared_flag='${wl}-bM:SRE'
8935 fi
8936 fi
8937 fi
8938
8939 export_dynamic_flag_spec='${wl}-bexpall'
8940 # It seems that -bexpall does not export symbols beginning with
8941 # underscore (_), so it is better to generate a list of symbols to export.
8942 always_export_symbols=yes
8943 if test "$aix_use_runtimelinking" = yes; then
8944 # Warning - without using the other runtime loading flags (-brtl),
8945 # -berok will link without error, but may produce a broken library.
8946 allow_undefined_flag='-berok'
8947 # Determine the default libpath from the value encoded in an
8948 # empty executable.
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h. */
8951
8952int
8953main ()
8954{
8955
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960if ac_fn_c_try_link "$LINENO"; then :
8961
8962lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8964 /^0/ {
8965 s/^0 *\(.*\)$/\1/
8966 p
8967 }
8968 }'
8969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970# Check for a 64-bit object if we didn't find anything.
8971if test -z "$aix_libpath"; then
8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973fi
8974fi
8975rm -f core conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8978
8979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8980 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"
8981 else
8982 if test "$host_cpu" = ia64; then
8983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8984 allow_undefined_flag="-z nodefs"
8985 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"
8986 else
8987 # Determine the default libpath from the value encoded in an
8988 # empty executable.
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h. */
8991
8992int
8993main ()
8994{
8995
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000if ac_fn_c_try_link "$LINENO"; then :
9001
9002lt_aix_libpath_sed='
9003 /Import File Strings/,/^$/ {
9004 /^0/ {
9005 s/^0 *\(.*\)$/\1/
9006 p
9007 }
9008 }'
9009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9010# Check for a 64-bit object if we didn't find anything.
9011if test -z "$aix_libpath"; then
9012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013fi
9014fi
9015rm -f core conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9018
9019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9020 # Warning - without using the other run time loading flags,
9021 # -berok will link without error, but may produce a broken library.
9022 no_undefined_flag=' ${wl}-bernotok'
9023 allow_undefined_flag=' ${wl}-berok'
9024 if test "$with_gnu_ld" = yes; then
9025 # We only use this code for GNU lds that support --whole-archive.
9026 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9027 else
9028 # Exported symbols can be pulled into shared objects from archives
9029 whole_archive_flag_spec='$convenience'
9030 fi
9031 archive_cmds_need_lc=yes
9032 # This is similar to how AIX traditionally builds its shared libraries.
9033 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'
9034 fi
9035 fi
9036 ;;
9037
9038 amigaos*)
9039 case $host_cpu in
9040 powerpc)
9041 # see comment about AmigaOS4 .so support
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 archive_expsym_cmds=''
9044 ;;
9045 m68k)
9046 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)'
9047 hardcode_libdir_flag_spec='-L$libdir'
9048 hardcode_minus_L=yes
9049 ;;
9050 esac
9051 ;;
9052
9053 bsdi[45]*)
9054 export_dynamic_flag_spec=-rdynamic
9055 ;;
9056
9057 cygwin* | mingw* | pw32* | cegcc*)
9058 # When not using gcc, we currently assume that we are using
9059 # Microsoft Visual C++.
9060 # hardcode_libdir_flag_spec is actually meaningless, as there is
9061 # no search path for DLLs.
9062 hardcode_libdir_flag_spec=' '
9063 allow_undefined_flag=unsupported
9064 # Tell ltmain to make .lib files, not .a files.
9065 libext=lib
9066 # Tell ltmain to make .dll files, not .so files.
9067 shrext_cmds=".dll"
9068 # FIXME: Setting linknames here is a bad hack.
9069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9070 # The linker will automatically build a .lib file if we build a DLL.
9071 old_archive_from_new_cmds='true'
9072 # FIXME: Should let the user specify the lib program.
9073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9074 fix_srcfile_path='`cygpath -w "$srcfile"`'
9075 enable_shared_with_static_runtimes=yes
9076 ;;
9077
9078 darwin* | rhapsody*)
9079
9080
9081 archive_cmds_need_lc=no
9082 hardcode_direct=no
9083 hardcode_automatic=yes
9084 hardcode_shlibpath_var=unsupported
9085 if test "$lt_cv_ld_force_load" = "yes"; then
9086 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\"`'
9087 else
9088 whole_archive_flag_spec=''
9089 fi
9090 link_all_deplibs=yes
9091 allow_undefined_flag="$_lt_dar_allow_undefined"
9092 case $cc_basename in
9093 ifort*) _lt_dar_can_shared=yes ;;
9094 *) _lt_dar_can_shared=$GCC ;;
9095 esac
9096 if test "$_lt_dar_can_shared" = "yes"; then
9097 output_verbose_link_cmd=func_echo_all
9098 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9099 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9100 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}"
9101 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}"
9102
9103 else
9104 ld_shlibs=no
9105 fi
9106
9107 ;;
9108
9109 dgux*)
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 hardcode_shlibpath_var=no
9113 ;;
9114
9115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9116 # support. Future versions do this automatically, but an explicit c++rt0.o
9117 # does not break anything, and helps significantly (at the cost of a little
9118 # extra space).
9119 freebsd2.2*)
9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9121 hardcode_libdir_flag_spec='-R$libdir'
9122 hardcode_direct=yes
9123 hardcode_shlibpath_var=no
9124 ;;
9125
9126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9127 freebsd2.*)
9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_direct=yes
9130 hardcode_minus_L=yes
9131 hardcode_shlibpath_var=no
9132 ;;
9133
9134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9135 freebsd* | dragonfly*)
9136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9137 hardcode_libdir_flag_spec='-R$libdir'
9138 hardcode_direct=yes
9139 hardcode_shlibpath_var=no
9140 ;;
9141
9142 hpux9*)
9143 if test "$GCC" = yes; then
9144 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'
9145 else
9146 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'
9147 fi
9148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9149 hardcode_libdir_separator=:
9150 hardcode_direct=yes
9151
9152 # hardcode_minus_L: Not really in the search PATH,
9153 # but as the default location of the library.
9154 hardcode_minus_L=yes
9155 export_dynamic_flag_spec='${wl}-E'
9156 ;;
9157
9158 hpux10*)
9159 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 else
9162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9163 fi
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_flag_spec_ld='+b $libdir'
9167 hardcode_libdir_separator=:
9168 hardcode_direct=yes
9169 hardcode_direct_absolute=yes
9170 export_dynamic_flag_spec='${wl}-E'
9171 # hardcode_minus_L: Not really in the search PATH,
9172 # but as the default location of the library.
9173 hardcode_minus_L=yes
9174 fi
9175 ;;
9176
9177 hpux11*)
9178 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9179 case $host_cpu in
9180 hppa*64*)
9181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182 ;;
9183 ia64*)
9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9185 ;;
9186 *)
9187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9188 ;;
9189 esac
9190 else
9191 case $host_cpu in
9192 hppa*64*)
9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194 ;;
9195 ia64*)
9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 *)
9199
9200 # Older versions of the 11.00 compiler do not understand -b yet
9201 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9203$as_echo_n "checking if $CC understands -b... " >&6; }
9204if ${lt_cv_prog_compiler__b+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206else
9207 lt_cv_prog_compiler__b=no
9208 save_LDFLAGS="$LDFLAGS"
9209 LDFLAGS="$LDFLAGS -b"
9210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9212 # The linker can only warn and ignore the option if not recognized
9213 # So say no if there are warnings
9214 if test -s conftest.err; then
9215 # Append any errors to the config.log.
9216 cat conftest.err 1>&5
9217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9219 if diff conftest.exp conftest.er2 >/dev/null; then
9220 lt_cv_prog_compiler__b=yes
9221 fi
9222 else
9223 lt_cv_prog_compiler__b=yes
9224 fi
9225 fi
9226 $RM -r conftest*
9227 LDFLAGS="$save_LDFLAGS"
9228
9229fi
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9231$as_echo "$lt_cv_prog_compiler__b" >&6; }
9232
9233if test x"$lt_cv_prog_compiler__b" = xyes; then
9234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9235else
9236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9237fi
9238
9239 ;;
9240 esac
9241 fi
9242 if test "$with_gnu_ld" = no; then
9243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245
9246 case $host_cpu in
9247 hppa*64*|ia64*)
9248 hardcode_direct=no
9249 hardcode_shlibpath_var=no
9250 ;;
9251 *)
9252 hardcode_direct=yes
9253 hardcode_direct_absolute=yes
9254 export_dynamic_flag_spec='${wl}-E'
9255
9256 # hardcode_minus_L: Not really in the search PATH,
9257 # but as the default location of the library.
9258 hardcode_minus_L=yes
9259 ;;
9260 esac
9261 fi
9262 ;;
9263
9264 irix5* | irix6* | nonstopux*)
9265 if test "$GCC" = yes; then
9266 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'
9267 # Try to use the -exported_symbol ld option, if it does not
9268 # work, assume that -exports_file does not work either and
9269 # implicitly export all symbols.
9270 save_LDFLAGS="$LDFLAGS"
9271 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h. */
9274int foo(void) {}
9275_ACEOF
9276if ac_fn_c_try_link "$LINENO"; then :
9277 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'
9278
9279fi
9280rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LDFLAGS="$save_LDFLAGS"
9283 else
9284 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'
9285 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'
9286 fi
9287 archive_cmds_need_lc='no'
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 inherit_rpath=yes
9291 link_all_deplibs=yes
9292 ;;
9293
9294 netbsd*)
9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9297 else
9298 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9299 fi
9300 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 newsos6)
9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9307 hardcode_direct=yes
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9310 hardcode_shlibpath_var=no
9311 ;;
9312
9313 *nto* | *qnx*)
9314 ;;
9315
9316 openbsd*)
9317 if test -f /usr/libexec/ld.so; then
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9320 hardcode_direct_absolute=yes
9321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9325 export_dynamic_flag_spec='${wl}-E'
9326 else
9327 case $host_os in
9328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 ;;
9332 *)
9333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9335 ;;
9336 esac
9337 fi
9338 else
9339 ld_shlibs=no
9340 fi
9341 ;;
9342
9343 os2*)
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_minus_L=yes
9346 allow_undefined_flag=unsupported
9347 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'
9348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9349 ;;
9350
9351 osf3*)
9352 if test "$GCC" = yes; then
9353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9354 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'
9355 else
9356 allow_undefined_flag=' -expect_unresolved \*'
9357 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'
9358 fi
9359 archive_cmds_need_lc='no'
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361 hardcode_libdir_separator=:
9362 ;;
9363
9364 osf4* | osf5*) # as osf3* with the addition of -msym flag
9365 if test "$GCC" = yes; then
9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9367 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'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 else
9370 allow_undefined_flag=' -expect_unresolved \*'
9371 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'
9372 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~
9373 $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'
9374
9375 # Both c and cxx compiler support -rpath directly
9376 hardcode_libdir_flag_spec='-rpath $libdir'
9377 fi
9378 archive_cmds_need_lc='no'
9379 hardcode_libdir_separator=:
9380 ;;
9381
9382 solaris*)
9383 no_undefined_flag=' -z defs'
9384 if test "$GCC" = yes; then
9385 wlarc='${wl}'
9386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9389 else
9390 case `$CC -V 2>&1` in
9391 *"Compilers 5.0"*)
9392 wlarc=''
9393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9396 ;;
9397 *)
9398 wlarc='${wl}'
9399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9402 ;;
9403 esac
9404 fi
9405 hardcode_libdir_flag_spec='-R$libdir'
9406 hardcode_shlibpath_var=no
9407 case $host_os in
9408 solaris2.[0-5] | solaris2.[0-5].*) ;;
9409 *)
9410 # The compiler driver will combine and reorder linker options,
9411 # but understands `-z linker_flag'. GCC discards it without `$wl',
9412 # but is careful enough not to reorder.
9413 # Supported since Solaris 2.6 (maybe 2.5.1?)
9414 if test "$GCC" = yes; then
9415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9416 else
9417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9418 fi
9419 ;;
9420 esac
9421 link_all_deplibs=yes
9422 ;;
9423
9424 sunos4*)
9425 if test "x$host_vendor" = xsequent; then
9426 # Use $CC to link under sequent, because it throws in some extra .o
9427 # files that make .init and .fini sections work.
9428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9431 fi
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_direct=yes
9434 hardcode_minus_L=yes
9435 hardcode_shlibpath_var=no
9436 ;;
9437
9438 sysv4)
9439 case $host_vendor in
9440 sni)
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_direct=yes # is this really true???
9443 ;;
9444 siemens)
9445 ## LD is ld it makes a PLAMLIB
9446 ## CC just makes a GrossModule.
9447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9448 reload_cmds='$CC -r -o $output$reload_objs'
9449 hardcode_direct=no
9450 ;;
9451 motorola)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9454 ;;
9455 esac
9456 runpath_var='LD_RUN_PATH'
9457 hardcode_shlibpath_var=no
9458 ;;
9459
9460 sysv4.3*)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_shlibpath_var=no
9463 export_dynamic_flag_spec='-Bexport'
9464 ;;
9465
9466 sysv4*MP*)
9467 if test -d /usr/nec; then
9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_shlibpath_var=no
9470 runpath_var=LD_RUN_PATH
9471 hardcode_runpath_var=yes
9472 ld_shlibs=yes
9473 fi
9474 ;;
9475
9476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9477 no_undefined_flag='${wl}-z,text'
9478 archive_cmds_need_lc=no
9479 hardcode_shlibpath_var=no
9480 runpath_var='LD_RUN_PATH'
9481
9482 if test "$GCC" = yes; then
9483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 else
9486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 fi
9489 ;;
9490
9491 sysv5* | sco3.2v5* | sco5v6*)
9492 # Note: We can NOT use -z defs as we might desire, because we do not
9493 # link with -lc, and that would cause any symbols used from libc to
9494 # always be unresolved, which means just about no library would
9495 # ever link correctly. If we're not using GNU ld we use -z text
9496 # though, which does catch some bad symbols but isn't as heavy-handed
9497 # as -z defs.
9498 no_undefined_flag='${wl}-z,text'
9499 allow_undefined_flag='${wl}-z,nodefs'
9500 archive_cmds_need_lc=no
9501 hardcode_shlibpath_var=no
9502 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9503 hardcode_libdir_separator=':'
9504 link_all_deplibs=yes
9505 export_dynamic_flag_spec='${wl}-Bexport'
9506 runpath_var='LD_RUN_PATH'
9507
9508 if test "$GCC" = yes; then
9509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 else
9512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 fi
9515 ;;
9516
9517 uts4*)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_shlibpath_var=no
9521 ;;
9522
9523 *)
9524 ld_shlibs=no
9525 ;;
9526 esac
9527
9528 if test x$host_vendor = xsni; then
9529 case $host in
9530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9531 export_dynamic_flag_spec='${wl}-Blargedynsym'
9532 ;;
9533 esac
9534 fi
9535 fi
9536
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9538$as_echo "$ld_shlibs" >&6; }
9539test "$ld_shlibs" = no && can_build_shared=no
9540
9541with_gnu_ld=$with_gnu_ld
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557#
9558# Do we need to explicitly link libc?
9559#
9560case "x$archive_cmds_need_lc" in
9561x|xyes)
9562 # Assume -lc should be added
9563 archive_cmds_need_lc=yes
9564
9565 if test "$enable_shared" = yes && test "$GCC" = yes; then
9566 case $archive_cmds in
9567 *'~'*)
9568 # FIXME: we may have to deal with multi-command sequences.
9569 ;;
9570 '$CC '*)
9571 # Test whether the compiler implicitly links with -lc since on some
9572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9573 # to ld, don't add -lc before -lgcc.
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9576if ${lt_cv_archive_cmds_need_lc+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578else
9579 $RM conftest*
9580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581
9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9583 (eval $ac_compile) 2>&5
9584 ac_status=$?
9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9586 test $ac_status = 0; } 2>conftest.err; then
9587 soname=conftest
9588 lib=conftest
9589 libobjs=conftest.$ac_objext
9590 deplibs=
9591 wl=$lt_prog_compiler_wl
9592 pic_flag=$lt_prog_compiler_pic
9593 compiler_flags=-v
9594 linker_flags=-v
9595 verstring=
9596 output_objdir=.
9597 libname=conftest
9598 lt_save_allow_undefined_flag=$allow_undefined_flag
9599 allow_undefined_flag=
9600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9601 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9602 ac_status=$?
9603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604 test $ac_status = 0; }
9605 then
9606 lt_cv_archive_cmds_need_lc=no
9607 else
9608 lt_cv_archive_cmds_need_lc=yes
9609 fi
9610 allow_undefined_flag=$lt_save_allow_undefined_flag
9611 else
9612 cat conftest.err 1>&5
9613 fi
9614 $RM conftest*
9615
9616fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9618$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9619 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9620 ;;
9621 esac
9622 fi
9623 ;;
9624esac
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9783$as_echo_n "checking dynamic linker characteristics... " >&6; }
9784
9785if test "$GCC" = yes; then
9786 case $host_os in
9787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9788 *) lt_awk_arg="/^libraries:/" ;;
9789 esac
9790 case $host_os in
9791 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9792 *) lt_sed_strip_eq="s,=/,/,g" ;;
9793 esac
9794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9795 case $lt_search_path_spec in
9796 *\;*)
9797 # if the path contains ";" then we assume it to be the separator
9798 # otherwise default to the standard path separator (i.e. ":") - it is
9799 # assumed that no part of a normal pathname contains ";" but that should
9800 # okay in the real world where ";" in dirpaths is itself problematic.
9801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9802 ;;
9803 *)
9804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9805 ;;
9806 esac
9807 # Ok, now we have the path, separated by spaces, we can step through it
9808 # and add multilib dir if necessary.
9809 lt_tmp_lt_search_path_spec=
9810 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9811 for lt_sys_path in $lt_search_path_spec; do
9812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9814 else
9815 test -d "$lt_sys_path" && \
9816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9817 fi
9818 done
9819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9820BEGIN {RS=" "; FS="/|\n";} {
9821 lt_foo="";
9822 lt_count=0;
9823 for (lt_i = NF; lt_i > 0; lt_i--) {
9824 if ($lt_i != "" && $lt_i != ".") {
9825 if ($lt_i == "..") {
9826 lt_count++;
9827 } else {
9828 if (lt_count == 0) {
9829 lt_foo="/" $lt_i lt_foo;
9830 } else {
9831 lt_count--;
9832 }
9833 }
9834 }
9835 }
9836 if (lt_foo != "") { lt_freq[lt_foo]++; }
9837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9838}'`
9839 # AWK program above erroneously prepends '/' to C:/dos/paths
9840 # for these hosts.
9841 case $host_os in
9842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9843 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9844 esac
9845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9846else
9847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9848fi
9849library_names_spec=
9850libname_spec='lib$name'
9851soname_spec=
9852shrext_cmds=".so"
9853postinstall_cmds=
9854postuninstall_cmds=
9855finish_cmds=
9856finish_eval=
9857shlibpath_var=
9858shlibpath_overrides_runpath=unknown
9859version_type=none
9860dynamic_linker="$host_os ld.so"
9861sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862need_lib_prefix=unknown
9863hardcode_into_libs=no
9864
9865# when you set need_version to no, make sure it does not cause -set_version
9866# flags to be left without arguments
9867need_version=unknown
9868
9869case $host_os in
9870aix3*)
9871 version_type=linux
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9873 shlibpath_var=LIBPATH
9874
9875 # AIX 3 has no versioning support, so we append a major version to the name.
9876 soname_spec='${libname}${release}${shared_ext}$major'
9877 ;;
9878
9879aix[4-9]*)
9880 version_type=linux
9881 need_lib_prefix=no
9882 need_version=no
9883 hardcode_into_libs=yes
9884 if test "$host_cpu" = ia64; then
9885 # AIX 5 supports IA64
9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 else
9889 # With GCC up to 2.95.x, collect2 would create an import file
9890 # for dependence libraries. The import file would start with
9891 # the line `#! .'. This would cause the generated library to
9892 # depend on `.', always an invalid library. This was fixed in
9893 # development snapshots of GCC prior to 3.0.
9894 case $host_os in
9895 aix4 | aix4.[01] | aix4.[01].*)
9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9897 echo ' yes '
9898 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9899 :
9900 else
9901 can_build_shared=no
9902 fi
9903 ;;
9904 esac
9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9906 # soname into executable. Probably we can add versioning support to
9907 # collect2, so additional links can be useful in future.
9908 if test "$aix_use_runtimelinking" = yes; then
9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9910 # instead of lib<name>.a to let people know that these are not
9911 # typical AIX shared libraries.
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 else
9914 # We preserve .a as extension for shared libraries through AIX4.2
9915 # and later when we are not doing run time linking.
9916 library_names_spec='${libname}${release}.a $libname.a'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 fi
9919 shlibpath_var=LIBPATH
9920 fi
9921 ;;
9922
9923amigaos*)
9924 case $host_cpu in
9925 powerpc)
9926 # Since July 2007 AmigaOS4 officially supports .so libraries.
9927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929 ;;
9930 m68k)
9931 library_names_spec='$libname.ixlibrary $libname.a'
9932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9933 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'
9934 ;;
9935 esac
9936 ;;
9937
9938beos*)
9939 library_names_spec='${libname}${shared_ext}'
9940 dynamic_linker="$host_os ld.so"
9941 shlibpath_var=LIBRARY_PATH
9942 ;;
9943
9944bsdi[45]*)
9945 version_type=linux
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9953 # the default ld.so.conf also contains /usr/contrib/lib and
9954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9955 # libtool to hard-code these into programs
9956 ;;
9957
9958cygwin* | mingw* | pw32* | cegcc*)
9959 version_type=windows
9960 shrext_cmds=".dll"
9961 need_version=no
9962 need_lib_prefix=no
9963
9964 case $GCC,$host_os in
9965 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9966 library_names_spec='$libname.dll.a'
9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9968 postinstall_cmds='base_file=`basename \${file}`~
9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9970 dldir=$destdir/`dirname \$dlpath`~
9971 test -d \$dldir || mkdir -p \$dldir~
9972 $install_prog $dir/$dlname \$dldir/$dlname~
9973 chmod a+x \$dldir/$dlname~
9974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9976 fi'
9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9978 dlpath=$dir/\$dldll~
9979 $RM \$dlpath'
9980 shlibpath_overrides_runpath=yes
9981
9982 case $host_os in
9983 cygwin*)
9984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986
9987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9988 ;;
9989 mingw* | cegcc*)
9990 # MinGW DLLs use traditional 'lib' prefix
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 ;;
9993 pw32*)
9994 # pw32 DLLs use 'pw' prefix rather than 'lib'
9995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996 ;;
9997 esac
9998 ;;
9999
10000 *)
10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10002 ;;
10003 esac
10004 dynamic_linker='Win32 ld.exe'
10005 # FIXME: first we should search . and the directory the executable is in
10006 shlibpath_var=PATH
10007 ;;
10008
10009darwin* | rhapsody*)
10010 dynamic_linker="$host_os dyld"
10011 version_type=darwin
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10015 soname_spec='${libname}${release}${major}$shared_ext'
10016 shlibpath_overrides_runpath=yes
10017 shlibpath_var=DYLD_LIBRARY_PATH
10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10019
10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10022 ;;
10023
10024dgux*)
10025 version_type=linux
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 ;;
10032
10033freebsd* | dragonfly*)
10034 # DragonFly does not have aout. When/if they implement a new
10035 # versioning mechanism, adjust this.
10036 if test -x /usr/bin/objformat; then
10037 objformat=`/usr/bin/objformat`
10038 else
10039 case $host_os in
10040 freebsd[23].*) objformat=aout ;;
10041 *) objformat=elf ;;
10042 esac
10043 fi
10044 version_type=freebsd-$objformat
10045 case $version_type in
10046 freebsd-elf*)
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 need_version=no
10049 need_lib_prefix=no
10050 ;;
10051 freebsd-*)
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10053 need_version=yes
10054 ;;
10055 esac
10056 shlibpath_var=LD_LIBRARY_PATH
10057 case $host_os in
10058 freebsd2.*)
10059 shlibpath_overrides_runpath=yes
10060 ;;
10061 freebsd3.[01]* | freebsdelf3.[01]*)
10062 shlibpath_overrides_runpath=yes
10063 hardcode_into_libs=yes
10064 ;;
10065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10067 shlibpath_overrides_runpath=no
10068 hardcode_into_libs=yes
10069 ;;
10070 *) # from 4.6 on, and DragonFly
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 ;;
10074 esac
10075 ;;
10076
10077haiku*)
10078 version_type=linux
10079 need_lib_prefix=no
10080 need_version=no
10081 dynamic_linker="$host_os runtime_loader"
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LIBRARY_PATH
10085 shlibpath_overrides_runpath=yes
10086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10087 hardcode_into_libs=yes
10088 ;;
10089
10090hpux9* | hpux10* | hpux11*)
10091 # Give a soname corresponding to the major version so that dld.sl refuses to
10092 # link against other versions.
10093 version_type=sunos
10094 need_lib_prefix=no
10095 need_version=no
10096 case $host_cpu in
10097 ia64*)
10098 shrext_cmds='.so'
10099 hardcode_into_libs=yes
10100 dynamic_linker="$host_os dld.so"
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 if test "X$HPUX_IA64_MODE" = X32; then
10106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10107 else
10108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10109 fi
10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 ;;
10112 hppa*64*)
10113 shrext_cmds='.sl'
10114 hardcode_into_libs=yes
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10122 ;;
10123 *)
10124 shrext_cmds='.sl'
10125 dynamic_linker="$host_os dld.sl"
10126 shlibpath_var=SHLIB_PATH
10127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 ;;
10131 esac
10132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10133 postinstall_cmds='chmod 555 $lib'
10134 # or fails outright, so override atomically:
10135 install_override_mode=555
10136 ;;
10137
10138interix[3-9]*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10148 ;;
10149
10150irix5* | irix6* | nonstopux*)
10151 case $host_os in
10152 nonstopux*) version_type=nonstopux ;;
10153 *)
10154 if test "$lt_cv_prog_gnu_ld" = yes; then
10155 version_type=linux
10156 else
10157 version_type=irix
10158 fi ;;
10159 esac
10160 need_lib_prefix=no
10161 need_version=no
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10164 case $host_os in
10165 irix5* | nonstopux*)
10166 libsuff= shlibsuff=
10167 ;;
10168 *)
10169 case $LD in # libtool.m4 will add one of these switches to LD
10170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10171 libsuff= shlibsuff= libmagic=32-bit;;
10172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10173 libsuff=32 shlibsuff=N32 libmagic=N32;;
10174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10176 *) libsuff= shlibsuff= libmagic=never-match;;
10177 esac
10178 ;;
10179 esac
10180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10181 shlibpath_overrides_runpath=no
10182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10184 hardcode_into_libs=yes
10185 ;;
10186
10187# No shared lib support for Linux oldld, aout, or coff.
10188linux*oldld* | linux*aout* | linux*coff*)
10189 dynamic_linker=no
10190 ;;
10191
10192# This must be Linux ELF.
10193
10194# uclinux* changes (here and below) have been submitted to the libtool
10195# project, but have not yet been accepted: they are GCC-local changes
10196# for the time being. (See
10197# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10198linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10199 version_type=linux
10200 need_lib_prefix=no
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=no
10207
10208 # Some binutils ld are patched to set DT_RUNPATH
10209 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211else
10212 lt_cv_shlibpath_overrides_runpath=no
10213 save_LDFLAGS=$LDFLAGS
10214 save_libdir=$libdir
10215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h. */
10219
10220int
10221main ()
10222{
10223
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then :
10229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10230 lt_cv_shlibpath_overrides_runpath=yes
10231fi
10232fi
10233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LDFLAGS=$save_LDFLAGS
10236 libdir=$save_libdir
10237
10238fi
10239
10240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10241
10242 # This implies no fast_install, which is unacceptable.
10243 # Some rework will be needed to allow for fast_install
10244 # before this can be enabled.
10245 hardcode_into_libs=yes
10246
10247 # Append ld.so.conf contents to the search path
10248 if test -f /etc/ld.so.conf; then
10249 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' ' '`
10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 fi
10252
10253 # We used to test for /lib/ld.so.1 and disable shared libraries on
10254 # powerpc, because MkLinux only supported shared libraries with the
10255 # GNU dynamic linker. Since this was broken with cross compilers,
10256 # most powerpc-linux boxes support dynamic linking these days and
10257 # people can always --disable-shared, the test was removed, and we
10258 # assume the GNU/Linux dynamic linker is in use.
10259 dynamic_linker='GNU/Linux ld.so'
10260 ;;
10261
10262netbsd*)
10263 version_type=sunos
10264 need_lib_prefix=no
10265 need_version=no
10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269 dynamic_linker='NetBSD (a.out) ld.so'
10270 else
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 dynamic_linker='NetBSD ld.elf_so'
10274 fi
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 ;;
10279
10280newsos6)
10281 version_type=linux
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10285 ;;
10286
10287*nto* | *qnx*)
10288 version_type=qnx
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=no
10295 hardcode_into_libs=yes
10296 dynamic_linker='ldqnx.so'
10297 ;;
10298
10299openbsd*)
10300 version_type=sunos
10301 sys_lib_dlsearch_path_spec="/usr/lib"
10302 need_lib_prefix=no
10303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10304 case $host_os in
10305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10306 *) need_version=no ;;
10307 esac
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10312 case $host_os in
10313 openbsd2.[89] | openbsd2.[89].*)
10314 shlibpath_overrides_runpath=no
10315 ;;
10316 *)
10317 shlibpath_overrides_runpath=yes
10318 ;;
10319 esac
10320 else
10321 shlibpath_overrides_runpath=yes
10322 fi
10323 ;;
10324
10325os2*)
10326 libname_spec='$name'
10327 shrext_cmds=".dll"
10328 need_lib_prefix=no
10329 library_names_spec='$libname${shared_ext} $libname.a'
10330 dynamic_linker='OS/2 ld.exe'
10331 shlibpath_var=LIBPATH
10332 ;;
10333
10334osf3* | osf4* | osf5*)
10335 version_type=osf
10336 need_lib_prefix=no
10337 need_version=no
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10343 ;;
10344
10345rdos*)
10346 dynamic_linker=no
10347 ;;
10348
10349solaris*)
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes
10357 hardcode_into_libs=yes
10358 # ldd complains unless libraries are executable
10359 postinstall_cmds='chmod +x $lib'
10360 ;;
10361
10362sunos4*)
10363 version_type=sunos
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 if test "$with_gnu_ld" = yes; then
10369 need_lib_prefix=no
10370 fi
10371 need_version=yes
10372 ;;
10373
10374sysv4 | sysv4.3*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 case $host_vendor in
10380 sni)
10381 shlibpath_overrides_runpath=no
10382 need_lib_prefix=no
10383 runpath_var=LD_RUN_PATH
10384 ;;
10385 siemens)
10386 need_lib_prefix=no
10387 ;;
10388 motorola)
10389 need_lib_prefix=no
10390 need_version=no
10391 shlibpath_overrides_runpath=no
10392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10393 ;;
10394 esac
10395 ;;
10396
10397sysv4*MP*)
10398 if test -d /usr/nec ;then
10399 version_type=linux
10400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10401 soname_spec='$libname${shared_ext}.$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 fi
10404 ;;
10405
10406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10407 version_type=freebsd-elf
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes
10414 hardcode_into_libs=yes
10415 if test "$with_gnu_ld" = yes; then
10416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10417 else
10418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10419 case $host_os in
10420 sco3.2v5*)
10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10422 ;;
10423 esac
10424 fi
10425 sys_lib_dlsearch_path_spec='/usr/lib'
10426 ;;
10427
10428tpf*)
10429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10430 version_type=linux
10431 need_lib_prefix=no
10432 need_version=no
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=no
10436 hardcode_into_libs=yes
10437 ;;
10438
10439uts4*)
10440 version_type=linux
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 ;;
10445
10446# Shared libraries for VwWorks, >= 7 only at this stage
10447# and (fpic) still incompatible with "large" code models
10448# in a few configurations. Only for RTP mode in any case,
10449# and upon explicit request at configure time.
10450vxworks7*)
10451 dynamic_linker=no
10452 case ${with_multisubdir}-${enable_shared} in
10453 *large*)
10454 ;;
10455 *mrtp*-yes)
10456 version_type=linux
10457 need_lib_prefix=no
10458 need_version=no
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 dynamic_linker="$host_os module_loader"
10462 ;;
10463 esac
10464 ;;
10465*)
10466 dynamic_linker=no
10467 ;;
10468esac
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10470$as_echo "$dynamic_linker" >&6; }
10471test "$dynamic_linker" = no && can_build_shared=no
10472
10473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10474if test "$GCC" = yes; then
10475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10476fi
10477
10478if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10479 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10480fi
10481if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10482 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10483fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10577$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10578hardcode_action=
10579if test -n "$hardcode_libdir_flag_spec" ||
10580 test -n "$runpath_var" ||
10581 test "X$hardcode_automatic" = "Xyes" ; then
10582
10583 # We can hardcode non-existent directories.
10584 if test "$hardcode_direct" != no &&
10585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10586 # have to relink, otherwise we might link with an installed library
10587 # when we should be linking with a yet-to-be-installed one
10588 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10589 test "$hardcode_minus_L" != no; then
10590 # Linking always hardcodes the temporary library directory.
10591 hardcode_action=relink
10592 else
10593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10594 hardcode_action=immediate
10595 fi
10596else
10597 # We cannot hardcode anything, or else we can only hardcode existing
10598 # directories.
10599 hardcode_action=unsupported
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10602$as_echo "$hardcode_action" >&6; }
10603
10604if test "$hardcode_action" = relink ||
10605 test "$inherit_rpath" = yes; then
10606 # Fast installation is not supported
10607 enable_fast_install=no
10608elif test "$shlibpath_overrides_runpath" = yes ||
10609 test "$enable_shared" = no; then
10610 # Fast installation is not necessary
10611 enable_fast_install=needless
10612fi
10613
10614
10615
10616
10617
10618
10619 if test "x$enable_dlopen" != xyes; then
10620 enable_dlopen=unknown
10621 enable_dlopen_self=unknown
10622 enable_dlopen_self_static=unknown
10623else
10624 lt_cv_dlopen=no
10625 lt_cv_dlopen_libs=
10626
10627 case $host_os in
10628 beos*)
10629 lt_cv_dlopen="load_add_on"
10630 lt_cv_dlopen_libs=
10631 lt_cv_dlopen_self=yes
10632 ;;
10633
10634 mingw* | pw32* | cegcc*)
10635 lt_cv_dlopen="LoadLibrary"
10636 lt_cv_dlopen_libs=
10637 ;;
10638
10639 cygwin*)
10640 lt_cv_dlopen="dlopen"
10641 lt_cv_dlopen_libs=
10642 ;;
10643
10644 darwin*)
10645 # if libdl is installed we need to link against it
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10647$as_echo_n "checking for dlopen in -ldl... " >&6; }
10648if ${ac_cv_lib_dl_dlopen+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650else
10651 ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldl $LIBS"
10653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h. */
10655
10656/* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662char dlopen ();
10663int
10664main ()
10665{
10666return dlopen ();
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672 ac_cv_lib_dl_dlopen=yes
10673else
10674 ac_cv_lib_dl_dlopen=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678LIBS=$ac_check_lib_save_LIBS
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10681$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684else
10685
10686 lt_cv_dlopen="dyld"
10687 lt_cv_dlopen_libs=
10688 lt_cv_dlopen_self=yes
10689
10690fi
10691
10692 ;;
10693
10694 *)
10695 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10696if test "x$ac_cv_func_shl_load" = xyes; then :
10697 lt_cv_dlopen="shl_load"
10698else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10700$as_echo_n "checking for shl_load in -ldld... " >&6; }
10701if ${ac_cv_lib_dld_shl_load+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703else
10704 ac_check_lib_save_LIBS=$LIBS
10705LIBS="-ldld $LIBS"
10706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707/* end confdefs.h. */
10708
10709/* Override any GCC internal prototype to avoid an error.
10710 Use char because int might match the return type of a GCC
10711 builtin and then its argument prototype would still apply. */
10712#ifdef __cplusplus
10713extern "C"
10714#endif
10715char shl_load ();
10716int
10717main ()
10718{
10719return shl_load ();
10720 ;
10721 return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"; then :
10725 ac_cv_lib_dld_shl_load=yes
10726else
10727 ac_cv_lib_dld_shl_load=no
10728fi
10729rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
10731LIBS=$ac_check_lib_save_LIBS
10732fi
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10734$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10735if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10736 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10737else
10738 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10739if test "x$ac_cv_func_dlopen" = xyes; then :
10740 lt_cv_dlopen="dlopen"
10741else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10743$as_echo_n "checking for dlopen in -ldl... " >&6; }
10744if ${ac_cv_lib_dl_dlopen+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746else
10747 ac_check_lib_save_LIBS=$LIBS
10748LIBS="-ldl $LIBS"
10749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750/* end confdefs.h. */
10751
10752/* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755#ifdef __cplusplus
10756extern "C"
10757#endif
10758char dlopen ();
10759int
10760main ()
10761{
10762return dlopen ();
10763 ;
10764 return 0;
10765}
10766_ACEOF
10767if ac_fn_c_try_link "$LINENO"; then :
10768 ac_cv_lib_dl_dlopen=yes
10769else
10770 ac_cv_lib_dl_dlopen=no
10771fi
10772rm -f core conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10774LIBS=$ac_check_lib_save_LIBS
10775fi
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10777$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10778if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10780else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10782$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10783if ${ac_cv_lib_svld_dlopen+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785else
10786 ac_check_lib_save_LIBS=$LIBS
10787LIBS="-lsvld $LIBS"
10788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789/* end confdefs.h. */
10790
10791/* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794#ifdef __cplusplus
10795extern "C"
10796#endif
10797char dlopen ();
10798int
10799main ()
10800{
10801return dlopen ();
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_lib_svld_dlopen=yes
10808else
10809 ac_cv_lib_svld_dlopen=no
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813LIBS=$ac_check_lib_save_LIBS
10814fi
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10816$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10817if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10819else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10821$as_echo_n "checking for dld_link in -ldld... " >&6; }
10822if ${ac_cv_lib_dld_dld_link+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824else
10825 ac_check_lib_save_LIBS=$LIBS
10826LIBS="-ldld $LIBS"
10827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
10829
10830/* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10833#ifdef __cplusplus
10834extern "C"
10835#endif
10836char dld_link ();
10837int
10838main ()
10839{
10840return dld_link ();
10841 ;
10842 return 0;
10843}
10844_ACEOF
10845if ac_fn_c_try_link "$LINENO"; then :
10846 ac_cv_lib_dld_dld_link=yes
10847else
10848 ac_cv_lib_dld_dld_link=no
10849fi
10850rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10855$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10856if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10858fi
10859
10860
10861fi
10862
10863
10864fi
10865
10866
10867fi
10868
10869
10870fi
10871
10872
10873fi
10874
10875 ;;
10876 esac
10877
10878 if test "x$lt_cv_dlopen" != xno; then
10879 enable_dlopen=yes
10880 else
10881 enable_dlopen=no
10882 fi
10883
10884 case $lt_cv_dlopen in
10885 dlopen)
10886 save_CPPFLAGS="$CPPFLAGS"
10887 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10888
10889 save_LDFLAGS="$LDFLAGS"
10890 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10891
10892 save_LIBS="$LIBS"
10893 LIBS="$lt_cv_dlopen_libs $LIBS"
10894
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10896$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10897if ${lt_cv_dlopen_self+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899else
10900 if test "$cross_compiling" = yes; then :
10901 lt_cv_dlopen_self=cross
10902else
10903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10904 lt_status=$lt_dlunknown
10905 cat > conftest.$ac_ext <<_LT_EOF
10906#line 10906 "configure"
10907#include "confdefs.h"
10908
10909#if HAVE_DLFCN_H
10910#include <dlfcn.h>
10911#endif
10912
10913#include <stdio.h>
10914
10915#ifdef RTLD_GLOBAL
10916# define LT_DLGLOBAL RTLD_GLOBAL
10917#else
10918# ifdef DL_GLOBAL
10919# define LT_DLGLOBAL DL_GLOBAL
10920# else
10921# define LT_DLGLOBAL 0
10922# endif
10923#endif
10924
10925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10926 find out it does not work in some platform. */
10927#ifndef LT_DLLAZY_OR_NOW
10928# ifdef RTLD_LAZY
10929# define LT_DLLAZY_OR_NOW RTLD_LAZY
10930# else
10931# ifdef DL_LAZY
10932# define LT_DLLAZY_OR_NOW DL_LAZY
10933# else
10934# ifdef RTLD_NOW
10935# define LT_DLLAZY_OR_NOW RTLD_NOW
10936# else
10937# ifdef DL_NOW
10938# define LT_DLLAZY_OR_NOW DL_NOW
10939# else
10940# define LT_DLLAZY_OR_NOW 0
10941# endif
10942# endif
10943# endif
10944# endif
10945#endif
10946
10947/* When -fvisbility=hidden is used, assume the code has been annotated
10948 correspondingly for the symbols needed. */
10949#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10950void fnord () __attribute__((visibility("default")));
10951#endif
10952
10953void fnord () { int i=42; }
10954int main ()
10955{
10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10957 int status = $lt_dlunknown;
10958
10959 if (self)
10960 {
10961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10962 else
10963 {
10964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10965 else puts (dlerror ());
10966 }
10967 /* dlclose (self); */
10968 }
10969 else
10970 puts (dlerror ());
10971
10972 return status;
10973}
10974_LT_EOF
10975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10976 (eval $ac_link) 2>&5
10977 ac_status=$?
10978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10980 (./conftest; exit; ) >&5 2>/dev/null
10981 lt_status=$?
10982 case x$lt_status in
10983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10985 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10986 esac
10987 else :
10988 # compilation failed
10989 lt_cv_dlopen_self=no
10990 fi
10991fi
10992rm -fr conftest*
10993
10994
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10997$as_echo "$lt_cv_dlopen_self" >&6; }
10998
10999 if test "x$lt_cv_dlopen_self" = xyes; then
11000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11002$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11003if ${lt_cv_dlopen_self_static+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005else
11006 if test "$cross_compiling" = yes; then :
11007 lt_cv_dlopen_self_static=cross
11008else
11009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11010 lt_status=$lt_dlunknown
11011 cat > conftest.$ac_ext <<_LT_EOF
11012#line 11012 "configure"
11013#include "confdefs.h"
11014
11015#if HAVE_DLFCN_H
11016#include <dlfcn.h>
11017#endif
11018
11019#include <stdio.h>
11020
11021#ifdef RTLD_GLOBAL
11022# define LT_DLGLOBAL RTLD_GLOBAL
11023#else
11024# ifdef DL_GLOBAL
11025# define LT_DLGLOBAL DL_GLOBAL
11026# else
11027# define LT_DLGLOBAL 0
11028# endif
11029#endif
11030
11031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11032 find out it does not work in some platform. */
11033#ifndef LT_DLLAZY_OR_NOW
11034# ifdef RTLD_LAZY
11035# define LT_DLLAZY_OR_NOW RTLD_LAZY
11036# else
11037# ifdef DL_LAZY
11038# define LT_DLLAZY_OR_NOW DL_LAZY
11039# else
11040# ifdef RTLD_NOW
11041# define LT_DLLAZY_OR_NOW RTLD_NOW
11042# else
11043# ifdef DL_NOW
11044# define LT_DLLAZY_OR_NOW DL_NOW
11045# else
11046# define LT_DLLAZY_OR_NOW 0
11047# endif
11048# endif
11049# endif
11050# endif
11051#endif
11052
11053/* When -fvisbility=hidden is used, assume the code has been annotated
11054 correspondingly for the symbols needed. */
11055#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11056void fnord () __attribute__((visibility("default")));
11057#endif
11058
11059void fnord () { int i=42; }
11060int main ()
11061{
11062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11063 int status = $lt_dlunknown;
11064
11065 if (self)
11066 {
11067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11068 else
11069 {
11070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11071 else puts (dlerror ());
11072 }
11073 /* dlclose (self); */
11074 }
11075 else
11076 puts (dlerror ());
11077
11078 return status;
11079}
11080_LT_EOF
11081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11082 (eval $ac_link) 2>&5
11083 ac_status=$?
11084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11085 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11086 (./conftest; exit; ) >&5 2>/dev/null
11087 lt_status=$?
11088 case x$lt_status in
11089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11091 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11092 esac
11093 else :
11094 # compilation failed
11095 lt_cv_dlopen_self_static=no
11096 fi
11097fi
11098rm -fr conftest*
11099
11100
11101fi
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11103$as_echo "$lt_cv_dlopen_self_static" >&6; }
11104 fi
11105
11106 CPPFLAGS="$save_CPPFLAGS"
11107 LDFLAGS="$save_LDFLAGS"
11108 LIBS="$save_LIBS"
11109 ;;
11110 esac
11111
11112 case $lt_cv_dlopen_self in
11113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11114 *) enable_dlopen_self=unknown ;;
11115 esac
11116
11117 case $lt_cv_dlopen_self_static in
11118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11119 *) enable_dlopen_self_static=unknown ;;
11120 esac
11121fi
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139striplib=
11140old_striplib=
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11142$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11143if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11147$as_echo "yes" >&6; }
11148else
11149# FIXME - insert some real tests, host_os isn't really good enough
11150 case $host_os in
11151 darwin*)
11152 if test -n "$STRIP" ; then
11153 striplib="$STRIP -x"
11154 old_striplib="$STRIP -S"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11156$as_echo "yes" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
11160 fi
11161 ;;
11162 *)
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164$as_echo "no" >&6; }
11165 ;;
11166 esac
11167fi
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 # Report which library types will actually be built
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11182$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11184$as_echo "$can_build_shared" >&6; }
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11187$as_echo_n "checking whether to build shared libraries... " >&6; }
11188 test "$can_build_shared" = "no" && enable_shared=no
11189
11190 # On AIX, shared libraries and static libraries use the same namespace, and
11191 # are all built from PIC.
11192 case $host_os in
11193 aix3*)
11194 test "$enable_shared" = yes && enable_static=no
11195 if test -n "$RANLIB"; then
11196 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11197 postinstall_cmds='$RANLIB $lib'
11198 fi
11199 ;;
11200
11201 aix[4-9]*)
11202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11203 test "$enable_shared" = yes && enable_static=no
11204 fi
11205 ;;
11206 esac
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11208$as_echo "$enable_shared" >&6; }
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11211$as_echo_n "checking whether to build static libraries... " >&6; }
11212 # Make sure either enable_shared or enable_static is yes.
11213 test "$enable_shared" = yes || enable_static=yes
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11215$as_echo "$enable_static" >&6; }
11216
11217
11218
11219
11220fi
11221ac_ext=c
11222ac_cpp='$CPP $CPPFLAGS'
11223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11225ac_compiler_gnu=$ac_cv_c_compiler_gnu
11226
11227CC="$lt_save_CC"
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241 ac_config_commands="$ac_config_commands libtool"
11242
11243
11244
11245
11246# Only expand once:
11247
11248
11249
11250ac_checking=
11251. ${srcdir}/../bfd/development.sh
11252test "$development" = true && ac_checking=yes
11253# Check whether --enable-checking was given.
11254if test "${enable_checking+set}" = set; then :
11255 enableval=$enable_checking; case "${enableval}" in
11256 no|none) ac_checking= ;;
11257 *) ac_checking=yes ;;
11258esac
11259fi
11260if test x$ac_checking != x ; then
11261
11262$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11263
11264fi
11265
11266# Check whether --enable-targets was given.
11267if test "${enable_targets+set}" = set; then :
11268 enableval=$enable_targets; case "${enableval}" in
11269 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11270 ;;
11271 no) enable_targets= ;;
11272 *) enable_targets=$enableval ;;
11273esac
11274fi
11275
11276
11277# Set the 'development' global.
11278. $srcdir/../bfd/development.sh
11279
11280# Set acp_cpp_for_build variable
11281ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11282
11283# Default set of GCC warnings to enable.
11284GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11285GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11286
11287# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h. */
11290__GNUC__
11291_ACEOF
11292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11293 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11294
11295else
11296 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11297fi
11298rm -f conftest*
11299
11300
11301# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304__GNUC__
11305_ACEOF
11306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11307 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11308
11309else
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h. */
11312__clang__
11313_ACEOF
11314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11315 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11316 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11317fi
11318rm -f conftest*
11319
11320fi
11321rm -f conftest*
11322
11323
11324# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11325WARN_WRITE_STRINGS=""
11326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h. */
11328__GNUC__
11329_ACEOF
11330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11331 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11332
11333else
11334 WARN_WRITE_STRINGS="-Wwrite-strings"
11335fi
11336rm -f conftest*
11337
11338
11339# Verify CC_FOR_BUILD to be compatible with warning flags
11340
11341# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h. */
11344__GNUC__
11345_ACEOF
11346if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11347 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11348
11349else
11350 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11351fi
11352rm -f conftest*
11353
11354
11355# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357/* end confdefs.h. */
11358__GNUC__
11359_ACEOF
11360if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11361 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11362
11363else
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365/* end confdefs.h. */
11366__clang__
11367_ACEOF
11368if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11369 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11370 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11371fi
11372rm -f conftest*
11373
11374fi
11375rm -f conftest*
11376
11377
11378# Check whether --enable-werror was given.
11379if test "${enable_werror+set}" = set; then :
11380 enableval=$enable_werror; case "${enableval}" in
11381 yes | y) ERROR_ON_WARNING="yes" ;;
11382 no | n) ERROR_ON_WARNING="no" ;;
11383 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11384 esac
11385fi
11386
11387
11388# Disable -Wformat by default when using gcc on mingw
11389case "${host}" in
11390 *-*-mingw32*)
11391 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11392 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11393 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11394 fi
11395 ;;
11396 *) ;;
11397esac
11398
11399# Enable -Werror by default when using gcc. Turn it off for releases.
11400if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11401 ERROR_ON_WARNING=yes
11402fi
11403
11404NO_WERROR=
11405if test "${ERROR_ON_WARNING}" = yes ; then
11406 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11407 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11408 NO_WERROR="-Wno-error"
11409fi
11410
11411if test "${GCC}" = yes ; then
11412 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11413 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11414fi
11415
11416# Check whether --enable-build-warnings was given.
11417if test "${enable_build_warnings+set}" = set; then :
11418 enableval=$enable_build_warnings; case "${enableval}" in
11419 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11420 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11421 no) if test "${GCC}" = yes ; then
11422 WARN_CFLAGS="-w"
11423 WARN_CFLAGS_FOR_BUILD="-w"
11424 fi;;
11425 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11426 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11427 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11430 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11432 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11433esac
11434fi
11435
11436
11437if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11438 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11439fi
11440
11441
11442
11443
11444
11445
11446
11447ac_config_headers="$ac_config_headers config.h:config.in"
11448
11449
11450# PR 14072
11451
11452
11453if test -z "$target" ; then
11454 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
11455fi
11456
11457
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11459$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11460 # Check whether --enable-maintainer-mode was given.
11461if test "${enable_maintainer_mode+set}" = set; then :
11462 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11463else
11464 USE_MAINTAINER_MODE=no
11465fi
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11468$as_echo "$USE_MAINTAINER_MODE" >&6; }
11469 if test $USE_MAINTAINER_MODE = yes; then
11470 MAINTAINER_MODE_TRUE=
11471 MAINTAINER_MODE_FALSE='#'
11472else
11473 MAINTAINER_MODE_TRUE='#'
11474 MAINTAINER_MODE_FALSE=
11475fi
11476
11477 MAINT=$MAINTAINER_MODE_TRUE
11478
11479
11480 case ${build_alias} in
11481 "") build_noncanonical=${build} ;;
11482 *) build_noncanonical=${build_alias} ;;
11483esac
11484
11485 case ${host_alias} in
11486 "") host_noncanonical=${build_noncanonical} ;;
11487 *) host_noncanonical=${host_alias} ;;
11488esac
11489
11490 case ${target_alias} in
11491 "") target_noncanonical=${host_noncanonical} ;;
11492 *) target_noncanonical=${target_alias} ;;
11493esac
11494
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11496$as_echo_n "checking whether to install libbfd... " >&6; }
11497 # Check whether --enable-install-libbfd was given.
11498if test "${enable_install_libbfd+set}" = set; then :
11499 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
11500else
11501 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11502 install_libbfd_p=yes
11503 else
11504 install_libbfd_p=no
11505 fi
11506fi
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11509$as_echo "$install_libbfd_p" >&6; }
11510 if test $install_libbfd_p = yes; then
11511 INSTALL_LIBBFD_TRUE=
11512 INSTALL_LIBBFD_FALSE='#'
11513else
11514 INSTALL_LIBBFD_TRUE='#'
11515 INSTALL_LIBBFD_FALSE=
11516fi
11517
11518 # Need _noncanonical variables for this.
11519
11520
11521
11522
11523 # libbfd.a is a host library containing target dependent code
11524 bfdlibdir='$(libdir)'
11525 bfdincludedir='$(includedir)'
11526 if test "${host}" != "${target}"; then
11527 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11528 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11529 fi
11530
11531
11532
11533
11534
11535
11536
11537
11538# host-specific stuff:
11539
11540ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN"
11541
11542 MKINSTALLDIRS=
11543 if test -n "$ac_aux_dir"; then
11544 case "$ac_aux_dir" in
11545 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11546 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11547 esac
11548 fi
11549 if test -z "$MKINSTALLDIRS"; then
11550 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11551 fi
11552
11553
11554
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11556$as_echo_n "checking whether NLS is requested... " >&6; }
11557 # Check whether --enable-nls was given.
11558if test "${enable_nls+set}" = set; then :
11559 enableval=$enable_nls; USE_NLS=$enableval
11560else
11561 USE_NLS=yes
11562fi
11563
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11565$as_echo "$USE_NLS" >&6; }
11566
11567
11568
11569
11570
11571
11572# Prepare PATH_SEPARATOR.
11573# The user is always right.
11574if test "${PATH_SEPARATOR+set}" != set; then
11575 echo "#! /bin/sh" >conf$$.sh
11576 echo "exit 0" >>conf$$.sh
11577 chmod +x conf$$.sh
11578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11579 PATH_SEPARATOR=';'
11580 else
11581 PATH_SEPARATOR=:
11582 fi
11583 rm -f conf$$.sh
11584fi
11585
11586# Find out how to test for executable files. Don't use a zero-byte file,
11587# as systems may use methods other than mode bits to determine executability.
11588cat >conf$$.file <<_ASEOF
11589#! /bin/sh
11590exit 0
11591_ASEOF
11592chmod +x conf$$.file
11593if test -x conf$$.file >/dev/null 2>&1; then
11594 ac_executable_p="test -x"
11595else
11596 ac_executable_p="test -f"
11597fi
11598rm -f conf$$.file
11599
11600# Extract the first word of "msgfmt", so it can be a program name with args.
11601set dummy msgfmt; ac_word=$2
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if ${ac_cv_path_MSGFMT+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606else
11607 case "$MSGFMT" in
11608 [\\/]* | ?:[\\/]*)
11609 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11610 ;;
11611 *)
11612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11613 for ac_dir in $PATH; do
11614 IFS="$ac_save_IFS"
11615 test -z "$ac_dir" && ac_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11618 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11619 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11620 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11621 break 2
11622 fi
11623 fi
11624 done
11625 done
11626 IFS="$ac_save_IFS"
11627 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11628 ;;
11629esac
11630fi
11631MSGFMT="$ac_cv_path_MSGFMT"
11632if test "$MSGFMT" != ":"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11634$as_echo "$MSGFMT" >&6; }
11635else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
11638fi
11639
11640 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11641set dummy gmsgfmt; ac_word=$2
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643$as_echo_n "checking for $ac_word... " >&6; }
11644if ${ac_cv_path_GMSGFMT+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646else
11647 case $GMSGFMT in
11648 [\\/]* | ?:[\\/]*)
11649 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11650 ;;
11651 *)
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663done
11664 done
11665IFS=$as_save_IFS
11666
11667 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11668 ;;
11669esac
11670fi
11671GMSGFMT=$ac_cv_path_GMSGFMT
11672if test -n "$GMSGFMT"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11674$as_echo "$GMSGFMT" >&6; }
11675else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677$as_echo "no" >&6; }
11678fi
11679
11680
11681
11682
11683# Prepare PATH_SEPARATOR.
11684# The user is always right.
11685if test "${PATH_SEPARATOR+set}" != set; then
11686 echo "#! /bin/sh" >conf$$.sh
11687 echo "exit 0" >>conf$$.sh
11688 chmod +x conf$$.sh
11689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11690 PATH_SEPARATOR=';'
11691 else
11692 PATH_SEPARATOR=:
11693 fi
11694 rm -f conf$$.sh
11695fi
11696
11697# Find out how to test for executable files. Don't use a zero-byte file,
11698# as systems may use methods other than mode bits to determine executability.
11699cat >conf$$.file <<_ASEOF
11700#! /bin/sh
11701exit 0
11702_ASEOF
11703chmod +x conf$$.file
11704if test -x conf$$.file >/dev/null 2>&1; then
11705 ac_executable_p="test -x"
11706else
11707 ac_executable_p="test -f"
11708fi
11709rm -f conf$$.file
11710
11711# Extract the first word of "xgettext", so it can be a program name with args.
11712set dummy xgettext; ac_word=$2
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
11715if ${ac_cv_path_XGETTEXT+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717else
11718 case "$XGETTEXT" in
11719 [\\/]* | ?:[\\/]*)
11720 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11721 ;;
11722 *)
11723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11724 for ac_dir in $PATH; do
11725 IFS="$ac_save_IFS"
11726 test -z "$ac_dir" && ac_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11729 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11730 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11731 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11732 break 2
11733 fi
11734 fi
11735 done
11736 done
11737 IFS="$ac_save_IFS"
11738 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11739 ;;
11740esac
11741fi
11742XGETTEXT="$ac_cv_path_XGETTEXT"
11743if test "$XGETTEXT" != ":"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11745$as_echo "$XGETTEXT" >&6; }
11746else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
11749fi
11750
11751 rm -f messages.po
11752
11753
11754# Prepare PATH_SEPARATOR.
11755# The user is always right.
11756if test "${PATH_SEPARATOR+set}" != set; then
11757 echo "#! /bin/sh" >conf$$.sh
11758 echo "exit 0" >>conf$$.sh
11759 chmod +x conf$$.sh
11760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11761 PATH_SEPARATOR=';'
11762 else
11763 PATH_SEPARATOR=:
11764 fi
11765 rm -f conf$$.sh
11766fi
11767
11768# Find out how to test for executable files. Don't use a zero-byte file,
11769# as systems may use methods other than mode bits to determine executability.
11770cat >conf$$.file <<_ASEOF
11771#! /bin/sh
11772exit 0
11773_ASEOF
11774chmod +x conf$$.file
11775if test -x conf$$.file >/dev/null 2>&1; then
11776 ac_executable_p="test -x"
11777else
11778 ac_executable_p="test -f"
11779fi
11780rm -f conf$$.file
11781
11782# Extract the first word of "msgmerge", so it can be a program name with args.
11783set dummy msgmerge; ac_word=$2
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785$as_echo_n "checking for $ac_word... " >&6; }
11786if ${ac_cv_path_MSGMERGE+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 case "$MSGMERGE" in
11790 [\\/]* | ?:[\\/]*)
11791 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11792 ;;
11793 *)
11794 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11795 for ac_dir in $PATH; do
11796 IFS="$ac_save_IFS"
11797 test -z "$ac_dir" && ac_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11800 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11801 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11802 break 2
11803 fi
11804 fi
11805 done
11806 done
11807 IFS="$ac_save_IFS"
11808 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11809 ;;
11810esac
11811fi
11812MSGMERGE="$ac_cv_path_MSGMERGE"
11813if test "$MSGMERGE" != ":"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11815$as_echo "$MSGMERGE" >&6; }
11816else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
11819fi
11820
11821
11822 if test "$GMSGFMT" != ":"; then
11823 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11824 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11825 : ;
11826 else
11827 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11829$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11830 GMSGFMT=":"
11831 fi
11832 fi
11833
11834 if test "$XGETTEXT" != ":"; then
11835 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11836 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11837 : ;
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11840$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11841 XGETTEXT=":"
11842 fi
11843 rm -f messages.po
11844 fi
11845
11846 ac_config_commands="$ac_config_commands default-1"
11847
11848
11849
11850 if test "X$prefix" = "XNONE"; then
11851 acl_final_prefix="$ac_default_prefix"
11852 else
11853 acl_final_prefix="$prefix"
11854 fi
11855 if test "X$exec_prefix" = "XNONE"; then
11856 acl_final_exec_prefix='${prefix}'
11857 else
11858 acl_final_exec_prefix="$exec_prefix"
11859 fi
11860 acl_save_prefix="$prefix"
11861 prefix="$acl_final_prefix"
11862 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11863 prefix="$acl_save_prefix"
11864
11865
11866# Check whether --with-gnu-ld was given.
11867if test "${with_gnu_ld+set}" = set; then :
11868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11869else
11870 with_gnu_ld=no
11871fi
11872
11873# Prepare PATH_SEPARATOR.
11874# The user is always right.
11875if test "${PATH_SEPARATOR+set}" != set; then
11876 echo "#! /bin/sh" >conf$$.sh
11877 echo "exit 0" >>conf$$.sh
11878 chmod +x conf$$.sh
11879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11880 PATH_SEPARATOR=';'
11881 else
11882 PATH_SEPARATOR=:
11883 fi
11884 rm -f conf$$.sh
11885fi
11886ac_prog=ld
11887if test "$GCC" = yes; then
11888 # Check if gcc -print-prog-name=ld gives a path.
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11890$as_echo_n "checking for ld used by GCC... " >&6; }
11891 case $host in
11892 *-*-mingw*)
11893 # gcc leaves a trailing carriage return which upsets mingw
11894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11895 *)
11896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11897 esac
11898 case $ac_prog in
11899 # Accept absolute paths.
11900 [\\/]* | [A-Za-z]:[\\/]*)
11901 re_direlt='/[^/][^/]*/\.\./'
11902 # Canonicalize the path of ld
11903 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11906 done
11907 test -z "$LD" && LD="$ac_prog"
11908 ;;
11909 "")
11910 # If it fails, then pretend we aren't using GCC.
11911 ac_prog=ld
11912 ;;
11913 *)
11914 # If it is relative, then search for the first ld in PATH.
11915 with_gnu_ld=unknown
11916 ;;
11917 esac
11918elif test "$with_gnu_ld" = yes; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11920$as_echo_n "checking for GNU ld... " >&6; }
11921else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11923$as_echo_n "checking for non-GNU ld... " >&6; }
11924fi
11925if ${acl_cv_path_LD+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927else
11928 if test -z "$LD"; then
11929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11930 for ac_dir in $PATH; do
11931 test -z "$ac_dir" && ac_dir=.
11932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11933 acl_cv_path_LD="$ac_dir/$ac_prog"
11934 # Check to see if the program is GNU ld. I'd rather use --version,
11935 # but apparently some GNU ld's only accept -v.
11936 # Break only if it was the GNU/non-GNU ld that we prefer.
11937 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11938 test "$with_gnu_ld" != no && break
11939 else
11940 test "$with_gnu_ld" != yes && break
11941 fi
11942 fi
11943 done
11944 IFS="$ac_save_ifs"
11945else
11946 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11947fi
11948fi
11949
11950LD="$acl_cv_path_LD"
11951if test -n "$LD"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11953$as_echo "$LD" >&6; }
11954else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956$as_echo "no" >&6; }
11957fi
11958test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11960$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11961if ${acl_cv_prog_gnu_ld+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963else
11964 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11965if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11966 acl_cv_prog_gnu_ld=yes
11967else
11968 acl_cv_prog_gnu_ld=no
11969fi
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11972$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11973with_gnu_ld=$acl_cv_prog_gnu_ld
11974
11975
11976
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11978$as_echo_n "checking for shared library run path origin... " >&6; }
11979if ${acl_cv_rpath+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981else
11982
11983 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11984 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11985 . ./conftest.sh
11986 rm -f ./conftest.sh
11987 acl_cv_rpath=done
11988
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11991$as_echo "$acl_cv_rpath" >&6; }
11992 wl="$acl_cv_wl"
11993 libext="$acl_cv_libext"
11994 shlibext="$acl_cv_shlibext"
11995 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11996 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11997 hardcode_direct="$acl_cv_hardcode_direct"
11998 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11999 # Check whether --enable-rpath was given.
12000if test "${enable_rpath+set}" = set; then :
12001 enableval=$enable_rpath; :
12002else
12003 enable_rpath=yes
12004fi
12005
12006
12007
12008
12009
12010
12011
12012
12013 use_additional=yes
12014
12015 acl_save_prefix="$prefix"
12016 prefix="$acl_final_prefix"
12017 acl_save_exec_prefix="$exec_prefix"
12018 exec_prefix="$acl_final_exec_prefix"
12019
12020 eval additional_includedir=\"$includedir\"
12021 eval additional_libdir=\"$libdir\"
12022
12023 exec_prefix="$acl_save_exec_prefix"
12024 prefix="$acl_save_prefix"
12025
12026
12027# Check whether --with-libiconv-prefix was given.
12028if test "${with_libiconv_prefix+set}" = set; then :
12029 withval=$with_libiconv_prefix;
12030 if test "X$withval" = "Xno"; then
12031 use_additional=no
12032 else
12033 if test "X$withval" = "X"; then
12034
12035 acl_save_prefix="$prefix"
12036 prefix="$acl_final_prefix"
12037 acl_save_exec_prefix="$exec_prefix"
12038 exec_prefix="$acl_final_exec_prefix"
12039
12040 eval additional_includedir=\"$includedir\"
12041 eval additional_libdir=\"$libdir\"
12042
12043 exec_prefix="$acl_save_exec_prefix"
12044 prefix="$acl_save_prefix"
12045
12046 else
12047 additional_includedir="$withval/include"
12048 additional_libdir="$withval/lib"
12049 fi
12050 fi
12051
12052fi
12053
12054
12055# Check whether --with-libiconv-type was given.
12056if test "${with_libiconv_type+set}" = set; then :
12057 withval=$with_libiconv_type; with_libiconv_type=$withval
12058else
12059 with_libiconv_type=auto
12060fi
12061
12062 lib_type=`eval echo \$with_libiconv_type`
12063
12064 LIBICONV=
12065 LTLIBICONV=
12066 INCICONV=
12067 rpathdirs=
12068 ltrpathdirs=
12069 names_already_handled=
12070 names_next_round='iconv '
12071 while test -n "$names_next_round"; do
12072 names_this_round="$names_next_round"
12073 names_next_round=
12074 for name in $names_this_round; do
12075 already_handled=
12076 for n in $names_already_handled; do
12077 if test "$n" = "$name"; then
12078 already_handled=yes
12079 break
12080 fi
12081 done
12082 if test -z "$already_handled"; then
12083 names_already_handled="$names_already_handled $name"
12084 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12085 eval value=\"\$HAVE_LIB$uppername\"
12086 if test -n "$value"; then
12087 if test "$value" = yes; then
12088 eval value=\"\$LIB$uppername\"
12089 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12090 eval value=\"\$LTLIB$uppername\"
12091 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12092 else
12093 :
12094 fi
12095 else
12096 found_dir=
12097 found_la=
12098 found_so=
12099 found_a=
12100 if test $use_additional = yes; then
12101 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12102 found_dir="$additional_libdir"
12103 found_so="$additional_libdir/lib$name.$shlibext"
12104 if test -f "$additional_libdir/lib$name.la"; then
12105 found_la="$additional_libdir/lib$name.la"
12106 fi
12107 elif test x$lib_type != xshared; then
12108 if test -f "$additional_libdir/lib$name.$libext"; then
12109 found_dir="$additional_libdir"
12110 found_a="$additional_libdir/lib$name.$libext"
12111 if test -f "$additional_libdir/lib$name.la"; then
12112 found_la="$additional_libdir/lib$name.la"
12113 fi
12114 fi
12115 fi
12116 fi
12117 if test "X$found_dir" = "X"; then
12118 for x in $LDFLAGS $LTLIBICONV; do
12119
12120 acl_save_prefix="$prefix"
12121 prefix="$acl_final_prefix"
12122 acl_save_exec_prefix="$exec_prefix"
12123 exec_prefix="$acl_final_exec_prefix"
12124 eval x=\"$x\"
12125 exec_prefix="$acl_save_exec_prefix"
12126 prefix="$acl_save_prefix"
12127
12128 case "$x" in
12129 -L*)
12130 dir=`echo "X$x" | sed -e 's/^X-L//'`
12131 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12132 found_dir="$dir"
12133 found_so="$dir/lib$name.$shlibext"
12134 if test -f "$dir/lib$name.la"; then
12135 found_la="$dir/lib$name.la"
12136 fi
12137 elif test x$lib_type != xshared; then
12138 if test -f "$dir/lib$name.$libext"; then
12139 found_dir="$dir"
12140 found_a="$dir/lib$name.$libext"
12141 if test -f "$dir/lib$name.la"; then
12142 found_la="$dir/lib$name.la"
12143 fi
12144 fi
12145 fi
12146 ;;
12147 esac
12148 if test "X$found_dir" != "X"; then
12149 break
12150 fi
12151 done
12152 fi
12153 if test "X$found_dir" != "X"; then
12154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12155 if test "X$found_so" != "X"; then
12156 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12158 else
12159 haveit=
12160 for x in $ltrpathdirs; do
12161 if test "X$x" = "X$found_dir"; then
12162 haveit=yes
12163 break
12164 fi
12165 done
12166 if test -z "$haveit"; then
12167 ltrpathdirs="$ltrpathdirs $found_dir"
12168 fi
12169 if test "$hardcode_direct" = yes; then
12170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12171 else
12172 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12174 haveit=
12175 for x in $rpathdirs; do
12176 if test "X$x" = "X$found_dir"; then
12177 haveit=yes
12178 break
12179 fi
12180 done
12181 if test -z "$haveit"; then
12182 rpathdirs="$rpathdirs $found_dir"
12183 fi
12184 else
12185 haveit=
12186 for x in $LDFLAGS $LIBICONV; do
12187
12188 acl_save_prefix="$prefix"
12189 prefix="$acl_final_prefix"
12190 acl_save_exec_prefix="$exec_prefix"
12191 exec_prefix="$acl_final_exec_prefix"
12192 eval x=\"$x\"
12193 exec_prefix="$acl_save_exec_prefix"
12194 prefix="$acl_save_prefix"
12195
12196 if test "X$x" = "X-L$found_dir"; then
12197 haveit=yes
12198 break
12199 fi
12200 done
12201 if test -z "$haveit"; then
12202 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12203 fi
12204 if test "$hardcode_minus_L" != no; then
12205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12206 else
12207 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12208 fi
12209 fi
12210 fi
12211 fi
12212 else
12213 if test "X$found_a" != "X"; then
12214 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12215 else
12216 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12217 fi
12218 fi
12219 additional_includedir=
12220 case "$found_dir" in
12221 */lib | */lib/)
12222 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12223 additional_includedir="$basedir/include"
12224 ;;
12225 esac
12226 if test "X$additional_includedir" != "X"; then
12227 if test "X$additional_includedir" != "X/usr/include"; then
12228 haveit=
12229 if test "X$additional_includedir" = "X/usr/local/include"; then
12230 if test -n "$GCC"; then
12231 case $host_os in
12232 linux*) haveit=yes;;
12233 esac
12234 fi
12235 fi
12236 if test -z "$haveit"; then
12237 for x in $CPPFLAGS $INCICONV; do
12238
12239 acl_save_prefix="$prefix"
12240 prefix="$acl_final_prefix"
12241 acl_save_exec_prefix="$exec_prefix"
12242 exec_prefix="$acl_final_exec_prefix"
12243 eval x=\"$x\"
12244 exec_prefix="$acl_save_exec_prefix"
12245 prefix="$acl_save_prefix"
12246
12247 if test "X$x" = "X-I$additional_includedir"; then
12248 haveit=yes
12249 break
12250 fi
12251 done
12252 if test -z "$haveit"; then
12253 if test -d "$additional_includedir"; then
12254 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12255 fi
12256 fi
12257 fi
12258 fi
12259 fi
12260 if test -n "$found_la"; then
12261 save_libdir="$libdir"
12262 case "$found_la" in
12263 */* | *\\*) . "$found_la" ;;
12264 *) . "./$found_la" ;;
12265 esac
12266 libdir="$save_libdir"
12267 for dep in $dependency_libs; do
12268 case "$dep" in
12269 -L*)
12270 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12271 if test "X$additional_libdir" != "X/usr/lib"; then
12272 haveit=
12273 if test "X$additional_libdir" = "X/usr/local/lib"; then
12274 if test -n "$GCC"; then
12275 case $host_os in
12276 linux*) haveit=yes;;
12277 esac
12278 fi
12279 fi
12280 if test -z "$haveit"; then
12281 haveit=
12282 for x in $LDFLAGS $LIBICONV; do
12283
12284 acl_save_prefix="$prefix"
12285 prefix="$acl_final_prefix"
12286 acl_save_exec_prefix="$exec_prefix"
12287 exec_prefix="$acl_final_exec_prefix"
12288 eval x=\"$x\"
12289 exec_prefix="$acl_save_exec_prefix"
12290 prefix="$acl_save_prefix"
12291
12292 if test "X$x" = "X-L$additional_libdir"; then
12293 haveit=yes
12294 break
12295 fi
12296 done
12297 if test -z "$haveit"; then
12298 if test -d "$additional_libdir"; then
12299 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12300 fi
12301 fi
12302 haveit=
12303 for x in $LDFLAGS $LTLIBICONV; do
12304
12305 acl_save_prefix="$prefix"
12306 prefix="$acl_final_prefix"
12307 acl_save_exec_prefix="$exec_prefix"
12308 exec_prefix="$acl_final_exec_prefix"
12309 eval x=\"$x\"
12310 exec_prefix="$acl_save_exec_prefix"
12311 prefix="$acl_save_prefix"
12312
12313 if test "X$x" = "X-L$additional_libdir"; then
12314 haveit=yes
12315 break
12316 fi
12317 done
12318 if test -z "$haveit"; then
12319 if test -d "$additional_libdir"; then
12320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12321 fi
12322 fi
12323 fi
12324 fi
12325 ;;
12326 -R*)
12327 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12328 if test "$enable_rpath" != no; then
12329 haveit=
12330 for x in $rpathdirs; do
12331 if test "X$x" = "X$dir"; then
12332 haveit=yes
12333 break
12334 fi
12335 done
12336 if test -z "$haveit"; then
12337 rpathdirs="$rpathdirs $dir"
12338 fi
12339 haveit=
12340 for x in $ltrpathdirs; do
12341 if test "X$x" = "X$dir"; then
12342 haveit=yes
12343 break
12344 fi
12345 done
12346 if test -z "$haveit"; then
12347 ltrpathdirs="$ltrpathdirs $dir"
12348 fi
12349 fi
12350 ;;
12351 -l*)
12352 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12353 ;;
12354 *.la)
12355 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12356 ;;
12357 *)
12358 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12360 ;;
12361 esac
12362 done
12363 fi
12364 else
12365 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
12366 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12367 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12368 else
12369 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
12370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
12371 fi
12372 fi
12373 fi
12374 fi
12375 done
12376 done
12377 if test "X$rpathdirs" != "X"; then
12378 if test -n "$hardcode_libdir_separator"; then
12379 alldirs=
12380 for found_dir in $rpathdirs; do
12381 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12382 done
12383 acl_save_libdir="$libdir"
12384 libdir="$alldirs"
12385 eval flag=\"$hardcode_libdir_flag_spec\"
12386 libdir="$acl_save_libdir"
12387 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12388 else
12389 for found_dir in $rpathdirs; do
12390 acl_save_libdir="$libdir"
12391 libdir="$found_dir"
12392 eval flag=\"$hardcode_libdir_flag_spec\"
12393 libdir="$acl_save_libdir"
12394 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12395 done
12396 fi
12397 fi
12398 if test "X$ltrpathdirs" != "X"; then
12399 for found_dir in $ltrpathdirs; do
12400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12401 done
12402 fi
12403
12404
12405
12406
12407
12408if test -f ../gettext/uninstalled-config.sh; then
12409 relative_builddir='$(top_builddir)/../gettext'
12410 . ../gettext/uninstalled-config.sh
12411else
12412 # The sister gettext directory doesn't exist and won't collect information on
12413 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12438$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12439if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441else
12442 gt_save_LIBS="$LIBS"
12443 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h. */
12446#include <CoreFoundation/CFPreferences.h>
12447int
12448main ()
12449{
12450CFPreferencesCopyAppValue(NULL, NULL)
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_link "$LINENO"; then :
12456 gt_cv_func_CFPreferencesCopyAppValue=yes
12457else
12458 gt_cv_func_CFPreferencesCopyAppValue=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS="$gt_save_LIBS"
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12465$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12466 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12467
12468$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12472$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12473if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475else
12476 gt_save_LIBS="$LIBS"
12477 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479/* end confdefs.h. */
12480#include <CoreFoundation/CFLocale.h>
12481int
12482main ()
12483{
12484CFLocaleCopyPreferredLanguages();
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12491else
12492 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS="$gt_save_LIBS"
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12499$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12500 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12501
12502$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12503
12504 fi
12505 INTL_MACOSX_LIBS=
12506 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12507 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12508 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
12509 fi
12510
12511
12512
12513
12514
12515
12516 LIBINTL=
12517 LTLIBINTL=
12518 POSUB=
12519
12520 case " $gt_needs " in
12521 *" need-formatstring-macros "*) gt_api_version=3 ;;
12522 *" need-ngettext "*) gt_api_version=2 ;;
12523 *) gt_api_version=1 ;;
12524 esac
12525 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12526 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12527
12528 if test "$USE_NLS" = "yes"; then
12529 gt_use_preinstalled_gnugettext=no
12530
12531
12532 if test $gt_api_version -ge 3; then
12533 gt_revision_test_code='
12534#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12535#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12536#endif
12537typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12538'
12539 else
12540 gt_revision_test_code=
12541 fi
12542 if test $gt_api_version -ge 2; then
12543 gt_expression_test_code=' + * ngettext ("", "", 0)'
12544 else
12545 gt_expression_test_code=
12546 fi
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12549$as_echo_n "checking for GNU gettext in libc... " >&6; }
12550if eval \${$gt_func_gnugettext_libc+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552else
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h. */
12555
12556#include <libintl.h>
12557#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12558extern int _nl_msg_cat_cntr;
12559extern int *_nl_domain_bindings;
12560#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12561#else
12562#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12563#endif
12564$gt_revision_test_code
12565
12566int
12567main ()
12568{
12569
12570bindtextdomain ("", "");
12571return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12572
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577if ac_fn_c_try_link "$LINENO"; then :
12578 eval "$gt_func_gnugettext_libc=yes"
12579else
12580 eval "$gt_func_gnugettext_libc=no"
12581fi
12582rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584fi
12585eval ac_res=\$$gt_func_gnugettext_libc
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12587$as_echo "$ac_res" >&6; }
12588
12589 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12590
12591
12592
12593
12594
12595 am_save_CPPFLAGS="$CPPFLAGS"
12596
12597 for element in $INCICONV; do
12598 haveit=
12599 for x in $CPPFLAGS; do
12600
12601 acl_save_prefix="$prefix"
12602 prefix="$acl_final_prefix"
12603 acl_save_exec_prefix="$exec_prefix"
12604 exec_prefix="$acl_final_exec_prefix"
12605 eval x=\"$x\"
12606 exec_prefix="$acl_save_exec_prefix"
12607 prefix="$acl_save_prefix"
12608
12609 if test "X$x" = "X$element"; then
12610 haveit=yes
12611 break
12612 fi
12613 done
12614 if test -z "$haveit"; then
12615 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12616 fi
12617 done
12618
12619
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12621$as_echo_n "checking for iconv... " >&6; }
12622if ${am_cv_func_iconv+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624else
12625
12626 am_cv_func_iconv="no, consider installing GNU libiconv"
12627 am_cv_lib_iconv=no
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629/* end confdefs.h. */
12630
12631#include <stdlib.h>
12632#include <iconv.h>
12633
12634int
12635main ()
12636{
12637iconv_t cd = iconv_open("","");
12638 iconv(cd,NULL,NULL,NULL,NULL);
12639 iconv_close(cd);
12640 ;
12641 return 0;
12642}
12643_ACEOF
12644if ac_fn_c_try_link "$LINENO"; then :
12645 am_cv_func_iconv=yes
12646fi
12647rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 if test "$am_cv_func_iconv" != yes; then
12650 am_save_LIBS="$LIBS"
12651 LIBS="$LIBS $LIBICONV"
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653/* end confdefs.h. */
12654
12655#include <stdlib.h>
12656#include <iconv.h>
12657
12658int
12659main ()
12660{
12661iconv_t cd = iconv_open("","");
12662 iconv(cd,NULL,NULL,NULL,NULL);
12663 iconv_close(cd);
12664 ;
12665 return 0;
12666}
12667_ACEOF
12668if ac_fn_c_try_link "$LINENO"; then :
12669 am_cv_lib_iconv=yes
12670 am_cv_func_iconv=yes
12671fi
12672rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS="$am_save_LIBS"
12675 fi
12676
12677fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12679$as_echo "$am_cv_func_iconv" >&6; }
12680 if test "$am_cv_func_iconv" = yes; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12682$as_echo_n "checking for working iconv... " >&6; }
12683if ${am_cv_func_iconv_works+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685else
12686
12687 am_save_LIBS="$LIBS"
12688 if test $am_cv_lib_iconv = yes; then
12689 LIBS="$LIBS $LIBICONV"
12690 fi
12691 am_cv_func_iconv_works=no
12692 for ac_iconv_const in '' 'const'; do
12693 if test "$cross_compiling" = yes; then :
12694 case "$host_os" in
12695 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12696 *) am_cv_func_iconv_works="guessing yes" ;;
12697 esac
12698else
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700/* end confdefs.h. */
12701
12702#include <iconv.h>
12703#include <string.h>
12704
12705#ifndef ICONV_CONST
12706# define ICONV_CONST $ac_iconv_const
12707#endif
12708
12709int
12710main ()
12711{
12712int result = 0;
12713 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
12714 successful returns. This is even documented in
12715 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
12716 {
12717 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12718 if (cd_utf8_to_88591 != (iconv_t)(-1))
12719 {
12720 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12721 char buf[10];
12722 ICONV_CONST char *inptr = input;
12723 size_t inbytesleft = strlen (input);
12724 char *outptr = buf;
12725 size_t outbytesleft = sizeof (buf);
12726 size_t res = iconv (cd_utf8_to_88591,
12727 &inptr, &inbytesleft,
12728 &outptr, &outbytesleft);
12729 if (res == 0)
12730 result |= 1;
12731 iconv_close (cd_utf8_to_88591);
12732 }
12733 }
12734 /* Test against Solaris 10 bug: Failures are not distinguishable from
12735 successful returns. */
12736 {
12737 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12738 if (cd_ascii_to_88591 != (iconv_t)(-1))
12739 {
12740 static ICONV_CONST char input[] = "\263";
12741 char buf[10];
12742 ICONV_CONST char *inptr = input;
12743 size_t inbytesleft = strlen (input);
12744 char *outptr = buf;
12745 size_t outbytesleft = sizeof (buf);
12746 size_t res = iconv (cd_ascii_to_88591,
12747 &inptr, &inbytesleft,
12748 &outptr, &outbytesleft);
12749 if (res == 0)
12750 result |= 2;
12751 iconv_close (cd_ascii_to_88591);
12752 }
12753 }
12754 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12755 {
12756 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12757 if (cd_88591_to_utf8 != (iconv_t)(-1))
12758 {
12759 static ICONV_CONST char input[] = "\304";
12760 static char buf[2] = { (char)0xDE, (char)0xAD };
12761 ICONV_CONST char *inptr = input;
12762 size_t inbytesleft = 1;
12763 char *outptr = buf;
12764 size_t outbytesleft = 1;
12765 size_t res = iconv (cd_88591_to_utf8,
12766 &inptr, &inbytesleft,
12767 &outptr, &outbytesleft);
12768 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12769 result |= 4;
12770 iconv_close (cd_88591_to_utf8);
12771 }
12772 }
12773#if 0 /* This bug could be worked around by the caller. */
12774 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12775 {
12776 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12777 if (cd_88591_to_utf8 != (iconv_t)(-1))
12778 {
12779 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12780 char buf[50];
12781 ICONV_CONST char *inptr = input;
12782 size_t inbytesleft = strlen (input);
12783 char *outptr = buf;
12784 size_t outbytesleft = sizeof (buf);
12785 size_t res = iconv (cd_88591_to_utf8,
12786 &inptr, &inbytesleft,
12787 &outptr, &outbytesleft);
12788 if ((int)res > 0)
12789 result |= 8;
12790 iconv_close (cd_88591_to_utf8);
12791 }
12792 }
12793#endif
12794 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12795 provided. */
12796 {
12797 /* Try standardized names. */
12798 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12799 /* Try IRIX, OSF/1 names. */
12800 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12801 /* Try AIX names. */
12802 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12803 /* Try HP-UX names. */
12804 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12805 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12806 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12807 result |= 16;
12808 if (cd1 != (iconv_t)(-1))
12809 iconv_close (cd1);
12810 if (cd2 != (iconv_t)(-1))
12811 iconv_close (cd2);
12812 if (cd3 != (iconv_t)(-1))
12813 iconv_close (cd3);
12814 if (cd4 != (iconv_t)(-1))
12815 iconv_close (cd4);
12816 }
12817 return result;
12818
12819 ;
12820 return 0;
12821}
12822_ACEOF
12823if ac_fn_c_try_run "$LINENO"; then :
12824 am_cv_func_iconv_works=yes
12825fi
12826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12827 conftest.$ac_objext conftest.beam conftest.$ac_ext
12828fi
12829
12830 test "$am_cv_func_iconv_works" = no || break
12831 done
12832 LIBS="$am_save_LIBS"
12833
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12836$as_echo "$am_cv_func_iconv_works" >&6; }
12837 case "$am_cv_func_iconv_works" in
12838 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12839 *) am_func_iconv=yes ;;
12840 esac
12841 else
12842 am_func_iconv=no am_cv_lib_iconv=no
12843 fi
12844 if test "$am_func_iconv" = yes; then
12845
12846$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12847
12848 fi
12849 if test "$am_cv_lib_iconv" = yes; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12851$as_echo_n "checking how to link with libiconv... " >&6; }
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12853$as_echo "$LIBICONV" >&6; }
12854 else
12855 CPPFLAGS="$am_save_CPPFLAGS"
12856 LIBICONV=
12857 LTLIBICONV=
12858 fi
12859
12860
12861
12862
12863
12864
12865 use_additional=yes
12866
12867 acl_save_prefix="$prefix"
12868 prefix="$acl_final_prefix"
12869 acl_save_exec_prefix="$exec_prefix"
12870 exec_prefix="$acl_final_exec_prefix"
12871
12872 eval additional_includedir=\"$includedir\"
12873 eval additional_libdir=\"$libdir\"
12874
12875 exec_prefix="$acl_save_exec_prefix"
12876 prefix="$acl_save_prefix"
12877
12878
12879# Check whether --with-libintl-prefix was given.
12880if test "${with_libintl_prefix+set}" = set; then :
12881 withval=$with_libintl_prefix;
12882 if test "X$withval" = "Xno"; then
12883 use_additional=no
12884 else
12885 if test "X$withval" = "X"; then
12886
12887 acl_save_prefix="$prefix"
12888 prefix="$acl_final_prefix"
12889 acl_save_exec_prefix="$exec_prefix"
12890 exec_prefix="$acl_final_exec_prefix"
12891
12892 eval additional_includedir=\"$includedir\"
12893 eval additional_libdir=\"$libdir\"
12894
12895 exec_prefix="$acl_save_exec_prefix"
12896 prefix="$acl_save_prefix"
12897
12898 else
12899 additional_includedir="$withval/include"
12900 additional_libdir="$withval/lib"
12901 fi
12902 fi
12903
12904fi
12905
12906
12907# Check whether --with-libintl-type was given.
12908if test "${with_libintl_type+set}" = set; then :
12909 withval=$with_libintl_type; with_libintl_type=$withval
12910else
12911 with_libintl_type=auto
12912fi
12913
12914 lib_type=`eval echo \$with_libintl_type`
12915
12916 LIBINTL=
12917 LTLIBINTL=
12918 INCINTL=
12919 rpathdirs=
12920 ltrpathdirs=
12921 names_already_handled=
12922 names_next_round='intl '
12923 while test -n "$names_next_round"; do
12924 names_this_round="$names_next_round"
12925 names_next_round=
12926 for name in $names_this_round; do
12927 already_handled=
12928 for n in $names_already_handled; do
12929 if test "$n" = "$name"; then
12930 already_handled=yes
12931 break
12932 fi
12933 done
12934 if test -z "$already_handled"; then
12935 names_already_handled="$names_already_handled $name"
12936 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12937 eval value=\"\$HAVE_LIB$uppername\"
12938 if test -n "$value"; then
12939 if test "$value" = yes; then
12940 eval value=\"\$LIB$uppername\"
12941 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12942 eval value=\"\$LTLIB$uppername\"
12943 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12944 else
12945 :
12946 fi
12947 else
12948 found_dir=
12949 found_la=
12950 found_so=
12951 found_a=
12952 if test $use_additional = yes; then
12953 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12954 found_dir="$additional_libdir"
12955 found_so="$additional_libdir/lib$name.$shlibext"
12956 if test -f "$additional_libdir/lib$name.la"; then
12957 found_la="$additional_libdir/lib$name.la"
12958 fi
12959 elif test x$lib_type != xshared; then
12960 if test -f "$additional_libdir/lib$name.$libext"; then
12961 found_dir="$additional_libdir"
12962 found_a="$additional_libdir/lib$name.$libext"
12963 if test -f "$additional_libdir/lib$name.la"; then
12964 found_la="$additional_libdir/lib$name.la"
12965 fi
12966 fi
12967 fi
12968 fi
12969 if test "X$found_dir" = "X"; then
12970 for x in $LDFLAGS $LTLIBINTL; do
12971
12972 acl_save_prefix="$prefix"
12973 prefix="$acl_final_prefix"
12974 acl_save_exec_prefix="$exec_prefix"
12975 exec_prefix="$acl_final_exec_prefix"
12976 eval x=\"$x\"
12977 exec_prefix="$acl_save_exec_prefix"
12978 prefix="$acl_save_prefix"
12979
12980 case "$x" in
12981 -L*)
12982 dir=`echo "X$x" | sed -e 's/^X-L//'`
12983 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12984 found_dir="$dir"
12985 found_so="$dir/lib$name.$shlibext"
12986 if test -f "$dir/lib$name.la"; then
12987 found_la="$dir/lib$name.la"
12988 fi
12989 elif test x$lib_type != xshared; then
12990 if test -f "$dir/lib$name.$libext"; then
12991 found_dir="$dir"
12992 found_a="$dir/lib$name.$libext"
12993 if test -f "$dir/lib$name.la"; then
12994 found_la="$dir/lib$name.la"
12995 fi
12996 fi
12997 fi
12998 ;;
12999 esac
13000 if test "X$found_dir" != "X"; then
13001 break
13002 fi
13003 done
13004 fi
13005 if test "X$found_dir" != "X"; then
13006 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13007 if test "X$found_so" != "X"; then
13008 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13010 else
13011 haveit=
13012 for x in $ltrpathdirs; do
13013 if test "X$x" = "X$found_dir"; then
13014 haveit=yes
13015 break
13016 fi
13017 done
13018 if test -z "$haveit"; then
13019 ltrpathdirs="$ltrpathdirs $found_dir"
13020 fi
13021 if test "$hardcode_direct" = yes; then
13022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13023 else
13024 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13026 haveit=
13027 for x in $rpathdirs; do
13028 if test "X$x" = "X$found_dir"; then
13029 haveit=yes
13030 break
13031 fi
13032 done
13033 if test -z "$haveit"; then
13034 rpathdirs="$rpathdirs $found_dir"
13035 fi
13036 else
13037 haveit=
13038 for x in $LDFLAGS $LIBINTL; do
13039
13040 acl_save_prefix="$prefix"
13041 prefix="$acl_final_prefix"
13042 acl_save_exec_prefix="$exec_prefix"
13043 exec_prefix="$acl_final_exec_prefix"
13044 eval x=\"$x\"
13045 exec_prefix="$acl_save_exec_prefix"
13046 prefix="$acl_save_prefix"
13047
13048 if test "X$x" = "X-L$found_dir"; then
13049 haveit=yes
13050 break
13051 fi
13052 done
13053 if test -z "$haveit"; then
13054 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13055 fi
13056 if test "$hardcode_minus_L" != no; then
13057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13058 else
13059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13060 fi
13061 fi
13062 fi
13063 fi
13064 else
13065 if test "X$found_a" != "X"; then
13066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13067 else
13068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13069 fi
13070 fi
13071 additional_includedir=
13072 case "$found_dir" in
13073 */lib | */lib/)
13074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13075 additional_includedir="$basedir/include"
13076 ;;
13077 esac
13078 if test "X$additional_includedir" != "X"; then
13079 if test "X$additional_includedir" != "X/usr/include"; then
13080 haveit=
13081 if test "X$additional_includedir" = "X/usr/local/include"; then
13082 if test -n "$GCC"; then
13083 case $host_os in
13084 linux*) haveit=yes;;
13085 esac
13086 fi
13087 fi
13088 if test -z "$haveit"; then
13089 for x in $CPPFLAGS $INCINTL; do
13090
13091 acl_save_prefix="$prefix"
13092 prefix="$acl_final_prefix"
13093 acl_save_exec_prefix="$exec_prefix"
13094 exec_prefix="$acl_final_exec_prefix"
13095 eval x=\"$x\"
13096 exec_prefix="$acl_save_exec_prefix"
13097 prefix="$acl_save_prefix"
13098
13099 if test "X$x" = "X-I$additional_includedir"; then
13100 haveit=yes
13101 break
13102 fi
13103 done
13104 if test -z "$haveit"; then
13105 if test -d "$additional_includedir"; then
13106 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13107 fi
13108 fi
13109 fi
13110 fi
13111 fi
13112 if test -n "$found_la"; then
13113 save_libdir="$libdir"
13114 case "$found_la" in
13115 */* | *\\*) . "$found_la" ;;
13116 *) . "./$found_la" ;;
13117 esac
13118 libdir="$save_libdir"
13119 for dep in $dependency_libs; do
13120 case "$dep" in
13121 -L*)
13122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13123 if test "X$additional_libdir" != "X/usr/lib"; then
13124 haveit=
13125 if test "X$additional_libdir" = "X/usr/local/lib"; then
13126 if test -n "$GCC"; then
13127 case $host_os in
13128 linux*) haveit=yes;;
13129 esac
13130 fi
13131 fi
13132 if test -z "$haveit"; then
13133 haveit=
13134 for x in $LDFLAGS $LIBINTL; do
13135
13136 acl_save_prefix="$prefix"
13137 prefix="$acl_final_prefix"
13138 acl_save_exec_prefix="$exec_prefix"
13139 exec_prefix="$acl_final_exec_prefix"
13140 eval x=\"$x\"
13141 exec_prefix="$acl_save_exec_prefix"
13142 prefix="$acl_save_prefix"
13143
13144 if test "X$x" = "X-L$additional_libdir"; then
13145 haveit=yes
13146 break
13147 fi
13148 done
13149 if test -z "$haveit"; then
13150 if test -d "$additional_libdir"; then
13151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13152 fi
13153 fi
13154 haveit=
13155 for x in $LDFLAGS $LTLIBINTL; do
13156
13157 acl_save_prefix="$prefix"
13158 prefix="$acl_final_prefix"
13159 acl_save_exec_prefix="$exec_prefix"
13160 exec_prefix="$acl_final_exec_prefix"
13161 eval x=\"$x\"
13162 exec_prefix="$acl_save_exec_prefix"
13163 prefix="$acl_save_prefix"
13164
13165 if test "X$x" = "X-L$additional_libdir"; then
13166 haveit=yes
13167 break
13168 fi
13169 done
13170 if test -z "$haveit"; then
13171 if test -d "$additional_libdir"; then
13172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13173 fi
13174 fi
13175 fi
13176 fi
13177 ;;
13178 -R*)
13179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13180 if test "$enable_rpath" != no; then
13181 haveit=
13182 for x in $rpathdirs; do
13183 if test "X$x" = "X$dir"; then
13184 haveit=yes
13185 break
13186 fi
13187 done
13188 if test -z "$haveit"; then
13189 rpathdirs="$rpathdirs $dir"
13190 fi
13191 haveit=
13192 for x in $ltrpathdirs; do
13193 if test "X$x" = "X$dir"; then
13194 haveit=yes
13195 break
13196 fi
13197 done
13198 if test -z "$haveit"; then
13199 ltrpathdirs="$ltrpathdirs $dir"
13200 fi
13201 fi
13202 ;;
13203 -l*)
13204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13205 ;;
13206 *.la)
13207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13208 ;;
13209 *)
13210 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13212 ;;
13213 esac
13214 done
13215 fi
13216 else
13217 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13218 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13220 else
13221 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
13222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
13223 fi
13224 fi
13225 fi
13226 fi
13227 done
13228 done
13229 if test "X$rpathdirs" != "X"; then
13230 if test -n "$hardcode_libdir_separator"; then
13231 alldirs=
13232 for found_dir in $rpathdirs; do
13233 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13234 done
13235 acl_save_libdir="$libdir"
13236 libdir="$alldirs"
13237 eval flag=\"$hardcode_libdir_flag_spec\"
13238 libdir="$acl_save_libdir"
13239 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13240 else
13241 for found_dir in $rpathdirs; do
13242 acl_save_libdir="$libdir"
13243 libdir="$found_dir"
13244 eval flag=\"$hardcode_libdir_flag_spec\"
13245 libdir="$acl_save_libdir"
13246 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13247 done
13248 fi
13249 fi
13250 if test "X$ltrpathdirs" != "X"; then
13251 for found_dir in $ltrpathdirs; do
13252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13253 done
13254 fi
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13257$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13258if eval \${$gt_func_gnugettext_libintl+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260else
13261 gt_save_CPPFLAGS="$CPPFLAGS"
13262 CPPFLAGS="$CPPFLAGS $INCINTL"
13263 gt_save_LIBS="$LIBS"
13264 LIBS="$LIBS $LIBINTL"
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266/* end confdefs.h. */
13267
13268#include <libintl.h>
13269#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13270extern int _nl_msg_cat_cntr;
13271extern
13272#ifdef __cplusplus
13273"C"
13274#endif
13275const char *_nl_expand_alias (const char *);
13276#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13277#else
13278#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13279#endif
13280$gt_revision_test_code
13281
13282int
13283main ()
13284{
13285
13286bindtextdomain ("", "");
13287return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13288
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293if ac_fn_c_try_link "$LINENO"; then :
13294 eval "$gt_func_gnugettext_libintl=yes"
13295else
13296 eval "$gt_func_gnugettext_libintl=no"
13297fi
13298rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13301 LIBS="$LIBS $LIBICONV"
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h. */
13304
13305#include <libintl.h>
13306#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13307extern int _nl_msg_cat_cntr;
13308extern
13309#ifdef __cplusplus
13310"C"
13311#endif
13312const char *_nl_expand_alias (const char *);
13313#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13314#else
13315#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13316#endif
13317$gt_revision_test_code
13318
13319int
13320main ()
13321{
13322
13323bindtextdomain ("", "");
13324return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13325
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330if ac_fn_c_try_link "$LINENO"; then :
13331 LIBINTL="$LIBINTL $LIBICONV"
13332 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13333 eval "$gt_func_gnugettext_libintl=yes"
13334
13335fi
13336rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 fi
13339 CPPFLAGS="$gt_save_CPPFLAGS"
13340 LIBS="$gt_save_LIBS"
13341fi
13342eval ac_res=\$$gt_func_gnugettext_libintl
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13344$as_echo "$ac_res" >&6; }
13345 fi
13346
13347 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13348 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13349 && test "$PACKAGE" != gettext-runtime \
13350 && test "$PACKAGE" != gettext-tools; }; then
13351 gt_use_preinstalled_gnugettext=yes
13352 else
13353 LIBINTL=
13354 LTLIBINTL=
13355 INCINTL=
13356 fi
13357
13358
13359
13360 if test -n "$INTL_MACOSX_LIBS"; then
13361 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13362 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13363 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13364 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13365 fi
13366 fi
13367
13368 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13369 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13370
13371$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13372
13373 else
13374 USE_NLS=no
13375 fi
13376 fi
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13379$as_echo_n "checking whether to use NLS... " >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13381$as_echo "$USE_NLS" >&6; }
13382 if test "$USE_NLS" = "yes"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13384$as_echo_n "checking where the gettext function comes from... " >&6; }
13385 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13386 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13387 gt_source="external libintl"
13388 else
13389 gt_source="libc"
13390 fi
13391 else
13392 gt_source="included intl directory"
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13395$as_echo "$gt_source" >&6; }
13396 fi
13397
13398 if test "$USE_NLS" = "yes"; then
13399
13400 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13401 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13403$as_echo_n "checking how to link with libintl... " >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13405$as_echo "$LIBINTL" >&6; }
13406
13407 for element in $INCINTL; do
13408 haveit=
13409 for x in $CPPFLAGS; do
13410
13411 acl_save_prefix="$prefix"
13412 prefix="$acl_final_prefix"
13413 acl_save_exec_prefix="$exec_prefix"
13414 exec_prefix="$acl_final_exec_prefix"
13415 eval x=\"$x\"
13416 exec_prefix="$acl_save_exec_prefix"
13417 prefix="$acl_save_prefix"
13418
13419 if test "X$x" = "X$element"; then
13420 haveit=yes
13421 break
13422 fi
13423 done
13424 if test -z "$haveit"; then
13425 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13426 fi
13427 done
13428
13429 fi
13430
13431
13432$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13433
13434
13435$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13436
13437 fi
13438
13439 POSUB=po
13440 fi
13441
13442
13443
13444 INTLLIBS="$LIBINTL"
13445
13446
13447
13448
13449
13450
13451fi
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13464$as_echo_n "checking whether NLS is requested... " >&6; }
13465if test x"$USE_NLS" != xyes; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468else
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470$as_echo "yes" >&6; }
13471
13472$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13473
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13476$as_echo_n "checking for catalogs to be installed... " >&6; }
13477 # Look for .po and .gmo files in the source directory.
13478 CATALOGS=
13479 XLINGUAS=
13480 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13481 # If there aren't any .gmo files the shell will give us the
13482 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13483 # weeded out.
13484 case "$cat" in *\**)
13485 continue;;
13486 esac
13487 # The quadruple backslash is collapsed to a double backslash
13488 # by the backticks, then collapsed again by the double quotes,
13489 # leaving us with one backslash in the sed expression (right
13490 # before the dot that mustn't act as a wildcard).
13491 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13492 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13493 # The user is allowed to set LINGUAS to a list of languages to
13494 # install catalogs for. If it's empty that means "all of them."
13495 if test "x$LINGUAS" = x; then
13496 CATALOGS="$CATALOGS $cat"
13497 XLINGUAS="$XLINGUAS $lang"
13498 else
13499 case "$LINGUAS" in *$lang*)
13500 CATALOGS="$CATALOGS $cat"
13501 XLINGUAS="$XLINGUAS $lang"
13502 ;;
13503 esac
13504 fi
13505 done
13506 LINGUAS="$XLINGUAS"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13508$as_echo "$LINGUAS" >&6; }
13509
13510
13511 DATADIRNAME=share
13512
13513 INSTOBJEXT=.mo
13514
13515 GENCAT=gencat
13516
13517 CATOBJEXT=.gmo
13518
13519fi
13520
13521
13522
13523
13524# Prepare PATH_SEPARATOR.
13525# The user is always right.
13526if test "${PATH_SEPARATOR+set}" != set; then
13527 echo "#! /bin/sh" >conf$$.sh
13528 echo "exit 0" >>conf$$.sh
13529 chmod +x conf$$.sh
13530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13531 PATH_SEPARATOR=';'
13532 else
13533 PATH_SEPARATOR=:
13534 fi
13535 rm -f conf$$.sh
13536fi
13537
13538# Find out how to test for executable files. Don't use a zero-byte file,
13539# as systems may use methods other than mode bits to determine executability.
13540cat >conf$$.file <<_ASEOF
13541#! /bin/sh
13542exit 0
13543_ASEOF
13544chmod +x conf$$.file
13545if test -x conf$$.file >/dev/null 2>&1; then
13546 ac_executable_p="test -x"
13547else
13548 ac_executable_p="test -f"
13549fi
13550rm -f conf$$.file
13551
13552# Extract the first word of "msgfmt", so it can be a program name with args.
13553set dummy msgfmt; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
13556if ${ac_cv_path_MSGFMT+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558else
13559 case "$MSGFMT" in
13560 [\\/]* | ?:[\\/]*)
13561 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13562 ;;
13563 *)
13564 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13565 for ac_dir in $PATH; do
13566 IFS="$ac_save_IFS"
13567 test -z "$ac_dir" && ac_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13570 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13571 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13572 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13573 break 2
13574 fi
13575 fi
13576 done
13577 done
13578 IFS="$ac_save_IFS"
13579 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13580 ;;
13581esac
13582fi
13583MSGFMT="$ac_cv_path_MSGFMT"
13584if test "$MSGFMT" != ":"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13586$as_echo "$MSGFMT" >&6; }
13587else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13593set dummy gmsgfmt; ac_word=$2
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13595$as_echo_n "checking for $ac_word... " >&6; }
13596if ${ac_cv_path_GMSGFMT+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598else
13599 case $GMSGFMT in
13600 [\\/]* | ?:[\\/]*)
13601 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13602 ;;
13603 *)
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605for as_dir in $PATH
13606do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615done
13616 done
13617IFS=$as_save_IFS
13618
13619 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13620 ;;
13621esac
13622fi
13623GMSGFMT=$ac_cv_path_GMSGFMT
13624if test -n "$GMSGFMT"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13626$as_echo "$GMSGFMT" >&6; }
13627else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629$as_echo "no" >&6; }
13630fi
13631
13632
13633
13634
13635# Prepare PATH_SEPARATOR.
13636# The user is always right.
13637if test "${PATH_SEPARATOR+set}" != set; then
13638 echo "#! /bin/sh" >conf$$.sh
13639 echo "exit 0" >>conf$$.sh
13640 chmod +x conf$$.sh
13641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13642 PATH_SEPARATOR=';'
13643 else
13644 PATH_SEPARATOR=:
13645 fi
13646 rm -f conf$$.sh
13647fi
13648
13649# Find out how to test for executable files. Don't use a zero-byte file,
13650# as systems may use methods other than mode bits to determine executability.
13651cat >conf$$.file <<_ASEOF
13652#! /bin/sh
13653exit 0
13654_ASEOF
13655chmod +x conf$$.file
13656if test -x conf$$.file >/dev/null 2>&1; then
13657 ac_executable_p="test -x"
13658else
13659 ac_executable_p="test -f"
13660fi
13661rm -f conf$$.file
13662
13663# Extract the first word of "xgettext", so it can be a program name with args.
13664set dummy xgettext; ac_word=$2
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666$as_echo_n "checking for $ac_word... " >&6; }
13667if ${ac_cv_path_XGETTEXT+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669else
13670 case "$XGETTEXT" in
13671 [\\/]* | ?:[\\/]*)
13672 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13673 ;;
13674 *)
13675 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13676 for ac_dir in $PATH; do
13677 IFS="$ac_save_IFS"
13678 test -z "$ac_dir" && ac_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13681 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13682 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13683 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13684 break 2
13685 fi
13686 fi
13687 done
13688 done
13689 IFS="$ac_save_IFS"
13690 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13691 ;;
13692esac
13693fi
13694XGETTEXT="$ac_cv_path_XGETTEXT"
13695if test "$XGETTEXT" != ":"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13697$as_echo "$XGETTEXT" >&6; }
13698else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701fi
13702
13703 rm -f messages.po
13704
13705
13706# Prepare PATH_SEPARATOR.
13707# The user is always right.
13708if test "${PATH_SEPARATOR+set}" != set; then
13709 echo "#! /bin/sh" >conf$$.sh
13710 echo "exit 0" >>conf$$.sh
13711 chmod +x conf$$.sh
13712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13713 PATH_SEPARATOR=';'
13714 else
13715 PATH_SEPARATOR=:
13716 fi
13717 rm -f conf$$.sh
13718fi
13719
13720# Find out how to test for executable files. Don't use a zero-byte file,
13721# as systems may use methods other than mode bits to determine executability.
13722cat >conf$$.file <<_ASEOF
13723#! /bin/sh
13724exit 0
13725_ASEOF
13726chmod +x conf$$.file
13727if test -x conf$$.file >/dev/null 2>&1; then
13728 ac_executable_p="test -x"
13729else
13730 ac_executable_p="test -f"
13731fi
13732rm -f conf$$.file
13733
13734# Extract the first word of "msgmerge", so it can be a program name with args.
13735set dummy msgmerge; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
13738if ${ac_cv_path_MSGMERGE+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740else
13741 case "$MSGMERGE" in
13742 [\\/]* | ?:[\\/]*)
13743 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13744 ;;
13745 *)
13746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13747 for ac_dir in $PATH; do
13748 IFS="$ac_save_IFS"
13749 test -z "$ac_dir" && ac_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13752 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13753 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13754 break 2
13755 fi
13756 fi
13757 done
13758 done
13759 IFS="$ac_save_IFS"
13760 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13761 ;;
13762esac
13763fi
13764MSGMERGE="$ac_cv_path_MSGMERGE"
13765if test "$MSGMERGE" != ":"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13767$as_echo "$MSGMERGE" >&6; }
13768else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
13771fi
13772
13773
13774 if test "$GMSGFMT" != ":"; then
13775 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13776 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13777 : ;
13778 else
13779 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13781$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13782 GMSGFMT=":"
13783 fi
13784 fi
13785
13786 if test "$XGETTEXT" != ":"; then
13787 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13788 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13789 : ;
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13792$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13793 XGETTEXT=":"
13794 fi
13795 rm -f messages.po
13796 fi
13797
13798 ac_config_commands="$ac_config_commands default-2"
13799
13800
13801
13802. ${srcdir}/../bfd/configure.host
13803
13804# Put a plausible default for CC_FOR_BUILD in Makefile.
13805if test -z "$CC_FOR_BUILD"; then
13806 if test "x$cross_compiling" = "xno"; then
13807 CC_FOR_BUILD='$(CC)'
13808 else
13809 CC_FOR_BUILD=gcc
13810 fi
13811fi
13812
13813# Also set EXEEXT_FOR_BUILD.
13814if test "x$cross_compiling" = "xno"; then
13815 EXEEXT_FOR_BUILD='$(EXEEXT)'
13816else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13818$as_echo_n "checking for build system executable suffix... " >&6; }
13819if ${bfd_cv_build_exeext+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821else
13822 rm -f conftest*
13823 echo 'int main () { return 0; }' > conftest.c
13824 bfd_cv_build_exeext=
13825 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13826 for file in conftest.*; do
13827 case $file in
13828 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13829 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13830 esac
13831 done
13832 rm -f conftest*
13833 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13834fi
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13836$as_echo "$bfd_cv_build_exeext" >&6; }
13837 EXEEXT_FOR_BUILD=""
13838 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13839fi
13840
13841# See whether 64-bit bfd lib has been enabled.
13842OLD_CPPFLAGS=$CPPFLAGS
13843# Put the old CPPFLAGS last, in case the user's CPPFLAGS point somewhere
13844# with bfd, with -I/foo/include. We always want our bfd.
13845CPPFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CPPFLAGS"
13846# Note we cannot cache the result of this check because BFD64 may change
13847# when a secondary target has been added or removed and we have no access
13848# to this information here.
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BFD is 64-bit" >&5
13850$as_echo_n "checking whether BFD is 64-bit... " >&6; }
13851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852/* end confdefs.h. */
13853#include "bfd.h"
13854int
13855main ()
13856{
13857#ifdef BFD64
13858HAVE_BFD64
13859#endif
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13865 $EGREP "HAVE_BFD64" >/dev/null 2>&1; then :
13866 have_64_bit_bfd=yes
13867else
13868 have_64_bit_bfd=no
13869fi
13870rm -f conftest*
13871
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_64_bit_bfd" >&5
13873$as_echo "$have_64_bit_bfd" >&6; }
13874CPPFLAGS=$OLD_CPPFLAGS
13875
13876
13877
13878
13879ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13880if test "x$ac_cv_have_decl_basename" = xyes; then :
13881 ac_have_decl=1
13882else
13883 ac_have_decl=0
13884fi
13885
13886cat >>confdefs.h <<_ACEOF
13887#define HAVE_DECL_BASENAME $ac_have_decl
13888_ACEOF
13889ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13890if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13891 ac_have_decl=1
13892else
13893 ac_have_decl=0
13894fi
13895
13896cat >>confdefs.h <<_ACEOF
13897#define HAVE_DECL_STPCPY $ac_have_decl
13898_ACEOF
13899
13900
13901# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13902# since sigsetjmp might only be defined as a macro.
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13904$as_echo_n "checking for sigsetjmp... " >&6; }
13905if ${gdb_cv_func_sigsetjmp+:} false; then :
13906 $as_echo_n "(cached) " >&6
13907else
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h. */
13910
13911#include <setjmp.h>
13912
13913int
13914main ()
13915{
13916sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921if ac_fn_c_try_compile "$LINENO"; then :
13922 bfd_cv_func_sigsetjmp=yes
13923else
13924 bfd_cv_func_sigsetjmp=no
13925fi
13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927fi
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13929$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13930if test $bfd_cv_func_sigsetjmp = yes; then
13931
13932$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13933
13934fi
13935
13936cgen_maint=no
13937cgendir='$(srcdir)/../../cgen'
13938if test -r ${srcdir}/../cgen/iformat.scm; then
13939 cgendir='$(srcdir)/../cgen'
13940fi
13941
13942# Check whether --enable-cgen-maint was given.
13943if test "${enable_cgen_maint+set}" = set; then :
13944 enableval=$enable_cgen_maint; case "${enableval}" in
13945 yes) cgen_maint=yes ;;
13946 no) cgen_maint=no ;;
13947 *)
13948 # Argument is a directory where cgen can be found. In some
13949 # future world cgen could be installable, but right now this
13950 # is not the case. Instead we assume the directory is a path
13951 # to the cgen source tree.
13952 cgen_maint=yes
13953 if test -r ${enableval}/iformat.scm; then
13954 # This looks like a cgen source tree.
13955 cgendir=${enableval}
13956 else
13957 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
13958 fi
13959 ;;
13960esac
13961fi
13962 if test x${cgen_maint} = xyes; then
13963 CGEN_MAINT_TRUE=
13964 CGEN_MAINT_FALSE='#'
13965else
13966 CGEN_MAINT_TRUE='#'
13967 CGEN_MAINT_FALSE=
13968fi
13969
13970
13971
13972using_cgen=no
13973
13974# Check if linker supports --as-needed and --no-as-needed options
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13976$as_echo_n "checking linker --as-needed support... " >&6; }
13977if ${bfd_cv_ld_as_needed+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979else
13980 bfd_cv_ld_as_needed=no
13981 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
13982 bfd_cv_ld_as_needed=yes
13983 fi
13984
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
13987$as_echo "$bfd_cv_ld_as_needed" >&6; }
13988
13989LIBM=
13990case $host in
13991*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13992 # These system don't have libm, or don't need it
13993 ;;
13994*-ncr-sysv4.3*)
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13996$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13997if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999else
14000 ac_check_lib_save_LIBS=$LIBS
14001LIBS="-lmw $LIBS"
14002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003/* end confdefs.h. */
14004
14005/* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14008#ifdef __cplusplus
14009extern "C"
14010#endif
14011char _mwvalidcheckl ();
14012int
14013main ()
14014{
14015return _mwvalidcheckl ();
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020if ac_fn_c_try_link "$LINENO"; then :
14021 ac_cv_lib_mw__mwvalidcheckl=yes
14022else
14023 ac_cv_lib_mw__mwvalidcheckl=no
14024fi
14025rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027LIBS=$ac_check_lib_save_LIBS
14028fi
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14030$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14031if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14032 LIBM="-lmw"
14033fi
14034
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14036$as_echo_n "checking for cos in -lm... " >&6; }
14037if ${ac_cv_lib_m_cos+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039else
14040 ac_check_lib_save_LIBS=$LIBS
14041LIBS="-lm $LIBS"
14042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h. */
14044
14045/* Override any GCC internal prototype to avoid an error.
14046 Use char because int might match the return type of a GCC
14047 builtin and then its argument prototype would still apply. */
14048#ifdef __cplusplus
14049extern "C"
14050#endif
14051char cos ();
14052int
14053main ()
14054{
14055return cos ();
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060if ac_fn_c_try_link "$LINENO"; then :
14061 ac_cv_lib_m_cos=yes
14062else
14063 ac_cv_lib_m_cos=no
14064fi
14065rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067LIBS=$ac_check_lib_save_LIBS
14068fi
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14070$as_echo "$ac_cv_lib_m_cos" >&6; }
14071if test "x$ac_cv_lib_m_cos" = xyes; then :
14072 LIBM="$LIBM -lm"
14073fi
14074
14075 ;;
14076*)
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14078$as_echo_n "checking for cos in -lm... " >&6; }
14079if ${ac_cv_lib_m_cos+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081else
14082 ac_check_lib_save_LIBS=$LIBS
14083LIBS="-lm $LIBS"
14084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085/* end confdefs.h. */
14086
14087/* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14090#ifdef __cplusplus
14091extern "C"
14092#endif
14093char cos ();
14094int
14095main ()
14096{
14097return cos ();
14098 ;
14099 return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_link "$LINENO"; then :
14103 ac_cv_lib_m_cos=yes
14104else
14105 ac_cv_lib_m_cos=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109LIBS=$ac_check_lib_save_LIBS
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14112$as_echo "$ac_cv_lib_m_cos" >&6; }
14113if test "x$ac_cv_lib_m_cos" = xyes; then :
14114 LIBM="-lm"
14115fi
14116
14117 ;;
14118esac
14119
14120
14121
14122#Libs for generator progs
14123if test "x$cross_compiling" = "xno"; then
14124 BUILD_LIBS=../libiberty/libiberty.a
14125 BUILD_LIB_DEPS=$BUILD_LIBS
14126else
14127 # if cross-compiling, assume that the system provides -liberty
14128 # and that the version is compatible with new headers.
14129 BUILD_LIBS=-liberty
14130 BUILD_LIB_DEPS=
14131fi
14132BUILD_LIBS="$BUILD_LIBS $LIBINTL"
14133BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
14134
14135
14136
14137
14138# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
14139SHARED_LDFLAGS=
14140SHARED_LIBADD=
14141SHARED_DEPENDENCIES=
14142if test "$enable_shared" = "yes"; then
14143# When building a shared libopcodes, link against the pic version of libiberty
14144# so that apps that use libopcodes won't need libiberty just to satisfy any
14145# libopcodes references.
14146# We can't do that if a pic libiberty is unavailable since including non-pic
14147# code would insert text relocations into libopcodes.
14148# Note that linking against libbfd as we do here, which is itself linked
14149# against libiberty, may not satisfy all the libopcodes libiberty references
14150# since libbfd may not pull in the entirety of libiberty.
14151# Also, jam libintl into the right place in all of this: after libiberty,
14152# which uses it, but before -lcygwin, which it uses.
14153 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14154 if test -n "$x"; then
14155 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14156 fi
14157fi
14158
14159SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL"
14160
14161if test "$enable_shared" = "yes"; then
14162 case "${host}" in
14163 *-*-cygwin*)
14164 SHARED_LDFLAGS="-no-undefined"
14165 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD"
14166 ;;
14167 *)
14168 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}"
14169 SHARED_DEPENDENCIES="../bfd/libbfd.la"
14170 ;;
14171 esac
14172
14173 if test -n "$SHARED_LIBADD"; then
14174 if test -n "$LIBM"; then
14175 if test x"$bfd_cv_ld_as_needed" = xyes; then
14176 # Link against libm only when needed. Put -lc, -lm inside -Wl
14177 # to stop libtool reordering these options.
14178 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14179 else
14180 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14181 fi
14182 fi
14183 fi
14184fi
14185
14186
14187
14188
14189# target-specific stuff:
14190
14191# Canonicalize the secondary target names.
14192if test -n "$enable_targets" ; then
14193 for targ in `echo $enable_targets | sed 's/,/ /g'`
14194 do
14195 result=`$ac_config_sub $targ 2>/dev/null`
14196 if test -n "$result" ; then
14197 canon_targets="$canon_targets $result"
14198 else
14199 # Allow targets that config.sub doesn't recognize, like "all".
14200 canon_targets="$canon_targets $targ"
14201 fi
14202 done
14203fi
14204
14205all_targets=false
14206selarchs=
14207for targ in $target $canon_targets
14208do
14209 if test "x$targ" = "xall" ; then
14210 all_targets=true
14211 else
14212 . $srcdir/../bfd/config.bfd
14213 selarchs="$selarchs $targ_archs"
14214 fi
14215done
14216
14217# Utility var, documents generic cgen support files.
14218
14219cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
14220
14221# We don't do any links based on the target system, just makefile config.
14222
14223if test x${all_targets} = xfalse ; then
14224
14225 # Target architecture .o files.
14226 ta=
14227
14228 for arch in $selarchs
14229 do
14230 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
14231 archdefs="$archdefs -DARCH_$ad"
14232 case "$arch" in
14233 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
14234 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
14235 bfd_amdgcn_arch) ;;
14236 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
14237 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
14238 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
14239 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
14240 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
14241 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
14242 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
14243 bfd_csky_arch) ta="$ta csky-dis.lo" ;;
14244 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
14245 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
14246 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
14247 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
14248 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
14249 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
14250 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
14251 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
14252 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
14253 bfd_i386_arch|bfd_iamcu_arch)
14254 ta="$ta i386-dis.lo" ;;
14255 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
14256 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
14257 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
14258 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
14259 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;;
14260 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
14261 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
14262 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
14263 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14264 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14265 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14266 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14267 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;;
14268 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
14269 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
14270 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
14271 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
14272 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
14273 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
14274 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
14275 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
14276 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
14277 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
14278 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
14279 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
14280 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;;
14281 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
14282 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
14283 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
14284 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
14285 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14286 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14287 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;;
14288 bfd_pyramid_arch) ;;
14289 bfd_romp_arch) ;;
14290 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;;
14291 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14292 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
14293 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
14294 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
14295 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
14296 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;;
14297 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
14298 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
14299 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
14300 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
14301 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
14302 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
14303 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
14304 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
14305 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14306 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14307 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14308 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14309 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
14310 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
14311 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;;
14312 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
14313 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
14314 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
14315 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
14316 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
14317 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;;
14318 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;;
14319
14320 "") ;;
14321 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;;
14322 esac
14323 done
14324
14325 if test $using_cgen = yes ; then
14326 ta="$ta $cgen_files"
14327 fi
14328
14329 # Weed out duplicate .o files.
14330 f=""
14331 for i in $ta ; do
14332 case " $f " in
14333 *" $i "*) ;;
14334 *) f="$f $i" ;;
14335 esac
14336 done
14337 ta="$f"
14338
14339 # And duplicate -D flags.
14340 f=""
14341 for i in $archdefs ; do
14342 case " $f " in
14343 *" $i "*) ;;
14344 *) f="$f $i" ;;
14345 esac
14346 done
14347 archdefs="$f"
14348
14349 BFD_MACHINES="$ta"
14350
14351else # all_targets is true
14352 archdefs=-DARCH_all
14353 if test "$have_64_bit_bfd" = "yes" ; then
14354 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
14355 else
14356 BFD_MACHINES='$(ALL32_MACHINES)'
14357 fi
14358fi
14359
14360
14361
14362
14363ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14364
14365cat >confcache <<\_ACEOF
14366# This file is a shell script that caches the results of configure
14367# tests run on this system so they can be shared between configure
14368# scripts and configure runs, see configure's option --config-cache.
14369# It is not useful on other systems. If it contains results you don't
14370# want to keep, you may remove or edit it.
14371#
14372# config.status only pays attention to the cache file if you give it
14373# the --recheck option to rerun configure.
14374#
14375# `ac_cv_env_foo' variables (set or unset) will be overridden when
14376# loading this file, other *unset* `ac_cv_foo' will be assigned the
14377# following values.
14378
14379_ACEOF
14380
14381# The following way of writing the cache mishandles newlines in values,
14382# but we know of no workaround that is simple, portable, and efficient.
14383# So, we kill variables containing newlines.
14384# Ultrix sh set writes to stderr and can't be redirected directly,
14385# and sets the high bit in the cache file unless we assign to the vars.
14386(
14387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14388 eval ac_val=\$$ac_var
14389 case $ac_val in #(
14390 *${as_nl}*)
14391 case $ac_var in #(
14392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14394 esac
14395 case $ac_var in #(
14396 _ | IFS | as_nl) ;; #(
14397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14398 *) { eval $ac_var=; unset $ac_var;} ;;
14399 esac ;;
14400 esac
14401 done
14402
14403 (set) 2>&1 |
14404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14405 *${as_nl}ac_space=\ *)
14406 # `set' does not quote correctly, so add quotes: double-quote
14407 # substitution turns \\\\ into \\, and sed turns \\ into \.
14408 sed -n \
14409 "s/'/'\\\\''/g;
14410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14411 ;; #(
14412 *)
14413 # `set' quotes correctly as required by POSIX, so do not add quotes.
14414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14415 ;;
14416 esac |
14417 sort
14418) |
14419 sed '
14420 /^ac_cv_env_/b end
14421 t clear
14422 :clear
14423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14424 t end
14425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14426 :end' >>confcache
14427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14428 if test -w "$cache_file"; then
14429 if test "x$cache_file" != "x/dev/null"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14431$as_echo "$as_me: updating cache $cache_file" >&6;}
14432 if test ! -f "$cache_file" || test -h "$cache_file"; then
14433 cat confcache >"$cache_file"
14434 else
14435 case $cache_file in #(
14436 */* | ?:*)
14437 mv -f confcache "$cache_file"$$ &&
14438 mv -f "$cache_file"$$ "$cache_file" ;; #(
14439 *)
14440 mv -f confcache "$cache_file" ;;
14441 esac
14442 fi
14443 fi
14444 else
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14447 fi
14448fi
14449rm -f confcache
14450
14451test "x$prefix" = xNONE && prefix=$ac_default_prefix
14452# Let make expand exec_prefix.
14453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14454
14455DEFS=-DHAVE_CONFIG_H
14456
14457ac_libobjs=
14458ac_ltlibobjs=
14459U=
14460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14461 # 1. Remove the extension, and $U if already installed.
14462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14463 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14465 # will be set to the directory where LIBOBJS objects are built.
14466 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14467 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14468done
14469LIBOBJS=$ac_libobjs
14470
14471LTLIBOBJS=$ac_ltlibobjs
14472
14473
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14475$as_echo_n "checking that generated files are newer than configure... " >&6; }
14476 if test -n "$am_sleep_pid"; then
14477 # Hide warnings about reused PIDs.
14478 wait $am_sleep_pid 2>/dev/null
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14481$as_echo "done" >&6; }
14482 if test -n "$EXEEXT"; then
14483 am__EXEEXT_TRUE=
14484 am__EXEEXT_FALSE='#'
14485else
14486 am__EXEEXT_TRUE='#'
14487 am__EXEEXT_FALSE=
14488fi
14489
14490if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14491 as_fn_error $? "conditional \"AMDEP\" was never defined.
14492Usually this means the macro was only invoked conditionally." "$LINENO" 5
14493fi
14494if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14495 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14496Usually this means the macro was only invoked conditionally." "$LINENO" 5
14497fi
14498if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14499 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14500Usually this means the macro was only invoked conditionally." "$LINENO" 5
14501fi
14502if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14503 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
14504Usually this means the macro was only invoked conditionally." "$LINENO" 5
14505fi
14506if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
14507 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined.
14508Usually this means the macro was only invoked conditionally." "$LINENO" 5
14509fi
14510
14511: "${CONFIG_STATUS=./config.status}"
14512ac_write_fail=0
14513ac_clean_files_save=$ac_clean_files
14514ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14516$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14517as_write_fail=0
14518cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14519#! $SHELL
14520# Generated by $as_me.
14521# Run this file to recreate the current configuration.
14522# Compiler output produced by configure, useful for debugging
14523# configure, is in config.log if it exists.
14524
14525debug=false
14526ac_cs_recheck=false
14527ac_cs_silent=false
14528
14529SHELL=\${CONFIG_SHELL-$SHELL}
14530export SHELL
14531_ASEOF
14532cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14533## -------------------- ##
14534## M4sh Initialization. ##
14535## -------------------- ##
14536
14537# Be more Bourne compatible
14538DUALCASE=1; export DUALCASE # for MKS sh
14539if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14540 emulate sh
14541 NULLCMD=:
14542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14543 # is contrary to our usage. Disable this feature.
14544 alias -g '${1+"$@"}'='"$@"'
14545 setopt NO_GLOB_SUBST
14546else
14547 case `(set -o) 2>/dev/null` in #(
14548 *posix*) :
14549 set -o posix ;; #(
14550 *) :
14551 ;;
14552esac
14553fi
14554
14555
14556as_nl='
14557'
14558export as_nl
14559# Printing a long string crashes Solaris 7 /usr/bin/printf.
14560as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14562as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14563# Prefer a ksh shell builtin over an external printf program on Solaris,
14564# but without wasting forks for bash or zsh.
14565if test -z "$BASH_VERSION$ZSH_VERSION" \
14566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14567 as_echo='print -r --'
14568 as_echo_n='print -rn --'
14569elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14570 as_echo='printf %s\n'
14571 as_echo_n='printf %s'
14572else
14573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14574 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14575 as_echo_n='/usr/ucb/echo -n'
14576 else
14577 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14578 as_echo_n_body='eval
14579 arg=$1;
14580 case $arg in #(
14581 *"$as_nl"*)
14582 expr "X$arg" : "X\\(.*\\)$as_nl";
14583 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14584 esac;
14585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14586 '
14587 export as_echo_n_body
14588 as_echo_n='sh -c $as_echo_n_body as_echo'
14589 fi
14590 export as_echo_body
14591 as_echo='sh -c $as_echo_body as_echo'
14592fi
14593
14594# The user is always right.
14595if test "${PATH_SEPARATOR+set}" != set; then
14596 PATH_SEPARATOR=:
14597 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14598 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14599 PATH_SEPARATOR=';'
14600 }
14601fi
14602
14603
14604# IFS
14605# We need space, tab and new line, in precisely that order. Quoting is
14606# there to prevent editors from complaining about space-tab.
14607# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14608# splitting by setting IFS to empty value.)
14609IFS=" "" $as_nl"
14610
14611# Find who we are. Look in the path if we contain no directory separator.
14612as_myself=
14613case $0 in #((
14614 *[\\/]* ) as_myself=$0 ;;
14615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616for as_dir in $PATH
14617do
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14621 done
14622IFS=$as_save_IFS
14623
14624 ;;
14625esac
14626# We did not find ourselves, most probably we were run as `sh COMMAND'
14627# in which case we are not to be found in the path.
14628if test "x$as_myself" = x; then
14629 as_myself=$0
14630fi
14631if test ! -f "$as_myself"; then
14632 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14633 exit 1
14634fi
14635
14636# Unset variables that we do not need and which cause bugs (e.g. in
14637# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14638# suppresses any "Segmentation fault" message there. '((' could
14639# trigger a bug in pdksh 5.2.14.
14640for as_var in BASH_ENV ENV MAIL MAILPATH
14641do eval test x\${$as_var+set} = xset \
14642 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14643done
14644PS1='$ '
14645PS2='> '
14646PS4='+ '
14647
14648# NLS nuisances.
14649LC_ALL=C
14650export LC_ALL
14651LANGUAGE=C
14652export LANGUAGE
14653
14654# CDPATH.
14655(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14656
14657
14658# as_fn_error STATUS ERROR [LINENO LOG_FD]
14659# ----------------------------------------
14660# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14661# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14662# script with STATUS, using 1 if that was 0.
14663as_fn_error ()
14664{
14665 as_status=$1; test $as_status -eq 0 && as_status=1
14666 if test "$4"; then
14667 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14668 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14669 fi
14670 $as_echo "$as_me: error: $2" >&2
14671 as_fn_exit $as_status
14672} # as_fn_error
14673
14674
14675# as_fn_set_status STATUS
14676# -----------------------
14677# Set $? to STATUS, without forking.
14678as_fn_set_status ()
14679{
14680 return $1
14681} # as_fn_set_status
14682
14683# as_fn_exit STATUS
14684# -----------------
14685# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14686as_fn_exit ()
14687{
14688 set +e
14689 as_fn_set_status $1
14690 exit $1
14691} # as_fn_exit
14692
14693# as_fn_unset VAR
14694# ---------------
14695# Portably unset VAR.
14696as_fn_unset ()
14697{
14698 { eval $1=; unset $1;}
14699}
14700as_unset=as_fn_unset
14701# as_fn_append VAR VALUE
14702# ----------------------
14703# Append the text in VALUE to the end of the definition contained in VAR. Take
14704# advantage of any shell optimizations that allow amortized linear growth over
14705# repeated appends, instead of the typical quadratic growth present in naive
14706# implementations.
14707if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14708 eval 'as_fn_append ()
14709 {
14710 eval $1+=\$2
14711 }'
14712else
14713 as_fn_append ()
14714 {
14715 eval $1=\$$1\$2
14716 }
14717fi # as_fn_append
14718
14719# as_fn_arith ARG...
14720# ------------------
14721# Perform arithmetic evaluation on the ARGs, and store the result in the
14722# global $as_val. Take advantage of shells that can avoid forks. The arguments
14723# must be portable across $(()) and expr.
14724if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14725 eval 'as_fn_arith ()
14726 {
14727 as_val=$(( $* ))
14728 }'
14729else
14730 as_fn_arith ()
14731 {
14732 as_val=`expr "$@" || test $? -eq 1`
14733 }
14734fi # as_fn_arith
14735
14736
14737if expr a : '\(a\)' >/dev/null 2>&1 &&
14738 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14739 as_expr=expr
14740else
14741 as_expr=false
14742fi
14743
14744if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14745 as_basename=basename
14746else
14747 as_basename=false
14748fi
14749
14750if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14751 as_dirname=dirname
14752else
14753 as_dirname=false
14754fi
14755
14756as_me=`$as_basename -- "$0" ||
14757$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14758 X"$0" : 'X\(//\)$' \| \
14759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14760$as_echo X/"$0" |
14761 sed '/^.*\/\([^/][^/]*\)\/*$/{
14762 s//\1/
14763 q
14764 }
14765 /^X\/\(\/\/\)$/{
14766 s//\1/
14767 q
14768 }
14769 /^X\/\(\/\).*/{
14770 s//\1/
14771 q
14772 }
14773 s/.*/./; q'`
14774
14775# Avoid depending upon Character Ranges.
14776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14779as_cr_digits='0123456789'
14780as_cr_alnum=$as_cr_Letters$as_cr_digits
14781
14782ECHO_C= ECHO_N= ECHO_T=
14783case `echo -n x` in #(((((
14784-n*)
14785 case `echo 'xy\c'` in
14786 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14787 xy) ECHO_C='\c';;
14788 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14789 ECHO_T=' ';;
14790 esac;;
14791*)
14792 ECHO_N='-n';;
14793esac
14794
14795rm -f conf$$ conf$$.exe conf$$.file
14796if test -d conf$$.dir; then
14797 rm -f conf$$.dir/conf$$.file
14798else
14799 rm -f conf$$.dir
14800 mkdir conf$$.dir 2>/dev/null
14801fi
14802if (echo >conf$$.file) 2>/dev/null; then
14803 if ln -s conf$$.file conf$$ 2>/dev/null; then
14804 as_ln_s='ln -s'
14805 # ... but there are two gotchas:
14806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14808 # In both cases, we have to default to `cp -pR'.
14809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14810 as_ln_s='cp -pR'
14811 elif ln conf$$.file conf$$ 2>/dev/null; then
14812 as_ln_s=ln
14813 else
14814 as_ln_s='cp -pR'
14815 fi
14816else
14817 as_ln_s='cp -pR'
14818fi
14819rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14820rmdir conf$$.dir 2>/dev/null
14821
14822
14823# as_fn_mkdir_p
14824# -------------
14825# Create "$as_dir" as a directory, including parents if necessary.
14826as_fn_mkdir_p ()
14827{
14828
14829 case $as_dir in #(
14830 -*) as_dir=./$as_dir;;
14831 esac
14832 test -d "$as_dir" || eval $as_mkdir_p || {
14833 as_dirs=
14834 while :; do
14835 case $as_dir in #(
14836 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14837 *) as_qdir=$as_dir;;
14838 esac
14839 as_dirs="'$as_qdir' $as_dirs"
14840 as_dir=`$as_dirname -- "$as_dir" ||
14841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14842 X"$as_dir" : 'X\(//\)[^/]' \| \
14843 X"$as_dir" : 'X\(//\)$' \| \
14844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14845$as_echo X"$as_dir" |
14846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\/\)[^/].*/{
14851 s//\1/
14852 q
14853 }
14854 /^X\(\/\/\)$/{
14855 s//\1/
14856 q
14857 }
14858 /^X\(\/\).*/{
14859 s//\1/
14860 q
14861 }
14862 s/.*/./; q'`
14863 test -d "$as_dir" && break
14864 done
14865 test -z "$as_dirs" || eval "mkdir $as_dirs"
14866 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14867
14868
14869} # as_fn_mkdir_p
14870if mkdir -p . 2>/dev/null; then
14871 as_mkdir_p='mkdir -p "$as_dir"'
14872else
14873 test -d ./-p && rmdir ./-p
14874 as_mkdir_p=false
14875fi
14876
14877
14878# as_fn_executable_p FILE
14879# -----------------------
14880# Test if FILE is an executable regular file.
14881as_fn_executable_p ()
14882{
14883 test -f "$1" && test -x "$1"
14884} # as_fn_executable_p
14885as_test_x='test -x'
14886as_executable_p=as_fn_executable_p
14887
14888# Sed expression to map a string onto a valid CPP name.
14889as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14890
14891# Sed expression to map a string onto a valid variable name.
14892as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14893
14894
14895exec 6>&1
14896## ----------------------------------- ##
14897## Main body of $CONFIG_STATUS script. ##
14898## ----------------------------------- ##
14899_ASEOF
14900test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14901
14902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14903# Save the log message, to keep $0 and so on meaningful, and to
14904# report actual input values of CONFIG_FILES etc. instead of their
14905# values after options handling.
14906ac_log="
14907This file was extended by opcodes $as_me 2.44.50, which was
14908generated by GNU Autoconf 2.69. Invocation command line was
14909
14910 CONFIG_FILES = $CONFIG_FILES
14911 CONFIG_HEADERS = $CONFIG_HEADERS
14912 CONFIG_LINKS = $CONFIG_LINKS
14913 CONFIG_COMMANDS = $CONFIG_COMMANDS
14914 $ $0 $@
14915
14916on `(hostname || uname -n) 2>/dev/null | sed 1q`
14917"
14918
14919_ACEOF
14920
14921case $ac_config_files in *"
14922"*) set x $ac_config_files; shift; ac_config_files=$*;;
14923esac
14924
14925case $ac_config_headers in *"
14926"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14927esac
14928
14929
14930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14931# Files that config.status was made for.
14932config_files="$ac_config_files"
14933config_headers="$ac_config_headers"
14934config_commands="$ac_config_commands"
14935
14936_ACEOF
14937
14938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14939ac_cs_usage="\
14940\`$as_me' instantiates files and other configuration actions
14941from templates according to the current configuration. Unless the files
14942and actions are specified as TAGs, all are instantiated by default.
14943
14944Usage: $0 [OPTION]... [TAG]...
14945
14946 -h, --help print this help, then exit
14947 -V, --version print version number and configuration settings, then exit
14948 --config print configuration, then exit
14949 -q, --quiet, --silent
14950 do not print progress messages
14951 -d, --debug don't remove temporary files
14952 --recheck update $as_me by reconfiguring in the same conditions
14953 --file=FILE[:TEMPLATE]
14954 instantiate the configuration file FILE
14955 --header=FILE[:TEMPLATE]
14956 instantiate the configuration header FILE
14957
14958Configuration files:
14959$config_files
14960
14961Configuration headers:
14962$config_headers
14963
14964Configuration commands:
14965$config_commands
14966
14967Report bugs to the package provider."
14968
14969_ACEOF
14970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14971ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14972ac_cs_version="\\
14973opcodes config.status 2.44.50
14974configured by $0, generated by GNU Autoconf 2.69,
14975 with options \\"\$ac_cs_config\\"
14976
14977Copyright (C) 2012 Free Software Foundation, Inc.
14978This config.status script is free software; the Free Software Foundation
14979gives unlimited permission to copy, distribute and modify it."
14980
14981ac_pwd='$ac_pwd'
14982srcdir='$srcdir'
14983INSTALL='$INSTALL'
14984MKDIR_P='$MKDIR_P'
14985AWK='$AWK'
14986test -n "\$AWK" || AWK=awk
14987_ACEOF
14988
14989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14990# The default lists apply if the user does not specify any file.
14991ac_need_defaults=:
14992while test $# != 0
14993do
14994 case $1 in
14995 --*=?*)
14996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14998 ac_shift=:
14999 ;;
15000 --*=)
15001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15002 ac_optarg=
15003 ac_shift=:
15004 ;;
15005 *)
15006 ac_option=$1
15007 ac_optarg=$2
15008 ac_shift=shift
15009 ;;
15010 esac
15011
15012 case $ac_option in
15013 # Handling of the options.
15014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15015 ac_cs_recheck=: ;;
15016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15017 $as_echo "$ac_cs_version"; exit ;;
15018 --config | --confi | --conf | --con | --co | --c )
15019 $as_echo "$ac_cs_config"; exit ;;
15020 --debug | --debu | --deb | --de | --d | -d )
15021 debug=: ;;
15022 --file | --fil | --fi | --f )
15023 $ac_shift
15024 case $ac_optarg in
15025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15026 '') as_fn_error $? "missing file argument" ;;
15027 esac
15028 as_fn_append CONFIG_FILES " '$ac_optarg'"
15029 ac_need_defaults=false;;
15030 --header | --heade | --head | --hea )
15031 $ac_shift
15032 case $ac_optarg in
15033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15034 esac
15035 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15036 ac_need_defaults=false;;
15037 --he | --h)
15038 # Conflict between --help and --header
15039 as_fn_error $? "ambiguous option: \`$1'
15040Try \`$0 --help' for more information.";;
15041 --help | --hel | -h )
15042 $as_echo "$ac_cs_usage"; exit ;;
15043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15045 ac_cs_silent=: ;;
15046
15047 # This is an error.
15048 -*) as_fn_error $? "unrecognized option: \`$1'
15049Try \`$0 --help' for more information." ;;
15050
15051 *) as_fn_append ac_config_targets " $1"
15052 ac_need_defaults=false ;;
15053
15054 esac
15055 shift
15056done
15057
15058ac_configure_extra_args=
15059
15060if $ac_cs_silent; then
15061 exec 6>/dev/null
15062 ac_configure_extra_args="$ac_configure_extra_args --silent"
15063fi
15064
15065_ACEOF
15066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15067if \$ac_cs_recheck; then
15068 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15069 shift
15070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15071 CONFIG_SHELL='$SHELL'
15072 export CONFIG_SHELL
15073 exec "\$@"
15074fi
15075
15076_ACEOF
15077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15078exec 5>>config.log
15079{
15080 echo
15081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15082## Running $as_me. ##
15083_ASBOX
15084 $as_echo "$ac_log"
15085} >&5
15086
15087_ACEOF
15088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15089#
15090# INIT-COMMANDS
15091#
15092AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15093
15094
15095# The HP-UX ksh and POSIX shell print the target directory to stdout
15096# if CDPATH is set.
15097(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15098
15099sed_quote_subst='$sed_quote_subst'
15100double_quote_subst='$double_quote_subst'
15101delay_variable_subst='$delay_variable_subst'
15102enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15103macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15104macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15105enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15106pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15107enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15108SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15109ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15110host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15111host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15112host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15113build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15114build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15115build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15116SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15117Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15118GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15119EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15120FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15121LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15122NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15123LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15124max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15125ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15126exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15127lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15128lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15129lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15130reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15131reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15132OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15133deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15134file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15135AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15136AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15137STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15138RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15139old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15140old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15141old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15142lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15143CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15144CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15145compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15146GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15147lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15148lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15149lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15150lt_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"`'
15151objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15152MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15153lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15154lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15155lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15156lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15157lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15158need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15159DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15160NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15161LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15162OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15163OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15164libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15165shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15166extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15167archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15168enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15169export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15170whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15171compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15172old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15173old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15174archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15175archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15176module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15177module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15178with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15179allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15180no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15181hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15182hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15183hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15184hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15185hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15186hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15187hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15188hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15189inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15190link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15191fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15192always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15193export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15194exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15195include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15196prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15197file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15198variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15199need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15200need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15201version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15202runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15203shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15204shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15205libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15206library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15207soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15208install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15209postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15210postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15211finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15212finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15213hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15214sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15215sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15216hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15217enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15218enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15219enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15220old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15221striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15222
15223LTCC='$LTCC'
15224LTCFLAGS='$LTCFLAGS'
15225compiler='$compiler_DEFAULT'
15226
15227# A function that is used when there is no print builtin or printf.
15228func_fallback_echo ()
15229{
15230 eval 'cat <<_LTECHO_EOF
15231\$1
15232_LTECHO_EOF'
15233}
15234
15235# Quote evaled strings.
15236for var in SHELL \
15237ECHO \
15238SED \
15239GREP \
15240EGREP \
15241FGREP \
15242LD \
15243NM \
15244LN_S \
15245lt_SP2NL \
15246lt_NL2SP \
15247reload_flag \
15248OBJDUMP \
15249deplibs_check_method \
15250file_magic_cmd \
15251AR \
15252AR_FLAGS \
15253STRIP \
15254RANLIB \
15255CC \
15256CFLAGS \
15257compiler \
15258lt_cv_sys_global_symbol_pipe \
15259lt_cv_sys_global_symbol_to_cdecl \
15260lt_cv_sys_global_symbol_to_c_name_address \
15261lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15262lt_prog_compiler_no_builtin_flag \
15263lt_prog_compiler_wl \
15264lt_prog_compiler_pic \
15265lt_prog_compiler_static \
15266lt_cv_prog_compiler_c_o \
15267need_locks \
15268DSYMUTIL \
15269NMEDIT \
15270LIPO \
15271OTOOL \
15272OTOOL64 \
15273shrext_cmds \
15274export_dynamic_flag_spec \
15275whole_archive_flag_spec \
15276compiler_needs_object \
15277with_gnu_ld \
15278allow_undefined_flag \
15279no_undefined_flag \
15280hardcode_libdir_flag_spec \
15281hardcode_libdir_flag_spec_ld \
15282hardcode_libdir_separator \
15283fix_srcfile_path \
15284exclude_expsyms \
15285include_expsyms \
15286file_list_spec \
15287variables_saved_for_relink \
15288libname_spec \
15289library_names_spec \
15290soname_spec \
15291install_override_mode \
15292finish_eval \
15293old_striplib \
15294striplib; do
15295 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15296 *[\\\\\\\`\\"\\\$]*)
15297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15298 ;;
15299 *)
15300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15301 ;;
15302 esac
15303done
15304
15305# Double-quote double-evaled strings.
15306for var in reload_cmds \
15307old_postinstall_cmds \
15308old_postuninstall_cmds \
15309old_archive_cmds \
15310extract_expsyms_cmds \
15311old_archive_from_new_cmds \
15312old_archive_from_expsyms_cmds \
15313archive_cmds \
15314archive_expsym_cmds \
15315module_cmds \
15316module_expsym_cmds \
15317export_symbols_cmds \
15318prelink_cmds \
15319postinstall_cmds \
15320postuninstall_cmds \
15321finish_cmds \
15322sys_lib_search_path_spec \
15323sys_lib_dlsearch_path_spec; do
15324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15325 *[\\\\\\\`\\"\\\$]*)
15326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15327 ;;
15328 *)
15329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15330 ;;
15331 esac
15332done
15333
15334ac_aux_dir='$ac_aux_dir'
15335xsi_shell='$xsi_shell'
15336lt_shell_append='$lt_shell_append'
15337
15338# See if we are running on zsh, and set the options which allow our
15339# commands through without removal of \ escapes INIT.
15340if test -n "\${ZSH_VERSION+set}" ; then
15341 setopt NO_GLOB_SUBST
15342fi
15343
15344
15345 PACKAGE='$PACKAGE'
15346 VERSION='$VERSION'
15347 TIMESTAMP='$TIMESTAMP'
15348 RM='$RM'
15349 ofile='$ofile'
15350
15351
15352
15353# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15354 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15355 # from automake.
15356 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15357 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15358 LINGUAS="${LINGUAS-%UNSET%}"
15359
15360# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15361 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15362 # from automake.
15363 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15364 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15365 LINGUAS="${LINGUAS-%UNSET%}"
15366
15367
15368_ACEOF
15369
15370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371
15372# Handling of arguments.
15373for ac_config_target in $ac_config_targets
15374do
15375 case $ac_config_target in
15376 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15377 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15379 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15380 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
15381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15382 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15383
15384 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15385 esac
15386done
15387
15388
15389# If the user did not use the arguments to specify the items to instantiate,
15390# then the envvar interface is used. Set only those that are not.
15391# We use the long form for the default assignment because of an extremely
15392# bizarre bug on SunOS 4.1.3.
15393if $ac_need_defaults; then
15394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15395 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15397fi
15398
15399# Have a temporary directory for convenience. Make it in the build tree
15400# simply because there is no reason against having it here, and in addition,
15401# creating and moving files from /tmp can sometimes cause problems.
15402# Hook for its removal unless debugging.
15403# Note that there is a small window in which the directory will not be cleaned:
15404# after its creation but before its name has been assigned to `$tmp'.
15405$debug ||
15406{
15407 tmp= ac_tmp=
15408 trap 'exit_status=$?
15409 : "${ac_tmp:=$tmp}"
15410 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15411' 0
15412 trap 'as_fn_exit 1' 1 2 13 15
15413}
15414# Create a (secure) tmp directory for tmp files.
15415
15416{
15417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15418 test -d "$tmp"
15419} ||
15420{
15421 tmp=./conf$$-$RANDOM
15422 (umask 077 && mkdir "$tmp")
15423} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15424ac_tmp=$tmp
15425
15426# Set up the scripts for CONFIG_FILES section.
15427# No need to generate them if there are no CONFIG_FILES.
15428# This happens for instance with `./config.status config.h'.
15429if test -n "$CONFIG_FILES"; then
15430
15431
15432ac_cr=`echo X | tr X '\015'`
15433# On cygwin, bash can eat \r inside `` if the user requested igncr.
15434# But we know of no other shell where ac_cr would be empty at this
15435# point, so we can use a bashism as a fallback.
15436if test "x$ac_cr" = x; then
15437 eval ac_cr=\$\'\\r\'
15438fi
15439ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15440if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15441 ac_cs_awk_cr='\\r'
15442else
15443 ac_cs_awk_cr=$ac_cr
15444fi
15445
15446echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15447_ACEOF
15448
15449
15450{
15451 echo "cat >conf$$subs.awk <<_ACEOF" &&
15452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15453 echo "_ACEOF"
15454} >conf$$subs.sh ||
15455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15456ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15457ac_delim='%!_!# '
15458for ac_last_try in false false false false false :; do
15459 . ./conf$$subs.sh ||
15460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15461
15462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15463 if test $ac_delim_n = $ac_delim_num; then
15464 break
15465 elif $ac_last_try; then
15466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15467 else
15468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15469 fi
15470done
15471rm -f conf$$subs.sh
15472
15473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15474cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15475_ACEOF
15476sed -n '
15477h
15478s/^/S["/; s/!.*/"]=/
15479p
15480g
15481s/^[^!]*!//
15482:repl
15483t repl
15484s/'"$ac_delim"'$//
15485t delim
15486:nl
15487h
15488s/\(.\{148\}\)..*/\1/
15489t more1
15490s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15491p
15492n
15493b repl
15494:more1
15495s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15496p
15497g
15498s/.\{148\}//
15499t nl
15500:delim
15501h
15502s/\(.\{148\}\)..*/\1/
15503t more2
15504s/["\\]/\\&/g; s/^/"/; s/$/"/
15505p
15506b
15507:more2
15508s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15509p
15510g
15511s/.\{148\}//
15512t delim
15513' <conf$$subs.awk | sed '
15514/^[^""]/{
15515 N
15516 s/\n//
15517}
15518' >>$CONFIG_STATUS || ac_write_fail=1
15519rm -f conf$$subs.awk
15520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521_ACAWK
15522cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15523 for (key in S) S_is_set[key] = 1
15524 FS = "\a"
15525
15526}
15527{
15528 line = $ 0
15529 nfields = split(line, field, "@")
15530 substed = 0
15531 len = length(field[1])
15532 for (i = 2; i < nfields; i++) {
15533 key = field[i]
15534 keylen = length(key)
15535 if (S_is_set[key]) {
15536 value = S[key]
15537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15538 len += length(value) + length(field[++i])
15539 substed = 1
15540 } else
15541 len += 1 + keylen
15542 }
15543
15544 print line
15545}
15546
15547_ACAWK
15548_ACEOF
15549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15551 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15552else
15553 cat
15554fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15555 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15556_ACEOF
15557
15558# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15559# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15560# trailing colons and then remove the whole line if VPATH becomes empty
15561# (actually we leave an empty line to preserve line numbers).
15562if test "x$srcdir" = x.; then
15563 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15564h
15565s///
15566s/^/:/
15567s/[ ]*$/:/
15568s/:\$(srcdir):/:/g
15569s/:\${srcdir}:/:/g
15570s/:@srcdir@:/:/g
15571s/^:*//
15572s/:*$//
15573x
15574s/\(=[ ]*\).*/\1/
15575G
15576s/\n//
15577s/^[^=]*=[ ]*$//
15578}'
15579fi
15580
15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582fi # test -n "$CONFIG_FILES"
15583
15584# Set up the scripts for CONFIG_HEADERS section.
15585# No need to generate them if there are no CONFIG_HEADERS.
15586# This happens for instance with `./config.status Makefile'.
15587if test -n "$CONFIG_HEADERS"; then
15588cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15589BEGIN {
15590_ACEOF
15591
15592# Transform confdefs.h into an awk script `defines.awk', embedded as
15593# here-document in config.status, that substitutes the proper values into
15594# config.h.in to produce config.h.
15595
15596# Create a delimiter string that does not exist in confdefs.h, to ease
15597# handling of long lines.
15598ac_delim='%!_!# '
15599for ac_last_try in false false :; do
15600 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15601 if test -z "$ac_tt"; then
15602 break
15603 elif $ac_last_try; then
15604 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15605 else
15606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15607 fi
15608done
15609
15610# For the awk script, D is an array of macro values keyed by name,
15611# likewise P contains macro parameters if any. Preserve backslash
15612# newline sequences.
15613
15614ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15615sed -n '
15616s/.\{148\}/&'"$ac_delim"'/g
15617t rset
15618:rset
15619s/^[ ]*#[ ]*define[ ][ ]*/ /
15620t def
15621d
15622:def
15623s/\\$//
15624t bsnl
15625s/["\\]/\\&/g
15626s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15627D["\1"]=" \3"/p
15628s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15629d
15630:bsnl
15631s/["\\]/\\&/g
15632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15633D["\1"]=" \3\\\\\\n"\\/p
15634t cont
15635s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15636t cont
15637d
15638:cont
15639n
15640s/.\{148\}/&'"$ac_delim"'/g
15641t clear
15642:clear
15643s/\\$//
15644t bsnlc
15645s/["\\]/\\&/g; s/^/"/; s/$/"/p
15646d
15647:bsnlc
15648s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15649b cont
15650' <confdefs.h | sed '
15651s/'"$ac_delim"'/"\\\
15652"/g' >>$CONFIG_STATUS || ac_write_fail=1
15653
15654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 for (key in D) D_is_set[key] = 1
15656 FS = "\a"
15657}
15658/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15659 line = \$ 0
15660 split(line, arg, " ")
15661 if (arg[1] == "#") {
15662 defundef = arg[2]
15663 mac1 = arg[3]
15664 } else {
15665 defundef = substr(arg[1], 2)
15666 mac1 = arg[2]
15667 }
15668 split(mac1, mac2, "(") #)
15669 macro = mac2[1]
15670 prefix = substr(line, 1, index(line, defundef) - 1)
15671 if (D_is_set[macro]) {
15672 # Preserve the white space surrounding the "#".
15673 print prefix "define", macro P[macro] D[macro]
15674 next
15675 } else {
15676 # Replace #undef with comments. This is necessary, for example,
15677 # in the case of _POSIX_SOURCE, which is predefined and required
15678 # on some systems where configure will not decide to define it.
15679 if (defundef == "undef") {
15680 print "/*", prefix defundef, macro, "*/"
15681 next
15682 }
15683 }
15684}
15685{ print }
15686_ACAWK
15687_ACEOF
15688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15690fi # test -n "$CONFIG_HEADERS"
15691
15692
15693eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15694shift
15695for ac_tag
15696do
15697 case $ac_tag in
15698 :[FHLC]) ac_mode=$ac_tag; continue;;
15699 esac
15700 case $ac_mode$ac_tag in
15701 :[FHL]*:*);;
15702 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15703 :[FH]-) ac_tag=-:-;;
15704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15705 esac
15706 ac_save_IFS=$IFS
15707 IFS=:
15708 set x $ac_tag
15709 IFS=$ac_save_IFS
15710 shift
15711 ac_file=$1
15712 shift
15713
15714 case $ac_mode in
15715 :L) ac_source=$1;;
15716 :[FH])
15717 ac_file_inputs=
15718 for ac_f
15719 do
15720 case $ac_f in
15721 -) ac_f="$ac_tmp/stdin";;
15722 *) # Look for the file first in the build tree, then in the source tree
15723 # (if the path is not absolute). The absolute path cannot be DOS-style,
15724 # because $ac_f cannot contain `:'.
15725 test -f "$ac_f" ||
15726 case $ac_f in
15727 [\\/$]*) false;;
15728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15729 esac ||
15730 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15731 esac
15732 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15733 as_fn_append ac_file_inputs " '$ac_f'"
15734 done
15735
15736 # Let's still pretend it is `configure' which instantiates (i.e., don't
15737 # use $as_me), people would be surprised to read:
15738 # /* config.h. Generated by config.status. */
15739 configure_input='Generated from '`
15740 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15741 `' by configure.'
15742 if test x"$ac_file" != x-; then
15743 configure_input="$ac_file. $configure_input"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15745$as_echo "$as_me: creating $ac_file" >&6;}
15746 fi
15747 # Neutralize special characters interpreted by sed in replacement strings.
15748 case $configure_input in #(
15749 *\&* | *\|* | *\\* )
15750 ac_sed_conf_input=`$as_echo "$configure_input" |
15751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15752 *) ac_sed_conf_input=$configure_input;;
15753 esac
15754
15755 case $ac_tag in
15756 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15758 esac
15759 ;;
15760 esac
15761
15762 ac_dir=`$as_dirname -- "$ac_file" ||
15763$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X"$ac_file" : 'X\(//\)[^/]' \| \
15765 X"$ac_file" : 'X\(//\)$' \| \
15766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15767$as_echo X"$ac_file" |
15768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\/\)[^/].*/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\/\)$/{
15777 s//\1/
15778 q
15779 }
15780 /^X\(\/\).*/{
15781 s//\1/
15782 q
15783 }
15784 s/.*/./; q'`
15785 as_dir="$ac_dir"; as_fn_mkdir_p
15786 ac_builddir=.
15787
15788case "$ac_dir" in
15789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15790*)
15791 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15792 # A ".." for each directory in $ac_dir_suffix.
15793 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15794 case $ac_top_builddir_sub in
15795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15797 esac ;;
15798esac
15799ac_abs_top_builddir=$ac_pwd
15800ac_abs_builddir=$ac_pwd$ac_dir_suffix
15801# for backward compatibility:
15802ac_top_builddir=$ac_top_build_prefix
15803
15804case $srcdir in
15805 .) # We are building in place.
15806 ac_srcdir=.
15807 ac_top_srcdir=$ac_top_builddir_sub
15808 ac_abs_top_srcdir=$ac_pwd ;;
15809 [\\/]* | ?:[\\/]* ) # Absolute name.
15810 ac_srcdir=$srcdir$ac_dir_suffix;
15811 ac_top_srcdir=$srcdir
15812 ac_abs_top_srcdir=$srcdir ;;
15813 *) # Relative name.
15814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15815 ac_top_srcdir=$ac_top_build_prefix$srcdir
15816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15817esac
15818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15819
15820
15821 case $ac_mode in
15822 :F)
15823 #
15824 # CONFIG_FILE
15825 #
15826
15827 case $INSTALL in
15828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15830 esac
15831 ac_MKDIR_P=$MKDIR_P
15832 case $MKDIR_P in
15833 [\\/$]* | ?:[\\/]* ) ;;
15834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15835 esac
15836_ACEOF
15837
15838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839# If the template does not know about datarootdir, expand it.
15840# FIXME: This hack should be removed a few years after 2.60.
15841ac_datarootdir_hack=; ac_datarootdir_seen=
15842ac_sed_dataroot='
15843/datarootdir/ {
15844 p
15845 q
15846}
15847/@datadir@/p
15848/@docdir@/p
15849/@infodir@/p
15850/@localedir@/p
15851/@mandir@/p'
15852case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15853*datarootdir*) ac_datarootdir_seen=yes;;
15854*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15856$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15857_ACEOF
15858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 ac_datarootdir_hack='
15860 s&@datadir@&$datadir&g
15861 s&@docdir@&$docdir&g
15862 s&@infodir@&$infodir&g
15863 s&@localedir@&$localedir&g
15864 s&@mandir@&$mandir&g
15865 s&\\\${datarootdir}&$datarootdir&g' ;;
15866esac
15867_ACEOF
15868
15869# Neutralize VPATH when `$srcdir' = `.'.
15870# Shell code in configure.ac might set extrasub.
15871# FIXME: do we really want to maintain this feature?
15872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873ac_sed_extra="$ac_vpsub
15874$extrasub
15875_ACEOF
15876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877:t
15878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15879s|@configure_input@|$ac_sed_conf_input|;t t
15880s&@top_builddir@&$ac_top_builddir_sub&;t t
15881s&@top_build_prefix@&$ac_top_build_prefix&;t t
15882s&@srcdir@&$ac_srcdir&;t t
15883s&@abs_srcdir@&$ac_abs_srcdir&;t t
15884s&@top_srcdir@&$ac_top_srcdir&;t t
15885s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15886s&@builddir@&$ac_builddir&;t t
15887s&@abs_builddir@&$ac_abs_builddir&;t t
15888s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15889s&@INSTALL@&$ac_INSTALL&;t t
15890s&@MKDIR_P@&$ac_MKDIR_P&;t t
15891$ac_datarootdir_hack
15892"
15893eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15894 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15895
15896test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15899 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15901which seems to be undefined. Please make sure it is defined" >&5
15902$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15903which seems to be undefined. Please make sure it is defined" >&2;}
15904
15905 rm -f "$ac_tmp/stdin"
15906 case $ac_file in
15907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15909 esac \
15910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15911 ;;
15912 :H)
15913 #
15914 # CONFIG_HEADER
15915 #
15916 if test x"$ac_file" != x-; then
15917 {
15918 $as_echo "/* $configure_input */" \
15919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15920 } >"$ac_tmp/config.h" \
15921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15922 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15924$as_echo "$as_me: $ac_file is unchanged" >&6;}
15925 else
15926 rm -f "$ac_file"
15927 mv "$ac_tmp/config.h" "$ac_file" \
15928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15929 fi
15930 else
15931 $as_echo "/* $configure_input */" \
15932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15933 || as_fn_error $? "could not create -" "$LINENO" 5
15934 fi
15935# Compute "$ac_file"'s index in $config_headers.
15936_am_arg="$ac_file"
15937_am_stamp_count=1
15938for _am_header in $config_headers :; do
15939 case $_am_header in
15940 $_am_arg | $_am_arg:* )
15941 break ;;
15942 * )
15943 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15944 esac
15945done
15946echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15947$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948 X"$_am_arg" : 'X\(//\)[^/]' \| \
15949 X"$_am_arg" : 'X\(//\)$' \| \
15950 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15951$as_echo X"$_am_arg" |
15952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)[^/].*/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)$/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\).*/{
15965 s//\1/
15966 q
15967 }
15968 s/.*/./; q'`/stamp-h$_am_stamp_count
15969 ;;
15970
15971 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15972$as_echo "$as_me: executing $ac_file commands" >&6;}
15973 ;;
15974 esac
15975
15976
15977 case $ac_file$ac_mode in
15978 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15979 # Older Autoconf quotes --file arguments for eval, but not when files
15980 # are listed without --file. Let's play safe and only enable the eval
15981 # if we detect the quoting.
15982 case $CONFIG_FILES in
15983 *\'*) eval set x "$CONFIG_FILES" ;;
15984 *) set x $CONFIG_FILES ;;
15985 esac
15986 shift
15987 for mf
15988 do
15989 # Strip MF so we end up with the name of the file.
15990 mf=`echo "$mf" | sed -e 's/:.*$//'`
15991 # Check whether this is an Automake generated Makefile or not.
15992 # We used to match only the files named 'Makefile.in', but
15993 # some people rename them; so instead we look at the file content.
15994 # Grep'ing the first line is not enough: some people post-process
15995 # each Makefile.in and add a new line on top of each file to say so.
15996 # Grep'ing the whole file is not good either: AIX grep has a line
15997 # limit of 2048, but all sed's we know have understand at least 4000.
15998 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15999 dirpart=`$as_dirname -- "$mf" ||
16000$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16001 X"$mf" : 'X\(//\)[^/]' \| \
16002 X"$mf" : 'X\(//\)$' \| \
16003 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16004$as_echo X"$mf" |
16005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16006 s//\1/
16007 q
16008 }
16009 /^X\(\/\/\)[^/].*/{
16010 s//\1/
16011 q
16012 }
16013 /^X\(\/\/\)$/{
16014 s//\1/
16015 q
16016 }
16017 /^X\(\/\).*/{
16018 s//\1/
16019 q
16020 }
16021 s/.*/./; q'`
16022 else
16023 continue
16024 fi
16025 # Extract the definition of DEPDIR, am__include, and am__quote
16026 # from the Makefile without running 'make'.
16027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16028 test -z "$DEPDIR" && continue
16029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16030 test -z "$am__include" && continue
16031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16032 # Find all dependency output files, they are included files with
16033 # $(DEPDIR) in their names. We invoke sed twice because it is the
16034 # simplest approach to changing $(DEPDIR) to its actual value in the
16035 # expansion.
16036 for file in `sed -n "
16037 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16038 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16039 # Make sure the directory exists.
16040 test -f "$dirpart/$file" && continue
16041 fdir=`$as_dirname -- "$file" ||
16042$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$file" : 'X\(//\)[^/]' \| \
16044 X"$file" : 'X\(//\)$' \| \
16045 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16046$as_echo X"$file" |
16047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 s//\1/
16049 q
16050 }
16051 /^X\(\/\/\)[^/].*/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\).*/{
16060 s//\1/
16061 q
16062 }
16063 s/.*/./; q'`
16064 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16065 # echo "creating $dirpart/$file"
16066 echo '# dummy' > "$dirpart/$file"
16067 done
16068 done
16069}
16070 ;;
16071 "libtool":C)
16072
16073 # See if we are running on zsh, and set the options which allow our
16074 # commands through without removal of \ escapes.
16075 if test -n "${ZSH_VERSION+set}" ; then
16076 setopt NO_GLOB_SUBST
16077 fi
16078
16079 cfgfile="${ofile}T"
16080 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16081 $RM "$cfgfile"
16082
16083 cat <<_LT_EOF >> "$cfgfile"
16084#! $SHELL
16085
16086# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16087# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16089# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16090#
16091# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16092# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16093# Written by Gordon Matzigkeit, 1996
16094#
16095# This file is part of GNU Libtool.
16096#
16097# GNU Libtool is free software; you can redistribute it and/or
16098# modify it under the terms of the GNU General Public License as
16099# published by the Free Software Foundation; either version 2 of
16100# the License, or (at your option) any later version.
16101#
16102# As a special exception to the GNU General Public License,
16103# if you distribute this file as part of a program or library that
16104# is built using GNU Libtool, you may include this file under the
16105# same distribution terms that you use for the rest of that program.
16106#
16107# GNU Libtool is distributed in the hope that it will be useful,
16108# but WITHOUT ANY WARRANTY; without even the implied warranty of
16109# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16110# GNU General Public License for more details.
16111#
16112# You should have received a copy of the GNU General Public License
16113# along with GNU Libtool; see the file COPYING. If not, a copy
16114# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16115# obtained by writing to the Free Software Foundation, Inc.,
16116# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16117
16118
16119# The names of the tagged configurations supported by this script.
16120available_tags=""
16121
16122# ### BEGIN LIBTOOL CONFIG
16123
16124# Whether or not to build shared libraries.
16125build_libtool_libs=$enable_shared
16126
16127# Which release of libtool.m4 was used?
16128macro_version=$macro_version
16129macro_revision=$macro_revision
16130
16131# Whether or not to build static libraries.
16132build_old_libs=$enable_static
16133
16134# What type of objects to build.
16135pic_mode=$pic_mode
16136
16137# Whether or not to optimize for fast installation.
16138fast_install=$enable_fast_install
16139
16140# Shell to use when invoking shell scripts.
16141SHELL=$lt_SHELL
16142
16143# An echo program that protects backslashes.
16144ECHO=$lt_ECHO
16145
16146# The host system.
16147host_alias=$host_alias
16148host=$host
16149host_os=$host_os
16150
16151# The build system.
16152build_alias=$build_alias
16153build=$build
16154build_os=$build_os
16155
16156# A sed program that does not truncate output.
16157SED=$lt_SED
16158
16159# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16160Xsed="\$SED -e 1s/^X//"
16161
16162# A grep program that handles long lines.
16163GREP=$lt_GREP
16164
16165# An ERE matcher.
16166EGREP=$lt_EGREP
16167
16168# A literal string matcher.
16169FGREP=$lt_FGREP
16170
16171# A BSD- or MS-compatible name lister.
16172NM=$lt_NM
16173
16174# Whether we need soft or hard links.
16175LN_S=$lt_LN_S
16176
16177# What is the maximum length of a command?
16178max_cmd_len=$max_cmd_len
16179
16180# Object file suffix (normally "o").
16181objext=$ac_objext
16182
16183# Executable file suffix (normally "").
16184exeext=$exeext
16185
16186# whether the shell understands "unset".
16187lt_unset=$lt_unset
16188
16189# turn spaces into newlines.
16190SP2NL=$lt_lt_SP2NL
16191
16192# turn newlines into spaces.
16193NL2SP=$lt_lt_NL2SP
16194
16195# An object symbol dumper.
16196OBJDUMP=$lt_OBJDUMP
16197
16198# Method to check whether dependent libraries are shared objects.
16199deplibs_check_method=$lt_deplibs_check_method
16200
16201# Command to use when deplibs_check_method == "file_magic".
16202file_magic_cmd=$lt_file_magic_cmd
16203
16204# The archiver.
16205AR=$lt_AR
16206AR_FLAGS=$lt_AR_FLAGS
16207
16208# A symbol stripping program.
16209STRIP=$lt_STRIP
16210
16211# Commands used to install an old-style archive.
16212RANLIB=$lt_RANLIB
16213old_postinstall_cmds=$lt_old_postinstall_cmds
16214old_postuninstall_cmds=$lt_old_postuninstall_cmds
16215
16216# Whether to use a lock for old archive extraction.
16217lock_old_archive_extraction=$lock_old_archive_extraction
16218
16219# A C compiler.
16220LTCC=$lt_CC
16221
16222# LTCC compiler flags.
16223LTCFLAGS=$lt_CFLAGS
16224
16225# Take the output of nm and produce a listing of raw symbols and C names.
16226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16227
16228# Transform the output of nm in a proper C declaration.
16229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16230
16231# Transform the output of nm in a C name address pair.
16232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16233
16234# Transform the output of nm in a C name address pair when lib prefix is needed.
16235global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16236
16237# The name of the directory that contains temporary libtool files.
16238objdir=$objdir
16239
16240# Used to examine libraries when file_magic_cmd begins with "file".
16241MAGIC_CMD=$MAGIC_CMD
16242
16243# Must we lock files when doing compilation?
16244need_locks=$lt_need_locks
16245
16246# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16247DSYMUTIL=$lt_DSYMUTIL
16248
16249# Tool to change global to local symbols on Mac OS X.
16250NMEDIT=$lt_NMEDIT
16251
16252# Tool to manipulate fat objects and archives on Mac OS X.
16253LIPO=$lt_LIPO
16254
16255# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16256OTOOL=$lt_OTOOL
16257
16258# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16259OTOOL64=$lt_OTOOL64
16260
16261# Old archive suffix (normally "a").
16262libext=$libext
16263
16264# Shared library suffix (normally ".so").
16265shrext_cmds=$lt_shrext_cmds
16266
16267# The commands to extract the exported symbol list from a shared archive.
16268extract_expsyms_cmds=$lt_extract_expsyms_cmds
16269
16270# Variables whose values should be saved in libtool wrapper scripts and
16271# restored at link time.
16272variables_saved_for_relink=$lt_variables_saved_for_relink
16273
16274# Do we need the "lib" prefix for modules?
16275need_lib_prefix=$need_lib_prefix
16276
16277# Do we need a version for libraries?
16278need_version=$need_version
16279
16280# Library versioning type.
16281version_type=$version_type
16282
16283# Shared library runtime path variable.
16284runpath_var=$runpath_var
16285
16286# Shared library path variable.
16287shlibpath_var=$shlibpath_var
16288
16289# Is shlibpath searched before the hard-coded library search path?
16290shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16291
16292# Format of library name prefix.
16293libname_spec=$lt_libname_spec
16294
16295# List of archive names. First name is the real one, the rest are links.
16296# The last name is the one that the linker finds with -lNAME
16297library_names_spec=$lt_library_names_spec
16298
16299# The coded name of the library, if different from the real name.
16300soname_spec=$lt_soname_spec
16301
16302# Permission mode override for installation of shared libraries.
16303install_override_mode=$lt_install_override_mode
16304
16305# Command to use after installation of a shared archive.
16306postinstall_cmds=$lt_postinstall_cmds
16307
16308# Command to use after uninstallation of a shared archive.
16309postuninstall_cmds=$lt_postuninstall_cmds
16310
16311# Commands used to finish a libtool library installation in a directory.
16312finish_cmds=$lt_finish_cmds
16313
16314# As "finish_cmds", except a single script fragment to be evaled but
16315# not shown.
16316finish_eval=$lt_finish_eval
16317
16318# Whether we should hardcode library paths into libraries.
16319hardcode_into_libs=$hardcode_into_libs
16320
16321# Compile-time system search path for libraries.
16322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16323
16324# Run-time system search path for libraries.
16325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16326
16327# Whether dlopen is supported.
16328dlopen_support=$enable_dlopen
16329
16330# Whether dlopen of programs is supported.
16331dlopen_self=$enable_dlopen_self
16332
16333# Whether dlopen of statically linked programs is supported.
16334dlopen_self_static=$enable_dlopen_self_static
16335
16336# Commands to strip libraries.
16337old_striplib=$lt_old_striplib
16338striplib=$lt_striplib
16339
16340
16341# The linker used to build libraries.
16342LD=$lt_LD
16343
16344# How to create reloadable object files.
16345reload_flag=$lt_reload_flag
16346reload_cmds=$lt_reload_cmds
16347
16348# Commands used to build an old-style archive.
16349old_archive_cmds=$lt_old_archive_cmds
16350
16351# A language specific compiler.
16352CC=$lt_compiler
16353
16354# Is the compiler the GNU compiler?
16355with_gcc=$GCC
16356
16357# Compiler flag to turn off builtin functions.
16358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16359
16360# How to pass a linker flag through the compiler.
16361wl=$lt_lt_prog_compiler_wl
16362
16363# Additional compiler flags for building library objects.
16364pic_flag=$lt_lt_prog_compiler_pic
16365
16366# Compiler flag to prevent dynamic linking.
16367link_static_flag=$lt_lt_prog_compiler_static
16368
16369# Does compiler simultaneously support -c and -o options?
16370compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16371
16372# Whether or not to add -lc for building shared libraries.
16373build_libtool_need_lc=$archive_cmds_need_lc
16374
16375# Whether or not to disallow shared libs when runtime libs are static.
16376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16377
16378# Compiler flag to allow reflexive dlopens.
16379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16380
16381# Compiler flag to generate shared objects directly from archives.
16382whole_archive_flag_spec=$lt_whole_archive_flag_spec
16383
16384# Whether the compiler copes with passing no objects directly.
16385compiler_needs_object=$lt_compiler_needs_object
16386
16387# Create an old-style archive from a shared archive.
16388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16389
16390# Create a temporary old-style archive to link instead of a shared archive.
16391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16392
16393# Commands used to build a shared archive.
16394archive_cmds=$lt_archive_cmds
16395archive_expsym_cmds=$lt_archive_expsym_cmds
16396
16397# Commands used to build a loadable module if different from building
16398# a shared archive.
16399module_cmds=$lt_module_cmds
16400module_expsym_cmds=$lt_module_expsym_cmds
16401
16402# Whether we are building with GNU ld or not.
16403with_gnu_ld=$lt_with_gnu_ld
16404
16405# Flag that allows shared libraries with undefined symbols to be built.
16406allow_undefined_flag=$lt_allow_undefined_flag
16407
16408# Flag that enforces no undefined symbols.
16409no_undefined_flag=$lt_no_undefined_flag
16410
16411# Flag to hardcode \$libdir into a binary during linking.
16412# This must work even if \$libdir does not exist
16413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16414
16415# If ld is used when linking, flag to hardcode \$libdir into a binary
16416# during linking. This must work even if \$libdir does not exist.
16417hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16418
16419# Whether we need a single "-rpath" flag with a separated argument.
16420hardcode_libdir_separator=$lt_hardcode_libdir_separator
16421
16422# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16423# DIR into the resulting binary.
16424hardcode_direct=$hardcode_direct
16425
16426# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16427# DIR into the resulting binary and the resulting library dependency is
16428# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16429# library is relocated.
16430hardcode_direct_absolute=$hardcode_direct_absolute
16431
16432# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16433# into the resulting binary.
16434hardcode_minus_L=$hardcode_minus_L
16435
16436# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16437# into the resulting binary.
16438hardcode_shlibpath_var=$hardcode_shlibpath_var
16439
16440# Set to "yes" if building a shared library automatically hardcodes DIR
16441# into the library and all subsequent libraries and executables linked
16442# against it.
16443hardcode_automatic=$hardcode_automatic
16444
16445# Set to yes if linker adds runtime paths of dependent libraries
16446# to runtime path list.
16447inherit_rpath=$inherit_rpath
16448
16449# Whether libtool must link a program against all its dependency libraries.
16450link_all_deplibs=$link_all_deplibs
16451
16452# Fix the shell variable \$srcfile for the compiler.
16453fix_srcfile_path=$lt_fix_srcfile_path
16454
16455# Set to "yes" if exported symbols are required.
16456always_export_symbols=$always_export_symbols
16457
16458# The commands to list exported symbols.
16459export_symbols_cmds=$lt_export_symbols_cmds
16460
16461# Symbols that should not be listed in the preloaded symbols.
16462exclude_expsyms=$lt_exclude_expsyms
16463
16464# Symbols that must always be exported.
16465include_expsyms=$lt_include_expsyms
16466
16467# Commands necessary for linking programs (against libraries) with templates.
16468prelink_cmds=$lt_prelink_cmds
16469
16470# Specify filename containing input files.
16471file_list_spec=$lt_file_list_spec
16472
16473# How to hardcode a shared library path into an executable.
16474hardcode_action=$hardcode_action
16475
16476# ### END LIBTOOL CONFIG
16477
16478_LT_EOF
16479
16480 case $host_os in
16481 aix3*)
16482 cat <<\_LT_EOF >> "$cfgfile"
16483# AIX sometimes has problems with the GCC collect2 program. For some
16484# reason, if we set the COLLECT_NAMES environment variable, the problems
16485# vanish in a puff of smoke.
16486if test "X${COLLECT_NAMES+set}" != Xset; then
16487 COLLECT_NAMES=
16488 export COLLECT_NAMES
16489fi
16490_LT_EOF
16491 ;;
16492 esac
16493
16494
16495ltmain="$ac_aux_dir/ltmain.sh"
16496
16497
16498 # We use sed instead of cat because bash on DJGPP gets confused if
16499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16500 # text mode, it properly converts lines to CR/LF. This bash problem
16501 # is reportedly fixed, but why not run on old versions too?
16502 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16503 || (rm -f "$cfgfile"; exit 1)
16504
16505 case $xsi_shell in
16506 yes)
16507 cat << \_LT_EOF >> "$cfgfile"
16508
16509# func_dirname file append nondir_replacement
16510# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16511# otherwise set result to NONDIR_REPLACEMENT.
16512func_dirname ()
16513{
16514 case ${1} in
16515 */*) func_dirname_result="${1%/*}${2}" ;;
16516 * ) func_dirname_result="${3}" ;;
16517 esac
16518}
16519
16520# func_basename file
16521func_basename ()
16522{
16523 func_basename_result="${1##*/}"
16524}
16525
16526# func_dirname_and_basename file append nondir_replacement
16527# perform func_basename and func_dirname in a single function
16528# call:
16529# dirname: Compute the dirname of FILE. If nonempty,
16530# add APPEND to the result, otherwise set result
16531# to NONDIR_REPLACEMENT.
16532# value returned in "$func_dirname_result"
16533# basename: Compute filename of FILE.
16534# value retuned in "$func_basename_result"
16535# Implementation must be kept synchronized with func_dirname
16536# and func_basename. For efficiency, we do not delegate to
16537# those functions but instead duplicate the functionality here.
16538func_dirname_and_basename ()
16539{
16540 case ${1} in
16541 */*) func_dirname_result="${1%/*}${2}" ;;
16542 * ) func_dirname_result="${3}" ;;
16543 esac
16544 func_basename_result="${1##*/}"
16545}
16546
16547# func_stripname prefix suffix name
16548# strip PREFIX and SUFFIX off of NAME.
16549# PREFIX and SUFFIX must not contain globbing or regex special
16550# characters, hashes, percent signs, but SUFFIX may contain a leading
16551# dot (in which case that matches only a dot).
16552func_stripname ()
16553{
16554 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16555 # positional parameters, so assign one to ordinary parameter first.
16556 func_stripname_result=${3}
16557 func_stripname_result=${func_stripname_result#"${1}"}
16558 func_stripname_result=${func_stripname_result%"${2}"}
16559}
16560
16561# func_opt_split
16562func_opt_split ()
16563{
16564 func_opt_split_opt=${1%%=*}
16565 func_opt_split_arg=${1#*=}
16566}
16567
16568# func_lo2o object
16569func_lo2o ()
16570{
16571 case ${1} in
16572 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16573 *) func_lo2o_result=${1} ;;
16574 esac
16575}
16576
16577# func_xform libobj-or-source
16578func_xform ()
16579{
16580 func_xform_result=${1%.*}.lo
16581}
16582
16583# func_arith arithmetic-term...
16584func_arith ()
16585{
16586 func_arith_result=$(( $* ))
16587}
16588
16589# func_len string
16590# STRING may not start with a hyphen.
16591func_len ()
16592{
16593 func_len_result=${#1}
16594}
16595
16596_LT_EOF
16597 ;;
16598 *) # Bourne compatible functions.
16599 cat << \_LT_EOF >> "$cfgfile"
16600
16601# func_dirname file append nondir_replacement
16602# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16603# otherwise set result to NONDIR_REPLACEMENT.
16604func_dirname ()
16605{
16606 # Extract subdirectory from the argument.
16607 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16608 if test "X$func_dirname_result" = "X${1}"; then
16609 func_dirname_result="${3}"
16610 else
16611 func_dirname_result="$func_dirname_result${2}"
16612 fi
16613}
16614
16615# func_basename file
16616func_basename ()
16617{
16618 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16619}
16620
16621
16622# func_stripname prefix suffix name
16623# strip PREFIX and SUFFIX off of NAME.
16624# PREFIX and SUFFIX must not contain globbing or regex special
16625# characters, hashes, percent signs, but SUFFIX may contain a leading
16626# dot (in which case that matches only a dot).
16627# func_strip_suffix prefix name
16628func_stripname ()
16629{
16630 case ${2} in
16631 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16632 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16633 esac
16634}
16635
16636# sed scripts:
16637my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16638my_sed_long_arg='1s/^-[^=]*=//'
16639
16640# func_opt_split
16641func_opt_split ()
16642{
16643 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16644 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16645}
16646
16647# func_lo2o object
16648func_lo2o ()
16649{
16650 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16651}
16652
16653# func_xform libobj-or-source
16654func_xform ()
16655{
16656 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16657}
16658
16659# func_arith arithmetic-term...
16660func_arith ()
16661{
16662 func_arith_result=`expr "$@"`
16663}
16664
16665# func_len string
16666# STRING may not start with a hyphen.
16667func_len ()
16668{
16669 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16670}
16671
16672_LT_EOF
16673esac
16674
16675case $lt_shell_append in
16676 yes)
16677 cat << \_LT_EOF >> "$cfgfile"
16678
16679# func_append var value
16680# Append VALUE to the end of shell variable VAR.
16681func_append ()
16682{
16683 eval "$1+=\$2"
16684}
16685_LT_EOF
16686 ;;
16687 *)
16688 cat << \_LT_EOF >> "$cfgfile"
16689
16690# func_append var value
16691# Append VALUE to the end of shell variable VAR.
16692func_append ()
16693{
16694 eval "$1=\$$1\$2"
16695}
16696
16697_LT_EOF
16698 ;;
16699 esac
16700
16701
16702 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16703 || (rm -f "$cfgfile"; exit 1)
16704
16705 mv -f "$cfgfile" "$ofile" ||
16706 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16707 chmod +x "$ofile"
16708
16709 ;;
16710 "default-1":C)
16711 for ac_file in $CONFIG_FILES; do
16712 # Support "outfile[:infile[:infile...]]"
16713 case "$ac_file" in
16714 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16715 esac
16716 # PO directories have a Makefile.in generated from Makefile.in.in.
16717 case "$ac_file" in */Makefile.in)
16718 # Adjust a relative srcdir.
16719 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16720 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16721 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16722 # In autoconf-2.13 it is called $ac_given_srcdir.
16723 # In autoconf-2.50 it is called $srcdir.
16724 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16725 case "$ac_given_srcdir" in
16726 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16727 /*) top_srcdir="$ac_given_srcdir" ;;
16728 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16729 esac
16730 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16731 rm -f "$ac_dir/POTFILES"
16732 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16733 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16734 POMAKEFILEDEPS="POTFILES.in"
16735 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16736 # on $ac_dir but don't depend on user-specified configuration
16737 # parameters.
16738 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16739 # The LINGUAS file contains the set of available languages.
16740 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16741 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16742 fi
16743 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16744 # Hide the ALL_LINGUAS assigment from automake.
16745 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16746 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16747 else
16748 # The set of available languages was given in configure.ac.
16749 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16750 fi
16751 case "$ac_given_srcdir" in
16752 .) srcdirpre= ;;
16753 *) srcdirpre='$(srcdir)/' ;;
16754 esac
16755 POFILES=
16756 GMOFILES=
16757 UPDATEPOFILES=
16758 DUMMYPOFILES=
16759 for lang in $ALL_LINGUAS; do
16760 POFILES="$POFILES $srcdirpre$lang.po"
16761 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16762 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16763 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16764 done
16765 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16766 # environment variable.
16767 INST_LINGUAS=
16768 if test -n "$ALL_LINGUAS"; then
16769 for presentlang in $ALL_LINGUAS; do
16770 useit=no
16771 if test "%UNSET%" != "$LINGUAS"; then
16772 desiredlanguages="$LINGUAS"
16773 else
16774 desiredlanguages="$ALL_LINGUAS"
16775 fi
16776 for desiredlang in $desiredlanguages; do
16777 # Use the presentlang catalog if desiredlang is
16778 # a. equal to presentlang, or
16779 # b. a variant of presentlang (because in this case,
16780 # presentlang can be used as a fallback for messages
16781 # which are not translated in the desiredlang catalog).
16782 case "$desiredlang" in
16783 "$presentlang"*) useit=yes;;
16784 esac
16785 done
16786 if test $useit = yes; then
16787 INST_LINGUAS="$INST_LINGUAS $presentlang"
16788 fi
16789 done
16790 fi
16791 CATALOGS=
16792 if test -n "$INST_LINGUAS"; then
16793 for lang in $INST_LINGUAS; do
16794 CATALOGS="$CATALOGS $lang.gmo"
16795 done
16796 fi
16797 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16798 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16799 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16800 if test -f "$f"; then
16801 case "$f" in
16802 *.orig | *.bak | *~) ;;
16803 *) cat "$f" >> "$ac_dir/Makefile" ;;
16804 esac
16805 fi
16806 done
16807 fi
16808 ;;
16809 esac
16810 done ;;
16811 "default-2":C)
16812 for ac_file in $CONFIG_FILES; do
16813 # Support "outfile[:infile[:infile...]]"
16814 case "$ac_file" in
16815 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16816 esac
16817 # PO directories have a Makefile.in generated from Makefile.in.in.
16818 case "$ac_file" in */Makefile.in)
16819 # Adjust a relative srcdir.
16820 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16821 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16822 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16823 # In autoconf-2.13 it is called $ac_given_srcdir.
16824 # In autoconf-2.50 it is called $srcdir.
16825 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16826 case "$ac_given_srcdir" in
16827 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16828 /*) top_srcdir="$ac_given_srcdir" ;;
16829 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16830 esac
16831 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16832 rm -f "$ac_dir/POTFILES"
16833 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16834 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16835 POMAKEFILEDEPS="POTFILES.in"
16836 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16837 # on $ac_dir but don't depend on user-specified configuration
16838 # parameters.
16839 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16840 # The LINGUAS file contains the set of available languages.
16841 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16842 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16843 fi
16844 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16845 # Hide the ALL_LINGUAS assigment from automake.
16846 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16847 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16848 else
16849 # The set of available languages was given in configure.ac.
16850 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16851 fi
16852 case "$ac_given_srcdir" in
16853 .) srcdirpre= ;;
16854 *) srcdirpre='$(srcdir)/' ;;
16855 esac
16856 POFILES=
16857 GMOFILES=
16858 UPDATEPOFILES=
16859 DUMMYPOFILES=
16860 for lang in $ALL_LINGUAS; do
16861 POFILES="$POFILES $srcdirpre$lang.po"
16862 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16863 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16864 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16865 done
16866 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16867 # environment variable.
16868 INST_LINGUAS=
16869 if test -n "$ALL_LINGUAS"; then
16870 for presentlang in $ALL_LINGUAS; do
16871 useit=no
16872 if test "%UNSET%" != "$LINGUAS"; then
16873 desiredlanguages="$LINGUAS"
16874 else
16875 desiredlanguages="$ALL_LINGUAS"
16876 fi
16877 for desiredlang in $desiredlanguages; do
16878 # Use the presentlang catalog if desiredlang is
16879 # a. equal to presentlang, or
16880 # b. a variant of presentlang (because in this case,
16881 # presentlang can be used as a fallback for messages
16882 # which are not translated in the desiredlang catalog).
16883 case "$desiredlang" in
16884 "$presentlang"*) useit=yes;;
16885 esac
16886 done
16887 if test $useit = yes; then
16888 INST_LINGUAS="$INST_LINGUAS $presentlang"
16889 fi
16890 done
16891 fi
16892 CATALOGS=
16893 if test -n "$INST_LINGUAS"; then
16894 for lang in $INST_LINGUAS; do
16895 CATALOGS="$CATALOGS $lang.gmo"
16896 done
16897 fi
16898 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16899 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16900 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16901 if test -f "$f"; then
16902 case "$f" in
16903 *.orig | *.bak | *~) ;;
16904 *) cat "$f" >> "$ac_dir/Makefile" ;;
16905 esac
16906 fi
16907 done
16908 fi
16909 ;;
16910 esac
16911 done ;;
16912
16913 esac
16914done # for ac_tag
16915
16916
16917as_fn_exit 0
16918_ACEOF
16919ac_clean_files=$ac_clean_files_save
16920
16921test $ac_write_fail = 0 ||
16922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16923
16924
16925# configure is writing to config.log, and then calls config.status.
16926# config.status does its own redirection, appending to config.log.
16927# Unfortunately, on DOS this fails, as config.log is still kept open
16928# by configure, so config.status won't be able to write to it; its
16929# output is simply discarded. So we exec the FD to /dev/null,
16930# effectively closing config.log, so it can be properly (re)opened and
16931# appended to by config.status. When coming back to configure, we
16932# need to make the FD available again.
16933if test "$no_create" != yes; then
16934 ac_cs_success=:
16935 ac_config_status_args=
16936 test "$silent" = yes &&
16937 ac_config_status_args="$ac_config_status_args --quiet"
16938 exec 5>/dev/null
16939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16940 exec 5>>config.log
16941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16942 # would make configure fail if this is the last instruction.
16943 $ac_cs_success || as_fn_exit 1
16944fi
16945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16948fi
16949
16950
16951
16952touch config.status.tmp
16953if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
16954 sed '/as_fn_exit 0/i \
16955sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
16956touch --reference=Makefile Makefile.tmp \
16957mv Makefile.tmp Makefile \
16958' config.status > config.status.tmp
16959 touch --reference=config.status config.status.tmp
16960 mv config.status.tmp config.status
16961 chmod +x config.status
16962 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
16963 touch --reference=Makefile Makefile.tmp
16964 mv Makefile.tmp Makefile
16965else
16966 rm -f config.status.tmp
16967fi