microsoft/onnxruntime-extensions

Public

mirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
zhanxi/debug_android_pack

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

cmake/externals/farmhash/configure

17076lines · modecode

1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for FarmHash 1.1.0.
4#
5# Report bugs to <farmhash-discuss@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: farmhash-discuss@googlegroups.com about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='FarmHash'
592PACKAGE_TARNAME='farmhash'
593PACKAGE_VERSION='1.1.0'
594PACKAGE_STRING='FarmHash 1.1.0'
595PACKAGE_BUGREPORT='farmhash-discuss@googlegroups.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_unique_file="src/farmhash.h"
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639CXXCPP
640am__fastdepCXX_FALSE
641am__fastdepCXX_TRUE
642CXXDEPMODE
643ac_ct_CXX
644CXXFLAGS
645CXX
646OPTIONAL_BUILTIN_BSWAP_FALSE
647OPTIONAL_BUILTIN_BSWAP_TRUE
648OPTIONAL_BUILTIN_EXPECT_FALSE
649OPTIONAL_BUILTIN_EXPECT_TRUE
650CPP
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696LIBTOOL
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_silent_rules
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770enable_dependency_tracking
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_optional_builtin_expect
775enable_optional_builtin_bswap
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP
786CXX
787CXXFLAGS
788CCC
789CXXCPP'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330\`configure' configures FarmHash 1.1.0 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/farmhash]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of FarmHash 1.1.0:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 "Assume __builtin_expect() may or may not be available. The default is to assume it is available."
1420
1421 "Assume __builtin_bswap32() and similar may or may not be available. The default is to assume they are available."
1422
1423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-pic try to use only PIC/non-PIC objects [default=use
1428 both]
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1432
1433Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CXXCPP C++ preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
1449Report bugs to <farmhash-discuss@googlegroups.com>.
1450_ACEOF
1451ac_status=$?
1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1477
1478case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491esac
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507fi
1508
1509test -n "$ac_init_help" && exit $ac_status
1510if $ac_init_version; then
1511 cat <<\_ACEOF
1512FarmHash configure 1.1.0
1513generated by GNU Autoconf 2.69
1514
1515Copyright (C) 2012 Free Software Foundation, Inc.
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
1519 exit
1520fi
1521
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1525
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1530{
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_compile
1563
1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 test -x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_link
1609
1610# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists and can be compiled using the include files in
1613# INCLUDES, setting the cache variable VAR accordingly.
1614ac_fn_c_check_header_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h. */
1624$4
1625#include <$2>
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629else
1630 eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633fi
1634eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639} # ac_fn_c_check_header_compile
1640
1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_cpp
1677
1678# ac_fn_c_try_run LINENO
1679# ----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681# that executables *can* be run.
1682ac_fn_c_try_run ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_run
1719
1720# ac_fn_c_check_func LINENO FUNC VAR
1721# ----------------------------------
1722# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723ac_fn_c_check_func ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735#define $2 innocuous_$2
1736
1737/* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1741
1742#ifdef __STDC__
1743# include <limits.h>
1744#else
1745# include <assert.h>
1746#endif
1747
1748#undef $2
1749
1750/* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753#ifdef __cplusplus
1754extern "C"
1755#endif
1756char $2 ();
1757/* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760#if defined __stub_$2 || defined __stub___$2
1761choke me
1762#endif
1763
1764int
1765main ()
1766{
1767return $2 ();
1768 ;
1769 return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774else
1775 eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_func
1786
1787# ac_fn_cxx_try_compile LINENO
1788# ----------------------------
1789# Try to compile conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_cxx_try_compile ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814else
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819fi
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823} # ac_fn_cxx_try_compile
1824
1825# ac_fn_cxx_try_cpp LINENO
1826# ------------------------
1827# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_cxx_try_cpp ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } > conftest.i && {
1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860} # ac_fn_cxx_try_cpp
1861
1862# ac_fn_cxx_try_link LINENO
1863# -------------------------
1864# Try to link conftest.$ac_ext, and return whether this succeeded.
1865ac_fn_cxx_try_link ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 test -x conftest$ac_exeext
1890 }; then :
1891 ac_retval=0
1892else
1893 $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906} # ac_fn_cxx_try_link
1907
1908# ac_fn_cxx_try_run LINENO
1909# ------------------------
1910# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911# that executables *can* be run.
1912ac_fn_cxx_try_run ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1916case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919esac
1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921$as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1923 ac_status=$?
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1933 ac_status=$?
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }; then :
1936 ac_retval=0
1937else
1938 $as_echo "$as_me: program exited with status $ac_status" >&5
1939 $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=$ac_status
1943fi
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1947
1948} # ac_fn_cxx_try_run
1949
1950# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1951# ---------------------------------------------------------
1952# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953# the include files in INCLUDES and setting the cache variable VAR
1954# accordingly.
1955ac_fn_cxx_check_header_mongrel ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if eval \${$3+:} false; then :
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
1961if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967else
1968 # Is the header compilable?
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970$as_echo_n "checking $2 usability... " >&6; }
1971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974#include <$2>
1975_ACEOF
1976if ac_fn_cxx_try_compile "$LINENO"; then :
1977 ac_header_compiler=yes
1978else
1979 ac_header_compiler=no
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983$as_echo "$ac_header_compiler" >&6; }
1984
1985# Is the header present?
1986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987$as_echo_n "checking $2 presence... " >&6; }
1988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990#include <$2>
1991_ACEOF
1992if ac_fn_cxx_try_cpp "$LINENO"; then :
1993 ac_header_preproc=yes
1994else
1995 ac_header_preproc=no
1996fi
1997rm -f conftest.err conftest.i conftest.$ac_ext
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999$as_echo "$ac_header_preproc" >&6; }
2000
2001# So? What about this header?
2002case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2003 yes:no: )
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ;;
2009 no:yes:* )
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2013$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2017$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020( $as_echo "## ------------------------------------------------ ##
2021## Report this to farmhash-discuss@googlegroups.com ##
2022## ------------------------------------------------ ##"
2023 ) | sed "s/^/$as_me: WARNING: /" >&2
2024 ;;
2025esac
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027$as_echo_n "checking for $2... " >&6; }
2028if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030else
2031 eval "$3=\$ac_header_compiler"
2032fi
2033eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036fi
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_cxx_check_header_mongrel
2040cat >config.log <<_ACEOF
2041This file contains any messages produced by compilers while
2042running configure, to aid debugging if configure makes a mistake.
2043
2044It was created by FarmHash $as_me 1.1.0, which was
2045generated by GNU Autoconf 2.69. Invocation command line was
2046
2047 $ $0 $@
2048
2049_ACEOF
2050exec 5>>config.log
2051{
2052cat <<_ASUNAME
2053## --------- ##
2054## Platform. ##
2055## --------- ##
2056
2057hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062
2063/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2065
2066/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2067/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2068/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2070/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2071/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2072/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2073
2074_ASUNAME
2075
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 $as_echo "PATH: $as_dir"
2082 done
2083IFS=$as_save_IFS
2084
2085} >&5
2086
2087cat >&5 <<_ACEOF
2088
2089
2090## ----------- ##
2091## Core tests. ##
2092## ----------- ##
2093
2094_ACEOF
2095
2096
2097# Keep a trace of the command line.
2098# Strip out --no-create and --no-recursion so they do not pile up.
2099# Strip out --silent because we don't want to record it for future runs.
2100# Also quote any args containing shell meta-characters.
2101# Make two passes to allow for proper duplicate-argument suppression.
2102ac_configure_args=
2103ac_configure_args0=
2104ac_configure_args1=
2105ac_must_keep_next=false
2106for ac_pass in 1 2
2107do
2108 for ac_arg
2109 do
2110 case $ac_arg in
2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113 | -silent | --silent | --silen | --sile | --sil)
2114 continue ;;
2115 *\'*)
2116 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 esac
2118 case $ac_pass in
2119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 2)
2121 as_fn_append ac_configure_args1 " '$ac_arg'"
2122 if test $ac_must_keep_next = true; then
2123 ac_must_keep_next=false # Got value, back to normal.
2124 else
2125 case $ac_arg in
2126 *=* | --config-cache | -C | -disable-* | --disable-* \
2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129 | -with-* | --with-* | -without-* | --without-* | --x)
2130 case "$ac_configure_args0 " in
2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132 esac
2133 ;;
2134 -* ) ac_must_keep_next=true ;;
2135 esac
2136 fi
2137 as_fn_append ac_configure_args " '$ac_arg'"
2138 ;;
2139 esac
2140 done
2141done
2142{ ac_configure_args0=; unset ac_configure_args0;}
2143{ ac_configure_args1=; unset ac_configure_args1;}
2144
2145# When interrupted or exit'd, cleanup temporary files, and complete
2146# config.log. We remove comments because anyway the quotes in there
2147# would cause problems or look ugly.
2148# WARNING: Use '\'' to represent an apostrophe within the trap.
2149# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150trap 'exit_status=$?
2151 # Save into config.log some information that might help in debugging.
2152 {
2153 echo
2154
2155 $as_echo "## ---------------- ##
2156## Cache variables. ##
2157## ---------------- ##"
2158 echo
2159 # The following way of writing the cache mishandles newlines in values,
2160(
2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in #(
2164 *${as_nl}*)
2165 case $ac_var in #(
2166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2168 esac
2169 case $ac_var in #(
2170 _ | IFS | as_nl) ;; #(
2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172 *) { eval $ac_var=; unset $ac_var;} ;;
2173 esac ;;
2174 esac
2175 done
2176 (set) 2>&1 |
2177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178 *${as_nl}ac_space=\ *)
2179 sed -n \
2180 "s/'\''/'\''\\\\'\'''\''/g;
2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182 ;; #(
2183 *)
2184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185 ;;
2186 esac |
2187 sort
2188)
2189 echo
2190
2191 $as_echo "## ----------------- ##
2192## Output variables. ##
2193## ----------------- ##"
2194 echo
2195 for ac_var in $ac_subst_vars
2196 do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 esac
2201 $as_echo "$ac_var='\''$ac_val'\''"
2202 done | sort
2203 echo
2204
2205 if test -n "$ac_subst_files"; then
2206 $as_echo "## ------------------- ##
2207## File substitutions. ##
2208## ------------------- ##"
2209 echo
2210 for ac_var in $ac_subst_files
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219 fi
2220
2221 if test -s confdefs.h; then
2222 $as_echo "## ----------- ##
2223## confdefs.h. ##
2224## ----------- ##"
2225 echo
2226 cat confdefs.h
2227 echo
2228 fi
2229 test "$ac_signal" != 0 &&
2230 $as_echo "$as_me: caught signal $ac_signal"
2231 $as_echo "$as_me: exit $exit_status"
2232 } >&5
2233 rm -f core *.core core.conftest.* &&
2234 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235 exit $exit_status
2236' 0
2237for ac_signal in 1 2 13 15; do
2238 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2239done
2240ac_signal=0
2241
2242# confdefs.h avoids OS command line length limits that DEFS can exceed.
2243rm -f -r conftest* confdefs.h
2244
2245$as_echo "/* confdefs.h */" > confdefs.h
2246
2247# Predefined preprocessor variables.
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_NAME "$PACKAGE_NAME"
2251_ACEOF
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_VERSION "$PACKAGE_VERSION"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_STRING "$PACKAGE_STRING"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_URL "$PACKAGE_URL"
2271_ACEOF
2272
2273
2274# Let the site file select an alternate cache file if it wants to.
2275# Prefer an explicitly selected file to automatically selected ones.
2276ac_site_file1=NONE
2277ac_site_file2=NONE
2278if test -n "$CONFIG_SITE"; then
2279 # We do not want a PATH search for config.site.
2280 case $CONFIG_SITE in #((
2281 -*) ac_site_file1=./$CONFIG_SITE;;
2282 */*) ac_site_file1=$CONFIG_SITE;;
2283 *) ac_site_file1=./$CONFIG_SITE;;
2284 esac
2285elif test "x$prefix" != xNONE; then
2286 ac_site_file1=$prefix/share/config.site
2287 ac_site_file2=$prefix/etc/config.site
2288else
2289 ac_site_file1=$ac_default_prefix/share/config.site
2290 ac_site_file2=$ac_default_prefix/etc/config.site
2291fi
2292for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293do
2294 test "x$ac_site_file" = xNONE && continue
2295 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298 sed 's/^/| /' "$ac_site_file" >&5
2299 . "$ac_site_file" \
2300 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302as_fn_error $? "failed to load site script $ac_site_file
2303See \`config.log' for more details" "$LINENO" 5; }
2304 fi
2305done
2306
2307if test -r "$cache_file"; then
2308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312$as_echo "$as_me: loading cache $cache_file" >&6;}
2313 case $cache_file in
2314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
2316 esac
2317 fi
2318else
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320$as_echo "$as_me: creating cache $cache_file" >&6;}
2321 >$cache_file
2322fi
2323
2324# Check that the precious variables saved in the cache have kept the same
2325# value.
2326ac_cache_corrupted=false
2327for ac_var in $ac_precious_vars; do
2328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329 eval ac_new_set=\$ac_env_${ac_var}_set
2330 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331 eval ac_new_val=\$ac_env_${ac_var}_value
2332 case $ac_old_set,$ac_new_set in
2333 set,)
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2335$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2336 ac_cache_corrupted=: ;;
2337 ,set)
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2341 ,);;
2342 *)
2343 if test "x$ac_old_val" != "x$ac_new_val"; then
2344 # differences in whitespace do not lead to failure.
2345 ac_old_val_w=`echo x $ac_old_val`
2346 ac_new_val_w=`echo x $ac_new_val`
2347 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2349$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350 ac_cache_corrupted=:
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2353$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354 eval $ac_var=\$ac_old_val
2355 fi
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2357$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2359$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2360 fi;;
2361 esac
2362 # Pass precious variables to config.status.
2363 if test "$ac_new_set" = set; then
2364 case $ac_new_val in
2365 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 *) ac_arg=$ac_var=$ac_new_val ;;
2367 esac
2368 case " $ac_configure_args " in
2369 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2370 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371 esac
2372 fi
2373done
2374if $ac_cache_corrupted; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2378$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2379 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380fi
2381## -------------------- ##
2382## Main body of script. ##
2383## -------------------- ##
2384
2385ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391
2392ac_config_headers="$ac_config_headers config.h"
2393
2394am__api_version='1.14'
2395
2396ac_aux_dir=
2397for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2401 break
2402 elif test -f "$ac_dir/install.sh"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2405 break
2406 elif test -f "$ac_dir/shtool"; then
2407 ac_aux_dir=$ac_dir
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2409 break
2410 fi
2411done
2412if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414fi
2415
2416# These three variables are undocumented and unsupported,
2417# and are intended to be withdrawn in a future Autoconf release.
2418# They can cause serious problems if a builder's source tree is in a directory
2419# whose full name contains unusual characters.
2420ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2423
2424
2425# Find a good install program. We prefer a C program (faster),
2426# so one script is as good as another. But avoid the broken or
2427# incompatible versions:
2428# SysV /etc/install, /usr/sbin/install
2429# SunOS /usr/etc/install
2430# IRIX /sbin/install
2431# AIX /bin/install
2432# AmigaOS /C/install, which installs bootblocks on floppy discs
2433# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436# OS/2's system install, which has a completely different semantic
2437# ./install, which can be erroneously created by make from ./install.sh.
2438# Reject install programs that cannot install multiple files.
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440$as_echo_n "checking for a BSD-compatible install... " >&6; }
2441if test -z "$INSTALL"; then
2442if ${ac_cv_path_install+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455 /usr/ucb/* ) ;;
2456 *)
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2459 # by default.
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2466 :
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2470 :
2471 else
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2475 mkdir conftest.dir
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2480 then
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 break 3
2483 fi
2484 fi
2485 fi
2486 done
2487 done
2488 ;;
2489esac
2490
2491 done
2492IFS=$as_save_IFS
2493
2494rm -rf conftest.one conftest.two conftest.dir
2495
2496fi
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2499 else
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2505 fi
2506fi
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508$as_echo "$INSTALL" >&6; }
2509
2510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511# It thinks the first close brace ends the variable substitution.
2512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513
2514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515
2516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519$as_echo_n "checking whether build environment is sane... " >&6; }
2520# Reject unsafe characters in $srcdir or the absolute working directory
2521# name. Accept space and tab only in the latter.
2522am_lf='
2523'
2524case `pwd` in
2525 *[\\\"\#\$\&\'\`$am_lf]*)
2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2527esac
2528case $srcdir in
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2531esac
2532
2533# Do 'set' in a subshell so we don't clobber the current shell's
2534# arguments. Must try -L first in case configure is actually a
2535# symlink; some systems play weird games with the mod time of symlinks
2536# (eg FreeBSD returns the mod time of the symlink's containing
2537# directory).
2538if (
2539 am_has_slept=no
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2544 # -L didn't work.
2545 set X `ls -t "$srcdir/configure" conftest.file`
2546 fi
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2549
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2556 fi
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2558 break
2559 fi
2560 # Just in case.
2561 sleep 1
2562 am_has_slept=yes
2563 done
2564 test "$2" = conftest.file
2565 )
2566then
2567 # Ok.
2568 :
2569else
2570 as_fn_error $? "newly created file is older than distributed files!
2571Check your system clock" "$LINENO" 5
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574$as_echo "yes" >&6; }
2575# If we didn't sleep, we still need to ensure time stamps of config.status and
2576# generated files are strictly newer.
2577am_sleep_pid=
2578if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2579 ( sleep 1 ) &
2580 am_sleep_pid=$!
2581fi
2582
2583rm -f conftest.file
2584
2585test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587# Use a double $ so make ignores it.
2588test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590# Double any \ or $.
2591# By default was `s,x,x', remove it if useless.
2592ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2594
2595# expand $ac_aux_dir to an absolute path
2596am_aux_dir=`cd $ac_aux_dir && pwd`
2597
2598if test x"${MISSING+set}" != xset; then
2599 case $am_aux_dir in
2600 *\ * | *\ *)
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2602 *)
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2604 esac
2605fi
2606# Use eval to expand $SHELL
2607if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
2609else
2610 am_missing_run=
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2613fi
2614
2615if test x"${install_sh}" != xset; then
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2619 *)
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2621 esac
2622fi
2623
2624# Installed binaries are usually stripped using 'strip' when the user
2625# run "make install-strip". However 'strip' might not be the right
2626# tool to use in cross-compilation environments, therefore Automake
2627# will honor the 'STRIP' environment variable to overrule this program.
2628if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631set dummy ${ac_tool_prefix}strip; ac_word=$2
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
2634if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652 done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657STRIP=$ac_cv_prog_STRIP
2658if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660$as_echo "$STRIP" >&6; }
2661else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664fi
2665
2666
2667fi
2668if test -z "$ac_cv_prog_STRIP"; then
2669 ac_ct_STRIP=$STRIP
2670 # Extract the first word of "strip", so it can be a program name with args.
2671set dummy strip; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692 done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700$as_echo "$ac_ct_STRIP" >&6; }
2701else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706 if test "x$ac_ct_STRIP" = x; then
2707 STRIP=":"
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710yes:)
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715 STRIP=$ac_ct_STRIP
2716 fi
2717else
2718 STRIP="$ac_cv_prog_STRIP"
2719fi
2720
2721fi
2722INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2723
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2743 break 3;;
2744 esac
2745 done
2746 done
2747 done
2748IFS=$as_save_IFS
2749
2750fi
2751
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2755 else
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2761 fi
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764$as_echo "$MKDIR_P" >&6; }
2765
2766for ac_prog in gawk mawk nawk awk
2767do
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769set dummy $ac_prog; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_AWK+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795AWK=$ac_cv_prog_AWK
2796if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798$as_echo "$AWK" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805 test -n "$AWK" && break
2806done
2807
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2810set x ${MAKE-make}
2811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 cat >conftest.make <<\_ACEOF
2816SHELL = /bin/sh
2817all:
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2819_ACEOF
2820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821case `${MAKE-make} -f conftest.make 2>/dev/null` in
2822 *@@@%%%=?*=@@@%%%*)
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2824 *)
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2826esac
2827rm -f conftest.make
2828fi
2829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831$as_echo "yes" >&6; }
2832 SET_MAKE=
2833else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836 SET_MAKE="MAKE=${MAKE-make}"
2837fi
2838
2839rm -rf .tst 2>/dev/null
2840mkdir .tst 2>/dev/null
2841if test -d .tst; then
2842 am__leading_dot=.
2843else
2844 am__leading_dot=_
2845fi
2846rmdir .tst 2>/dev/null
2847
2848# Check whether --enable-silent-rules was given.
2849if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2851fi
2852
2853case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2857esac
2858am_make=${MAKE-make}
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863else
2864 if $as_echo 'TRUE=$(BAR$(V))
2865BAR0=false
2866BAR1=true
2867V=1
2868am__doit:
2869 @$(TRUE)
2870.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2872else
2873 am_cv_make_support_nested_variables=no
2874fi
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877$as_echo "$am_cv_make_support_nested_variables" >&6; }
2878if test $am_cv_make_support_nested_variables = yes; then
2879 AM_V='$(V)'
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881else
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2884fi
2885AM_BACKSLASH='\'
2886
2887if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894 fi
2895fi
2896
2897# test whether we have cygpath
2898if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904fi
2905
2906
2907# Define the identity of the package.
2908 PACKAGE='farmhash'
2909 VERSION='1.1.0'
2910
2911
2912# Some tools Automake needs.
2913
2914ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2915
2916
2917AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2918
2919
2920AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2921
2922
2923AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2924
2925
2926MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2927
2928# For better backward compatibility. To be removed once Automake 1.9.x
2929# dies out for good. For more background, see:
2930# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2931# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2932mkdir_p='$(MKDIR_P)'
2933
2934# We need awk for the "check" target. The system "awk" is bad on
2935# some platforms.
2936# Always define AMTAR for backward compatibility. Yes, it's still used
2937# in the wild :-( We should find a proper way to deprecate it ...
2938AMTAR='$${TAR-tar}'
2939
2940
2941# We'll loop over all known methods to create a tar archive until one works.
2942_am_tools='gnutar pax cpio none'
2943
2944am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2945
2946
2947
2948
2949
2950
2951# POSIX will say in a future version that running "rm -f" with no argument
2952# is OK; and we want to be able to make that assumption in our Makefile
2953# recipes. So use an aggressive probe to check that the usage we want is
2954# actually supported "in the wild" to an acceptable degree.
2955# See automake bug#10828.
2956# To make any issue more visible, cause the running configure to be aborted
2957# by default if the 'rm' program in use doesn't match our expectations; the
2958# user can still override this though.
2959if rm -f && rm -fr && rm -rf; then : OK; else
2960 cat >&2 <<'END'
2961Oops!
2962
2963Your 'rm' program seems unable to run without file operands specified
2964on the command line, even when the '-f' option is present. This is contrary
2965to the behaviour of most rm programs out there, and not conforming with
2966the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2967
2968Please tell bug-automake@gnu.org about your system, including the value
2969of your $PATH and any error possibly output before this message. This
2970can help us improve future automake versions.
2971
2972END
2973 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2974 echo 'Configuration will proceed anyway, since you have set the' >&2
2975 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2976 echo >&2
2977 else
2978 cat >&2 <<'END'
2979Aborting the configuration process, to ensure you take notice of the issue.
2980
2981You can download and install GNU coreutils to get an 'rm' implementation
2982that behaves properly: <http://www.gnu.org/software/coreutils/>.
2983
2984If you want to complete the configuration process using your problematic
2985'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2986to "yes", and re-run configure.
2987
2988END
2989 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2990 fi
2991fi
2992
2993case `pwd` in
2994 *\ * | *\ *)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2996$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2997esac
2998
2999
3000
3001macro_version='2.4'
3002macro_revision='1.3293'
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016ltmain="$ac_aux_dir/ltmain.sh"
3017
3018# Make sure we can run config.sub.
3019$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3020 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3021
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3023$as_echo_n "checking build system type... " >&6; }
3024if ${ac_cv_build+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026else
3027 ac_build_alias=$build_alias
3028test "x$ac_build_alias" = x &&
3029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3030test "x$ac_build_alias" = x &&
3031 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3032ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3034
3035fi
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3037$as_echo "$ac_cv_build" >&6; }
3038case $ac_cv_build in
3039*-*-*) ;;
3040*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3041esac
3042build=$ac_cv_build
3043ac_save_IFS=$IFS; IFS='-'
3044set x $ac_cv_build
3045shift
3046build_cpu=$1
3047build_vendor=$2
3048shift; shift
3049# Remember, the first character of IFS is used to create $*,
3050# except with old shells:
3051build_os=$*
3052IFS=$ac_save_IFS
3053case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3054
3055
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3057$as_echo_n "checking host system type... " >&6; }
3058if ${ac_cv_host+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060else
3061 if test "x$host_alias" = x; then
3062 ac_cv_host=$ac_cv_build
3063else
3064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3065 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3066fi
3067
3068fi
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3070$as_echo "$ac_cv_host" >&6; }
3071case $ac_cv_host in
3072*-*-*) ;;
3073*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3074esac
3075host=$ac_cv_host
3076ac_save_IFS=$IFS; IFS='-'
3077set x $ac_cv_host
3078shift
3079host_cpu=$1
3080host_vendor=$2
3081shift; shift
3082# Remember, the first character of IFS is used to create $*,
3083# except with old shells:
3084host_os=$*
3085IFS=$ac_save_IFS
3086case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3087
3088
3089# Backslashify metacharacters that are still active within
3090# double-quoted strings.
3091sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3092
3093# Same as above, but do not quote variable references.
3094double_quote_subst='s/\(["`\\]\)/\\\1/g'
3095
3096# Sed substitution to delay expansion of an escaped shell variable in a
3097# double_quote_subst'ed string.
3098delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3099
3100# Sed substitution to delay expansion of an escaped single quote.
3101delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3102
3103# Sed substitution to avoid accidental globbing in evaled expressions
3104no_glob_subst='s/\*/\\\*/g'
3105
3106ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3107ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3108ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3109
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3111$as_echo_n "checking how to print strings... " >&6; }
3112# Test print first, because it will be a builtin if present.
3113if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3115 ECHO='print -r --'
3116elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3117 ECHO='printf %s\n'
3118else
3119 # Use this function as a fallback that always works.
3120 func_fallback_echo ()
3121 {
3122 eval 'cat <<_LTECHO_EOF
3123$1
3124_LTECHO_EOF'
3125 }
3126 ECHO='func_fallback_echo'
3127fi
3128
3129# func_echo_all arg...
3130# Invoke $ECHO with all args, space-separated.
3131func_echo_all ()
3132{
3133 $ECHO ""
3134}
3135
3136case "$ECHO" in
3137 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3138$as_echo "printf" >&6; } ;;
3139 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3140$as_echo "print -r" >&6; } ;;
3141 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3142$as_echo "cat" >&6; } ;;
3143esac
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158DEPDIR="${am__leading_dot}deps"
3159
3160ac_config_commands="$ac_config_commands depfiles"
3161
3162
3163am_make=${MAKE-make}
3164cat > confinc << 'END'
3165am__doit:
3166 @echo this is the am__doit target
3167.PHONY: am__doit
3168END
3169# If we don't find an include directive, just comment out the code.
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3171$as_echo_n "checking for style of include used by $am_make... " >&6; }
3172am__include="#"
3173am__quote=
3174_am_result=none
3175# First try GNU make style include.
3176echo "include confinc" > confmf
3177# Ignore all kinds of additional output from 'make'.
3178case `$am_make -s -f confmf 2> /dev/null` in #(
3179*the\ am__doit\ target*)
3180 am__include=include
3181 am__quote=
3182 _am_result=GNU
3183 ;;
3184esac
3185# Now try BSD make style include.
3186if test "$am__include" = "#"; then
3187 echo '.include "confinc"' > confmf
3188 case `$am_make -s -f confmf 2> /dev/null` in #(
3189 *the\ am__doit\ target*)
3190 am__include=.include
3191 am__quote="\""
3192 _am_result=BSD
3193 ;;
3194 esac
3195fi
3196
3197
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3199$as_echo "$_am_result" >&6; }
3200rm -f confinc confmf
3201
3202# Check whether --enable-dependency-tracking was given.
3203if test "${enable_dependency_tracking+set}" = set; then :
3204 enableval=$enable_dependency_tracking;
3205fi
3206
3207if test "x$enable_dependency_tracking" != xno; then
3208 am_depcomp="$ac_aux_dir/depcomp"
3209 AMDEPBACKSLASH='\'
3210 am__nodep='_no'
3211fi
3212 if test "x$enable_dependency_tracking" != xno; then
3213 AMDEP_TRUE=
3214 AMDEP_FALSE='#'
3215else
3216 AMDEP_TRUE='#'
3217 AMDEP_FALSE=
3218fi
3219
3220
3221ac_ext=c
3222ac_cpp='$CPP $CPPFLAGS'
3223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230$as_echo_n "checking for $ac_word... " >&6; }
3231if ${ac_cv_prog_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236else
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 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248done
3249 done
3250IFS=$as_save_IFS
3251
3252fi
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257$as_echo "$CC" >&6; }
3258else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261fi
3262
3263
3264fi
3265if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268set dummy gcc; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273else
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_ac_ct_CC="gcc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289 done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297$as_echo "$ac_ct_CC" >&6; }
3298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307yes:)
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310ac_tool_warned=yes ;;
3311esac
3312 CC=$ac_ct_CC
3313 fi
3314else
3315 CC="$ac_cv_prog_CC"
3316fi
3317
3318if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321set dummy ${ac_tool_prefix}cc; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341done
3342 done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347CC=$ac_cv_prog_CC
3348if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350$as_echo "$CC" >&6; }
3351else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357 fi
3358fi
3359if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361set dummy cc; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370 ac_prog_rejected=no
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3380 continue
3381 fi
3382 ac_cv_prog_CC="cc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386done
3387 done
3388IFS=$as_save_IFS
3389
3390if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3393 shift
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3398 shift
3399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400 fi
3401fi
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414fi
3415if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3418 do
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456 test -n "$CC" && break
3457 done
3458fi
3459if test -z "$CC"; then
3460 ac_ct_CC=$CC
3461 for ac_prog in cl.exe
3462do
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464set dummy $ac_prog; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469else
3470 if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_CC="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484done
3485 done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491if test -n "$ac_ct_CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493$as_echo "$ac_ct_CC" >&6; }
3494else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500 test -n "$ac_ct_CC" && break
3501done
3502
3503 if test "x$ac_ct_CC" = x; then
3504 CC=""
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512 CC=$ac_ct_CC
3513 fi
3514fi
3515
3516fi
3517
3518
3519test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error $? "no acceptable C compiler found in \$PATH
3522See \`config.log' for more details" "$LINENO" 5; }
3523
3524# Provide some information about the compiler.
3525$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526set X $ac_compile
3527ac_compiler=$2
3528for ac_option in --version -v -V -qversion; do
3529 { { ac_try="$ac_compiler $ac_option >&5"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 ac_status=$?
3538 if test -s conftest.err; then
3539 sed '10a\
3540... rest of stderr output deleted ...
3541 10q' conftest.err >conftest.er1
3542 cat conftest.er1 >&5
3543 fi
3544 rm -f conftest.er1 conftest.err
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3547done
3548
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560ac_clean_files_save=$ac_clean_files
3561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562# Try to create an executable without -o first, disregard a.out.
3563# It will help us diagnose broken compilers, and finding out an intuition
3564# of exeext.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566$as_echo_n "checking whether the C compiler works... " >&6; }
3567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
3569# The possible output files:
3570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
3572ac_rmfiles=
3573for ac_file in $ac_files
3574do
3575 case $ac_file in
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578 esac
3579done
3580rm -f $ac_rmfiles
3581
3582if { { ac_try="$ac_link_default"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link_default") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595# in a Makefile. We should not override ac_cv_exeext if it was cached,
3596# so that the user can short-circuit this test for compilers unknown to
3597# Autoconf.
3598for ac_file in $ac_files ''
3599do
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 ;;
3604 [ab].out )
3605 # We found the default executable, but exeext='' is most
3606 # certainly right.
3607 break;;
3608 *.* )
3609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610 then :; else
3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 fi
3613 # We set ac_cv_exeext here because the later test for it is not
3614 # safe: cross compilers may not add the suffix if given an `-o'
3615 # argument, so we may need to know it at that point already.
3616 # Even if this section looks crufty: it has the advantage of
3617 # actually working.
3618 break;;
3619 * )
3620 break;;
3621 esac
3622done
3623test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
3625else
3626 ac_file=''
3627fi
3628if test -z "$ac_file"; then :
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630$as_echo "no" >&6; }
3631$as_echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636as_fn_error 77 "C compiler cannot create executables
3637See \`config.log' for more details" "$LINENO" 5; }
3638else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640$as_echo "yes" >&6; }
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643$as_echo_n "checking for C compiler default output file name... " >&6; }
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645$as_echo "$ac_file" >&6; }
3646ac_exeext=$ac_cv_exeext
3647
3648rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649ac_clean_files=$ac_clean_files_save
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651$as_echo_n "checking for suffix of executables... " >&6; }
3652if { { ac_try="$ac_link"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658$as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3665# work properly (i.e., refer to `conftest.exe'), while it won't with
3666# `rm'.
3667for ac_file in conftest.exe conftest conftest.*; do
3668 test -f "$ac_file" || continue
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672 break;;
3673 * ) break;;
3674 esac
3675done
3676else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680See \`config.log' for more details" "$LINENO" 5; }
3681fi
3682rm -f conftest conftest$ac_cv_exeext
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684$as_echo "$ac_cv_exeext" >&6; }
3685
3686rm -f conftest.$ac_ext
3687EXEEXT=$ac_cv_exeext
3688ac_exeext=$EXEEXT
3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691#include <stdio.h>
3692int
3693main ()
3694{
3695FILE *f = fopen ("conftest.out", "w");
3696 return ferror (f) || fclose (f) != 0;
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702ac_clean_files="$ac_clean_files conftest.out"
3703# Check that the compiler produces executables we can run. If not, either
3704# the compiler is broken, or we cross compile.
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706$as_echo_n "checking whether we are cross compiling... " >&6; }
3707if test "$cross_compiling" != yes; then
3708 { { ac_try="$ac_link"
3709case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714$as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_link") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 if { ac_try='./conftest$ac_cv_exeext'
3720 { { case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725$as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; }; then
3730 cross_compiling=no
3731 else
3732 if test "$cross_compiling" = maybe; then
3733 cross_compiling=yes
3734 else
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737as_fn_error $? "cannot run C compiled programs.
3738If you meant to cross compile, use \`--host'.
3739See \`config.log' for more details" "$LINENO" 5; }
3740 fi
3741 fi
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744$as_echo "$cross_compiling" >&6; }
3745
3746rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747ac_clean_files=$ac_clean_files_save
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749$as_echo_n "checking for suffix of object files... " >&6; }
3750if ${ac_cv_objext+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h. */
3755
3756int
3757main ()
3758{
3759
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764rm -f conftest.o conftest.obj
3765if { { ac_try="$ac_compile"
3766case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769esac
3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771$as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compile") 2>&5
3773 ac_status=$?
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781 break;;
3782 esac
3783done
3784else
3785 $as_echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790as_fn_error $? "cannot compute suffix of object files: cannot compile
3791See \`config.log' for more details" "$LINENO" 5; }
3792fi
3793rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796$as_echo "$ac_cv_objext" >&6; }
3797OBJEXT=$ac_cv_objext
3798ac_objext=$OBJEXT
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801if ${ac_cv_c_compiler_gnu+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h. */
3806
3807int
3808main ()
3809{
3810#ifndef __GNUC__
3811 choke me
3812#endif
3813
3814 ;
3815 return 0;
3816}
3817_ACEOF
3818if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_compiler_gnu=yes
3820else
3821 ac_compiler_gnu=no
3822fi
3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824ac_cv_c_compiler_gnu=$ac_compiler_gnu
3825
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829if test $ac_compiler_gnu = yes; then
3830 GCC=yes
3831else
3832 GCC=
3833fi
3834ac_test_CFLAGS=${CFLAGS+set}
3835ac_save_CFLAGS=$CFLAGS
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837$as_echo_n "checking whether $CC accepts -g... " >&6; }
3838if ${ac_cv_prog_cc_g+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840else
3841 ac_save_c_werror_flag=$ac_c_werror_flag
3842 ac_c_werror_flag=yes
3843 ac_cv_prog_cc_g=no
3844 CFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
3856if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_prog_cc_g=yes
3858else
3859 CFLAGS=""
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h. */
3862
3863int
3864main ()
3865{
3866
3867 ;
3868 return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872
3873else
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3875 CFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_g=yes
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891fi
3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893fi
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898$as_echo "$ac_cv_prog_cc_g" >&6; }
3899if test "$ac_test_CFLAGS" = set; then
3900 CFLAGS=$ac_save_CFLAGS
3901elif test $ac_cv_prog_cc_g = yes; then
3902 if test "$GCC" = yes; then
3903 CFLAGS="-g -O2"
3904 else
3905 CFLAGS="-g"
3906 fi
3907else
3908 if test "$GCC" = yes; then
3909 CFLAGS="-O2"
3910 else
3911 CFLAGS=
3912 fi
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916if ${ac_cv_prog_cc_c89+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918else
3919 ac_cv_prog_cc_c89=no
3920ac_save_CC=$CC
3921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923#include <stdarg.h>
3924#include <stdio.h>
3925struct stat;
3926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927struct buf { int x; };
3928FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929static char *e (p, i)
3930 char **p;
3931 int i;
3932{
3933 return p[i];
3934}
3935static char *f (char * (*g) (char **, int), char **p, ...)
3936{
3937 char *s;
3938 va_list v;
3939 va_start (v,p);
3940 s = g (p, va_arg (v,int));
3941 va_end (v);
3942 return s;
3943}
3944
3945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3956#define FOO(x) 'x'
3957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959int test (int i, double x);
3960struct s1 {int (*f) (int a);};
3961struct s2 {int (*f) (double a);};
3962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963int argc;
3964char **argv;
3965int
3966main ()
3967{
3968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975do
3976 CC="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_c89=$ac_arg
3979fi
3980rm -f core conftest.err conftest.$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3982done
3983rm -f conftest.$ac_ext
3984CC=$ac_save_CC
3985
3986fi
3987# AC_CACHE_VAL
3988case "x$ac_cv_prog_cc_c89" in
3989 x)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991$as_echo "none needed" >&6; } ;;
3992 xno)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994$as_echo "unsupported" >&6; } ;;
3995 *)
3996 CC="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999esac
4000if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
4002fi
4003
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4016$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4017if ${am_cv_prog_cc_c_o+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019else
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */
4022
4023int
4024main ()
4025{
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031 # Make sure it works both with $CC and with simple cc.
4032 # Following AC_PROG_CC_C_O, we do the test twice because some
4033 # compilers refuse to overwrite an existing .o file with -o,
4034 # though they will create one.
4035 am_cv_prog_cc_c_o=yes
4036 for am_i in 1 2; do
4037 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4038 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } \
4042 && test -f conftest2.$ac_objext; then
4043 : OK
4044 else
4045 am_cv_prog_cc_c_o=no
4046 break
4047 fi
4048 done
4049 rm -f core conftest*
4050 unset am_i
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4053$as_echo "$am_cv_prog_cc_c_o" >&6; }
4054if test "$am_cv_prog_cc_c_o" != yes; then
4055 # Losing compiler, so override with the script.
4056 # FIXME: It is wrong to rewrite CC.
4057 # But if we don't then we get into trouble of one sort or another.
4058 # A longer-term fix would be to have automake use am__CC in this case,
4059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4060 CC="$am_aux_dir/compile $CC"
4061fi
4062ac_ext=c
4063ac_cpp='$CPP $CPPFLAGS'
4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068
4069depcc="$CC" am_compiler_list=
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072$as_echo_n "checking dependency style of $depcc... " >&6; }
4073if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075else
4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077 # We make a subdir and do the tests there. Otherwise we can end up
4078 # making bogus files that we don't know about and never remove. For
4079 # instance it was reported that on HP-UX the gcc test will end up
4080 # making a dummy file named 'D' -- because '-MD' means "put the output
4081 # in D".
4082 rm -rf conftest.dir
4083 mkdir conftest.dir
4084 # Copy depcomp to subdir because otherwise we won't find it if we're
4085 # using a relative directory.
4086 cp "$am_depcomp" conftest.dir
4087 cd conftest.dir
4088 # We will build objects and dependencies in a subdirectory because
4089 # it helps to detect inapplicable dependency modes. For instance
4090 # both Tru64's cc and ICC support -MD to output dependencies as a
4091 # side effect of compilation, but ICC will put the dependencies in
4092 # the current directory while Tru64 will put them in the object
4093 # directory.
4094 mkdir sub
4095
4096 am_cv_CC_dependencies_compiler_type=none
4097 if test "$am_compiler_list" = ""; then
4098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4099 fi
4100 am__universal=false
4101 case " $depcc " in #(
4102 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4103 esac
4104
4105 for depmode in $am_compiler_list; do
4106 # Setup a source with many dependencies, because some compilers
4107 # like to wrap large dependency lists on column 80 (with \), and
4108 # we should not choose a depcomp mode which is confused by this.
4109 #
4110 # We need to recreate these files for each test, as the compiler may
4111 # overwrite some of them when testing with obscure command lines.
4112 # This happens at least with the AIX C compiler.
4113 : > sub/conftest.c
4114 for i in 1 2 3 4 5 6; do
4115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4116 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4117 # Solaris 10 /bin/sh.
4118 echo '/* dummy */' > sub/conftst$i.h
4119 done
4120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121
4122 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4123 # mode. It turns out that the SunPro C++ compiler does not properly
4124 # handle '-M -o', and we need to detect this. Also, some Intel
4125 # versions had trouble with output in subdirs.
4126 am__obj=sub/conftest.${OBJEXT-o}
4127 am__minus_obj="-o $am__obj"
4128 case $depmode in
4129 gcc)
4130 # This depmode causes a compiler race in universal mode.
4131 test "$am__universal" = false || continue
4132 ;;
4133 nosideeffect)
4134 # After this tag, mechanisms are not by side-effect, so they'll
4135 # only be used when explicitly requested.
4136 if test "x$enable_dependency_tracking" = xyes; then
4137 continue
4138 else
4139 break
4140 fi
4141 ;;
4142 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4143 # This compiler won't grok '-c -o', but also, the minuso test has
4144 # not run yet. These depmodes are late enough in the game, and
4145 # so weak that their functioning should not be impacted.
4146 am__obj=conftest.${OBJEXT-o}
4147 am__minus_obj=
4148 ;;
4149 none) break ;;
4150 esac
4151 if depmode=$depmode \
4152 source=sub/conftest.c object=$am__obj \
4153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4155 >/dev/null 2>conftest.err &&
4156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160 # icc doesn't choke on unknown options, it will just issue warnings
4161 # or remarks (even with -Werror). So we grep stderr for any message
4162 # that says an option was ignored or not supported.
4163 # When given -MP, icc 7.0 and 7.1 complain thusly:
4164 # icc: Command line warning: ignoring option '-M'; no argument required
4165 # The diagnosis changed in icc 8.0:
4166 # icc: Command line remark: option '-MP' not supported
4167 if (grep 'ignoring option' conftest.err ||
4168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169 am_cv_CC_dependencies_compiler_type=$depmode
4170 break
4171 fi
4172 fi
4173 done
4174
4175 cd ..
4176 rm -rf conftest.dir
4177else
4178 am_cv_CC_dependencies_compiler_type=none
4179fi
4180
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4183$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4184CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4185
4186 if
4187 test "x$enable_dependency_tracking" != xno \
4188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4189 am__fastdepCC_TRUE=
4190 am__fastdepCC_FALSE='#'
4191else
4192 am__fastdepCC_TRUE='#'
4193 am__fastdepCC_FALSE=
4194fi
4195
4196
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4198$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4199if ${ac_cv_path_SED+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201else
4202 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4203 for ac_i in 1 2 3 4 5 6 7; do
4204 ac_script="$ac_script$as_nl$ac_script"
4205 done
4206 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4207 { ac_script=; unset ac_script;}
4208 if test -z "$SED"; then
4209 ac_path_SED_found=false
4210 # Loop through the user's path and test for each of PROGNAME-LIST
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_prog in sed gsed; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4219 as_fn_executable_p "$ac_path_SED" || continue
4220# Check for GNU ac_path_SED and select it if it is found.
4221 # Check for GNU $ac_path_SED
4222case `"$ac_path_SED" --version 2>&1` in
4223*GNU*)
4224 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4225*)
4226 ac_count=0
4227 $as_echo_n 0123456789 >"conftest.in"
4228 while :
4229 do
4230 cat "conftest.in" "conftest.in" >"conftest.tmp"
4231 mv "conftest.tmp" "conftest.in"
4232 cp "conftest.in" "conftest.nl"
4233 $as_echo '' >> "conftest.nl"
4234 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236 as_fn_arith $ac_count + 1 && ac_count=$as_val
4237 if test $ac_count -gt ${ac_path_SED_max-0}; then
4238 # Best one so far, save it but keep looking for a better one
4239 ac_cv_path_SED="$ac_path_SED"
4240 ac_path_SED_max=$ac_count
4241 fi
4242 # 10*(2^10) chars as input seems more than enough
4243 test $ac_count -gt 10 && break
4244 done
4245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246esac
4247
4248 $ac_path_SED_found && break 3
4249 done
4250 done
4251 done
4252IFS=$as_save_IFS
4253 if test -z "$ac_cv_path_SED"; then
4254 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4255 fi
4256else
4257 ac_cv_path_SED=$SED
4258fi
4259
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4262$as_echo "$ac_cv_path_SED" >&6; }
4263 SED="$ac_cv_path_SED"
4264 rm -f conftest.sed
4265
4266test -z "$SED" && SED=sed
4267Xsed="$SED -e 1s/^X//"
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4280$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281if ${ac_cv_path_GREP+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283else
4284 if test -z "$GREP"; then
4285 ac_path_GREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in grep ggrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295 as_fn_executable_p "$ac_path_GREP" || continue
4296# Check for GNU ac_path_GREP and select it if it is found.
4297 # Check for GNU $ac_path_GREP
4298case `"$ac_path_GREP" --version 2>&1` in
4299*GNU*)
4300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301*)
4302 ac_count=0
4303 $as_echo_n 0123456789 >"conftest.in"
4304 while :
4305 do
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'GREP' >> "conftest.nl"
4310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 as_fn_arith $ac_count + 1 && ac_count=$as_val
4313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_GREP="$ac_path_GREP"
4316 ac_path_GREP_max=$ac_count
4317 fi
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324 $ac_path_GREP_found && break 3
4325 done
4326 done
4327 done
4328IFS=$as_save_IFS
4329 if test -z "$ac_cv_path_GREP"; then
4330 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 fi
4332else
4333 ac_cv_path_GREP=$GREP
4334fi
4335
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4338$as_echo "$ac_cv_path_GREP" >&6; }
4339 GREP="$ac_cv_path_GREP"
4340
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4343$as_echo_n "checking for egrep... " >&6; }
4344if ${ac_cv_path_EGREP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4348 then ac_cv_path_EGREP="$GREP -E"
4349 else
4350 if test -z "$EGREP"; then
4351 ac_path_EGREP_found=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_prog in egrep; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p "$ac_path_EGREP" || continue
4362# Check for GNU ac_path_EGREP and select it if it is found.
4363 # Check for GNU $ac_path_EGREP
4364case `"$ac_path_EGREP" --version 2>&1` in
4365*GNU*)
4366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367*)
4368 ac_count=0
4369 $as_echo_n 0123456789 >"conftest.in"
4370 while :
4371 do
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'EGREP' >> "conftest.nl"
4376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378 as_fn_arith $ac_count + 1 && ac_count=$as_val
4379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_EGREP="$ac_path_EGREP"
4382 ac_path_EGREP_max=$ac_count
4383 fi
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4386 done
4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388esac
4389
4390 $ac_path_EGREP_found && break 3
4391 done
4392 done
4393 done
4394IFS=$as_save_IFS
4395 if test -z "$ac_cv_path_EGREP"; then
4396 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 fi
4398else
4399 ac_cv_path_EGREP=$EGREP
4400fi
4401
4402 fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4405$as_echo "$ac_cv_path_EGREP" >&6; }
4406 EGREP="$ac_cv_path_EGREP"
4407
4408
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4410$as_echo_n "checking for fgrep... " >&6; }
4411if ${ac_cv_path_FGREP+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413else
4414 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4415 then ac_cv_path_FGREP="$GREP -F"
4416 else
4417 if test -z "$FGREP"; then
4418 ac_path_FGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in fgrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4428 as_fn_executable_p "$ac_path_FGREP" || continue
4429# Check for GNU ac_path_FGREP and select it if it is found.
4430 # Check for GNU $ac_path_FGREP
4431case `"$ac_path_FGREP" --version 2>&1` in
4432*GNU*)
4433 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4434*)
4435 ac_count=0
4436 $as_echo_n 0123456789 >"conftest.in"
4437 while :
4438 do
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'FGREP' >> "conftest.nl"
4443 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_FGREP="$ac_path_FGREP"
4449 ac_path_FGREP_max=$ac_count
4450 fi
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4453 done
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455esac
4456
4457 $ac_path_FGREP_found && break 3
4458 done
4459 done
4460 done
4461IFS=$as_save_IFS
4462 if test -z "$ac_cv_path_FGREP"; then
4463 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464 fi
4465else
4466 ac_cv_path_FGREP=$FGREP
4467fi
4468
4469 fi
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4472$as_echo "$ac_cv_path_FGREP" >&6; }
4473 FGREP="$ac_cv_path_FGREP"
4474
4475
4476test -z "$GREP" && GREP=grep
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496# Check whether --with-gnu-ld was given.
4497if test "${with_gnu_ld+set}" = set; then :
4498 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4499else
4500 with_gnu_ld=no
4501fi
4502
4503ac_prog=ld
4504if test "$GCC" = yes; then
4505 # Check if gcc -print-prog-name=ld gives a path.
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4507$as_echo_n "checking for ld used by $CC... " >&6; }
4508 case $host in
4509 *-*-mingw*)
4510 # gcc leaves a trailing carriage return which upsets mingw
4511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4512 *)
4513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4514 esac
4515 case $ac_prog in
4516 # Accept absolute paths.
4517 [\\/]* | ?:[\\/]*)
4518 re_direlt='/[^/][^/]*/\.\./'
4519 # Canonicalize the pathname of ld
4520 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4521 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4522 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4523 done
4524 test -z "$LD" && LD="$ac_prog"
4525 ;;
4526 "")
4527 # If it fails, then pretend we aren't using GCC.
4528 ac_prog=ld
4529 ;;
4530 *)
4531 # If it is relative, then search for the first ld in PATH.
4532 with_gnu_ld=unknown
4533 ;;
4534 esac
4535elif test "$with_gnu_ld" = yes; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4537$as_echo_n "checking for GNU ld... " >&6; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4540$as_echo_n "checking for non-GNU ld... " >&6; }
4541fi
4542if ${lt_cv_path_LD+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544else
4545 if test -z "$LD"; then
4546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4547 for ac_dir in $PATH; do
4548 IFS="$lt_save_ifs"
4549 test -z "$ac_dir" && ac_dir=.
4550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4551 lt_cv_path_LD="$ac_dir/$ac_prog"
4552 # Check to see if the program is GNU ld. I'd rather use --version,
4553 # but apparently some variants of GNU ld only accept -v.
4554 # Break only if it was the GNU/non-GNU ld that we prefer.
4555 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4556 *GNU* | *'with BFD'*)
4557 test "$with_gnu_ld" != no && break
4558 ;;
4559 *)
4560 test "$with_gnu_ld" != yes && break
4561 ;;
4562 esac
4563 fi
4564 done
4565 IFS="$lt_save_ifs"
4566else
4567 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4568fi
4569fi
4570
4571LD="$lt_cv_path_LD"
4572if test -n "$LD"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4574$as_echo "$LD" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4581$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4582if ${lt_cv_prog_gnu_ld+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4586case `$LD -v 2>&1 </dev/null` in
4587*GNU* | *'with BFD'*)
4588 lt_cv_prog_gnu_ld=yes
4589 ;;
4590*)
4591 lt_cv_prog_gnu_ld=no
4592 ;;
4593esac
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4596$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4597with_gnu_ld=$lt_cv_prog_gnu_ld
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4608$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4609if ${lt_cv_path_NM+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$NM"; then
4613 # Let the user override the test.
4614 lt_cv_path_NM="$NM"
4615else
4616 lt_nm_to_check="${ac_tool_prefix}nm"
4617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4618 lt_nm_to_check="$lt_nm_to_check nm"
4619 fi
4620 for lt_tmp_nm in $lt_nm_to_check; do
4621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4623 IFS="$lt_save_ifs"
4624 test -z "$ac_dir" && ac_dir=.
4625 tmp_nm="$ac_dir/$lt_tmp_nm"
4626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4627 # Check to see if the nm accepts a BSD-compat flag.
4628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4629 # nm: unknown option "B" ignored
4630 # Tru64's nm complains that /dev/null is an invalid object file
4631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4632 */dev/null* | *'Invalid file or object type'*)
4633 lt_cv_path_NM="$tmp_nm -B"
4634 break
4635 ;;
4636 *)
4637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4638 */dev/null*)
4639 lt_cv_path_NM="$tmp_nm -p"
4640 break
4641 ;;
4642 *)
4643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4644 continue # so that we can try to find one that supports BSD flags
4645 ;;
4646 esac
4647 ;;
4648 esac
4649 fi
4650 done
4651 IFS="$lt_save_ifs"
4652 done
4653 : ${lt_cv_path_NM=no}
4654fi
4655fi
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4657$as_echo "$lt_cv_path_NM" >&6; }
4658if test "$lt_cv_path_NM" != "no"; then
4659 NM="$lt_cv_path_NM"
4660else
4661 # Didn't find any BSD compatible name lister, look for dumpbin.
4662 if test -n "$DUMPBIN"; then :
4663 # Let the user override the test.
4664 else
4665 if test -n "$ac_tool_prefix"; then
4666 for ac_prog in dumpbin "link -dump"
4667 do
4668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671$as_echo_n "checking for $ac_word... " >&6; }
4672if ${ac_cv_prog_DUMPBIN+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674else
4675 if test -n "$DUMPBIN"; then
4676 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690 done
4691IFS=$as_save_IFS
4692
4693fi
4694fi
4695DUMPBIN=$ac_cv_prog_DUMPBIN
4696if test -n "$DUMPBIN"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4698$as_echo "$DUMPBIN" >&6; }
4699else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703
4704
4705 test -n "$DUMPBIN" && break
4706 done
4707fi
4708if test -z "$DUMPBIN"; then
4709 ac_ct_DUMPBIN=$DUMPBIN
4710 for ac_prog in dumpbin "link -dump"
4711do
4712 # Extract the first word of "$ac_prog", so it can be a program name with args.
4713set dummy $ac_prog; ac_word=$2
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715$as_echo_n "checking for $ac_word... " >&6; }
4716if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718else
4719 if test -n "$ac_ct_DUMPBIN"; then
4720 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734 done
4735IFS=$as_save_IFS
4736
4737fi
4738fi
4739ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4740if test -n "$ac_ct_DUMPBIN"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4742$as_echo "$ac_ct_DUMPBIN" >&6; }
4743else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745$as_echo "no" >&6; }
4746fi
4747
4748
4749 test -n "$ac_ct_DUMPBIN" && break
4750done
4751
4752 if test "x$ac_ct_DUMPBIN" = x; then
4753 DUMPBIN=":"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756yes:)
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759ac_tool_warned=yes ;;
4760esac
4761 DUMPBIN=$ac_ct_DUMPBIN
4762 fi
4763fi
4764
4765 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4766 *COFF*)
4767 DUMPBIN="$DUMPBIN -symbols"
4768 ;;
4769 *)
4770 DUMPBIN=:
4771 ;;
4772 esac
4773 fi
4774
4775 if test "$DUMPBIN" != ":"; then
4776 NM="$DUMPBIN"
4777 fi
4778fi
4779test -z "$NM" && NM=nm
4780
4781
4782
4783
4784
4785
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4787$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4788if ${lt_cv_nm_interface+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790else
4791 lt_cv_nm_interface="BSD nm"
4792 echo "int some_variable = 0;" > conftest.$ac_ext
4793 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4794 (eval "$ac_compile" 2>conftest.err)
4795 cat conftest.err >&5
4796 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4797 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4798 cat conftest.err >&5
4799 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4800 cat conftest.out >&5
4801 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4802 lt_cv_nm_interface="MS dumpbin"
4803 fi
4804 rm -f conftest*
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4807$as_echo "$lt_cv_nm_interface" >&6; }
4808
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4810$as_echo_n "checking whether ln -s works... " >&6; }
4811LN_S=$as_ln_s
4812if test "$LN_S" = "ln -s"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4814$as_echo "yes" >&6; }
4815else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4817$as_echo "no, using $LN_S" >&6; }
4818fi
4819
4820# find the maximum length of command line arguments
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4822$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4823if ${lt_cv_sys_max_cmd_len+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825else
4826 i=0
4827 teststring="ABCD"
4828
4829 case $build_os in
4830 msdosdjgpp*)
4831 # On DJGPP, this test can blow up pretty badly due to problems in libc
4832 # (any single argument exceeding 2000 bytes causes a buffer overrun
4833 # during glob expansion). Even if it were fixed, the result of this
4834 # check would be larger than it should be.
4835 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4836 ;;
4837
4838 gnu*)
4839 # Under GNU Hurd, this test is not required because there is
4840 # no limit to the length of command line arguments.
4841 # Libtool will interpret -1 as no limit whatsoever
4842 lt_cv_sys_max_cmd_len=-1;
4843 ;;
4844
4845 cygwin* | mingw* | cegcc*)
4846 # On Win9x/ME, this test blows up -- it succeeds, but takes
4847 # about 5 minutes as the teststring grows exponentially.
4848 # Worse, since 9x/ME are not pre-emptively multitasking,
4849 # you end up with a "frozen" computer, even though with patience
4850 # the test eventually succeeds (with a max line length of 256k).
4851 # Instead, let's just punt: use the minimum linelength reported by
4852 # all of the supported platforms: 8192 (on NT/2K/XP).
4853 lt_cv_sys_max_cmd_len=8192;
4854 ;;
4855
4856 mint*)
4857 # On MiNT this can take a long time and run out of memory.
4858 lt_cv_sys_max_cmd_len=8192;
4859 ;;
4860
4861 amigaos*)
4862 # On AmigaOS with pdksh, this test takes hours, literally.
4863 # So we just punt and use a minimum line length of 8192.
4864 lt_cv_sys_max_cmd_len=8192;
4865 ;;
4866
4867 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4868 # This has been around since 386BSD, at least. Likely further.
4869 if test -x /sbin/sysctl; then
4870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4871 elif test -x /usr/sbin/sysctl; then
4872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4873 else
4874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4875 fi
4876 # And add a safety zone
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4879 ;;
4880
4881 interix*)
4882 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4883 lt_cv_sys_max_cmd_len=196608
4884 ;;
4885
4886 osf*)
4887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4889 # nice to cause kernel panics so lets avoid the loop below.
4890 # First set a reasonable default.
4891 lt_cv_sys_max_cmd_len=16384
4892 #
4893 if test -x /sbin/sysconfig; then
4894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4896 esac
4897 fi
4898 ;;
4899 sco3.2v5*)
4900 lt_cv_sys_max_cmd_len=102400
4901 ;;
4902 sysv5* | sco5v6* | sysv4.2uw2*)
4903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4904 if test -n "$kargmax"; then
4905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4906 else
4907 lt_cv_sys_max_cmd_len=32768
4908 fi
4909 ;;
4910 *)
4911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4912 if test -n "$lt_cv_sys_max_cmd_len"; then
4913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4915 else
4916 # Make teststring a little bigger before we do anything with it.
4917 # a 1K string should be a reasonable start.
4918 for i in 1 2 3 4 5 6 7 8 ; do
4919 teststring=$teststring$teststring
4920 done
4921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4922 # If test is not a shell built-in, we'll probably end up computing a
4923 # maximum length that is only half of the actual maximum length, but
4924 # we can't tell.
4925 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4926 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4927 test $i != 17 # 1/2 MB should be enough
4928 do
4929 i=`expr $i + 1`
4930 teststring=$teststring$teststring
4931 done
4932 # Only check the string length outside the loop.
4933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4934 teststring=
4935 # Add a significant safety factor because C++ compilers can tack on
4936 # massive amounts of additional arguments before passing them to the
4937 # linker. It appears as though 1/2 is a usable value.
4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4939 fi
4940 ;;
4941 esac
4942
4943fi
4944
4945if test -n $lt_cv_sys_max_cmd_len ; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4947$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4948else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4950$as_echo "none" >&6; }
4951fi
4952max_cmd_len=$lt_cv_sys_max_cmd_len
4953
4954
4955
4956
4957
4958
4959: ${CP="cp -f"}
4960: ${MV="mv -f"}
4961: ${RM="rm -f"}
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4964$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4965# Try some XSI features
4966xsi_shell=no
4967( _lt_dummy="a/b/c"
4968 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4969 = c,a/b,b/c, \
4970 && eval 'test $(( 1 + 1 )) -eq 2 \
4971 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4972 && xsi_shell=yes
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4974$as_echo "$xsi_shell" >&6; }
4975
4976
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4978$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4979lt_shell_append=no
4980( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4981 >/dev/null 2>&1 \
4982 && lt_shell_append=yes
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4984$as_echo "$lt_shell_append" >&6; }
4985
4986
4987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4988 lt_unset=unset
4989else
4990 lt_unset=false
4991fi
4992
4993
4994
4995
4996
4997# test EBCDIC or ASCII
4998case `echo X|tr X '\101'` in
4999 A) # ASCII based system
5000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5001 lt_SP2NL='tr \040 \012'
5002 lt_NL2SP='tr \015\012 \040\040'
5003 ;;
5004 *) # EBCDIC based system
5005 lt_SP2NL='tr \100 \n'
5006 lt_NL2SP='tr \r\n \100\100'
5007 ;;
5008esac
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5019$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5020if ${lt_cv_to_host_file_cmd+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022else
5023 case $host in
5024 *-*-mingw* )
5025 case $build in
5026 *-*-mingw* ) # actually msys
5027 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5028 ;;
5029 *-*-cygwin* )
5030 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5031 ;;
5032 * ) # otherwise, assume *nix
5033 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5034 ;;
5035 esac
5036 ;;
5037 *-*-cygwin* )
5038 case $build in
5039 *-*-mingw* ) # actually msys
5040 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5041 ;;
5042 *-*-cygwin* )
5043 lt_cv_to_host_file_cmd=func_convert_file_noop
5044 ;;
5045 * ) # otherwise, assume *nix
5046 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5047 ;;
5048 esac
5049 ;;
5050 * ) # unhandled hosts (and "normal" native builds)
5051 lt_cv_to_host_file_cmd=func_convert_file_noop
5052 ;;
5053esac
5054
5055fi
5056
5057to_host_file_cmd=$lt_cv_to_host_file_cmd
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5059$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5060
5061
5062
5063
5064
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5066$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5067if ${lt_cv_to_tool_file_cmd+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069else
5070 #assume ordinary cross tools, or native build.
5071lt_cv_to_tool_file_cmd=func_convert_file_noop
5072case $host in
5073 *-*-mingw* )
5074 case $build in
5075 *-*-mingw* ) # actually msys
5076 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5077 ;;
5078 esac
5079 ;;
5080esac
5081
5082fi
5083
5084to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5086$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5087
5088
5089
5090
5091
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5093$as_echo_n "checking for $LD option to reload object files... " >&6; }
5094if ${lt_cv_ld_reload_flag+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 lt_cv_ld_reload_flag='-r'
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5100$as_echo "$lt_cv_ld_reload_flag" >&6; }
5101reload_flag=$lt_cv_ld_reload_flag
5102case $reload_flag in
5103"" | " "*) ;;
5104*) reload_flag=" $reload_flag" ;;
5105esac
5106reload_cmds='$LD$reload_flag -o $output$reload_objs'
5107case $host_os in
5108 cygwin* | mingw* | pw32* | cegcc*)
5109 if test "$GCC" != yes; then
5110 reload_cmds=false
5111 fi
5112 ;;
5113 darwin*)
5114 if test "$GCC" = yes; then
5115 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5116 else
5117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5118 fi
5119 ;;
5120esac
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}objdump; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if ${ac_cv_prog_OBJDUMP+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137else
5138 if test -n "$OBJDUMP"; then
5139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153 done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
5158OBJDUMP=$ac_cv_prog_OBJDUMP
5159if test -n "$OBJDUMP"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5161$as_echo "$OBJDUMP" >&6; }
5162else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
5167
5168fi
5169if test -z "$ac_cv_prog_OBJDUMP"; then
5170 ac_ct_OBJDUMP=$OBJDUMP
5171 # Extract the first word of "objdump", so it can be a program name with args.
5172set dummy objdump; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177else
5178 if test -n "$ac_ct_OBJDUMP"; then
5179 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192done
5193 done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5199if test -n "$ac_ct_OBJDUMP"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5201$as_echo "$ac_ct_OBJDUMP" >&6; }
5202else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207 if test "x$ac_ct_OBJDUMP" = x; then
5208 OBJDUMP="false"
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216 OBJDUMP=$ac_ct_OBJDUMP
5217 fi
5218else
5219 OBJDUMP="$ac_cv_prog_OBJDUMP"
5220fi
5221
5222test -z "$OBJDUMP" && OBJDUMP=objdump
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5233$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5234if ${lt_cv_deplibs_check_method+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236else
5237 lt_cv_file_magic_cmd='$MAGIC_CMD'
5238lt_cv_file_magic_test_file=
5239lt_cv_deplibs_check_method='unknown'
5240# Need to set the preceding variable on all platforms that support
5241# interlibrary dependencies.
5242# 'none' -- dependencies not supported.
5243# `unknown' -- same as none, but documents that we really don't know.
5244# 'pass_all' -- all dependencies passed with no checks.
5245# 'test_compile' -- check by making test program.
5246# 'file_magic [[regex]]' -- check by looking for files in library path
5247# which responds to the $file_magic_cmd with a given extended regex.
5248# If you have `file' or equivalent on your system and you're not sure
5249# whether `pass_all' will *always* work, you probably want this one.
5250
5251case $host_os in
5252aix[4-9]*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256beos*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260bsdi[45]*)
5261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5262 lt_cv_file_magic_cmd='/usr/bin/file -L'
5263 lt_cv_file_magic_test_file=/shlib/libc.so
5264 ;;
5265
5266cygwin*)
5267 # func_win32_libid is a shell function defined in ltmain.sh
5268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5269 lt_cv_file_magic_cmd='func_win32_libid'
5270 ;;
5271
5272mingw* | pw32*)
5273 # Base MSYS/MinGW do not provide the 'file' command needed by
5274 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5275 # unless we find 'file', for example because we are cross-compiling.
5276 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5277 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5280 else
5281 # Keep this pattern in sync with the one in func_win32_libid.
5282 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5283 lt_cv_file_magic_cmd='$OBJDUMP -f'
5284 fi
5285 ;;
5286
5287cegcc*)
5288 # use the weaker test based on 'objdump'. See mingw*.
5289 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5290 lt_cv_file_magic_cmd='$OBJDUMP -f'
5291 ;;
5292
5293darwin* | rhapsody*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297freebsd* | dragonfly*)
5298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5299 case $host_cpu in
5300 i*86 )
5301 # Not sure whether the presence of OpenBSD here was a mistake.
5302 # Let's accept both of them until this is cleared up.
5303 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5304 lt_cv_file_magic_cmd=/usr/bin/file
5305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5306 ;;
5307 esac
5308 else
5309 lt_cv_deplibs_check_method=pass_all
5310 fi
5311 ;;
5312
5313gnu*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317haiku*)
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320
5321hpux10.20* | hpux11*)
5322 lt_cv_file_magic_cmd=/usr/bin/file
5323 case $host_cpu in
5324 ia64*)
5325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5327 ;;
5328 hppa*64*)
5329 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]'
5330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5331 ;;
5332 *)
5333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5335 ;;
5336 esac
5337 ;;
5338
5339interix[3-9]*)
5340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5342 ;;
5343
5344irix5* | irix6* | nonstopux*)
5345 case $LD in
5346 *-32|*"-32 ") libmagic=32-bit;;
5347 *-n32|*"-n32 ") libmagic=N32;;
5348 *-64|*"-64 ") libmagic=64-bit;;
5349 *) libmagic=never-match;;
5350 esac
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354# This must be Linux ELF.
5355linux* | k*bsd*-gnu | kopensolaris*-gnu)
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358
5359netbsd*)
5360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5362 else
5363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5364 fi
5365 ;;
5366
5367newos6*)
5368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5369 lt_cv_file_magic_cmd=/usr/bin/file
5370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5371 ;;
5372
5373*nto* | *qnx*)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376
5377openbsd*)
5378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5380 else
5381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5382 fi
5383 ;;
5384
5385osf3* | osf4* | osf5*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389rdos*)
5390 lt_cv_deplibs_check_method=pass_all
5391 ;;
5392
5393solaris*)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396
5397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5398 lt_cv_deplibs_check_method=pass_all
5399 ;;
5400
5401sysv4 | sysv4.3*)
5402 case $host_vendor in
5403 motorola)
5404 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]'
5405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5406 ;;
5407 ncr)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410 sequent)
5411 lt_cv_file_magic_cmd='/bin/file'
5412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5413 ;;
5414 sni)
5415 lt_cv_file_magic_cmd='/bin/file'
5416 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5417 lt_cv_file_magic_test_file=/lib/libc.so
5418 ;;
5419 siemens)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422 pc)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 esac
5426 ;;
5427
5428tpf*)
5429 lt_cv_deplibs_check_method=pass_all
5430 ;;
5431esac
5432
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5435$as_echo "$lt_cv_deplibs_check_method" >&6; }
5436
5437file_magic_glob=
5438want_nocaseglob=no
5439if test "$build" = "$host"; then
5440 case $host_os in
5441 mingw* | pw32*)
5442 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5443 want_nocaseglob=yes
5444 else
5445 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5446 fi
5447 ;;
5448 esac
5449fi
5450
5451file_magic_cmd=$lt_cv_file_magic_cmd
5452deplibs_check_method=$lt_cv_deplibs_check_method
5453test -z "$deplibs_check_method" && deplibs_check_method=unknown
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5478set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if ${ac_cv_prog_DLLTOOL+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483else
5484 if test -n "$DLLTOOL"; then
5485 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499 done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504DLLTOOL=$ac_cv_prog_DLLTOOL
5505if test -n "$DLLTOOL"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5507$as_echo "$DLLTOOL" >&6; }
5508else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514fi
5515if test -z "$ac_cv_prog_DLLTOOL"; then
5516 ac_ct_DLLTOOL=$DLLTOOL
5517 # Extract the first word of "dlltool", so it can be a program name with args.
5518set dummy dlltool; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524 if test -n "$ac_ct_DLLTOOL"; then
5525 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538done
5539 done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5545if test -n "$ac_ct_DLLTOOL"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5547$as_echo "$ac_ct_DLLTOOL" >&6; }
5548else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553 if test "x$ac_ct_DLLTOOL" = x; then
5554 DLLTOOL="false"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557yes:)
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560ac_tool_warned=yes ;;
5561esac
5562 DLLTOOL=$ac_ct_DLLTOOL
5563 fi
5564else
5565 DLLTOOL="$ac_cv_prog_DLLTOOL"
5566fi
5567
5568test -z "$DLLTOOL" && DLLTOOL=dlltool
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5580$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5581if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583else
5584 lt_cv_sharedlib_from_linklib_cmd='unknown'
5585
5586case $host_os in
5587cygwin* | mingw* | pw32* | cegcc*)
5588 # two different shell functions defined in ltmain.sh
5589 # decide which to use based on capabilities of $DLLTOOL
5590 case `$DLLTOOL --help 2>&1` in
5591 *--identify-strict*)
5592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5593 ;;
5594 *)
5595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5596 ;;
5597 esac
5598 ;;
5599*)
5600 # fallback: assume linklib IS sharedlib
5601 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5602 ;;
5603esac
5604
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5607$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5608sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5609test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5610
5611
5612
5613
5614
5615
5616
5617
5618if test -n "$ac_tool_prefix"; then
5619 for ac_prog in ar
5620 do
5621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624$as_echo_n "checking for $ac_word... " >&6; }
5625if ${ac_cv_prog_AR+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627else
5628 if test -n "$AR"; then
5629 ac_cv_prog_AR="$AR" # Let the user override the test.
5630else
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642done
5643 done
5644IFS=$as_save_IFS
5645
5646fi
5647fi
5648AR=$ac_cv_prog_AR
5649if test -n "$AR"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5651$as_echo "$AR" >&6; }
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655fi
5656
5657
5658 test -n "$AR" && break
5659 done
5660fi
5661if test -z "$AR"; then
5662 ac_ct_AR=$AR
5663 for ac_prog in ar
5664do
5665 # Extract the first word of "$ac_prog", so it can be a program name with args.
5666set dummy $ac_prog; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if ${ac_cv_prog_ac_ct_AR+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 if test -n "$ac_ct_AR"; then
5673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_ac_ct_AR="$ac_prog"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687 done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692ac_ct_AR=$ac_cv_prog_ac_ct_AR
5693if test -n "$ac_ct_AR"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5695$as_echo "$ac_ct_AR" >&6; }
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702 test -n "$ac_ct_AR" && break
5703done
5704
5705 if test "x$ac_ct_AR" = x; then
5706 AR="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 AR=$ac_ct_AR
5715 fi
5716fi
5717
5718: ${AR=ar}
5719: ${AR_FLAGS=cru}
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5732$as_echo_n "checking for archiver @FILE support... " >&6; }
5733if ${lt_cv_ar_at_file+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735else
5736 lt_cv_ar_at_file=no
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739
5740int
5741main ()
5742{
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 echo conftest.$ac_objext > conftest.lst
5750 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5752 (eval $lt_ar_try) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755 test $ac_status = 0; }
5756 if test "$ac_status" -eq 0; then
5757 # Ensure the archiver fails upon bogus file names.
5758 rm -f conftest.$ac_objext libconftest.a
5759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5760 (eval $lt_ar_try) 2>&5
5761 ac_status=$?
5762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5763 test $ac_status = 0; }
5764 if test "$ac_status" -ne 0; then
5765 lt_cv_ar_at_file=@
5766 fi
5767 fi
5768 rm -f conftest.* libconftest.a
5769
5770fi
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5775$as_echo "$lt_cv_ar_at_file" >&6; }
5776
5777if test "x$lt_cv_ar_at_file" = xno; then
5778 archiver_list_spec=
5779else
5780 archiver_list_spec=$lt_cv_ar_at_file
5781fi
5782
5783
5784
5785
5786
5787
5788
5789if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5791set dummy ${ac_tool_prefix}strip; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if ${ac_cv_prog_STRIP+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796else
5797 if test -n "$STRIP"; then
5798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812 done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817STRIP=$ac_cv_prog_STRIP
5818if test -n "$STRIP"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5820$as_echo "$STRIP" >&6; }
5821else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827fi
5828if test -z "$ac_cv_prog_STRIP"; then
5829 ac_ct_STRIP=$STRIP
5830 # Extract the first word of "strip", so it can be a program name with args.
5831set dummy strip; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
5834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836else
5837 if test -n "$ac_ct_STRIP"; then
5838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_STRIP="strip"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852 done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5858if test -n "$ac_ct_STRIP"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5860$as_echo "$ac_ct_STRIP" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866 if test "x$ac_ct_STRIP" = x; then
5867 STRIP=":"
5868 else
5869 case $cross_compiling:$ac_tool_warned in
5870yes:)
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873ac_tool_warned=yes ;;
5874esac
5875 STRIP=$ac_ct_STRIP
5876 fi
5877else
5878 STRIP="$ac_cv_prog_STRIP"
5879fi
5880
5881test -z "$STRIP" && STRIP=:
5882
5883
5884
5885
5886
5887
5888if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5890set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if ${ac_cv_prog_RANLIB+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895else
5896 if test -n "$RANLIB"; then
5897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910done
5911 done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916RANLIB=$ac_cv_prog_RANLIB
5917if test -n "$RANLIB"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5919$as_echo "$RANLIB" >&6; }
5920else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925
5926fi
5927if test -z "$ac_cv_prog_RANLIB"; then
5928 ac_ct_RANLIB=$RANLIB
5929 # Extract the first word of "ranlib", so it can be a program name with args.
5930set dummy ranlib; ac_word=$2
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935else
5936 if test -n "$ac_ct_RANLIB"; then
5937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_RANLIB="ranlib"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950done
5951 done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5957if test -n "$ac_ct_RANLIB"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5959$as_echo "$ac_ct_RANLIB" >&6; }
5960else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965 if test "x$ac_ct_RANLIB" = x; then
5966 RANLIB=":"
5967 else
5968 case $cross_compiling:$ac_tool_warned in
5969yes:)
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5972ac_tool_warned=yes ;;
5973esac
5974 RANLIB=$ac_ct_RANLIB
5975 fi
5976else
5977 RANLIB="$ac_cv_prog_RANLIB"
5978fi
5979
5980test -z "$RANLIB" && RANLIB=:
5981
5982
5983
5984
5985
5986
5987# Determine commands to create old-style static archives.
5988old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5989old_postinstall_cmds='chmod 644 $oldlib'
5990old_postuninstall_cmds=
5991
5992if test -n "$RANLIB"; then
5993 case $host_os in
5994 openbsd*)
5995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5996 ;;
5997 *)
5998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5999 ;;
6000 esac
6001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6002fi
6003
6004case $host_os in
6005 darwin*)
6006 lock_old_archive_extraction=yes ;;
6007 *)
6008 lock_old_archive_extraction=no ;;
6009esac
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049# If no C compiler was specified, use CC.
6050LTCC=${LTCC-"$CC"}
6051
6052# If no C compiler flags were specified, use CFLAGS.
6053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6054
6055# Allow CC to be a program name with arguments.
6056compiler=$CC
6057
6058
6059# Check for command to grab the raw symbol name followed by C symbol from nm.
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6061$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6062if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064else
6065
6066# These are sane defaults that work on at least a few old systems.
6067# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6068
6069# Character class describing NM global symbol codes.
6070symcode='[BCDEGRST]'
6071
6072# Regexp to match symbols that can be accessed directly from C.
6073sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6074
6075# Define system-specific variables.
6076case $host_os in
6077aix*)
6078 symcode='[BCDT]'
6079 ;;
6080cygwin* | mingw* | pw32* | cegcc*)
6081 symcode='[ABCDGISTW]'
6082 ;;
6083hpux*)
6084 if test "$host_cpu" = ia64; then
6085 symcode='[ABCDEGRST]'
6086 fi
6087 ;;
6088irix* | nonstopux*)
6089 symcode='[BCDEGRST]'
6090 ;;
6091osf*)
6092 symcode='[BCDEGQRST]'
6093 ;;
6094solaris*)
6095 symcode='[BDRT]'
6096 ;;
6097sco3.2v5*)
6098 symcode='[DT]'
6099 ;;
6100sysv4.2uw2*)
6101 symcode='[DT]'
6102 ;;
6103sysv5* | sco5v6* | unixware* | OpenUNIX*)
6104 symcode='[ABDT]'
6105 ;;
6106sysv4)
6107 symcode='[DFNSTU]'
6108 ;;
6109esac
6110
6111# If we're using GNU nm, then use its standard symbol codes.
6112case `$NM -V 2>&1` in
6113*GNU* | *'with BFD'*)
6114 symcode='[ABCDGIRSTW]' ;;
6115esac
6116
6117# Transform an extracted symbol line into a proper C declaration.
6118# Some systems (esp. on ia64) link data and code symbols differently,
6119# so use this general approach.
6120lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6121
6122# Transform an extracted symbol line into symbol name and symbol address
6123lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6124lt_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'"
6125
6126# Handle CRLF in mingw tool chain
6127opt_cr=
6128case $build_os in
6129mingw*)
6130 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6131 ;;
6132esac
6133
6134# Try without a prefix underscore, then with it.
6135for ac_symprfx in "" "_"; do
6136
6137 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6138 symxfrm="\\1 $ac_symprfx\\2 \\2"
6139
6140 # Write the raw and C identifiers.
6141 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6142 # Fake it for dumpbin and say T for any non-static function
6143 # and D for any global variable.
6144 # Also find C++ and __fastcall symbols from MSVC++,
6145 # which start with @ or ?.
6146 lt_cv_sys_global_symbol_pipe="$AWK '"\
6147" {last_section=section; section=\$ 3};"\
6148" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6149" \$ 0!~/External *\|/{next};"\
6150" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6151" {if(hide[section]) next};"\
6152" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6153" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6154" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6155" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6156" ' prfx=^$ac_symprfx"
6157 else
6158 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6159 fi
6160 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6161
6162 # Check to see that the pipe works correctly.
6163 pipe_works=no
6164
6165 rm -f conftest*
6166 cat > conftest.$ac_ext <<_LT_EOF
6167#ifdef __cplusplus
6168extern "C" {
6169#endif
6170char nm_test_var;
6171void nm_test_func(void);
6172void nm_test_func(void){}
6173#ifdef __cplusplus
6174}
6175#endif
6176int main(){nm_test_var='a';nm_test_func();return(0);}
6177_LT_EOF
6178
6179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6180 (eval $ac_compile) 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183 test $ac_status = 0; }; then
6184 # Now try to grab the symbols.
6185 nlist=conftest.nm
6186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6187 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6188 ac_status=$?
6189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190 test $ac_status = 0; } && test -s "$nlist"; then
6191 # Try sorting and uniquifying the output.
6192 if sort "$nlist" | uniq > "$nlist"T; then
6193 mv -f "$nlist"T "$nlist"
6194 else
6195 rm -f "$nlist"T
6196 fi
6197
6198 # Make sure that we snagged all the symbols we need.
6199 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6200 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6201 cat <<_LT_EOF > conftest.$ac_ext
6202/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6203#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6204/* DATA imports from DLLs on WIN32 con't be const, because runtime
6205 relocations are performed -- see ld's documentation on pseudo-relocs. */
6206# define LT_DLSYM_CONST
6207#elif defined(__osf__)
6208/* This system does not cope well with relocations in const data. */
6209# define LT_DLSYM_CONST
6210#else
6211# define LT_DLSYM_CONST const
6212#endif
6213
6214#ifdef __cplusplus
6215extern "C" {
6216#endif
6217
6218_LT_EOF
6219 # Now generate the symbol file.
6220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6221
6222 cat <<_LT_EOF >> conftest.$ac_ext
6223
6224/* The mapping between symbol names and symbols. */
6225LT_DLSYM_CONST struct {
6226 const char *name;
6227 void *address;
6228}
6229lt__PROGRAM__LTX_preloaded_symbols[] =
6230{
6231 { "@PROGRAM@", (void *) 0 },
6232_LT_EOF
6233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6234 cat <<\_LT_EOF >> conftest.$ac_ext
6235 {0, (void *) 0}
6236};
6237
6238/* This works around a problem in FreeBSD linker */
6239#ifdef FREEBSD_WORKAROUND
6240static const void *lt_preloaded_setup() {
6241 return lt__PROGRAM__LTX_preloaded_symbols;
6242}
6243#endif
6244
6245#ifdef __cplusplus
6246}
6247#endif
6248_LT_EOF
6249 # Now try linking the two files.
6250 mv conftest.$ac_objext conftstm.$ac_objext
6251 lt_globsym_save_LIBS=$LIBS
6252 lt_globsym_save_CFLAGS=$CFLAGS
6253 LIBS="conftstm.$ac_objext"
6254 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6256 (eval $ac_link) 2>&5
6257 ac_status=$?
6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6260 pipe_works=yes
6261 fi
6262 LIBS=$lt_globsym_save_LIBS
6263 CFLAGS=$lt_globsym_save_CFLAGS
6264 else
6265 echo "cannot find nm_test_func in $nlist" >&5
6266 fi
6267 else
6268 echo "cannot find nm_test_var in $nlist" >&5
6269 fi
6270 else
6271 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6272 fi
6273 else
6274 echo "$progname: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6276 fi
6277 rm -rf conftest* conftst*
6278
6279 # Do not use the global_symbol_pipe unless it works.
6280 if test "$pipe_works" = yes; then
6281 break
6282 else
6283 lt_cv_sys_global_symbol_pipe=
6284 fi
6285done
6286
6287fi
6288
6289if test -z "$lt_cv_sys_global_symbol_pipe"; then
6290 lt_cv_sys_global_symbol_to_cdecl=
6291fi
6292if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6294$as_echo "failed" >&6; }
6295else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6297$as_echo "ok" >&6; }
6298fi
6299
6300# Response file support.
6301if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6302 nm_file_list_spec='@'
6303elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6304 nm_file_list_spec='@'
6305fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6334$as_echo_n "checking for sysroot... " >&6; }
6335
6336# Check whether --with-sysroot was given.
6337if test "${with_sysroot+set}" = set; then :
6338 withval=$with_sysroot;
6339else
6340 with_sysroot=no
6341fi
6342
6343
6344lt_sysroot=
6345case ${with_sysroot} in #(
6346 yes)
6347 if test "$GCC" = yes; then
6348 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6349 fi
6350 ;; #(
6351 /*)
6352 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6353 ;; #(
6354 no|'')
6355 ;; #(
6356 *)
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6358$as_echo "${with_sysroot}" >&6; }
6359 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6360 ;;
6361esac
6362
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6364$as_echo "${lt_sysroot:-no}" >&6; }
6365
6366
6367
6368
6369
6370# Check whether --enable-libtool-lock was given.
6371if test "${enable_libtool_lock+set}" = set; then :
6372 enableval=$enable_libtool_lock;
6373fi
6374
6375test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6376
6377# Some flags need to be propagated to the compiler or linker for good
6378# libtool support.
6379case $host in
6380ia64-*-hpux*)
6381 # Find out which ABI we are using.
6382 echo 'int i;' > conftest.$ac_ext
6383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6384 (eval $ac_compile) 2>&5
6385 ac_status=$?
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; }; then
6388 case `/usr/bin/file conftest.$ac_objext` in
6389 *ELF-32*)
6390 HPUX_IA64_MODE="32"
6391 ;;
6392 *ELF-64*)
6393 HPUX_IA64_MODE="64"
6394 ;;
6395 esac
6396 fi
6397 rm -rf conftest*
6398 ;;
6399*-*-irix6*)
6400 # Find out which ABI we are using.
6401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6403 (eval $ac_compile) 2>&5
6404 ac_status=$?
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; }; then
6407 if test "$lt_cv_prog_gnu_ld" = yes; then
6408 case `/usr/bin/file conftest.$ac_objext` in
6409 *32-bit*)
6410 LD="${LD-ld} -melf32bsmip"
6411 ;;
6412 *N32*)
6413 LD="${LD-ld} -melf32bmipn32"
6414 ;;
6415 *64-bit*)
6416 LD="${LD-ld} -melf64bmip"
6417 ;;
6418 esac
6419 else
6420 case `/usr/bin/file conftest.$ac_objext` in
6421 *32-bit*)
6422 LD="${LD-ld} -32"
6423 ;;
6424 *N32*)
6425 LD="${LD-ld} -n32"
6426 ;;
6427 *64-bit*)
6428 LD="${LD-ld} -64"
6429 ;;
6430 esac
6431 fi
6432 fi
6433 rm -rf conftest*
6434 ;;
6435
6436x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6437s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6438 # Find out which ABI we are using.
6439 echo 'int i;' > conftest.$ac_ext
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 case `/usr/bin/file conftest.o` in
6446 *32-bit*)
6447 case $host in
6448 x86_64-*kfreebsd*-gnu)
6449 LD="${LD-ld} -m elf_i386_fbsd"
6450 ;;
6451 x86_64-*linux*)
6452 LD="${LD-ld} -m elf_i386"
6453 ;;
6454 ppc64-*linux*|powerpc64-*linux*)
6455 LD="${LD-ld} -m elf32ppclinux"
6456 ;;
6457 s390x-*linux*)
6458 LD="${LD-ld} -m elf_s390"
6459 ;;
6460 sparc64-*linux*)
6461 LD="${LD-ld} -m elf32_sparc"
6462 ;;
6463 esac
6464 ;;
6465 *64-bit*)
6466 case $host in
6467 x86_64-*kfreebsd*-gnu)
6468 LD="${LD-ld} -m elf_x86_64_fbsd"
6469 ;;
6470 x86_64-*linux*)
6471 LD="${LD-ld} -m elf_x86_64"
6472 ;;
6473 ppc*-*linux*|powerpc*-*linux*)
6474 LD="${LD-ld} -m elf64ppc"
6475 ;;
6476 s390*-*linux*|s390*-*tpf*)
6477 LD="${LD-ld} -m elf64_s390"
6478 ;;
6479 sparc*-*linux*)
6480 LD="${LD-ld} -m elf64_sparc"
6481 ;;
6482 esac
6483 ;;
6484 esac
6485 fi
6486 rm -rf conftest*
6487 ;;
6488
6489*-*-sco3.2v5*)
6490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6491 SAVE_CFLAGS="$CFLAGS"
6492 CFLAGS="$CFLAGS -belf"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6494$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6495if ${lt_cv_cc_needs_belf+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497else
6498 ac_ext=c
6499ac_cpp='$CPP $CPPFLAGS'
6500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502ac_compiler_gnu=$ac_cv_c_compiler_gnu
6503
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h. */
6506
6507int
6508main ()
6509{
6510
6511 ;
6512 return 0;
6513}
6514_ACEOF
6515if ac_fn_c_try_link "$LINENO"; then :
6516 lt_cv_cc_needs_belf=yes
6517else
6518 lt_cv_cc_needs_belf=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 ac_ext=c
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6530$as_echo "$lt_cv_cc_needs_belf" >&6; }
6531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6533 CFLAGS="$SAVE_CFLAGS"
6534 fi
6535 ;;
6536sparc*-*solaris*)
6537 # Find out which ABI we are using.
6538 echo 'int i;' > conftest.$ac_ext
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
6544 case `/usr/bin/file conftest.o` in
6545 *64-bit*)
6546 case $lt_cv_prog_gnu_ld in
6547 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6548 *)
6549 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6550 LD="${LD-ld} -64"
6551 fi
6552 ;;
6553 esac
6554 ;;
6555 esac
6556 fi
6557 rm -rf conftest*
6558 ;;
6559esac
6560
6561need_locks="$enable_libtool_lock"
6562
6563if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6565set dummy ${ac_tool_prefix}mt; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -n "$MANIFEST_TOOL"; then
6572 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586 done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6592if test -n "$MANIFEST_TOOL"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6594$as_echo "$MANIFEST_TOOL" >&6; }
6595else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601fi
6602if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6603 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6604 # Extract the first word of "mt", so it can be a program name with args.
6605set dummy mt; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610else
6611 if test -n "$ac_ct_MANIFEST_TOOL"; then
6612 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625done
6626 done
6627IFS=$as_save_IFS
6628
6629fi
6630fi
6631ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6632if test -n "$ac_ct_MANIFEST_TOOL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6634$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6635else
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637$as_echo "no" >&6; }
6638fi
6639
6640 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6641 MANIFEST_TOOL=":"
6642 else
6643 case $cross_compiling:$ac_tool_warned in
6644yes:)
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6650 fi
6651else
6652 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6653fi
6654
6655test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6657$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6658if ${lt_cv_path_mainfest_tool+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660else
6661 lt_cv_path_mainfest_tool=no
6662 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6663 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6664 cat conftest.err >&5
6665 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6666 lt_cv_path_mainfest_tool=yes
6667 fi
6668 rm -f conftest*
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6671$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6672if test "x$lt_cv_path_mainfest_tool" != xyes; then
6673 MANIFEST_TOOL=:
6674fi
6675
6676
6677
6678
6679
6680
6681 case $host_os in
6682 rhapsody* | darwin*)
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6685set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if ${ac_cv_prog_DSYMUTIL+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690else
6691 if test -n "$DSYMUTIL"; then
6692 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706 done
6707IFS=$as_save_IFS
6708
6709fi
6710fi
6711DSYMUTIL=$ac_cv_prog_DSYMUTIL
6712if test -n "$DSYMUTIL"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6714$as_echo "$DSYMUTIL" >&6; }
6715else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720
6721fi
6722if test -z "$ac_cv_prog_DSYMUTIL"; then
6723 ac_ct_DSYMUTIL=$DSYMUTIL
6724 # Extract the first word of "dsymutil", so it can be a program name with args.
6725set dummy dsymutil; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
6728if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730else
6731 if test -n "$ac_ct_DSYMUTIL"; then
6732 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746 done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
6751ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6752if test -n "$ac_ct_DSYMUTIL"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6754$as_echo "$ac_ct_DSYMUTIL" >&6; }
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760 if test "x$ac_ct_DSYMUTIL" = x; then
6761 DSYMUTIL=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764yes:)
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767ac_tool_warned=yes ;;
6768esac
6769 DSYMUTIL=$ac_ct_DSYMUTIL
6770 fi
6771else
6772 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6773fi
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6777set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_prog_NMEDIT+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782else
6783 if test -n "$NMEDIT"; then
6784 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798 done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803NMEDIT=$ac_cv_prog_NMEDIT
6804if test -n "$NMEDIT"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6806$as_echo "$NMEDIT" >&6; }
6807else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
6812
6813fi
6814if test -z "$ac_cv_prog_NMEDIT"; then
6815 ac_ct_NMEDIT=$NMEDIT
6816 # Extract the first word of "nmedit", so it can be a program name with args.
6817set dummy nmedit; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 if test -n "$ac_ct_NMEDIT"; then
6824 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838 done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6844if test -n "$ac_ct_NMEDIT"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6846$as_echo "$ac_ct_NMEDIT" >&6; }
6847else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852 if test "x$ac_ct_NMEDIT" = x; then
6853 NMEDIT=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856yes:)
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859ac_tool_warned=yes ;;
6860esac
6861 NMEDIT=$ac_ct_NMEDIT
6862 fi
6863else
6864 NMEDIT="$ac_cv_prog_NMEDIT"
6865fi
6866
6867 if test -n "$ac_tool_prefix"; then
6868 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6869set dummy ${ac_tool_prefix}lipo; ac_word=$2
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871$as_echo_n "checking for $ac_word... " >&6; }
6872if ${ac_cv_prog_LIPO+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874else
6875 if test -n "$LIPO"; then
6876 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6885 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890 done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895LIPO=$ac_cv_prog_LIPO
6896if test -n "$LIPO"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6898$as_echo "$LIPO" >&6; }
6899else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901$as_echo "no" >&6; }
6902fi
6903
6904
6905fi
6906if test -z "$ac_cv_prog_LIPO"; then
6907 ac_ct_LIPO=$LIPO
6908 # Extract the first word of "lipo", so it can be a program name with args.
6909set dummy lipo; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914else
6915 if test -n "$ac_ct_LIPO"; then
6916 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_ac_ct_LIPO="lipo"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930 done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6936if test -n "$ac_ct_LIPO"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6938$as_echo "$ac_ct_LIPO" >&6; }
6939else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944 if test "x$ac_ct_LIPO" = x; then
6945 LIPO=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948yes:)
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951ac_tool_warned=yes ;;
6952esac
6953 LIPO=$ac_ct_LIPO
6954 fi
6955else
6956 LIPO="$ac_cv_prog_LIPO"
6957fi
6958
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}otool; ac_word=$2
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963$as_echo_n "checking for $ac_word... " >&6; }
6964if ${ac_cv_prog_OTOOL+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966else
6967 if test -n "$OTOOL"; then
6968 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982 done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987OTOOL=$ac_cv_prog_OTOOL
6988if test -n "$OTOOL"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6990$as_echo "$OTOOL" >&6; }
6991else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_OTOOL"; then
6999 ac_ct_OTOOL=$OTOOL
7000 # Extract the first word of "otool", so it can be a program name with args.
7001set dummy otool; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006else
7007 if test -n "$ac_ct_OTOOL"; then
7008 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_ac_ct_OTOOL="otool"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022 done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7028if test -n "$ac_ct_OTOOL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7030$as_echo "$ac_ct_OTOOL" >&6; }
7031else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036 if test "x$ac_ct_OTOOL" = x; then
7037 OTOOL=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043ac_tool_warned=yes ;;
7044esac
7045 OTOOL=$ac_ct_OTOOL
7046 fi
7047else
7048 OTOOL="$ac_cv_prog_OTOOL"
7049fi
7050
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7053set dummy ${ac_tool_prefix}otool64; ac_word=$2
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if ${ac_cv_prog_OTOOL64+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058else
7059 if test -n "$OTOOL64"; then
7060 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073done
7074 done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079OTOOL64=$ac_cv_prog_OTOOL64
7080if test -n "$OTOOL64"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7082$as_echo "$OTOOL64" >&6; }
7083else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088
7089fi
7090if test -z "$ac_cv_prog_OTOOL64"; then
7091 ac_ct_OTOOL64=$OTOOL64
7092 # Extract the first word of "otool64", so it can be a program name with args.
7093set dummy otool64; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098else
7099 if test -n "$ac_ct_OTOOL64"; then
7100 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_OTOOL64="otool64"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113done
7114 done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7120if test -n "$ac_ct_OTOOL64"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7122$as_echo "$ac_ct_OTOOL64" >&6; }
7123else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128 if test "x$ac_ct_OTOOL64" = x; then
7129 OTOOL64=":"
7130 else
7131 case $cross_compiling:$ac_tool_warned in
7132yes:)
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135ac_tool_warned=yes ;;
7136esac
7137 OTOOL64=$ac_ct_OTOOL64
7138 fi
7139else
7140 OTOOL64="$ac_cv_prog_OTOOL64"
7141fi
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7170$as_echo_n "checking for -single_module linker flag... " >&6; }
7171if ${lt_cv_apple_cc_single_mod+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173else
7174 lt_cv_apple_cc_single_mod=no
7175 if test -z "${LT_MULTI_MODULE}"; then
7176 # By default we will add the -single_module flag. You can override
7177 # by either setting the environment variable LT_MULTI_MODULE
7178 # non-empty at configure time, or by adding -multi_module to the
7179 # link flags.
7180 rm -rf libconftest.dylib*
7181 echo "int foo(void){return 1;}" > conftest.c
7182 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7183-dynamiclib -Wl,-single_module conftest.c" >&5
7184 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7185 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7186 _lt_result=$?
7187 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7188 lt_cv_apple_cc_single_mod=yes
7189 else
7190 cat conftest.err >&5
7191 fi
7192 rm -rf libconftest.dylib*
7193 rm -f conftest.*
7194 fi
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7197$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7199$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7200if ${lt_cv_ld_exported_symbols_list+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202else
7203 lt_cv_ld_exported_symbols_list=no
7204 save_LDFLAGS=$LDFLAGS
7205 echo "_main" > conftest.sym
7206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h. */
7209
7210int
7211main ()
7212{
7213
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_link "$LINENO"; then :
7219 lt_cv_ld_exported_symbols_list=yes
7220else
7221 lt_cv_ld_exported_symbols_list=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 LDFLAGS="$save_LDFLAGS"
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7229$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7231$as_echo_n "checking for -force_load linker flag... " >&6; }
7232if ${lt_cv_ld_force_load+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234else
7235 lt_cv_ld_force_load=no
7236 cat > conftest.c << _LT_EOF
7237int forced_loaded() { return 2;}
7238_LT_EOF
7239 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7240 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7241 echo "$AR cru libconftest.a conftest.o" >&5
7242 $AR cru libconftest.a conftest.o 2>&5
7243 echo "$RANLIB libconftest.a" >&5
7244 $RANLIB libconftest.a 2>&5
7245 cat > conftest.c << _LT_EOF
7246int main() { return 0;}
7247_LT_EOF
7248 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7249 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7250 _lt_result=$?
7251 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7252 lt_cv_ld_force_load=yes
7253 else
7254 cat conftest.err >&5
7255 fi
7256 rm -f conftest.err libconftest.a conftest conftest.c
7257 rm -rf conftest.dSYM
7258
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7261$as_echo "$lt_cv_ld_force_load" >&6; }
7262 case $host_os in
7263 rhapsody* | darwin1.[012])
7264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7265 darwin1.*)
7266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7267 darwin*) # darwin 5.x on
7268 # if running on 10.5 or later, the deployment target defaults
7269 # to the OS version, if on x86, and 10.4, the deployment
7270 # target defaults to 10.4. Don't you love it?
7271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7272 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7274 10.[012]*)
7275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7276 10.*)
7277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7278 esac
7279 ;;
7280 esac
7281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7282 _lt_dar_single_mod='$single_module'
7283 fi
7284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7286 else
7287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7288 fi
7289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7290 _lt_dsymutil='~$DSYMUTIL $lib || :'
7291 else
7292 _lt_dsymutil=
7293 fi
7294 ;;
7295 esac
7296
7297ac_ext=c
7298ac_cpp='$CPP $CPPFLAGS'
7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7303$as_echo_n "checking how to run the C preprocessor... " >&6; }
7304# On Suns, sometimes $CPP names a directory.
7305if test -n "$CPP" && test -d "$CPP"; then
7306 CPP=
7307fi
7308if test -z "$CPP"; then
7309 if ${ac_cv_prog_CPP+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311else
7312 # Double quotes because CPP needs to be expanded
7313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7314 do
7315 ac_preproc_ok=false
7316for ac_c_preproc_warn_flag in '' yes
7317do
7318 # Use a header file that comes with gcc, so configuring glibc
7319 # with a fresh cross-compiler works.
7320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7321 # <limits.h> exists even on freestanding compilers.
7322 # On the NeXT, cc -E runs the code through the compiler's parser,
7323 # not just through cpp. "Syntax error" is here to catch this case.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h. */
7326#ifdef __STDC__
7327# include <limits.h>
7328#else
7329# include <assert.h>
7330#endif
7331 Syntax error
7332_ACEOF
7333if ac_fn_c_try_cpp "$LINENO"; then :
7334
7335else
7336 # Broken: fails on valid input.
7337continue
7338fi
7339rm -f conftest.err conftest.i conftest.$ac_ext
7340
7341 # OK, works on sane cases. Now check whether nonexistent headers
7342 # can be detected and how.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h. */
7345#include <ac_nonexistent.h>
7346_ACEOF
7347if ac_fn_c_try_cpp "$LINENO"; then :
7348 # Broken: success on invalid input.
7349continue
7350else
7351 # Passes both tests.
7352ac_preproc_ok=:
7353break
7354fi
7355rm -f conftest.err conftest.i conftest.$ac_ext
7356
7357done
7358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7359rm -f conftest.i conftest.err conftest.$ac_ext
7360if $ac_preproc_ok; then :
7361 break
7362fi
7363
7364 done
7365 ac_cv_prog_CPP=$CPP
7366
7367fi
7368 CPP=$ac_cv_prog_CPP
7369else
7370 ac_cv_prog_CPP=$CPP
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7373$as_echo "$CPP" >&6; }
7374ac_preproc_ok=false
7375for ac_c_preproc_warn_flag in '' yes
7376do
7377 # Use a header file that comes with gcc, so configuring glibc
7378 # with a fresh cross-compiler works.
7379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 # <limits.h> exists even on freestanding compilers.
7381 # On the NeXT, cc -E runs the code through the compiler's parser,
7382 # not just through cpp. "Syntax error" is here to catch this case.
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h. */
7385#ifdef __STDC__
7386# include <limits.h>
7387#else
7388# include <assert.h>
7389#endif
7390 Syntax error
7391_ACEOF
7392if ac_fn_c_try_cpp "$LINENO"; then :
7393
7394else
7395 # Broken: fails on valid input.
7396continue
7397fi
7398rm -f conftest.err conftest.i conftest.$ac_ext
7399
7400 # OK, works on sane cases. Now check whether nonexistent headers
7401 # can be detected and how.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h. */
7404#include <ac_nonexistent.h>
7405_ACEOF
7406if ac_fn_c_try_cpp "$LINENO"; then :
7407 # Broken: success on invalid input.
7408continue
7409else
7410 # Passes both tests.
7411ac_preproc_ok=:
7412break
7413fi
7414rm -f conftest.err conftest.i conftest.$ac_ext
7415
7416done
7417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418rm -f conftest.i conftest.err conftest.$ac_ext
7419if $ac_preproc_ok; then :
7420
7421else
7422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7424as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7425See \`config.log' for more details" "$LINENO" 5; }
7426fi
7427
7428ac_ext=c
7429ac_cpp='$CPP $CPPFLAGS'
7430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7436$as_echo_n "checking for ANSI C header files... " >&6; }
7437if ${ac_cv_header_stdc+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439else
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442#include <stdlib.h>
7443#include <stdarg.h>
7444#include <string.h>
7445#include <float.h>
7446
7447int
7448main ()
7449{
7450
7451 ;
7452 return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_header_stdc=yes
7457else
7458 ac_cv_header_stdc=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461
7462if test $ac_cv_header_stdc = yes; then
7463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h. */
7466#include <string.h>
7467
7468_ACEOF
7469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7470 $EGREP "memchr" >/dev/null 2>&1; then :
7471
7472else
7473 ac_cv_header_stdc=no
7474fi
7475rm -f conftest*
7476
7477fi
7478
7479if test $ac_cv_header_stdc = yes; then
7480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h. */
7483#include <stdlib.h>
7484
7485_ACEOF
7486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487 $EGREP "free" >/dev/null 2>&1; then :
7488
7489else
7490 ac_cv_header_stdc=no
7491fi
7492rm -f conftest*
7493
7494fi
7495
7496if test $ac_cv_header_stdc = yes; then
7497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7498 if test "$cross_compiling" = yes; then :
7499 :
7500else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503#include <ctype.h>
7504#include <stdlib.h>
7505#if ((' ' & 0x0FF) == 0x020)
7506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7508#else
7509# define ISLOWER(c) \
7510 (('a' <= (c) && (c) <= 'i') \
7511 || ('j' <= (c) && (c) <= 'r') \
7512 || ('s' <= (c) && (c) <= 'z'))
7513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7514#endif
7515
7516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7517int
7518main ()
7519{
7520 int i;
7521 for (i = 0; i < 256; i++)
7522 if (XOR (islower (i), ISLOWER (i))
7523 || toupper (i) != TOUPPER (i))
7524 return 2;
7525 return 0;
7526}
7527_ACEOF
7528if ac_fn_c_try_run "$LINENO"; then :
7529
7530else
7531 ac_cv_header_stdc=no
7532fi
7533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7534 conftest.$ac_objext conftest.beam conftest.$ac_ext
7535fi
7536
7537fi
7538fi
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7540$as_echo "$ac_cv_header_stdc" >&6; }
7541if test $ac_cv_header_stdc = yes; then
7542
7543$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7544
7545fi
7546
7547# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7548for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7549 inttypes.h stdint.h unistd.h
7550do :
7551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7553"
7554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7555 cat >>confdefs.h <<_ACEOF
7556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557_ACEOF
7558
7559fi
7560
7561done
7562
7563
7564for ac_header in dlfcn.h
7565do :
7566 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7567"
7568if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7569 cat >>confdefs.h <<_ACEOF
7570#define HAVE_DLFCN_H 1
7571_ACEOF
7572
7573fi
7574
7575done
7576
7577
7578
7579
7580
7581# Set options
7582
7583
7584
7585 enable_dlopen=no
7586
7587
7588 enable_win32_dll=no
7589
7590
7591 # Check whether --enable-shared was given.
7592if test "${enable_shared+set}" = set; then :
7593 enableval=$enable_shared; p=${PACKAGE-default}
7594 case $enableval in
7595 yes) enable_shared=yes ;;
7596 no) enable_shared=no ;;
7597 *)
7598 enable_shared=no
7599 # Look at the argument we got. We use all the common list separators.
7600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7601 for pkg in $enableval; do
7602 IFS="$lt_save_ifs"
7603 if test "X$pkg" = "X$p"; then
7604 enable_shared=yes
7605 fi
7606 done
7607 IFS="$lt_save_ifs"
7608 ;;
7609 esac
7610else
7611 enable_shared=yes
7612fi
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622 # Check whether --enable-static was given.
7623if test "${enable_static+set}" = set; then :
7624 enableval=$enable_static; p=${PACKAGE-default}
7625 case $enableval in
7626 yes) enable_static=yes ;;
7627 no) enable_static=no ;;
7628 *)
7629 enable_static=no
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7633 IFS="$lt_save_ifs"
7634 if test "X$pkg" = "X$p"; then
7635 enable_static=yes
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639 ;;
7640 esac
7641else
7642 enable_static=yes
7643fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654# Check whether --with-pic was given.
7655if test "${with_pic+set}" = set; then :
7656 withval=$with_pic; pic_mode="$withval"
7657else
7658 pic_mode=default
7659fi
7660
7661
7662test -z "$pic_mode" && pic_mode=default
7663
7664
7665
7666
7667
7668
7669
7670 # Check whether --enable-fast-install was given.
7671if test "${enable_fast_install+set}" = set; then :
7672 enableval=$enable_fast_install; p=${PACKAGE-default}
7673 case $enableval in
7674 yes) enable_fast_install=yes ;;
7675 no) enable_fast_install=no ;;
7676 *)
7677 enable_fast_install=no
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7680 for pkg in $enableval; do
7681 IFS="$lt_save_ifs"
7682 if test "X$pkg" = "X$p"; then
7683 enable_fast_install=yes
7684 fi
7685 done
7686 IFS="$lt_save_ifs"
7687 ;;
7688 esac
7689else
7690 enable_fast_install=yes
7691fi
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703# This can be used to rebuild libtool when needed
7704LIBTOOL_DEPS="$ltmain"
7705
7706# Always use our own libtool.
7707LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734test -z "$LN_S" && LN_S="ln -s"
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749if test -n "${ZSH_VERSION+set}" ; then
7750 setopt NO_GLOB_SUBST
7751fi
7752
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7754$as_echo_n "checking for objdir... " >&6; }
7755if ${lt_cv_objdir+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757else
7758 rm -f .libs 2>/dev/null
7759mkdir .libs 2>/dev/null
7760if test -d .libs; then
7761 lt_cv_objdir=.libs
7762else
7763 # MS-DOS does not allow filenames that begin with a dot.
7764 lt_cv_objdir=_libs
7765fi
7766rmdir .libs 2>/dev/null
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7769$as_echo "$lt_cv_objdir" >&6; }
7770objdir=$lt_cv_objdir
7771
7772
7773
7774
7775
7776cat >>confdefs.h <<_ACEOF
7777#define LT_OBJDIR "$lt_cv_objdir/"
7778_ACEOF
7779
7780
7781
7782
7783case $host_os in
7784aix3*)
7785 # AIX sometimes has problems with the GCC collect2 program. For some
7786 # reason, if we set the COLLECT_NAMES environment variable, the problems
7787 # vanish in a puff of smoke.
7788 if test "X${COLLECT_NAMES+set}" != Xset; then
7789 COLLECT_NAMES=
7790 export COLLECT_NAMES
7791 fi
7792 ;;
7793esac
7794
7795# Global variables:
7796ofile=libtool
7797can_build_shared=yes
7798
7799# All known linkers require a `.a' archive for static linking (except MSVC,
7800# which needs '.lib').
7801libext=a
7802
7803with_gnu_ld="$lt_cv_prog_gnu_ld"
7804
7805old_CC="$CC"
7806old_CFLAGS="$CFLAGS"
7807
7808# Set sane defaults for various variables
7809test -z "$CC" && CC=cc
7810test -z "$LTCC" && LTCC=$CC
7811test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7812test -z "$LD" && LD=ld
7813test -z "$ac_objext" && ac_objext=o
7814
7815for cc_temp in $compiler""; do
7816 case $cc_temp in
7817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7819 \-*) ;;
7820 *) break;;
7821 esac
7822done
7823cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7824
7825
7826# Only perform the check for file, if the check method requires it
7827test -z "$MAGIC_CMD" && MAGIC_CMD=file
7828case $deplibs_check_method in
7829file_magic*)
7830 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7832$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7833if ${lt_cv_path_MAGIC_CMD+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 case $MAGIC_CMD in
7837[\\/*] | ?:[\\/]*)
7838 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7839 ;;
7840*)
7841 lt_save_MAGIC_CMD="$MAGIC_CMD"
7842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7843 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7844 for ac_dir in $ac_dummy; do
7845 IFS="$lt_save_ifs"
7846 test -z "$ac_dir" && ac_dir=.
7847 if test -f $ac_dir/${ac_tool_prefix}file; then
7848 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7849 if test -n "$file_magic_test_file"; then
7850 case $deplibs_check_method in
7851 "file_magic "*)
7852 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7854 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7855 $EGREP "$file_magic_regex" > /dev/null; then
7856 :
7857 else
7858 cat <<_LT_EOF 1>&2
7859
7860*** Warning: the command libtool uses to detect shared libraries,
7861*** $file_magic_cmd, produces output that libtool cannot recognize.
7862*** The result is that libtool may fail to recognize shared libraries
7863*** as such. This will affect the creation of libtool libraries that
7864*** depend on shared libraries, but programs linked with such libtool
7865*** libraries will work regardless of this problem. Nevertheless, you
7866*** may want to report the problem to your system manager and/or to
7867*** bug-libtool@gnu.org
7868
7869_LT_EOF
7870 fi ;;
7871 esac
7872 fi
7873 break
7874 fi
7875 done
7876 IFS="$lt_save_ifs"
7877 MAGIC_CMD="$lt_save_MAGIC_CMD"
7878 ;;
7879esac
7880fi
7881
7882MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7883if test -n "$MAGIC_CMD"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7885$as_echo "$MAGIC_CMD" >&6; }
7886else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891
7892
7893
7894
7895if test -z "$lt_cv_path_MAGIC_CMD"; then
7896 if test -n "$ac_tool_prefix"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7898$as_echo_n "checking for file... " >&6; }
7899if ${lt_cv_path_MAGIC_CMD+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901else
7902 case $MAGIC_CMD in
7903[\\/*] | ?:[\\/]*)
7904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7905 ;;
7906*)
7907 lt_save_MAGIC_CMD="$MAGIC_CMD"
7908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7910 for ac_dir in $ac_dummy; do
7911 IFS="$lt_save_ifs"
7912 test -z "$ac_dir" && ac_dir=.
7913 if test -f $ac_dir/file; then
7914 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7915 if test -n "$file_magic_test_file"; then
7916 case $deplibs_check_method in
7917 "file_magic "*)
7918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7921 $EGREP "$file_magic_regex" > /dev/null; then
7922 :
7923 else
7924 cat <<_LT_EOF 1>&2
7925
7926*** Warning: the command libtool uses to detect shared libraries,
7927*** $file_magic_cmd, produces output that libtool cannot recognize.
7928*** The result is that libtool may fail to recognize shared libraries
7929*** as such. This will affect the creation of libtool libraries that
7930*** depend on shared libraries, but programs linked with such libtool
7931*** libraries will work regardless of this problem. Nevertheless, you
7932*** may want to report the problem to your system manager and/or to
7933*** bug-libtool@gnu.org
7934
7935_LT_EOF
7936 fi ;;
7937 esac
7938 fi
7939 break
7940 fi
7941 done
7942 IFS="$lt_save_ifs"
7943 MAGIC_CMD="$lt_save_MAGIC_CMD"
7944 ;;
7945esac
7946fi
7947
7948MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949if test -n "$MAGIC_CMD"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7951$as_echo "$MAGIC_CMD" >&6; }
7952else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957
7958 else
7959 MAGIC_CMD=:
7960 fi
7961fi
7962
7963 fi
7964 ;;
7965esac
7966
7967# Use C for the default configuration in the libtool script
7968
7969lt_save_CC="$CC"
7970ac_ext=c
7971ac_cpp='$CPP $CPPFLAGS'
7972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
7976
7977# Source file extension for C test sources.
7978ac_ext=c
7979
7980# Object file extension for compiled C test sources.
7981objext=o
7982objext=$objext
7983
7984# Code to be used in simple compile tests
7985lt_simple_compile_test_code="int some_variable = 0;"
7986
7987# Code to be used in simple link tests
7988lt_simple_link_test_code='int main(){return(0);}'
7989
7990
7991
7992
7993
7994
7995
7996# If no C compiler was specified, use CC.
7997LTCC=${LTCC-"$CC"}
7998
7999# If no C compiler flags were specified, use CFLAGS.
8000LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8001
8002# Allow CC to be a program name with arguments.
8003compiler=$CC
8004
8005# Save the default compiler, since it gets overwritten when the other
8006# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8007compiler_DEFAULT=$CC
8008
8009# save warnings/boilerplate of simple test code
8010ac_outfile=conftest.$ac_objext
8011echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8013_lt_compiler_boilerplate=`cat conftest.err`
8014$RM conftest*
8015
8016ac_outfile=conftest.$ac_objext
8017echo "$lt_simple_link_test_code" >conftest.$ac_ext
8018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8019_lt_linker_boilerplate=`cat conftest.err`
8020$RM -r conftest*
8021
8022
8023## CAVEAT EMPTOR:
8024## There is no encapsulation within the following macros, do not change
8025## the running order or otherwise move them around unless you know exactly
8026## what you are doing...
8027if test -n "$compiler"; then
8028
8029lt_prog_compiler_no_builtin_flag=
8030
8031if test "$GCC" = yes; then
8032 case $cc_basename in
8033 nvcc*)
8034 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8035 *)
8036 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8037 esac
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8040$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8041if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043else
8044 lt_cv_prog_compiler_rtti_exceptions=no
8045 ac_outfile=conftest.$ac_objext
8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047 lt_compiler_flag="-fno-rtti -fno-exceptions"
8048 # Insert the option either (1) after the last *FLAGS variable, or
8049 # (2) before a word containing "conftest.", or (3) at the end.
8050 # Note that $ac_compile itself does not contain backslashes and begins
8051 # with a dollar sign (not a hyphen), so the echo should work correctly.
8052 # The option is referenced via a variable to avoid confusing sed.
8053 lt_compile=`echo "$ac_compile" | $SED \
8054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8056 -e 's:$: $lt_compiler_flag:'`
8057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8058 (eval "$lt_compile" 2>conftest.err)
8059 ac_status=$?
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 if (exit $ac_status) && test -s "$ac_outfile"; then
8063 # The compiler can only warn and ignore the option if not recognized
8064 # So say no if there are warnings other than the usual output.
8065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8068 lt_cv_prog_compiler_rtti_exceptions=yes
8069 fi
8070 fi
8071 $RM conftest*
8072
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8075$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8076
8077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8078 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8079else
8080 :
8081fi
8082
8083fi
8084
8085
8086
8087
8088
8089
8090 lt_prog_compiler_wl=
8091lt_prog_compiler_pic=
8092lt_prog_compiler_static=
8093
8094
8095 if test "$GCC" = yes; then
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_static='-static'
8098
8099 case $host_os in
8100 aix*)
8101 # All AIX code is PIC.
8102 if test "$host_cpu" = ia64; then
8103 # AIX 5 now supports IA64 processor
8104 lt_prog_compiler_static='-Bstatic'
8105 fi
8106 ;;
8107
8108 amigaos*)
8109 case $host_cpu in
8110 powerpc)
8111 # see comment about AmigaOS4 .so support
8112 lt_prog_compiler_pic='-fPIC'
8113 ;;
8114 m68k)
8115 # FIXME: we need at least 68020 code to build shared libraries, but
8116 # adding the `-m68020' flag to GCC prevents building anything better,
8117 # like `-m68040'.
8118 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8119 ;;
8120 esac
8121 ;;
8122
8123 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8124 # PIC is the default for these OSes.
8125 ;;
8126
8127 mingw* | cygwin* | pw32* | os2* | cegcc*)
8128 # This hack is so that the source file can tell whether it is being
8129 # built for inclusion in a dll (and should export symbols for example).
8130 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8131 # (--disable-auto-import) libraries
8132 lt_prog_compiler_pic='-DDLL_EXPORT'
8133 ;;
8134
8135 darwin* | rhapsody*)
8136 # PIC is the default on this platform
8137 # Common symbols not allowed in MH_DYLIB files
8138 lt_prog_compiler_pic='-fno-common'
8139 ;;
8140
8141 haiku*)
8142 # PIC is the default for Haiku.
8143 # The "-static" flag exists, but is broken.
8144 lt_prog_compiler_static=
8145 ;;
8146
8147 hpux*)
8148 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8149 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8150 # sets the default TLS model and affects inlining.
8151 case $host_cpu in
8152 hppa*64*)
8153 # +Z the default
8154 ;;
8155 *)
8156 lt_prog_compiler_pic='-fPIC'
8157 ;;
8158 esac
8159 ;;
8160
8161 interix[3-9]*)
8162 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8163 # Instead, we relocate shared libraries at runtime.
8164 ;;
8165
8166 msdosdjgpp*)
8167 # Just because we use GCC doesn't mean we suddenly get shared libraries
8168 # on systems that don't support them.
8169 lt_prog_compiler_can_build_shared=no
8170 enable_shared=no
8171 ;;
8172
8173 *nto* | *qnx*)
8174 # QNX uses GNU C++, but need to define -shared option too, otherwise
8175 # it will coredump.
8176 lt_prog_compiler_pic='-fPIC -shared'
8177 ;;
8178
8179 sysv4*MP*)
8180 if test -d /usr/nec; then
8181 lt_prog_compiler_pic=-Kconform_pic
8182 fi
8183 ;;
8184
8185 *)
8186 lt_prog_compiler_pic='-fPIC'
8187 ;;
8188 esac
8189
8190 case $cc_basename in
8191 nvcc*) # Cuda Compiler Driver 2.2
8192 lt_prog_compiler_wl='-Xlinker '
8193 lt_prog_compiler_pic='-Xcompiler -fPIC'
8194 ;;
8195 esac
8196 else
8197 # PORTME Check for flag to pass linker flags through the system compiler.
8198 case $host_os in
8199 aix*)
8200 lt_prog_compiler_wl='-Wl,'
8201 if test "$host_cpu" = ia64; then
8202 # AIX 5 now supports IA64 processor
8203 lt_prog_compiler_static='-Bstatic'
8204 else
8205 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8206 fi
8207 ;;
8208
8209 mingw* | cygwin* | pw32* | os2* | cegcc*)
8210 # This hack is so that the source file can tell whether it is being
8211 # built for inclusion in a dll (and should export symbols for example).
8212 lt_prog_compiler_pic='-DDLL_EXPORT'
8213 ;;
8214
8215 hpux9* | hpux10* | hpux11*)
8216 lt_prog_compiler_wl='-Wl,'
8217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8218 # not for PA HP-UX.
8219 case $host_cpu in
8220 hppa*64*|ia64*)
8221 # +Z the default
8222 ;;
8223 *)
8224 lt_prog_compiler_pic='+Z'
8225 ;;
8226 esac
8227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8228 lt_prog_compiler_static='${wl}-a ${wl}archive'
8229 ;;
8230
8231 irix5* | irix6* | nonstopux*)
8232 lt_prog_compiler_wl='-Wl,'
8233 # PIC (with -KPIC) is the default.
8234 lt_prog_compiler_static='-non_shared'
8235 ;;
8236
8237 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8238 case $cc_basename in
8239 # old Intel for x86_64 which still supported -KPIC.
8240 ecc*)
8241 lt_prog_compiler_wl='-Wl,'
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-static'
8244 ;;
8245 # icc used to be incompatible with GCC.
8246 # ICC 10 doesn't accept -KPIC any more.
8247 icc* | ifort*)
8248 lt_prog_compiler_wl='-Wl,'
8249 lt_prog_compiler_pic='-fPIC'
8250 lt_prog_compiler_static='-static'
8251 ;;
8252 # Lahey Fortran 8.1.
8253 lf95*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='--shared'
8256 lt_prog_compiler_static='--static'
8257 ;;
8258 nagfor*)
8259 # NAG Fortran compiler
8260 lt_prog_compiler_wl='-Wl,-Wl,,'
8261 lt_prog_compiler_pic='-PIC'
8262 lt_prog_compiler_static='-Bstatic'
8263 ;;
8264 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8265 # Portland Group compilers (*not* the Pentium gcc compiler,
8266 # which looks to be a dead project)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-fpic'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271 ccc*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # All Alpha code is PIC.
8274 lt_prog_compiler_static='-non_shared'
8275 ;;
8276 xl* | bgxl* | bgf* | mpixl*)
8277 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_pic='-qpic'
8280 lt_prog_compiler_static='-qstaticlink'
8281 ;;
8282 *)
8283 case `$CC -V 2>&1 | sed 5q` in
8284 *Sun\ F* | *Sun*Fortran*)
8285 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8286 lt_prog_compiler_pic='-KPIC'
8287 lt_prog_compiler_static='-Bstatic'
8288 lt_prog_compiler_wl=''
8289 ;;
8290 *Sun\ C*)
8291 # Sun C 5.9
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-Bstatic'
8294 lt_prog_compiler_wl='-Wl,'
8295 ;;
8296 esac
8297 ;;
8298 esac
8299 ;;
8300
8301 newsos6)
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 ;;
8305
8306 *nto* | *qnx*)
8307 # QNX uses GNU C++, but need to define -shared option too, otherwise
8308 # it will coredump.
8309 lt_prog_compiler_pic='-fPIC -shared'
8310 ;;
8311
8312 osf3* | osf4* | osf5*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # All OSF/1 code is PIC.
8315 lt_prog_compiler_static='-non_shared'
8316 ;;
8317
8318 rdos*)
8319 lt_prog_compiler_static='-non_shared'
8320 ;;
8321
8322 solaris*)
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-Bstatic'
8325 case $cc_basename in
8326 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8327 lt_prog_compiler_wl='-Qoption ld ';;
8328 *)
8329 lt_prog_compiler_wl='-Wl,';;
8330 esac
8331 ;;
8332
8333 sunos4*)
8334 lt_prog_compiler_wl='-Qoption ld '
8335 lt_prog_compiler_pic='-PIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338
8339 sysv4 | sysv4.2uw2* | sysv4.3*)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344
8345 sysv4*MP*)
8346 if test -d /usr/nec ;then
8347 lt_prog_compiler_pic='-Kconform_pic'
8348 lt_prog_compiler_static='-Bstatic'
8349 fi
8350 ;;
8351
8352 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 ;;
8357
8358 unicos*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_can_build_shared=no
8361 ;;
8362
8363 uts4*)
8364 lt_prog_compiler_pic='-pic'
8365 lt_prog_compiler_static='-Bstatic'
8366 ;;
8367
8368 *)
8369 lt_prog_compiler_can_build_shared=no
8370 ;;
8371 esac
8372 fi
8373
8374case $host_os in
8375 # For platforms which do not support PIC, -DPIC is meaningless:
8376 *djgpp*)
8377 lt_prog_compiler_pic=
8378 ;;
8379 *)
8380 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8381 ;;
8382esac
8383
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8385$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8386if ${lt_cv_prog_compiler_pic+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388else
8389 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8392$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8393lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8394
8395#
8396# Check to make sure the PIC flag actually works.
8397#
8398if test -n "$lt_prog_compiler_pic"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8400$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8401if ${lt_cv_prog_compiler_pic_works+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403else
8404 lt_cv_prog_compiler_pic_works=no
8405 ac_outfile=conftest.$ac_objext
8406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 # The option is referenced via a variable to avoid confusing sed.
8413 lt_compile=`echo "$ac_compile" | $SED \
8414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8416 -e 's:$: $lt_compiler_flag:'`
8417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8418 (eval "$lt_compile" 2>conftest.err)
8419 ac_status=$?
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 if (exit $ac_status) && test -s "$ac_outfile"; then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings other than the usual output.
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_pic_works=yes
8429 fi
8430 fi
8431 $RM conftest*
8432
8433fi
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8435$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8436
8437if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8438 case $lt_prog_compiler_pic in
8439 "" | " "*) ;;
8440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8441 esac
8442else
8443 lt_prog_compiler_pic=
8444 lt_prog_compiler_can_build_shared=no
8445fi
8446
8447fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459#
8460# Check to make sure the static flag actually works.
8461#
8462wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8464$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8465if ${lt_cv_prog_compiler_static_works+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 lt_cv_prog_compiler_static_works=no
8469 save_LDFLAGS="$LDFLAGS"
8470 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8471 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8473 # The linker can only warn and ignore the option if not recognized
8474 # So say no if there are warnings
8475 if test -s conftest.err; then
8476 # Append any errors to the config.log.
8477 cat conftest.err 1>&5
8478 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8480 if diff conftest.exp conftest.er2 >/dev/null; then
8481 lt_cv_prog_compiler_static_works=yes
8482 fi
8483 else
8484 lt_cv_prog_compiler_static_works=yes
8485 fi
8486 fi
8487 $RM -r conftest*
8488 LDFLAGS="$save_LDFLAGS"
8489
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8492$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8493
8494if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8495 :
8496else
8497 lt_prog_compiler_static=
8498fi
8499
8500
8501
8502
8503
8504
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8507$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8508if ${lt_cv_prog_compiler_c_o+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510else
8511 lt_cv_prog_compiler_c_o=no
8512 $RM -r conftest 2>/dev/null
8513 mkdir conftest
8514 cd conftest
8515 mkdir out
8516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8517
8518 lt_compiler_flag="-o out/conftest2.$ac_objext"
8519 # Insert the option either (1) after the last *FLAGS variable, or
8520 # (2) before a word containing "conftest.", or (3) at the end.
8521 # Note that $ac_compile itself does not contain backslashes and begins
8522 # with a dollar sign (not a hyphen), so the echo should work correctly.
8523 lt_compile=`echo "$ac_compile" | $SED \
8524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526 -e 's:$: $lt_compiler_flag:'`
8527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8528 (eval "$lt_compile" 2>out/conftest.err)
8529 ac_status=$?
8530 cat out/conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8533 then
8534 # The compiler can only warn and ignore the option if not recognized
8535 # So say no if there are warnings
8536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8539 lt_cv_prog_compiler_c_o=yes
8540 fi
8541 fi
8542 chmod u+w . 2>&5
8543 $RM conftest*
8544 # SGI C++ compiler will create directory out/ii_files/ for
8545 # template instantiation
8546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8547 $RM out/* && rmdir out
8548 cd ..
8549 $RM -r conftest
8550 $RM conftest*
8551
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8554$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8555
8556
8557
8558
8559
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8562$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8563if ${lt_cv_prog_compiler_c_o+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565else
8566 lt_cv_prog_compiler_c_o=no
8567 $RM -r conftest 2>/dev/null
8568 mkdir conftest
8569 cd conftest
8570 mkdir out
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572
8573 lt_compiler_flag="-o out/conftest2.$ac_objext"
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>out/conftest.err)
8584 ac_status=$?
8585 cat out/conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8588 then
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_c_o=yes
8595 fi
8596 fi
8597 chmod u+w . 2>&5
8598 $RM conftest*
8599 # SGI C++ compiler will create directory out/ii_files/ for
8600 # template instantiation
8601 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8602 $RM out/* && rmdir out
8603 cd ..
8604 $RM -r conftest
8605 $RM conftest*
8606
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8609$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8610
8611
8612
8613
8614hard_links="nottested"
8615if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8616 # do not overwrite the value of need_locks provided by the user
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8618$as_echo_n "checking if we can lock with hard links... " >&6; }
8619 hard_links=yes
8620 $RM conftest*
8621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8622 touch conftest.a
8623 ln conftest.a conftest.b 2>&5 || hard_links=no
8624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8626$as_echo "$hard_links" >&6; }
8627 if test "$hard_links" = no; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8629$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8630 need_locks=warn
8631 fi
8632else
8633 need_locks=no
8634fi
8635
8636
8637
8638
8639
8640
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8642$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8643
8644 runpath_var=
8645 allow_undefined_flag=
8646 always_export_symbols=no
8647 archive_cmds=
8648 archive_expsym_cmds=
8649 compiler_needs_object=no
8650 enable_shared_with_static_runtimes=no
8651 export_dynamic_flag_spec=
8652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8653 hardcode_automatic=no
8654 hardcode_direct=no
8655 hardcode_direct_absolute=no
8656 hardcode_libdir_flag_spec=
8657 hardcode_libdir_flag_spec_ld=
8658 hardcode_libdir_separator=
8659 hardcode_minus_L=no
8660 hardcode_shlibpath_var=unsupported
8661 inherit_rpath=no
8662 link_all_deplibs=unknown
8663 module_cmds=
8664 module_expsym_cmds=
8665 old_archive_from_new_cmds=
8666 old_archive_from_expsyms_cmds=
8667 thread_safe_flag_spec=
8668 whole_archive_flag_spec=
8669 # include_expsyms should be a list of space-separated symbols to be *always*
8670 # included in the symbol list
8671 include_expsyms=
8672 # exclude_expsyms can be an extended regexp of symbols to exclude
8673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8675 # as well as any symbol that contains `d'.
8676 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8678 # platforms (ab)use it in PIC code, but their linkers get confused if
8679 # the symbol is explicitly referenced. Since portable code cannot
8680 # rely on this symbol name, it's probably fine to never include it in
8681 # preloaded symbol tables.
8682 # Exclude shared library initialization/finalization symbols.
8683 extract_expsyms_cmds=
8684
8685 case $host_os in
8686 cygwin* | mingw* | pw32* | cegcc*)
8687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8688 # When not using gcc, we currently assume that we are using
8689 # Microsoft Visual C++.
8690 if test "$GCC" != yes; then
8691 with_gnu_ld=no
8692 fi
8693 ;;
8694 interix*)
8695 # we just hope/assume this is gcc and not c89 (= MSVC++)
8696 with_gnu_ld=yes
8697 ;;
8698 openbsd*)
8699 with_gnu_ld=no
8700 ;;
8701 esac
8702
8703 ld_shlibs=yes
8704
8705 # On some targets, GNU ld is compatible enough with the native linker
8706 # that we're better off using the native interface for both.
8707 lt_use_gnu_ld_interface=no
8708 if test "$with_gnu_ld" = yes; then
8709 case $host_os in
8710 aix*)
8711 # The AIX port of GNU ld has always aspired to compatibility
8712 # with the native linker. However, as the warning in the GNU ld
8713 # block says, versions before 2.19.5* couldn't really create working
8714 # shared libraries, regardless of the interface used.
8715 case `$LD -v 2>&1` in
8716 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8717 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8718 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8719 *)
8720 lt_use_gnu_ld_interface=yes
8721 ;;
8722 esac
8723 ;;
8724 *)
8725 lt_use_gnu_ld_interface=yes
8726 ;;
8727 esac
8728 fi
8729
8730 if test "$lt_use_gnu_ld_interface" = yes; then
8731 # If archive_cmds runs LD, not CC, wlarc should be empty
8732 wlarc='${wl}'
8733
8734 # Set some defaults for GNU ld with shared library support. These
8735 # are reset later if shared libraries are not supported. Putting them
8736 # here allows them to be overridden if necessary.
8737 runpath_var=LD_RUN_PATH
8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739 export_dynamic_flag_spec='${wl}--export-dynamic'
8740 # ancient GNU ld didn't support --whole-archive et. al.
8741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8742 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8743 else
8744 whole_archive_flag_spec=
8745 fi
8746 supports_anon_versioning=no
8747 case `$LD -v 2>&1` in
8748 *GNU\ gold*) supports_anon_versioning=yes ;;
8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8750 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8751 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8752 *\ 2.11.*) ;; # other 2.11 versions
8753 *) supports_anon_versioning=yes ;;
8754 esac
8755
8756 # See if GNU ld supports shared libraries.
8757 case $host_os in
8758 aix[3-9]*)
8759 # On AIX/PPC, the GNU linker is very broken
8760 if test "$host_cpu" != ia64; then
8761 ld_shlibs=no
8762 cat <<_LT_EOF 1>&2
8763
8764*** Warning: the GNU linker, at least up to release 2.19, is reported
8765*** to be unable to reliably create shared libraries on AIX.
8766*** Therefore, libtool is disabling shared libraries support. If you
8767*** really care for shared libraries, you may want to install binutils
8768*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8769*** You will then need to restart the configuration process.
8770
8771_LT_EOF
8772 fi
8773 ;;
8774
8775 amigaos*)
8776 case $host_cpu in
8777 powerpc)
8778 # see comment about AmigaOS4 .so support
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds=''
8781 ;;
8782 m68k)
8783 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)'
8784 hardcode_libdir_flag_spec='-L$libdir'
8785 hardcode_minus_L=yes
8786 ;;
8787 esac
8788 ;;
8789
8790 beos*)
8791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792 allow_undefined_flag=unsupported
8793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8794 # support --undefined. This deserves some investigation. FIXME
8795 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 else
8797 ld_shlibs=no
8798 fi
8799 ;;
8800
8801 cygwin* | mingw* | pw32* | cegcc*)
8802 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8803 # as there is no search path for DLLs.
8804 hardcode_libdir_flag_spec='-L$libdir'
8805 export_dynamic_flag_spec='${wl}--export-all-symbols'
8806 allow_undefined_flag=unsupported
8807 always_export_symbols=no
8808 enable_shared_with_static_runtimes=yes
8809 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8810 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8811
8812 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8814 # If the export-symbols file already is a .def file (1st line
8815 # is EXPORTS), use it as is; otherwise, prepend...
8816 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8817 cp $export_symbols $output_objdir/$soname.def;
8818 else
8819 echo EXPORTS > $output_objdir/$soname.def;
8820 cat $export_symbols >> $output_objdir/$soname.def;
8821 fi~
8822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823 else
8824 ld_shlibs=no
8825 fi
8826 ;;
8827
8828 haiku*)
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 link_all_deplibs=yes
8831 ;;
8832
8833 interix[3-9]*)
8834 hardcode_direct=no
8835 hardcode_shlibpath_var=no
8836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837 export_dynamic_flag_spec='${wl}-E'
8838 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8839 # Instead, shared libraries are loaded at an image base (0x10000000 by
8840 # default) and relocated if they conflict, which is a slow very memory
8841 # consuming and fragmenting process. To avoid this, we pick a random,
8842 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8843 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8845 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'
8846 ;;
8847
8848 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8849 tmp_diet=no
8850 if test "$host_os" = linux-dietlibc; then
8851 case $cc_basename in
8852 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8853 esac
8854 fi
8855 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8856 && test "$tmp_diet" = no
8857 then
8858 tmp_addflag=' $pic_flag'
8859 tmp_sharedflag='-shared'
8860 case $cc_basename,$host_cpu in
8861 pgcc*) # Portland Group C compiler
8862 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'
8863 tmp_addflag=' $pic_flag'
8864 ;;
8865 pgf77* | pgf90* | pgf95* | pgfortran*)
8866 # Portland Group f77 and f90 compilers
8867 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'
8868 tmp_addflag=' $pic_flag -Mnomain' ;;
8869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8870 tmp_addflag=' -i_dynamic' ;;
8871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8872 tmp_addflag=' -i_dynamic -nofor_main' ;;
8873 ifc* | ifort*) # Intel Fortran compiler
8874 tmp_addflag=' -nofor_main' ;;
8875 lf95*) # Lahey Fortran 8.1
8876 whole_archive_flag_spec=
8877 tmp_sharedflag='--shared' ;;
8878 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8879 tmp_sharedflag='-qmkshrobj'
8880 tmp_addflag= ;;
8881 nvcc*) # Cuda Compiler Driver 2.2
8882 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'
8883 compiler_needs_object=yes
8884 ;;
8885 esac
8886 case `$CC -V 2>&1 | sed 5q` in
8887 *Sun\ C*) # Sun C 5.9
8888 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'
8889 compiler_needs_object=yes
8890 tmp_sharedflag='-G' ;;
8891 *Sun\ F*) # Sun Fortran 8.3
8892 tmp_sharedflag='-G' ;;
8893 esac
8894 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895
8896 if test "x$supports_anon_versioning" = xyes; then
8897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8899 echo "local: *; };" >> $output_objdir/$libname.ver~
8900 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8901 fi
8902
8903 case $cc_basename in
8904 xlf* | bgf* | bgxlf* | mpixlf*)
8905 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8906 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8907 hardcode_libdir_flag_spec=
8908 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8909 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8910 if test "x$supports_anon_versioning" = xyes; then
8911 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8913 echo "local: *; };" >> $output_objdir/$libname.ver~
8914 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8915 fi
8916 ;;
8917 esac
8918 else
8919 ld_shlibs=no
8920 fi
8921 ;;
8922
8923 netbsd*)
8924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8925 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8926 wlarc=
8927 else
8928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8930 fi
8931 ;;
8932
8933 solaris*)
8934 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8935 ld_shlibs=no
8936 cat <<_LT_EOF 1>&2
8937
8938*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8939*** create shared libraries on Solaris systems. Therefore, libtool
8940*** is disabling shared libraries support. We urge you to upgrade GNU
8941*** binutils to release 2.9.1 or newer. Another option is to modify
8942*** your PATH or compiler configuration so that the native linker is
8943*** used, and then restart.
8944
8945_LT_EOF
8946 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953
8954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8955 case `$LD -v 2>&1` in
8956 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8957 ld_shlibs=no
8958 cat <<_LT_EOF 1>&2
8959
8960*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8961*** reliably create shared libraries on SCO systems. Therefore, libtool
8962*** is disabling shared libraries support. We urge you to upgrade GNU
8963*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8964*** your PATH or compiler configuration so that the native linker is
8965*** used, and then restart.
8966
8967_LT_EOF
8968 ;;
8969 *)
8970 # For security reasons, it is highly recommended that you always
8971 # use absolute paths for naming shared libraries, and exclude the
8972 # DT_RUNPATH tag from executables and libraries. But doing so
8973 # requires that you compile everything twice, which is a pain.
8974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978 else
8979 ld_shlibs=no
8980 fi
8981 ;;
8982 esac
8983 ;;
8984
8985 sunos4*)
8986 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8987 wlarc=
8988 hardcode_direct=yes
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 *)
8993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8996 else
8997 ld_shlibs=no
8998 fi
8999 ;;
9000 esac
9001
9002 if test "$ld_shlibs" = no; then
9003 runpath_var=
9004 hardcode_libdir_flag_spec=
9005 export_dynamic_flag_spec=
9006 whole_archive_flag_spec=
9007 fi
9008 else
9009 # PORTME fill in a description of your system's linker (not GNU ld)
9010 case $host_os in
9011 aix3*)
9012 allow_undefined_flag=unsupported
9013 always_export_symbols=yes
9014 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'
9015 # Note: this linker hardcodes the directories in LIBPATH if there
9016 # are no directories specified by -L.
9017 hardcode_minus_L=yes
9018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9019 # Neither direct hardcoding nor static linking is supported with a
9020 # broken collect2.
9021 hardcode_direct=unsupported
9022 fi
9023 ;;
9024
9025 aix[4-9]*)
9026 if test "$host_cpu" = ia64; then
9027 # On IA64, the linker does run time linking by default, so we don't
9028 # have to do anything special.
9029 aix_use_runtimelinking=no
9030 exp_sym_flag='-Bexport'
9031 no_entry_flag=""
9032 else
9033 # If we're using GNU nm, then we don't want the "-C" option.
9034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9035 # Also, AIX nm treats weak defined symbols like other global
9036 # defined symbols, whereas GNU nm marks them as "W".
9037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9038 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'
9039 else
9040 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9041 fi
9042 aix_use_runtimelinking=no
9043
9044 # Test if we are trying to use run time linking or normal
9045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9046 # need to do runtime linking.
9047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9048 for ld_flag in $LDFLAGS; do
9049 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9050 aix_use_runtimelinking=yes
9051 break
9052 fi
9053 done
9054 ;;
9055 esac
9056
9057 exp_sym_flag='-bexport'
9058 no_entry_flag='-bnoentry'
9059 fi
9060
9061 # When large executables or shared objects are built, AIX ld can
9062 # have problems creating the table of contents. If linking a library
9063 # or program results in "error TOC overflow" add -mminimal-toc to
9064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9066
9067 archive_cmds=''
9068 hardcode_direct=yes
9069 hardcode_direct_absolute=yes
9070 hardcode_libdir_separator=':'
9071 link_all_deplibs=yes
9072 file_list_spec='${wl}-f,'
9073
9074 if test "$GCC" = yes; then
9075 case $host_os in aix4.[012]|aix4.[012].*)
9076 # We only want to do this on AIX 4.2 and lower, the check
9077 # below for broken collect2 doesn't work under 4.3+
9078 collect2name=`${CC} -print-prog-name=collect2`
9079 if test -f "$collect2name" &&
9080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9081 then
9082 # We have reworked collect2
9083 :
9084 else
9085 # We have old collect2
9086 hardcode_direct=unsupported
9087 # It fails to find uninstalled libraries when the uninstalled
9088 # path is not listed in the libpath. Setting hardcode_minus_L
9089 # to unsupported forces relinking
9090 hardcode_minus_L=yes
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 hardcode_libdir_separator=
9093 fi
9094 ;;
9095 esac
9096 shared_flag='-shared'
9097 if test "$aix_use_runtimelinking" = yes; then
9098 shared_flag="$shared_flag "'${wl}-G'
9099 fi
9100 else
9101 # not using gcc
9102 if test "$host_cpu" = ia64; then
9103 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9104 # chokes on -Wl,-G. The following line is correct:
9105 shared_flag='-G'
9106 else
9107 if test "$aix_use_runtimelinking" = yes; then
9108 shared_flag='${wl}-G'
9109 else
9110 shared_flag='${wl}-bM:SRE'
9111 fi
9112 fi
9113 fi
9114
9115 export_dynamic_flag_spec='${wl}-bexpall'
9116 # It seems that -bexpall does not export symbols beginning with
9117 # underscore (_), so it is better to generate a list of symbols to export.
9118 always_export_symbols=yes
9119 if test "$aix_use_runtimelinking" = yes; then
9120 # Warning - without using the other runtime loading flags (-brtl),
9121 # -berok will link without error, but may produce a broken library.
9122 allow_undefined_flag='-berok'
9123 # Determine the default libpath from the value encoded in an
9124 # empty executable.
9125 if test "${lt_cv_aix_libpath+set}" = set; then
9126 aix_libpath=$lt_cv_aix_libpath
9127else
9128 if ${lt_cv_aix_libpath_+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130else
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h. */
9133
9134int
9135main ()
9136{
9137
9138 ;
9139 return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_link "$LINENO"; then :
9143
9144 lt_aix_libpath_sed='
9145 /Import File Strings/,/^$/ {
9146 /^0/ {
9147 s/^0 *\([^ ]*\) *$/\1/
9148 p
9149 }
9150 }'
9151 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9152 # Check for a 64-bit object if we didn't find anything.
9153 if test -z "$lt_cv_aix_libpath_"; then
9154 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 fi
9156fi
9157rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159 if test -z "$lt_cv_aix_libpath_"; then
9160 lt_cv_aix_libpath_="/usr/lib:/lib"
9161 fi
9162
9163fi
9164
9165 aix_libpath=$lt_cv_aix_libpath_
9166fi
9167
9168 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9169 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"
9170 else
9171 if test "$host_cpu" = ia64; then
9172 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9173 allow_undefined_flag="-z nodefs"
9174 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"
9175 else
9176 # Determine the default libpath from the value encoded in an
9177 # empty executable.
9178 if test "${lt_cv_aix_libpath+set}" = set; then
9179 aix_libpath=$lt_cv_aix_libpath
9180else
9181 if ${lt_cv_aix_libpath_+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h. */
9186
9187int
9188main ()
9189{
9190
9191 ;
9192 return 0;
9193}
9194_ACEOF
9195if ac_fn_c_try_link "$LINENO"; then :
9196
9197 lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9199 /^0/ {
9200 s/^0 *\([^ ]*\) *$/\1/
9201 p
9202 }
9203 }'
9204 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205 # Check for a 64-bit object if we didn't find anything.
9206 if test -z "$lt_cv_aix_libpath_"; then
9207 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 fi
9209fi
9210rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$lt_cv_aix_libpath_"; then
9213 lt_cv_aix_libpath_="/usr/lib:/lib"
9214 fi
9215
9216fi
9217
9218 aix_libpath=$lt_cv_aix_libpath_
9219fi
9220
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 # Warning - without using the other run time loading flags,
9223 # -berok will link without error, but may produce a broken library.
9224 no_undefined_flag=' ${wl}-bernotok'
9225 allow_undefined_flag=' ${wl}-berok'
9226 if test "$with_gnu_ld" = yes; then
9227 # We only use this code for GNU lds that support --whole-archive.
9228 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9229 else
9230 # Exported symbols can be pulled into shared objects from archives
9231 whole_archive_flag_spec='$convenience'
9232 fi
9233 archive_cmds_need_lc=yes
9234 # This is similar to how AIX traditionally builds its shared libraries.
9235 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'
9236 fi
9237 fi
9238 ;;
9239
9240 amigaos*)
9241 case $host_cpu in
9242 powerpc)
9243 # see comment about AmigaOS4 .so support
9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245 archive_expsym_cmds=''
9246 ;;
9247 m68k)
9248 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)'
9249 hardcode_libdir_flag_spec='-L$libdir'
9250 hardcode_minus_L=yes
9251 ;;
9252 esac
9253 ;;
9254
9255 bsdi[45]*)
9256 export_dynamic_flag_spec=-rdynamic
9257 ;;
9258
9259 cygwin* | mingw* | pw32* | cegcc*)
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 # hardcode_libdir_flag_spec is actually meaningless, as there is
9263 # no search path for DLLs.
9264 case $cc_basename in
9265 cl*)
9266 # Native MSVC
9267 hardcode_libdir_flag_spec=' '
9268 allow_undefined_flag=unsupported
9269 always_export_symbols=yes
9270 file_list_spec='@'
9271 # Tell ltmain to make .lib files, not .a files.
9272 libext=lib
9273 # Tell ltmain to make .dll files, not .so files.
9274 shrext_cmds=".dll"
9275 # FIXME: Setting linknames here is a bad hack.
9276 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9277 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9278 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9279 else
9280 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9281 fi~
9282 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9283 linknames='
9284 # The linker will not automatically build a static lib if we build a DLL.
9285 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9286 enable_shared_with_static_runtimes=yes
9287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9288 # Don't use ranlib
9289 old_postinstall_cmds='chmod 644 $oldlib'
9290 postlink_cmds='lt_outputfile="@OUTPUT@"~
9291 lt_tool_outputfile="@TOOL_OUTPUT@"~
9292 case $lt_outputfile in
9293 *.exe|*.EXE) ;;
9294 *)
9295 lt_outputfile="$lt_outputfile.exe"
9296 lt_tool_outputfile="$lt_tool_outputfile.exe"
9297 ;;
9298 esac~
9299 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9300 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9301 $RM "$lt_outputfile.manifest";
9302 fi'
9303 ;;
9304 *)
9305 # Assume MSVC wrapper
9306 hardcode_libdir_flag_spec=' '
9307 allow_undefined_flag=unsupported
9308 # Tell ltmain to make .lib files, not .a files.
9309 libext=lib
9310 # Tell ltmain to make .dll files, not .so files.
9311 shrext_cmds=".dll"
9312 # FIXME: Setting linknames here is a bad hack.
9313 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9314 # The linker will automatically build a .lib file if we build a DLL.
9315 old_archive_from_new_cmds='true'
9316 # FIXME: Should let the user specify the lib program.
9317 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9318 enable_shared_with_static_runtimes=yes
9319 ;;
9320 esac
9321 ;;
9322
9323 darwin* | rhapsody*)
9324
9325
9326 archive_cmds_need_lc=no
9327 hardcode_direct=no
9328 hardcode_automatic=yes
9329 hardcode_shlibpath_var=unsupported
9330 if test "$lt_cv_ld_force_load" = "yes"; then
9331 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\"`'
9332 else
9333 whole_archive_flag_spec=''
9334 fi
9335 link_all_deplibs=yes
9336 allow_undefined_flag="$_lt_dar_allow_undefined"
9337 case $cc_basename in
9338 ifort*) _lt_dar_can_shared=yes ;;
9339 *) _lt_dar_can_shared=$GCC ;;
9340 esac
9341 if test "$_lt_dar_can_shared" = "yes"; then
9342 output_verbose_link_cmd=func_echo_all
9343 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9344 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9345 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}"
9346 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}"
9347
9348 else
9349 ld_shlibs=no
9350 fi
9351
9352 ;;
9353
9354 dgux*)
9355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 freebsd1*)
9361 ld_shlibs=no
9362 ;;
9363
9364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9365 # support. Future versions do this automatically, but an explicit c++rt0.o
9366 # does not break anything, and helps significantly (at the cost of a little
9367 # extra space).
9368 freebsd2.2*)
9369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9370 hardcode_libdir_flag_spec='-R$libdir'
9371 hardcode_direct=yes
9372 hardcode_shlibpath_var=no
9373 ;;
9374
9375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9376 freebsd2*)
9377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_direct=yes
9379 hardcode_minus_L=yes
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9384 freebsd* | dragonfly*)
9385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9386 hardcode_libdir_flag_spec='-R$libdir'
9387 hardcode_direct=yes
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 hpux9*)
9392 if test "$GCC" = yes; then
9393 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9394 else
9395 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'
9396 fi
9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_direct=yes
9400
9401 # hardcode_minus_L: Not really in the search PATH,
9402 # but as the default location of the library.
9403 hardcode_minus_L=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405 ;;
9406
9407 hpux10*)
9408 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9410 else
9411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9412 fi
9413 if test "$with_gnu_ld" = no; then
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_flag_spec_ld='+b $libdir'
9416 hardcode_libdir_separator=:
9417 hardcode_direct=yes
9418 hardcode_direct_absolute=yes
9419 export_dynamic_flag_spec='${wl}-E'
9420 # hardcode_minus_L: Not really in the search PATH,
9421 # but as the default location of the library.
9422 hardcode_minus_L=yes
9423 fi
9424 ;;
9425
9426 hpux11*)
9427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9428 case $host_cpu in
9429 hppa*64*)
9430 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 ia64*)
9433 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9434 ;;
9435 *)
9436 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 esac
9439 else
9440 case $host_cpu in
9441 hppa*64*)
9442 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 ;;
9444 ia64*)
9445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9446 ;;
9447 *)
9448
9449 # Older versions of the 11.00 compiler do not understand -b yet
9450 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9452$as_echo_n "checking if $CC understands -b... " >&6; }
9453if ${lt_cv_prog_compiler__b+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455else
9456 lt_cv_prog_compiler__b=no
9457 save_LDFLAGS="$LDFLAGS"
9458 LDFLAGS="$LDFLAGS -b"
9459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9461 # The linker can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 if test -s conftest.err; then
9464 # Append any errors to the config.log.
9465 cat conftest.err 1>&5
9466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_cv_prog_compiler__b=yes
9470 fi
9471 else
9472 lt_cv_prog_compiler__b=yes
9473 fi
9474 fi
9475 $RM -r conftest*
9476 LDFLAGS="$save_LDFLAGS"
9477
9478fi
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9480$as_echo "$lt_cv_prog_compiler__b" >&6; }
9481
9482if test x"$lt_cv_prog_compiler__b" = xyes; then
9483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9484else
9485 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9486fi
9487
9488 ;;
9489 esac
9490 fi
9491 if test "$with_gnu_ld" = no; then
9492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9493 hardcode_libdir_separator=:
9494
9495 case $host_cpu in
9496 hppa*64*|ia64*)
9497 hardcode_direct=no
9498 hardcode_shlibpath_var=no
9499 ;;
9500 *)
9501 hardcode_direct=yes
9502 hardcode_direct_absolute=yes
9503 export_dynamic_flag_spec='${wl}-E'
9504
9505 # hardcode_minus_L: Not really in the search PATH,
9506 # but as the default location of the library.
9507 hardcode_minus_L=yes
9508 ;;
9509 esac
9510 fi
9511 ;;
9512
9513 irix5* | irix6* | nonstopux*)
9514 if test "$GCC" = yes; then
9515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9516 # Try to use the -exported_symbol ld option, if it does not
9517 # work, assume that -exports_file does not work either and
9518 # implicitly export all symbols.
9519 # This should be the same for all languages, so no per-tag cache variable.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9521$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9522if ${lt_cv_irix_exported_symbol+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h. */
9529int foo (void) { return 0; }
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"; then :
9532 lt_cv_irix_exported_symbol=yes
9533else
9534 lt_cv_irix_exported_symbol=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LDFLAGS="$save_LDFLAGS"
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9541$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9542 if test "$lt_cv_irix_exported_symbol" = yes; then
9543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9544 fi
9545 else
9546 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'
9547 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'
9548 fi
9549 archive_cmds_need_lc='no'
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552 inherit_rpath=yes
9553 link_all_deplibs=yes
9554 ;;
9555
9556 netbsd*)
9557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9559 else
9560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9561 fi
9562 hardcode_libdir_flag_spec='-R$libdir'
9563 hardcode_direct=yes
9564 hardcode_shlibpath_var=no
9565 ;;
9566
9567 newsos6)
9568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_direct=yes
9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572 hardcode_shlibpath_var=no
9573 ;;
9574
9575 *nto* | *qnx*)
9576 ;;
9577
9578 openbsd*)
9579 if test -f /usr/libexec/ld.so; then
9580 hardcode_direct=yes
9581 hardcode_shlibpath_var=no
9582 hardcode_direct_absolute=yes
9583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec='${wl}-E'
9588 else
9589 case $host_os in
9590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-R$libdir'
9593 ;;
9594 *)
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597 ;;
9598 esac
9599 fi
9600 else
9601 ld_shlibs=no
9602 fi
9603 ;;
9604
9605 os2*)
9606 hardcode_libdir_flag_spec='-L$libdir'
9607 hardcode_minus_L=yes
9608 allow_undefined_flag=unsupported
9609 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'
9610 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9611 ;;
9612
9613 osf3*)
9614 if test "$GCC" = yes; then
9615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9616 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'
9617 else
9618 allow_undefined_flag=' -expect_unresolved \*'
9619 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'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
9624 ;;
9625
9626 osf4* | osf5*) # as osf3* with the addition of -msym flag
9627 if test "$GCC" = yes; then
9628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9629 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 else
9632 allow_undefined_flag=' -expect_unresolved \*'
9633 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'
9634 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~
9635 $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'
9636
9637 # Both c and cxx compiler support -rpath directly
9638 hardcode_libdir_flag_spec='-rpath $libdir'
9639 fi
9640 archive_cmds_need_lc='no'
9641 hardcode_libdir_separator=:
9642 ;;
9643
9644 solaris*)
9645 no_undefined_flag=' -z defs'
9646 if test "$GCC" = yes; then
9647 wlarc='${wl}'
9648 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9651 else
9652 case `$CC -V 2>&1` in
9653 *"Compilers 5.0"*)
9654 wlarc=''
9655 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9658 ;;
9659 *)
9660 wlarc='${wl}'
9661 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9664 ;;
9665 esac
9666 fi
9667 hardcode_libdir_flag_spec='-R$libdir'
9668 hardcode_shlibpath_var=no
9669 case $host_os in
9670 solaris2.[0-5] | solaris2.[0-5].*) ;;
9671 *)
9672 # The compiler driver will combine and reorder linker options,
9673 # but understands `-z linker_flag'. GCC discards it without `$wl',
9674 # but is careful enough not to reorder.
9675 # Supported since Solaris 2.6 (maybe 2.5.1?)
9676 if test "$GCC" = yes; then
9677 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9678 else
9679 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9680 fi
9681 ;;
9682 esac
9683 link_all_deplibs=yes
9684 ;;
9685
9686 sunos4*)
9687 if test "x$host_vendor" = xsequent; then
9688 # Use $CC to link under sequent, because it throws in some extra .o
9689 # files that make .init and .fini sections work.
9690 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9693 fi
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_direct=yes
9696 hardcode_minus_L=yes
9697 hardcode_shlibpath_var=no
9698 ;;
9699
9700 sysv4)
9701 case $host_vendor in
9702 sni)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=yes # is this really true???
9705 ;;
9706 siemens)
9707 ## LD is ld it makes a PLAMLIB
9708 ## CC just makes a GrossModule.
9709 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9710 reload_cmds='$CC -r -o $output$reload_objs'
9711 hardcode_direct=no
9712 ;;
9713 motorola)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9716 ;;
9717 esac
9718 runpath_var='LD_RUN_PATH'
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 sysv4.3*)
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var=no
9725 export_dynamic_flag_spec='-Bexport'
9726 ;;
9727
9728 sysv4*MP*)
9729 if test -d /usr/nec; then
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_shlibpath_var=no
9732 runpath_var=LD_RUN_PATH
9733 hardcode_runpath_var=yes
9734 ld_shlibs=yes
9735 fi
9736 ;;
9737
9738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9739 no_undefined_flag='${wl}-z,text'
9740 archive_cmds_need_lc=no
9741 hardcode_shlibpath_var=no
9742 runpath_var='LD_RUN_PATH'
9743
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 fi
9751 ;;
9752
9753 sysv5* | sco3.2v5* | sco5v6*)
9754 # Note: We can NOT use -z defs as we might desire, because we do not
9755 # link with -lc, and that would cause any symbols used from libc to
9756 # always be unresolved, which means just about no library would
9757 # ever link correctly. If we're not using GNU ld we use -z text
9758 # though, which does catch some bad symbols but isn't as heavy-handed
9759 # as -z defs.
9760 no_undefined_flag='${wl}-z,text'
9761 allow_undefined_flag='${wl}-z,nodefs'
9762 archive_cmds_need_lc=no
9763 hardcode_shlibpath_var=no
9764 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9765 hardcode_libdir_separator=':'
9766 link_all_deplibs=yes
9767 export_dynamic_flag_spec='${wl}-Bexport'
9768 runpath_var='LD_RUN_PATH'
9769
9770 if test "$GCC" = yes; then
9771 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 fi
9777 ;;
9778
9779 uts4*)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 *)
9786 ld_shlibs=no
9787 ;;
9788 esac
9789
9790 if test x$host_vendor = xsni; then
9791 case $host in
9792 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9793 export_dynamic_flag_spec='${wl}-Blargedynsym'
9794 ;;
9795 esac
9796 fi
9797 fi
9798
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9800$as_echo "$ld_shlibs" >&6; }
9801test "$ld_shlibs" = no && can_build_shared=no
9802
9803with_gnu_ld=$with_gnu_ld
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819#
9820# Do we need to explicitly link libc?
9821#
9822case "x$archive_cmds_need_lc" in
9823x|xyes)
9824 # Assume -lc should be added
9825 archive_cmds_need_lc=yes
9826
9827 if test "$enable_shared" = yes && test "$GCC" = yes; then
9828 case $archive_cmds in
9829 *'~'*)
9830 # FIXME: we may have to deal with multi-command sequences.
9831 ;;
9832 '$CC '*)
9833 # Test whether the compiler implicitly links with -lc since on some
9834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9835 # to ld, don't add -lc before -lgcc.
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9837$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9838if ${lt_cv_archive_cmds_need_lc+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840else
9841 $RM conftest*
9842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9843
9844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9845 (eval $ac_compile) 2>&5
9846 ac_status=$?
9847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9848 test $ac_status = 0; } 2>conftest.err; then
9849 soname=conftest
9850 lib=conftest
9851 libobjs=conftest.$ac_objext
9852 deplibs=
9853 wl=$lt_prog_compiler_wl
9854 pic_flag=$lt_prog_compiler_pic
9855 compiler_flags=-v
9856 linker_flags=-v
9857 verstring=
9858 output_objdir=.
9859 libname=conftest
9860 lt_save_allow_undefined_flag=$allow_undefined_flag
9861 allow_undefined_flag=
9862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9863 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9864 ac_status=$?
9865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9866 test $ac_status = 0; }
9867 then
9868 lt_cv_archive_cmds_need_lc=no
9869 else
9870 lt_cv_archive_cmds_need_lc=yes
9871 fi
9872 allow_undefined_flag=$lt_save_allow_undefined_flag
9873 else
9874 cat conftest.err 1>&5
9875 fi
9876 $RM conftest*
9877
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9880$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9881 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9882 ;;
9883 esac
9884 fi
9885 ;;
9886esac
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10045$as_echo_n "checking dynamic linker characteristics... " >&6; }
10046
10047if test "$GCC" = yes; then
10048 case $host_os in
10049 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10050 *) lt_awk_arg="/^libraries:/" ;;
10051 esac
10052 case $host_os in
10053 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10054 *) lt_sed_strip_eq="s,=/,/,g" ;;
10055 esac
10056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10057 case $lt_search_path_spec in
10058 *\;*)
10059 # if the path contains ";" then we assume it to be the separator
10060 # otherwise default to the standard path separator (i.e. ":") - it is
10061 # assumed that no part of a normal pathname contains ";" but that should
10062 # okay in the real world where ";" in dirpaths is itself problematic.
10063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10064 ;;
10065 *)
10066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10067 ;;
10068 esac
10069 # Ok, now we have the path, separated by spaces, we can step through it
10070 # and add multilib dir if necessary.
10071 lt_tmp_lt_search_path_spec=
10072 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10073 for lt_sys_path in $lt_search_path_spec; do
10074 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10076 else
10077 test -d "$lt_sys_path" && \
10078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10079 fi
10080 done
10081 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10082BEGIN {RS=" "; FS="/|\n";} {
10083 lt_foo="";
10084 lt_count=0;
10085 for (lt_i = NF; lt_i > 0; lt_i--) {
10086 if ($lt_i != "" && $lt_i != ".") {
10087 if ($lt_i == "..") {
10088 lt_count++;
10089 } else {
10090 if (lt_count == 0) {
10091 lt_foo="/" $lt_i lt_foo;
10092 } else {
10093 lt_count--;
10094 }
10095 }
10096 }
10097 }
10098 if (lt_foo != "") { lt_freq[lt_foo]++; }
10099 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10100}'`
10101 # AWK program above erroneously prepends '/' to C:/dos/paths
10102 # for these hosts.
10103 case $host_os in
10104 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10105 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10106 esac
10107 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10108else
10109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10110fi
10111library_names_spec=
10112libname_spec='lib$name'
10113soname_spec=
10114shrext_cmds=".so"
10115postinstall_cmds=
10116postuninstall_cmds=
10117finish_cmds=
10118finish_eval=
10119shlibpath_var=
10120shlibpath_overrides_runpath=unknown
10121version_type=none
10122dynamic_linker="$host_os ld.so"
10123sys_lib_dlsearch_path_spec="/lib /usr/lib"
10124need_lib_prefix=unknown
10125hardcode_into_libs=no
10126
10127# when you set need_version to no, make sure it does not cause -set_version
10128# flags to be left without arguments
10129need_version=unknown
10130
10131case $host_os in
10132aix3*)
10133 version_type=linux
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10135 shlibpath_var=LIBPATH
10136
10137 # AIX 3 has no versioning support, so we append a major version to the name.
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 ;;
10140
10141aix[4-9]*)
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 hardcode_into_libs=yes
10146 if test "$host_cpu" = ia64; then
10147 # AIX 5 supports IA64
10148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 else
10151 # With GCC up to 2.95.x, collect2 would create an import file
10152 # for dependence libraries. The import file would start with
10153 # the line `#! .'. This would cause the generated library to
10154 # depend on `.', always an invalid library. This was fixed in
10155 # development snapshots of GCC prior to 3.0.
10156 case $host_os in
10157 aix4 | aix4.[01] | aix4.[01].*)
10158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10159 echo ' yes '
10160 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10161 :
10162 else
10163 can_build_shared=no
10164 fi
10165 ;;
10166 esac
10167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10168 # soname into executable. Probably we can add versioning support to
10169 # collect2, so additional links can be useful in future.
10170 if test "$aix_use_runtimelinking" = yes; then
10171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10172 # instead of lib<name>.a to let people know that these are not
10173 # typical AIX shared libraries.
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 else
10176 # We preserve .a as extension for shared libraries through AIX4.2
10177 # and later when we are not doing run time linking.
10178 library_names_spec='${libname}${release}.a $libname.a'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 fi
10181 shlibpath_var=LIBPATH
10182 fi
10183 ;;
10184
10185amigaos*)
10186 case $host_cpu in
10187 powerpc)
10188 # Since July 2007 AmigaOS4 officially supports .so libraries.
10189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 ;;
10192 m68k)
10193 library_names_spec='$libname.ixlibrary $libname.a'
10194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10195 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'
10196 ;;
10197 esac
10198 ;;
10199
10200beos*)
10201 library_names_spec='${libname}${shared_ext}'
10202 dynamic_linker="$host_os ld.so"
10203 shlibpath_var=LIBRARY_PATH
10204 ;;
10205
10206bsdi[45]*)
10207 version_type=linux
10208 need_version=no
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10215 # the default ld.so.conf also contains /usr/contrib/lib and
10216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10217 # libtool to hard-code these into programs
10218 ;;
10219
10220cygwin* | mingw* | pw32* | cegcc*)
10221 version_type=windows
10222 shrext_cmds=".dll"
10223 need_version=no
10224 need_lib_prefix=no
10225
10226 case $GCC,$cc_basename in
10227 yes,*)
10228 # gcc
10229 library_names_spec='$libname.dll.a'
10230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10231 postinstall_cmds='base_file=`basename \${file}`~
10232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10233 dldir=$destdir/`dirname \$dlpath`~
10234 test -d \$dldir || mkdir -p \$dldir~
10235 $install_prog $dir/$dlname \$dldir/$dlname~
10236 chmod a+x \$dldir/$dlname~
10237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10239 fi'
10240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10241 dlpath=$dir/\$dldll~
10242 $RM \$dlpath'
10243 shlibpath_overrides_runpath=yes
10244
10245 case $host_os in
10246 cygwin*)
10247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249
10250 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10251 ;;
10252 mingw* | cegcc*)
10253 # MinGW DLLs use traditional 'lib' prefix
10254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255 ;;
10256 pw32*)
10257 # pw32 DLLs use 'pw' prefix rather than 'lib'
10258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10259 ;;
10260 esac
10261 dynamic_linker='Win32 ld.exe'
10262 ;;
10263
10264 *,cl*)
10265 # Native MSVC
10266 libname_spec='$name'
10267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10268 library_names_spec='${libname}.dll.lib'
10269
10270 case $build_os in
10271 mingw*)
10272 sys_lib_search_path_spec=
10273 lt_save_ifs=$IFS
10274 IFS=';'
10275 for lt_path in $LIB
10276 do
10277 IFS=$lt_save_ifs
10278 # Let DOS variable expansion print the short 8.3 style file name.
10279 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10280 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10281 done
10282 IFS=$lt_save_ifs
10283 # Convert to MSYS style.
10284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10285 ;;
10286 cygwin*)
10287 # Convert to unix form, then to dos form, then back to unix form
10288 # but this time dos style (no spaces!) so that the unix form looks
10289 # like /cygdrive/c/PROGRA~1:/cygdr...
10290 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10291 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10292 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10293 ;;
10294 *)
10295 sys_lib_search_path_spec="$LIB"
10296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10297 # It is most probably a Windows format PATH.
10298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10299 else
10300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10301 fi
10302 # FIXME: find the short name or the path components, as spaces are
10303 # common. (e.g. "Program Files" -> "PROGRA~1")
10304 ;;
10305 esac
10306
10307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10308 postinstall_cmds='base_file=`basename \${file}`~
10309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10310 dldir=$destdir/`dirname \$dlpath`~
10311 test -d \$dldir || mkdir -p \$dldir~
10312 $install_prog $dir/$dlname \$dldir/$dlname'
10313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10314 dlpath=$dir/\$dldll~
10315 $RM \$dlpath'
10316 shlibpath_overrides_runpath=yes
10317 dynamic_linker='Win32 link.exe'
10318 ;;
10319
10320 *)
10321 # Assume MSVC wrapper
10322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10323 dynamic_linker='Win32 ld.exe'
10324 ;;
10325 esac
10326 # FIXME: first we should search . and the directory the executable is in
10327 shlibpath_var=PATH
10328 ;;
10329
10330darwin* | rhapsody*)
10331 dynamic_linker="$host_os dyld"
10332 version_type=darwin
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10336 soname_spec='${libname}${release}${major}$shared_ext'
10337 shlibpath_overrides_runpath=yes
10338 shlibpath_var=DYLD_LIBRARY_PATH
10339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10340
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10343 ;;
10344
10345dgux*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 ;;
10353
10354freebsd1*)
10355 dynamic_linker=no
10356 ;;
10357
10358freebsd* | dragonfly*)
10359 # DragonFly does not have aout. When/if they implement a new
10360 # versioning mechanism, adjust this.
10361 if test -x /usr/bin/objformat; then
10362 objformat=`/usr/bin/objformat`
10363 else
10364 case $host_os in
10365 freebsd[123]*) objformat=aout ;;
10366 *) objformat=elf ;;
10367 esac
10368 fi
10369 version_type=freebsd-$objformat
10370 case $version_type in
10371 freebsd-elf*)
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10373 need_version=no
10374 need_lib_prefix=no
10375 ;;
10376 freebsd-*)
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10378 need_version=yes
10379 ;;
10380 esac
10381 shlibpath_var=LD_LIBRARY_PATH
10382 case $host_os in
10383 freebsd2*)
10384 shlibpath_overrides_runpath=yes
10385 ;;
10386 freebsd3.[01]* | freebsdelf3.[01]*)
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10389 ;;
10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 ;;
10395 *) # from 4.6 on, and DragonFly
10396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10398 ;;
10399 esac
10400 ;;
10401
10402gnu*)
10403 version_type=linux
10404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 hardcode_into_libs=yes
10410 ;;
10411
10412haiku*)
10413 version_type=linux
10414 need_lib_prefix=no
10415 need_version=no
10416 dynamic_linker="$host_os runtime_loader"
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10422 hardcode_into_libs=yes
10423 ;;
10424
10425hpux9* | hpux10* | hpux11*)
10426 # Give a soname corresponding to the major version so that dld.sl refuses to
10427 # link against other versions.
10428 version_type=sunos
10429 need_lib_prefix=no
10430 need_version=no
10431 case $host_cpu in
10432 ia64*)
10433 shrext_cmds='.so'
10434 hardcode_into_libs=yes
10435 dynamic_linker="$host_os dld.so"
10436 shlibpath_var=LD_LIBRARY_PATH
10437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 if test "X$HPUX_IA64_MODE" = X32; then
10441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10442 else
10443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10444 fi
10445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10446 ;;
10447 hppa*64*)
10448 shrext_cmds='.sl'
10449 hardcode_into_libs=yes
10450 dynamic_linker="$host_os dld.sl"
10451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457 ;;
10458 *)
10459 shrext_cmds='.sl'
10460 dynamic_linker="$host_os dld.sl"
10461 shlibpath_var=SHLIB_PATH
10462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 ;;
10466 esac
10467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10468 postinstall_cmds='chmod 555 $lib'
10469 # or fails outright, so override atomically:
10470 install_override_mode=555
10471 ;;
10472
10473interix[3-9]*)
10474 version_type=linux
10475 need_lib_prefix=no
10476 need_version=no
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482 hardcode_into_libs=yes
10483 ;;
10484
10485irix5* | irix6* | nonstopux*)
10486 case $host_os in
10487 nonstopux*) version_type=nonstopux ;;
10488 *)
10489 if test "$lt_cv_prog_gnu_ld" = yes; then
10490 version_type=linux
10491 else
10492 version_type=irix
10493 fi ;;
10494 esac
10495 need_lib_prefix=no
10496 need_version=no
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 case $host_os in
10500 irix5* | nonstopux*)
10501 libsuff= shlibsuff=
10502 ;;
10503 *)
10504 case $LD in # libtool.m4 will add one of these switches to LD
10505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10506 libsuff= shlibsuff= libmagic=32-bit;;
10507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10508 libsuff=32 shlibsuff=N32 libmagic=N32;;
10509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10511 *) libsuff= shlibsuff= libmagic=never-match;;
10512 esac
10513 ;;
10514 esac
10515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10516 shlibpath_overrides_runpath=no
10517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10519 hardcode_into_libs=yes
10520 ;;
10521
10522# No shared lib support for Linux oldld, aout, or coff.
10523linux*oldld* | linux*aout* | linux*coff*)
10524 dynamic_linker=no
10525 ;;
10526
10527# This must be Linux ELF.
10528linux* | k*bsd*-gnu | kopensolaris*-gnu)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537
10538 # Some binutils ld are patched to set DT_RUNPATH
10539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541else
10542 lt_cv_shlibpath_overrides_runpath=no
10543 save_LDFLAGS=$LDFLAGS
10544 save_libdir=$libdir
10545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h. */
10549
10550int
10551main ()
10552{
10553
10554 ;
10555 return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"; then :
10559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10560 lt_cv_shlibpath_overrides_runpath=yes
10561fi
10562fi
10563rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LDFLAGS=$save_LDFLAGS
10566 libdir=$save_libdir
10567
10568fi
10569
10570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10571
10572 # This implies no fast_install, which is unacceptable.
10573 # Some rework will be needed to allow for fast_install
10574 # before this can be enabled.
10575 hardcode_into_libs=yes
10576
10577 # Append ld.so.conf contents to the search path
10578 if test -f /etc/ld.so.conf; then
10579 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' ' '`
10580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10581 fi
10582
10583 # We used to test for /lib/ld.so.1 and disable shared libraries on
10584 # powerpc, because MkLinux only supported shared libraries with the
10585 # GNU dynamic linker. Since this was broken with cross compilers,
10586 # most powerpc-linux boxes support dynamic linking these days and
10587 # people can always --disable-shared, the test was removed, and we
10588 # assume the GNU/Linux dynamic linker is in use.
10589 dynamic_linker='GNU/Linux ld.so'
10590 ;;
10591
10592netbsd*)
10593 version_type=sunos
10594 need_lib_prefix=no
10595 need_version=no
10596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10599 dynamic_linker='NetBSD (a.out) ld.so'
10600 else
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 dynamic_linker='NetBSD ld.elf_so'
10604 fi
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 hardcode_into_libs=yes
10608 ;;
10609
10610newsos6)
10611 version_type=linux
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10615 ;;
10616
10617*nto* | *qnx*)
10618 version_type=qnx
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 shlibpath_overrides_runpath=no
10625 hardcode_into_libs=yes
10626 dynamic_linker='ldqnx.so'
10627 ;;
10628
10629openbsd*)
10630 version_type=sunos
10631 sys_lib_dlsearch_path_spec="/usr/lib"
10632 need_lib_prefix=no
10633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10634 case $host_os in
10635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10636 *) need_version=no ;;
10637 esac
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10642 case $host_os in
10643 openbsd2.[89] | openbsd2.[89].*)
10644 shlibpath_overrides_runpath=no
10645 ;;
10646 *)
10647 shlibpath_overrides_runpath=yes
10648 ;;
10649 esac
10650 else
10651 shlibpath_overrides_runpath=yes
10652 fi
10653 ;;
10654
10655os2*)
10656 libname_spec='$name'
10657 shrext_cmds=".dll"
10658 need_lib_prefix=no
10659 library_names_spec='$libname${shared_ext} $libname.a'
10660 dynamic_linker='OS/2 ld.exe'
10661 shlibpath_var=LIBPATH
10662 ;;
10663
10664osf3* | osf4* | osf5*)
10665 version_type=osf
10666 need_lib_prefix=no
10667 need_version=no
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10673 ;;
10674
10675rdos*)
10676 dynamic_linker=no
10677 ;;
10678
10679solaris*)
10680 version_type=linux
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 # ldd complains unless libraries are executable
10689 postinstall_cmds='chmod +x $lib'
10690 ;;
10691
10692sunos4*)
10693 version_type=sunos
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10698 if test "$with_gnu_ld" = yes; then
10699 need_lib_prefix=no
10700 fi
10701 need_version=yes
10702 ;;
10703
10704sysv4 | sysv4.3*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 case $host_vendor in
10710 sni)
10711 shlibpath_overrides_runpath=no
10712 need_lib_prefix=no
10713 runpath_var=LD_RUN_PATH
10714 ;;
10715 siemens)
10716 need_lib_prefix=no
10717 ;;
10718 motorola)
10719 need_lib_prefix=no
10720 need_version=no
10721 shlibpath_overrides_runpath=no
10722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10723 ;;
10724 esac
10725 ;;
10726
10727sysv4*MP*)
10728 if test -d /usr/nec ;then
10729 version_type=linux
10730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10731 soname_spec='$libname${shared_ext}.$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 fi
10734 ;;
10735
10736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10737 version_type=freebsd-elf
10738 need_lib_prefix=no
10739 need_version=no
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=yes
10744 hardcode_into_libs=yes
10745 if test "$with_gnu_ld" = yes; then
10746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10747 else
10748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10749 case $host_os in
10750 sco3.2v5*)
10751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10752 ;;
10753 esac
10754 fi
10755 sys_lib_dlsearch_path_spec='/usr/lib'
10756 ;;
10757
10758tpf*)
10759 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10760 version_type=linux
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 ;;
10768
10769uts4*)
10770 version_type=linux
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 ;;
10775
10776*)
10777 dynamic_linker=no
10778 ;;
10779esac
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10781$as_echo "$dynamic_linker" >&6; }
10782test "$dynamic_linker" = no && can_build_shared=no
10783
10784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10785if test "$GCC" = yes; then
10786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10787fi
10788
10789if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10790 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10791fi
10792if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10793 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10794fi
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10888$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10889hardcode_action=
10890if test -n "$hardcode_libdir_flag_spec" ||
10891 test -n "$runpath_var" ||
10892 test "X$hardcode_automatic" = "Xyes" ; then
10893
10894 # We can hardcode non-existent directories.
10895 if test "$hardcode_direct" != no &&
10896 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10897 # have to relink, otherwise we might link with an installed library
10898 # when we should be linking with a yet-to-be-installed one
10899 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10900 test "$hardcode_minus_L" != no; then
10901 # Linking always hardcodes the temporary library directory.
10902 hardcode_action=relink
10903 else
10904 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10905 hardcode_action=immediate
10906 fi
10907else
10908 # We cannot hardcode anything, or else we can only hardcode existing
10909 # directories.
10910 hardcode_action=unsupported
10911fi
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10913$as_echo "$hardcode_action" >&6; }
10914
10915if test "$hardcode_action" = relink ||
10916 test "$inherit_rpath" = yes; then
10917 # Fast installation is not supported
10918 enable_fast_install=no
10919elif test "$shlibpath_overrides_runpath" = yes ||
10920 test "$enable_shared" = no; then
10921 # Fast installation is not necessary
10922 enable_fast_install=needless
10923fi
10924
10925
10926
10927
10928
10929
10930 if test "x$enable_dlopen" != xyes; then
10931 enable_dlopen=unknown
10932 enable_dlopen_self=unknown
10933 enable_dlopen_self_static=unknown
10934else
10935 lt_cv_dlopen=no
10936 lt_cv_dlopen_libs=
10937
10938 case $host_os in
10939 beos*)
10940 lt_cv_dlopen="load_add_on"
10941 lt_cv_dlopen_libs=
10942 lt_cv_dlopen_self=yes
10943 ;;
10944
10945 mingw* | pw32* | cegcc*)
10946 lt_cv_dlopen="LoadLibrary"
10947 lt_cv_dlopen_libs=
10948 ;;
10949
10950 cygwin*)
10951 lt_cv_dlopen="dlopen"
10952 lt_cv_dlopen_libs=
10953 ;;
10954
10955 darwin*)
10956 # if libdl is installed we need to link against it
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10958$as_echo_n "checking for dlopen in -ldl... " >&6; }
10959if ${ac_cv_lib_dl_dlopen+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961else
10962 ac_check_lib_save_LIBS=$LIBS
10963LIBS="-ldl $LIBS"
10964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965/* end confdefs.h. */
10966
10967/* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970#ifdef __cplusplus
10971extern "C"
10972#endif
10973char dlopen ();
10974int
10975main ()
10976{
10977return dlopen ();
10978 ;
10979 return 0;
10980}
10981_ACEOF
10982if ac_fn_c_try_link "$LINENO"; then :
10983 ac_cv_lib_dl_dlopen=yes
10984else
10985 ac_cv_lib_dl_dlopen=no
10986fi
10987rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989LIBS=$ac_check_lib_save_LIBS
10990fi
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10992$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10993if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995else
10996
10997 lt_cv_dlopen="dyld"
10998 lt_cv_dlopen_libs=
10999 lt_cv_dlopen_self=yes
11000
11001fi
11002
11003 ;;
11004
11005 *)
11006 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11007if test "x$ac_cv_func_shl_load" = xyes; then :
11008 lt_cv_dlopen="shl_load"
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11011$as_echo_n "checking for shl_load in -ldld... " >&6; }
11012if ${ac_cv_lib_dld_shl_load+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014else
11015 ac_check_lib_save_LIBS=$LIBS
11016LIBS="-ldld $LIBS"
11017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018/* end confdefs.h. */
11019
11020/* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023#ifdef __cplusplus
11024extern "C"
11025#endif
11026char shl_load ();
11027int
11028main ()
11029{
11030return shl_load ();
11031 ;
11032 return 0;
11033}
11034_ACEOF
11035if ac_fn_c_try_link "$LINENO"; then :
11036 ac_cv_lib_dld_shl_load=yes
11037else
11038 ac_cv_lib_dld_shl_load=no
11039fi
11040rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042LIBS=$ac_check_lib_save_LIBS
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11045$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11046if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11047 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11048else
11049 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11050if test "x$ac_cv_func_dlopen" = xyes; then :
11051 lt_cv_dlopen="dlopen"
11052else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11054$as_echo_n "checking for dlopen in -ldl... " >&6; }
11055if ${ac_cv_lib_dl_dlopen+:} false; then :
11056 $as_echo_n "(cached) " >&6
11057else
11058 ac_check_lib_save_LIBS=$LIBS
11059LIBS="-ldl $LIBS"
11060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061/* end confdefs.h. */
11062
11063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066#ifdef __cplusplus
11067extern "C"
11068#endif
11069char dlopen ();
11070int
11071main ()
11072{
11073return dlopen ();
11074 ;
11075 return 0;
11076}
11077_ACEOF
11078if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_dl_dlopen=yes
11080else
11081 ac_cv_lib_dl_dlopen=no
11082fi
11083rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085LIBS=$ac_check_lib_save_LIBS
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11088$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11089if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11091else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11093$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11094if ${ac_cv_lib_svld_dlopen+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096else
11097 ac_check_lib_save_LIBS=$LIBS
11098LIBS="-lsvld $LIBS"
11099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100/* end confdefs.h. */
11101
11102/* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105#ifdef __cplusplus
11106extern "C"
11107#endif
11108char dlopen ();
11109int
11110main ()
11111{
11112return dlopen ();
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117if ac_fn_c_try_link "$LINENO"; then :
11118 ac_cv_lib_svld_dlopen=yes
11119else
11120 ac_cv_lib_svld_dlopen=no
11121fi
11122rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124LIBS=$ac_check_lib_save_LIBS
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11127$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11128if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11130else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11132$as_echo_n "checking for dld_link in -ldld... " >&6; }
11133if ${ac_cv_lib_dld_dld_link+:} false; then :
11134 $as_echo_n "(cached) " >&6
11135else
11136 ac_check_lib_save_LIBS=$LIBS
11137LIBS="-ldld $LIBS"
11138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h. */
11140
11141/* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11144#ifdef __cplusplus
11145extern "C"
11146#endif
11147char dld_link ();
11148int
11149main ()
11150{
11151return dld_link ();
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156if ac_fn_c_try_link "$LINENO"; then :
11157 ac_cv_lib_dld_dld_link=yes
11158else
11159 ac_cv_lib_dld_dld_link=no
11160fi
11161rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163LIBS=$ac_check_lib_save_LIBS
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11166$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11167if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11168 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11169fi
11170
11171
11172fi
11173
11174
11175fi
11176
11177
11178fi
11179
11180
11181fi
11182
11183
11184fi
11185
11186 ;;
11187 esac
11188
11189 if test "x$lt_cv_dlopen" != xno; then
11190 enable_dlopen=yes
11191 else
11192 enable_dlopen=no
11193 fi
11194
11195 case $lt_cv_dlopen in
11196 dlopen)
11197 save_CPPFLAGS="$CPPFLAGS"
11198 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11199
11200 save_LDFLAGS="$LDFLAGS"
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11202
11203 save_LIBS="$LIBS"
11204 LIBS="$lt_cv_dlopen_libs $LIBS"
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11207$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11208if ${lt_cv_dlopen_self+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210else
11211 if test "$cross_compiling" = yes; then :
11212 lt_cv_dlopen_self=cross
11213else
11214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11215 lt_status=$lt_dlunknown
11216 cat > conftest.$ac_ext <<_LT_EOF
11217#line $LINENO "configure"
11218#include "confdefs.h"
11219
11220#if HAVE_DLFCN_H
11221#include <dlfcn.h>
11222#endif
11223
11224#include <stdio.h>
11225
11226#ifdef RTLD_GLOBAL
11227# define LT_DLGLOBAL RTLD_GLOBAL
11228#else
11229# ifdef DL_GLOBAL
11230# define LT_DLGLOBAL DL_GLOBAL
11231# else
11232# define LT_DLGLOBAL 0
11233# endif
11234#endif
11235
11236/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11237 find out it does not work in some platform. */
11238#ifndef LT_DLLAZY_OR_NOW
11239# ifdef RTLD_LAZY
11240# define LT_DLLAZY_OR_NOW RTLD_LAZY
11241# else
11242# ifdef DL_LAZY
11243# define LT_DLLAZY_OR_NOW DL_LAZY
11244# else
11245# ifdef RTLD_NOW
11246# define LT_DLLAZY_OR_NOW RTLD_NOW
11247# else
11248# ifdef DL_NOW
11249# define LT_DLLAZY_OR_NOW DL_NOW
11250# else
11251# define LT_DLLAZY_OR_NOW 0
11252# endif
11253# endif
11254# endif
11255# endif
11256#endif
11257
11258/* When -fvisbility=hidden is used, assume the code has been annotated
11259 correspondingly for the symbols needed. */
11260#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11261int fnord () __attribute__((visibility("default")));
11262#endif
11263
11264int fnord () { return 42; }
11265int main ()
11266{
11267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11268 int status = $lt_dlunknown;
11269
11270 if (self)
11271 {
11272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11273 else
11274 {
11275 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 else puts (dlerror ());
11277 }
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284}
11285_LT_EOF
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self=no
11301 fi
11302fi
11303rm -fr conftest*
11304
11305
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11308$as_echo "$lt_cv_dlopen_self" >&6; }
11309
11310 if test "x$lt_cv_dlopen_self" = xyes; then
11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11313$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314if ${lt_cv_dlopen_self_static+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316else
11317 if test "$cross_compiling" = yes; then :
11318 lt_cv_dlopen_self_static=cross
11319else
11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321 lt_status=$lt_dlunknown
11322 cat > conftest.$ac_ext <<_LT_EOF
11323#line $LINENO "configure"
11324#include "confdefs.h"
11325
11326#if HAVE_DLFCN_H
11327#include <dlfcn.h>
11328#endif
11329
11330#include <stdio.h>
11331
11332#ifdef RTLD_GLOBAL
11333# define LT_DLGLOBAL RTLD_GLOBAL
11334#else
11335# ifdef DL_GLOBAL
11336# define LT_DLGLOBAL DL_GLOBAL
11337# else
11338# define LT_DLGLOBAL 0
11339# endif
11340#endif
11341
11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343 find out it does not work in some platform. */
11344#ifndef LT_DLLAZY_OR_NOW
11345# ifdef RTLD_LAZY
11346# define LT_DLLAZY_OR_NOW RTLD_LAZY
11347# else
11348# ifdef DL_LAZY
11349# define LT_DLLAZY_OR_NOW DL_LAZY
11350# else
11351# ifdef RTLD_NOW
11352# define LT_DLLAZY_OR_NOW RTLD_NOW
11353# else
11354# ifdef DL_NOW
11355# define LT_DLLAZY_OR_NOW DL_NOW
11356# else
11357# define LT_DLLAZY_OR_NOW 0
11358# endif
11359# endif
11360# endif
11361# endif
11362#endif
11363
11364/* When -fvisbility=hidden is used, assume the code has been annotated
11365 correspondingly for the symbols needed. */
11366#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11367int fnord () __attribute__((visibility("default")));
11368#endif
11369
11370int fnord () { return 42; }
11371int main ()
11372{
11373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11374 int status = $lt_dlunknown;
11375
11376 if (self)
11377 {
11378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11379 else
11380 {
11381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11382 else puts (dlerror ());
11383 }
11384 /* dlclose (self); */
11385 }
11386 else
11387 puts (dlerror ());
11388
11389 return status;
11390}
11391_LT_EOF
11392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11393 (eval $ac_link) 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11397 (./conftest; exit; ) >&5 2>/dev/null
11398 lt_status=$?
11399 case x$lt_status in
11400 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11401 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11402 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11403 esac
11404 else :
11405 # compilation failed
11406 lt_cv_dlopen_self_static=no
11407 fi
11408fi
11409rm -fr conftest*
11410
11411
11412fi
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11414$as_echo "$lt_cv_dlopen_self_static" >&6; }
11415 fi
11416
11417 CPPFLAGS="$save_CPPFLAGS"
11418 LDFLAGS="$save_LDFLAGS"
11419 LIBS="$save_LIBS"
11420 ;;
11421 esac
11422
11423 case $lt_cv_dlopen_self in
11424 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11425 *) enable_dlopen_self=unknown ;;
11426 esac
11427
11428 case $lt_cv_dlopen_self_static in
11429 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11430 *) enable_dlopen_self_static=unknown ;;
11431 esac
11432fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450striplib=
11451old_striplib=
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11453$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11454if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11455 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11456 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11458$as_echo "yes" >&6; }
11459else
11460# FIXME - insert some real tests, host_os isn't really good enough
11461 case $host_os in
11462 darwin*)
11463 if test -n "$STRIP" ; then
11464 striplib="$STRIP -x"
11465 old_striplib="$STRIP -S"
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467$as_echo "yes" >&6; }
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470$as_echo "no" >&6; }
11471 fi
11472 ;;
11473 *)
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475$as_echo "no" >&6; }
11476 ;;
11477 esac
11478fi
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491 # Report which library types will actually be built
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11493$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11495$as_echo "$can_build_shared" >&6; }
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11498$as_echo_n "checking whether to build shared libraries... " >&6; }
11499 test "$can_build_shared" = "no" && enable_shared=no
11500
11501 # On AIX, shared libraries and static libraries use the same namespace, and
11502 # are all built from PIC.
11503 case $host_os in
11504 aix3*)
11505 test "$enable_shared" = yes && enable_static=no
11506 if test -n "$RANLIB"; then
11507 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11508 postinstall_cmds='$RANLIB $lib'
11509 fi
11510 ;;
11511
11512 aix[4-9]*)
11513 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11514 test "$enable_shared" = yes && enable_static=no
11515 fi
11516 ;;
11517 esac
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11519$as_echo "$enable_shared" >&6; }
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11522$as_echo_n "checking whether to build static libraries... " >&6; }
11523 # Make sure either enable_shared or enable_static is yes.
11524 test "$enable_shared" = yes || enable_static=yes
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11526$as_echo "$enable_static" >&6; }
11527
11528
11529
11530
11531fi
11532ac_ext=c
11533ac_cpp='$CPP $CPPFLAGS'
11534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_c_compiler_gnu
11537
11538CC="$lt_save_CC"
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552 ac_config_commands="$ac_config_commands libtool"
11553
11554
11555
11556
11557# Only expand once:
11558
11559
11560
11561ac_config_files="$ac_config_files Makefile src/Makefile"
11562
11563
11564
11565
11566# Check whether --enable-optional-builtin-expect was given.
11567if test "${enable_optional_builtin_expect+set}" = set; then :
11568 enableval=$enable_optional_builtin_expect; farmhash_optional_builtin_expect=true
11569fi
11570
11571 if test x$farmhash_optional_builtin_expect = xtrue ; then
11572 OPTIONAL_BUILTIN_EXPECT_TRUE=
11573 OPTIONAL_BUILTIN_EXPECT_FALSE='#'
11574else
11575 OPTIONAL_BUILTIN_EXPECT_TRUE='#'
11576 OPTIONAL_BUILTIN_EXPECT_FALSE=
11577fi
11578
11579
11580# Check whether --enable-optional-builtin-bswap was given.
11581if test "${enable_optional_builtin_bswap+set}" = set; then :
11582 enableval=$enable_optional_builtin_bswap; farmhash_optional_builtin_bswap=true
11583fi
11584
11585 if test x$farmhash_optional_builtin_bswap = xtrue ; then
11586 OPTIONAL_BUILTIN_BSWAP_TRUE=
11587 OPTIONAL_BUILTIN_BSWAP_FALSE='#'
11588else
11589 OPTIONAL_BUILTIN_BSWAP_TRUE='#'
11590 OPTIONAL_BUILTIN_BSWAP_FALSE=
11591fi
11592
11593
11594# Checks for programs.
11595ac_ext=cpp
11596ac_cpp='$CXXCPP $CPPFLAGS'
11597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11600if test -z "$CXX"; then
11601 if test -n "$CCC"; then
11602 CXX=$CCC
11603 else
11604 if test -n "$ac_tool_prefix"; then
11605 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11606 do
11607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610$as_echo_n "checking for $ac_word... " >&6; }
11611if ${ac_cv_prog_CXX+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613else
11614 if test -n "$CXX"; then
11615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628done
11629 done
11630IFS=$as_save_IFS
11631
11632fi
11633fi
11634CXX=$ac_cv_prog_CXX
11635if test -n "$CXX"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11637$as_echo "$CXX" >&6; }
11638else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
11641fi
11642
11643
11644 test -n "$CXX" && break
11645 done
11646fi
11647if test -z "$CXX"; then
11648 ac_ct_CXX=$CXX
11649 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11650do
11651 # Extract the first word of "$ac_prog", so it can be a program name with args.
11652set dummy $ac_prog; ac_word=$2
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
11655if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657else
11658 if test -n "$ac_ct_CXX"; then
11659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_ac_ct_CXX="$ac_prog"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672done
11673 done
11674IFS=$as_save_IFS
11675
11676fi
11677fi
11678ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11679if test -n "$ac_ct_CXX"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11681$as_echo "$ac_ct_CXX" >&6; }
11682else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
11685fi
11686
11687
11688 test -n "$ac_ct_CXX" && break
11689done
11690
11691 if test "x$ac_ct_CXX" = x; then
11692 CXX="g++"
11693 else
11694 case $cross_compiling:$ac_tool_warned in
11695yes:)
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11698ac_tool_warned=yes ;;
11699esac
11700 CXX=$ac_ct_CXX
11701 fi
11702fi
11703
11704 fi
11705fi
11706# Provide some information about the compiler.
11707$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11708set X $ac_compile
11709ac_compiler=$2
11710for ac_option in --version -v -V -qversion; do
11711 { { ac_try="$ac_compiler $ac_option >&5"
11712case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11717$as_echo "$ac_try_echo"; } >&5
11718 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11719 ac_status=$?
11720 if test -s conftest.err; then
11721 sed '10a\
11722... rest of stderr output deleted ...
11723 10q' conftest.err >conftest.er1
11724 cat conftest.er1 >&5
11725 fi
11726 rm -f conftest.er1 conftest.err
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; }
11729done
11730
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11732$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11733if ${ac_cv_cxx_compiler_gnu+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h. */
11738
11739int
11740main ()
11741{
11742#ifndef __GNUC__
11743 choke me
11744#endif
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750if ac_fn_cxx_try_compile "$LINENO"; then :
11751 ac_compiler_gnu=yes
11752else
11753 ac_compiler_gnu=no
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11757
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11760$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11761if test $ac_compiler_gnu = yes; then
11762 GXX=yes
11763else
11764 GXX=
11765fi
11766ac_test_CXXFLAGS=${CXXFLAGS+set}
11767ac_save_CXXFLAGS=$CXXFLAGS
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11769$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11770if ${ac_cv_prog_cxx_g+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772else
11773 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11774 ac_cxx_werror_flag=yes
11775 ac_cv_prog_cxx_g=no
11776 CXXFLAGS="-g"
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778/* end confdefs.h. */
11779
11780int
11781main ()
11782{
11783
11784 ;
11785 return 0;
11786}
11787_ACEOF
11788if ac_fn_cxx_try_compile "$LINENO"; then :
11789 ac_cv_prog_cxx_g=yes
11790else
11791 CXXFLAGS=""
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h. */
11794
11795int
11796main ()
11797{
11798
11799 ;
11800 return 0;
11801}
11802_ACEOF
11803if ac_fn_cxx_try_compile "$LINENO"; then :
11804
11805else
11806 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11807 CXXFLAGS="-g"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h. */
11810
11811int
11812main ()
11813{
11814
11815 ;
11816 return 0;
11817}
11818_ACEOF
11819if ac_fn_cxx_try_compile "$LINENO"; then :
11820 ac_cv_prog_cxx_g=yes
11821fi
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823fi
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825fi
11826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11828fi
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11830$as_echo "$ac_cv_prog_cxx_g" >&6; }
11831if test "$ac_test_CXXFLAGS" = set; then
11832 CXXFLAGS=$ac_save_CXXFLAGS
11833elif test $ac_cv_prog_cxx_g = yes; then
11834 if test "$GXX" = yes; then
11835 CXXFLAGS="-g -O2"
11836 else
11837 CXXFLAGS="-g"
11838 fi
11839else
11840 if test "$GXX" = yes; then
11841 CXXFLAGS="-O2"
11842 else
11843 CXXFLAGS=
11844 fi
11845fi
11846ac_ext=c
11847ac_cpp='$CPP $CPPFLAGS'
11848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851
11852depcc="$CXX" am_compiler_list=
11853
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11855$as_echo_n "checking dependency style of $depcc... " >&6; }
11856if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858else
11859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11860 # We make a subdir and do the tests there. Otherwise we can end up
11861 # making bogus files that we don't know about and never remove. For
11862 # instance it was reported that on HP-UX the gcc test will end up
11863 # making a dummy file named 'D' -- because '-MD' means "put the output
11864 # in D".
11865 rm -rf conftest.dir
11866 mkdir conftest.dir
11867 # Copy depcomp to subdir because otherwise we won't find it if we're
11868 # using a relative directory.
11869 cp "$am_depcomp" conftest.dir
11870 cd conftest.dir
11871 # We will build objects and dependencies in a subdirectory because
11872 # it helps to detect inapplicable dependency modes. For instance
11873 # both Tru64's cc and ICC support -MD to output dependencies as a
11874 # side effect of compilation, but ICC will put the dependencies in
11875 # the current directory while Tru64 will put them in the object
11876 # directory.
11877 mkdir sub
11878
11879 am_cv_CXX_dependencies_compiler_type=none
11880 if test "$am_compiler_list" = ""; then
11881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11882 fi
11883 am__universal=false
11884 case " $depcc " in #(
11885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11886 esac
11887
11888 for depmode in $am_compiler_list; do
11889 # Setup a source with many dependencies, because some compilers
11890 # like to wrap large dependency lists on column 80 (with \), and
11891 # we should not choose a depcomp mode which is confused by this.
11892 #
11893 # We need to recreate these files for each test, as the compiler may
11894 # overwrite some of them when testing with obscure command lines.
11895 # This happens at least with the AIX C compiler.
11896 : > sub/conftest.c
11897 for i in 1 2 3 4 5 6; do
11898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11900 # Solaris 10 /bin/sh.
11901 echo '/* dummy */' > sub/conftst$i.h
11902 done
11903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11904
11905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11906 # mode. It turns out that the SunPro C++ compiler does not properly
11907 # handle '-M -o', and we need to detect this. Also, some Intel
11908 # versions had trouble with output in subdirs.
11909 am__obj=sub/conftest.${OBJEXT-o}
11910 am__minus_obj="-o $am__obj"
11911 case $depmode in
11912 gcc)
11913 # This depmode causes a compiler race in universal mode.
11914 test "$am__universal" = false || continue
11915 ;;
11916 nosideeffect)
11917 # After this tag, mechanisms are not by side-effect, so they'll
11918 # only be used when explicitly requested.
11919 if test "x$enable_dependency_tracking" = xyes; then
11920 continue
11921 else
11922 break
11923 fi
11924 ;;
11925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11926 # This compiler won't grok '-c -o', but also, the minuso test has
11927 # not run yet. These depmodes are late enough in the game, and
11928 # so weak that their functioning should not be impacted.
11929 am__obj=conftest.${OBJEXT-o}
11930 am__minus_obj=
11931 ;;
11932 none) break ;;
11933 esac
11934 if depmode=$depmode \
11935 source=sub/conftest.c object=$am__obj \
11936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11938 >/dev/null 2>conftest.err &&
11939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11943 # icc doesn't choke on unknown options, it will just issue warnings
11944 # or remarks (even with -Werror). So we grep stderr for any message
11945 # that says an option was ignored or not supported.
11946 # When given -MP, icc 7.0 and 7.1 complain thusly:
11947 # icc: Command line warning: ignoring option '-M'; no argument required
11948 # The diagnosis changed in icc 8.0:
11949 # icc: Command line remark: option '-MP' not supported
11950 if (grep 'ignoring option' conftest.err ||
11951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11952 am_cv_CXX_dependencies_compiler_type=$depmode
11953 break
11954 fi
11955 fi
11956 done
11957
11958 cd ..
11959 rm -rf conftest.dir
11960else
11961 am_cv_CXX_dependencies_compiler_type=none
11962fi
11963
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11966$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11967CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11968
11969 if
11970 test "x$enable_dependency_tracking" != xno \
11971 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11972 am__fastdepCXX_TRUE=
11973 am__fastdepCXX_FALSE='#'
11974else
11975 am__fastdepCXX_TRUE='#'
11976 am__fastdepCXX_FALSE=
11977fi
11978
11979
11980
11981
11982func_stripname_cnf ()
11983{
11984 case ${2} in
11985 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11986 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11987 esac
11988} # func_stripname_cnf
11989
11990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11992 (test "X$CXX" != "Xg++"))) ; then
11993 ac_ext=cpp
11994ac_cpp='$CXXCPP $CPPFLAGS'
11995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11999$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12000if test -z "$CXXCPP"; then
12001 if ${ac_cv_prog_CXXCPP+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003else
12004 # Double quotes because CXXCPP needs to be expanded
12005 for CXXCPP in "$CXX -E" "/lib/cpp"
12006 do
12007 ac_preproc_ok=false
12008for ac_cxx_preproc_warn_flag in '' yes
12009do
12010 # Use a header file that comes with gcc, so configuring glibc
12011 # with a fresh cross-compiler works.
12012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 # <limits.h> exists even on freestanding compilers.
12014 # On the NeXT, cc -E runs the code through the compiler's parser,
12015 # not just through cpp. "Syntax error" is here to catch this case.
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h. */
12018#ifdef __STDC__
12019# include <limits.h>
12020#else
12021# include <assert.h>
12022#endif
12023 Syntax error
12024_ACEOF
12025if ac_fn_cxx_try_cpp "$LINENO"; then :
12026
12027else
12028 # Broken: fails on valid input.
12029continue
12030fi
12031rm -f conftest.err conftest.i conftest.$ac_ext
12032
12033 # OK, works on sane cases. Now check whether nonexistent headers
12034 # can be detected and how.
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h. */
12037#include <ac_nonexistent.h>
12038_ACEOF
12039if ac_fn_cxx_try_cpp "$LINENO"; then :
12040 # Broken: success on invalid input.
12041continue
12042else
12043 # Passes both tests.
12044ac_preproc_ok=:
12045break
12046fi
12047rm -f conftest.err conftest.i conftest.$ac_ext
12048
12049done
12050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12051rm -f conftest.i conftest.err conftest.$ac_ext
12052if $ac_preproc_ok; then :
12053 break
12054fi
12055
12056 done
12057 ac_cv_prog_CXXCPP=$CXXCPP
12058
12059fi
12060 CXXCPP=$ac_cv_prog_CXXCPP
12061else
12062 ac_cv_prog_CXXCPP=$CXXCPP
12063fi
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12065$as_echo "$CXXCPP" >&6; }
12066ac_preproc_ok=false
12067for ac_cxx_preproc_warn_flag in '' yes
12068do
12069 # Use a header file that comes with gcc, so configuring glibc
12070 # with a fresh cross-compiler works.
12071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 # <limits.h> exists even on freestanding compilers.
12073 # On the NeXT, cc -E runs the code through the compiler's parser,
12074 # not just through cpp. "Syntax error" is here to catch this case.
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h. */
12077#ifdef __STDC__
12078# include <limits.h>
12079#else
12080# include <assert.h>
12081#endif
12082 Syntax error
12083_ACEOF
12084if ac_fn_cxx_try_cpp "$LINENO"; then :
12085
12086else
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.i conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether nonexistent headers
12093 # can be detected and how.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h. */
12096#include <ac_nonexistent.h>
12097_ACEOF
12098if ac_fn_cxx_try_cpp "$LINENO"; then :
12099 # Broken: success on invalid input.
12100continue
12101else
12102 # Passes both tests.
12103ac_preproc_ok=:
12104break
12105fi
12106rm -f conftest.err conftest.i conftest.$ac_ext
12107
12108done
12109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12110rm -f conftest.i conftest.err conftest.$ac_ext
12111if $ac_preproc_ok; then :
12112
12113else
12114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12116as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12117See \`config.log' for more details" "$LINENO" 5; }
12118fi
12119
12120ac_ext=c
12121ac_cpp='$CPP $CPPFLAGS'
12122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12124ac_compiler_gnu=$ac_cv_c_compiler_gnu
12125
12126else
12127 _lt_caught_CXX_error=yes
12128fi
12129
12130ac_ext=cpp
12131ac_cpp='$CXXCPP $CPPFLAGS'
12132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12135
12136archive_cmds_need_lc_CXX=no
12137allow_undefined_flag_CXX=
12138always_export_symbols_CXX=no
12139archive_expsym_cmds_CXX=
12140compiler_needs_object_CXX=no
12141export_dynamic_flag_spec_CXX=
12142hardcode_direct_CXX=no
12143hardcode_direct_absolute_CXX=no
12144hardcode_libdir_flag_spec_CXX=
12145hardcode_libdir_flag_spec_ld_CXX=
12146hardcode_libdir_separator_CXX=
12147hardcode_minus_L_CXX=no
12148hardcode_shlibpath_var_CXX=unsupported
12149hardcode_automatic_CXX=no
12150inherit_rpath_CXX=no
12151module_cmds_CXX=
12152module_expsym_cmds_CXX=
12153link_all_deplibs_CXX=unknown
12154old_archive_cmds_CXX=$old_archive_cmds
12155reload_flag_CXX=$reload_flag
12156reload_cmds_CXX=$reload_cmds
12157no_undefined_flag_CXX=
12158whole_archive_flag_spec_CXX=
12159enable_shared_with_static_runtimes_CXX=no
12160
12161# Source file extension for C++ test sources.
12162ac_ext=cpp
12163
12164# Object file extension for compiled C++ test sources.
12165objext=o
12166objext_CXX=$objext
12167
12168# No sense in running all these tests if we already determined that
12169# the CXX compiler isn't working. Some variables (like enable_shared)
12170# are currently assumed to apply to all compilers on this platform,
12171# and will be corrupted by setting them based on a non-working compiler.
12172if test "$_lt_caught_CXX_error" != yes; then
12173 # Code to be used in simple compile tests
12174 lt_simple_compile_test_code="int some_variable = 0;"
12175
12176 # Code to be used in simple link tests
12177 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12178
12179 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12180
12181
12182
12183
12184
12185
12186# If no C compiler was specified, use CC.
12187LTCC=${LTCC-"$CC"}
12188
12189# If no C compiler flags were specified, use CFLAGS.
12190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12191
12192# Allow CC to be a program name with arguments.
12193compiler=$CC
12194
12195
12196 # save warnings/boilerplate of simple test code
12197 ac_outfile=conftest.$ac_objext
12198echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12200_lt_compiler_boilerplate=`cat conftest.err`
12201$RM conftest*
12202
12203 ac_outfile=conftest.$ac_objext
12204echo "$lt_simple_link_test_code" >conftest.$ac_ext
12205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12206_lt_linker_boilerplate=`cat conftest.err`
12207$RM -r conftest*
12208
12209
12210 # Allow CC to be a program name with arguments.
12211 lt_save_CC=$CC
12212 lt_save_CFLAGS=$CFLAGS
12213 lt_save_LD=$LD
12214 lt_save_GCC=$GCC
12215 GCC=$GXX
12216 lt_save_with_gnu_ld=$with_gnu_ld
12217 lt_save_path_LD=$lt_cv_path_LD
12218 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12219 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12220 else
12221 $as_unset lt_cv_prog_gnu_ld
12222 fi
12223 if test -n "${lt_cv_path_LDCXX+set}"; then
12224 lt_cv_path_LD=$lt_cv_path_LDCXX
12225 else
12226 $as_unset lt_cv_path_LD
12227 fi
12228 test -z "${LDCXX+set}" || LD=$LDCXX
12229 CC=${CXX-"c++"}
12230 CFLAGS=$CXXFLAGS
12231 compiler=$CC
12232 compiler_CXX=$CC
12233 for cc_temp in $compiler""; do
12234 case $cc_temp in
12235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12237 \-*) ;;
12238 *) break;;
12239 esac
12240done
12241cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12242
12243
12244 if test -n "$compiler"; then
12245 # We don't want -fno-exception when compiling C++ code, so set the
12246 # no_builtin_flag separately
12247 if test "$GXX" = yes; then
12248 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12249 else
12250 lt_prog_compiler_no_builtin_flag_CXX=
12251 fi
12252
12253 if test "$GXX" = yes; then
12254 # Set up default GNU C++ configuration
12255
12256
12257
12258# Check whether --with-gnu-ld was given.
12259if test "${with_gnu_ld+set}" = set; then :
12260 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12261else
12262 with_gnu_ld=no
12263fi
12264
12265ac_prog=ld
12266if test "$GCC" = yes; then
12267 # Check if gcc -print-prog-name=ld gives a path.
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12269$as_echo_n "checking for ld used by $CC... " >&6; }
12270 case $host in
12271 *-*-mingw*)
12272 # gcc leaves a trailing carriage return which upsets mingw
12273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12274 *)
12275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12276 esac
12277 case $ac_prog in
12278 # Accept absolute paths.
12279 [\\/]* | ?:[\\/]*)
12280 re_direlt='/[^/][^/]*/\.\./'
12281 # Canonicalize the pathname of ld
12282 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12283 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12284 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12285 done
12286 test -z "$LD" && LD="$ac_prog"
12287 ;;
12288 "")
12289 # If it fails, then pretend we aren't using GCC.
12290 ac_prog=ld
12291 ;;
12292 *)
12293 # If it is relative, then search for the first ld in PATH.
12294 with_gnu_ld=unknown
12295 ;;
12296 esac
12297elif test "$with_gnu_ld" = yes; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12299$as_echo_n "checking for GNU ld... " >&6; }
12300else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12302$as_echo_n "checking for non-GNU ld... " >&6; }
12303fi
12304if ${lt_cv_path_LD+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 if test -z "$LD"; then
12308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12309 for ac_dir in $PATH; do
12310 IFS="$lt_save_ifs"
12311 test -z "$ac_dir" && ac_dir=.
12312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12313 lt_cv_path_LD="$ac_dir/$ac_prog"
12314 # Check to see if the program is GNU ld. I'd rather use --version,
12315 # but apparently some variants of GNU ld only accept -v.
12316 # Break only if it was the GNU/non-GNU ld that we prefer.
12317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12318 *GNU* | *'with BFD'*)
12319 test "$with_gnu_ld" != no && break
12320 ;;
12321 *)
12322 test "$with_gnu_ld" != yes && break
12323 ;;
12324 esac
12325 fi
12326 done
12327 IFS="$lt_save_ifs"
12328else
12329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12330fi
12331fi
12332
12333LD="$lt_cv_path_LD"
12334if test -n "$LD"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12336$as_echo "$LD" >&6; }
12337else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
12340fi
12341test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12343$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12344if ${lt_cv_prog_gnu_ld+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346else
12347 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12348case `$LD -v 2>&1 </dev/null` in
12349*GNU* | *'with BFD'*)
12350 lt_cv_prog_gnu_ld=yes
12351 ;;
12352*)
12353 lt_cv_prog_gnu_ld=no
12354 ;;
12355esac
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12358$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12359with_gnu_ld=$lt_cv_prog_gnu_ld
12360
12361
12362
12363
12364
12365
12366
12367 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12368 # archiving commands below assume that GNU ld is being used.
12369 if test "$with_gnu_ld" = yes; then
12370 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12371 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12372
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12375
12376 # If archive_cmds runs LD, not CC, wlarc should be empty
12377 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12378 # investigate it a little bit more. (MM)
12379 wlarc='${wl}'
12380
12381 # ancient GNU ld didn't support --whole-archive et. al.
12382 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12383 $GREP 'no-whole-archive' > /dev/null; then
12384 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12385 else
12386 whole_archive_flag_spec_CXX=
12387 fi
12388 else
12389 with_gnu_ld=no
12390 wlarc=
12391
12392 # A generic and very simple default shared library creation
12393 # command for GNU C++ for the case where it uses the native
12394 # linker, instead of GNU ld. If possible, this setting should
12395 # overridden to take advantage of the native linker features on
12396 # the platform it is being used on.
12397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12398 fi
12399
12400 # Commands to make compiler produce verbose output that lists
12401 # what "hidden" libraries, object files and flags are used when
12402 # linking a shared library.
12403 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12404
12405 else
12406 GXX=no
12407 with_gnu_ld=no
12408 wlarc=
12409 fi
12410
12411 # PORTME: fill in a description of your system's C++ link characteristics
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12413$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12414 ld_shlibs_CXX=yes
12415 case $host_os in
12416 aix3*)
12417 # FIXME: insert proper C++ library support
12418 ld_shlibs_CXX=no
12419 ;;
12420 aix[4-9]*)
12421 if test "$host_cpu" = ia64; then
12422 # On IA64, the linker does run time linking by default, so we don't
12423 # have to do anything special.
12424 aix_use_runtimelinking=no
12425 exp_sym_flag='-Bexport'
12426 no_entry_flag=""
12427 else
12428 aix_use_runtimelinking=no
12429
12430 # Test if we are trying to use run time linking or normal
12431 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12432 # need to do runtime linking.
12433 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12434 for ld_flag in $LDFLAGS; do
12435 case $ld_flag in
12436 *-brtl*)
12437 aix_use_runtimelinking=yes
12438 break
12439 ;;
12440 esac
12441 done
12442 ;;
12443 esac
12444
12445 exp_sym_flag='-bexport'
12446 no_entry_flag='-bnoentry'
12447 fi
12448
12449 # When large executables or shared objects are built, AIX ld can
12450 # have problems creating the table of contents. If linking a library
12451 # or program results in "error TOC overflow" add -mminimal-toc to
12452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12454
12455 archive_cmds_CXX=''
12456 hardcode_direct_CXX=yes
12457 hardcode_direct_absolute_CXX=yes
12458 hardcode_libdir_separator_CXX=':'
12459 link_all_deplibs_CXX=yes
12460 file_list_spec_CXX='${wl}-f,'
12461
12462 if test "$GXX" = yes; then
12463 case $host_os in aix4.[012]|aix4.[012].*)
12464 # We only want to do this on AIX 4.2 and lower, the check
12465 # below for broken collect2 doesn't work under 4.3+
12466 collect2name=`${CC} -print-prog-name=collect2`
12467 if test -f "$collect2name" &&
12468 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12469 then
12470 # We have reworked collect2
12471 :
12472 else
12473 # We have old collect2
12474 hardcode_direct_CXX=unsupported
12475 # It fails to find uninstalled libraries when the uninstalled
12476 # path is not listed in the libpath. Setting hardcode_minus_L
12477 # to unsupported forces relinking
12478 hardcode_minus_L_CXX=yes
12479 hardcode_libdir_flag_spec_CXX='-L$libdir'
12480 hardcode_libdir_separator_CXX=
12481 fi
12482 esac
12483 shared_flag='-shared'
12484 if test "$aix_use_runtimelinking" = yes; then
12485 shared_flag="$shared_flag "'${wl}-G'
12486 fi
12487 else
12488 # not using gcc
12489 if test "$host_cpu" = ia64; then
12490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12491 # chokes on -Wl,-G. The following line is correct:
12492 shared_flag='-G'
12493 else
12494 if test "$aix_use_runtimelinking" = yes; then
12495 shared_flag='${wl}-G'
12496 else
12497 shared_flag='${wl}-bM:SRE'
12498 fi
12499 fi
12500 fi
12501
12502 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12503 # It seems that -bexpall does not export symbols beginning with
12504 # underscore (_), so it is better to generate a list of symbols to
12505 # export.
12506 always_export_symbols_CXX=yes
12507 if test "$aix_use_runtimelinking" = yes; then
12508 # Warning - without using the other runtime loading flags (-brtl),
12509 # -berok will link without error, but may produce a broken library.
12510 allow_undefined_flag_CXX='-berok'
12511 # Determine the default libpath from the value encoded in an empty
12512 # executable.
12513 if test "${lt_cv_aix_libpath+set}" = set; then
12514 aix_libpath=$lt_cv_aix_libpath
12515else
12516 if ${lt_cv_aix_libpath__CXX+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518else
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h. */
12521
12522int
12523main ()
12524{
12525
12526 ;
12527 return 0;
12528}
12529_ACEOF
12530if ac_fn_cxx_try_link "$LINENO"; then :
12531
12532 lt_aix_libpath_sed='
12533 /Import File Strings/,/^$/ {
12534 /^0/ {
12535 s/^0 *\([^ ]*\) *$/\1/
12536 p
12537 }
12538 }'
12539 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12540 # Check for a 64-bit object if we didn't find anything.
12541 if test -z "$lt_cv_aix_libpath__CXX"; then
12542 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12543 fi
12544fi
12545rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 if test -z "$lt_cv_aix_libpath__CXX"; then
12548 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12549 fi
12550
12551fi
12552
12553 aix_libpath=$lt_cv_aix_libpath__CXX
12554fi
12555
12556 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12557
12558 archive_expsym_cmds_CXX='$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"
12559 else
12560 if test "$host_cpu" = ia64; then
12561 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12562 allow_undefined_flag_CXX="-z nodefs"
12563 archive_expsym_cmds_CXX="\$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"
12564 else
12565 # Determine the default libpath from the value encoded in an
12566 # empty executable.
12567 if test "${lt_cv_aix_libpath+set}" = set; then
12568 aix_libpath=$lt_cv_aix_libpath
12569else
12570 if ${lt_cv_aix_libpath__CXX+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572else
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h. */
12575
12576int
12577main ()
12578{
12579
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584if ac_fn_cxx_try_link "$LINENO"; then :
12585
12586 lt_aix_libpath_sed='
12587 /Import File Strings/,/^$/ {
12588 /^0/ {
12589 s/^0 *\([^ ]*\) *$/\1/
12590 p
12591 }
12592 }'
12593 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594 # Check for a 64-bit object if we didn't find anything.
12595 if test -z "$lt_cv_aix_libpath__CXX"; then
12596 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 fi
12598fi
12599rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 if test -z "$lt_cv_aix_libpath__CXX"; then
12602 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12603 fi
12604
12605fi
12606
12607 aix_libpath=$lt_cv_aix_libpath__CXX
12608fi
12609
12610 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12611 # Warning - without using the other run time loading flags,
12612 # -berok will link without error, but may produce a broken library.
12613 no_undefined_flag_CXX=' ${wl}-bernotok'
12614 allow_undefined_flag_CXX=' ${wl}-berok'
12615 if test "$with_gnu_ld" = yes; then
12616 # We only use this code for GNU lds that support --whole-archive.
12617 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12618 else
12619 # Exported symbols can be pulled into shared objects from archives
12620 whole_archive_flag_spec_CXX='$convenience'
12621 fi
12622 archive_cmds_need_lc_CXX=yes
12623 # This is similar to how AIX traditionally builds its shared
12624 # libraries.
12625 archive_expsym_cmds_CXX="\$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'
12626 fi
12627 fi
12628 ;;
12629
12630 beos*)
12631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12632 allow_undefined_flag_CXX=unsupported
12633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12634 # support --undefined. This deserves some investigation. FIXME
12635 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12636 else
12637 ld_shlibs_CXX=no
12638 fi
12639 ;;
12640
12641 chorus*)
12642 case $cc_basename in
12643 *)
12644 # FIXME: insert proper C++ library support
12645 ld_shlibs_CXX=no
12646 ;;
12647 esac
12648 ;;
12649
12650 cygwin* | mingw* | pw32* | cegcc*)
12651 case $GXX,$cc_basename in
12652 ,cl* | no,cl*)
12653 # Native MSVC
12654 # hardcode_libdir_flag_spec is actually meaningless, as there is
12655 # no search path for DLLs.
12656 hardcode_libdir_flag_spec_CXX=' '
12657 allow_undefined_flag_CXX=unsupported
12658 always_export_symbols_CXX=yes
12659 file_list_spec_CXX='@'
12660 # Tell ltmain to make .lib files, not .a files.
12661 libext=lib
12662 # Tell ltmain to make .dll files, not .so files.
12663 shrext_cmds=".dll"
12664 # FIXME: Setting linknames here is a bad hack.
12665 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12667 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12668 else
12669 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12670 fi~
12671 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12672 linknames='
12673 # The linker will not automatically build a static lib if we build a DLL.
12674 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12675 enable_shared_with_static_runtimes_CXX=yes
12676 # Don't use ranlib
12677 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12678 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12679 lt_tool_outputfile="@TOOL_OUTPUT@"~
12680 case $lt_outputfile in
12681 *.exe|*.EXE) ;;
12682 *)
12683 lt_outputfile="$lt_outputfile.exe"
12684 lt_tool_outputfile="$lt_tool_outputfile.exe"
12685 ;;
12686 esac~
12687 func_to_tool_file "$lt_outputfile"~
12688 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12689 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12690 $RM "$lt_outputfile.manifest";
12691 fi'
12692 ;;
12693 *)
12694 # g++
12695 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12696 # as there is no search path for DLLs.
12697 hardcode_libdir_flag_spec_CXX='-L$libdir'
12698 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12699 allow_undefined_flag_CXX=unsupported
12700 always_export_symbols_CXX=no
12701 enable_shared_with_static_runtimes_CXX=yes
12702
12703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12705 # If the export-symbols file already is a .def file (1st line
12706 # is EXPORTS), use it as is; otherwise, prepend...
12707 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12708 cp $export_symbols $output_objdir/$soname.def;
12709 else
12710 echo EXPORTS > $output_objdir/$soname.def;
12711 cat $export_symbols >> $output_objdir/$soname.def;
12712 fi~
12713 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12714 else
12715 ld_shlibs_CXX=no
12716 fi
12717 ;;
12718 esac
12719 ;;
12720 darwin* | rhapsody*)
12721
12722
12723 archive_cmds_need_lc_CXX=no
12724 hardcode_direct_CXX=no
12725 hardcode_automatic_CXX=yes
12726 hardcode_shlibpath_var_CXX=unsupported
12727 if test "$lt_cv_ld_force_load" = "yes"; then
12728 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12729 else
12730 whole_archive_flag_spec_CXX=''
12731 fi
12732 link_all_deplibs_CXX=yes
12733 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12734 case $cc_basename in
12735 ifort*) _lt_dar_can_shared=yes ;;
12736 *) _lt_dar_can_shared=$GCC ;;
12737 esac
12738 if test "$_lt_dar_can_shared" = "yes"; then
12739 output_verbose_link_cmd=func_echo_all
12740 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12741 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12742 archive_expsym_cmds_CXX="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}"
12743 module_expsym_cmds_CXX="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}"
12744 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12745 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12746 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12747 fi
12748
12749 else
12750 ld_shlibs_CXX=no
12751 fi
12752
12753 ;;
12754
12755 dgux*)
12756 case $cc_basename in
12757 ec++*)
12758 # FIXME: insert proper C++ library support
12759 ld_shlibs_CXX=no
12760 ;;
12761 ghcx*)
12762 # Green Hills C++ Compiler
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12765 ;;
12766 *)
12767 # FIXME: insert proper C++ library support
12768 ld_shlibs_CXX=no
12769 ;;
12770 esac
12771 ;;
12772
12773 freebsd[12]*)
12774 # C++ shared libraries reported to be fairly broken before
12775 # switch to ELF
12776 ld_shlibs_CXX=no
12777 ;;
12778
12779 freebsd-elf*)
12780 archive_cmds_need_lc_CXX=no
12781 ;;
12782
12783 freebsd* | dragonfly*)
12784 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12785 # conventions
12786 ld_shlibs_CXX=yes
12787 ;;
12788
12789 gnu*)
12790 ;;
12791
12792 haiku*)
12793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 link_all_deplibs_CXX=yes
12795 ;;
12796
12797 hpux9*)
12798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_separator_CXX=:
12800 export_dynamic_flag_spec_CXX='${wl}-E'
12801 hardcode_direct_CXX=yes
12802 hardcode_minus_L_CXX=yes # Not in the search PATH,
12803 # but as the default
12804 # location of the library.
12805
12806 case $cc_basename in
12807 CC*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12810 ;;
12811 aCC*)
12812 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12813 # Commands to make compiler produce verbose output that lists
12814 # what "hidden" libraries, object files and flags are used when
12815 # linking a shared library.
12816 #
12817 # There doesn't appear to be a way to prevent this compiler from
12818 # explicitly linking system object files so we need to strip them
12819 # from the output so that they don't get included in the library
12820 # dependencies.
12821 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12822 ;;
12823 *)
12824 if test "$GXX" = yes; then
12825 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12826 else
12827 # FIXME: insert proper C++ library support
12828 ld_shlibs_CXX=no
12829 fi
12830 ;;
12831 esac
12832 ;;
12833
12834 hpux10*|hpux11*)
12835 if test $with_gnu_ld = no; then
12836 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_CXX=:
12838
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 ;;
12842 *)
12843 export_dynamic_flag_spec_CXX='${wl}-E'
12844 ;;
12845 esac
12846 fi
12847 case $host_cpu in
12848 hppa*64*|ia64*)
12849 hardcode_direct_CXX=no
12850 hardcode_shlibpath_var_CXX=no
12851 ;;
12852 *)
12853 hardcode_direct_CXX=yes
12854 hardcode_direct_absolute_CXX=yes
12855 hardcode_minus_L_CXX=yes # Not in the search PATH,
12856 # but as the default
12857 # location of the library.
12858 ;;
12859 esac
12860
12861 case $cc_basename in
12862 CC*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 aCC*)
12867 case $host_cpu in
12868 hppa*64*)
12869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870 ;;
12871 ia64*)
12872 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 ;;
12874 *)
12875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 esac
12878 # Commands to make compiler produce verbose output that lists
12879 # what "hidden" libraries, object files and flags are used when
12880 # linking a shared library.
12881 #
12882 # There doesn't appear to be a way to prevent this compiler from
12883 # explicitly linking system object files so we need to strip them
12884 # from the output so that they don't get included in the library
12885 # dependencies.
12886 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12887 ;;
12888 *)
12889 if test "$GXX" = yes; then
12890 if test $with_gnu_ld = no; then
12891 case $host_cpu in
12892 hppa*64*)
12893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12894 ;;
12895 ia64*)
12896 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 ;;
12898 *)
12899 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12900 ;;
12901 esac
12902 fi
12903 else
12904 # FIXME: insert proper C++ library support
12905 ld_shlibs_CXX=no
12906 fi
12907 ;;
12908 esac
12909 ;;
12910
12911 interix[3-9]*)
12912 hardcode_direct_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_CXX='${wl}-E'
12916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12917 # Instead, shared libraries are loaded at an image base (0x10000000 by
12918 # default) and relocated if they conflict, which is a slow very memory
12919 # consuming and fragmenting process. To avoid this, we pick a random,
12920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12922 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12923 archive_expsym_cmds_CXX='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'
12924 ;;
12925 irix5* | irix6*)
12926 case $cc_basename in
12927 CC*)
12928 # SGI C++
12929 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12930
12931 # Archives containing C++ object files must be created using
12932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12934 # in the archive.
12935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12936 ;;
12937 *)
12938 if test "$GXX" = yes; then
12939 if test "$with_gnu_ld" = no; then
12940 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12941 else
12942 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12943 fi
12944 fi
12945 link_all_deplibs_CXX=yes
12946 ;;
12947 esac
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12950 inherit_rpath_CXX=yes
12951 ;;
12952
12953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12954 case $cc_basename in
12955 KCC*)
12956 # Kuck and Associates, Inc. (KAI) C++ Compiler
12957
12958 # KCC will only create a shared library if the output file
12959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12960 # to its proper name (with version) after linking.
12961 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12962 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12966 #
12967 # There doesn't appear to be a way to prevent this compiler from
12968 # explicitly linking system object files so we need to strip them
12969 # from the output so that they don't get included in the library
12970 # dependencies.
12971 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12972
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975
12976 # Archives containing C++ object files must be created using
12977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12978 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12979 ;;
12980 icpc* | ecpc* )
12981 # Intel C++
12982 with_gnu_ld=yes
12983 # version 8.0 and above of icpc choke on multiply defined symbols
12984 # if we add $predep_objects and $postdep_objects, however 7.1 and
12985 # earlier do not add the objects themselves.
12986 case `$CC -V 2>&1` in
12987 *"Version 7."*)
12988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12990 ;;
12991 *) # Version 8.0 or newer
12992 tmp_idyn=
12993 case $host_cpu in
12994 ia64*) tmp_idyn=' -i_dynamic';;
12995 esac
12996 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12997 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12998 ;;
12999 esac
13000 archive_cmds_need_lc_CXX=no
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13004 ;;
13005 pgCC* | pgcpp*)
13006 # Portland Group C++ compiler
13007 case `$CC -V` in
13008 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13009 prelink_cmds_CXX='tpldir=Template.dir~
13010 rm -rf $tpldir~
13011 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13012 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13013 old_archive_cmds_CXX='tpldir=Template.dir~
13014 rm -rf $tpldir~
13015 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13016 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13017 $RANLIB $oldlib'
13018 archive_cmds_CXX='tpldir=Template.dir~
13019 rm -rf $tpldir~
13020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13022 archive_expsym_cmds_CXX='tpldir=Template.dir~
13023 rm -rf $tpldir~
13024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13025 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13026 ;;
13027 *) # Version 6 and above use weak symbols
13028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13029 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13030 ;;
13031 esac
13032
13033 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035 whole_archive_flag_spec_CXX='${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'
13036 ;;
13037 cxx*)
13038 # Compaq C++
13039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13041
13042 runpath_var=LD_RUN_PATH
13043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13044 hardcode_libdir_separator_CXX=:
13045
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 #
13050 # There doesn't appear to be a way to prevent this compiler from
13051 # explicitly linking system object files so we need to strip them
13052 # from the output so that they don't get included in the library
13053 # dependencies.
13054 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13055 ;;
13056 xl* | mpixl* | bgxl*)
13057 # IBM XL 8.0 on PPC, with GNU ld
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13060 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 if test "x$supports_anon_versioning" = xyes; then
13062 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13064 echo "local: *; };" >> $output_objdir/$libname.ver~
13065 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13066 fi
13067 ;;
13068 *)
13069 case `$CC -V 2>&1 | sed 5q` in
13070 *Sun\ C*)
13071 # Sun C++ 5.9
13072 no_undefined_flag_CXX=' -zdefs'
13073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13075 hardcode_libdir_flag_spec_CXX='-R$libdir'
13076 whole_archive_flag_spec_CXX='${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'
13077 compiler_needs_object_CXX=yes
13078
13079 # Not sure whether something based on
13080 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13081 # would be better.
13082 output_verbose_link_cmd='func_echo_all'
13083
13084 # Archives containing C++ object files must be created using
13085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13086 # necessary to make sure instantiated templates are included
13087 # in the archive.
13088 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13089 ;;
13090 esac
13091 ;;
13092 esac
13093 ;;
13094
13095 lynxos*)
13096 # FIXME: insert proper C++ library support
13097 ld_shlibs_CXX=no
13098 ;;
13099
13100 m88k*)
13101 # FIXME: insert proper C++ library support
13102 ld_shlibs_CXX=no
13103 ;;
13104
13105 mvs*)
13106 case $cc_basename in
13107 cxx*)
13108 # FIXME: insert proper C++ library support
13109 ld_shlibs_CXX=no
13110 ;;
13111 *)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 esac
13116 ;;
13117
13118 netbsd*)
13119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13120 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13121 wlarc=
13122 hardcode_libdir_flag_spec_CXX='-R$libdir'
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 fi
13126 # Workaround some broken pre-1.5 toolchains
13127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13128 ;;
13129
13130 *nto* | *qnx*)
13131 ld_shlibs_CXX=yes
13132 ;;
13133
13134 openbsd2*)
13135 # C++ shared libraries are fairly broken
13136 ld_shlibs_CXX=no
13137 ;;
13138
13139 openbsd*)
13140 if test -f /usr/libexec/ld.so; then
13141 hardcode_direct_CXX=yes
13142 hardcode_shlibpath_var_CXX=no
13143 hardcode_direct_absolute_CXX=yes
13144 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13147 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13148 export_dynamic_flag_spec_CXX='${wl}-E'
13149 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13150 fi
13151 output_verbose_link_cmd=func_echo_all
13152 else
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156
13157 osf3* | osf4* | osf5*)
13158 case $cc_basename in
13159 KCC*)
13160 # Kuck and Associates, Inc. (KAI) C++ Compiler
13161
13162 # KCC will only create a shared library if the output file
13163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13164 # to its proper name (with version) after linking.
13165 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13166
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 # Archives containing C++ object files must be created using
13171 # the KAI C++ compiler.
13172 case $host in
13173 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13174 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13175 esac
13176 ;;
13177 RCC*)
13178 # Rational C++ 2.4.1
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13181 ;;
13182 cxx*)
13183 case $host in
13184 osf3*)
13185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13186 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13188 ;;
13189 *)
13190 allow_undefined_flag_CXX=' -expect_unresolved \*'
13191 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13192 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13193 echo "-hidden">> $lib.exp~
13194 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13195 $RM $lib.exp'
13196 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13197 ;;
13198 esac
13199
13200 hardcode_libdir_separator_CXX=:
13201
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13211 ;;
13212 *)
13213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13214 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13215 case $host in
13216 osf3*)
13217 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13218 ;;
13219 *)
13220 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13221 ;;
13222 esac
13223
13224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13225 hardcode_libdir_separator_CXX=:
13226
13227 # Commands to make compiler produce verbose output that lists
13228 # what "hidden" libraries, object files and flags are used when
13229 # linking a shared library.
13230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13231
13232 else
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 fi
13236 ;;
13237 esac
13238 ;;
13239
13240 psos*)
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244
13245 sunos4*)
13246 case $cc_basename in
13247 CC*)
13248 # Sun C++ 4.x
13249 # FIXME: insert proper C++ library support
13250 ld_shlibs_CXX=no
13251 ;;
13252 lcc*)
13253 # Lucid
13254 # FIXME: insert proper C++ library support
13255 ld_shlibs_CXX=no
13256 ;;
13257 *)
13258 # FIXME: insert proper C++ library support
13259 ld_shlibs_CXX=no
13260 ;;
13261 esac
13262 ;;
13263
13264 solaris*)
13265 case $cc_basename in
13266 CC* | sunCC*)
13267 # Sun C++ 4.2, 5.x and Centerline C++
13268 archive_cmds_need_lc_CXX=yes
13269 no_undefined_flag_CXX=' -zdefs'
13270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13272 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13273
13274 hardcode_libdir_flag_spec_CXX='-R$libdir'
13275 hardcode_shlibpath_var_CXX=no
13276 case $host_os in
13277 solaris2.[0-5] | solaris2.[0-5].*) ;;
13278 *)
13279 # The compiler driver will combine and reorder linker options,
13280 # but understands `-z linker_flag'.
13281 # Supported since Solaris 2.6 (maybe 2.5.1?)
13282 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13283 ;;
13284 esac
13285 link_all_deplibs_CXX=yes
13286
13287 output_verbose_link_cmd='func_echo_all'
13288
13289 # Archives containing C++ object files must be created using
13290 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13291 # necessary to make sure instantiated templates are included
13292 # in the archive.
13293 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13294 ;;
13295 gcx*)
13296 # Green Hills C++ Compiler
13297 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298
13299 # The C++ compiler must be used to create the archive.
13300 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13301 ;;
13302 *)
13303 # GNU C++ compiler with Solaris linker
13304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13305 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13306 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13307 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13308 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13310
13311 # Commands to make compiler produce verbose output that lists
13312 # what "hidden" libraries, object files and flags are used when
13313 # linking a shared library.
13314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315 else
13316 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13317 # platform.
13318 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13319 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13320 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13321
13322 # Commands to make compiler produce verbose output that lists
13323 # what "hidden" libraries, object files and flags are used when
13324 # linking a shared library.
13325 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13326 fi
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13329 case $host_os in
13330 solaris2.[0-5] | solaris2.[0-5].*) ;;
13331 *)
13332 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13333 ;;
13334 esac
13335 fi
13336 ;;
13337 esac
13338 ;;
13339
13340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13341 no_undefined_flag_CXX='${wl}-z,text'
13342 archive_cmds_need_lc_CXX=no
13343 hardcode_shlibpath_var_CXX=no
13344 runpath_var='LD_RUN_PATH'
13345
13346 case $cc_basename in
13347 CC*)
13348 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 ;;
13351 *)
13352 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 ;;
13355 esac
13356 ;;
13357
13358 sysv5* | sco3.2v5* | sco5v6*)
13359 # Note: We can NOT use -z defs as we might desire, because we do not
13360 # link with -lc, and that would cause any symbols used from libc to
13361 # always be unresolved, which means just about no library would
13362 # ever link correctly. If we're not using GNU ld we use -z text
13363 # though, which does catch some bad symbols but isn't as heavy-handed
13364 # as -z defs.
13365 no_undefined_flag_CXX='${wl}-z,text'
13366 allow_undefined_flag_CXX='${wl}-z,nodefs'
13367 archive_cmds_need_lc_CXX=no
13368 hardcode_shlibpath_var_CXX=no
13369 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13370 hardcode_libdir_separator_CXX=':'
13371 link_all_deplibs_CXX=yes
13372 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13373 runpath_var='LD_RUN_PATH'
13374
13375 case $cc_basename in
13376 CC*)
13377 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13380 '"$old_archive_cmds_CXX"
13381 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13382 '"$reload_cmds_CXX"
13383 ;;
13384 *)
13385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 esac
13389 ;;
13390
13391 tandem*)
13392 case $cc_basename in
13393 NCC*)
13394 # NonStop-UX NCC 3.20
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398 *)
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 ;;
13402 esac
13403 ;;
13404
13405 vxworks*)
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13408 ;;
13409
13410 *)
13411 # FIXME: insert proper C++ library support
13412 ld_shlibs_CXX=no
13413 ;;
13414 esac
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13417$as_echo "$ld_shlibs_CXX" >&6; }
13418 test "$ld_shlibs_CXX" = no && can_build_shared=no
13419
13420 GCC_CXX="$GXX"
13421 LD_CXX="$LD"
13422
13423 ## CAVEAT EMPTOR:
13424 ## There is no encapsulation within the following macros, do not change
13425 ## the running order or otherwise move them around unless you know exactly
13426 ## what you are doing...
13427 # Dependencies to place before and after the object being linked:
13428predep_objects_CXX=
13429postdep_objects_CXX=
13430predeps_CXX=
13431postdeps_CXX=
13432compiler_lib_search_path_CXX=
13433
13434cat > conftest.$ac_ext <<_LT_EOF
13435class Foo
13436{
13437public:
13438 Foo (void) { a = 0; }
13439private:
13440 int a;
13441};
13442_LT_EOF
13443
13444
13445_lt_libdeps_save_CFLAGS=$CFLAGS
13446case "$CC $CFLAGS " in #(
13447*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13448*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13449esac
13450
13451if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13452 (eval $ac_compile) 2>&5
13453 ac_status=$?
13454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13455 test $ac_status = 0; }; then
13456 # Parse the compiler output and extract the necessary
13457 # objects, libraries and library flags.
13458
13459 # Sentinel used to keep track of whether or not we are before
13460 # the conftest object file.
13461 pre_test_object_deps_done=no
13462
13463 for p in `eval "$output_verbose_link_cmd"`; do
13464 case ${prev}${p} in
13465
13466 -L* | -R* | -l*)
13467 # Some compilers place space between "-{L,R}" and the path.
13468 # Remove the space.
13469 if test $p = "-L" ||
13470 test $p = "-R"; then
13471 prev=$p
13472 continue
13473 fi
13474
13475 # Expand the sysroot to ease extracting the directories later.
13476 if test -z "$prev"; then
13477 case $p in
13478 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13479 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13480 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13481 esac
13482 fi
13483 case $p in
13484 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13485 esac
13486 if test "$pre_test_object_deps_done" = no; then
13487 case ${prev} in
13488 -L | -R)
13489 # Internal compiler library paths should come after those
13490 # provided the user. The postdeps already come after the
13491 # user supplied libs so there is no need to process them.
13492 if test -z "$compiler_lib_search_path_CXX"; then
13493 compiler_lib_search_path_CXX="${prev}${p}"
13494 else
13495 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13496 fi
13497 ;;
13498 # The "-l" case would never come before the object being
13499 # linked, so don't bother handling this case.
13500 esac
13501 else
13502 if test -z "$postdeps_CXX"; then
13503 postdeps_CXX="${prev}${p}"
13504 else
13505 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13506 fi
13507 fi
13508 prev=
13509 ;;
13510
13511 *.lto.$objext) ;; # Ignore GCC LTO objects
13512 *.$objext)
13513 # This assumes that the test object file only shows up
13514 # once in the compiler output.
13515 if test "$p" = "conftest.$objext"; then
13516 pre_test_object_deps_done=yes
13517 continue
13518 fi
13519
13520 if test "$pre_test_object_deps_done" = no; then
13521 if test -z "$predep_objects_CXX"; then
13522 predep_objects_CXX="$p"
13523 else
13524 predep_objects_CXX="$predep_objects_CXX $p"
13525 fi
13526 else
13527 if test -z "$postdep_objects_CXX"; then
13528 postdep_objects_CXX="$p"
13529 else
13530 postdep_objects_CXX="$postdep_objects_CXX $p"
13531 fi
13532 fi
13533 ;;
13534
13535 *) ;; # Ignore the rest.
13536
13537 esac
13538 done
13539
13540 # Clean up.
13541 rm -f a.out a.exe
13542else
13543 echo "libtool.m4: error: problem compiling CXX test program"
13544fi
13545
13546$RM -f confest.$objext
13547CFLAGS=$_lt_libdeps_save_CFLAGS
13548
13549# PORTME: override above test on systems where it is broken
13550case $host_os in
13551interix[3-9]*)
13552 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13553 # hack all around it, let's just trust "g++" to DTRT.
13554 predep_objects_CXX=
13555 postdep_objects_CXX=
13556 postdeps_CXX=
13557 ;;
13558
13559linux*)
13560 case `$CC -V 2>&1 | sed 5q` in
13561 *Sun\ C*)
13562 # Sun C++ 5.9
13563
13564 # The more standards-conforming stlport4 library is
13565 # incompatible with the Cstd library. Avoid specifying
13566 # it if it's in CXXFLAGS. Ignore libCrun as
13567 # -library=stlport4 depends on it.
13568 case " $CXX $CXXFLAGS " in
13569 *" -library=stlport4 "*)
13570 solaris_use_stlport4=yes
13571 ;;
13572 esac
13573
13574 if test "$solaris_use_stlport4" != yes; then
13575 postdeps_CXX='-library=Cstd -library=Crun'
13576 fi
13577 ;;
13578 esac
13579 ;;
13580
13581solaris*)
13582 case $cc_basename in
13583 CC* | sunCC*)
13584 # The more standards-conforming stlport4 library is
13585 # incompatible with the Cstd library. Avoid specifying
13586 # it if it's in CXXFLAGS. Ignore libCrun as
13587 # -library=stlport4 depends on it.
13588 case " $CXX $CXXFLAGS " in
13589 *" -library=stlport4 "*)
13590 solaris_use_stlport4=yes
13591 ;;
13592 esac
13593
13594 # Adding this requires a known-good setup of shared libraries for
13595 # Sun compiler versions before 5.6, else PIC objects from an old
13596 # archive will be linked into the output, leading to subtle bugs.
13597 if test "$solaris_use_stlport4" != yes; then
13598 postdeps_CXX='-library=Cstd -library=Crun'
13599 fi
13600 ;;
13601 esac
13602 ;;
13603esac
13604
13605
13606case " $postdeps_CXX " in
13607*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13608esac
13609 compiler_lib_search_dirs_CXX=
13610if test -n "${compiler_lib_search_path_CXX}"; then
13611 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13612fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644 lt_prog_compiler_wl_CXX=
13645lt_prog_compiler_pic_CXX=
13646lt_prog_compiler_static_CXX=
13647
13648
13649 # C++ specific cases for pic, static, wl, etc.
13650 if test "$GXX" = yes; then
13651 lt_prog_compiler_wl_CXX='-Wl,'
13652 lt_prog_compiler_static_CXX='-static'
13653
13654 case $host_os in
13655 aix*)
13656 # All AIX code is PIC.
13657 if test "$host_cpu" = ia64; then
13658 # AIX 5 now supports IA64 processor
13659 lt_prog_compiler_static_CXX='-Bstatic'
13660 fi
13661 ;;
13662
13663 amigaos*)
13664 case $host_cpu in
13665 powerpc)
13666 # see comment about AmigaOS4 .so support
13667 lt_prog_compiler_pic_CXX='-fPIC'
13668 ;;
13669 m68k)
13670 # FIXME: we need at least 68020 code to build shared libraries, but
13671 # adding the `-m68020' flag to GCC prevents building anything better,
13672 # like `-m68040'.
13673 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13674 ;;
13675 esac
13676 ;;
13677
13678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13679 # PIC is the default for these OSes.
13680 ;;
13681 mingw* | cygwin* | os2* | pw32* | cegcc*)
13682 # This hack is so that the source file can tell whether it is being
13683 # built for inclusion in a dll (and should export symbols for example).
13684 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13685 # (--disable-auto-import) libraries
13686 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13687 ;;
13688 darwin* | rhapsody*)
13689 # PIC is the default on this platform
13690 # Common symbols not allowed in MH_DYLIB files
13691 lt_prog_compiler_pic_CXX='-fno-common'
13692 ;;
13693 *djgpp*)
13694 # DJGPP does not support shared libraries at all
13695 lt_prog_compiler_pic_CXX=
13696 ;;
13697 haiku*)
13698 # PIC is the default for Haiku.
13699 # The "-static" flag exists, but is broken.
13700 lt_prog_compiler_static_CXX=
13701 ;;
13702 interix[3-9]*)
13703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13704 # Instead, we relocate shared libraries at runtime.
13705 ;;
13706 sysv4*MP*)
13707 if test -d /usr/nec; then
13708 lt_prog_compiler_pic_CXX=-Kconform_pic
13709 fi
13710 ;;
13711 hpux*)
13712 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13713 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13714 # sets the default TLS model and affects inlining.
13715 case $host_cpu in
13716 hppa*64*)
13717 ;;
13718 *)
13719 lt_prog_compiler_pic_CXX='-fPIC'
13720 ;;
13721 esac
13722 ;;
13723 *qnx* | *nto*)
13724 # QNX uses GNU C++, but need to define -shared option too, otherwise
13725 # it will coredump.
13726 lt_prog_compiler_pic_CXX='-fPIC -shared'
13727 ;;
13728 *)
13729 lt_prog_compiler_pic_CXX='-fPIC'
13730 ;;
13731 esac
13732 else
13733 case $host_os in
13734 aix[4-9]*)
13735 # All AIX code is PIC.
13736 if test "$host_cpu" = ia64; then
13737 # AIX 5 now supports IA64 processor
13738 lt_prog_compiler_static_CXX='-Bstatic'
13739 else
13740 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13741 fi
13742 ;;
13743 chorus*)
13744 case $cc_basename in
13745 cxch68*)
13746 # Green Hills C++ Compiler
13747 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13748 ;;
13749 esac
13750 ;;
13751 mingw* | cygwin* | os2* | pw32* | cegcc*)
13752 # This hack is so that the source file can tell whether it is being
13753 # built for inclusion in a dll (and should export symbols for example).
13754 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13755 ;;
13756 dgux*)
13757 case $cc_basename in
13758 ec++*)
13759 lt_prog_compiler_pic_CXX='-KPIC'
13760 ;;
13761 ghcx*)
13762 # Green Hills C++ Compiler
13763 lt_prog_compiler_pic_CXX='-pic'
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 freebsd* | dragonfly*)
13770 # FreeBSD uses GNU C++
13771 ;;
13772 hpux9* | hpux10* | hpux11*)
13773 case $cc_basename in
13774 CC*)
13775 lt_prog_compiler_wl_CXX='-Wl,'
13776 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13777 if test "$host_cpu" != ia64; then
13778 lt_prog_compiler_pic_CXX='+Z'
13779 fi
13780 ;;
13781 aCC*)
13782 lt_prog_compiler_wl_CXX='-Wl,'
13783 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13784 case $host_cpu in
13785 hppa*64*|ia64*)
13786 # +Z the default
13787 ;;
13788 *)
13789 lt_prog_compiler_pic_CXX='+Z'
13790 ;;
13791 esac
13792 ;;
13793 *)
13794 ;;
13795 esac
13796 ;;
13797 interix*)
13798 # This is c89, which is MS Visual C++ (no shared libs)
13799 # Anyone wants to do a port?
13800 ;;
13801 irix5* | irix6* | nonstopux*)
13802 case $cc_basename in
13803 CC*)
13804 lt_prog_compiler_wl_CXX='-Wl,'
13805 lt_prog_compiler_static_CXX='-non_shared'
13806 # CC pic flag -KPIC is the default.
13807 ;;
13808 *)
13809 ;;
13810 esac
13811 ;;
13812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13813 case $cc_basename in
13814 KCC*)
13815 # KAI C++ Compiler
13816 lt_prog_compiler_wl_CXX='--backend -Wl,'
13817 lt_prog_compiler_pic_CXX='-fPIC'
13818 ;;
13819 ecpc* )
13820 # old Intel C++ for x86_64 which still supported -KPIC.
13821 lt_prog_compiler_wl_CXX='-Wl,'
13822 lt_prog_compiler_pic_CXX='-KPIC'
13823 lt_prog_compiler_static_CXX='-static'
13824 ;;
13825 icpc* )
13826 # Intel C++, used to be incompatible with GCC.
13827 # ICC 10 doesn't accept -KPIC any more.
13828 lt_prog_compiler_wl_CXX='-Wl,'
13829 lt_prog_compiler_pic_CXX='-fPIC'
13830 lt_prog_compiler_static_CXX='-static'
13831 ;;
13832 pgCC* | pgcpp*)
13833 # Portland Group C++ compiler
13834 lt_prog_compiler_wl_CXX='-Wl,'
13835 lt_prog_compiler_pic_CXX='-fpic'
13836 lt_prog_compiler_static_CXX='-Bstatic'
13837 ;;
13838 cxx*)
13839 # Compaq C++
13840 # Make sure the PIC flag is empty. It appears that all Alpha
13841 # Linux and Compaq Tru64 Unix objects are PIC.
13842 lt_prog_compiler_pic_CXX=
13843 lt_prog_compiler_static_CXX='-non_shared'
13844 ;;
13845 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13846 # IBM XL 8.0, 9.0 on PPC and BlueGene
13847 lt_prog_compiler_wl_CXX='-Wl,'
13848 lt_prog_compiler_pic_CXX='-qpic'
13849 lt_prog_compiler_static_CXX='-qstaticlink'
13850 ;;
13851 *)
13852 case `$CC -V 2>&1 | sed 5q` in
13853 *Sun\ C*)
13854 # Sun C++ 5.9
13855 lt_prog_compiler_pic_CXX='-KPIC'
13856 lt_prog_compiler_static_CXX='-Bstatic'
13857 lt_prog_compiler_wl_CXX='-Qoption ld '
13858 ;;
13859 esac
13860 ;;
13861 esac
13862 ;;
13863 lynxos*)
13864 ;;
13865 m88k*)
13866 ;;
13867 mvs*)
13868 case $cc_basename in
13869 cxx*)
13870 lt_prog_compiler_pic_CXX='-W c,exportall'
13871 ;;
13872 *)
13873 ;;
13874 esac
13875 ;;
13876 netbsd*)
13877 ;;
13878 *qnx* | *nto*)
13879 # QNX uses GNU C++, but need to define -shared option too, otherwise
13880 # it will coredump.
13881 lt_prog_compiler_pic_CXX='-fPIC -shared'
13882 ;;
13883 osf3* | osf4* | osf5*)
13884 case $cc_basename in
13885 KCC*)
13886 lt_prog_compiler_wl_CXX='--backend -Wl,'
13887 ;;
13888 RCC*)
13889 # Rational C++ 2.4.1
13890 lt_prog_compiler_pic_CXX='-pic'
13891 ;;
13892 cxx*)
13893 # Digital/Compaq C++
13894 lt_prog_compiler_wl_CXX='-Wl,'
13895 # Make sure the PIC flag is empty. It appears that all Alpha
13896 # Linux and Compaq Tru64 Unix objects are PIC.
13897 lt_prog_compiler_pic_CXX=
13898 lt_prog_compiler_static_CXX='-non_shared'
13899 ;;
13900 *)
13901 ;;
13902 esac
13903 ;;
13904 psos*)
13905 ;;
13906 solaris*)
13907 case $cc_basename in
13908 CC* | sunCC*)
13909 # Sun C++ 4.2, 5.x and Centerline C++
13910 lt_prog_compiler_pic_CXX='-KPIC'
13911 lt_prog_compiler_static_CXX='-Bstatic'
13912 lt_prog_compiler_wl_CXX='-Qoption ld '
13913 ;;
13914 gcx*)
13915 # Green Hills C++ Compiler
13916 lt_prog_compiler_pic_CXX='-PIC'
13917 ;;
13918 *)
13919 ;;
13920 esac
13921 ;;
13922 sunos4*)
13923 case $cc_basename in
13924 CC*)
13925 # Sun C++ 4.x
13926 lt_prog_compiler_pic_CXX='-pic'
13927 lt_prog_compiler_static_CXX='-Bstatic'
13928 ;;
13929 lcc*)
13930 # Lucid
13931 lt_prog_compiler_pic_CXX='-pic'
13932 ;;
13933 *)
13934 ;;
13935 esac
13936 ;;
13937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13938 case $cc_basename in
13939 CC*)
13940 lt_prog_compiler_wl_CXX='-Wl,'
13941 lt_prog_compiler_pic_CXX='-KPIC'
13942 lt_prog_compiler_static_CXX='-Bstatic'
13943 ;;
13944 esac
13945 ;;
13946 tandem*)
13947 case $cc_basename in
13948 NCC*)
13949 # NonStop-UX NCC 3.20
13950 lt_prog_compiler_pic_CXX='-KPIC'
13951 ;;
13952 *)
13953 ;;
13954 esac
13955 ;;
13956 vxworks*)
13957 ;;
13958 *)
13959 lt_prog_compiler_can_build_shared_CXX=no
13960 ;;
13961 esac
13962 fi
13963
13964case $host_os in
13965 # For platforms which do not support PIC, -DPIC is meaningless:
13966 *djgpp*)
13967 lt_prog_compiler_pic_CXX=
13968 ;;
13969 *)
13970 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13971 ;;
13972esac
13973
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13975$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13976if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978else
13979 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13982$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13983lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13984
13985#
13986# Check to make sure the PIC flag actually works.
13987#
13988if test -n "$lt_prog_compiler_pic_CXX"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13990$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13991if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993else
13994 lt_cv_prog_compiler_pic_works_CXX=no
13995 ac_outfile=conftest.$ac_objext
13996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13997 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13998 # Insert the option either (1) after the last *FLAGS variable, or
13999 # (2) before a word containing "conftest.", or (3) at the end.
14000 # Note that $ac_compile itself does not contain backslashes and begins
14001 # with a dollar sign (not a hyphen), so the echo should work correctly.
14002 # The option is referenced via a variable to avoid confusing sed.
14003 lt_compile=`echo "$ac_compile" | $SED \
14004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14006 -e 's:$: $lt_compiler_flag:'`
14007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14008 (eval "$lt_compile" 2>conftest.err)
14009 ac_status=$?
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 if (exit $ac_status) && test -s "$ac_outfile"; then
14013 # The compiler can only warn and ignore the option if not recognized
14014 # So say no if there are warnings other than the usual output.
14015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14018 lt_cv_prog_compiler_pic_works_CXX=yes
14019 fi
14020 fi
14021 $RM conftest*
14022
14023fi
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14025$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14026
14027if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14028 case $lt_prog_compiler_pic_CXX in
14029 "" | " "*) ;;
14030 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14031 esac
14032else
14033 lt_prog_compiler_pic_CXX=
14034 lt_prog_compiler_can_build_shared_CXX=no
14035fi
14036
14037fi
14038
14039
14040
14041
14042
14043#
14044# Check to make sure the static flag actually works.
14045#
14046wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14048$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14049if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051else
14052 lt_cv_prog_compiler_static_works_CXX=no
14053 save_LDFLAGS="$LDFLAGS"
14054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14057 # The linker can only warn and ignore the option if not recognized
14058 # So say no if there are warnings
14059 if test -s conftest.err; then
14060 # Append any errors to the config.log.
14061 cat conftest.err 1>&5
14062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14064 if diff conftest.exp conftest.er2 >/dev/null; then
14065 lt_cv_prog_compiler_static_works_CXX=yes
14066 fi
14067 else
14068 lt_cv_prog_compiler_static_works_CXX=yes
14069 fi
14070 fi
14071 $RM -r conftest*
14072 LDFLAGS="$save_LDFLAGS"
14073
14074fi
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14076$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14077
14078if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14079 :
14080else
14081 lt_prog_compiler_static_CXX=
14082fi
14083
14084
14085
14086
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14088$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14089if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14090 $as_echo_n "(cached) " >&6
14091else
14092 lt_cv_prog_compiler_c_o_CXX=no
14093 $RM -r conftest 2>/dev/null
14094 mkdir conftest
14095 cd conftest
14096 mkdir out
14097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14098
14099 lt_compiler_flag="-o out/conftest2.$ac_objext"
14100 # Insert the option either (1) after the last *FLAGS variable, or
14101 # (2) before a word containing "conftest.", or (3) at the end.
14102 # Note that $ac_compile itself does not contain backslashes and begins
14103 # with a dollar sign (not a hyphen), so the echo should work correctly.
14104 lt_compile=`echo "$ac_compile" | $SED \
14105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14107 -e 's:$: $lt_compiler_flag:'`
14108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14109 (eval "$lt_compile" 2>out/conftest.err)
14110 ac_status=$?
14111 cat out/conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14114 then
14115 # The compiler can only warn and ignore the option if not recognized
14116 # So say no if there are warnings
14117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14120 lt_cv_prog_compiler_c_o_CXX=yes
14121 fi
14122 fi
14123 chmod u+w . 2>&5
14124 $RM conftest*
14125 # SGI C++ compiler will create directory out/ii_files/ for
14126 # template instantiation
14127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14128 $RM out/* && rmdir out
14129 cd ..
14130 $RM -r conftest
14131 $RM conftest*
14132
14133fi
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14135$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14136
14137
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14141if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143else
14144 lt_cv_prog_compiler_c_o_CXX=no
14145 $RM -r conftest 2>/dev/null
14146 mkdir conftest
14147 cd conftest
14148 mkdir out
14149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150
14151 lt_compiler_flag="-o out/conftest2.$ac_objext"
14152 # Insert the option either (1) after the last *FLAGS variable, or
14153 # (2) before a word containing "conftest.", or (3) at the end.
14154 # Note that $ac_compile itself does not contain backslashes and begins
14155 # with a dollar sign (not a hyphen), so the echo should work correctly.
14156 lt_compile=`echo "$ac_compile" | $SED \
14157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159 -e 's:$: $lt_compiler_flag:'`
14160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14161 (eval "$lt_compile" 2>out/conftest.err)
14162 ac_status=$?
14163 cat out/conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14166 then
14167 # The compiler can only warn and ignore the option if not recognized
14168 # So say no if there are warnings
14169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14172 lt_cv_prog_compiler_c_o_CXX=yes
14173 fi
14174 fi
14175 chmod u+w . 2>&5
14176 $RM conftest*
14177 # SGI C++ compiler will create directory out/ii_files/ for
14178 # template instantiation
14179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14180 $RM out/* && rmdir out
14181 cd ..
14182 $RM -r conftest
14183 $RM conftest*
14184
14185fi
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14187$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14188
14189
14190
14191
14192hard_links="nottested"
14193if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14194 # do not overwrite the value of need_locks provided by the user
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14196$as_echo_n "checking if we can lock with hard links... " >&6; }
14197 hard_links=yes
14198 $RM conftest*
14199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14200 touch conftest.a
14201 ln conftest.a conftest.b 2>&5 || hard_links=no
14202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14204$as_echo "$hard_links" >&6; }
14205 if test "$hard_links" = no; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14207$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14208 need_locks=warn
14209 fi
14210else
14211 need_locks=no
14212fi
14213
14214
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14217$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14218
14219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14220 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14221 case $host_os in
14222 aix[4-9]*)
14223 # If we're using GNU nm, then we don't want the "-C" option.
14224 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14225 # Also, AIX nm treats weak defined symbols like other global defined
14226 # symbols, whereas GNU nm marks them as "W".
14227 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14228 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14229 else
14230 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14231 fi
14232 ;;
14233 pw32*)
14234 export_symbols_cmds_CXX="$ltdll_cmds"
14235 ;;
14236 cygwin* | mingw* | cegcc*)
14237 case $cc_basename in
14238 cl*) ;;
14239 *)
14240 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14241 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14242 ;;
14243 esac
14244 ;;
14245 *)
14246 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14247 ;;
14248 esac
14249
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14251$as_echo "$ld_shlibs_CXX" >&6; }
14252test "$ld_shlibs_CXX" = no && can_build_shared=no
14253
14254with_gnu_ld_CXX=$with_gnu_ld
14255
14256
14257
14258
14259
14260
14261#
14262# Do we need to explicitly link libc?
14263#
14264case "x$archive_cmds_need_lc_CXX" in
14265x|xyes)
14266 # Assume -lc should be added
14267 archive_cmds_need_lc_CXX=yes
14268
14269 if test "$enable_shared" = yes && test "$GCC" = yes; then
14270 case $archive_cmds_CXX in
14271 *'~'*)
14272 # FIXME: we may have to deal with multi-command sequences.
14273 ;;
14274 '$CC '*)
14275 # Test whether the compiler implicitly links with -lc since on some
14276 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14277 # to ld, don't add -lc before -lgcc.
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14279$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14280if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282else
14283 $RM conftest*
14284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14285
14286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14287 (eval $ac_compile) 2>&5
14288 ac_status=$?
14289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14290 test $ac_status = 0; } 2>conftest.err; then
14291 soname=conftest
14292 lib=conftest
14293 libobjs=conftest.$ac_objext
14294 deplibs=
14295 wl=$lt_prog_compiler_wl_CXX
14296 pic_flag=$lt_prog_compiler_pic_CXX
14297 compiler_flags=-v
14298 linker_flags=-v
14299 verstring=
14300 output_objdir=.
14301 libname=conftest
14302 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14303 allow_undefined_flag_CXX=
14304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14305 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14306 ac_status=$?
14307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14308 test $ac_status = 0; }
14309 then
14310 lt_cv_archive_cmds_need_lc_CXX=no
14311 else
14312 lt_cv_archive_cmds_need_lc_CXX=yes
14313 fi
14314 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14315 else
14316 cat conftest.err 1>&5
14317 fi
14318 $RM conftest*
14319
14320fi
14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14322$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14323 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14324 ;;
14325 esac
14326 fi
14327 ;;
14328esac
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14394$as_echo_n "checking dynamic linker characteristics... " >&6; }
14395
14396library_names_spec=
14397libname_spec='lib$name'
14398soname_spec=
14399shrext_cmds=".so"
14400postinstall_cmds=
14401postuninstall_cmds=
14402finish_cmds=
14403finish_eval=
14404shlibpath_var=
14405shlibpath_overrides_runpath=unknown
14406version_type=none
14407dynamic_linker="$host_os ld.so"
14408sys_lib_dlsearch_path_spec="/lib /usr/lib"
14409need_lib_prefix=unknown
14410hardcode_into_libs=no
14411
14412# when you set need_version to no, make sure it does not cause -set_version
14413# flags to be left without arguments
14414need_version=unknown
14415
14416case $host_os in
14417aix3*)
14418 version_type=linux
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14420 shlibpath_var=LIBPATH
14421
14422 # AIX 3 has no versioning support, so we append a major version to the name.
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 ;;
14425
14426aix[4-9]*)
14427 version_type=linux
14428 need_lib_prefix=no
14429 need_version=no
14430 hardcode_into_libs=yes
14431 if test "$host_cpu" = ia64; then
14432 # AIX 5 supports IA64
14433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 else
14436 # With GCC up to 2.95.x, collect2 would create an import file
14437 # for dependence libraries. The import file would start with
14438 # the line `#! .'. This would cause the generated library to
14439 # depend on `.', always an invalid library. This was fixed in
14440 # development snapshots of GCC prior to 3.0.
14441 case $host_os in
14442 aix4 | aix4.[01] | aix4.[01].*)
14443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14444 echo ' yes '
14445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14446 :
14447 else
14448 can_build_shared=no
14449 fi
14450 ;;
14451 esac
14452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14453 # soname into executable. Probably we can add versioning support to
14454 # collect2, so additional links can be useful in future.
14455 if test "$aix_use_runtimelinking" = yes; then
14456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14457 # instead of lib<name>.a to let people know that these are not
14458 # typical AIX shared libraries.
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 else
14461 # We preserve .a as extension for shared libraries through AIX4.2
14462 # and later when we are not doing run time linking.
14463 library_names_spec='${libname}${release}.a $libname.a'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 fi
14466 shlibpath_var=LIBPATH
14467 fi
14468 ;;
14469
14470amigaos*)
14471 case $host_cpu in
14472 powerpc)
14473 # Since July 2007 AmigaOS4 officially supports .so libraries.
14474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 ;;
14477 m68k)
14478 library_names_spec='$libname.ixlibrary $libname.a'
14479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14480 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'
14481 ;;
14482 esac
14483 ;;
14484
14485beos*)
14486 library_names_spec='${libname}${shared_ext}'
14487 dynamic_linker="$host_os ld.so"
14488 shlibpath_var=LIBRARY_PATH
14489 ;;
14490
14491bsdi[45]*)
14492 version_type=linux
14493 need_version=no
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14500 # the default ld.so.conf also contains /usr/contrib/lib and
14501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14502 # libtool to hard-code these into programs
14503 ;;
14504
14505cygwin* | mingw* | pw32* | cegcc*)
14506 version_type=windows
14507 shrext_cmds=".dll"
14508 need_version=no
14509 need_lib_prefix=no
14510
14511 case $GCC,$cc_basename in
14512 yes,*)
14513 # gcc
14514 library_names_spec='$libname.dll.a'
14515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14516 postinstall_cmds='base_file=`basename \${file}`~
14517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14518 dldir=$destdir/`dirname \$dlpath`~
14519 test -d \$dldir || mkdir -p \$dldir~
14520 $install_prog $dir/$dlname \$dldir/$dlname~
14521 chmod a+x \$dldir/$dlname~
14522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14524 fi'
14525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14526 dlpath=$dir/\$dldll~
14527 $RM \$dlpath'
14528 shlibpath_overrides_runpath=yes
14529
14530 case $host_os in
14531 cygwin*)
14532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534
14535 ;;
14536 mingw* | cegcc*)
14537 # MinGW DLLs use traditional 'lib' prefix
14538 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539 ;;
14540 pw32*)
14541 # pw32 DLLs use 'pw' prefix rather than 'lib'
14542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14543 ;;
14544 esac
14545 dynamic_linker='Win32 ld.exe'
14546 ;;
14547
14548 *,cl*)
14549 # Native MSVC
14550 libname_spec='$name'
14551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14552 library_names_spec='${libname}.dll.lib'
14553
14554 case $build_os in
14555 mingw*)
14556 sys_lib_search_path_spec=
14557 lt_save_ifs=$IFS
14558 IFS=';'
14559 for lt_path in $LIB
14560 do
14561 IFS=$lt_save_ifs
14562 # Let DOS variable expansion print the short 8.3 style file name.
14563 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14564 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14565 done
14566 IFS=$lt_save_ifs
14567 # Convert to MSYS style.
14568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14569 ;;
14570 cygwin*)
14571 # Convert to unix form, then to dos form, then back to unix form
14572 # but this time dos style (no spaces!) so that the unix form looks
14573 # like /cygdrive/c/PROGRA~1:/cygdr...
14574 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14575 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14576 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14577 ;;
14578 *)
14579 sys_lib_search_path_spec="$LIB"
14580 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14581 # It is most probably a Windows format PATH.
14582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14583 else
14584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14585 fi
14586 # FIXME: find the short name or the path components, as spaces are
14587 # common. (e.g. "Program Files" -> "PROGRA~1")
14588 ;;
14589 esac
14590
14591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14592 postinstall_cmds='base_file=`basename \${file}`~
14593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14594 dldir=$destdir/`dirname \$dlpath`~
14595 test -d \$dldir || mkdir -p \$dldir~
14596 $install_prog $dir/$dlname \$dldir/$dlname'
14597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14598 dlpath=$dir/\$dldll~
14599 $RM \$dlpath'
14600 shlibpath_overrides_runpath=yes
14601 dynamic_linker='Win32 link.exe'
14602 ;;
14603
14604 *)
14605 # Assume MSVC wrapper
14606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14607 dynamic_linker='Win32 ld.exe'
14608 ;;
14609 esac
14610 # FIXME: first we should search . and the directory the executable is in
14611 shlibpath_var=PATH
14612 ;;
14613
14614darwin* | rhapsody*)
14615 dynamic_linker="$host_os dyld"
14616 version_type=darwin
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14620 soname_spec='${libname}${release}${major}$shared_ext'
14621 shlibpath_overrides_runpath=yes
14622 shlibpath_var=DYLD_LIBRARY_PATH
14623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14624
14625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14626 ;;
14627
14628dgux*)
14629 version_type=linux
14630 need_lib_prefix=no
14631 need_version=no
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 ;;
14636
14637freebsd1*)
14638 dynamic_linker=no
14639 ;;
14640
14641freebsd* | dragonfly*)
14642 # DragonFly does not have aout. When/if they implement a new
14643 # versioning mechanism, adjust this.
14644 if test -x /usr/bin/objformat; then
14645 objformat=`/usr/bin/objformat`
14646 else
14647 case $host_os in
14648 freebsd[123]*) objformat=aout ;;
14649 *) objformat=elf ;;
14650 esac
14651 fi
14652 version_type=freebsd-$objformat
14653 case $version_type in
14654 freebsd-elf*)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14656 need_version=no
14657 need_lib_prefix=no
14658 ;;
14659 freebsd-*)
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14661 need_version=yes
14662 ;;
14663 esac
14664 shlibpath_var=LD_LIBRARY_PATH
14665 case $host_os in
14666 freebsd2*)
14667 shlibpath_overrides_runpath=yes
14668 ;;
14669 freebsd3.[01]* | freebsdelf3.[01]*)
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14672 ;;
14673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678 *) # from 4.6 on, and DragonFly
14679 shlibpath_overrides_runpath=yes
14680 hardcode_into_libs=yes
14681 ;;
14682 esac
14683 ;;
14684
14685gnu*)
14686 version_type=linux
14687 need_lib_prefix=no
14688 need_version=no
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 hardcode_into_libs=yes
14693 ;;
14694
14695haiku*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 dynamic_linker="$host_os runtime_loader"
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 shlibpath_var=LIBRARY_PATH
14703 shlibpath_overrides_runpath=yes
14704 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14705 hardcode_into_libs=yes
14706 ;;
14707
14708hpux9* | hpux10* | hpux11*)
14709 # Give a soname corresponding to the major version so that dld.sl refuses to
14710 # link against other versions.
14711 version_type=sunos
14712 need_lib_prefix=no
14713 need_version=no
14714 case $host_cpu in
14715 ia64*)
14716 shrext_cmds='.so'
14717 hardcode_into_libs=yes
14718 dynamic_linker="$host_os dld.so"
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 if test "X$HPUX_IA64_MODE" = X32; then
14724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14725 else
14726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14727 fi
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 hppa*64*)
14731 shrext_cmds='.sl'
14732 hardcode_into_libs=yes
14733 dynamic_linker="$host_os dld.sl"
14734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14740 ;;
14741 *)
14742 shrext_cmds='.sl'
14743 dynamic_linker="$host_os dld.sl"
14744 shlibpath_var=SHLIB_PATH
14745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 ;;
14749 esac
14750 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14751 postinstall_cmds='chmod 555 $lib'
14752 # or fails outright, so override atomically:
14753 install_override_mode=555
14754 ;;
14755
14756interix[3-9]*)
14757 version_type=linux
14758 need_lib_prefix=no
14759 need_version=no
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14766 ;;
14767
14768irix5* | irix6* | nonstopux*)
14769 case $host_os in
14770 nonstopux*) version_type=nonstopux ;;
14771 *)
14772 if test "$lt_cv_prog_gnu_ld" = yes; then
14773 version_type=linux
14774 else
14775 version_type=irix
14776 fi ;;
14777 esac
14778 need_lib_prefix=no
14779 need_version=no
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14782 case $host_os in
14783 irix5* | nonstopux*)
14784 libsuff= shlibsuff=
14785 ;;
14786 *)
14787 case $LD in # libtool.m4 will add one of these switches to LD
14788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14789 libsuff= shlibsuff= libmagic=32-bit;;
14790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14791 libsuff=32 shlibsuff=N32 libmagic=N32;;
14792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14794 *) libsuff= shlibsuff= libmagic=never-match;;
14795 esac
14796 ;;
14797 esac
14798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14799 shlibpath_overrides_runpath=no
14800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14802 hardcode_into_libs=yes
14803 ;;
14804
14805# No shared lib support for Linux oldld, aout, or coff.
14806linux*oldld* | linux*aout* | linux*coff*)
14807 dynamic_linker=no
14808 ;;
14809
14810# This must be Linux ELF.
14811linux* | k*bsd*-gnu | kopensolaris*-gnu)
14812 version_type=linux
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=no
14820
14821 # Some binutils ld are patched to set DT_RUNPATH
14822 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14823 $as_echo_n "(cached) " >&6
14824else
14825 lt_cv_shlibpath_overrides_runpath=no
14826 save_LDFLAGS=$LDFLAGS
14827 save_libdir=$libdir
14828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h. */
14832
14833int
14834main ()
14835{
14836
14837 ;
14838 return 0;
14839}
14840_ACEOF
14841if ac_fn_cxx_try_link "$LINENO"; then :
14842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14843 lt_cv_shlibpath_overrides_runpath=yes
14844fi
14845fi
14846rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LDFLAGS=$save_LDFLAGS
14849 libdir=$save_libdir
14850
14851fi
14852
14853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14854
14855 # This implies no fast_install, which is unacceptable.
14856 # Some rework will be needed to allow for fast_install
14857 # before this can be enabled.
14858 hardcode_into_libs=yes
14859
14860 # Append ld.so.conf contents to the search path
14861 if test -f /etc/ld.so.conf; then
14862 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' ' '`
14863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14864 fi
14865
14866 # We used to test for /lib/ld.so.1 and disable shared libraries on
14867 # powerpc, because MkLinux only supported shared libraries with the
14868 # GNU dynamic linker. Since this was broken with cross compilers,
14869 # most powerpc-linux boxes support dynamic linking these days and
14870 # people can always --disable-shared, the test was removed, and we
14871 # assume the GNU/Linux dynamic linker is in use.
14872 dynamic_linker='GNU/Linux ld.so'
14873 ;;
14874
14875netbsd*)
14876 version_type=sunos
14877 need_lib_prefix=no
14878 need_version=no
14879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14882 dynamic_linker='NetBSD (a.out) ld.so'
14883 else
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 dynamic_linker='NetBSD ld.elf_so'
14887 fi
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14891 ;;
14892
14893newsos6)
14894 version_type=linux
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 ;;
14899
14900*nto* | *qnx*)
14901 version_type=qnx
14902 need_lib_prefix=no
14903 need_version=no
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 dynamic_linker='ldqnx.so'
14910 ;;
14911
14912openbsd*)
14913 version_type=sunos
14914 sys_lib_dlsearch_path_spec="/usr/lib"
14915 need_lib_prefix=no
14916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14917 case $host_os in
14918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14919 *) need_version=no ;;
14920 esac
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14925 case $host_os in
14926 openbsd2.[89] | openbsd2.[89].*)
14927 shlibpath_overrides_runpath=no
14928 ;;
14929 *)
14930 shlibpath_overrides_runpath=yes
14931 ;;
14932 esac
14933 else
14934 shlibpath_overrides_runpath=yes
14935 fi
14936 ;;
14937
14938os2*)
14939 libname_spec='$name'
14940 shrext_cmds=".dll"
14941 need_lib_prefix=no
14942 library_names_spec='$libname${shared_ext} $libname.a'
14943 dynamic_linker='OS/2 ld.exe'
14944 shlibpath_var=LIBPATH
14945 ;;
14946
14947osf3* | osf4* | osf5*)
14948 version_type=osf
14949 need_lib_prefix=no
14950 need_version=no
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14956 ;;
14957
14958rdos*)
14959 dynamic_linker=no
14960 ;;
14961
14962solaris*)
14963 version_type=linux
14964 need_lib_prefix=no
14965 need_version=no
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath=yes
14970 hardcode_into_libs=yes
14971 # ldd complains unless libraries are executable
14972 postinstall_cmds='chmod +x $lib'
14973 ;;
14974
14975sunos4*)
14976 version_type=sunos
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=yes
14981 if test "$with_gnu_ld" = yes; then
14982 need_lib_prefix=no
14983 fi
14984 need_version=yes
14985 ;;
14986
14987sysv4 | sysv4.3*)
14988 version_type=linux
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 case $host_vendor in
14993 sni)
14994 shlibpath_overrides_runpath=no
14995 need_lib_prefix=no
14996 runpath_var=LD_RUN_PATH
14997 ;;
14998 siemens)
14999 need_lib_prefix=no
15000 ;;
15001 motorola)
15002 need_lib_prefix=no
15003 need_version=no
15004 shlibpath_overrides_runpath=no
15005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15006 ;;
15007 esac
15008 ;;
15009
15010sysv4*MP*)
15011 if test -d /usr/nec ;then
15012 version_type=linux
15013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15014 soname_spec='$libname${shared_ext}.$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 fi
15017 ;;
15018
15019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15020 version_type=freebsd-elf
15021 need_lib_prefix=no
15022 need_version=no
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=yes
15027 hardcode_into_libs=yes
15028 if test "$with_gnu_ld" = yes; then
15029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15030 else
15031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15032 case $host_os in
15033 sco3.2v5*)
15034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15035 ;;
15036 esac
15037 fi
15038 sys_lib_dlsearch_path_spec='/usr/lib'
15039 ;;
15040
15041tpf*)
15042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15043 version_type=linux
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15049 hardcode_into_libs=yes
15050 ;;
15051
15052uts4*)
15053 version_type=linux
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 ;;
15058
15059*)
15060 dynamic_linker=no
15061 ;;
15062esac
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15064$as_echo "$dynamic_linker" >&6; }
15065test "$dynamic_linker" = no && can_build_shared=no
15066
15067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15068if test "$GCC" = yes; then
15069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15070fi
15071
15072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15074fi
15075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15077fi
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15117$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15118hardcode_action_CXX=
15119if test -n "$hardcode_libdir_flag_spec_CXX" ||
15120 test -n "$runpath_var_CXX" ||
15121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15122
15123 # We can hardcode non-existent directories.
15124 if test "$hardcode_direct_CXX" != no &&
15125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15126 # have to relink, otherwise we might link with an installed library
15127 # when we should be linking with a yet-to-be-installed one
15128 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15129 test "$hardcode_minus_L_CXX" != no; then
15130 # Linking always hardcodes the temporary library directory.
15131 hardcode_action_CXX=relink
15132 else
15133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15134 hardcode_action_CXX=immediate
15135 fi
15136else
15137 # We cannot hardcode anything, or else we can only hardcode existing
15138 # directories.
15139 hardcode_action_CXX=unsupported
15140fi
15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15142$as_echo "$hardcode_action_CXX" >&6; }
15143
15144if test "$hardcode_action_CXX" = relink ||
15145 test "$inherit_rpath_CXX" = yes; then
15146 # Fast installation is not supported
15147 enable_fast_install=no
15148elif test "$shlibpath_overrides_runpath" = yes ||
15149 test "$enable_shared" = no; then
15150 # Fast installation is not necessary
15151 enable_fast_install=needless
15152fi
15153
15154
15155
15156
15157
15158
15159
15160 fi # test -n "$compiler"
15161
15162 CC=$lt_save_CC
15163 CFLAGS=$lt_save_CFLAGS
15164 LDCXX=$LD
15165 LD=$lt_save_LD
15166 GCC=$lt_save_GCC
15167 with_gnu_ld=$lt_save_with_gnu_ld
15168 lt_cv_path_LDCXX=$lt_cv_path_LD
15169 lt_cv_path_LD=$lt_save_path_LD
15170 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15171 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15172fi # test "$_lt_caught_CXX_error" != yes
15173
15174ac_ext=c
15175ac_cpp='$CPP $CPPFLAGS'
15176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15178ac_compiler_gnu=$ac_cv_c_compiler_gnu
15179
15180
15181ac_ext=cpp
15182ac_cpp='$CXXCPP $CPPFLAGS'
15183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15188$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15189if ${ac_cv_c_bigendian+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191else
15192 ac_cv_c_bigendian=unknown
15193 # See if we're dealing with a universal compiler.
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195/* end confdefs.h. */
15196#ifndef __APPLE_CC__
15197 not a universal capable compiler
15198 #endif
15199 typedef int dummy;
15200
15201_ACEOF
15202if ac_fn_cxx_try_compile "$LINENO"; then :
15203
15204 # Check for potential -arch flags. It is not universal unless
15205 # there are at least two -arch flags with different values.
15206 ac_arch=
15207 ac_prev=
15208 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15209 if test -n "$ac_prev"; then
15210 case $ac_word in
15211 i?86 | x86_64 | ppc | ppc64)
15212 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15213 ac_arch=$ac_word
15214 else
15215 ac_cv_c_bigendian=universal
15216 break
15217 fi
15218 ;;
15219 esac
15220 ac_prev=
15221 elif test "x$ac_word" = "x-arch"; then
15222 ac_prev=arch
15223 fi
15224 done
15225fi
15226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227 if test $ac_cv_c_bigendian = unknown; then
15228 # See if sys/param.h defines the BYTE_ORDER macro.
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h. */
15231#include <sys/types.h>
15232 #include <sys/param.h>
15233
15234int
15235main ()
15236{
15237#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15238 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15239 && LITTLE_ENDIAN)
15240 bogus endian macros
15241 #endif
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247if ac_fn_cxx_try_compile "$LINENO"; then :
15248 # It does; now see whether it defined to BIG_ENDIAN or not.
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250/* end confdefs.h. */
15251#include <sys/types.h>
15252 #include <sys/param.h>
15253
15254int
15255main ()
15256{
15257#if BYTE_ORDER != BIG_ENDIAN
15258 not big endian
15259 #endif
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265if ac_fn_cxx_try_compile "$LINENO"; then :
15266 ac_cv_c_bigendian=yes
15267else
15268 ac_cv_c_bigendian=no
15269fi
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271fi
15272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 fi
15274 if test $ac_cv_c_bigendian = unknown; then
15275 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h. */
15278#include <limits.h>
15279
15280int
15281main ()
15282{
15283#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15284 bogus endian macros
15285 #endif
15286
15287 ;
15288 return 0;
15289}
15290_ACEOF
15291if ac_fn_cxx_try_compile "$LINENO"; then :
15292 # It does; now see whether it defined to _BIG_ENDIAN or not.
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h. */
15295#include <limits.h>
15296
15297int
15298main ()
15299{
15300#ifndef _BIG_ENDIAN
15301 not big endian
15302 #endif
15303
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308if ac_fn_cxx_try_compile "$LINENO"; then :
15309 ac_cv_c_bigendian=yes
15310else
15311 ac_cv_c_bigendian=no
15312fi
15313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314fi
15315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 fi
15317 if test $ac_cv_c_bigendian = unknown; then
15318 # Compile a test program.
15319 if test "$cross_compiling" = yes; then :
15320 # Try to guess by grepping values from an object file.
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322/* end confdefs.h. */
15323short int ascii_mm[] =
15324 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15325 short int ascii_ii[] =
15326 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15327 int use_ascii (int i) {
15328 return ascii_mm[i] + ascii_ii[i];
15329 }
15330 short int ebcdic_ii[] =
15331 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15332 short int ebcdic_mm[] =
15333 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15334 int use_ebcdic (int i) {
15335 return ebcdic_mm[i] + ebcdic_ii[i];
15336 }
15337 extern int foo;
15338
15339int
15340main ()
15341{
15342return use_ascii (foo) == use_ebcdic (foo);
15343 ;
15344 return 0;
15345}
15346_ACEOF
15347if ac_fn_cxx_try_compile "$LINENO"; then :
15348 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15349 ac_cv_c_bigendian=yes
15350 fi
15351 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15352 if test "$ac_cv_c_bigendian" = unknown; then
15353 ac_cv_c_bigendian=no
15354 else
15355 # finding both strings is unlikely to happen, but who knows?
15356 ac_cv_c_bigendian=unknown
15357 fi
15358 fi
15359fi
15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361else
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h. */
15364$ac_includes_default
15365int
15366main ()
15367{
15368
15369 /* Are we little or big endian? From Harbison&Steele. */
15370 union
15371 {
15372 long int l;
15373 char c[sizeof (long int)];
15374 } u;
15375 u.l = 1;
15376 return u.c[sizeof (long int) - 1] == 1;
15377
15378 ;
15379 return 0;
15380}
15381_ACEOF
15382if ac_fn_cxx_try_run "$LINENO"; then :
15383 ac_cv_c_bigendian=no
15384else
15385 ac_cv_c_bigendian=yes
15386fi
15387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15388 conftest.$ac_objext conftest.beam conftest.$ac_ext
15389fi
15390
15391 fi
15392fi
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15394$as_echo "$ac_cv_c_bigendian" >&6; }
15395 case $ac_cv_c_bigendian in #(
15396 yes)
15397 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15398;; #(
15399 no)
15400 ;; #(
15401 universal)
15402
15403$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15404
15405 ;; #(
15406 *)
15407 as_fn_error $? "unknown endianness
15408 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15409 esac
15410
15411
15412# Checks for libraries.
15413
15414# Checks for header files.
15415
15416for ac_header in stdint.h stdlib.h
15417do :
15418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15419ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15421 cat >>confdefs.h <<_ACEOF
15422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15423_ACEOF
15424
15425fi
15426
15427done
15428
15429
15430# Checks for typedefs, structures, and compiler characteristics.
15431#AC_C_INLINE
15432#AC_TYPE_SIZE_T
15433#AC_TYPE_SSIZE_T
15434#AC_TYPE_UINT32_T
15435#AC_TYPE_UINT64_T
15436#AC_TYPE_UINT8_T
15437
15438# Check for __builtin_expect
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports __builtin_expect" >&5
15440$as_echo_n "checking if the compiler supports __builtin_expect... " >&6; }
15441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442/* end confdefs.h. */
15443
15444int
15445main ()
15446{
15447return __builtin_expect(1, 1) ? 1 : 0;
15448 ;
15449 return 0;
15450}
15451_ACEOF
15452if ac_fn_cxx_try_compile "$LINENO"; then :
15453
15454 farmhash_have_builtin_expect=yes
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15456$as_echo "yes" >&6; }
15457
15458else
15459
15460 farmhash_have_builtin_expect=no
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462$as_echo "no" >&6; }
15463
15464fi
15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466if test x$farmhash_have_builtin_expect = xyes ; then
15467
15468$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
15469
15470fi
15471
15472# Check for __builtin_bswap32
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports __builtin_bswap32" >&5
15474$as_echo_n "checking if the compiler supports __builtin_bswap32... " >&6; }
15475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476/* end confdefs.h. */
15477
15478int
15479main ()
15480{
15481return __builtin_bswap32(0xabcd1234) == 0x3412cdab ? 0 : 1;
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486if ac_fn_cxx_try_compile "$LINENO"; then :
15487
15488 farmhash_have_builtin_bswap=yes
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15490$as_echo "yes" >&6; }
15491
15492else
15493
15494 farmhash_have_builtin_bswap=no
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15496$as_echo "no" >&6; }
15497
15498fi
15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500if test x$farmhash_have_builtin_bswap = xyes ; then
15501
15502$as_echo "#define HAVE_BUILTIN_BSWAP 1" >>confdefs.h
15503
15504fi
15505
15506cat >confcache <<\_ACEOF
15507# This file is a shell script that caches the results of configure
15508# tests run on this system so they can be shared between configure
15509# scripts and configure runs, see configure's option --config-cache.
15510# It is not useful on other systems. If it contains results you don't
15511# want to keep, you may remove or edit it.
15512#
15513# config.status only pays attention to the cache file if you give it
15514# the --recheck option to rerun configure.
15515#
15516# `ac_cv_env_foo' variables (set or unset) will be overridden when
15517# loading this file, other *unset* `ac_cv_foo' will be assigned the
15518# following values.
15519
15520_ACEOF
15521
15522# The following way of writing the cache mishandles newlines in values,
15523# but we know of no workaround that is simple, portable, and efficient.
15524# So, we kill variables containing newlines.
15525# Ultrix sh set writes to stderr and can't be redirected directly,
15526# and sets the high bit in the cache file unless we assign to the vars.
15527(
15528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15529 eval ac_val=\$$ac_var
15530 case $ac_val in #(
15531 *${as_nl}*)
15532 case $ac_var in #(
15533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15534$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15535 esac
15536 case $ac_var in #(
15537 _ | IFS | as_nl) ;; #(
15538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15539 *) { eval $ac_var=; unset $ac_var;} ;;
15540 esac ;;
15541 esac
15542 done
15543
15544 (set) 2>&1 |
15545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15546 *${as_nl}ac_space=\ *)
15547 # `set' does not quote correctly, so add quotes: double-quote
15548 # substitution turns \\\\ into \\, and sed turns \\ into \.
15549 sed -n \
15550 "s/'/'\\\\''/g;
15551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15552 ;; #(
15553 *)
15554 # `set' quotes correctly as required by POSIX, so do not add quotes.
15555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15556 ;;
15557 esac |
15558 sort
15559) |
15560 sed '
15561 /^ac_cv_env_/b end
15562 t clear
15563 :clear
15564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15565 t end
15566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15567 :end' >>confcache
15568if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15569 if test -w "$cache_file"; then
15570 if test "x$cache_file" != "x/dev/null"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15572$as_echo "$as_me: updating cache $cache_file" >&6;}
15573 if test ! -f "$cache_file" || test -h "$cache_file"; then
15574 cat confcache >"$cache_file"
15575 else
15576 case $cache_file in #(
15577 */* | ?:*)
15578 mv -f confcache "$cache_file"$$ &&
15579 mv -f "$cache_file"$$ "$cache_file" ;; #(
15580 *)
15581 mv -f confcache "$cache_file" ;;
15582 esac
15583 fi
15584 fi
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15588 fi
15589fi
15590rm -f confcache
15591
15592test "x$prefix" = xNONE && prefix=$ac_default_prefix
15593# Let make expand exec_prefix.
15594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15595
15596DEFS=-DHAVE_CONFIG_H
15597
15598ac_libobjs=
15599ac_ltlibobjs=
15600U=
15601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15602 # 1. Remove the extension, and $U if already installed.
15603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15606 # will be set to the directory where LIBOBJS objects are built.
15607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15609done
15610LIBOBJS=$ac_libobjs
15611
15612LTLIBOBJS=$ac_ltlibobjs
15613
15614
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15616$as_echo_n "checking that generated files are newer than configure... " >&6; }
15617 if test -n "$am_sleep_pid"; then
15618 # Hide warnings about reused PIDs.
15619 wait $am_sleep_pid 2>/dev/null
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15622$as_echo "done" >&6; }
15623 if test -n "$EXEEXT"; then
15624 am__EXEEXT_TRUE=
15625 am__EXEEXT_FALSE='#'
15626else
15627 am__EXEEXT_TRUE='#'
15628 am__EXEEXT_FALSE=
15629fi
15630
15631if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15632 as_fn_error $? "conditional \"AMDEP\" was never defined.
15633Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634fi
15635if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15636 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15637Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638fi
15639if test -z "${OPTIONAL_BUILTIN_EXPECT_TRUE}" && test -z "${OPTIONAL_BUILTIN_EXPECT_FALSE}"; then
15640 as_fn_error $? "conditional \"OPTIONAL_BUILTIN_EXPECT\" was never defined.
15641Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642fi
15643if test -z "${OPTIONAL_BUILTIN_BSWAP_TRUE}" && test -z "${OPTIONAL_BUILTIN_BSWAP_FALSE}"; then
15644 as_fn_error $? "conditional \"OPTIONAL_BUILTIN_BSWAP\" was never defined.
15645Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646fi
15647if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15648 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15649Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650fi
15651
15652
15653: "${CONFIG_STATUS=./config.status}"
15654ac_write_fail=0
15655ac_clean_files_save=$ac_clean_files
15656ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15659as_write_fail=0
15660cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15661#! $SHELL
15662# Generated by $as_me.
15663# Run this file to recreate the current configuration.
15664# Compiler output produced by configure, useful for debugging
15665# configure, is in config.log if it exists.
15666
15667debug=false
15668ac_cs_recheck=false
15669ac_cs_silent=false
15670
15671SHELL=\${CONFIG_SHELL-$SHELL}
15672export SHELL
15673_ASEOF
15674cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15675## -------------------- ##
15676## M4sh Initialization. ##
15677## -------------------- ##
15678
15679# Be more Bourne compatible
15680DUALCASE=1; export DUALCASE # for MKS sh
15681if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15682 emulate sh
15683 NULLCMD=:
15684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685 # is contrary to our usage. Disable this feature.
15686 alias -g '${1+"$@"}'='"$@"'
15687 setopt NO_GLOB_SUBST
15688else
15689 case `(set -o) 2>/dev/null` in #(
15690 *posix*) :
15691 set -o posix ;; #(
15692 *) :
15693 ;;
15694esac
15695fi
15696
15697
15698as_nl='
15699'
15700export as_nl
15701# Printing a long string crashes Solaris 7 /usr/bin/printf.
15702as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705# Prefer a ksh shell builtin over an external printf program on Solaris,
15706# but without wasting forks for bash or zsh.
15707if test -z "$BASH_VERSION$ZSH_VERSION" \
15708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709 as_echo='print -r --'
15710 as_echo_n='print -rn --'
15711elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s\n'
15713 as_echo_n='printf %s'
15714else
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717 as_echo_n='/usr/ucb/echo -n'
15718 else
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15721 arg=$1;
15722 case $arg in #(
15723 *"$as_nl"*)
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15726 esac;
15727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15728 '
15729 export as_echo_n_body
15730 as_echo_n='sh -c $as_echo_n_body as_echo'
15731 fi
15732 export as_echo_body
15733 as_echo='sh -c $as_echo_body as_echo'
15734fi
15735
15736# The user is always right.
15737if test "${PATH_SEPARATOR+set}" != set; then
15738 PATH_SEPARATOR=:
15739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15741 PATH_SEPARATOR=';'
15742 }
15743fi
15744
15745
15746# IFS
15747# We need space, tab and new line, in precisely that order. Quoting is
15748# there to prevent editors from complaining about space-tab.
15749# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750# splitting by setting IFS to empty value.)
15751IFS=" "" $as_nl"
15752
15753# Find who we are. Look in the path if we contain no directory separator.
15754as_myself=
15755case $0 in #((
15756 *[\\/]* ) as_myself=$0 ;;
15757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758for as_dir in $PATH
15759do
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763 done
15764IFS=$as_save_IFS
15765
15766 ;;
15767esac
15768# We did not find ourselves, most probably we were run as `sh COMMAND'
15769# in which case we are not to be found in the path.
15770if test "x$as_myself" = x; then
15771 as_myself=$0
15772fi
15773if test ! -f "$as_myself"; then
15774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15775 exit 1
15776fi
15777
15778# Unset variables that we do not need and which cause bugs (e.g. in
15779# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15780# suppresses any "Segmentation fault" message there. '((' could
15781# trigger a bug in pdksh 5.2.14.
15782for as_var in BASH_ENV ENV MAIL MAILPATH
15783do eval test x\${$as_var+set} = xset \
15784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15785done
15786PS1='$ '
15787PS2='> '
15788PS4='+ '
15789
15790# NLS nuisances.
15791LC_ALL=C
15792export LC_ALL
15793LANGUAGE=C
15794export LANGUAGE
15795
15796# CDPATH.
15797(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15798
15799
15800# as_fn_error STATUS ERROR [LINENO LOG_FD]
15801# ----------------------------------------
15802# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15803# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15804# script with STATUS, using 1 if that was 0.
15805as_fn_error ()
15806{
15807 as_status=$1; test $as_status -eq 0 && as_status=1
15808 if test "$4"; then
15809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15811 fi
15812 $as_echo "$as_me: error: $2" >&2
15813 as_fn_exit $as_status
15814} # as_fn_error
15815
15816
15817# as_fn_set_status STATUS
15818# -----------------------
15819# Set $? to STATUS, without forking.
15820as_fn_set_status ()
15821{
15822 return $1
15823} # as_fn_set_status
15824
15825# as_fn_exit STATUS
15826# -----------------
15827# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15828as_fn_exit ()
15829{
15830 set +e
15831 as_fn_set_status $1
15832 exit $1
15833} # as_fn_exit
15834
15835# as_fn_unset VAR
15836# ---------------
15837# Portably unset VAR.
15838as_fn_unset ()
15839{
15840 { eval $1=; unset $1;}
15841}
15842as_unset=as_fn_unset
15843# as_fn_append VAR VALUE
15844# ----------------------
15845# Append the text in VALUE to the end of the definition contained in VAR. Take
15846# advantage of any shell optimizations that allow amortized linear growth over
15847# repeated appends, instead of the typical quadratic growth present in naive
15848# implementations.
15849if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15850 eval 'as_fn_append ()
15851 {
15852 eval $1+=\$2
15853 }'
15854else
15855 as_fn_append ()
15856 {
15857 eval $1=\$$1\$2
15858 }
15859fi # as_fn_append
15860
15861# as_fn_arith ARG...
15862# ------------------
15863# Perform arithmetic evaluation on the ARGs, and store the result in the
15864# global $as_val. Take advantage of shells that can avoid forks. The arguments
15865# must be portable across $(()) and expr.
15866if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15867 eval 'as_fn_arith ()
15868 {
15869 as_val=$(( $* ))
15870 }'
15871else
15872 as_fn_arith ()
15873 {
15874 as_val=`expr "$@" || test $? -eq 1`
15875 }
15876fi # as_fn_arith
15877
15878
15879if expr a : '\(a\)' >/dev/null 2>&1 &&
15880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15881 as_expr=expr
15882else
15883 as_expr=false
15884fi
15885
15886if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15887 as_basename=basename
15888else
15889 as_basename=false
15890fi
15891
15892if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15893 as_dirname=dirname
15894else
15895 as_dirname=false
15896fi
15897
15898as_me=`$as_basename -- "$0" ||
15899$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15900 X"$0" : 'X\(//\)$' \| \
15901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15902$as_echo X/"$0" |
15903 sed '/^.*\/\([^/][^/]*\)\/*$/{
15904 s//\1/
15905 q
15906 }
15907 /^X\/\(\/\/\)$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\/\(\/\).*/{
15912 s//\1/
15913 q
15914 }
15915 s/.*/./; q'`
15916
15917# Avoid depending upon Character Ranges.
15918as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15919as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15920as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15921as_cr_digits='0123456789'
15922as_cr_alnum=$as_cr_Letters$as_cr_digits
15923
15924ECHO_C= ECHO_N= ECHO_T=
15925case `echo -n x` in #(((((
15926-n*)
15927 case `echo 'xy\c'` in
15928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15929 xy) ECHO_C='\c';;
15930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15931 ECHO_T=' ';;
15932 esac;;
15933*)
15934 ECHO_N='-n';;
15935esac
15936
15937rm -f conf$$ conf$$.exe conf$$.file
15938if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15940else
15941 rm -f conf$$.dir
15942 mkdir conf$$.dir 2>/dev/null
15943fi
15944if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15946 as_ln_s='ln -s'
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to `cp -pR'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952 as_ln_s='cp -pR'
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954 as_ln_s=ln
15955 else
15956 as_ln_s='cp -pR'
15957 fi
15958else
15959 as_ln_s='cp -pR'
15960fi
15961rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962rmdir conf$$.dir 2>/dev/null
15963
15964
15965# as_fn_mkdir_p
15966# -------------
15967# Create "$as_dir" as a directory, including parents if necessary.
15968as_fn_mkdir_p ()
15969{
15970
15971 case $as_dir in #(
15972 -*) as_dir=./$as_dir;;
15973 esac
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15975 as_dirs=
15976 while :; do
15977 case $as_dir in #(
15978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15980 esac
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987$as_echo X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989 s//\1/
15990 q
15991 }
15992 /^X\(\/\/\)[^/].*/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\/\)$/{
15997 s//\1/
15998 q
15999 }
16000 /^X\(\/\).*/{
16001 s//\1/
16002 q
16003 }
16004 s/.*/./; q'`
16005 test -d "$as_dir" && break
16006 done
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16009
16010
16011} # as_fn_mkdir_p
16012if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16014else
16015 test -d ./-p && rmdir ./-p
16016 as_mkdir_p=false
16017fi
16018
16019
16020# as_fn_executable_p FILE
16021# -----------------------
16022# Test if FILE is an executable regular file.
16023as_fn_executable_p ()
16024{
16025 test -f "$1" && test -x "$1"
16026} # as_fn_executable_p
16027as_test_x='test -x'
16028as_executable_p=as_fn_executable_p
16029
16030# Sed expression to map a string onto a valid CPP name.
16031as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16032
16033# Sed expression to map a string onto a valid variable name.
16034as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16035
16036
16037exec 6>&1
16038## ----------------------------------- ##
16039## Main body of $CONFIG_STATUS script. ##
16040## ----------------------------------- ##
16041_ASEOF
16042test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16043
16044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045# Save the log message, to keep $0 and so on meaningful, and to
16046# report actual input values of CONFIG_FILES etc. instead of their
16047# values after options handling.
16048ac_log="
16049This file was extended by FarmHash $as_me 1.1.0, which was
16050generated by GNU Autoconf 2.69. Invocation command line was
16051
16052 CONFIG_FILES = $CONFIG_FILES
16053 CONFIG_HEADERS = $CONFIG_HEADERS
16054 CONFIG_LINKS = $CONFIG_LINKS
16055 CONFIG_COMMANDS = $CONFIG_COMMANDS
16056 $ $0 $@
16057
16058on `(hostname || uname -n) 2>/dev/null | sed 1q`
16059"
16060
16061_ACEOF
16062
16063case $ac_config_files in *"
16064"*) set x $ac_config_files; shift; ac_config_files=$*;;
16065esac
16066
16067case $ac_config_headers in *"
16068"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16069esac
16070
16071
16072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073# Files that config.status was made for.
16074config_files="$ac_config_files"
16075config_headers="$ac_config_headers"
16076config_commands="$ac_config_commands"
16077
16078_ACEOF
16079
16080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081ac_cs_usage="\
16082\`$as_me' instantiates files and other configuration actions
16083from templates according to the current configuration. Unless the files
16084and actions are specified as TAGs, all are instantiated by default.
16085
16086Usage: $0 [OPTION]... [TAG]...
16087
16088 -h, --help print this help, then exit
16089 -V, --version print version number and configuration settings, then exit
16090 --config print configuration, then exit
16091 -q, --quiet, --silent
16092 do not print progress messages
16093 -d, --debug don't remove temporary files
16094 --recheck update $as_me by reconfiguring in the same conditions
16095 --file=FILE[:TEMPLATE]
16096 instantiate the configuration file FILE
16097 --header=FILE[:TEMPLATE]
16098 instantiate the configuration header FILE
16099
16100Configuration files:
16101$config_files
16102
16103Configuration headers:
16104$config_headers
16105
16106Configuration commands:
16107$config_commands
16108
16109Report bugs to <farmhash-discuss@googlegroups.com>."
16110
16111_ACEOF
16112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16114ac_cs_version="\\
16115FarmHash config.status 1.1.0
16116configured by $0, generated by GNU Autoconf 2.69,
16117 with options \\"\$ac_cs_config\\"
16118
16119Copyright (C) 2012 Free Software Foundation, Inc.
16120This config.status script is free software; the Free Software Foundation
16121gives unlimited permission to copy, distribute and modify it."
16122
16123ac_pwd='$ac_pwd'
16124srcdir='$srcdir'
16125INSTALL='$INSTALL'
16126MKDIR_P='$MKDIR_P'
16127AWK='$AWK'
16128test -n "\$AWK" || AWK=awk
16129_ACEOF
16130
16131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132# The default lists apply if the user does not specify any file.
16133ac_need_defaults=:
16134while test $# != 0
16135do
16136 case $1 in
16137 --*=?*)
16138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16140 ac_shift=:
16141 ;;
16142 --*=)
16143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16144 ac_optarg=
16145 ac_shift=:
16146 ;;
16147 *)
16148 ac_option=$1
16149 ac_optarg=$2
16150 ac_shift=shift
16151 ;;
16152 esac
16153
16154 case $ac_option in
16155 # Handling of the options.
16156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16157 ac_cs_recheck=: ;;
16158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16159 $as_echo "$ac_cs_version"; exit ;;
16160 --config | --confi | --conf | --con | --co | --c )
16161 $as_echo "$ac_cs_config"; exit ;;
16162 --debug | --debu | --deb | --de | --d | -d )
16163 debug=: ;;
16164 --file | --fil | --fi | --f )
16165 $ac_shift
16166 case $ac_optarg in
16167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168 '') as_fn_error $? "missing file argument" ;;
16169 esac
16170 as_fn_append CONFIG_FILES " '$ac_optarg'"
16171 ac_need_defaults=false;;
16172 --header | --heade | --head | --hea )
16173 $ac_shift
16174 case $ac_optarg in
16175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176 esac
16177 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16178 ac_need_defaults=false;;
16179 --he | --h)
16180 # Conflict between --help and --header
16181 as_fn_error $? "ambiguous option: \`$1'
16182Try \`$0 --help' for more information.";;
16183 --help | --hel | -h )
16184 $as_echo "$ac_cs_usage"; exit ;;
16185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16187 ac_cs_silent=: ;;
16188
16189 # This is an error.
16190 -*) as_fn_error $? "unrecognized option: \`$1'
16191Try \`$0 --help' for more information." ;;
16192
16193 *) as_fn_append ac_config_targets " $1"
16194 ac_need_defaults=false ;;
16195
16196 esac
16197 shift
16198done
16199
16200ac_configure_extra_args=
16201
16202if $ac_cs_silent; then
16203 exec 6>/dev/null
16204 ac_configure_extra_args="$ac_configure_extra_args --silent"
16205fi
16206
16207_ACEOF
16208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209if \$ac_cs_recheck; then
16210 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16211 shift
16212 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16213 CONFIG_SHELL='$SHELL'
16214 export CONFIG_SHELL
16215 exec "\$@"
16216fi
16217
16218_ACEOF
16219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220exec 5>>config.log
16221{
16222 echo
16223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16224## Running $as_me. ##
16225_ASBOX
16226 $as_echo "$ac_log"
16227} >&5
16228
16229_ACEOF
16230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231#
16232# INIT-COMMANDS
16233#
16234AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16235
16236
16237# The HP-UX ksh and POSIX shell print the target directory to stdout
16238# if CDPATH is set.
16239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16240
16241sed_quote_subst='$sed_quote_subst'
16242double_quote_subst='$double_quote_subst'
16243delay_variable_subst='$delay_variable_subst'
16244macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16245macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16246enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16247enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16248pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16249enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16250SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16251ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16252host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16253host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16254host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16255build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16256build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16257build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16258SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16259Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16260GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16261EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16262FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16263LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16264NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16265LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16266max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16267ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16268exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16269lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16270lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16271lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16272lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16273lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16274reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16275reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16276OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16277deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16278file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16279file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16280want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16281DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16282sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16283AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16284AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16285archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16286STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16287RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16288old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16289old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16290old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16291lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16292CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16293CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16294compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16295GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16296lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16297lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16298lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16299lt_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"`'
16300nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16301lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16302objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16303MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16304lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16305lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16306lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16307lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16308lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16309need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16310MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16311DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16312NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16313LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16314OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16315OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16316libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16317shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16318extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16319archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16320enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16321export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16322whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16323compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16324old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16325old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16326archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16327archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16328module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16329module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16330with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16331allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16332no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16333hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16334hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16335hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16336hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16337hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16338hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16339hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16340hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16341inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16342link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16343always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16344export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16345exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16346include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16347prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16348postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16349file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16350variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16351need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16352need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16353version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16354runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16355shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16356shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16357libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16358library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16359soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16360install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16361postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16362postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16363finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16364finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16365hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16366sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16367sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16368hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16369enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16370enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16371enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16372old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16373striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16374compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16375predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16376postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16377predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16378postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16379compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16380LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16381reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16382reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16383old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16384compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16385GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16386lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16387lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16388lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16389lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16390lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16391archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16392enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16393export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16394whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16395compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16396old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16397old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16398archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16399archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16400module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16401module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16402with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16403allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16404no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16405hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16406hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16407hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16408hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16409hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16410hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16411hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16412hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16413inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16414link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16415always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16416export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16417exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16418include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16419prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16420postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16421file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16422hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16423compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16424predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16425postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16426predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16427postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16428compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16429
16430LTCC='$LTCC'
16431LTCFLAGS='$LTCFLAGS'
16432compiler='$compiler_DEFAULT'
16433
16434# A function that is used when there is no print builtin or printf.
16435func_fallback_echo ()
16436{
16437 eval 'cat <<_LTECHO_EOF
16438\$1
16439_LTECHO_EOF'
16440}
16441
16442# Quote evaled strings.
16443for var in SHELL \
16444ECHO \
16445SED \
16446GREP \
16447EGREP \
16448FGREP \
16449LD \
16450NM \
16451LN_S \
16452lt_SP2NL \
16453lt_NL2SP \
16454reload_flag \
16455OBJDUMP \
16456deplibs_check_method \
16457file_magic_cmd \
16458file_magic_glob \
16459want_nocaseglob \
16460DLLTOOL \
16461sharedlib_from_linklib_cmd \
16462AR \
16463AR_FLAGS \
16464archiver_list_spec \
16465STRIP \
16466RANLIB \
16467CC \
16468CFLAGS \
16469compiler \
16470lt_cv_sys_global_symbol_pipe \
16471lt_cv_sys_global_symbol_to_cdecl \
16472lt_cv_sys_global_symbol_to_c_name_address \
16473lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16474nm_file_list_spec \
16475lt_prog_compiler_no_builtin_flag \
16476lt_prog_compiler_pic \
16477lt_prog_compiler_wl \
16478lt_prog_compiler_static \
16479lt_cv_prog_compiler_c_o \
16480need_locks \
16481MANIFEST_TOOL \
16482DSYMUTIL \
16483NMEDIT \
16484LIPO \
16485OTOOL \
16486OTOOL64 \
16487shrext_cmds \
16488export_dynamic_flag_spec \
16489whole_archive_flag_spec \
16490compiler_needs_object \
16491with_gnu_ld \
16492allow_undefined_flag \
16493no_undefined_flag \
16494hardcode_libdir_flag_spec \
16495hardcode_libdir_flag_spec_ld \
16496hardcode_libdir_separator \
16497exclude_expsyms \
16498include_expsyms \
16499file_list_spec \
16500variables_saved_for_relink \
16501libname_spec \
16502library_names_spec \
16503soname_spec \
16504install_override_mode \
16505finish_eval \
16506old_striplib \
16507striplib \
16508compiler_lib_search_dirs \
16509predep_objects \
16510postdep_objects \
16511predeps \
16512postdeps \
16513compiler_lib_search_path \
16514LD_CXX \
16515reload_flag_CXX \
16516compiler_CXX \
16517lt_prog_compiler_no_builtin_flag_CXX \
16518lt_prog_compiler_pic_CXX \
16519lt_prog_compiler_wl_CXX \
16520lt_prog_compiler_static_CXX \
16521lt_cv_prog_compiler_c_o_CXX \
16522export_dynamic_flag_spec_CXX \
16523whole_archive_flag_spec_CXX \
16524compiler_needs_object_CXX \
16525with_gnu_ld_CXX \
16526allow_undefined_flag_CXX \
16527no_undefined_flag_CXX \
16528hardcode_libdir_flag_spec_CXX \
16529hardcode_libdir_flag_spec_ld_CXX \
16530hardcode_libdir_separator_CXX \
16531exclude_expsyms_CXX \
16532include_expsyms_CXX \
16533file_list_spec_CXX \
16534compiler_lib_search_dirs_CXX \
16535predep_objects_CXX \
16536postdep_objects_CXX \
16537predeps_CXX \
16538postdeps_CXX \
16539compiler_lib_search_path_CXX; do
16540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16541 *[\\\\\\\`\\"\\\$]*)
16542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16543 ;;
16544 *)
16545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16546 ;;
16547 esac
16548done
16549
16550# Double-quote double-evaled strings.
16551for var in reload_cmds \
16552old_postinstall_cmds \
16553old_postuninstall_cmds \
16554old_archive_cmds \
16555extract_expsyms_cmds \
16556old_archive_from_new_cmds \
16557old_archive_from_expsyms_cmds \
16558archive_cmds \
16559archive_expsym_cmds \
16560module_cmds \
16561module_expsym_cmds \
16562export_symbols_cmds \
16563prelink_cmds \
16564postlink_cmds \
16565postinstall_cmds \
16566postuninstall_cmds \
16567finish_cmds \
16568sys_lib_search_path_spec \
16569sys_lib_dlsearch_path_spec \
16570reload_cmds_CXX \
16571old_archive_cmds_CXX \
16572old_archive_from_new_cmds_CXX \
16573old_archive_from_expsyms_cmds_CXX \
16574archive_cmds_CXX \
16575archive_expsym_cmds_CXX \
16576module_cmds_CXX \
16577module_expsym_cmds_CXX \
16578export_symbols_cmds_CXX \
16579prelink_cmds_CXX \
16580postlink_cmds_CXX; do
16581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16582 *[\\\\\\\`\\"\\\$]*)
16583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16584 ;;
16585 *)
16586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16587 ;;
16588 esac
16589done
16590
16591ac_aux_dir='$ac_aux_dir'
16592xsi_shell='$xsi_shell'
16593lt_shell_append='$lt_shell_append'
16594
16595# See if we are running on zsh, and set the options which allow our
16596# commands through without removal of \ escapes INIT.
16597if test -n "\${ZSH_VERSION+set}" ; then
16598 setopt NO_GLOB_SUBST
16599fi
16600
16601
16602 PACKAGE='$PACKAGE'
16603 VERSION='$VERSION'
16604 TIMESTAMP='$TIMESTAMP'
16605 RM='$RM'
16606 ofile='$ofile'
16607
16608
16609
16610
16611
16612
16613_ACEOF
16614
16615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16616
16617# Handling of arguments.
16618for ac_config_target in $ac_config_targets
16619do
16620 case $ac_config_target in
16621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16624 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16625 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16626
16627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16628 esac
16629done
16630
16631
16632# If the user did not use the arguments to specify the items to instantiate,
16633# then the envvar interface is used. Set only those that are not.
16634# We use the long form for the default assignment because of an extremely
16635# bizarre bug on SunOS 4.1.3.
16636if $ac_need_defaults; then
16637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16640fi
16641
16642# Have a temporary directory for convenience. Make it in the build tree
16643# simply because there is no reason against having it here, and in addition,
16644# creating and moving files from /tmp can sometimes cause problems.
16645# Hook for its removal unless debugging.
16646# Note that there is a small window in which the directory will not be cleaned:
16647# after its creation but before its name has been assigned to `$tmp'.
16648$debug ||
16649{
16650 tmp= ac_tmp=
16651 trap 'exit_status=$?
16652 : "${ac_tmp:=$tmp}"
16653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16654' 0
16655 trap 'as_fn_exit 1' 1 2 13 15
16656}
16657# Create a (secure) tmp directory for tmp files.
16658
16659{
16660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16661 test -d "$tmp"
16662} ||
16663{
16664 tmp=./conf$$-$RANDOM
16665 (umask 077 && mkdir "$tmp")
16666} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16667ac_tmp=$tmp
16668
16669# Set up the scripts for CONFIG_FILES section.
16670# No need to generate them if there are no CONFIG_FILES.
16671# This happens for instance with `./config.status config.h'.
16672if test -n "$CONFIG_FILES"; then
16673
16674
16675ac_cr=`echo X | tr X '\015'`
16676# On cygwin, bash can eat \r inside `` if the user requested igncr.
16677# But we know of no other shell where ac_cr would be empty at this
16678# point, so we can use a bashism as a fallback.
16679if test "x$ac_cr" = x; then
16680 eval ac_cr=\$\'\\r\'
16681fi
16682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16684 ac_cs_awk_cr='\\r'
16685else
16686 ac_cs_awk_cr=$ac_cr
16687fi
16688
16689echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16690_ACEOF
16691
16692
16693{
16694 echo "cat >conf$$subs.awk <<_ACEOF" &&
16695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16696 echo "_ACEOF"
16697} >conf$$subs.sh ||
16698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16699ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16700ac_delim='%!_!# '
16701for ac_last_try in false false false false false :; do
16702 . ./conf$$subs.sh ||
16703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16704
16705 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16706 if test $ac_delim_n = $ac_delim_num; then
16707 break
16708 elif $ac_last_try; then
16709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16710 else
16711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16712 fi
16713done
16714rm -f conf$$subs.sh
16715
16716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16717cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16718_ACEOF
16719sed -n '
16720h
16721s/^/S["/; s/!.*/"]=/
16722p
16723g
16724s/^[^!]*!//
16725:repl
16726t repl
16727s/'"$ac_delim"'$//
16728t delim
16729:nl
16730h
16731s/\(.\{148\}\)..*/\1/
16732t more1
16733s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16734p
16735n
16736b repl
16737:more1
16738s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16739p
16740g
16741s/.\{148\}//
16742t nl
16743:delim
16744h
16745s/\(.\{148\}\)..*/\1/
16746t more2
16747s/["\\]/\\&/g; s/^/"/; s/$/"/
16748p
16749b
16750:more2
16751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16752p
16753g
16754s/.\{148\}//
16755t delim
16756' <conf$$subs.awk | sed '
16757/^[^""]/{
16758 N
16759 s/\n//
16760}
16761' >>$CONFIG_STATUS || ac_write_fail=1
16762rm -f conf$$subs.awk
16763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16764_ACAWK
16765cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16766 for (key in S) S_is_set[key] = 1
16767 FS = ""
16768
16769}
16770{
16771 line = $ 0
16772 nfields = split(line, field, "@")
16773 substed = 0
16774 len = length(field[1])
16775 for (i = 2; i < nfields; i++) {
16776 key = field[i]
16777 keylen = length(key)
16778 if (S_is_set[key]) {
16779 value = S[key]
16780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16781 len += length(value) + length(field[++i])
16782 substed = 1
16783 } else
16784 len += 1 + keylen
16785 }
16786
16787 print line
16788}
16789
16790_ACAWK
16791_ACEOF
16792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16795else
16796 cat
16797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16799_ACEOF
16800
16801# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16803# trailing colons and then remove the whole line if VPATH becomes empty
16804# (actually we leave an empty line to preserve line numbers).
16805if test "x$srcdir" = x.; then
16806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16807h
16808s///
16809s/^/:/
16810s/[ ]*$/:/
16811s/:\$(srcdir):/:/g
16812s/:\${srcdir}:/:/g
16813s/:@srcdir@:/:/g
16814s/^:*//
16815s/:*$//
16816x
16817s/\(=[ ]*\).*/\1/
16818G
16819s/\n//
16820s/^[^=]*=[ ]*$//
16821}'
16822fi
16823
16824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16825fi # test -n "$CONFIG_FILES"
16826
16827# Set up the scripts for CONFIG_HEADERS section.
16828# No need to generate them if there are no CONFIG_HEADERS.
16829# This happens for instance with `./config.status Makefile'.
16830if test -n "$CONFIG_HEADERS"; then
16831cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16832BEGIN {
16833_ACEOF
16834
16835# Transform confdefs.h into an awk script `defines.awk', embedded as
16836# here-document in config.status, that substitutes the proper values into
16837# config.h.in to produce config.h.
16838
16839# Create a delimiter string that does not exist in confdefs.h, to ease
16840# handling of long lines.
16841ac_delim='%!_!# '
16842for ac_last_try in false false :; do
16843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16844 if test -z "$ac_tt"; then
16845 break
16846 elif $ac_last_try; then
16847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16848 else
16849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16850 fi
16851done
16852
16853# For the awk script, D is an array of macro values keyed by name,
16854# likewise P contains macro parameters if any. Preserve backslash
16855# newline sequences.
16856
16857ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16858sed -n '
16859s/.\{148\}/&'"$ac_delim"'/g
16860t rset
16861:rset
16862s/^[ ]*#[ ]*define[ ][ ]*/ /
16863t def
16864d
16865:def
16866s/\\$//
16867t bsnl
16868s/["\\]/\\&/g
16869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16870D["\1"]=" \3"/p
16871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16872d
16873:bsnl
16874s/["\\]/\\&/g
16875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16876D["\1"]=" \3\\\\\\n"\\/p
16877t cont
16878s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16879t cont
16880d
16881:cont
16882n
16883s/.\{148\}/&'"$ac_delim"'/g
16884t clear
16885:clear
16886s/\\$//
16887t bsnlc
16888s/["\\]/\\&/g; s/^/"/; s/$/"/p
16889d
16890:bsnlc
16891s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16892b cont
16893' <confdefs.h | sed '
16894s/'"$ac_delim"'/"\\\
16895"/g' >>$CONFIG_STATUS || ac_write_fail=1
16896
16897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 for (key in D) D_is_set[key] = 1
16899 FS = ""
16900}
16901/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16902 line = \$ 0
16903 split(line, arg, " ")
16904 if (arg[1] == "#") {
16905 defundef = arg[2]
16906 mac1 = arg[3]
16907 } else {
16908 defundef = substr(arg[1], 2)
16909 mac1 = arg[2]
16910 }
16911 split(mac1, mac2, "(") #)
16912 macro = mac2[1]
16913 prefix = substr(line, 1, index(line, defundef) - 1)
16914 if (D_is_set[macro]) {
16915 # Preserve the white space surrounding the "#".
16916 print prefix "define", macro P[macro] D[macro]
16917 next
16918 } else {
16919 # Replace #undef with comments. This is necessary, for example,
16920 # in the case of _POSIX_SOURCE, which is predefined and required
16921 # on some systems where configure will not decide to define it.
16922 if (defundef == "undef") {
16923 print "/*", prefix defundef, macro, "*/"
16924 next
16925 }
16926 }
16927}
16928{ print }
16929_ACAWK
16930_ACEOF
16931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16933fi # test -n "$CONFIG_HEADERS"
16934
16935
16936eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16937shift
16938for ac_tag
16939do
16940 case $ac_tag in
16941 :[FHLC]) ac_mode=$ac_tag; continue;;
16942 esac
16943 case $ac_mode$ac_tag in
16944 :[FHL]*:*);;
16945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16946 :[FH]-) ac_tag=-:-;;
16947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16948 esac
16949 ac_save_IFS=$IFS
16950 IFS=:
16951 set x $ac_tag
16952 IFS=$ac_save_IFS
16953 shift
16954 ac_file=$1
16955 shift
16956
16957 case $ac_mode in
16958 :L) ac_source=$1;;
16959 :[FH])
16960 ac_file_inputs=
16961 for ac_f
16962 do
16963 case $ac_f in
16964 -) ac_f="$ac_tmp/stdin";;
16965 *) # Look for the file first in the build tree, then in the source tree
16966 # (if the path is not absolute). The absolute path cannot be DOS-style,
16967 # because $ac_f cannot contain `:'.
16968 test -f "$ac_f" ||
16969 case $ac_f in
16970 [\\/$]*) false;;
16971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16972 esac ||
16973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16974 esac
16975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16976 as_fn_append ac_file_inputs " '$ac_f'"
16977 done
16978
16979 # Let's still pretend it is `configure' which instantiates (i.e., don't
16980 # use $as_me), people would be surprised to read:
16981 # /* config.h. Generated by config.status. */
16982 configure_input='Generated from '`
16983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16984 `' by configure.'
16985 if test x"$ac_file" != x-; then
16986 configure_input="$ac_file. $configure_input"
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16988$as_echo "$as_me: creating $ac_file" >&6;}
16989 fi
16990 # Neutralize special characters interpreted by sed in replacement strings.
16991 case $configure_input in #(
16992 *\&* | *\|* | *\\* )
16993 ac_sed_conf_input=`$as_echo "$configure_input" |
16994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16995 *) ac_sed_conf_input=$configure_input;;
16996 esac
16997
16998 case $ac_tag in
16999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17001 esac
17002 ;;
17003 esac
17004
17005 ac_dir=`$as_dirname -- "$ac_file" ||
17006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17007 X"$ac_file" : 'X\(//\)[^/]' \| \
17008 X"$ac_file" : 'X\(//\)$' \| \
17009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17010$as_echo X"$ac_file" |
17011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17012 s//\1/
17013 q
17014 }
17015 /^X\(\/\/\)[^/].*/{
17016 s//\1/
17017 q
17018 }
17019 /^X\(\/\/\)$/{
17020 s//\1/
17021 q
17022 }
17023 /^X\(\/\).*/{
17024 s//\1/
17025 q
17026 }
17027 s/.*/./; q'`
17028 as_dir="$ac_dir"; as_fn_mkdir_p
17029 ac_builddir=.
17030
17031case "$ac_dir" in
17032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17033*)
17034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17035 # A ".." for each directory in $ac_dir_suffix.
17036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17037 case $ac_top_builddir_sub in
17038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17040 esac ;;
17041esac
17042ac_abs_top_builddir=$ac_pwd
17043ac_abs_builddir=$ac_pwd$ac_dir_suffix
17044# for backward compatibility:
17045ac_top_builddir=$ac_top_build_prefix
17046
17047case $srcdir in
17048 .) # We are building in place.
17049 ac_srcdir=.
17050 ac_top_srcdir=$ac_top_builddir_sub
17051 ac_abs_top_srcdir=$ac_pwd ;;
17052 [\\/]* | ?:[\\/]* ) # Absolute name.
17053 ac_srcdir=$srcdir$ac_dir_suffix;
17054 ac_top_srcdir=$srcdir
17055 ac_abs_top_srcdir=$srcdir ;;
17056 *) # Relative name.
17057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17058 ac_top_srcdir=$ac_top_build_prefix$srcdir
17059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17060esac
17061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17062
17063
17064 case $ac_mode in
17065 :F)
17066 #
17067 # CONFIG_FILE
17068 #
17069
17070 case $INSTALL in
17071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17073 esac
17074 ac_MKDIR_P=$MKDIR_P
17075 case $MKDIR_P in
17076 [\\/$]* | ?:[\\/]*