]> git.saurik.com Git - cycript.git/blame_incremental - configure
Use libclang to walk CXType for anonymous structs.
[cycript.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
4#
5# Report bugs to <saurik@saurik.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# Copyright (C) 2009-2016 Jay Freeman (saurik)
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420# script with STATUS, using 1 if that was 0.
421as_fn_error ()
422{
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547else
548 as_ln_s='cp -pR'
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
574
575# Name of the host.
576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
600ac_unique_file="Console.cpp"
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641SO
642LTFLAGS
643LTLIBGCC
644LTLIBTERMCAP
645LTLIBREADLINE
646CY_LIBCLANG
647CY_OBJECTIVEC_FALSE
648CY_OBJECTIVEC_TRUE
649CY_PYTHON_FALSE
650CY_PYTHON_TRUE
651CY_RUBY_FALSE
652CY_RUBY_TRUE
653CY_JAVA_FALSE
654CY_JAVA_TRUE
655LTOBJECTIVEC
656GNUSTEP_CONFIG
657CY_OBJECTIVEC
658CY_PRELINK_FALSE
659CY_PRELINK_TRUE
660LTPYTHON
661CY_PYTHON
662LTRUBY
663CY_RUBY
664LIBRUBY21_LIBS
665LIBRUBY21_CFLAGS
666LTJAVA
667CY_JAVA
668LTLIBFFI
669LIBFFI_LIBS
670LIBFFI_CFLAGS
671LTLIBSQLITE3
672LTLIBUV
673CY_SYSTEM
674CY_EXECUTE_FALSE
675CY_EXECUTE_TRUE
676CY_ATTACH_FALSE
677CY_ATTACH_TRUE
678CY_CONSOLE_FALSE
679CY_CONSOLE_TRUE
680LTJAVASCRIPTCORE
681WEBKIT_LIBS
682WEBKIT_CFLAGS
683CY_EXECUTE
684PTHREAD_CFLAGS
685PTHREAD_LIBS
686PTHREAD_CC
687ax_pthread_config
688LFLAGS
689GNUTAR
690GPERF
691FLEX
692BISON
693TIME
694GIT
695PKG_CONFIG_LIBDIR
696PKG_CONFIG_PATH
697PKG_CONFIG
698HAVE_CXX11
699LT_SYS_LIBRARY_PATH
700OTOOL64
701OTOOL
702LIPO
703NMEDIT
704DSYMUTIL
705MANIFEST_TOOL
706RANLIB
707DLLTOOL
708OBJDUMP
709LN_S
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LD
714FGREP
715EGREP
716GREP
717SED
718LIBTOOL
719ac_ct_AR
720AR
721CXXCPPFLAGS_FOR_BUILD
722CXXFLAGS_FOR_BUILD
723CXXCPP_FOR_BUILD
724ac_ct_CXX_FOR_BUILD
725CXX_FOR_BUILD
726CXXCPP
727LDFLAGS_FOR_BUILD
728CPPFLAGS_FOR_BUILD
729CFLAGS_FOR_BUILD
730BUILD_OBJEXT
731BUILD_EXEEXT
732CPP_FOR_BUILD
733ac_ct_CC_FOR_BUILD
734CC_FOR_BUILD
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743CPP
744am__fastdepOBJCXX_FALSE
745am__fastdepOBJCXX_TRUE
746OBJCXXDEPMODE
747ac_ct_OBJCXX
748OBJCXXFLAGS
749OBJCXX
750am__fastdepCXX_FALSE
751am__fastdepCXX_TRUE
752CXXDEPMODE
753ac_ct_CXX
754CXXFLAGS
755CXX
756am__fastdepCC_FALSE
757am__fastdepCC_TRUE
758CCDEPMODE
759am__nodep
760AMDEPBACKSLASH
761AMDEP_FALSE
762AMDEP_TRUE
763am__quote
764am__include
765DEPDIR
766OBJEXT
767EXEEXT
768ac_ct_CC
769CPPFLAGS
770LDFLAGS
771CFLAGS
772CC
773MAINT
774MAINTAINER_MODE_FALSE
775MAINTAINER_MODE_TRUE
776AM_BACKSLASH
777AM_DEFAULT_VERBOSITY
778AM_DEFAULT_V
779AM_V
780am__untar
781am__tar
782AMTAR
783am__leading_dot
784SET_MAKE
785AWK
786mkdir_p
787MKDIR_P
788INSTALL_STRIP_PROGRAM
789STRIP
790install_sh
791MAKEINFO
792AUTOHEADER
793AUTOMAKE
794AUTOCONF
795ACLOCAL
796VERSION
797PACKAGE
798CYGPATH_W
799am__isrc
800INSTALL_DATA
801INSTALL_SCRIPT
802INSTALL_PROGRAM
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
841ac_subst_files=''
842ac_user_opts='
843enable_option_checking
844enable_silent_rules
845enable_maintainer_mode
846enable_dependency_tracking
847enable_static
848enable_shared
849with_pic
850enable_fast_install
851with_aix_soname
852with_gnu_ld
853with_sysroot
854enable_libtool_lock
855enable_javascript
856enable_console
857enable_attach
858with_python
859with_libclang
860'
861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CXX
870CXXFLAGS
871CCC
872OBJCXX
873OBJCXXFLAGS
874CPP
875CXXCPP
876LT_SYS_LIBRARY_PATH
877PKG_CONFIG
878PKG_CONFIG_PATH
879PKG_CONFIG_LIBDIR
880BISON
881FLEX
882GPERF
883GNUTAR
884LFLAGS
885WEBKIT_CFLAGS
886WEBKIT_LIBS
887LIBFFI_CFLAGS
888LIBFFI_LIBS
889LIBRUBY21_CFLAGS
890LIBRUBY21_LIBS
891GNUSTEP_CONFIG'
892
893
894# Initialize some variables set by options.
895ac_init_help=
896ac_init_version=false
897ac_unrecognized_opts=
898ac_unrecognized_sep=
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
921# (The list follows the same order as the GNU Coding Standards.)
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
941
942ac_prev=
943ac_dashdash=
944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
989
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information"
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 ;;
1298
1299 esac
1300done
1301
1302if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1305fi
1306
1307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313fi
1314
1315# Check all directory arguments for consistency.
1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1320do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334done
1335
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397else
1398 ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of Cycript 0.9:";;
1503 esac
1504 cat <<\_ACEOF
1505
1506Optional Features:
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-silent-rules less verbose build output (undo: "make V=1")
1511 --disable-silent-rules verbose build output (undo: "make V=0")
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-dependency-tracking
1516 do not reject slow dependency extractors
1517 --disable-dependency-tracking
1518 speeds up one-time build
1519 --enable-static[=PKGS] build static libraries [default=no]
1520 --enable-shared[=PKGS] build shared libraries [default=yes]
1521 --enable-fast-install[=PKGS]
1522 optimize for fast installation [default=yes]
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --enable-javascript[=ENGINE]
1525 use a JavaScript runtime (currently the only
1526 available option for ENGINE is JavaScriptCore)
1527 [default=yes]
1528 --disable-console disable console
1529 --disable-attach disable attach
1530
1531Optional Packages:
1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1534 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1535 both]
1536 --with-aix-soname=aix|svr4|both
1537 shared library versioning (aka "SONAME") variant to
1538 provide on AIX, [default=aix].
1539 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1540 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1541 compiler's sysroot if not specified).
1542 --with-python support python (pass the path to python-config)
1543 --with-libclang build bridge definitions using this libclang
1544
1545Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CXX C++ compiler command
1554 CXXFLAGS C++ compiler flags
1555 OBJCXX Objective C++ compiler command
1556 OBJCXXFLAGS Objective C++ compiler flags
1557 CPP C preprocessor
1558 CXXCPP C++ preprocessor
1559 LT_SYS_LIBRARY_PATH
1560 User-defined run-time library search path.
1561 PKG_CONFIG path to pkg-config utility
1562 PKG_CONFIG_PATH
1563 directories to add to pkg-config's search path
1564 PKG_CONFIG_LIBDIR
1565 path overriding pkg-config's built-in search path
1566 BISON GNU Project parser generator (yacc replacement)
1567 FLEX the fast lexical analyser generator
1568 GPERF perfect hash function generator
1569 GNUTAR a very sticky lump of files
1570 LFLAGS flex flags
1571 WEBKIT_CFLAGS
1572 C compiler flags for WEBKIT, overriding pkg-config
1573 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1574 LIBFFI_CFLAGS
1575 C compiler flags for LIBFFI, overriding pkg-config
1576 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1577 LIBRUBY21_CFLAGS
1578 C compiler flags for LIBRUBY21, overriding pkg-config
1579 LIBRUBY21_LIBS
1580 linker flags for LIBRUBY21, overriding pkg-config
1581 GNUSTEP_CONFIG
1582 prints information about the current gnustep installation
1583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
1587Report bugs to <saurik@saurik.com>.
1588Cycript home page: <http://www.cycript.org/>.
1589_ACEOF
1590ac_status=$?
1591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
1616
1617case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630esac
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646fi
1647
1648test -n "$ac_init_help" && exit $ac_status
1649if $ac_init_version; then
1650 cat <<\_ACEOF
1651Cycript configure 0.9
1652generated by GNU Autoconf 2.69
1653
1654Copyright (C) 2012 Free Software Foundation, Inc.
1655This configure script is free software; the Free Software Foundation
1656gives unlimited permission to copy, distribute and modify it.
1657
1658Copyright (C) 2009-2016 Jay Freeman (saurik)
1659_ACEOF
1660 exit
1661fi
1662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_cxx_try_compile LINENO
1706# ----------------------------
1707# Try to compile conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_cxx_try_compile ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_cxx_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741} # ac_fn_cxx_try_compile
1742
1743# ac_fn_objcxx_try_compile LINENO
1744# -------------------------------
1745# Try to compile conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_objcxx_try_compile ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext
1750 if { { ac_try="$ac_compile"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_compile") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_objcxx_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest.$ac_objext; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779} # ac_fn_objcxx_try_compile
1780
1781# ac_fn_c_try_cpp LINENO
1782# ----------------------
1783# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1784ac_fn_c_try_cpp ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_cpp conftest.$ac_ext"
1788case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } > conftest.i && {
1803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 }; then :
1806 ac_retval=0
1807else
1808 $as_echo "$as_me: failed program was:" >&5
1809sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812fi
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_cpp
1817
1818# ac_fn_cxx_try_cpp LINENO
1819# ------------------------
1820# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821ac_fn_cxx_try_cpp ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } > conftest.i && {
1840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853} # ac_fn_cxx_try_cpp
1854
1855# ac_fn_c_try_link LINENO
1856# -----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_c_try_link ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 test -x conftest$ac_exeext
1883 }; then :
1884 ac_retval=0
1885else
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890fi
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899} # ac_fn_c_try_link
1900
1901# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902# -------------------------------------------------------
1903# Tests whether HEADER exists and can be compiled using the include files in
1904# INCLUDES, setting the cache variable VAR accordingly.
1905ac_fn_c_check_header_compile ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_header_compile
1931
1932# ac_fn_c_try_run LINENO
1933# ----------------------
1934# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935# that executables *can* be run.
1936ac_fn_c_try_run ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_link"
1940case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945$as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>&5
1947 ac_status=$?
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_try") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }; then :
1960 ac_retval=0
1961else
1962 $as_echo "$as_me: program exited with status $ac_status" >&5
1963 $as_echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=$ac_status
1967fi
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972} # ac_fn_c_try_run
1973
1974# ac_fn_c_check_func LINENO FUNC VAR
1975# ----------------------------------
1976# Tests whether FUNC exists, setting the cache variable VAR accordingly
1977ac_fn_c_check_func ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1984else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989#define $2 innocuous_$2
1990
1991/* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1995
1996#ifdef __STDC__
1997# include <limits.h>
1998#else
1999# include <assert.h>
2000#endif
2001
2002#undef $2
2003
2004/* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2007#ifdef __cplusplus
2008extern "C"
2009#endif
2010char $2 ();
2011/* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014#if defined __stub_$2 || defined __stub___$2
2015choke me
2016#endif
2017
2018int
2019main ()
2020{
2021return $2 ();
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_link "$LINENO"; then :
2027 eval "$3=yes"
2028else
2029 eval "$3=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_c_check_func
2040
2041# ac_fn_cxx_try_link LINENO
2042# -------------------------
2043# Try to link conftest.$ac_ext, and return whether this succeeded.
2044ac_fn_cxx_try_link ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2049case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052esac
2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054$as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2056 ac_status=$?
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2061 fi
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_cxx_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 test -x conftest$ac_exeext
2069 }; then :
2070 ac_retval=0
2071else
2072 $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076fi
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085} # ac_fn_cxx_try_link
2086
2087# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088# ---------------------------------------------------------
2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090# the include files in INCLUDES and setting the cache variable VAR
2091# accordingly.
2092ac_fn_cxx_check_header_mongrel ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104else
2105 # Is the header compilable?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107$as_echo_n "checking $2 usability... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110$4
2111#include <$2>
2112_ACEOF
2113if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115else
2116 ac_header_compiler=no
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120$as_echo "$ac_header_compiler" >&6; }
2121
2122# Is the header present?
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124$as_echo_n "checking $2 presence... " >&6; }
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127#include <$2>
2128_ACEOF
2129if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131else
2132 ac_header_preproc=no
2133fi
2134rm -f conftest.err conftest.i conftest.$ac_ext
2135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136$as_echo "$ac_header_preproc" >&6; }
2137
2138# So? What about this header?
2139case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ;;
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157( $as_echo "## -------------------------------- ##
2158## Report this to saurik@saurik.com ##
2159## -------------------------------- ##"
2160 ) | sed "s/^/$as_me: WARNING: /" >&2
2161 ;;
2162esac
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
2165if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167else
2168 eval "$3=\$ac_header_compiler"
2169fi
2170eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173fi
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176} # ac_fn_cxx_check_header_mongrel
2177
2178# ac_fn_cxx_check_func LINENO FUNC VAR
2179# ------------------------------------
2180# Tests whether FUNC exists, setting the cache variable VAR accordingly
2181ac_fn_cxx_check_func ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185$as_echo_n "checking for $2... " >&6; }
2186if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h. */
2191/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2193#define $2 innocuous_$2
2194
2195/* System header to define __stub macros and hopefully few prototypes,
2196 which can conflict with char $2 (); below.
2197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2198 <limits.h> exists even on freestanding compilers. */
2199
2200#ifdef __STDC__
2201# include <limits.h>
2202#else
2203# include <assert.h>
2204#endif
2205
2206#undef $2
2207
2208/* Override any GCC internal prototype to avoid an error.
2209 Use char because int might match the return type of a GCC
2210 builtin and then its argument prototype would still apply. */
2211#ifdef __cplusplus
2212extern "C"
2213#endif
2214char $2 ();
2215/* The GNU C library defines this for functions which it implements
2216 to always fail with ENOSYS. Some functions are actually named
2217 something starting with __ and the normal name is an alias. */
2218#if defined __stub_$2 || defined __stub___$2
2219choke me
2220#endif
2221
2222int
2223main ()
2224{
2225return $2 ();
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230if ac_fn_cxx_try_link "$LINENO"; then :
2231 eval "$3=yes"
2232else
2233 eval "$3=no"
2234fi
2235rm -f core conftest.err conftest.$ac_objext \
2236 conftest$ac_exeext conftest.$ac_ext
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243} # ac_fn_cxx_check_func
2244
2245# ac_fn_objcxx_try_link LINENO
2246# ----------------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded.
2248ac_fn_objcxx_try_link ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext conftest$ac_exeext
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_objcxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest$ac_exeext && {
2271 test "$cross_compiling" = yes ||
2272 test -x conftest$ac_exeext
2273 }; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280fi
2281 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283 # interfere with the next link command; also delete a directory that is
2284 # left behind by Apple's compiler. We do this before executing the actions.
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289} # ac_fn_objcxx_try_link
2290cat >config.log <<_ACEOF
2291This file contains any messages produced by compilers while
2292running configure, to aid debugging if configure makes a mistake.
2293
2294It was created by Cycript $as_me 0.9, which was
2295generated by GNU Autoconf 2.69. Invocation command line was
2296
2297 $ $0 $@
2298
2299_ACEOF
2300exec 5>>config.log
2301{
2302cat <<_ASUNAME
2303## --------- ##
2304## Platform. ##
2305## --------- ##
2306
2307hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312
2313/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315
2316/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323
2324_ASUNAME
2325
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333IFS=$as_save_IFS
2334
2335} >&5
2336
2337cat >&5 <<_ACEOF
2338
2339
2340## ----------- ##
2341## Core tests. ##
2342## ----------- ##
2343
2344_ACEOF
2345
2346
2347# Keep a trace of the command line.
2348# Strip out --no-create and --no-recursion so they do not pile up.
2349# Strip out --silent because we don't want to record it for future runs.
2350# Also quote any args containing shell meta-characters.
2351# Make two passes to allow for proper duplicate-argument suppression.
2352ac_configure_args=
2353ac_configure_args0=
2354ac_configure_args1=
2355ac_must_keep_next=false
2356for ac_pass in 1 2
2357do
2358 for ac_arg
2359 do
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370 2)
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2383 ;;
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2386 fi
2387 as_fn_append ac_configure_args " '$ac_arg'"
2388 ;;
2389 esac
2390 done
2391done
2392{ ac_configure_args0=; unset ac_configure_args0;}
2393{ ac_configure_args1=; unset ac_configure_args1;}
2394
2395# When interrupted or exit'd, cleanup temporary files, and complete
2396# config.log. We remove comments because anyway the quotes in there
2397# would cause problems or look ugly.
2398# WARNING: Use '\'' to represent an apostrophe within the trap.
2399# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2402 {
2403 echo
2404
2405 $as_echo "## ---------------- ##
2406## Cache variables. ##
2407## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2410(
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2433 *)
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 ;;
2436 esac |
2437 sort
2438)
2439 echo
2440
2441 $as_echo "## ----------------- ##
2442## Output variables. ##
2443## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2446 do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2454
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457## File substitutions. ##
2458## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469 fi
2470
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473## confdefs.h. ##
2474## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2478 fi
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2486' 0
2487for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489done
2490ac_signal=0
2491
2492# confdefs.h avoids OS command line length limits that DEFS can exceed.
2493rm -f -r conftest* confdefs.h
2494
2495$as_echo "/* confdefs.h */" > confdefs.h
2496
2497# Predefined preprocessor variables.
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_NAME "$PACKAGE_NAME"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_VERSION "$PACKAGE_VERSION"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_STRING "$PACKAGE_STRING"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_URL "$PACKAGE_URL"
2521_ACEOF
2522
2523
2524# Let the site file select an alternate cache file if it wants to.
2525# Prefer an explicitly selected file to automatically selected ones.
2526ac_site_file1=NONE
2527ac_site_file2=NONE
2528if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2541fi
2542for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543do
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552as_fn_error $? "failed to load site script $ac_site_file
2553See \`config.log' for more details" "$LINENO" 5; }
2554 fi
2555done
2556
2557if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562$as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2567 fi
2568else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570$as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2572fi
2573
2574# Check that the precious variables saved in the cache have kept the same
2575# value.
2576ac_cache_corrupted=false
2577for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2592 *)
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w=`echo x $ac_old_val`
2596 ac_new_val_w=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted=:
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\$ac_old_val
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2610 fi;;
2611 esac
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2614 case $ac_new_val in
2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg=$ac_var=$ac_new_val ;;
2617 esac
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 esac
2622 fi
2623done
2624if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2630fi
2631## -------------------- ##
2632## Main body of script. ##
2633## -------------------- ##
2634
2635ac_ext=c
2636ac_cpp='$CPP $CPPFLAGS'
2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640
2641
2642
2643
2644
2645ac_aux_dir=
2646for ac_dir in . "$srcdir"/.; do
2647 if test -f "$ac_dir/install-sh"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2650 break
2651 elif test -f "$ac_dir/install.sh"; then
2652 ac_aux_dir=$ac_dir
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2654 break
2655 elif test -f "$ac_dir/shtool"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2658 break
2659 fi
2660done
2661if test -z "$ac_aux_dir"; then
2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2663fi
2664
2665# These three variables are undocumented and unsupported,
2666# and are intended to be withdrawn in a future Autoconf release.
2667# They can cause serious problems if a builder's source tree is in a directory
2668# whose full name contains unusual characters.
2669ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2672
2673
2674
2675ac_config_headers="$ac_config_headers config.h"
2676
2677
2678am__api_version='1.15'
2679
2680# Find a good install program. We prefer a C program (faster),
2681# so one script is as good as another. But avoid the broken or
2682# incompatible versions:
2683# SysV /etc/install, /usr/sbin/install
2684# SunOS /usr/etc/install
2685# IRIX /sbin/install
2686# AIX /bin/install
2687# AmigaOS /C/install, which installs bootblocks on floppy discs
2688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2691# OS/2's system install, which has a completely different semantic
2692# ./install, which can be erroneously created by make from ./install.sh.
2693# Reject install programs that cannot install multiple files.
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2695$as_echo_n "checking for a BSD-compatible install... " >&6; }
2696if test -z "$INSTALL"; then
2697if ${ac_cv_path_install+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 # Account for people who put trailing slashes in PATH elements.
2706case $as_dir/ in #((
2707 ./ | .// | /[cC]/* | \
2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2710 /usr/ucb/* ) ;;
2711 *)
2712 # OSF1 and SCO ODT 3.0 have their own names for install.
2713 # Don't use installbsd from OSF since it installs stuff as root
2714 # by default.
2715 for ac_prog in ginstall scoinst install; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2718 if test $ac_prog = install &&
2719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # AIX install. It has an incompatible calling convention.
2721 :
2722 elif test $ac_prog = install &&
2723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # program-specific install script used by HP pwplus--don't use.
2725 :
2726 else
2727 rm -rf conftest.one conftest.two conftest.dir
2728 echo one > conftest.one
2729 echo two > conftest.two
2730 mkdir conftest.dir
2731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2732 test -s conftest.one && test -s conftest.two &&
2733 test -s conftest.dir/conftest.one &&
2734 test -s conftest.dir/conftest.two
2735 then
2736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2737 break 3
2738 fi
2739 fi
2740 fi
2741 done
2742 done
2743 ;;
2744esac
2745
2746 done
2747IFS=$as_save_IFS
2748
2749rm -rf conftest.one conftest.two conftest.dir
2750
2751fi
2752 if test "${ac_cv_path_install+set}" = set; then
2753 INSTALL=$ac_cv_path_install
2754 else
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 INSTALL=$ac_install_sh
2760 fi
2761fi
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2763$as_echo "$INSTALL" >&6; }
2764
2765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766# It thinks the first close brace ends the variable substitution.
2767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2768
2769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2770
2771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2772
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2774$as_echo_n "checking whether build environment is sane... " >&6; }
2775# Reject unsafe characters in $srcdir or the absolute working directory
2776# name. Accept space and tab only in the latter.
2777am_lf='
2778'
2779case `pwd` in
2780 *[\\\"\#\$\&\'\`$am_lf]*)
2781 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2782esac
2783case $srcdir in
2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2785 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2786esac
2787
2788# Do 'set' in a subshell so we don't clobber the current shell's
2789# arguments. Must try -L first in case configure is actually a
2790# symlink; some systems play weird games with the mod time of symlinks
2791# (eg FreeBSD returns the mod time of the symlink's containing
2792# directory).
2793if (
2794 am_has_slept=no
2795 for am_try in 1 2; do
2796 echo "timestamp, slept: $am_has_slept" > conftest.file
2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2798 if test "$*" = "X"; then
2799 # -L didn't work.
2800 set X `ls -t "$srcdir/configure" conftest.file`
2801 fi
2802 if test "$*" != "X $srcdir/configure conftest.file" \
2803 && test "$*" != "X conftest.file $srcdir/configure"; then
2804
2805 # If neither matched, then we have a broken ls. This can happen
2806 # if, for instance, CONFIG_SHELL is bash and it inherits a
2807 # broken ls alias from the environment. This has actually
2808 # happened. Such a system could not be considered "sane".
2809 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2810 alias in your environment" "$LINENO" 5
2811 fi
2812 if test "$2" = conftest.file || test $am_try -eq 2; then
2813 break
2814 fi
2815 # Just in case.
2816 sleep 1
2817 am_has_slept=yes
2818 done
2819 test "$2" = conftest.file
2820 )
2821then
2822 # Ok.
2823 :
2824else
2825 as_fn_error $? "newly created file is older than distributed files!
2826Check your system clock" "$LINENO" 5
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829$as_echo "yes" >&6; }
2830# If we didn't sleep, we still need to ensure time stamps of config.status and
2831# generated files are strictly newer.
2832am_sleep_pid=
2833if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2834 ( sleep 1 ) &
2835 am_sleep_pid=$!
2836fi
2837
2838rm -f conftest.file
2839
2840test "$program_prefix" != NONE &&
2841 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2842# Use a double $ so make ignores it.
2843test "$program_suffix" != NONE &&
2844 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2845# Double any \ or $.
2846# By default was `s,x,x', remove it if useless.
2847ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2848program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2849
2850# Expand $ac_aux_dir to an absolute path.
2851am_aux_dir=`cd "$ac_aux_dir" && pwd`
2852
2853if test x"${MISSING+set}" != xset; then
2854 case $am_aux_dir in
2855 *\ * | *\ *)
2856 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2857 *)
2858 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2859 esac
2860fi
2861# Use eval to expand $SHELL
2862if eval "$MISSING --is-lightweight"; then
2863 am_missing_run="$MISSING "
2864else
2865 am_missing_run=
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2867$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2868fi
2869
2870if test x"${install_sh+set}" != xset; then
2871 case $am_aux_dir in
2872 *\ * | *\ *)
2873 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2874 *)
2875 install_sh="\${SHELL} $am_aux_dir/install-sh"
2876 esac
2877fi
2878
2879# Installed binaries are usually stripped using 'strip' when the user
2880# run "make install-strip". However 'strip' might not be the right
2881# tool to use in cross-compilation environments, therefore Automake
2882# will honor the 'STRIP' environment variable to overrule this program.
2883if test "$cross_compiling" != no; then
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2886set dummy ${ac_tool_prefix}strip; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if ${ac_cv_prog_STRIP+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891else
2892 if test -n "$STRIP"; then
2893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906done
2907 done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912STRIP=$ac_cv_prog_STRIP
2913if test -n "$STRIP"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2915$as_echo "$STRIP" >&6; }
2916else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922fi
2923if test -z "$ac_cv_prog_STRIP"; then
2924 ac_ct_STRIP=$STRIP
2925 # Extract the first word of "strip", so it can be a program name with args.
2926set dummy strip; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 if test -n "$ac_ct_STRIP"; then
2933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_ac_ct_STRIP="strip"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2953if test -n "$ac_ct_STRIP"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2955$as_echo "$ac_ct_STRIP" >&6; }
2956else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961 if test "x$ac_ct_STRIP" = x; then
2962 STRIP=":"
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965yes:)
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968ac_tool_warned=yes ;;
2969esac
2970 STRIP=$ac_ct_STRIP
2971 fi
2972else
2973 STRIP="$ac_cv_prog_STRIP"
2974fi
2975
2976fi
2977INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2978
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2980$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2981if test -z "$MKDIR_P"; then
2982 if ${ac_cv_path_mkdir+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_prog in mkdir gmkdir; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2993 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2994 'mkdir (GNU coreutils) '* | \
2995 'mkdir (coreutils) '* | \
2996 'mkdir (fileutils) '4.1*)
2997 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2998 break 3;;
2999 esac
3000 done
3001 done
3002 done
3003IFS=$as_save_IFS
3004
3005fi
3006
3007 test -d ./--version && rmdir ./--version
3008 if test "${ac_cv_path_mkdir+set}" = set; then
3009 MKDIR_P="$ac_cv_path_mkdir -p"
3010 else
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for MKDIR_P within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 MKDIR_P="$ac_install_sh -d"
3016 fi
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3019$as_echo "$MKDIR_P" >&6; }
3020
3021for ac_prog in gawk mawk nawk awk
3022do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024set dummy $ac_prog; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_AWK+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$AWK"; then
3031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_AWK="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050AWK=$ac_cv_prog_AWK
3051if test -n "$AWK"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053$as_echo "$AWK" >&6; }
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059
3060 test -n "$AWK" && break
3061done
3062
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065set x ${MAKE-make}
3066ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069else
3070 cat >conftest.make <<\_ACEOF
3071SHELL = /bin/sh
3072all:
3073 @echo '@@@%%%=$(MAKE)=@@@%%%'
3074_ACEOF
3075# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3076case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077 *@@@%%%=?*=@@@%%%*)
3078 eval ac_cv_prog_make_${ac_make}_set=yes;;
3079 *)
3080 eval ac_cv_prog_make_${ac_make}_set=no;;
3081esac
3082rm -f conftest.make
3083fi
3084if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086$as_echo "yes" >&6; }
3087 SET_MAKE=
3088else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090$as_echo "no" >&6; }
3091 SET_MAKE="MAKE=${MAKE-make}"
3092fi
3093
3094rm -rf .tst 2>/dev/null
3095mkdir .tst 2>/dev/null
3096if test -d .tst; then
3097 am__leading_dot=.
3098else
3099 am__leading_dot=_
3100fi
3101rmdir .tst 2>/dev/null
3102
3103# Check whether --enable-silent-rules was given.
3104if test "${enable_silent_rules+set}" = set; then :
3105 enableval=$enable_silent_rules;
3106fi
3107
3108case $enable_silent_rules in # (((
3109 yes) AM_DEFAULT_VERBOSITY=0;;
3110 no) AM_DEFAULT_VERBOSITY=1;;
3111 *) AM_DEFAULT_VERBOSITY=1;;
3112esac
3113am_make=${MAKE-make}
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3115$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3116if ${am_cv_make_support_nested_variables+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118else
3119 if $as_echo 'TRUE=$(BAR$(V))
3120BAR0=false
3121BAR1=true
3122V=1
3123am__doit:
3124 @$(TRUE)
3125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3126 am_cv_make_support_nested_variables=yes
3127else
3128 am_cv_make_support_nested_variables=no
3129fi
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3132$as_echo "$am_cv_make_support_nested_variables" >&6; }
3133if test $am_cv_make_support_nested_variables = yes; then
3134 AM_V='$(V)'
3135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3136else
3137 AM_V=$AM_DEFAULT_VERBOSITY
3138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3139fi
3140AM_BACKSLASH='\'
3141
3142if test "`cd $srcdir && pwd`" != "`pwd`"; then
3143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3144 # is not polluted with repeated "-I."
3145 am__isrc=' -I$(srcdir)'
3146 # test to see if srcdir already configured
3147 if test -f $srcdir/config.status; then
3148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3149 fi
3150fi
3151
3152# test whether we have cygpath
3153if test -z "$CYGPATH_W"; then
3154 if (cygpath --version) >/dev/null 2>/dev/null; then
3155 CYGPATH_W='cygpath -w'
3156 else
3157 CYGPATH_W=echo
3158 fi
3159fi
3160
3161
3162# Define the identity of the package.
3163 PACKAGE='cycript'
3164 VERSION='0.9'
3165
3166
3167cat >>confdefs.h <<_ACEOF
3168#define PACKAGE "$PACKAGE"
3169_ACEOF
3170
3171
3172cat >>confdefs.h <<_ACEOF
3173#define VERSION "$VERSION"
3174_ACEOF
3175
3176# Some tools Automake needs.
3177
3178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3179
3180
3181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3182
3183
3184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3185
3186
3187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3188
3189
3190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3191
3192# For better backward compatibility. To be removed once Automake 1.9.x
3193# dies out for good. For more background, see:
3194# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3196mkdir_p='$(MKDIR_P)'
3197
3198# We need awk for the "check" target (and possibly the TAP driver). The
3199# system "awk" is bad on some platforms.
3200# Always define AMTAR for backward compatibility. Yes, it's still used
3201# in the wild :-( We should find a proper way to deprecate it ...
3202AMTAR='$${TAR-tar}'
3203
3204
3205# We'll loop over all known methods to create a tar archive until one works.
3206_am_tools='gnutar pax cpio none'
3207
3208am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3209
3210
3211
3212
3213
3214
3215# POSIX will say in a future version that running "rm -f" with no argument
3216# is OK; and we want to be able to make that assumption in our Makefile
3217# recipes. So use an aggressive probe to check that the usage we want is
3218# actually supported "in the wild" to an acceptable degree.
3219# See automake bug#10828.
3220# To make any issue more visible, cause the running configure to be aborted
3221# by default if the 'rm' program in use doesn't match our expectations; the
3222# user can still override this though.
3223if rm -f && rm -fr && rm -rf; then : OK; else
3224 cat >&2 <<'END'
3225Oops!
3226
3227Your 'rm' program seems unable to run without file operands specified
3228on the command line, even when the '-f' option is present. This is contrary
3229to the behaviour of most rm programs out there, and not conforming with
3230the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3231
3232Please tell bug-automake@gnu.org about your system, including the value
3233of your $PATH and any error possibly output before this message. This
3234can help us improve future automake versions.
3235
3236END
3237 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3238 echo 'Configuration will proceed anyway, since you have set the' >&2
3239 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3240 echo >&2
3241 else
3242 cat >&2 <<'END'
3243Aborting the configuration process, to ensure you take notice of the issue.
3244
3245You can download and install GNU coreutils to get an 'rm' implementation
3246that behaves properly: <http://www.gnu.org/software/coreutils/>.
3247
3248If you want to complete the configuration process using your problematic
3249'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3250to "yes", and re-run configure.
3251
3252END
3253 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3254 fi
3255fi
3256
3257
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3259$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3260 # Check whether --enable-maintainer-mode was given.
3261if test "${enable_maintainer_mode+set}" = set; then :
3262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3263else
3264 USE_MAINTAINER_MODE=no
3265fi
3266
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3268$as_echo "$USE_MAINTAINER_MODE" >&6; }
3269 if test $USE_MAINTAINER_MODE = yes; then
3270 MAINTAINER_MODE_TRUE=
3271 MAINTAINER_MODE_FALSE='#'
3272else
3273 MAINTAINER_MODE_TRUE='#'
3274 MAINTAINER_MODE_FALSE=
3275fi
3276
3277 MAINT=$MAINTAINER_MODE_TRUE
3278
3279
3280
3281ac_ext=c
3282ac_cpp='$CPP $CPPFLAGS'
3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3288set dummy ${ac_tool_prefix}gcc; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if ${ac_cv_prog_CC+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308done
3309 done
3310IFS=$as_save_IFS
3311
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317$as_echo "$CC" >&6; }
3318else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321fi
3322
3323
3324fi
3325if test -z "$ac_cv_prog_CC"; then
3326 ac_ct_CC=$CC
3327 # Extract the first word of "gcc", so it can be a program name with args.
3328set dummy gcc; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_ac_ct_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333else
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_ac_ct_CC="gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348done
3349 done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355if test -n "$ac_ct_CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357$as_echo "$ac_ct_CC" >&6; }
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363 if test "x$ac_ct_CC" = x; then
3364 CC=""
3365 else
3366 case $cross_compiling:$ac_tool_warned in
3367yes:)
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370ac_tool_warned=yes ;;
3371esac
3372 CC=$ac_ct_CC
3373 fi
3374else
3375 CC="$ac_cv_prog_CC"
3376fi
3377
3378if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381set dummy ${ac_tool_prefix}cc; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if ${ac_cv_prog_CC+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_CC="${ac_tool_prefix}cc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402 done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407CC=$ac_cv_prog_CC
3408if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410$as_echo "$CC" >&6; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416
3417 fi
3418fi
3419if test -z "$CC"; then
3420 # Extract the first word of "cc", so it can be a program name with args.
3421set dummy cc; ac_word=$2
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
3424if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
3430 ac_prog_rejected=no
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected=yes
3440 continue
3441 fi
3442 ac_cv_prog_CC="cc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447 done
3448IFS=$as_save_IFS
3449
3450if test $ac_prog_rejected = yes; then
3451 # We found a bogon in the path, so make sure we never use it.
3452 set dummy $ac_cv_prog_CC
3453 shift
3454 if test $# != 0; then
3455 # We chose a different compiler from the bogus one.
3456 # However, it has the same basename, so the bogon will be chosen
3457 # first if we set CC to just the basename; use the full file name.
3458 shift
3459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460 fi
3461fi
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474fi
3475if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
3477 for ac_prog in cl.exe
3478 do
3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
3483if ${ac_cv_prog_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485else
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC="$CC" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500done
3501 done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506CC=$ac_cv_prog_CC
3507if test -n "$CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509$as_echo "$CC" >&6; }
3510else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516 test -n "$CC" && break
3517 done
3518fi
3519if test -z "$CC"; then
3520 ac_ct_CC=$CC
3521 for ac_prog in cl.exe
3522do
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524set dummy $ac_prog; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if ${ac_cv_prog_ac_ct_CC+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_ac_ct_CC="$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
3548fi
3549fi
3550ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551if test -n "$ac_ct_CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553$as_echo "$ac_ct_CC" >&6; }
3554else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557fi
3558
3559
3560 test -n "$ac_ct_CC" && break
3561done
3562
3563 if test "x$ac_ct_CC" = x; then
3564 CC=""
3565 else
3566 case $cross_compiling:$ac_tool_warned in
3567yes:)
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570ac_tool_warned=yes ;;
3571esac
3572 CC=$ac_ct_CC
3573 fi
3574fi
3575
3576fi
3577
3578
3579test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "no acceptable C compiler found in \$PATH
3582See \`config.log' for more details" "$LINENO" 5; }
3583
3584# Provide some information about the compiler.
3585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586set X $ac_compile
3587ac_compiler=$2
3588for ac_option in --version -v -V -qversion; do
3589 { { ac_try="$ac_compiler $ac_option >&5"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595$as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3597 ac_status=$?
3598 if test -s conftest.err; then
3599 sed '10a\
3600... rest of stderr output deleted ...
3601 10q' conftest.err >conftest.er1
3602 cat conftest.er1 >&5
3603 fi
3604 rm -f conftest.er1 conftest.err
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607done
3608
3609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h. */
3611
3612int
3613main ()
3614{
3615
3616 ;
3617 return 0;
3618}
3619_ACEOF
3620ac_clean_files_save=$ac_clean_files
3621ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3622# Try to create an executable without -o first, disregard a.out.
3623# It will help us diagnose broken compilers, and finding out an intuition
3624# of exeext.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3626$as_echo_n "checking whether the C compiler works... " >&6; }
3627ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3628
3629# The possible output files:
3630ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3631
3632ac_rmfiles=
3633for ac_file in $ac_files
3634do
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3637 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3638 esac
3639done
3640rm -f $ac_rmfiles
3641
3642if { { ac_try="$ac_link_default"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648$as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link_default") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }; then :
3653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3654# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3655# in a Makefile. We should not override ac_cv_exeext if it was cached,
3656# so that the user can short-circuit this test for compilers unknown to
3657# Autoconf.
3658for ac_file in $ac_files ''
3659do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3663 ;;
3664 [ab].out )
3665 # We found the default executable, but exeext='' is most
3666 # certainly right.
3667 break;;
3668 *.* )
3669 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3670 then :; else
3671 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672 fi
3673 # We set ac_cv_exeext here because the later test for it is not
3674 # safe: cross compilers may not add the suffix if given an `-o'
3675 # argument, so we may need to know it at that point already.
3676 # Even if this section looks crufty: it has the advantage of
3677 # actually working.
3678 break;;
3679 * )
3680 break;;
3681 esac
3682done
3683test "$ac_cv_exeext" = no && ac_cv_exeext=
3684
3685else
3686 ac_file=''
3687fi
3688if test -z "$ac_file"; then :
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691$as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696as_fn_error 77 "C compiler cannot create executables
3697See \`config.log' for more details" "$LINENO" 5; }
3698else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3700$as_echo "yes" >&6; }
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3703$as_echo_n "checking for C compiler default output file name... " >&6; }
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3705$as_echo "$ac_file" >&6; }
3706ac_exeext=$ac_cv_exeext
3707
3708rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3709ac_clean_files=$ac_clean_files_save
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3711$as_echo_n "checking for suffix of executables... " >&6; }
3712if { { ac_try="$ac_link"
3713case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718$as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_link") 2>&5
3720 ac_status=$?
3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }; then :
3723 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3724# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3725# work properly (i.e., refer to `conftest.exe'), while it won't with
3726# `rm'.
3727for ac_file in conftest.exe conftest conftest.*; do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3731 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3732 break;;
3733 * ) break;;
3734 esac
3735done
3736else
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3740See \`config.log' for more details" "$LINENO" 5; }
3741fi
3742rm -f conftest conftest$ac_cv_exeext
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3744$as_echo "$ac_cv_exeext" >&6; }
3745
3746rm -f conftest.$ac_ext
3747EXEEXT=$ac_cv_exeext
3748ac_exeext=$EXEEXT
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
3751#include <stdio.h>
3752int
3753main ()
3754{
3755FILE *f = fopen ("conftest.out", "w");
3756 return ferror (f) || fclose (f) != 0;
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762ac_clean_files="$ac_clean_files conftest.out"
3763# Check that the compiler produces executables we can run. If not, either
3764# the compiler is broken, or we cross compile.
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3766$as_echo_n "checking whether we are cross compiling... " >&6; }
3767if test "$cross_compiling" != yes; then
3768 { { ac_try="$ac_link"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774$as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_link") 2>&5
3776 ac_status=$?
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 if { ac_try='./conftest$ac_cv_exeext'
3780 { { case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; }; then
3790 cross_compiling=no
3791 else
3792 if test "$cross_compiling" = maybe; then
3793 cross_compiling=yes
3794 else
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error $? "cannot run C compiled programs.
3798If you meant to cross compile, use \`--host'.
3799See \`config.log' for more details" "$LINENO" 5; }
3800 fi
3801 fi
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3804$as_echo "$cross_compiling" >&6; }
3805
3806rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3807ac_clean_files=$ac_clean_files_save
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3809$as_echo_n "checking for suffix of object files... " >&6; }
3810if ${ac_cv_objext+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h. */
3815
3816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.o conftest.obj
3825if { { ac_try="$ac_compile"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831$as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_compile") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; then :
3836 for ac_file in conftest.o conftest.obj conftest.*; do
3837 test -f "$ac_file" || continue;
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3840 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841 break;;
3842 esac
3843done
3844else
3845 $as_echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850as_fn_error $? "cannot compute suffix of object files: cannot compile
3851See \`config.log' for more details" "$LINENO" 5; }
3852fi
3853rm -f conftest.$ac_cv_objext conftest.$ac_ext
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3856$as_echo "$ac_cv_objext" >&6; }
3857OBJEXT=$ac_cv_objext
3858ac_objext=$OBJEXT
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3860$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3861if ${ac_cv_c_compiler_gnu+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863else
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h. */
3866
3867int
3868main ()
3869{
3870#ifndef __GNUC__
3871 choke me
3872#endif
3873
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_compiler_gnu=yes
3880else
3881 ac_compiler_gnu=no
3882fi
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3888$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3889if test $ac_compiler_gnu = yes; then
3890 GCC=yes
3891else
3892 GCC=
3893fi
3894ac_test_CFLAGS=${CFLAGS+set}
3895ac_save_CFLAGS=$CFLAGS
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3897$as_echo_n "checking whether $CC accepts -g... " >&6; }
3898if ${ac_cv_prog_cc_g+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900else
3901 ac_save_c_werror_flag=$ac_c_werror_flag
3902 ac_c_werror_flag=yes
3903 ac_cv_prog_cc_g=no
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */
3907
3908int
3909main ()
3910{
3911
3912 ;
3913 return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_g=yes
3918else
3919 CFLAGS=""
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h. */
3922
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932
3933else
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3935 CFLAGS="-g"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_prog_cc_g=yes
3949fi
3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951fi
3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_c_werror_flag=$ac_save_c_werror_flag
3956fi
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3958$as_echo "$ac_cv_prog_cc_g" >&6; }
3959if test "$ac_test_CFLAGS" = set; then
3960 CFLAGS=$ac_save_CFLAGS
3961elif test $ac_cv_prog_cc_g = yes; then
3962 if test "$GCC" = yes; then
3963 CFLAGS="-g -O2"
3964 else
3965 CFLAGS="-g"
3966 fi
3967else
3968 if test "$GCC" = yes; then
3969 CFLAGS="-O2"
3970 else
3971 CFLAGS=
3972 fi
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3975$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3976if ${ac_cv_prog_cc_c89+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978else
3979 ac_cv_prog_cc_c89=no
3980ac_save_CC=$CC
3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h. */
3983#include <stdarg.h>
3984#include <stdio.h>
3985struct stat;
3986/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987struct buf { int x; };
3988FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989static char *e (p, i)
3990 char **p;
3991 int i;
3992{
3993 return p[i];
3994}
3995static char *f (char * (*g) (char **, int), char **p, ...)
3996{
3997 char *s;
3998 va_list v;
3999 va_start (v,p);
4000 s = g (p, va_arg (v,int));
4001 va_end (v);
4002 return s;
4003}
4004
4005/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4013
4014/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4016#define FOO(x) 'x'
4017int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018
4019int test (int i, double x);
4020struct s1 {int (*f) (int a);};
4021struct s2 {int (*f) (double a);};
4022int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023int argc;
4024char **argv;
4025int
4026main ()
4027{
4028return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4035do
4036 CC="$ac_save_CC $ac_arg"
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_c89=$ac_arg
4039fi
4040rm -f core conftest.err conftest.$ac_objext
4041 test "x$ac_cv_prog_cc_c89" != "xno" && break
4042done
4043rm -f conftest.$ac_ext
4044CC=$ac_save_CC
4045
4046fi
4047# AC_CACHE_VAL
4048case "x$ac_cv_prog_cc_c89" in
4049 x)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4051$as_echo "none needed" >&6; } ;;
4052 xno)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4054$as_echo "unsupported" >&6; } ;;
4055 *)
4056 CC="$CC $ac_cv_prog_cc_c89"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4058$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4059esac
4060if test "x$ac_cv_prog_cc_c89" != xno; then :
4061
4062fi
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4076$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4077if ${am_cv_prog_cc_c_o+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091 # Make sure it works both with $CC and with simple cc.
4092 # Following AC_PROG_CC_C_O, we do the test twice because some
4093 # compilers refuse to overwrite an existing .o file with -o,
4094 # though they will create one.
4095 am_cv_prog_cc_c_o=yes
4096 for am_i in 1 2; do
4097 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4098 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } \
4102 && test -f conftest2.$ac_objext; then
4103 : OK
4104 else
4105 am_cv_prog_cc_c_o=no
4106 break
4107 fi
4108 done
4109 rm -f core conftest*
4110 unset am_i
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4113$as_echo "$am_cv_prog_cc_c_o" >&6; }
4114if test "$am_cv_prog_cc_c_o" != yes; then
4115 # Losing compiler, so override with the script.
4116 # FIXME: It is wrong to rewrite CC.
4117 # But if we don't then we get into trouble of one sort or another.
4118 # A longer-term fix would be to have automake use am__CC in this case,
4119 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4120 CC="$am_aux_dir/compile $CC"
4121fi
4122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127
4128DEPDIR="${am__leading_dot}deps"
4129
4130ac_config_commands="$ac_config_commands depfiles"
4131
4132
4133am_make=${MAKE-make}
4134cat > confinc << 'END'
4135am__doit:
4136 @echo this is the am__doit target
4137.PHONY: am__doit
4138END
4139# If we don't find an include directive, just comment out the code.
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4141$as_echo_n "checking for style of include used by $am_make... " >&6; }
4142am__include="#"
4143am__quote=
4144_am_result=none
4145# First try GNU make style include.
4146echo "include confinc" > confmf
4147# Ignore all kinds of additional output from 'make'.
4148case `$am_make -s -f confmf 2> /dev/null` in #(
4149*the\ am__doit\ target*)
4150 am__include=include
4151 am__quote=
4152 _am_result=GNU
4153 ;;
4154esac
4155# Now try BSD make style include.
4156if test "$am__include" = "#"; then
4157 echo '.include "confinc"' > confmf
4158 case `$am_make -s -f confmf 2> /dev/null` in #(
4159 *the\ am__doit\ target*)
4160 am__include=.include
4161 am__quote="\""
4162 _am_result=BSD
4163 ;;
4164 esac
4165fi
4166
4167
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4169$as_echo "$_am_result" >&6; }
4170rm -f confinc confmf
4171
4172# Check whether --enable-dependency-tracking was given.
4173if test "${enable_dependency_tracking+set}" = set; then :
4174 enableval=$enable_dependency_tracking;
4175fi
4176
4177if test "x$enable_dependency_tracking" != xno; then
4178 am_depcomp="$ac_aux_dir/depcomp"
4179 AMDEPBACKSLASH='\'
4180 am__nodep='_no'
4181fi
4182 if test "x$enable_dependency_tracking" != xno; then
4183 AMDEP_TRUE=
4184 AMDEP_FALSE='#'
4185else
4186 AMDEP_TRUE='#'
4187 AMDEP_FALSE=
4188fi
4189
4190
4191
4192depcc="$CC" am_compiler_list=
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4195$as_echo_n "checking dependency style of $depcc... " >&6; }
4196if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198else
4199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4200 # We make a subdir and do the tests there. Otherwise we can end up
4201 # making bogus files that we don't know about and never remove. For
4202 # instance it was reported that on HP-UX the gcc test will end up
4203 # making a dummy file named 'D' -- because '-MD' means "put the output
4204 # in D".
4205 rm -rf conftest.dir
4206 mkdir conftest.dir
4207 # Copy depcomp to subdir because otherwise we won't find it if we're
4208 # using a relative directory.
4209 cp "$am_depcomp" conftest.dir
4210 cd conftest.dir
4211 # We will build objects and dependencies in a subdirectory because
4212 # it helps to detect inapplicable dependency modes. For instance
4213 # both Tru64's cc and ICC support -MD to output dependencies as a
4214 # side effect of compilation, but ICC will put the dependencies in
4215 # the current directory while Tru64 will put them in the object
4216 # directory.
4217 mkdir sub
4218
4219 am_cv_CC_dependencies_compiler_type=none
4220 if test "$am_compiler_list" = ""; then
4221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4222 fi
4223 am__universal=false
4224 case " $depcc " in #(
4225 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4226 esac
4227
4228 for depmode in $am_compiler_list; do
4229 # Setup a source with many dependencies, because some compilers
4230 # like to wrap large dependency lists on column 80 (with \), and
4231 # we should not choose a depcomp mode which is confused by this.
4232 #
4233 # We need to recreate these files for each test, as the compiler may
4234 # overwrite some of them when testing with obscure command lines.
4235 # This happens at least with the AIX C compiler.
4236 : > sub/conftest.c
4237 for i in 1 2 3 4 5 6; do
4238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4239 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4240 # Solaris 10 /bin/sh.
4241 echo '/* dummy */' > sub/conftst$i.h
4242 done
4243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4244
4245 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4246 # mode. It turns out that the SunPro C++ compiler does not properly
4247 # handle '-M -o', and we need to detect this. Also, some Intel
4248 # versions had trouble with output in subdirs.
4249 am__obj=sub/conftest.${OBJEXT-o}
4250 am__minus_obj="-o $am__obj"
4251 case $depmode in
4252 gcc)
4253 # This depmode causes a compiler race in universal mode.
4254 test "$am__universal" = false || continue
4255 ;;
4256 nosideeffect)
4257 # After this tag, mechanisms are not by side-effect, so they'll
4258 # only be used when explicitly requested.
4259 if test "x$enable_dependency_tracking" = xyes; then
4260 continue
4261 else
4262 break
4263 fi
4264 ;;
4265 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4266 # This compiler won't grok '-c -o', but also, the minuso test has
4267 # not run yet. These depmodes are late enough in the game, and
4268 # so weak that their functioning should not be impacted.
4269 am__obj=conftest.${OBJEXT-o}
4270 am__minus_obj=
4271 ;;
4272 none) break ;;
4273 esac
4274 if depmode=$depmode \
4275 source=sub/conftest.c object=$am__obj \
4276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4278 >/dev/null 2>conftest.err &&
4279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4283 # icc doesn't choke on unknown options, it will just issue warnings
4284 # or remarks (even with -Werror). So we grep stderr for any message
4285 # that says an option was ignored or not supported.
4286 # When given -MP, icc 7.0 and 7.1 complain thusly:
4287 # icc: Command line warning: ignoring option '-M'; no argument required
4288 # The diagnosis changed in icc 8.0:
4289 # icc: Command line remark: option '-MP' not supported
4290 if (grep 'ignoring option' conftest.err ||
4291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4292 am_cv_CC_dependencies_compiler_type=$depmode
4293 break
4294 fi
4295 fi
4296 done
4297
4298 cd ..
4299 rm -rf conftest.dir
4300else
4301 am_cv_CC_dependencies_compiler_type=none
4302fi
4303
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4306$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4307CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4308
4309 if
4310 test "x$enable_dependency_tracking" != xno \
4311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4312 am__fastdepCC_TRUE=
4313 am__fastdepCC_FALSE='#'
4314else
4315 am__fastdepCC_TRUE='#'
4316 am__fastdepCC_FALSE=
4317fi
4318
4319
4320ac_ext=cpp
4321ac_cpp='$CXXCPP $CPPFLAGS'
4322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325if test -z "$CXX"; then
4326 if test -n "$CCC"; then
4327 CXX=$CCC
4328 else
4329 if test -n "$ac_tool_prefix"; then
4330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4331 do
4332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335$as_echo_n "checking for $ac_word... " >&6; }
4336if ${ac_cv_prog_CXX+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338else
4339 if test -n "$CXX"; then
4340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4341else
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353done
4354 done
4355IFS=$as_save_IFS
4356
4357fi
4358fi
4359CXX=$ac_cv_prog_CXX
4360if test -n "$CXX"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4362$as_echo "$CXX" >&6; }
4363else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
4366fi
4367
4368
4369 test -n "$CXX" && break
4370 done
4371fi
4372if test -z "$CXX"; then
4373 ac_ct_CXX=$CXX
4374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4375do
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377set dummy $ac_prog; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
4380if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382else
4383 if test -n "$ac_ct_CXX"; then
4384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_ac_ct_CXX="$ac_prog"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397done
4398 done
4399IFS=$as_save_IFS
4400
4401fi
4402fi
4403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4404if test -n "$ac_ct_CXX"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4406$as_echo "$ac_ct_CXX" >&6; }
4407else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410fi
4411
4412
4413 test -n "$ac_ct_CXX" && break
4414done
4415
4416 if test "x$ac_ct_CXX" = x; then
4417 CXX="g++"
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420yes:)
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423ac_tool_warned=yes ;;
4424esac
4425 CXX=$ac_ct_CXX
4426 fi
4427fi
4428
4429 fi
4430fi
4431# Provide some information about the compiler.
4432$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4433set X $ac_compile
4434ac_compiler=$2
4435for ac_option in --version -v -V -qversion; do
4436 { { ac_try="$ac_compiler $ac_option >&5"
4437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442$as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4444 ac_status=$?
4445 if test -s conftest.err; then
4446 sed '10a\
4447... rest of stderr output deleted ...
4448 10q' conftest.err >conftest.er1
4449 cat conftest.er1 >&5
4450 fi
4451 rm -f conftest.er1 conftest.err
4452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; }
4454done
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4457$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4458if ${ac_cv_cxx_compiler_gnu+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463
4464int
4465main ()
4466{
4467#ifndef __GNUC__
4468 choke me
4469#endif
4470
4471 ;
4472 return 0;
4473}
4474_ACEOF
4475if ac_fn_cxx_try_compile "$LINENO"; then :
4476 ac_compiler_gnu=yes
4477else
4478 ac_compiler_gnu=no
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4482
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4485$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4486if test $ac_compiler_gnu = yes; then
4487 GXX=yes
4488else
4489 GXX=
4490fi
4491ac_test_CXXFLAGS=${CXXFLAGS+set}
4492ac_save_CXXFLAGS=$CXXFLAGS
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4494$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4495if ${ac_cv_prog_cxx_g+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497else
4498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4499 ac_cxx_werror_flag=yes
4500 ac_cv_prog_cxx_g=no
4501 CXXFLAGS="-g"
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
4504
4505int
4506main ()
4507{
4508
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513if ac_fn_cxx_try_compile "$LINENO"; then :
4514 ac_cv_prog_cxx_g=yes
4515else
4516 CXXFLAGS=""
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519
4520int
4521main ()
4522{
4523
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528if ac_fn_cxx_try_compile "$LINENO"; then :
4529
4530else
4531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4532 CXXFLAGS="-g"
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535
4536int
4537main ()
4538{
4539
4540 ;
4541 return 0;
4542}
4543_ACEOF
4544if ac_fn_cxx_try_compile "$LINENO"; then :
4545 ac_cv_prog_cxx_g=yes
4546fi
4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548fi
4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4555$as_echo "$ac_cv_prog_cxx_g" >&6; }
4556if test "$ac_test_CXXFLAGS" = set; then
4557 CXXFLAGS=$ac_save_CXXFLAGS
4558elif test $ac_cv_prog_cxx_g = yes; then
4559 if test "$GXX" = yes; then
4560 CXXFLAGS="-g -O2"
4561 else
4562 CXXFLAGS="-g"
4563 fi
4564else
4565 if test "$GXX" = yes; then
4566 CXXFLAGS="-O2"
4567 else
4568 CXXFLAGS=
4569 fi
4570fi
4571ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577depcc="$CXX" am_compiler_list=
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4580$as_echo_n "checking dependency style of $depcc... " >&6; }
4581if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583else
4584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4585 # We make a subdir and do the tests there. Otherwise we can end up
4586 # making bogus files that we don't know about and never remove. For
4587 # instance it was reported that on HP-UX the gcc test will end up
4588 # making a dummy file named 'D' -- because '-MD' means "put the output
4589 # in D".
4590 rm -rf conftest.dir
4591 mkdir conftest.dir
4592 # Copy depcomp to subdir because otherwise we won't find it if we're
4593 # using a relative directory.
4594 cp "$am_depcomp" conftest.dir
4595 cd conftest.dir
4596 # We will build objects and dependencies in a subdirectory because
4597 # it helps to detect inapplicable dependency modes. For instance
4598 # both Tru64's cc and ICC support -MD to output dependencies as a
4599 # side effect of compilation, but ICC will put the dependencies in
4600 # the current directory while Tru64 will put them in the object
4601 # directory.
4602 mkdir sub
4603
4604 am_cv_CXX_dependencies_compiler_type=none
4605 if test "$am_compiler_list" = ""; then
4606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4607 fi
4608 am__universal=false
4609 case " $depcc " in #(
4610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4611 esac
4612
4613 for depmode in $am_compiler_list; do
4614 # Setup a source with many dependencies, because some compilers
4615 # like to wrap large dependency lists on column 80 (with \), and
4616 # we should not choose a depcomp mode which is confused by this.
4617 #
4618 # We need to recreate these files for each test, as the compiler may
4619 # overwrite some of them when testing with obscure command lines.
4620 # This happens at least with the AIX C compiler.
4621 : > sub/conftest.c
4622 for i in 1 2 3 4 5 6; do
4623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4625 # Solaris 10 /bin/sh.
4626 echo '/* dummy */' > sub/conftst$i.h
4627 done
4628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4629
4630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4631 # mode. It turns out that the SunPro C++ compiler does not properly
4632 # handle '-M -o', and we need to detect this. Also, some Intel
4633 # versions had trouble with output in subdirs.
4634 am__obj=sub/conftest.${OBJEXT-o}
4635 am__minus_obj="-o $am__obj"
4636 case $depmode in
4637 gcc)
4638 # This depmode causes a compiler race in universal mode.
4639 test "$am__universal" = false || continue
4640 ;;
4641 nosideeffect)
4642 # After this tag, mechanisms are not by side-effect, so they'll
4643 # only be used when explicitly requested.
4644 if test "x$enable_dependency_tracking" = xyes; then
4645 continue
4646 else
4647 break
4648 fi
4649 ;;
4650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4651 # This compiler won't grok '-c -o', but also, the minuso test has
4652 # not run yet. These depmodes are late enough in the game, and
4653 # so weak that their functioning should not be impacted.
4654 am__obj=conftest.${OBJEXT-o}
4655 am__minus_obj=
4656 ;;
4657 none) break ;;
4658 esac
4659 if depmode=$depmode \
4660 source=sub/conftest.c object=$am__obj \
4661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4663 >/dev/null 2>conftest.err &&
4664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4668 # icc doesn't choke on unknown options, it will just issue warnings
4669 # or remarks (even with -Werror). So we grep stderr for any message
4670 # that says an option was ignored or not supported.
4671 # When given -MP, icc 7.0 and 7.1 complain thusly:
4672 # icc: Command line warning: ignoring option '-M'; no argument required
4673 # The diagnosis changed in icc 8.0:
4674 # icc: Command line remark: option '-MP' not supported
4675 if (grep 'ignoring option' conftest.err ||
4676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4677 am_cv_CXX_dependencies_compiler_type=$depmode
4678 break
4679 fi
4680 fi
4681 done
4682
4683 cd ..
4684 rm -rf conftest.dir
4685else
4686 am_cv_CXX_dependencies_compiler_type=none
4687fi
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4691$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4692CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4693
4694 if
4695 test "x$enable_dependency_tracking" != xno \
4696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4697 am__fastdepCXX_TRUE=
4698 am__fastdepCXX_FALSE='#'
4699else
4700 am__fastdepCXX_TRUE='#'
4701 am__fastdepCXX_FALSE=
4702fi
4703
4704
4705ac_ext=mm
4706ac_cpp='$OBJCXXCPP $CPPFLAGS'
4707ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4710if test -n "$ac_tool_prefix"; then
4711 for ac_prog in g++ objc++ objcxx c++ CXX
4712 do
4713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716$as_echo_n "checking for $ac_word... " >&6; }
4717if ${ac_cv_prog_OBJCXX+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 if test -n "$OBJCXX"; then
4721 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
4735 done
4736IFS=$as_save_IFS
4737
4738fi
4739fi
4740OBJCXX=$ac_cv_prog_OBJCXX
4741if test -n "$OBJCXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4743$as_echo "$OBJCXX" >&6; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749
4750 test -n "$OBJCXX" && break
4751 done
4752fi
4753if test -z "$OBJCXX"; then
4754 ac_ct_OBJCXX=$OBJCXX
4755 for ac_prog in g++ objc++ objcxx c++ CXX
4756do
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 if test -n "$ac_ct_OBJCXX"; then
4765 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778done
4779 done
4780IFS=$as_save_IFS
4781
4782fi
4783fi
4784ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4785if test -n "$ac_ct_OBJCXX"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4787$as_echo "$ac_ct_OBJCXX" >&6; }
4788else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791fi
4792
4793
4794 test -n "$ac_ct_OBJCXX" && break
4795done
4796
4797 if test "x$ac_ct_OBJCXX" = x; then
4798 OBJCXX="g++"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801yes:)
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804ac_tool_warned=yes ;;
4805esac
4806 OBJCXX=$ac_ct_OBJCXX
4807 fi
4808fi
4809
4810# Provide some information about the compiler.
4811$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4812set X $ac_compile
4813ac_compiler=$2
4814for ac_option in --version -v -V -qversion; do
4815 { { ac_try="$ac_compiler $ac_option >&5"
4816case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819esac
4820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4821$as_echo "$ac_try_echo"; } >&5
4822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4823 ac_status=$?
4824 if test -s conftest.err; then
4825 sed '10a\
4826... rest of stderr output deleted ...
4827 10q' conftest.err >conftest.er1
4828 cat conftest.er1 >&5
4829 fi
4830 rm -f conftest.er1 conftest.err
4831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4832 test $ac_status = 0; }
4833done
4834
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4836$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4837if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h. */
4842
4843int
4844main ()
4845{
4846#ifndef __GNUC__
4847 choke me
4848#endif
4849
4850 ;
4851 return 0;
4852}
4853_ACEOF
4854if ac_fn_objcxx_try_compile "$LINENO"; then :
4855 ac_compiler_gnu=yes
4856else
4857 ac_compiler_gnu=no
4858fi
4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4861
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4864$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4865if test $ac_compiler_gnu = yes; then
4866 GOBJCXX=yes
4867else
4868 GOBJCXX=
4869fi
4870ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4871ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4873$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4874if ${ac_cv_prog_objcxx_g+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876else
4877 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4878 ac_objcxx_werror_flag=yes
4879 ac_cv_prog_objcxx_g=no
4880 OBJCXXFLAGS="-g"
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h. */
4883
4884int
4885main ()
4886{
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892if ac_fn_objcxx_try_compile "$LINENO"; then :
4893 ac_cv_prog_objcxx_g=yes
4894else
4895 OBJCXXFLAGS=""
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898
4899int
4900main ()
4901{
4902
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907if ac_fn_objcxx_try_compile "$LINENO"; then :
4908
4909else
4910 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4911 OBJCXXFLAGS="-g"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
4914
4915int
4916main ()
4917{
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_objcxx_try_compile "$LINENO"; then :
4924 ac_cv_prog_objcxx_g=yes
4925fi
4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929fi
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4934$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4935if test "$ac_test_OBJCXXFLAGS" = set; then
4936 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4937elif test $ac_cv_prog_objcxx_g = yes; then
4938 if test "$GOBJCXX" = yes; then
4939 OBJCXXFLAGS="-g -O2"
4940 else
4941 OBJCXXFLAGS="-g"
4942 fi
4943else
4944 if test "$GOBJCXX" = yes; then
4945 OBJCXXFLAGS="-O2"
4946 else
4947 OBJCXXFLAGS=
4948 fi
4949fi
4950ac_ext=c
4951ac_cpp='$CPP $CPPFLAGS'
4952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955
4956depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959$as_echo_n "checking dependency style of $depcc... " >&6; }
4960if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962else
4963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964 # We make a subdir and do the tests there. Otherwise we can end up
4965 # making bogus files that we don't know about and never remove. For
4966 # instance it was reported that on HP-UX the gcc test will end up
4967 # making a dummy file named 'D' -- because '-MD' means "put the output
4968 # in D".
4969 rm -rf conftest.dir
4970 mkdir conftest.dir
4971 # Copy depcomp to subdir because otherwise we won't find it if we're
4972 # using a relative directory.
4973 cp "$am_depcomp" conftest.dir
4974 cd conftest.dir
4975 # We will build objects and dependencies in a subdirectory because
4976 # it helps to detect inapplicable dependency modes. For instance
4977 # both Tru64's cc and ICC support -MD to output dependencies as a
4978 # side effect of compilation, but ICC will put the dependencies in
4979 # the current directory while Tru64 will put them in the object
4980 # directory.
4981 mkdir sub
4982
4983 am_cv_OBJCXX_dependencies_compiler_type=none
4984 if test "$am_compiler_list" = ""; then
4985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4986 fi
4987 am__universal=false
4988
4989
4990 for depmode in $am_compiler_list; do
4991 # Setup a source with many dependencies, because some compilers
4992 # like to wrap large dependency lists on column 80 (with \), and
4993 # we should not choose a depcomp mode which is confused by this.
4994 #
4995 # We need to recreate these files for each test, as the compiler may
4996 # overwrite some of them when testing with obscure command lines.
4997 # This happens at least with the AIX C compiler.
4998 : > sub/conftest.c
4999 for i in 1 2 3 4 5 6; do
5000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5001 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5002 # Solaris 10 /bin/sh.
5003 echo '/* dummy */' > sub/conftst$i.h
5004 done
5005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006
5007 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5008 # mode. It turns out that the SunPro C++ compiler does not properly
5009 # handle '-M -o', and we need to detect this. Also, some Intel
5010 # versions had trouble with output in subdirs.
5011 am__obj=sub/conftest.${OBJEXT-o}
5012 am__minus_obj="-o $am__obj"
5013 case $depmode in
5014 gcc)
5015 # This depmode causes a compiler race in universal mode.
5016 test "$am__universal" = false || continue
5017 ;;
5018 nosideeffect)
5019 # After this tag, mechanisms are not by side-effect, so they'll
5020 # only be used when explicitly requested.
5021 if test "x$enable_dependency_tracking" = xyes; then
5022 continue
5023 else
5024 break
5025 fi
5026 ;;
5027 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5028 # This compiler won't grok '-c -o', but also, the minuso test has
5029 # not run yet. These depmodes are late enough in the game, and
5030 # so weak that their functioning should not be impacted.
5031 am__obj=conftest.${OBJEXT-o}
5032 am__minus_obj=
5033 ;;
5034 none) break ;;
5035 esac
5036 if depmode=$depmode \
5037 source=sub/conftest.c object=$am__obj \
5038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5040 >/dev/null 2>conftest.err &&
5041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5045 # icc doesn't choke on unknown options, it will just issue warnings
5046 # or remarks (even with -Werror). So we grep stderr for any message
5047 # that says an option was ignored or not supported.
5048 # When given -MP, icc 7.0 and 7.1 complain thusly:
5049 # icc: Command line warning: ignoring option '-M'; no argument required
5050 # The diagnosis changed in icc 8.0:
5051 # icc: Command line remark: option '-MP' not supported
5052 if (grep 'ignoring option' conftest.err ||
5053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5054 am_cv_OBJCXX_dependencies_compiler_type=$depmode
5055 break
5056 fi
5057 fi
5058 done
5059
5060 cd ..
5061 rm -rf conftest.dir
5062else
5063 am_cv_OBJCXX_dependencies_compiler_type=none
5064fi
5065
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5068$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5069OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
5070
5071 if
5072 test "x$enable_dependency_tracking" != xno \
5073 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5074 am__fastdepOBJCXX_TRUE=
5075 am__fastdepOBJCXX_FALSE='#'
5076else
5077 am__fastdepOBJCXX_TRUE='#'
5078 am__fastdepOBJCXX_FALSE=
5079fi
5080
5081
5082
5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5089$as_echo_n "checking how to run the C preprocessor... " >&6; }
5090# On Suns, sometimes $CPP names a directory.
5091if test -n "$CPP" && test -d "$CPP"; then
5092 CPP=
5093fi
5094if test -z "$CPP"; then
5095 if ${ac_cv_prog_CPP+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100 do
5101 ac_preproc_ok=false
5102for ac_c_preproc_warn_flag in '' yes
5103do
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h. */
5112#ifdef __STDC__
5113# include <limits.h>
5114#else
5115# include <assert.h>
5116#endif
5117 Syntax error
5118_ACEOF
5119if ac_fn_c_try_cpp "$LINENO"; then :
5120
5121else
5122 # Broken: fails on valid input.
5123continue
5124fi
5125rm -f conftest.err conftest.i conftest.$ac_ext
5126
5127 # OK, works on sane cases. Now check whether nonexistent headers
5128 # can be detected and how.
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h. */
5131#include <ac_nonexistent.h>
5132_ACEOF
5133if ac_fn_c_try_cpp "$LINENO"; then :
5134 # Broken: success on invalid input.
5135continue
5136else
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.i conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.i conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then :
5147 break
5148fi
5149
5150 done
5151 ac_cv_prog_CPP=$CPP
5152
5153fi
5154 CPP=$ac_cv_prog_CPP
5155else
5156 ac_cv_prog_CPP=$CPP
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5159$as_echo "$CPP" >&6; }
5160ac_preproc_ok=false
5161for ac_c_preproc_warn_flag in '' yes
5162do
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h. */
5171#ifdef __STDC__
5172# include <limits.h>
5173#else
5174# include <assert.h>
5175#endif
5176 Syntax error
5177_ACEOF
5178if ac_fn_c_try_cpp "$LINENO"; then :
5179
5180else
5181 # Broken: fails on valid input.
5182continue
5183fi
5184rm -f conftest.err conftest.i conftest.$ac_ext
5185
5186 # OK, works on sane cases. Now check whether nonexistent headers
5187 # can be detected and how.
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h. */
5190#include <ac_nonexistent.h>
5191_ACEOF
5192if ac_fn_c_try_cpp "$LINENO"; then :
5193 # Broken: success on invalid input.
5194continue
5195else
5196 # Passes both tests.
5197ac_preproc_ok=:
5198break
5199fi
5200rm -f conftest.err conftest.i conftest.$ac_ext
5201
5202done
5203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204rm -f conftest.i conftest.err conftest.$ac_ext
5205if $ac_preproc_ok; then :
5206
5207else
5208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5210as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5211See \`config.log' for more details" "$LINENO" 5; }
5212fi
5213
5214ac_ext=c
5215ac_cpp='$CPP $CPPFLAGS'
5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220
5221# Make sure we can run config.sub.
5222$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5223 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5226$as_echo_n "checking build system type... " >&6; }
5227if ${ac_cv_build+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 ac_build_alias=$build_alias
5231test "x$ac_build_alias" = x &&
5232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5233test "x$ac_build_alias" = x &&
5234 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5235ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5237
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5240$as_echo "$ac_cv_build" >&6; }
5241case $ac_cv_build in
5242*-*-*) ;;
5243*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5244esac
5245build=$ac_cv_build
5246ac_save_IFS=$IFS; IFS='-'
5247set x $ac_cv_build
5248shift
5249build_cpu=$1
5250build_vendor=$2
5251shift; shift
5252# Remember, the first character of IFS is used to create $*,
5253# except with old shells:
5254build_os=$*
5255IFS=$ac_save_IFS
5256case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5257
5258
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5260$as_echo_n "checking host system type... " >&6; }
5261if ${ac_cv_host+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263else
5264 if test "x$host_alias" = x; then
5265 ac_cv_host=$ac_cv_build
5266else
5267 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5268 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5269fi
5270
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5273$as_echo "$ac_cv_host" >&6; }
5274case $ac_cv_host in
5275*-*-*) ;;
5276*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5277esac
5278host=$ac_cv_host
5279ac_save_IFS=$IFS; IFS='-'
5280set x $ac_cv_host
5281shift
5282host_cpu=$1
5283host_vendor=$2
5284shift; shift
5285# Remember, the first character of IFS is used to create $*,
5286# except with old shells:
5287host_os=$*
5288IFS=$ac_save_IFS
5289case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5290
5291
5292
5293
5294save_cross_compiling=$cross_compiling
5295save_ac_tool_prefix=$ac_tool_prefix
5296cross_compiling=no
5297ac_tool_prefix=
5298
5299ac_ext=c
5300ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5301ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5302ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5303ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5306set dummy ${ac_tool_prefix}gcc; ac_word=$2
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308$as_echo_n "checking for $ac_word... " >&6; }
5309if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 if test -n "$CC_FOR_BUILD"; then
5313 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326done
5327 done
5328IFS=$as_save_IFS
5329
5330fi
5331fi
5332CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5333if test -n "$CC_FOR_BUILD"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5335$as_echo "$CC_FOR_BUILD" >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340
5341
5342fi
5343if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5344 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5345 # Extract the first word of "gcc", so it can be a program name with args.
5346set dummy gcc; ac_word=$2
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348$as_echo_n "checking for $ac_word... " >&6; }
5349if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 if test -n "$ac_ct_CC_FOR_BUILD"; then
5353 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366done
5367 done
5368IFS=$as_save_IFS
5369
5370fi
5371fi
5372ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5373if test -n "$ac_ct_CC_FOR_BUILD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5375$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5376else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378$as_echo "no" >&6; }
5379fi
5380
5381 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5382 CC_FOR_BUILD=""
5383 else
5384 case $cross_compiling:$ac_tool_warned in
5385yes:)
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5387$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5388ac_tool_warned=yes ;;
5389esac
5390 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5391 fi
5392else
5393 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5394fi
5395
5396if test -z "$CC_FOR_BUILD"; then
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5399set dummy ${ac_tool_prefix}cc; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404else
5405 if test -n "$CC_FOR_BUILD"; then
5406 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419done
5420 done
5421IFS=$as_save_IFS
5422
5423fi
5424fi
5425CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5426if test -n "$CC_FOR_BUILD"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5428$as_echo "$CC_FOR_BUILD" >&6; }
5429else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433
5434
5435 fi
5436fi
5437if test -z "$CC_FOR_BUILD"; then
5438 # Extract the first word of "cc", so it can be a program name with args.
5439set dummy cc; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444else
5445 if test -n "$CC_FOR_BUILD"; then
5446 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5447else
5448 ac_prog_rejected=no
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5457 ac_prog_rejected=yes
5458 continue
5459 fi
5460 ac_cv_prog_CC_FOR_BUILD="cc"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464done
5465 done
5466IFS=$as_save_IFS
5467
5468if test $ac_prog_rejected = yes; then
5469 # We found a bogon in the path, so make sure we never use it.
5470 set dummy $ac_cv_prog_CC_FOR_BUILD
5471 shift
5472 if test $# != 0; then
5473 # We chose a different compiler from the bogus one.
5474 # However, it has the same basename, so the bogon will be chosen
5475 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5476 shift
5477 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5478 fi
5479fi
5480fi
5481fi
5482CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5483if test -n "$CC_FOR_BUILD"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5485$as_echo "$CC_FOR_BUILD" >&6; }
5486else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489fi
5490
5491
5492fi
5493if test -z "$CC_FOR_BUILD"; then
5494 if test -n "$ac_tool_prefix"; then
5495 for ac_prog in cl.exe
5496 do
5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if test -n "$CC_FOR_BUILD"; then
5505 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518done
5519 done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5525if test -n "$CC_FOR_BUILD"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5527$as_echo "$CC_FOR_BUILD" >&6; }
5528else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534 test -n "$CC_FOR_BUILD" && break
5535 done
5536fi
5537if test -z "$CC_FOR_BUILD"; then
5538 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5539 for ac_prog in cl.exe
5540do
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542set dummy $ac_prog; ac_word=$2
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544$as_echo_n "checking for $ac_word... " >&6; }
5545if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 if test -n "$ac_ct_CC_FOR_BUILD"; then
5549 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562done
5563 done
5564IFS=$as_save_IFS
5565
5566fi
5567fi
5568ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5569if test -n "$ac_ct_CC_FOR_BUILD"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5571$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5572else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574$as_echo "no" >&6; }
5575fi
5576
5577
5578 test -n "$ac_ct_CC_FOR_BUILD" && break
5579done
5580
5581 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5582 CC_FOR_BUILD=""
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585yes:)
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5587$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5588ac_tool_warned=yes ;;
5589esac
5590 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5591 fi
5592fi
5593
5594fi
5595
5596
5597test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5599as_fn_error $? "no acceptable C compiler found in \$PATH
5600See \`config.log' for more details" "$LINENO" 5; }
5601
5602# Provide some information about the compiler.
5603$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5604set X $ac_build_compile
5605ac_compiler=$2
5606for ac_option in --version -v -V -qversion; do
5607 { { ac_try="$ac_compiler $ac_option >&5"
5608case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611esac
5612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5613$as_echo "$ac_try_echo"; } >&5
5614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5615 ac_status=$?
5616 if test -s conftest.err; then
5617 sed '10a\
5618... rest of stderr output deleted ...
5619 10q' conftest.err >conftest.er1
5620 cat conftest.er1 >&5
5621 fi
5622 rm -f conftest.er1 conftest.err
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; }
5625done
5626
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5628$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5629if ${ac_cv_c_compiler_gnu+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h. */
5634
5635int
5636main ()
5637{
5638#ifndef __GNUC__
5639 choke me
5640#endif
5641
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647 ac_compiler_gnu=yes
5648else
5649 ac_compiler_gnu=no
5650fi
5651rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5652ac_cv_c_compiler_gnu=$ac_compiler_gnu
5653
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5656$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5657if test $ac_compiler_gnu = yes; then
5658 GCC=yes
5659else
5660 GCC=
5661fi
5662ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5663ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5665$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5666if ${ac_cv_build_prog_cc_g+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668else
5669 ac_save_c_werror_flag=$ac_c_werror_flag
5670 ac_c_werror_flag=yes
5671 ac_cv_build_prog_cc_g=no
5672 CFLAGS_FOR_BUILD="-g"
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h. */
5675
5676int
5677main ()
5678{
5679
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_build_prog_cc_g=yes
5686else
5687 CFLAGS_FOR_BUILD=""
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690
5691int
5692main ()
5693{
5694
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700
5701else
5702 ac_c_werror_flag=$ac_save_c_werror_flag
5703 CFLAGS_FOR_BUILD="-g"
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706
5707int
5708main ()
5709{
5710
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_build_prog_cc_g=yes
5717fi
5718rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5719fi
5720rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5721fi
5722rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5723 ac_c_werror_flag=$ac_save_c_werror_flag
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5726$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5727if test "$ac_test_CFLAGS" = set; then
5728 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5729elif test $ac_cv_build_prog_cc_g = yes; then
5730 if test "$GCC" = yes; then
5731 CFLAGS_FOR_BUILD="-g -O2"
5732 else
5733 CFLAGS_FOR_BUILD="-g"
5734 fi
5735else
5736 if test "$GCC" = yes; then
5737 CFLAGS_FOR_BUILD="-O2"
5738 else
5739 CFLAGS_FOR_BUILD=
5740 fi
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5743$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5744if ${ac_cv_prog_cc_c89+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746else
5747 ac_cv_prog_cc_c89=no
5748ac_save_CC=$CC_FOR_BUILD
5749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h. */
5751#include <stdarg.h>
5752#include <stdio.h>
5753struct stat;
5754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5755struct buf { int x; };
5756FILE * (*rcsopen) (struct buf *, struct stat *, int);
5757static char *e (p, i)
5758 char **p;
5759 int i;
5760{
5761 return p[i];
5762}
5763static char *f (char * (*g) (char **, int), char **p, ...)
5764{
5765 char *s;
5766 va_list v;
5767 va_start (v,p);
5768 s = g (p, va_arg (v,int));
5769 va_end (v);
5770 return s;
5771}
5772
5773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5774 function prototypes and stuff, but not '\xHH' hex character constants.
5775 These don't provoke an error unfortunately, instead are silently treated
5776 as 'x'. The following induces an error, until -std is added to get
5777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5778 array size at least. It's necessary to write '\x00'==0 to get something
5779 that's true only with -std. */
5780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5781
5782/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5783 inside strings and character constants. */
5784#define FOO(x) 'x'
5785int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5786
5787int test (int i, double x);
5788struct s1 {int (*f) (int a);};
5789struct s2 {int (*f) (double a);};
5790int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5791int argc;
5792char **argv;
5793int
5794main ()
5795{
5796return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5797 ;
5798 return 0;
5799}
5800_ACEOF
5801for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5802 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5803do
5804 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 ac_cv_prog_cc_c89=$ac_arg
5807fi
5808rm -f core conftest.err conftest.$ac_build_objext
5809 test "x$ac_cv_prog_cc_c89" != "xno" && break
5810done
5811rm -f conftest.$ac_ext
5812CC_FOR_BUILD=$ac_save_CC
5813
5814fi
5815# AC_CACHE_VAL
5816case "x$ac_cv_prog_cc_c89" in
5817 x)
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5819$as_echo "none needed" >&6; } ;;
5820 xno)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5822$as_echo "unsupported" >&6; } ;;
5823 *)
5824 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5826$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5827esac
5828if test "x$ac_cv_prog_cc_c89" != xno; then :
5829
5830fi
5831
5832ac_ext=c
5833ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5834ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5835ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5836ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838ac_ext=c
5839ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5840ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5841ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5844$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5845if ${am_cv_prog_cc_c_o+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h. */
5850
5851int
5852main ()
5853{
5854
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859 # Make sure it works both with $CC and with simple cc.
5860 # Following AC_PROG_CC_C_O, we do the test twice because some
5861 # compilers refuse to overwrite an existing .o file with -o,
5862 # though they will create one.
5863 am_cv_prog_cc_c_o=yes
5864 for am_i in 1 2; do
5865 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5866 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } \
5870 && test -f conftest2.$ac_build_objext; then
5871 : OK
5872 else
5873 am_cv_prog_cc_c_o=no
5874 break
5875 fi
5876 done
5877 rm -f core conftest*
5878 unset am_i
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5881$as_echo "$am_cv_prog_cc_c_o" >&6; }
5882if test "$am_cv_prog_cc_c_o" != yes; then
5883 # Losing compiler, so override with the script.
5884 # FIXME: It is wrong to rewrite CC.
5885 # But if we don't then we get into trouble of one sort or another.
5886 # A longer-term fix would be to have automake use am__CC in this case,
5887 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5888 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5889fi
5890ac_ext=c
5891ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5892ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5893ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5894ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
5896
5897depcc="$CC_FOR_BUILD" am_compiler_list=
5898
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5900$as_echo_n "checking dependency style of $depcc... " >&6; }
5901if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5905 # We make a subdir and do the tests there. Otherwise we can end up
5906 # making bogus files that we don't know about and never remove. For
5907 # instance it was reported that on HP-UX the gcc test will end up
5908 # making a dummy file named 'D' -- because '-MD' means "put the output
5909 # in D".
5910 rm -rf conftest.dir
5911 mkdir conftest.dir
5912 # Copy depcomp to subdir because otherwise we won't find it if we're
5913 # using a relative directory.
5914 cp "$am_depcomp" conftest.dir
5915 cd conftest.dir
5916 # We will build objects and dependencies in a subdirectory because
5917 # it helps to detect inapplicable dependency modes. For instance
5918 # both Tru64's cc and ICC support -MD to output dependencies as a
5919 # side effect of compilation, but ICC will put the dependencies in
5920 # the current directory while Tru64 will put them in the object
5921 # directory.
5922 mkdir sub
5923
5924 am_cv_CC_dependencies_compiler_type=none
5925 if test "$am_compiler_list" = ""; then
5926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5927 fi
5928 am__universal=false
5929 case " $depcc " in #(
5930 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5931 esac
5932
5933 for depmode in $am_compiler_list; do
5934 # Setup a source with many dependencies, because some compilers
5935 # like to wrap large dependency lists on column 80 (with \), and
5936 # we should not choose a depcomp mode which is confused by this.
5937 #
5938 # We need to recreate these files for each test, as the compiler may
5939 # overwrite some of them when testing with obscure command lines.
5940 # This happens at least with the AIX C compiler.
5941 : > sub/conftest.c
5942 for i in 1 2 3 4 5 6; do
5943 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5944 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5945 # Solaris 10 /bin/sh.
5946 echo '/* dummy */' > sub/conftst$i.h
5947 done
5948 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5949
5950 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5951 # mode. It turns out that the SunPro C++ compiler does not properly
5952 # handle '-M -o', and we need to detect this. Also, some Intel
5953 # versions had trouble with output in subdirs.
5954 am__obj=sub/conftest.${OBJEXT-o}
5955 am__minus_obj="-o $am__obj"
5956 case $depmode in
5957 gcc)
5958 # This depmode causes a compiler race in universal mode.
5959 test "$am__universal" = false || continue
5960 ;;
5961 nosideeffect)
5962 # After this tag, mechanisms are not by side-effect, so they'll
5963 # only be used when explicitly requested.
5964 if test "x$enable_dependency_tracking" = xyes; then
5965 continue
5966 else
5967 break
5968 fi
5969 ;;
5970 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5971 # This compiler won't grok '-c -o', but also, the minuso test has
5972 # not run yet. These depmodes are late enough in the game, and
5973 # so weak that their functioning should not be impacted.
5974 am__obj=conftest.${OBJEXT-o}
5975 am__minus_obj=
5976 ;;
5977 none) break ;;
5978 esac
5979 if depmode=$depmode \
5980 source=sub/conftest.c object=$am__obj \
5981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5982 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5983 >/dev/null 2>conftest.err &&
5984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5986 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5988 # icc doesn't choke on unknown options, it will just issue warnings
5989 # or remarks (even with -Werror). So we grep stderr for any message
5990 # that says an option was ignored or not supported.
5991 # When given -MP, icc 7.0 and 7.1 complain thusly:
5992 # icc: Command line warning: ignoring option '-M'; no argument required
5993 # The diagnosis changed in icc 8.0:
5994 # icc: Command line remark: option '-MP' not supported
5995 if (grep 'ignoring option' conftest.err ||
5996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5997 am_cv_CC_dependencies_compiler_type=$depmode
5998 break
5999 fi
6000 fi
6001 done
6002
6003 cd ..
6004 rm -rf conftest.dir
6005else
6006 am_cv_CC_dependencies_compiler_type=none
6007fi
6008
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6011$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6012CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6013
6014 if
6015 test "x$enable_dependency_tracking" != xno \
6016 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6017 am__fastdepCC_TRUE=
6018 am__fastdepCC_FALSE='#'
6019else
6020 am__fastdepCC_TRUE='#'
6021 am__fastdepCC_FALSE=
6022fi
6023
6024
6025ac_ext=c
6026ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6027ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6028ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031$as_echo_n "checking how to run the C preprocessor... " >&6; }
6032# On Suns, sometimes $CPP names a directory.
6033if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6034 CPP_FOR_BUILD=
6035fi
6036if test -z "$CPP_FOR_BUILD"; then
6037 if ${ac_cv_build_prog_CPP+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040 # Double quotes because CPP needs to be expanded
6041 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6042 do
6043 ac_preproc_ok=false
6044for ac_c_preproc_warn_flag in '' yes
6045do
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054#ifdef __STDC__
6055# include <limits.h>
6056#else
6057# include <assert.h>
6058#endif
6059 Syntax error
6060_ACEOF
6061if ac_fn_c_try_cpp "$LINENO"; then :
6062
6063else
6064 # Broken: fails on valid input.
6065continue
6066fi
6067rm -f conftest.err conftest.i conftest.$ac_ext
6068
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073#include <ac_nonexistent.h>
6074_ACEOF
6075if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6077continue
6078else
6079 # Passes both tests.
6080ac_preproc_ok=:
6081break
6082fi
6083rm -f conftest.err conftest.i conftest.$ac_ext
6084
6085done
6086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087rm -f conftest.i conftest.err conftest.$ac_ext
6088if $ac_preproc_ok; then :
6089 break
6090fi
6091
6092 done
6093 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6094
6095fi
6096 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6097else
6098 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6101$as_echo "$CPP_FOR_BUILD" >&6; }
6102ac_preproc_ok=false
6103for ac_c_preproc_warn_flag in '' yes
6104do
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113#ifdef __STDC__
6114# include <limits.h>
6115#else
6116# include <assert.h>
6117#endif
6118 Syntax error
6119_ACEOF
6120if ac_fn_c_try_cpp "$LINENO"; then :
6121
6122else
6123 # Broken: fails on valid input.
6124continue
6125fi
6126rm -f conftest.err conftest.i conftest.$ac_ext
6127
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h. */
6132#include <ac_nonexistent.h>
6133_ACEOF
6134if ac_fn_c_try_cpp "$LINENO"; then :
6135 # Broken: success on invalid input.
6136continue
6137else
6138 # Passes both tests.
6139ac_preproc_ok=:
6140break
6141fi
6142rm -f conftest.err conftest.i conftest.$ac_ext
6143
6144done
6145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146rm -f conftest.i conftest.err conftest.$ac_ext
6147if $ac_preproc_ok; then :
6148
6149else
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6153See \`config.log' for more details" "$LINENO" 5; }
6154fi
6155
6156ac_ext=c
6157ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6158ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6159ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163
6164ac_tool_prefix=$save_ac_tool_prefix
6165cross_compiling=$save_cross_compiling
6166
6167
6168BUILD_EXEEXT=$ac_build_exeext
6169BUILD_OBJEXT=$ac_build_objext
6170
6171ac_ext=cpp
6172ac_cpp='$CXXCPP $CPPFLAGS'
6173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6177$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6178if test -z "$CXXCPP"; then
6179 if ${ac_cv_prog_CXXCPP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 # Double quotes because CXXCPP needs to be expanded
6183 for CXXCPP in "$CXX -E" "/lib/cpp"
6184 do
6185 ac_preproc_ok=false
6186for ac_cxx_preproc_warn_flag in '' yes
6187do
6188 # Use a header file that comes with gcc, so configuring glibc
6189 # with a fresh cross-compiler works.
6190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191 # <limits.h> exists even on freestanding compilers.
6192 # On the NeXT, cc -E runs the code through the compiler's parser,
6193 # not just through cpp. "Syntax error" is here to catch this case.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196#ifdef __STDC__
6197# include <limits.h>
6198#else
6199# include <assert.h>
6200#endif
6201 Syntax error
6202_ACEOF
6203if ac_fn_cxx_try_cpp "$LINENO"; then :
6204
6205else
6206 # Broken: fails on valid input.
6207continue
6208fi
6209rm -f conftest.err conftest.i conftest.$ac_ext
6210
6211 # OK, works on sane cases. Now check whether nonexistent headers
6212 # can be detected and how.
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215#include <ac_nonexistent.h>
6216_ACEOF
6217if ac_fn_cxx_try_cpp "$LINENO"; then :
6218 # Broken: success on invalid input.
6219continue
6220else
6221 # Passes both tests.
6222ac_preproc_ok=:
6223break
6224fi
6225rm -f conftest.err conftest.i conftest.$ac_ext
6226
6227done
6228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229rm -f conftest.i conftest.err conftest.$ac_ext
6230if $ac_preproc_ok; then :
6231 break
6232fi
6233
6234 done
6235 ac_cv_prog_CXXCPP=$CXXCPP
6236
6237fi
6238 CXXCPP=$ac_cv_prog_CXXCPP
6239else
6240 ac_cv_prog_CXXCPP=$CXXCPP
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6243$as_echo "$CXXCPP" >&6; }
6244ac_preproc_ok=false
6245for ac_cxx_preproc_warn_flag in '' yes
6246do
6247 # Use a header file that comes with gcc, so configuring glibc
6248 # with a fresh cross-compiler works.
6249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250 # <limits.h> exists even on freestanding compilers.
6251 # On the NeXT, cc -E runs the code through the compiler's parser,
6252 # not just through cpp. "Syntax error" is here to catch this case.
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h. */
6255#ifdef __STDC__
6256# include <limits.h>
6257#else
6258# include <assert.h>
6259#endif
6260 Syntax error
6261_ACEOF
6262if ac_fn_cxx_try_cpp "$LINENO"; then :
6263
6264else
6265 # Broken: fails on valid input.
6266continue
6267fi
6268rm -f conftest.err conftest.i conftest.$ac_ext
6269
6270 # OK, works on sane cases. Now check whether nonexistent headers
6271 # can be detected and how.
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274#include <ac_nonexistent.h>
6275_ACEOF
6276if ac_fn_cxx_try_cpp "$LINENO"; then :
6277 # Broken: success on invalid input.
6278continue
6279else
6280 # Passes both tests.
6281ac_preproc_ok=:
6282break
6283fi
6284rm -f conftest.err conftest.i conftest.$ac_ext
6285
6286done
6287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6288rm -f conftest.i conftest.err conftest.$ac_ext
6289if $ac_preproc_ok; then :
6290
6291else
6292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6294as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6295See \`config.log' for more details" "$LINENO" 5; }
6296fi
6297
6298ac_ext=c
6299ac_cpp='$CPP $CPPFLAGS'
6300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304
6305
6306save_cross_compiling=$cross_compiling
6307save_ac_tool_prefix=$ac_tool_prefix
6308cross_compiling=no
6309ac_tool_prefix=
6310
6311ac_ext=cpp
6312ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6313ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6314ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6316if test -z "$CXX_FOR_BUILD"; then
6317 if test -n "$CCC"; then
6318 CXX_FOR_BUILD=$CCC
6319 else
6320 if test -n "$ac_tool_prefix"; then
6321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6322 do
6323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329else
6330 if test -n "$CXX_FOR_BUILD"; then
6331 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345 done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6351if test -n "$CXX_FOR_BUILD"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6353$as_echo "$CXX_FOR_BUILD" >&6; }
6354else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359
6360 test -n "$CXX_FOR_BUILD" && break
6361 done
6362fi
6363if test -z "$CXX_FOR_BUILD"; then
6364 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6366do
6367 # Extract the first word of "$ac_prog", so it can be a program name with args.
6368set dummy $ac_prog; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373else
6374 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6375 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6395if test -n "$ac_ct_CXX_FOR_BUILD"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6397$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6398else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403
6404 test -n "$ac_ct_CXX_FOR_BUILD" && break
6405done
6406
6407 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6408 CXX_FOR_BUILD="g++"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411yes:)
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6413$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6414ac_tool_warned=yes ;;
6415esac
6416 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6417 fi
6418fi
6419
6420 fi
6421fi
6422# Provide some information about the compiler.
6423$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6424set X $ac_build_compile
6425ac_compiler=$2
6426for ac_option in --version -v -V -qversion; do
6427 { { ac_try="$ac_compiler $ac_option >&5"
6428case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6433$as_echo "$ac_try_echo"; } >&5
6434 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6435 ac_status=$?
6436 if test -s conftest.err; then
6437 sed '10a\
6438... rest of stderr output deleted ...
6439 10q' conftest.err >conftest.er1
6440 cat conftest.er1 >&5
6441 fi
6442 rm -f conftest.er1 conftest.err
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }
6445done
6446
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6448$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6449if ${ac_cv_cxx_compiler_gnu+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h. */
6454
6455int
6456main ()
6457{
6458#ifndef __GNUC__
6459 choke me
6460#endif
6461
6462 ;
6463 return 0;
6464}
6465_ACEOF
6466if ac_fn_cxx_try_compile "$LINENO"; then :
6467 ac_compiler_gnu=yes
6468else
6469 ac_compiler_gnu=no
6470fi
6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6473
6474fi
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6476$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6477if test $ac_compiler_gnu = yes; then
6478 GXX=yes
6479else
6480 GXX=
6481fi
6482ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6483ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6485$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6486if ${ac_cv_build_prog_cxx_g+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488else
6489 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6490 ac_cxx_werror_flag=yes
6491 ac_cv_build_prog_cxx_g=no
6492 CXXFLAGS_FOR_BUILD="-g"
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h. */
6495
6496int
6497main ()
6498{
6499
6500 ;
6501 return 0;
6502}
6503_ACEOF
6504if ac_fn_cxx_try_compile "$LINENO"; then :
6505 ac_cv_build_prog_cxx_g=yes
6506else
6507 CXXFLAGS_FOR_BUILD=""
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510
6511int
6512main ()
6513{
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519if ac_fn_cxx_try_compile "$LINENO"; then :
6520
6521else
6522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6523 CXXFLAGS_FOR_BUILD="-g"
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h. */
6526
6527int
6528main ()
6529{
6530
6531 ;
6532 return 0;
6533}
6534_ACEOF
6535if ac_fn_cxx_try_compile "$LINENO"; then :
6536 ac_cv_build_prog_cxx_g=yes
6537fi
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6546$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6547if test "$ac_test_CXXFLAGS" = set; then
6548 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6549elif test $ac_cv_build_prog_cxx_g = yes; then
6550 if test "$GXX" = yes; then
6551 CXXFLAGS_FOR_BUILD="-g -O2"
6552 else
6553 CXXFLAGS_FOR_BUILD="-g"
6554 fi
6555else
6556 if test "$GXX" = yes; then
6557 CXXFLAGS_FOR_BUILD="-O2"
6558 else
6559 CXXFLAGS_FOR_BUILD=
6560 fi
6561fi
6562ac_ext=c
6563ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6564ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6565ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566ac_compiler_gnu=$ac_cv_c_compiler_gnu
6567
6568depcc="$CXX_FOR_BUILD" am_compiler_list=
6569
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6571$as_echo_n "checking dependency style of $depcc... " >&6; }
6572if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574else
6575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6576 # We make a subdir and do the tests there. Otherwise we can end up
6577 # making bogus files that we don't know about and never remove. For
6578 # instance it was reported that on HP-UX the gcc test will end up
6579 # making a dummy file named 'D' -- because '-MD' means "put the output
6580 # in D".
6581 rm -rf conftest.dir
6582 mkdir conftest.dir
6583 # Copy depcomp to subdir because otherwise we won't find it if we're
6584 # using a relative directory.
6585 cp "$am_depcomp" conftest.dir
6586 cd conftest.dir
6587 # We will build objects and dependencies in a subdirectory because
6588 # it helps to detect inapplicable dependency modes. For instance
6589 # both Tru64's cc and ICC support -MD to output dependencies as a
6590 # side effect of compilation, but ICC will put the dependencies in
6591 # the current directory while Tru64 will put them in the object
6592 # directory.
6593 mkdir sub
6594
6595 am_cv_CXX_dependencies_compiler_type=none
6596 if test "$am_compiler_list" = ""; then
6597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6598 fi
6599 am__universal=false
6600 case " $depcc " in #(
6601 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6602 esac
6603
6604 for depmode in $am_compiler_list; do
6605 # Setup a source with many dependencies, because some compilers
6606 # like to wrap large dependency lists on column 80 (with \), and
6607 # we should not choose a depcomp mode which is confused by this.
6608 #
6609 # We need to recreate these files for each test, as the compiler may
6610 # overwrite some of them when testing with obscure command lines.
6611 # This happens at least with the AIX C compiler.
6612 : > sub/conftest.c
6613 for i in 1 2 3 4 5 6; do
6614 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6615 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6616 # Solaris 10 /bin/sh.
6617 echo '/* dummy */' > sub/conftst$i.h
6618 done
6619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6620
6621 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6622 # mode. It turns out that the SunPro C++ compiler does not properly
6623 # handle '-M -o', and we need to detect this. Also, some Intel
6624 # versions had trouble with output in subdirs.
6625 am__obj=sub/conftest.${OBJEXT-o}
6626 am__minus_obj="-o $am__obj"
6627 case $depmode in
6628 gcc)
6629 # This depmode causes a compiler race in universal mode.
6630 test "$am__universal" = false || continue
6631 ;;
6632 nosideeffect)
6633 # After this tag, mechanisms are not by side-effect, so they'll
6634 # only be used when explicitly requested.
6635 if test "x$enable_dependency_tracking" = xyes; then
6636 continue
6637 else
6638 break
6639 fi
6640 ;;
6641 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6642 # This compiler won't grok '-c -o', but also, the minuso test has
6643 # not run yet. These depmodes are late enough in the game, and
6644 # so weak that their functioning should not be impacted.
6645 am__obj=conftest.${OBJEXT-o}
6646 am__minus_obj=
6647 ;;
6648 none) break ;;
6649 esac
6650 if depmode=$depmode \
6651 source=sub/conftest.c object=$am__obj \
6652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6653 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6654 >/dev/null 2>conftest.err &&
6655 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6657 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6659 # icc doesn't choke on unknown options, it will just issue warnings
6660 # or remarks (even with -Werror). So we grep stderr for any message
6661 # that says an option was ignored or not supported.
6662 # When given -MP, icc 7.0 and 7.1 complain thusly:
6663 # icc: Command line warning: ignoring option '-M'; no argument required
6664 # The diagnosis changed in icc 8.0:
6665 # icc: Command line remark: option '-MP' not supported
6666 if (grep 'ignoring option' conftest.err ||
6667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6668 am_cv_CXX_dependencies_compiler_type=$depmode
6669 break
6670 fi
6671 fi
6672 done
6673
6674 cd ..
6675 rm -rf conftest.dir
6676else
6677 am_cv_CXX_dependencies_compiler_type=none
6678fi
6679
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6682$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6683CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6684
6685 if
6686 test "x$enable_dependency_tracking" != xno \
6687 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6688 am__fastdepCXX_TRUE=
6689 am__fastdepCXX_FALSE='#'
6690else
6691 am__fastdepCXX_TRUE='#'
6692 am__fastdepCXX_FALSE=
6693fi
6694
6695
6696ac_ext=cpp
6697ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6698ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6699ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6702$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6703if test -z "$CXXCPP_FOR_BUILD"; then
6704 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706else
6707 # Double quotes because CXXCPP needs to be expanded
6708 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6709 do
6710 ac_preproc_ok=false
6711for ac_cxx_preproc_warn_flag in '' yes
6712do
6713 # Use a header file that comes with gcc, so configuring glibc
6714 # with a fresh cross-compiler works.
6715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6716 # <limits.h> exists even on freestanding compilers.
6717 # On the NeXT, cc -E runs the code through the compiler's parser,
6718 # not just through cpp. "Syntax error" is here to catch this case.
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h. */
6721#ifdef __STDC__
6722# include <limits.h>
6723#else
6724# include <assert.h>
6725#endif
6726 Syntax error
6727_ACEOF
6728if ac_fn_cxx_try_cpp "$LINENO"; then :
6729
6730else
6731 # Broken: fails on valid input.
6732continue
6733fi
6734rm -f conftest.err conftest.i conftest.$ac_ext
6735
6736 # OK, works on sane cases. Now check whether nonexistent headers
6737 # can be detected and how.
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h. */
6740#include <ac_nonexistent.h>
6741_ACEOF
6742if ac_fn_cxx_try_cpp "$LINENO"; then :
6743 # Broken: success on invalid input.
6744continue
6745else
6746 # Passes both tests.
6747ac_preproc_ok=:
6748break
6749fi
6750rm -f conftest.err conftest.i conftest.$ac_ext
6751
6752done
6753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6754rm -f conftest.i conftest.err conftest.$ac_ext
6755if $ac_preproc_ok; then :
6756 break
6757fi
6758
6759 done
6760 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6761
6762fi
6763 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6764else
6765 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6768$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6769ac_preproc_ok=false
6770for ac_cxx_preproc_warn_flag in '' yes
6771do
6772 # Use a header file that comes with gcc, so configuring glibc
6773 # with a fresh cross-compiler works.
6774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775 # <limits.h> exists even on freestanding compilers.
6776 # On the NeXT, cc -E runs the code through the compiler's parser,
6777 # not just through cpp. "Syntax error" is here to catch this case.
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h. */
6780#ifdef __STDC__
6781# include <limits.h>
6782#else
6783# include <assert.h>
6784#endif
6785 Syntax error
6786_ACEOF
6787if ac_fn_cxx_try_cpp "$LINENO"; then :
6788
6789else
6790 # Broken: fails on valid input.
6791continue
6792fi
6793rm -f conftest.err conftest.i conftest.$ac_ext
6794
6795 # OK, works on sane cases. Now check whether nonexistent headers
6796 # can be detected and how.
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h. */
6799#include <ac_nonexistent.h>
6800_ACEOF
6801if ac_fn_cxx_try_cpp "$LINENO"; then :
6802 # Broken: success on invalid input.
6803continue
6804else
6805 # Passes both tests.
6806ac_preproc_ok=:
6807break
6808fi
6809rm -f conftest.err conftest.i conftest.$ac_ext
6810
6811done
6812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813rm -f conftest.i conftest.err conftest.$ac_ext
6814if $ac_preproc_ok; then :
6815
6816else
6817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6819as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6820See \`config.log' for more details" "$LINENO" 5; }
6821fi
6822
6823ac_ext=c
6824ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6825ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6826ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828
6829
6830ac_tool_prefix=$save_ac_tool_prefix
6831cross_compiling=$save_cross_compiling
6832
6833
6834
6835
6836
6837if test -n "$ac_tool_prefix"; then
6838 for ac_prog in ar lib "link -lib"
6839 do
6840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if ${ac_cv_prog_AR+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$AR"; then
6848 ac_cv_prog_AR="$AR" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867AR=$ac_cv_prog_AR
6868if test -n "$AR"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6870$as_echo "$AR" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877 test -n "$AR" && break
6878 done
6879fi
6880if test -z "$AR"; then
6881 ac_ct_AR=$AR
6882 for ac_prog in ar lib "link -lib"
6883do
6884 # Extract the first word of "$ac_prog", so it can be a program name with args.
6885set dummy $ac_prog; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if ${ac_cv_prog_ac_ct_AR+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890else
6891 if test -n "$ac_ct_AR"; then
6892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_AR="$ac_prog"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906 done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911ac_ct_AR=$ac_cv_prog_ac_ct_AR
6912if test -n "$ac_ct_AR"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6914$as_echo "$ac_ct_AR" >&6; }
6915else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920
6921 test -n "$ac_ct_AR" && break
6922done
6923
6924 if test "x$ac_ct_AR" = x; then
6925 AR="false"
6926 else
6927 case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933 AR=$ac_ct_AR
6934 fi
6935fi
6936
6937: ${AR=ar}
6938
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6940$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6941if ${am_cv_ar_interface+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943else
6944 ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950 am_cv_ar_interface=ar
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h. */
6953int some_variable = 0;
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then :
6956 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6958 (eval $am_ar_try) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }
6962 if test "$ac_status" -eq 0; then
6963 am_cv_ar_interface=ar
6964 else
6965 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6967 (eval $am_ar_try) 2>&5
6968 ac_status=$?
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; }
6971 if test "$ac_status" -eq 0; then
6972 am_cv_ar_interface=lib
6973 else
6974 am_cv_ar_interface=unknown
6975 fi
6976 fi
6977 rm -f conftest.lib libconftest.a
6978
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 ac_ext=c
6982ac_cpp='$CPP $CPPFLAGS'
6983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6989$as_echo "$am_cv_ar_interface" >&6; }
6990
6991case $am_cv_ar_interface in
6992ar)
6993 ;;
6994lib)
6995 # Microsoft lib, so override with the ar-lib wrapper script.
6996 # FIXME: It is wrong to rewrite AR.
6997 # But if we don't then we get into trouble of one sort or another.
6998 # A longer-term fix would be to have automake use am__AR in this case,
6999 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7000 # similar.
7001 AR="$am_aux_dir/ar-lib $AR"
7002 ;;
7003unknown)
7004 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7005 ;;
7006esac
7007
7008
7009
7010case `pwd` in
7011 *\ * | *\ *)
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7013$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7014esac
7015
7016
7017
7018macro_version='2.4.6'
7019macro_revision='2.4.6'
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033ltmain=$ac_aux_dir/ltmain.sh
7034
7035# Backslashify metacharacters that are still active within
7036# double-quoted strings.
7037sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7038
7039# Same as above, but do not quote variable references.
7040double_quote_subst='s/\(["`\\]\)/\\\1/g'
7041
7042# Sed substitution to delay expansion of an escaped shell variable in a
7043# double_quote_subst'ed string.
7044delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045
7046# Sed substitution to delay expansion of an escaped single quote.
7047delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7048
7049# Sed substitution to avoid accidental globbing in evaled expressions
7050no_glob_subst='s/\*/\\\*/g'
7051
7052ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7053ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7054ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7055
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7057$as_echo_n "checking how to print strings... " >&6; }
7058# Test print first, because it will be a builtin if present.
7059if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7060 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7061 ECHO='print -r --'
7062elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7063 ECHO='printf %s\n'
7064else
7065 # Use this function as a fallback that always works.
7066 func_fallback_echo ()
7067 {
7068 eval 'cat <<_LTECHO_EOF
7069$1
7070_LTECHO_EOF'
7071 }
7072 ECHO='func_fallback_echo'
7073fi
7074
7075# func_echo_all arg...
7076# Invoke $ECHO with all args, space-separated.
7077func_echo_all ()
7078{
7079 $ECHO ""
7080}
7081
7082case $ECHO in
7083 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7084$as_echo "printf" >&6; } ;;
7085 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7086$as_echo "print -r" >&6; } ;;
7087 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7088$as_echo "cat" >&6; } ;;
7089esac
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7105$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7106if ${ac_cv_path_SED+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108else
7109 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7110 for ac_i in 1 2 3 4 5 6 7; do
7111 ac_script="$ac_script$as_nl$ac_script"
7112 done
7113 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7114 { ac_script=; unset ac_script;}
7115 if test -z "$SED"; then
7116 ac_path_SED_found=false
7117 # Loop through the user's path and test for each of PROGNAME-LIST
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_prog in sed gsed; do
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7126 as_fn_executable_p "$ac_path_SED" || continue
7127# Check for GNU ac_path_SED and select it if it is found.
7128 # Check for GNU $ac_path_SED
7129case `"$ac_path_SED" --version 2>&1` in
7130*GNU*)
7131 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7132*)
7133 ac_count=0
7134 $as_echo_n 0123456789 >"conftest.in"
7135 while :
7136 do
7137 cat "conftest.in" "conftest.in" >"conftest.tmp"
7138 mv "conftest.tmp" "conftest.in"
7139 cp "conftest.in" "conftest.nl"
7140 $as_echo '' >> "conftest.nl"
7141 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7143 as_fn_arith $ac_count + 1 && ac_count=$as_val
7144 if test $ac_count -gt ${ac_path_SED_max-0}; then
7145 # Best one so far, save it but keep looking for a better one
7146 ac_cv_path_SED="$ac_path_SED"
7147 ac_path_SED_max=$ac_count
7148 fi
7149 # 10*(2^10) chars as input seems more than enough
7150 test $ac_count -gt 10 && break
7151 done
7152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7153esac
7154
7155 $ac_path_SED_found && break 3
7156 done
7157 done
7158 done
7159IFS=$as_save_IFS
7160 if test -z "$ac_cv_path_SED"; then
7161 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7162 fi
7163else
7164 ac_cv_path_SED=$SED
7165fi
7166
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7169$as_echo "$ac_cv_path_SED" >&6; }
7170 SED="$ac_cv_path_SED"
7171 rm -f conftest.sed
7172
7173test -z "$SED" && SED=sed
7174Xsed="$SED -e 1s/^X//"
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7187$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7188if ${ac_cv_path_GREP+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 if test -z "$GREP"; then
7192 ac_path_GREP_found=false
7193 # Loop through the user's path and test for each of PROGNAME-LIST
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_prog in grep ggrep; do
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7202 as_fn_executable_p "$ac_path_GREP" || continue
7203# Check for GNU ac_path_GREP and select it if it is found.
7204 # Check for GNU $ac_path_GREP
7205case `"$ac_path_GREP" --version 2>&1` in
7206*GNU*)
7207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7208*)
7209 ac_count=0
7210 $as_echo_n 0123456789 >"conftest.in"
7211 while :
7212 do
7213 cat "conftest.in" "conftest.in" >"conftest.tmp"
7214 mv "conftest.tmp" "conftest.in"
7215 cp "conftest.in" "conftest.nl"
7216 $as_echo 'GREP' >> "conftest.nl"
7217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7219 as_fn_arith $ac_count + 1 && ac_count=$as_val
7220 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7221 # Best one so far, save it but keep looking for a better one
7222 ac_cv_path_GREP="$ac_path_GREP"
7223 ac_path_GREP_max=$ac_count
7224 fi
7225 # 10*(2^10) chars as input seems more than enough
7226 test $ac_count -gt 10 && break
7227 done
7228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7229esac
7230
7231 $ac_path_GREP_found && break 3
7232 done
7233 done
7234 done
7235IFS=$as_save_IFS
7236 if test -z "$ac_cv_path_GREP"; then
7237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7238 fi
7239else
7240 ac_cv_path_GREP=$GREP
7241fi
7242
7243fi
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7245$as_echo "$ac_cv_path_GREP" >&6; }
7246 GREP="$ac_cv_path_GREP"
7247
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7250$as_echo_n "checking for egrep... " >&6; }
7251if ${ac_cv_path_EGREP+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253else
7254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7255 then ac_cv_path_EGREP="$GREP -E"
7256 else
7257 if test -z "$EGREP"; then
7258 ac_path_EGREP_found=false
7259 # Loop through the user's path and test for each of PROGNAME-LIST
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_prog in egrep; do
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7268 as_fn_executable_p "$ac_path_EGREP" || continue
7269# Check for GNU ac_path_EGREP and select it if it is found.
7270 # Check for GNU $ac_path_EGREP
7271case `"$ac_path_EGREP" --version 2>&1` in
7272*GNU*)
7273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7274*)
7275 ac_count=0
7276 $as_echo_n 0123456789 >"conftest.in"
7277 while :
7278 do
7279 cat "conftest.in" "conftest.in" >"conftest.tmp"
7280 mv "conftest.tmp" "conftest.in"
7281 cp "conftest.in" "conftest.nl"
7282 $as_echo 'EGREP' >> "conftest.nl"
7283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7285 as_fn_arith $ac_count + 1 && ac_count=$as_val
7286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7287 # Best one so far, save it but keep looking for a better one
7288 ac_cv_path_EGREP="$ac_path_EGREP"
7289 ac_path_EGREP_max=$ac_count
7290 fi
7291 # 10*(2^10) chars as input seems more than enough
7292 test $ac_count -gt 10 && break
7293 done
7294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7295esac
7296
7297 $ac_path_EGREP_found && break 3
7298 done
7299 done
7300 done
7301IFS=$as_save_IFS
7302 if test -z "$ac_cv_path_EGREP"; then
7303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7304 fi
7305else
7306 ac_cv_path_EGREP=$EGREP
7307fi
7308
7309 fi
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7312$as_echo "$ac_cv_path_EGREP" >&6; }
7313 EGREP="$ac_cv_path_EGREP"
7314
7315
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7317$as_echo_n "checking for fgrep... " >&6; }
7318if ${ac_cv_path_FGREP+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320else
7321 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7322 then ac_cv_path_FGREP="$GREP -F"
7323 else
7324 if test -z "$FGREP"; then
7325 ac_path_FGREP_found=false
7326 # Loop through the user's path and test for each of PROGNAME-LIST
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_prog in fgrep; do
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7335 as_fn_executable_p "$ac_path_FGREP" || continue
7336# Check for GNU ac_path_FGREP and select it if it is found.
7337 # Check for GNU $ac_path_FGREP
7338case `"$ac_path_FGREP" --version 2>&1` in
7339*GNU*)
7340 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7341*)
7342 ac_count=0
7343 $as_echo_n 0123456789 >"conftest.in"
7344 while :
7345 do
7346 cat "conftest.in" "conftest.in" >"conftest.tmp"
7347 mv "conftest.tmp" "conftest.in"
7348 cp "conftest.in" "conftest.nl"
7349 $as_echo 'FGREP' >> "conftest.nl"
7350 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7352 as_fn_arith $ac_count + 1 && ac_count=$as_val
7353 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7354 # Best one so far, save it but keep looking for a better one
7355 ac_cv_path_FGREP="$ac_path_FGREP"
7356 ac_path_FGREP_max=$ac_count
7357 fi
7358 # 10*(2^10) chars as input seems more than enough
7359 test $ac_count -gt 10 && break
7360 done
7361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7362esac
7363
7364 $ac_path_FGREP_found && break 3
7365 done
7366 done
7367 done
7368IFS=$as_save_IFS
7369 if test -z "$ac_cv_path_FGREP"; then
7370 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7371 fi
7372else
7373 ac_cv_path_FGREP=$FGREP
7374fi
7375
7376 fi
7377fi
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7379$as_echo "$ac_cv_path_FGREP" >&6; }
7380 FGREP="$ac_cv_path_FGREP"
7381
7382
7383test -z "$GREP" && GREP=grep
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403# Check whether --with-gnu-ld was given.
7404if test "${with_gnu_ld+set}" = set; then :
7405 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7406else
7407 with_gnu_ld=no
7408fi
7409
7410ac_prog=ld
7411if test yes = "$GCC"; then
7412 # Check if gcc -print-prog-name=ld gives a path.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7414$as_echo_n "checking for ld used by $CC... " >&6; }
7415 case $host in
7416 *-*-mingw*)
7417 # gcc leaves a trailing carriage return, which upsets mingw
7418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7419 *)
7420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7421 esac
7422 case $ac_prog in
7423 # Accept absolute paths.
7424 [\\/]* | ?:[\\/]*)
7425 re_direlt='/[^/][^/]*/\.\./'
7426 # Canonicalize the pathname of ld
7427 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7428 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7429 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7430 done
7431 test -z "$LD" && LD=$ac_prog
7432 ;;
7433 "")
7434 # If it fails, then pretend we aren't using GCC.
7435 ac_prog=ld
7436 ;;
7437 *)
7438 # If it is relative, then search for the first ld in PATH.
7439 with_gnu_ld=unknown
7440 ;;
7441 esac
7442elif test yes = "$with_gnu_ld"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7444$as_echo_n "checking for GNU ld... " >&6; }
7445else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7447$as_echo_n "checking for non-GNU ld... " >&6; }
7448fi
7449if ${lt_cv_path_LD+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451else
7452 if test -z "$LD"; then
7453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7454 for ac_dir in $PATH; do
7455 IFS=$lt_save_ifs
7456 test -z "$ac_dir" && ac_dir=.
7457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7458 lt_cv_path_LD=$ac_dir/$ac_prog
7459 # Check to see if the program is GNU ld. I'd rather use --version,
7460 # but apparently some variants of GNU ld only accept -v.
7461 # Break only if it was the GNU/non-GNU ld that we prefer.
7462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7463 *GNU* | *'with BFD'*)
7464 test no != "$with_gnu_ld" && break
7465 ;;
7466 *)
7467 test yes != "$with_gnu_ld" && break
7468 ;;
7469 esac
7470 fi
7471 done
7472 IFS=$lt_save_ifs
7473else
7474 lt_cv_path_LD=$LD # Let the user override the test with a path.
7475fi
7476fi
7477
7478LD=$lt_cv_path_LD
7479if test -n "$LD"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7481$as_echo "$LD" >&6; }
7482else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7488$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7489if ${lt_cv_prog_gnu_ld+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491else
7492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7493case `$LD -v 2>&1 </dev/null` in
7494*GNU* | *'with BFD'*)
7495 lt_cv_prog_gnu_ld=yes
7496 ;;
7497*)
7498 lt_cv_prog_gnu_ld=no
7499 ;;
7500esac
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7503$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7504with_gnu_ld=$lt_cv_prog_gnu_ld
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7516if ${lt_cv_path_NM+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518else
7519 if test -n "$NM"; then
7520 # Let the user override the test.
7521 lt_cv_path_NM=$NM
7522else
7523 lt_nm_to_check=${ac_tool_prefix}nm
7524 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7525 lt_nm_to_check="$lt_nm_to_check nm"
7526 fi
7527 for lt_tmp_nm in $lt_nm_to_check; do
7528 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7529 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7530 IFS=$lt_save_ifs
7531 test -z "$ac_dir" && ac_dir=.
7532 tmp_nm=$ac_dir/$lt_tmp_nm
7533 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7534 # Check to see if the nm accepts a BSD-compat flag.
7535 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7536 # nm: unknown option "B" ignored
7537 # Tru64's nm complains that /dev/null is an invalid object file
7538 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7539 case $build_os in
7540 mingw*) lt_bad_file=conftest.nm/nofile ;;
7541 *) lt_bad_file=/dev/null ;;
7542 esac
7543 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7544 *$lt_bad_file* | *'Invalid file or object type'*)
7545 lt_cv_path_NM="$tmp_nm -B"
7546 break 2
7547 ;;
7548 *)
7549 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7550 */dev/null*)
7551 lt_cv_path_NM="$tmp_nm -p"
7552 break 2
7553 ;;
7554 *)
7555 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7556 continue # so that we can try to find one that supports BSD flags
7557 ;;
7558 esac
7559 ;;
7560 esac
7561 fi
7562 done
7563 IFS=$lt_save_ifs
7564 done
7565 : ${lt_cv_path_NM=no}
7566fi
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7569$as_echo "$lt_cv_path_NM" >&6; }
7570if test no != "$lt_cv_path_NM"; then
7571 NM=$lt_cv_path_NM
7572else
7573 # Didn't find any BSD compatible name lister, look for dumpbin.
7574 if test -n "$DUMPBIN"; then :
7575 # Let the user override the test.
7576 else
7577 if test -n "$ac_tool_prefix"; then
7578 for ac_prog in dumpbin "link -dump"
7579 do
7580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
7584if ${ac_cv_prog_DUMPBIN+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586else
7587 if test -n "$DUMPBIN"; then
7588 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601done
7602 done
7603IFS=$as_save_IFS
7604
7605fi
7606fi
7607DUMPBIN=$ac_cv_prog_DUMPBIN
7608if test -n "$DUMPBIN"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7610$as_echo "$DUMPBIN" >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
7614fi
7615
7616
7617 test -n "$DUMPBIN" && break
7618 done
7619fi
7620if test -z "$DUMPBIN"; then
7621 ac_ct_DUMPBIN=$DUMPBIN
7622 for ac_prog in dumpbin "link -dump"
7623do
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625set dummy $ac_prog; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630else
7631 if test -n "$ac_ct_DUMPBIN"; then
7632 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7644 fi
7645done
7646 done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7652if test -n "$ac_ct_DUMPBIN"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7654$as_echo "$ac_ct_DUMPBIN" >&6; }
7655else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
7659
7660
7661 test -n "$ac_ct_DUMPBIN" && break
7662done
7663
7664 if test "x$ac_ct_DUMPBIN" = x; then
7665 DUMPBIN=":"
7666 else
7667 case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673 DUMPBIN=$ac_ct_DUMPBIN
7674 fi
7675fi
7676
7677 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7678 *COFF*)
7679 DUMPBIN="$DUMPBIN -symbols -headers"
7680 ;;
7681 *)
7682 DUMPBIN=:
7683 ;;
7684 esac
7685 fi
7686
7687 if test : != "$DUMPBIN"; then
7688 NM=$DUMPBIN
7689 fi
7690fi
7691test -z "$NM" && NM=nm
7692
7693
7694
7695
7696
7697
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7699$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7700if ${lt_cv_nm_interface+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 lt_cv_nm_interface="BSD nm"
7704 echo "int some_variable = 0;" > conftest.$ac_ext
7705 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7706 (eval "$ac_compile" 2>conftest.err)
7707 cat conftest.err >&5
7708 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7709 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7710 cat conftest.err >&5
7711 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7712 cat conftest.out >&5
7713 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7714 lt_cv_nm_interface="MS dumpbin"
7715 fi
7716 rm -rf conftest*
7717fi
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7719$as_echo "$lt_cv_nm_interface" >&6; }
7720
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7722$as_echo_n "checking whether ln -s works... " >&6; }
7723LN_S=$as_ln_s
7724if test "$LN_S" = "ln -s"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7726$as_echo "yes" >&6; }
7727else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7729$as_echo "no, using $LN_S" >&6; }
7730fi
7731
7732# find the maximum length of command line arguments
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7734$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7735if ${lt_cv_sys_max_cmd_len+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737else
7738 i=0
7739 teststring=ABCD
7740
7741 case $build_os in
7742 msdosdjgpp*)
7743 # On DJGPP, this test can blow up pretty badly due to problems in libc
7744 # (any single argument exceeding 2000 bytes causes a buffer overrun
7745 # during glob expansion). Even if it were fixed, the result of this
7746 # check would be larger than it should be.
7747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7748 ;;
7749
7750 gnu*)
7751 # Under GNU Hurd, this test is not required because there is
7752 # no limit to the length of command line arguments.
7753 # Libtool will interpret -1 as no limit whatsoever
7754 lt_cv_sys_max_cmd_len=-1;
7755 ;;
7756
7757 cygwin* | mingw* | cegcc*)
7758 # On Win9x/ME, this test blows up -- it succeeds, but takes
7759 # about 5 minutes as the teststring grows exponentially.
7760 # Worse, since 9x/ME are not pre-emptively multitasking,
7761 # you end up with a "frozen" computer, even though with patience
7762 # the test eventually succeeds (with a max line length of 256k).
7763 # Instead, let's just punt: use the minimum linelength reported by
7764 # all of the supported platforms: 8192 (on NT/2K/XP).
7765 lt_cv_sys_max_cmd_len=8192;
7766 ;;
7767
7768 mint*)
7769 # On MiNT this can take a long time and run out of memory.
7770 lt_cv_sys_max_cmd_len=8192;
7771 ;;
7772
7773 amigaos*)
7774 # On AmigaOS with pdksh, this test takes hours, literally.
7775 # So we just punt and use a minimum line length of 8192.
7776 lt_cv_sys_max_cmd_len=8192;
7777 ;;
7778
7779 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7780 # This has been around since 386BSD, at least. Likely further.
7781 if test -x /sbin/sysctl; then
7782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7783 elif test -x /usr/sbin/sysctl; then
7784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7785 else
7786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7787 fi
7788 # And add a safety zone
7789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7791 ;;
7792
7793 interix*)
7794 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7795 lt_cv_sys_max_cmd_len=196608
7796 ;;
7797
7798 os2*)
7799 # The test takes a long time on OS/2.
7800 lt_cv_sys_max_cmd_len=8192
7801 ;;
7802
7803 osf*)
7804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7806 # nice to cause kernel panics so lets avoid the loop below.
7807 # First set a reasonable default.
7808 lt_cv_sys_max_cmd_len=16384
7809 #
7810 if test -x /sbin/sysconfig; then
7811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7812 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7813 esac
7814 fi
7815 ;;
7816 sco3.2v5*)
7817 lt_cv_sys_max_cmd_len=102400
7818 ;;
7819 sysv5* | sco5v6* | sysv4.2uw2*)
7820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7821 if test -n "$kargmax"; then
7822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7823 else
7824 lt_cv_sys_max_cmd_len=32768
7825 fi
7826 ;;
7827 *)
7828 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7829 if test -n "$lt_cv_sys_max_cmd_len" && \
7830 test undefined != "$lt_cv_sys_max_cmd_len"; then
7831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7833 else
7834 # Make teststring a little bigger before we do anything with it.
7835 # a 1K string should be a reasonable start.
7836 for i in 1 2 3 4 5 6 7 8; do
7837 teststring=$teststring$teststring
7838 done
7839 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7840 # If test is not a shell built-in, we'll probably end up computing a
7841 # maximum length that is only half of the actual maximum length, but
7842 # we can't tell.
7843 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7844 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7845 test 17 != "$i" # 1/2 MB should be enough
7846 do
7847 i=`expr $i + 1`
7848 teststring=$teststring$teststring
7849 done
7850 # Only check the string length outside the loop.
7851 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7852 teststring=
7853 # Add a significant safety factor because C++ compilers can tack on
7854 # massive amounts of additional arguments before passing them to the
7855 # linker. It appears as though 1/2 is a usable value.
7856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7857 fi
7858 ;;
7859 esac
7860
7861fi
7862
7863if test -n "$lt_cv_sys_max_cmd_len"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7865$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7868$as_echo "none" >&6; }
7869fi
7870max_cmd_len=$lt_cv_sys_max_cmd_len
7871
7872
7873
7874
7875
7876
7877: ${CP="cp -f"}
7878: ${MV="mv -f"}
7879: ${RM="rm -f"}
7880
7881if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7882 lt_unset=unset
7883else
7884 lt_unset=false
7885fi
7886
7887
7888
7889
7890
7891# test EBCDIC or ASCII
7892case `echo X|tr X '\101'` in
7893 A) # ASCII based system
7894 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7895 lt_SP2NL='tr \040 \012'
7896 lt_NL2SP='tr \015\012 \040\040'
7897 ;;
7898 *) # EBCDIC based system
7899 lt_SP2NL='tr \100 \n'
7900 lt_NL2SP='tr \r\n \100\100'
7901 ;;
7902esac
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7913$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7914if ${lt_cv_to_host_file_cmd+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916else
7917 case $host in
7918 *-*-mingw* )
7919 case $build in
7920 *-*-mingw* ) # actually msys
7921 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7922 ;;
7923 *-*-cygwin* )
7924 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7925 ;;
7926 * ) # otherwise, assume *nix
7927 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7928 ;;
7929 esac
7930 ;;
7931 *-*-cygwin* )
7932 case $build in
7933 *-*-mingw* ) # actually msys
7934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7935 ;;
7936 *-*-cygwin* )
7937 lt_cv_to_host_file_cmd=func_convert_file_noop
7938 ;;
7939 * ) # otherwise, assume *nix
7940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7941 ;;
7942 esac
7943 ;;
7944 * ) # unhandled hosts (and "normal" native builds)
7945 lt_cv_to_host_file_cmd=func_convert_file_noop
7946 ;;
7947esac
7948
7949fi
7950
7951to_host_file_cmd=$lt_cv_to_host_file_cmd
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7953$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7954
7955
7956
7957
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7960$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7961if ${lt_cv_to_tool_file_cmd+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 #assume ordinary cross tools, or native build.
7965lt_cv_to_tool_file_cmd=func_convert_file_noop
7966case $host in
7967 *-*-mingw* )
7968 case $build in
7969 *-*-mingw* ) # actually msys
7970 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7971 ;;
7972 esac
7973 ;;
7974esac
7975
7976fi
7977
7978to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7980$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7981
7982
7983
7984
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7987$as_echo_n "checking for $LD option to reload object files... " >&6; }
7988if ${lt_cv_ld_reload_flag+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 lt_cv_ld_reload_flag='-r'
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7994$as_echo "$lt_cv_ld_reload_flag" >&6; }
7995reload_flag=$lt_cv_ld_reload_flag
7996case $reload_flag in
7997"" | " "*) ;;
7998*) reload_flag=" $reload_flag" ;;
7999esac
8000reload_cmds='$LD$reload_flag -o $output$reload_objs'
8001case $host_os in
8002 cygwin* | mingw* | pw32* | cegcc*)
8003 if test yes != "$GCC"; then
8004 reload_cmds=false
8005 fi
8006 ;;
8007 darwin*)
8008 if test yes = "$GCC"; then
8009 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8010 else
8011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8012 fi
8013 ;;
8014esac
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8026set dummy ${ac_tool_prefix}objdump; ac_word=$2
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if ${ac_cv_prog_OBJDUMP+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031else
8032 if test -n "$OBJDUMP"; then
8033 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8034else
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046done
8047 done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052OBJDUMP=$ac_cv_prog_OBJDUMP
8053if test -n "$OBJDUMP"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8055$as_echo "$OBJDUMP" >&6; }
8056else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059fi
8060
8061
8062fi
8063if test -z "$ac_cv_prog_OBJDUMP"; then
8064 ac_ct_OBJDUMP=$OBJDUMP
8065 # Extract the first word of "objdump", so it can be a program name with args.
8066set dummy objdump; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 if test -n "$ac_ct_OBJDUMP"; then
8073 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087 done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8093if test -n "$ac_ct_OBJDUMP"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8095$as_echo "$ac_ct_OBJDUMP" >&6; }
8096else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101 if test "x$ac_ct_OBJDUMP" = x; then
8102 OBJDUMP="false"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105yes:)
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108ac_tool_warned=yes ;;
8109esac
8110 OBJDUMP=$ac_ct_OBJDUMP
8111 fi
8112else
8113 OBJDUMP="$ac_cv_prog_OBJDUMP"
8114fi
8115
8116test -z "$OBJDUMP" && OBJDUMP=objdump
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8127$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8128if ${lt_cv_deplibs_check_method+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130else
8131 lt_cv_file_magic_cmd='$MAGIC_CMD'
8132lt_cv_file_magic_test_file=
8133lt_cv_deplibs_check_method='unknown'
8134# Need to set the preceding variable on all platforms that support
8135# interlibrary dependencies.
8136# 'none' -- dependencies not supported.
8137# 'unknown' -- same as none, but documents that we really don't know.
8138# 'pass_all' -- all dependencies passed with no checks.
8139# 'test_compile' -- check by making test program.
8140# 'file_magic [[regex]]' -- check by looking for files in library path
8141# that responds to the $file_magic_cmd with a given extended regex.
8142# If you have 'file' or equivalent on your system and you're not sure
8143# whether 'pass_all' will *always* work, you probably want this one.
8144
8145case $host_os in
8146aix[4-9]*)
8147 lt_cv_deplibs_check_method=pass_all
8148 ;;
8149
8150beos*)
8151 lt_cv_deplibs_check_method=pass_all
8152 ;;
8153
8154bsdi[45]*)
8155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8156 lt_cv_file_magic_cmd='/usr/bin/file -L'
8157 lt_cv_file_magic_test_file=/shlib/libc.so
8158 ;;
8159
8160cygwin*)
8161 # func_win32_libid is a shell function defined in ltmain.sh
8162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8163 lt_cv_file_magic_cmd='func_win32_libid'
8164 ;;
8165
8166mingw* | pw32*)
8167 # Base MSYS/MinGW do not provide the 'file' command needed by
8168 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8169 # unless we find 'file', for example because we are cross-compiling.
8170 if ( file / ) >/dev/null 2>&1; then
8171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8172 lt_cv_file_magic_cmd='func_win32_libid'
8173 else
8174 # Keep this pattern in sync with the one in func_win32_libid.
8175 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8176 lt_cv_file_magic_cmd='$OBJDUMP -f'
8177 fi
8178 ;;
8179
8180cegcc*)
8181 # use the weaker test based on 'objdump'. See mingw*.
8182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8183 lt_cv_file_magic_cmd='$OBJDUMP -f'
8184 ;;
8185
8186darwin* | rhapsody*)
8187 lt_cv_deplibs_check_method=pass_all
8188 ;;
8189
8190freebsd* | dragonfly*)
8191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8192 case $host_cpu in
8193 i*86 )
8194 # Not sure whether the presence of OpenBSD here was a mistake.
8195 # Let's accept both of them until this is cleared up.
8196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8197 lt_cv_file_magic_cmd=/usr/bin/file
8198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8199 ;;
8200 esac
8201 else
8202 lt_cv_deplibs_check_method=pass_all
8203 fi
8204 ;;
8205
8206haiku*)
8207 lt_cv_deplibs_check_method=pass_all
8208 ;;
8209
8210hpux10.20* | hpux11*)
8211 lt_cv_file_magic_cmd=/usr/bin/file
8212 case $host_cpu in
8213 ia64*)
8214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8216 ;;
8217 hppa*64*)
8218 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]'
8219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8220 ;;
8221 *)
8222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8224 ;;
8225 esac
8226 ;;
8227
8228interix[3-9]*)
8229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8231 ;;
8232
8233irix5* | irix6* | nonstopux*)
8234 case $LD in
8235 *-32|*"-32 ") libmagic=32-bit;;
8236 *-n32|*"-n32 ") libmagic=N32;;
8237 *-64|*"-64 ") libmagic=64-bit;;
8238 *) libmagic=never-match;;
8239 esac
8240 lt_cv_deplibs_check_method=pass_all
8241 ;;
8242
8243# This must be glibc/ELF.
8244linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8245 lt_cv_deplibs_check_method=pass_all
8246 ;;
8247
8248netbsd*)
8249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8251 else
8252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8253 fi
8254 ;;
8255
8256newos6*)
8257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8258 lt_cv_file_magic_cmd=/usr/bin/file
8259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8260 ;;
8261
8262*nto* | *qnx*)
8263 lt_cv_deplibs_check_method=pass_all
8264 ;;
8265
8266openbsd* | bitrig*)
8267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8269 else
8270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8271 fi
8272 ;;
8273
8274osf3* | osf4* | osf5*)
8275 lt_cv_deplibs_check_method=pass_all
8276 ;;
8277
8278rdos*)
8279 lt_cv_deplibs_check_method=pass_all
8280 ;;
8281
8282solaris*)
8283 lt_cv_deplibs_check_method=pass_all
8284 ;;
8285
8286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8287 lt_cv_deplibs_check_method=pass_all
8288 ;;
8289
8290sysv4 | sysv4.3*)
8291 case $host_vendor in
8292 motorola)
8293 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]'
8294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8295 ;;
8296 ncr)
8297 lt_cv_deplibs_check_method=pass_all
8298 ;;
8299 sequent)
8300 lt_cv_file_magic_cmd='/bin/file'
8301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8302 ;;
8303 sni)
8304 lt_cv_file_magic_cmd='/bin/file'
8305 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8306 lt_cv_file_magic_test_file=/lib/libc.so
8307 ;;
8308 siemens)
8309 lt_cv_deplibs_check_method=pass_all
8310 ;;
8311 pc)
8312 lt_cv_deplibs_check_method=pass_all
8313 ;;
8314 esac
8315 ;;
8316
8317tpf*)
8318 lt_cv_deplibs_check_method=pass_all
8319 ;;
8320os2*)
8321 lt_cv_deplibs_check_method=pass_all
8322 ;;
8323esac
8324
8325fi
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8327$as_echo "$lt_cv_deplibs_check_method" >&6; }
8328
8329file_magic_glob=
8330want_nocaseglob=no
8331if test "$build" = "$host"; then
8332 case $host_os in
8333 mingw* | pw32*)
8334 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8335 want_nocaseglob=yes
8336 else
8337 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8338 fi
8339 ;;
8340 esac
8341fi
8342
8343file_magic_cmd=$lt_cv_file_magic_cmd
8344deplibs_check_method=$lt_cv_deplibs_check_method
8345test -z "$deplibs_check_method" && deplibs_check_method=unknown
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368if test -n "$ac_tool_prefix"; then
8369 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8370set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if ${ac_cv_prog_DLLTOOL+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375else
8376 if test -n "$DLLTOOL"; then
8377 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8378else
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390done
8391 done
8392IFS=$as_save_IFS
8393
8394fi
8395fi
8396DLLTOOL=$ac_cv_prog_DLLTOOL
8397if test -n "$DLLTOOL"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8399$as_echo "$DLLTOOL" >&6; }
8400else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
8403fi
8404
8405
8406fi
8407if test -z "$ac_cv_prog_DLLTOOL"; then
8408 ac_ct_DLLTOOL=$DLLTOOL
8409 # Extract the first word of "dlltool", so it can be a program name with args.
8410set dummy dlltool; ac_word=$2
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415else
8416 if test -n "$ac_ct_DLLTOOL"; then
8417 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431 done
8432IFS=$as_save_IFS
8433
8434fi
8435fi
8436ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8437if test -n "$ac_ct_DLLTOOL"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8439$as_echo "$ac_ct_DLLTOOL" >&6; }
8440else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
8443fi
8444
8445 if test "x$ac_ct_DLLTOOL" = x; then
8446 DLLTOOL="false"
8447 else
8448 case $cross_compiling:$ac_tool_warned in
8449yes:)
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8452ac_tool_warned=yes ;;
8453esac
8454 DLLTOOL=$ac_ct_DLLTOOL
8455 fi
8456else
8457 DLLTOOL="$ac_cv_prog_DLLTOOL"
8458fi
8459
8460test -z "$DLLTOOL" && DLLTOOL=dlltool
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8472$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8473if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475else
8476 lt_cv_sharedlib_from_linklib_cmd='unknown'
8477
8478case $host_os in
8479cygwin* | mingw* | pw32* | cegcc*)
8480 # two different shell functions defined in ltmain.sh;
8481 # decide which one to use based on capabilities of $DLLTOOL
8482 case `$DLLTOOL --help 2>&1` in
8483 *--identify-strict*)
8484 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8485 ;;
8486 *)
8487 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8488 ;;
8489 esac
8490 ;;
8491*)
8492 # fallback: assume linklib IS sharedlib
8493 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8494 ;;
8495esac
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8499$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8500sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8501test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8502
8503
8504
8505
8506
8507
8508
8509if test -n "$ac_tool_prefix"; then
8510 for ac_prog in ar
8511 do
8512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
8516if ${ac_cv_prog_AR+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518else
8519 if test -n "$AR"; then
8520 ac_cv_prog_AR="$AR" # Let the user override the test.
8521else
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533done
8534 done
8535IFS=$as_save_IFS
8536
8537fi
8538fi
8539AR=$ac_cv_prog_AR
8540if test -n "$AR"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8542$as_echo "$AR" >&6; }
8543else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
8546fi
8547
8548
8549 test -n "$AR" && break
8550 done
8551fi
8552if test -z "$AR"; then
8553 ac_ct_AR=$AR
8554 for ac_prog in ar
8555do
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557set dummy $ac_prog; ac_word=$2
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if ${ac_cv_prog_ac_ct_AR+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562else
8563 if test -n "$ac_ct_AR"; then
8564 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8565else
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_ac_ct_AR="$ac_prog"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8576 fi
8577done
8578 done
8579IFS=$as_save_IFS
8580
8581fi
8582fi
8583ac_ct_AR=$ac_cv_prog_ac_ct_AR
8584if test -n "$ac_ct_AR"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8586$as_echo "$ac_ct_AR" >&6; }
8587else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593 test -n "$ac_ct_AR" && break
8594done
8595
8596 if test "x$ac_ct_AR" = x; then
8597 AR="false"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600yes:)
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603ac_tool_warned=yes ;;
8604esac
8605 AR=$ac_ct_AR
8606 fi
8607fi
8608
8609: ${AR=ar}
8610: ${AR_FLAGS=cru}
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8623$as_echo_n "checking for archiver @FILE support... " >&6; }
8624if ${lt_cv_ar_at_file+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626else
8627 lt_cv_ar_at_file=no
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h. */
8630
8631int
8632main ()
8633{
8634
8635 ;
8636 return 0;
8637}
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"; then :
8640 echo conftest.$ac_objext > conftest.lst
8641 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8643 (eval $lt_ar_try) 2>&5
8644 ac_status=$?
8645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8646 test $ac_status = 0; }
8647 if test 0 -eq "$ac_status"; then
8648 # Ensure the archiver fails upon bogus file names.
8649 rm -f conftest.$ac_objext libconftest.a
8650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8651 (eval $lt_ar_try) 2>&5
8652 ac_status=$?
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; }
8655 if test 0 -ne "$ac_status"; then
8656 lt_cv_ar_at_file=@
8657 fi
8658 fi
8659 rm -f conftest.* libconftest.a
8660
8661fi
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663
8664fi
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8666$as_echo "$lt_cv_ar_at_file" >&6; }
8667
8668if test no = "$lt_cv_ar_at_file"; then
8669 archiver_list_spec=
8670else
8671 archiver_list_spec=$lt_cv_ar_at_file
8672fi
8673
8674
8675
8676
8677
8678
8679
8680if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8682set dummy ${ac_tool_prefix}strip; ac_word=$2
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684$as_echo_n "checking for $ac_word... " >&6; }
8685if ${ac_cv_prog_STRIP+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687else
8688 if test -n "$STRIP"; then
8689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8690else
8691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702done
8703 done
8704IFS=$as_save_IFS
8705
8706fi
8707fi
8708STRIP=$ac_cv_prog_STRIP
8709if test -n "$STRIP"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8711$as_echo "$STRIP" >&6; }
8712else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714$as_echo "no" >&6; }
8715fi
8716
8717
8718fi
8719if test -z "$ac_cv_prog_STRIP"; then
8720 ac_ct_STRIP=$STRIP
8721 # Extract the first word of "strip", so it can be a program name with args.
8722set dummy strip; ac_word=$2
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
8725if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727else
8728 if test -n "$ac_ct_STRIP"; then
8729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8730else
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_STRIP="strip"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742done
8743 done
8744IFS=$as_save_IFS
8745
8746fi
8747fi
8748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8749if test -n "$ac_ct_STRIP"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8751$as_echo "$ac_ct_STRIP" >&6; }
8752else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
8755fi
8756
8757 if test "x$ac_ct_STRIP" = x; then
8758 STRIP=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761yes:)
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764ac_tool_warned=yes ;;
8765esac
8766 STRIP=$ac_ct_STRIP
8767 fi
8768else
8769 STRIP="$ac_cv_prog_STRIP"
8770fi
8771
8772test -z "$STRIP" && STRIP=:
8773
8774
8775
8776
8777
8778
8779if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783$as_echo_n "checking for $ac_word... " >&6; }
8784if ${ac_cv_prog_RANLIB+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786else
8787 if test -n "$RANLIB"; then
8788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8789else
8790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8800 fi
8801done
8802 done
8803IFS=$as_save_IFS
8804
8805fi
8806fi
8807RANLIB=$ac_cv_prog_RANLIB
8808if test -n "$RANLIB"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8810$as_echo "$RANLIB" >&6; }
8811else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813$as_echo "no" >&6; }
8814fi
8815
8816
8817fi
8818if test -z "$ac_cv_prog_RANLIB"; then
8819 ac_ct_RANLIB=$RANLIB
8820 # Extract the first word of "ranlib", so it can be a program name with args.
8821set dummy ranlib; ac_word=$2
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823$as_echo_n "checking for $ac_word... " >&6; }
8824if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826else
8827 if test -n "$ac_ct_RANLIB"; then
8828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8829else
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_ac_ct_RANLIB="ranlib"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841done
8842 done
8843IFS=$as_save_IFS
8844
8845fi
8846fi
8847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8848if test -n "$ac_ct_RANLIB"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8850$as_echo "$ac_ct_RANLIB" >&6; }
8851else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853$as_echo "no" >&6; }
8854fi
8855
8856 if test "x$ac_ct_RANLIB" = x; then
8857 RANLIB=":"
8858 else
8859 case $cross_compiling:$ac_tool_warned in
8860yes:)
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863ac_tool_warned=yes ;;
8864esac
8865 RANLIB=$ac_ct_RANLIB
8866 fi
8867else
8868 RANLIB="$ac_cv_prog_RANLIB"
8869fi
8870
8871test -z "$RANLIB" && RANLIB=:
8872
8873
8874
8875
8876
8877
8878# Determine commands to create old-style static archives.
8879old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8880old_postinstall_cmds='chmod 644 $oldlib'
8881old_postuninstall_cmds=
8882
8883if test -n "$RANLIB"; then
8884 case $host_os in
8885 bitrig* | openbsd*)
8886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8887 ;;
8888 *)
8889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8890 ;;
8891 esac
8892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8893fi
8894
8895case $host_os in
8896 darwin*)
8897 lock_old_archive_extraction=yes ;;
8898 *)
8899 lock_old_archive_extraction=no ;;
8900esac
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940# If no C compiler was specified, use CC.
8941LTCC=${LTCC-"$CC"}
8942
8943# If no C compiler flags were specified, use CFLAGS.
8944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8945
8946# Allow CC to be a program name with arguments.
8947compiler=$CC
8948
8949
8950# Check for command to grab the raw symbol name followed by C symbol from nm.
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8952$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8953if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955else
8956
8957# These are sane defaults that work on at least a few old systems.
8958# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8959
8960# Character class describing NM global symbol codes.
8961symcode='[BCDEGRST]'
8962
8963# Regexp to match symbols that can be accessed directly from C.
8964sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8965
8966# Define system-specific variables.
8967case $host_os in
8968aix*)
8969 symcode='[BCDT]'
8970 ;;
8971cygwin* | mingw* | pw32* | cegcc*)
8972 symcode='[ABCDGISTW]'
8973 ;;
8974hpux*)
8975 if test ia64 = "$host_cpu"; then
8976 symcode='[ABCDEGRST]'
8977 fi
8978 ;;
8979irix* | nonstopux*)
8980 symcode='[BCDEGRST]'
8981 ;;
8982osf*)
8983 symcode='[BCDEGQRST]'
8984 ;;
8985solaris*)
8986 symcode='[BDRT]'
8987 ;;
8988sco3.2v5*)
8989 symcode='[DT]'
8990 ;;
8991sysv4.2uw2*)
8992 symcode='[DT]'
8993 ;;
8994sysv5* | sco5v6* | unixware* | OpenUNIX*)
8995 symcode='[ABDT]'
8996 ;;
8997sysv4)
8998 symcode='[DFNSTU]'
8999 ;;
9000esac
9001
9002# If we're using GNU nm, then use its standard symbol codes.
9003case `$NM -V 2>&1` in
9004*GNU* | *'with BFD'*)
9005 symcode='[ABCDGIRSTW]' ;;
9006esac
9007
9008if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9009 # Gets list of data symbols to import.
9010 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9011 # Adjust the below global symbol transforms to fixup imported variables.
9012 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9013 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9014 lt_c_name_lib_hook="\
9015 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9016 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9017else
9018 # Disable hooks by default.
9019 lt_cv_sys_global_symbol_to_import=
9020 lt_cdecl_hook=
9021 lt_c_name_hook=
9022 lt_c_name_lib_hook=
9023fi
9024
9025# Transform an extracted symbol line into a proper C declaration.
9026# Some systems (esp. on ia64) link data and code symbols differently,
9027# so use this general approach.
9028lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9029$lt_cdecl_hook\
9030" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9031" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9032
9033# Transform an extracted symbol line into symbol name and symbol address
9034lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9035$lt_c_name_hook\
9036" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9037" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9038
9039# Transform an extracted symbol line into symbol name with lib prefix and
9040# symbol address.
9041lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9042$lt_c_name_lib_hook\
9043" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9044" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9045" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9046
9047# Handle CRLF in mingw tool chain
9048opt_cr=
9049case $build_os in
9050mingw*)
9051 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9052 ;;
9053esac
9054
9055# Try without a prefix underscore, then with it.
9056for ac_symprfx in "" "_"; do
9057
9058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9059 symxfrm="\\1 $ac_symprfx\\2 \\2"
9060
9061 # Write the raw and C identifiers.
9062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9063 # Fake it for dumpbin and say T for any non-static function,
9064 # D for any global variable and I for any imported variable.
9065 # Also find C++ and __fastcall symbols from MSVC++,
9066 # which start with @ or ?.
9067 lt_cv_sys_global_symbol_pipe="$AWK '"\
9068" {last_section=section; section=\$ 3};"\
9069" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9070" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9071" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9072" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9073" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9074" \$ 0!~/External *\|/{next};"\
9075" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9076" {if(hide[section]) next};"\
9077" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9078" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9079" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9080" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9081" ' prfx=^$ac_symprfx"
9082 else
9083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9084 fi
9085 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9086
9087 # Check to see that the pipe works correctly.
9088 pipe_works=no
9089
9090 rm -rf conftest*
9091 cat > conftest.$ac_ext <<_LT_EOF
9092#ifdef __cplusplus
9093extern "C" {
9094#endif
9095char nm_test_var;
9096void nm_test_func(void);
9097void nm_test_func(void){}
9098#ifdef __cplusplus
9099}
9100#endif
9101int main(){nm_test_var='a';nm_test_func();return(0);}
9102_LT_EOF
9103
9104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9105 (eval $ac_compile) 2>&5
9106 ac_status=$?
9107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9108 test $ac_status = 0; }; then
9109 # Now try to grab the symbols.
9110 nlist=conftest.nm
9111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9112 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9113 ac_status=$?
9114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9115 test $ac_status = 0; } && test -s "$nlist"; then
9116 # Try sorting and uniquifying the output.
9117 if sort "$nlist" | uniq > "$nlist"T; then
9118 mv -f "$nlist"T "$nlist"
9119 else
9120 rm -f "$nlist"T
9121 fi
9122
9123 # Make sure that we snagged all the symbols we need.
9124 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9125 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9126 cat <<_LT_EOF > conftest.$ac_ext
9127/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9128#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9129/* DATA imports from DLLs on WIN32 can't be const, because runtime
9130 relocations are performed -- see ld's documentation on pseudo-relocs. */
9131# define LT_DLSYM_CONST
9132#elif defined __osf__
9133/* This system does not cope well with relocations in const data. */
9134# define LT_DLSYM_CONST
9135#else
9136# define LT_DLSYM_CONST const
9137#endif
9138
9139#ifdef __cplusplus
9140extern "C" {
9141#endif
9142
9143_LT_EOF
9144 # Now generate the symbol file.
9145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9146
9147 cat <<_LT_EOF >> conftest.$ac_ext
9148
9149/* The mapping between symbol names and symbols. */
9150LT_DLSYM_CONST struct {
9151 const char *name;
9152 void *address;
9153}
9154lt__PROGRAM__LTX_preloaded_symbols[] =
9155{
9156 { "@PROGRAM@", (void *) 0 },
9157_LT_EOF
9158 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9159 cat <<\_LT_EOF >> conftest.$ac_ext
9160 {0, (void *) 0}
9161};
9162
9163/* This works around a problem in FreeBSD linker */
9164#ifdef FREEBSD_WORKAROUND
9165static const void *lt_preloaded_setup() {
9166 return lt__PROGRAM__LTX_preloaded_symbols;
9167}
9168#endif
9169
9170#ifdef __cplusplus
9171}
9172#endif
9173_LT_EOF
9174 # Now try linking the two files.
9175 mv conftest.$ac_objext conftstm.$ac_objext
9176 lt_globsym_save_LIBS=$LIBS
9177 lt_globsym_save_CFLAGS=$CFLAGS
9178 LIBS=conftstm.$ac_objext
9179 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9181 (eval $ac_link) 2>&5
9182 ac_status=$?
9183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9184 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9185 pipe_works=yes
9186 fi
9187 LIBS=$lt_globsym_save_LIBS
9188 CFLAGS=$lt_globsym_save_CFLAGS
9189 else
9190 echo "cannot find nm_test_func in $nlist" >&5
9191 fi
9192 else
9193 echo "cannot find nm_test_var in $nlist" >&5
9194 fi
9195 else
9196 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9197 fi
9198 else
9199 echo "$progname: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 fi
9202 rm -rf conftest* conftst*
9203
9204 # Do not use the global_symbol_pipe unless it works.
9205 if test yes = "$pipe_works"; then
9206 break
9207 else
9208 lt_cv_sys_global_symbol_pipe=
9209 fi
9210done
9211
9212fi
9213
9214if test -z "$lt_cv_sys_global_symbol_pipe"; then
9215 lt_cv_sys_global_symbol_to_cdecl=
9216fi
9217if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9219$as_echo "failed" >&6; }
9220else
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9222$as_echo "ok" >&6; }
9223fi
9224
9225# Response file support.
9226if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9227 nm_file_list_spec='@'
9228elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9229 nm_file_list_spec='@'
9230fi
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9269$as_echo_n "checking for sysroot... " >&6; }
9270
9271# Check whether --with-sysroot was given.
9272if test "${with_sysroot+set}" = set; then :
9273 withval=$with_sysroot;
9274else
9275 with_sysroot=no
9276fi
9277
9278
9279lt_sysroot=
9280case $with_sysroot in #(
9281 yes)
9282 if test yes = "$GCC"; then
9283 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9284 fi
9285 ;; #(
9286 /*)
9287 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9288 ;; #(
9289 no|'')
9290 ;; #(
9291 *)
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9293$as_echo "$with_sysroot" >&6; }
9294 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9295 ;;
9296esac
9297
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9299$as_echo "${lt_sysroot:-no}" >&6; }
9300
9301
9302
9303
9304
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9306$as_echo_n "checking for a working dd... " >&6; }
9307if ${ac_cv_path_lt_DD+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309else
9310 printf 0123456789abcdef0123456789abcdef >conftest.i
9311cat conftest.i conftest.i >conftest2.i
9312: ${lt_DD:=$DD}
9313if test -z "$lt_DD"; then
9314 ac_path_lt_DD_found=false
9315 # Loop through the user's path and test for each of PROGNAME-LIST
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317for as_dir in $PATH
9318do
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_prog in dd; do
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9324 as_fn_executable_p "$ac_path_lt_DD" || continue
9325if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9326 cmp -s conftest.i conftest.out \
9327 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9328fi
9329 $ac_path_lt_DD_found && break 3
9330 done
9331 done
9332 done
9333IFS=$as_save_IFS
9334 if test -z "$ac_cv_path_lt_DD"; then
9335 :
9336 fi
9337else
9338 ac_cv_path_lt_DD=$lt_DD
9339fi
9340
9341rm -f conftest.i conftest2.i conftest.out
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9344$as_echo "$ac_cv_path_lt_DD" >&6; }
9345
9346
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9348$as_echo_n "checking how to truncate binary pipes... " >&6; }
9349if ${lt_cv_truncate_bin+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351else
9352 printf 0123456789abcdef0123456789abcdef >conftest.i
9353cat conftest.i conftest.i >conftest2.i
9354lt_cv_truncate_bin=
9355if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9356 cmp -s conftest.i conftest.out \
9357 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9358fi
9359rm -f conftest.i conftest2.i conftest.out
9360test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9363$as_echo "$lt_cv_truncate_bin" >&6; }
9364
9365
9366
9367
9368
9369
9370
9371# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9372func_cc_basename ()
9373{
9374 for cc_temp in $*""; do
9375 case $cc_temp in
9376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9378 \-*) ;;
9379 *) break;;
9380 esac
9381 done
9382 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9383}
9384
9385# Check whether --enable-libtool-lock was given.
9386if test "${enable_libtool_lock+set}" = set; then :
9387 enableval=$enable_libtool_lock;
9388fi
9389
9390test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9391
9392# Some flags need to be propagated to the compiler or linker for good
9393# libtool support.
9394case $host in
9395ia64-*-hpux*)
9396 # Find out what ABI is being produced by ac_compile, and set mode
9397 # options accordingly.
9398 echo 'int i;' > conftest.$ac_ext
9399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9400 (eval $ac_compile) 2>&5
9401 ac_status=$?
9402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9403 test $ac_status = 0; }; then
9404 case `/usr/bin/file conftest.$ac_objext` in
9405 *ELF-32*)
9406 HPUX_IA64_MODE=32
9407 ;;
9408 *ELF-64*)
9409 HPUX_IA64_MODE=64
9410 ;;
9411 esac
9412 fi
9413 rm -rf conftest*
9414 ;;
9415*-*-irix6*)
9416 # Find out what ABI is being produced by ac_compile, and set linker
9417 # options accordingly.
9418 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9420 (eval $ac_compile) 2>&5
9421 ac_status=$?
9422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423 test $ac_status = 0; }; then
9424 if test yes = "$lt_cv_prog_gnu_ld"; then
9425 case `/usr/bin/file conftest.$ac_objext` in
9426 *32-bit*)
9427 LD="${LD-ld} -melf32bsmip"
9428 ;;
9429 *N32*)
9430 LD="${LD-ld} -melf32bmipn32"
9431 ;;
9432 *64-bit*)
9433 LD="${LD-ld} -melf64bmip"
9434 ;;
9435 esac
9436 else
9437 case `/usr/bin/file conftest.$ac_objext` in
9438 *32-bit*)
9439 LD="${LD-ld} -32"
9440 ;;
9441 *N32*)
9442 LD="${LD-ld} -n32"
9443 ;;
9444 *64-bit*)
9445 LD="${LD-ld} -64"
9446 ;;
9447 esac
9448 fi
9449 fi
9450 rm -rf conftest*
9451 ;;
9452
9453mips64*-*linux*)
9454 # Find out what ABI is being produced by ac_compile, and set linker
9455 # options accordingly.
9456 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9458 (eval $ac_compile) 2>&5
9459 ac_status=$?
9460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9461 test $ac_status = 0; }; then
9462 emul=elf
9463 case `/usr/bin/file conftest.$ac_objext` in
9464 *32-bit*)
9465 emul="${emul}32"
9466 ;;
9467 *64-bit*)
9468 emul="${emul}64"
9469 ;;
9470 esac
9471 case `/usr/bin/file conftest.$ac_objext` in
9472 *MSB*)
9473 emul="${emul}btsmip"
9474 ;;
9475 *LSB*)
9476 emul="${emul}ltsmip"
9477 ;;
9478 esac
9479 case `/usr/bin/file conftest.$ac_objext` in
9480 *N32*)
9481 emul="${emul}n32"
9482 ;;
9483 esac
9484 LD="${LD-ld} -m $emul"
9485 fi
9486 rm -rf conftest*
9487 ;;
9488
9489x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9490s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9491 # Find out what ABI is being produced by ac_compile, and set linker
9492 # options accordingly. Note that the listed cases only cover the
9493 # situations where additional linker options are needed (such as when
9494 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9495 # vice versa); the common cases where no linker options are needed do
9496 # not appear in the list.
9497 echo 'int i;' > conftest.$ac_ext
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }; then
9503 case `/usr/bin/file conftest.o` in
9504 *32-bit*)
9505 case $host in
9506 x86_64-*kfreebsd*-gnu)
9507 LD="${LD-ld} -m elf_i386_fbsd"
9508 ;;
9509 x86_64-*linux*)
9510 case `/usr/bin/file conftest.o` in
9511 *x86-64*)
9512 LD="${LD-ld} -m elf32_x86_64"
9513 ;;
9514 *)
9515 LD="${LD-ld} -m elf_i386"
9516 ;;
9517 esac
9518 ;;
9519 powerpc64le-*linux*)
9520 LD="${LD-ld} -m elf32lppclinux"
9521 ;;
9522 powerpc64-*linux*)
9523 LD="${LD-ld} -m elf32ppclinux"
9524 ;;
9525 s390x-*linux*)
9526 LD="${LD-ld} -m elf_s390"
9527 ;;
9528 sparc64-*linux*)
9529 LD="${LD-ld} -m elf32_sparc"
9530 ;;
9531 esac
9532 ;;
9533 *64-bit*)
9534 case $host in
9535 x86_64-*kfreebsd*-gnu)
9536 LD="${LD-ld} -m elf_x86_64_fbsd"
9537 ;;
9538 x86_64-*linux*)
9539 LD="${LD-ld} -m elf_x86_64"
9540 ;;
9541 powerpcle-*linux*)
9542 LD="${LD-ld} -m elf64lppc"
9543 ;;
9544 powerpc-*linux*)
9545 LD="${LD-ld} -m elf64ppc"
9546 ;;
9547 s390*-*linux*|s390*-*tpf*)
9548 LD="${LD-ld} -m elf64_s390"
9549 ;;
9550 sparc*-*linux*)
9551 LD="${LD-ld} -m elf64_sparc"
9552 ;;
9553 esac
9554 ;;
9555 esac
9556 fi
9557 rm -rf conftest*
9558 ;;
9559
9560*-*-sco3.2v5*)
9561 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9562 SAVE_CFLAGS=$CFLAGS
9563 CFLAGS="$CFLAGS -belf"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9565$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9566if ${lt_cv_cc_needs_belf+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568else
9569 ac_ext=c
9570ac_cpp='$CPP $CPPFLAGS'
9571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576/* end confdefs.h. */
9577
9578int
9579main ()
9580{
9581
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586if ac_fn_c_try_link "$LINENO"; then :
9587 lt_cv_cc_needs_belf=yes
9588else
9589 lt_cv_cc_needs_belf=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 ac_ext=c
9594ac_cpp='$CPP $CPPFLAGS'
9595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597ac_compiler_gnu=$ac_cv_c_compiler_gnu
9598
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9601$as_echo "$lt_cv_cc_needs_belf" >&6; }
9602 if test yes != "$lt_cv_cc_needs_belf"; then
9603 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9604 CFLAGS=$SAVE_CFLAGS
9605 fi
9606 ;;
9607*-*solaris*)
9608 # Find out what ABI is being produced by ac_compile, and set linker
9609 # options accordingly.
9610 echo 'int i;' > conftest.$ac_ext
9611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9612 (eval $ac_compile) 2>&5
9613 ac_status=$?
9614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; }; then
9616 case `/usr/bin/file conftest.o` in
9617 *64-bit*)
9618 case $lt_cv_prog_gnu_ld in
9619 yes*)
9620 case $host in
9621 i?86-*-solaris*|x86_64-*-solaris*)
9622 LD="${LD-ld} -m elf_x86_64"
9623 ;;
9624 sparc*-*-solaris*)
9625 LD="${LD-ld} -m elf64_sparc"
9626 ;;
9627 esac
9628 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9629 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9630 LD=${LD-ld}_sol2
9631 fi
9632 ;;
9633 *)
9634 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9635 LD="${LD-ld} -64"
9636 fi
9637 ;;
9638 esac
9639 ;;
9640 esac
9641 fi
9642 rm -rf conftest*
9643 ;;
9644esac
9645
9646need_locks=$enable_libtool_lock
9647
9648if test -n "$ac_tool_prefix"; then
9649 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9650set dummy ${ac_tool_prefix}mt; ac_word=$2
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652$as_echo_n "checking for $ac_word... " >&6; }
9653if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655else
9656 if test -n "$MANIFEST_TOOL"; then
9657 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670done
9671 done
9672IFS=$as_save_IFS
9673
9674fi
9675fi
9676MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9677if test -n "$MANIFEST_TOOL"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9679$as_echo "$MANIFEST_TOOL" >&6; }
9680else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682$as_echo "no" >&6; }
9683fi
9684
9685
9686fi
9687if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9688 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9689 # Extract the first word of "mt", so it can be a program name with args.
9690set dummy mt; ac_word=$2
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
9693if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695else
9696 if test -n "$ac_ct_MANIFEST_TOOL"; then
9697 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711 done
9712IFS=$as_save_IFS
9713
9714fi
9715fi
9716ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9717if test -n "$ac_ct_MANIFEST_TOOL"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9719$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9720else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9723fi
9724
9725 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9726 MANIFEST_TOOL=":"
9727 else
9728 case $cross_compiling:$ac_tool_warned in
9729yes:)
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9732ac_tool_warned=yes ;;
9733esac
9734 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9735 fi
9736else
9737 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9738fi
9739
9740test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9742$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9743if ${lt_cv_path_mainfest_tool+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745else
9746 lt_cv_path_mainfest_tool=no
9747 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9748 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9749 cat conftest.err >&5
9750 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9751 lt_cv_path_mainfest_tool=yes
9752 fi
9753 rm -rf conftest*
9754fi
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9756$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9757if test yes != "$lt_cv_path_mainfest_tool"; then
9758 MANIFEST_TOOL=:
9759fi
9760
9761
9762
9763
9764
9765
9766 case $host_os in
9767 rhapsody* | darwin*)
9768 if test -n "$ac_tool_prefix"; then
9769 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9770set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772$as_echo_n "checking for $ac_word... " >&6; }
9773if ${ac_cv_prog_DSYMUTIL+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775else
9776 if test -n "$DSYMUTIL"; then
9777 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9778else
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791 done
9792IFS=$as_save_IFS
9793
9794fi
9795fi
9796DSYMUTIL=$ac_cv_prog_DSYMUTIL
9797if test -n "$DSYMUTIL"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9799$as_echo "$DSYMUTIL" >&6; }
9800else
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804
9805
9806fi
9807if test -z "$ac_cv_prog_DSYMUTIL"; then
9808 ac_ct_DSYMUTIL=$DSYMUTIL
9809 # Extract the first word of "dsymutil", so it can be a program name with args.
9810set dummy dsymutil; ac_word=$2
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812$as_echo_n "checking for $ac_word... " >&6; }
9813if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815else
9816 if test -n "$ac_ct_DSYMUTIL"; then
9817 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9818else
9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820for as_dir in $PATH
9821do
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9826 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9829 fi
9830done
9831 done
9832IFS=$as_save_IFS
9833
9834fi
9835fi
9836ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9837if test -n "$ac_ct_DSYMUTIL"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9839$as_echo "$ac_ct_DSYMUTIL" >&6; }
9840else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844
9845 if test "x$ac_ct_DSYMUTIL" = x; then
9846 DSYMUTIL=":"
9847 else
9848 case $cross_compiling:$ac_tool_warned in
9849yes:)
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9852ac_tool_warned=yes ;;
9853esac
9854 DSYMUTIL=$ac_ct_DSYMUTIL
9855 fi
9856else
9857 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9858fi
9859
9860 if test -n "$ac_tool_prefix"; then
9861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9862set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if ${ac_cv_prog_NMEDIT+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867else
9868 if test -n "$NMEDIT"; then
9869 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9881 fi
9882done
9883 done
9884IFS=$as_save_IFS
9885
9886fi
9887fi
9888NMEDIT=$ac_cv_prog_NMEDIT
9889if test -n "$NMEDIT"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9891$as_echo "$NMEDIT" >&6; }
9892else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
9895fi
9896
9897
9898fi
9899if test -z "$ac_cv_prog_NMEDIT"; then
9900 ac_ct_NMEDIT=$NMEDIT
9901 # Extract the first word of "nmedit", so it can be a program name with args.
9902set dummy nmedit; ac_word=$2
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904$as_echo_n "checking for $ac_word... " >&6; }
9905if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907else
9908 if test -n "$ac_ct_NMEDIT"; then
9909 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9910else
9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922done
9923 done
9924IFS=$as_save_IFS
9925
9926fi
9927fi
9928ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9929if test -n "$ac_ct_NMEDIT"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9931$as_echo "$ac_ct_NMEDIT" >&6; }
9932else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934$as_echo "no" >&6; }
9935fi
9936
9937 if test "x$ac_ct_NMEDIT" = x; then
9938 NMEDIT=":"
9939 else
9940 case $cross_compiling:$ac_tool_warned in
9941yes:)
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9944ac_tool_warned=yes ;;
9945esac
9946 NMEDIT=$ac_ct_NMEDIT
9947 fi
9948else
9949 NMEDIT="$ac_cv_prog_NMEDIT"
9950fi
9951
9952 if test -n "$ac_tool_prefix"; then
9953 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9954set dummy ${ac_tool_prefix}lipo; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if ${ac_cv_prog_LIPO+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959else
9960 if test -n "$LIPO"; then
9961 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974done
9975 done
9976IFS=$as_save_IFS
9977
9978fi
9979fi
9980LIPO=$ac_cv_prog_LIPO
9981if test -n "$LIPO"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9983$as_echo "$LIPO" >&6; }
9984else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986$as_echo "no" >&6; }
9987fi
9988
9989
9990fi
9991if test -z "$ac_cv_prog_LIPO"; then
9992 ac_ct_LIPO=$LIPO
9993 # Extract the first word of "lipo", so it can be a program name with args.
9994set dummy lipo; ac_word=$2
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996$as_echo_n "checking for $ac_word... " >&6; }
9997if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999else
10000 if test -n "$ac_ct_LIPO"; then
10001 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10002else
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_ac_ct_LIPO="lipo"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015 done
10016IFS=$as_save_IFS
10017
10018fi
10019fi
10020ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10021if test -n "$ac_ct_LIPO"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10023$as_echo "$ac_ct_LIPO" >&6; }
10024else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
10027fi
10028
10029 if test "x$ac_ct_LIPO" = x; then
10030 LIPO=":"
10031 else
10032 case $cross_compiling:$ac_tool_warned in
10033yes:)
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036ac_tool_warned=yes ;;
10037esac
10038 LIPO=$ac_ct_LIPO
10039 fi
10040else
10041 LIPO="$ac_cv_prog_LIPO"
10042fi
10043
10044 if test -n "$ac_tool_prefix"; then
10045 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10046set dummy ${ac_tool_prefix}otool; ac_word=$2
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048$as_echo_n "checking for $ac_word... " >&6; }
10049if ${ac_cv_prog_OTOOL+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051else
10052 if test -n "$OTOOL"; then
10053 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10054else
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067 done
10068IFS=$as_save_IFS
10069
10070fi
10071fi
10072OTOOL=$ac_cv_prog_OTOOL
10073if test -n "$OTOOL"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10075$as_echo "$OTOOL" >&6; }
10076else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
10079fi
10080
10081
10082fi
10083if test -z "$ac_cv_prog_OTOOL"; then
10084 ac_ct_OTOOL=$OTOOL
10085 # Extract the first word of "otool", so it can be a program name with args.
10086set dummy otool; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
10089if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091else
10092 if test -n "$ac_ct_OTOOL"; then
10093 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_ac_ct_OTOOL="otool"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106done
10107 done
10108IFS=$as_save_IFS
10109
10110fi
10111fi
10112ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10113if test -n "$ac_ct_OTOOL"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10115$as_echo "$ac_ct_OTOOL" >&6; }
10116else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
10120
10121 if test "x$ac_ct_OTOOL" = x; then
10122 OTOOL=":"
10123 else
10124 case $cross_compiling:$ac_tool_warned in
10125yes:)
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10128ac_tool_warned=yes ;;
10129esac
10130 OTOOL=$ac_ct_OTOOL
10131 fi
10132else
10133 OTOOL="$ac_cv_prog_OTOOL"
10134fi
10135
10136 if test -n "$ac_tool_prefix"; then
10137 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10138set dummy ${ac_tool_prefix}otool64; ac_word=$2
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
10141if ${ac_cv_prog_OTOOL64+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143else
10144 if test -n "$OTOOL64"; then
10145 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159 done
10160IFS=$as_save_IFS
10161
10162fi
10163fi
10164OTOOL64=$ac_cv_prog_OTOOL64
10165if test -n "$OTOOL64"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10167$as_echo "$OTOOL64" >&6; }
10168else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
10174fi
10175if test -z "$ac_cv_prog_OTOOL64"; then
10176 ac_ct_OTOOL64=$OTOOL64
10177 # Extract the first word of "otool64", so it can be a program name with args.
10178set dummy otool64; ac_word=$2
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180$as_echo_n "checking for $ac_word... " >&6; }
10181if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183else
10184 if test -n "$ac_ct_OTOOL64"; then
10185 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_ac_ct_OTOOL64="otool64"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199 done
10200IFS=$as_save_IFS
10201
10202fi
10203fi
10204ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10205if test -n "$ac_ct_OTOOL64"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10207$as_echo "$ac_ct_OTOOL64" >&6; }
10208else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
10211fi
10212
10213 if test "x$ac_ct_OTOOL64" = x; then
10214 OTOOL64=":"
10215 else
10216 case $cross_compiling:$ac_tool_warned in
10217yes:)
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10220ac_tool_warned=yes ;;
10221esac
10222 OTOOL64=$ac_ct_OTOOL64
10223 fi
10224else
10225 OTOOL64="$ac_cv_prog_OTOOL64"
10226fi
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10255$as_echo_n "checking for -single_module linker flag... " >&6; }
10256if ${lt_cv_apple_cc_single_mod+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258else
10259 lt_cv_apple_cc_single_mod=no
10260 if test -z "$LT_MULTI_MODULE"; then
10261 # By default we will add the -single_module flag. You can override
10262 # by either setting the environment variable LT_MULTI_MODULE
10263 # non-empty at configure time, or by adding -multi_module to the
10264 # link flags.
10265 rm -rf libconftest.dylib*
10266 echo "int foo(void){return 1;}" > conftest.c
10267 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10268-dynamiclib -Wl,-single_module conftest.c" >&5
10269 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10270 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10271 _lt_result=$?
10272 # If there is a non-empty error log, and "single_module"
10273 # appears in it, assume the flag caused a linker warning
10274 if test -s conftest.err && $GREP single_module conftest.err; then
10275 cat conftest.err >&5
10276 # Otherwise, if the output was created with a 0 exit code from
10277 # the compiler, it worked.
10278 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10279 lt_cv_apple_cc_single_mod=yes
10280 else
10281 cat conftest.err >&5
10282 fi
10283 rm -rf libconftest.dylib*
10284 rm -f conftest.*
10285 fi
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10288$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10289
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10291$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10292if ${lt_cv_ld_exported_symbols_list+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294else
10295 lt_cv_ld_exported_symbols_list=no
10296 save_LDFLAGS=$LDFLAGS
10297 echo "_main" > conftest.sym
10298 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h. */
10301
10302int
10303main ()
10304{
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310if ac_fn_c_try_link "$LINENO"; then :
10311 lt_cv_ld_exported_symbols_list=yes
10312else
10313 lt_cv_ld_exported_symbols_list=no
10314fi
10315rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LDFLAGS=$save_LDFLAGS
10318
10319fi
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10321$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10322
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10324$as_echo_n "checking for -force_load linker flag... " >&6; }
10325if ${lt_cv_ld_force_load+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327else
10328 lt_cv_ld_force_load=no
10329 cat > conftest.c << _LT_EOF
10330int forced_loaded() { return 2;}
10331_LT_EOF
10332 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10333 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10334 echo "$AR cru libconftest.a conftest.o" >&5
10335 $AR cru libconftest.a conftest.o 2>&5
10336 echo "$RANLIB libconftest.a" >&5
10337 $RANLIB libconftest.a 2>&5
10338 cat > conftest.c << _LT_EOF
10339int main() { return 0;}
10340_LT_EOF
10341 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10342 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10343 _lt_result=$?
10344 if test -s conftest.err && $GREP force_load conftest.err; then
10345 cat conftest.err >&5
10346 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10347 lt_cv_ld_force_load=yes
10348 else
10349 cat conftest.err >&5
10350 fi
10351 rm -f conftest.err libconftest.a conftest conftest.c
10352 rm -rf conftest.dSYM
10353
10354fi
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10356$as_echo "$lt_cv_ld_force_load" >&6; }
10357 case $host_os in
10358 rhapsody* | darwin1.[012])
10359 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10360 darwin1.*)
10361 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10362 darwin*) # darwin 5.x on
10363 # if running on 10.5 or later, the deployment target defaults
10364 # to the OS version, if on x86, and 10.4, the deployment
10365 # target defaults to 10.4. Don't you love it?
10366 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10367 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10368 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10369 10.[012][,.]*)
10370 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10371 10.*)
10372 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10373 esac
10374 ;;
10375 esac
10376 if test yes = "$lt_cv_apple_cc_single_mod"; then
10377 _lt_dar_single_mod='$single_module'
10378 fi
10379 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10380 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10381 else
10382 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10383 fi
10384 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10385 _lt_dsymutil='~$DSYMUTIL $lib || :'
10386 else
10387 _lt_dsymutil=
10388 fi
10389 ;;
10390 esac
10391
10392# func_munge_path_list VARIABLE PATH
10393# -----------------------------------
10394# VARIABLE is name of variable containing _space_ separated list of
10395# directories to be munged by the contents of PATH, which is string
10396# having a format:
10397# "DIR[:DIR]:"
10398# string "DIR[ DIR]" will be prepended to VARIABLE
10399# ":DIR[:DIR]"
10400# string "DIR[ DIR]" will be appended to VARIABLE
10401# "DIRP[:DIRP]::[DIRA:]DIRA"
10402# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10403# "DIRA[ DIRA]" will be appended to VARIABLE
10404# "DIR[:DIR]"
10405# VARIABLE will be replaced by "DIR[ DIR]"
10406func_munge_path_list ()
10407{
10408 case x$2 in
10409 x)
10410 ;;
10411 *:)
10412 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10413 ;;
10414 x:*)
10415 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10416 ;;
10417 *::*)
10418 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10419 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10420 ;;
10421 *)
10422 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10423 ;;
10424 esac
10425}
10426
10427
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10429$as_echo_n "checking for ANSI C header files... " >&6; }
10430if ${ac_cv_header_stdc+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432else
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h. */
10435#include <stdlib.h>
10436#include <stdarg.h>
10437#include <string.h>
10438#include <float.h>
10439
10440int
10441main ()
10442{
10443
10444 ;
10445 return 0;
10446}
10447_ACEOF
10448if ac_fn_c_try_compile "$LINENO"; then :
10449 ac_cv_header_stdc=yes
10450else
10451 ac_cv_header_stdc=no
10452fi
10453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454
10455if test $ac_cv_header_stdc = yes; then
10456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h. */
10459#include <string.h>
10460
10461_ACEOF
10462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10463 $EGREP "memchr" >/dev/null 2>&1; then :
10464
10465else
10466 ac_cv_header_stdc=no
10467fi
10468rm -f conftest*
10469
10470fi
10471
10472if test $ac_cv_header_stdc = yes; then
10473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h. */
10476#include <stdlib.h>
10477
10478_ACEOF
10479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10480 $EGREP "free" >/dev/null 2>&1; then :
10481
10482else
10483 ac_cv_header_stdc=no
10484fi
10485rm -f conftest*
10486
10487fi
10488
10489if test $ac_cv_header_stdc = yes; then
10490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10491 if test "$cross_compiling" = yes; then :
10492 :
10493else
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
10496#include <ctype.h>
10497#include <stdlib.h>
10498#if ((' ' & 0x0FF) == 0x020)
10499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10501#else
10502# define ISLOWER(c) \
10503 (('a' <= (c) && (c) <= 'i') \
10504 || ('j' <= (c) && (c) <= 'r') \
10505 || ('s' <= (c) && (c) <= 'z'))
10506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10507#endif
10508
10509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10510int
10511main ()
10512{
10513 int i;
10514 for (i = 0; i < 256; i++)
10515 if (XOR (islower (i), ISLOWER (i))
10516 || toupper (i) != TOUPPER (i))
10517 return 2;
10518 return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_run "$LINENO"; then :
10522
10523else
10524 ac_cv_header_stdc=no
10525fi
10526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10527 conftest.$ac_objext conftest.beam conftest.$ac_ext
10528fi
10529
10530fi
10531fi
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10533$as_echo "$ac_cv_header_stdc" >&6; }
10534if test $ac_cv_header_stdc = yes; then
10535
10536$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10537
10538fi
10539
10540# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10542 inttypes.h stdint.h unistd.h
10543do :
10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10546"
10547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10548 cat >>confdefs.h <<_ACEOF
10549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10550_ACEOF
10551
10552fi
10553
10554done
10555
10556
10557for ac_header in dlfcn.h
10558do :
10559 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10560"
10561if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10562 cat >>confdefs.h <<_ACEOF
10563#define HAVE_DLFCN_H 1
10564_ACEOF
10565
10566fi
10567
10568done
10569
10570
10571
10572
10573func_stripname_cnf ()
10574{
10575 case $2 in
10576 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10577 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10578 esac
10579} # func_stripname_cnf
10580
10581
10582
10583
10584
10585# Set options
10586# Check whether --enable-static was given.
10587if test "${enable_static+set}" = set; then :
10588 enableval=$enable_static; p=${PACKAGE-default}
10589 case $enableval in
10590 yes) enable_static=yes ;;
10591 no) enable_static=no ;;
10592 *)
10593 enable_static=no
10594 # Look at the argument we got. We use all the common list separators.
10595 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10596 for pkg in $enableval; do
10597 IFS=$lt_save_ifs
10598 if test "X$pkg" = "X$p"; then
10599 enable_static=yes
10600 fi
10601 done
10602 IFS=$lt_save_ifs
10603 ;;
10604 esac
10605else
10606 enable_static=no
10607fi
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618 enable_dlopen=no
10619
10620
10621 enable_win32_dll=no
10622
10623
10624 # Check whether --enable-shared was given.
10625if test "${enable_shared+set}" = set; then :
10626 enableval=$enable_shared; p=${PACKAGE-default}
10627 case $enableval in
10628 yes) enable_shared=yes ;;
10629 no) enable_shared=no ;;
10630 *)
10631 enable_shared=no
10632 # Look at the argument we got. We use all the common list separators.
10633 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10634 for pkg in $enableval; do
10635 IFS=$lt_save_ifs
10636 if test "X$pkg" = "X$p"; then
10637 enable_shared=yes
10638 fi
10639 done
10640 IFS=$lt_save_ifs
10641 ;;
10642 esac
10643else
10644 enable_shared=yes
10645fi
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657# Check whether --with-pic was given.
10658if test "${with_pic+set}" = set; then :
10659 withval=$with_pic; lt_p=${PACKAGE-default}
10660 case $withval in
10661 yes|no) pic_mode=$withval ;;
10662 *)
10663 pic_mode=default
10664 # Look at the argument we got. We use all the common list separators.
10665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10666 for lt_pkg in $withval; do
10667 IFS=$lt_save_ifs
10668 if test "X$lt_pkg" = "X$lt_p"; then
10669 pic_mode=yes
10670 fi
10671 done
10672 IFS=$lt_save_ifs
10673 ;;
10674 esac
10675else
10676 pic_mode=default
10677fi
10678
10679
10680
10681
10682
10683
10684
10685
10686 # Check whether --enable-fast-install was given.
10687if test "${enable_fast_install+set}" = set; then :
10688 enableval=$enable_fast_install; p=${PACKAGE-default}
10689 case $enableval in
10690 yes) enable_fast_install=yes ;;
10691 no) enable_fast_install=no ;;
10692 *)
10693 enable_fast_install=no
10694 # Look at the argument we got. We use all the common list separators.
10695 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10696 for pkg in $enableval; do
10697 IFS=$lt_save_ifs
10698 if test "X$pkg" = "X$p"; then
10699 enable_fast_install=yes
10700 fi
10701 done
10702 IFS=$lt_save_ifs
10703 ;;
10704 esac
10705else
10706 enable_fast_install=yes
10707fi
10708
10709
10710
10711
10712
10713
10714
10715
10716 shared_archive_member_spec=
10717case $host,$enable_shared in
10718power*-*-aix[5-9]*,yes)
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10720$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10721
10722# Check whether --with-aix-soname was given.
10723if test "${with_aix_soname+set}" = set; then :
10724 withval=$with_aix_soname; case $withval in
10725 aix|svr4|both)
10726 ;;
10727 *)
10728 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10729 ;;
10730 esac
10731 lt_cv_with_aix_soname=$with_aix_soname
10732else
10733 if ${lt_cv_with_aix_soname+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 lt_cv_with_aix_soname=aix
10737fi
10738
10739 with_aix_soname=$lt_cv_with_aix_soname
10740fi
10741
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10743$as_echo "$with_aix_soname" >&6; }
10744 if test aix != "$with_aix_soname"; then
10745 # For the AIX way of multilib, we name the shared archive member
10746 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10747 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10748 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10749 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10750 if test 64 = "${OBJECT_MODE-32}"; then
10751 shared_archive_member_spec=shr_64
10752 else
10753 shared_archive_member_spec=shr
10754 fi
10755 fi
10756 ;;
10757*)
10758 with_aix_soname=aix
10759 ;;
10760esac
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771# This can be used to rebuild libtool when needed
10772LIBTOOL_DEPS=$ltmain
10773
10774# Always use our own libtool.
10775LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806test -z "$LN_S" && LN_S="ln -s"
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821if test -n "${ZSH_VERSION+set}"; then
10822 setopt NO_GLOB_SUBST
10823fi
10824
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10826$as_echo_n "checking for objdir... " >&6; }
10827if ${lt_cv_objdir+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829else
10830 rm -f .libs 2>/dev/null
10831mkdir .libs 2>/dev/null
10832if test -d .libs; then
10833 lt_cv_objdir=.libs
10834else
10835 # MS-DOS does not allow filenames that begin with a dot.
10836 lt_cv_objdir=_libs
10837fi
10838rmdir .libs 2>/dev/null
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10841$as_echo "$lt_cv_objdir" >&6; }
10842objdir=$lt_cv_objdir
10843
10844
10845
10846
10847
10848cat >>confdefs.h <<_ACEOF
10849#define LT_OBJDIR "$lt_cv_objdir/"
10850_ACEOF
10851
10852
10853
10854
10855case $host_os in
10856aix3*)
10857 # AIX sometimes has problems with the GCC collect2 program. For some
10858 # reason, if we set the COLLECT_NAMES environment variable, the problems
10859 # vanish in a puff of smoke.
10860 if test set != "${COLLECT_NAMES+set}"; then
10861 COLLECT_NAMES=
10862 export COLLECT_NAMES
10863 fi
10864 ;;
10865esac
10866
10867# Global variables:
10868ofile=libtool
10869can_build_shared=yes
10870
10871# All known linkers require a '.a' archive for static linking (except MSVC,
10872# which needs '.lib').
10873libext=a
10874
10875with_gnu_ld=$lt_cv_prog_gnu_ld
10876
10877old_CC=$CC
10878old_CFLAGS=$CFLAGS
10879
10880# Set sane defaults for various variables
10881test -z "$CC" && CC=cc
10882test -z "$LTCC" && LTCC=$CC
10883test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10884test -z "$LD" && LD=ld
10885test -z "$ac_objext" && ac_objext=o
10886
10887func_cc_basename $compiler
10888cc_basename=$func_cc_basename_result
10889
10890
10891# Only perform the check for file, if the check method requires it
10892test -z "$MAGIC_CMD" && MAGIC_CMD=file
10893case $deplibs_check_method in
10894file_magic*)
10895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10897$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10898if ${lt_cv_path_MAGIC_CMD+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900else
10901 case $MAGIC_CMD in
10902[\\/*] | ?:[\\/]*)
10903 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10904 ;;
10905*)
10906 lt_save_MAGIC_CMD=$MAGIC_CMD
10907 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10909 for ac_dir in $ac_dummy; do
10910 IFS=$lt_save_ifs
10911 test -z "$ac_dir" && ac_dir=.
10912 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10913 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10914 if test -n "$file_magic_test_file"; then
10915 case $deplibs_check_method in
10916 "file_magic "*)
10917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10918 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10920 $EGREP "$file_magic_regex" > /dev/null; then
10921 :
10922 else
10923 cat <<_LT_EOF 1>&2
10924
10925*** Warning: the command libtool uses to detect shared libraries,
10926*** $file_magic_cmd, produces output that libtool cannot recognize.
10927*** The result is that libtool may fail to recognize shared libraries
10928*** as such. This will affect the creation of libtool libraries that
10929*** depend on shared libraries, but programs linked with such libtool
10930*** libraries will work regardless of this problem. Nevertheless, you
10931*** may want to report the problem to your system manager and/or to
10932*** bug-libtool@gnu.org
10933
10934_LT_EOF
10935 fi ;;
10936 esac
10937 fi
10938 break
10939 fi
10940 done
10941 IFS=$lt_save_ifs
10942 MAGIC_CMD=$lt_save_MAGIC_CMD
10943 ;;
10944esac
10945fi
10946
10947MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10948if test -n "$MAGIC_CMD"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10950$as_echo "$MAGIC_CMD" >&6; }
10951else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956
10957
10958
10959
10960if test -z "$lt_cv_path_MAGIC_CMD"; then
10961 if test -n "$ac_tool_prefix"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10963$as_echo_n "checking for file... " >&6; }
10964if ${lt_cv_path_MAGIC_CMD+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 case $MAGIC_CMD in
10968[\\/*] | ?:[\\/]*)
10969 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10970 ;;
10971*)
10972 lt_save_MAGIC_CMD=$MAGIC_CMD
10973 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10975 for ac_dir in $ac_dummy; do
10976 IFS=$lt_save_ifs
10977 test -z "$ac_dir" && ac_dir=.
10978 if test -f "$ac_dir/file"; then
10979 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10980 if test -n "$file_magic_test_file"; then
10981 case $deplibs_check_method in
10982 "file_magic "*)
10983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10984 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10986 $EGREP "$file_magic_regex" > /dev/null; then
10987 :
10988 else
10989 cat <<_LT_EOF 1>&2
10990
10991*** Warning: the command libtool uses to detect shared libraries,
10992*** $file_magic_cmd, produces output that libtool cannot recognize.
10993*** The result is that libtool may fail to recognize shared libraries
10994*** as such. This will affect the creation of libtool libraries that
10995*** depend on shared libraries, but programs linked with such libtool
10996*** libraries will work regardless of this problem. Nevertheless, you
10997*** may want to report the problem to your system manager and/or to
10998*** bug-libtool@gnu.org
10999
11000_LT_EOF
11001 fi ;;
11002 esac
11003 fi
11004 break
11005 fi
11006 done
11007 IFS=$lt_save_ifs
11008 MAGIC_CMD=$lt_save_MAGIC_CMD
11009 ;;
11010esac
11011fi
11012
11013MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11014if test -n "$MAGIC_CMD"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11016$as_echo "$MAGIC_CMD" >&6; }
11017else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
11020fi
11021
11022
11023 else
11024 MAGIC_CMD=:
11025 fi
11026fi
11027
11028 fi
11029 ;;
11030esac
11031
11032# Use C for the default configuration in the libtool script
11033
11034lt_save_CC=$CC
11035ac_ext=c
11036ac_cpp='$CPP $CPPFLAGS'
11037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039ac_compiler_gnu=$ac_cv_c_compiler_gnu
11040
11041
11042# Source file extension for C test sources.
11043ac_ext=c
11044
11045# Object file extension for compiled C test sources.
11046objext=o
11047objext=$objext
11048
11049# Code to be used in simple compile tests
11050lt_simple_compile_test_code="int some_variable = 0;"
11051
11052# Code to be used in simple link tests
11053lt_simple_link_test_code='int main(){return(0);}'
11054
11055
11056
11057
11058
11059
11060
11061# If no C compiler was specified, use CC.
11062LTCC=${LTCC-"$CC"}
11063
11064# If no C compiler flags were specified, use CFLAGS.
11065LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11066
11067# Allow CC to be a program name with arguments.
11068compiler=$CC
11069
11070# Save the default compiler, since it gets overwritten when the other
11071# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11072compiler_DEFAULT=$CC
11073
11074# save warnings/boilerplate of simple test code
11075ac_outfile=conftest.$ac_objext
11076echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11077eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11078_lt_compiler_boilerplate=`cat conftest.err`
11079$RM -r conftest*
11080
11081ac_outfile=conftest.$ac_objext
11082echo "$lt_simple_link_test_code" >conftest.$ac_ext
11083eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11084_lt_linker_boilerplate=`cat conftest.err`
11085$RM -r conftest*
11086
11087
11088## CAVEAT EMPTOR:
11089## There is no encapsulation within the following macros, do not change
11090## the running order or otherwise move them around unless you know exactly
11091## what you are doing...
11092if test -n "$compiler"; then
11093
11094lt_prog_compiler_no_builtin_flag=
11095
11096if test yes = "$GCC"; then
11097 case $cc_basename in
11098 nvcc*)
11099 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11100 *)
11101 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11102 esac
11103
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11105$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11106if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108else
11109 lt_cv_prog_compiler_rtti_exceptions=no
11110 ac_outfile=conftest.$ac_objext
11111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11112 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11113 # Insert the option either (1) after the last *FLAGS variable, or
11114 # (2) before a word containing "conftest.", or (3) at the end.
11115 # Note that $ac_compile itself does not contain backslashes and begins
11116 # with a dollar sign (not a hyphen), so the echo should work correctly.
11117 # The option is referenced via a variable to avoid confusing sed.
11118 lt_compile=`echo "$ac_compile" | $SED \
11119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11121 -e 's:$: $lt_compiler_flag:'`
11122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11123 (eval "$lt_compile" 2>conftest.err)
11124 ac_status=$?
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 if (exit $ac_status) && test -s "$ac_outfile"; then
11128 # The compiler can only warn and ignore the option if not recognized
11129 # So say no if there are warnings other than the usual output.
11130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11133 lt_cv_prog_compiler_rtti_exceptions=yes
11134 fi
11135 fi
11136 $RM -r conftest*
11137
11138fi
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11140$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11141
11142if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11143 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11144else
11145 :
11146fi
11147
11148fi
11149
11150
11151
11152
11153
11154
11155 lt_prog_compiler_wl=
11156lt_prog_compiler_pic=
11157lt_prog_compiler_static=
11158
11159
11160 if test yes = "$GCC"; then
11161 lt_prog_compiler_wl='-Wl,'
11162 lt_prog_compiler_static='-static'
11163
11164 case $host_os in
11165 aix*)
11166 # All AIX code is PIC.
11167 if test ia64 = "$host_cpu"; then
11168 # AIX 5 now supports IA64 processor
11169 lt_prog_compiler_static='-Bstatic'
11170 fi
11171 lt_prog_compiler_pic='-fPIC'
11172 ;;
11173
11174 amigaos*)
11175 case $host_cpu in
11176 powerpc)
11177 # see comment about AmigaOS4 .so support
11178 lt_prog_compiler_pic='-fPIC'
11179 ;;
11180 m68k)
11181 # FIXME: we need at least 68020 code to build shared libraries, but
11182 # adding the '-m68020' flag to GCC prevents building anything better,
11183 # like '-m68040'.
11184 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11185 ;;
11186 esac
11187 ;;
11188
11189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11190 # PIC is the default for these OSes.
11191 ;;
11192
11193 mingw* | cygwin* | pw32* | os2* | cegcc*)
11194 # This hack is so that the source file can tell whether it is being
11195 # built for inclusion in a dll (and should export symbols for example).
11196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11197 # (--disable-auto-import) libraries
11198 lt_prog_compiler_pic='-DDLL_EXPORT'
11199 case $host_os in
11200 os2*)
11201 lt_prog_compiler_static='$wl-static'
11202 ;;
11203 esac
11204 ;;
11205
11206 darwin* | rhapsody*)
11207 # PIC is the default on this platform
11208 # Common symbols not allowed in MH_DYLIB files
11209 lt_prog_compiler_pic='-fno-common'
11210 ;;
11211
11212 haiku*)
11213 # PIC is the default for Haiku.
11214 # The "-static" flag exists, but is broken.
11215 lt_prog_compiler_static=
11216 ;;
11217
11218 hpux*)
11219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11221 # sets the default TLS model and affects inlining.
11222 case $host_cpu in
11223 hppa*64*)
11224 # +Z the default
11225 ;;
11226 *)
11227 lt_prog_compiler_pic='-fPIC'
11228 ;;
11229 esac
11230 ;;
11231
11232 interix[3-9]*)
11233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11234 # Instead, we relocate shared libraries at runtime.
11235 ;;
11236
11237 msdosdjgpp*)
11238 # Just because we use GCC doesn't mean we suddenly get shared libraries
11239 # on systems that don't support them.
11240 lt_prog_compiler_can_build_shared=no
11241 enable_shared=no
11242 ;;
11243
11244 *nto* | *qnx*)
11245 # QNX uses GNU C++, but need to define -shared option too, otherwise
11246 # it will coredump.
11247 lt_prog_compiler_pic='-fPIC -shared'
11248 ;;
11249
11250 sysv4*MP*)
11251 if test -d /usr/nec; then
11252 lt_prog_compiler_pic=-Kconform_pic
11253 fi
11254 ;;
11255
11256 *)
11257 lt_prog_compiler_pic='-fPIC'
11258 ;;
11259 esac
11260
11261 case $cc_basename in
11262 nvcc*) # Cuda Compiler Driver 2.2
11263 lt_prog_compiler_wl='-Xlinker '
11264 if test -n "$lt_prog_compiler_pic"; then
11265 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11266 fi
11267 ;;
11268 esac
11269 else
11270 # PORTME Check for flag to pass linker flags through the system compiler.
11271 case $host_os in
11272 aix*)
11273 lt_prog_compiler_wl='-Wl,'
11274 if test ia64 = "$host_cpu"; then
11275 # AIX 5 now supports IA64 processor
11276 lt_prog_compiler_static='-Bstatic'
11277 else
11278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11279 fi
11280 ;;
11281
11282 darwin* | rhapsody*)
11283 # PIC is the default on this platform
11284 # Common symbols not allowed in MH_DYLIB files
11285 lt_prog_compiler_pic='-fno-common'
11286 case $cc_basename in
11287 nagfor*)
11288 # NAG Fortran compiler
11289 lt_prog_compiler_wl='-Wl,-Wl,,'
11290 lt_prog_compiler_pic='-PIC'
11291 lt_prog_compiler_static='-Bstatic'
11292 ;;
11293 esac
11294 ;;
11295
11296 mingw* | cygwin* | pw32* | os2* | cegcc*)
11297 # This hack is so that the source file can tell whether it is being
11298 # built for inclusion in a dll (and should export symbols for example).
11299 lt_prog_compiler_pic='-DDLL_EXPORT'
11300 case $host_os in
11301 os2*)
11302 lt_prog_compiler_static='$wl-static'
11303 ;;
11304 esac
11305 ;;
11306
11307 hpux9* | hpux10* | hpux11*)
11308 lt_prog_compiler_wl='-Wl,'
11309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11310 # not for PA HP-UX.
11311 case $host_cpu in
11312 hppa*64*|ia64*)
11313 # +Z the default
11314 ;;
11315 *)
11316 lt_prog_compiler_pic='+Z'
11317 ;;
11318 esac
11319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11320 lt_prog_compiler_static='$wl-a ${wl}archive'
11321 ;;
11322
11323 irix5* | irix6* | nonstopux*)
11324 lt_prog_compiler_wl='-Wl,'
11325 # PIC (with -KPIC) is the default.
11326 lt_prog_compiler_static='-non_shared'
11327 ;;
11328
11329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11330 case $cc_basename in
11331 # old Intel for x86_64, which still supported -KPIC.
11332 ecc*)
11333 lt_prog_compiler_wl='-Wl,'
11334 lt_prog_compiler_pic='-KPIC'
11335 lt_prog_compiler_static='-static'
11336 ;;
11337 # icc used to be incompatible with GCC.
11338 # ICC 10 doesn't accept -KPIC any more.
11339 icc* | ifort*)
11340 lt_prog_compiler_wl='-Wl,'
11341 lt_prog_compiler_pic='-fPIC'
11342 lt_prog_compiler_static='-static'
11343 ;;
11344 # Lahey Fortran 8.1.
11345 lf95*)
11346 lt_prog_compiler_wl='-Wl,'
11347 lt_prog_compiler_pic='--shared'
11348 lt_prog_compiler_static='--static'
11349 ;;
11350 nagfor*)
11351 # NAG Fortran compiler
11352 lt_prog_compiler_wl='-Wl,-Wl,,'
11353 lt_prog_compiler_pic='-PIC'
11354 lt_prog_compiler_static='-Bstatic'
11355 ;;
11356 tcc*)
11357 # Fabrice Bellard et al's Tiny C Compiler
11358 lt_prog_compiler_wl='-Wl,'
11359 lt_prog_compiler_pic='-fPIC'
11360 lt_prog_compiler_static='-static'
11361 ;;
11362 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11363 # Portland Group compilers (*not* the Pentium gcc compiler,
11364 # which looks to be a dead project)
11365 lt_prog_compiler_wl='-Wl,'
11366 lt_prog_compiler_pic='-fpic'
11367 lt_prog_compiler_static='-Bstatic'
11368 ;;
11369 ccc*)
11370 lt_prog_compiler_wl='-Wl,'
11371 # All Alpha code is PIC.
11372 lt_prog_compiler_static='-non_shared'
11373 ;;
11374 xl* | bgxl* | bgf* | mpixl*)
11375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11376 lt_prog_compiler_wl='-Wl,'
11377 lt_prog_compiler_pic='-qpic'
11378 lt_prog_compiler_static='-qstaticlink'
11379 ;;
11380 *)
11381 case `$CC -V 2>&1 | sed 5q` in
11382 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11384 lt_prog_compiler_pic='-KPIC'
11385 lt_prog_compiler_static='-Bstatic'
11386 lt_prog_compiler_wl=''
11387 ;;
11388 *Sun\ F* | *Sun*Fortran*)
11389 lt_prog_compiler_pic='-KPIC'
11390 lt_prog_compiler_static='-Bstatic'
11391 lt_prog_compiler_wl='-Qoption ld '
11392 ;;
11393 *Sun\ C*)
11394 # Sun C 5.9
11395 lt_prog_compiler_pic='-KPIC'
11396 lt_prog_compiler_static='-Bstatic'
11397 lt_prog_compiler_wl='-Wl,'
11398 ;;
11399 *Intel*\ [CF]*Compiler*)
11400 lt_prog_compiler_wl='-Wl,'
11401 lt_prog_compiler_pic='-fPIC'
11402 lt_prog_compiler_static='-static'
11403 ;;
11404 *Portland\ Group*)
11405 lt_prog_compiler_wl='-Wl,'
11406 lt_prog_compiler_pic='-fpic'
11407 lt_prog_compiler_static='-Bstatic'
11408 ;;
11409 esac
11410 ;;
11411 esac
11412 ;;
11413
11414 newsos6)
11415 lt_prog_compiler_pic='-KPIC'
11416 lt_prog_compiler_static='-Bstatic'
11417 ;;
11418
11419 *nto* | *qnx*)
11420 # QNX uses GNU C++, but need to define -shared option too, otherwise
11421 # it will coredump.
11422 lt_prog_compiler_pic='-fPIC -shared'
11423 ;;
11424
11425 osf3* | osf4* | osf5*)
11426 lt_prog_compiler_wl='-Wl,'
11427 # All OSF/1 code is PIC.
11428 lt_prog_compiler_static='-non_shared'
11429 ;;
11430
11431 rdos*)
11432 lt_prog_compiler_static='-non_shared'
11433 ;;
11434
11435 solaris*)
11436 lt_prog_compiler_pic='-KPIC'
11437 lt_prog_compiler_static='-Bstatic'
11438 case $cc_basename in
11439 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11440 lt_prog_compiler_wl='-Qoption ld ';;
11441 *)
11442 lt_prog_compiler_wl='-Wl,';;
11443 esac
11444 ;;
11445
11446 sunos4*)
11447 lt_prog_compiler_wl='-Qoption ld '
11448 lt_prog_compiler_pic='-PIC'
11449 lt_prog_compiler_static='-Bstatic'
11450 ;;
11451
11452 sysv4 | sysv4.2uw2* | sysv4.3*)
11453 lt_prog_compiler_wl='-Wl,'
11454 lt_prog_compiler_pic='-KPIC'
11455 lt_prog_compiler_static='-Bstatic'
11456 ;;
11457
11458 sysv4*MP*)
11459 if test -d /usr/nec; then
11460 lt_prog_compiler_pic='-Kconform_pic'
11461 lt_prog_compiler_static='-Bstatic'
11462 fi
11463 ;;
11464
11465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11466 lt_prog_compiler_wl='-Wl,'
11467 lt_prog_compiler_pic='-KPIC'
11468 lt_prog_compiler_static='-Bstatic'
11469 ;;
11470
11471 unicos*)
11472 lt_prog_compiler_wl='-Wl,'
11473 lt_prog_compiler_can_build_shared=no
11474 ;;
11475
11476 uts4*)
11477 lt_prog_compiler_pic='-pic'
11478 lt_prog_compiler_static='-Bstatic'
11479 ;;
11480
11481 *)
11482 lt_prog_compiler_can_build_shared=no
11483 ;;
11484 esac
11485 fi
11486
11487case $host_os in
11488 # For platforms that do not support PIC, -DPIC is meaningless:
11489 *djgpp*)
11490 lt_prog_compiler_pic=
11491 ;;
11492 *)
11493 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11494 ;;
11495esac
11496
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11499if ${lt_cv_prog_compiler_pic+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501else
11502 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11503fi
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11505$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11506lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11507
11508#
11509# Check to make sure the PIC flag actually works.
11510#
11511if test -n "$lt_prog_compiler_pic"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11514if ${lt_cv_prog_compiler_pic_works+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516else
11517 lt_cv_prog_compiler_pic_works=no
11518 ac_outfile=conftest.$ac_objext
11519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11520 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11521 # Insert the option either (1) after the last *FLAGS variable, or
11522 # (2) before a word containing "conftest.", or (3) at the end.
11523 # Note that $ac_compile itself does not contain backslashes and begins
11524 # with a dollar sign (not a hyphen), so the echo should work correctly.
11525 # The option is referenced via a variable to avoid confusing sed.
11526 lt_compile=`echo "$ac_compile" | $SED \
11527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11529 -e 's:$: $lt_compiler_flag:'`
11530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11531 (eval "$lt_compile" 2>conftest.err)
11532 ac_status=$?
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 if (exit $ac_status) && test -s "$ac_outfile"; then
11536 # The compiler can only warn and ignore the option if not recognized
11537 # So say no if there are warnings other than the usual output.
11538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11541 lt_cv_prog_compiler_pic_works=yes
11542 fi
11543 fi
11544 $RM -r conftest*
11545
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11548$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11549
11550if test yes = "$lt_cv_prog_compiler_pic_works"; then
11551 case $lt_prog_compiler_pic in
11552 "" | " "*) ;;
11553 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11554 esac
11555else
11556 lt_prog_compiler_pic=
11557 lt_prog_compiler_can_build_shared=no
11558fi
11559
11560fi
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572#
11573# Check to make sure the static flag actually works.
11574#
11575wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11577$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11578if ${lt_cv_prog_compiler_static_works+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 lt_cv_prog_compiler_static_works=no
11582 save_LDFLAGS=$LDFLAGS
11583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11584 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11586 # The linker can only warn and ignore the option if not recognized
11587 # So say no if there are warnings
11588 if test -s conftest.err; then
11589 # Append any errors to the config.log.
11590 cat conftest.err 1>&5
11591 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11593 if diff conftest.exp conftest.er2 >/dev/null; then
11594 lt_cv_prog_compiler_static_works=yes
11595 fi
11596 else
11597 lt_cv_prog_compiler_static_works=yes
11598 fi
11599 fi
11600 $RM -r conftest*
11601 LDFLAGS=$save_LDFLAGS
11602
11603fi
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11605$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11606
11607if test yes = "$lt_cv_prog_compiler_static_works"; then
11608 :
11609else
11610 lt_prog_compiler_static=
11611fi
11612
11613
11614
11615
11616
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11620$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11621if ${lt_cv_prog_compiler_c_o+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623else
11624 lt_cv_prog_compiler_c_o=no
11625 $RM -r conftest 2>/dev/null
11626 mkdir conftest
11627 cd conftest
11628 mkdir out
11629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11630
11631 lt_compiler_flag="-o out/conftest2.$ac_objext"
11632 # Insert the option either (1) after the last *FLAGS variable, or
11633 # (2) before a word containing "conftest.", or (3) at the end.
11634 # Note that $ac_compile itself does not contain backslashes and begins
11635 # with a dollar sign (not a hyphen), so the echo should work correctly.
11636 lt_compile=`echo "$ac_compile" | $SED \
11637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11639 -e 's:$: $lt_compiler_flag:'`
11640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11641 (eval "$lt_compile" 2>out/conftest.err)
11642 ac_status=$?
11643 cat out/conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11646 then
11647 # The compiler can only warn and ignore the option if not recognized
11648 # So say no if there are warnings
11649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11652 lt_cv_prog_compiler_c_o=yes
11653 fi
11654 fi
11655 chmod u+w . 2>&5
11656 $RM -r conftest*
11657 # SGI C++ compiler will create directory out/ii_files/ for
11658 # template instantiation
11659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11660 $RM out/* && rmdir out
11661 cd ..
11662 $RM -r conftest
11663 $RM -r conftest*
11664
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11667$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11668
11669
11670
11671
11672
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11675$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11676if ${lt_cv_prog_compiler_c_o+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678else
11679 lt_cv_prog_compiler_c_o=no
11680 $RM -r conftest 2>/dev/null
11681 mkdir conftest
11682 cd conftest
11683 mkdir out
11684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11685
11686 lt_compiler_flag="-o out/conftest2.$ac_objext"
11687 # Insert the option either (1) after the last *FLAGS variable, or
11688 # (2) before a word containing "conftest.", or (3) at the end.
11689 # Note that $ac_compile itself does not contain backslashes and begins
11690 # with a dollar sign (not a hyphen), so the echo should work correctly.
11691 lt_compile=`echo "$ac_compile" | $SED \
11692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11694 -e 's:$: $lt_compiler_flag:'`
11695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11696 (eval "$lt_compile" 2>out/conftest.err)
11697 ac_status=$?
11698 cat out/conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11701 then
11702 # The compiler can only warn and ignore the option if not recognized
11703 # So say no if there are warnings
11704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11707 lt_cv_prog_compiler_c_o=yes
11708 fi
11709 fi
11710 chmod u+w . 2>&5
11711 $RM -r conftest*
11712 # SGI C++ compiler will create directory out/ii_files/ for
11713 # template instantiation
11714 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11715 $RM out/* && rmdir out
11716 cd ..
11717 $RM -r conftest
11718 $RM -r conftest*
11719
11720fi
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11722$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11723
11724
11725
11726
11727hard_links=nottested
11728if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11729 # do not overwrite the value of need_locks provided by the user
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11731$as_echo_n "checking if we can lock with hard links... " >&6; }
11732 hard_links=yes
11733 $RM -r conftest*
11734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11735 touch conftest.a
11736 ln conftest.a conftest.b 2>&5 || hard_links=no
11737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11739$as_echo "$hard_links" >&6; }
11740 if test no = "$hard_links"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11742$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11743 need_locks=warn
11744 fi
11745else
11746 need_locks=no
11747fi
11748
11749
11750
11751
11752
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11755$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11756
11757 runpath_var=
11758 allow_undefined_flag=
11759 always_export_symbols=no
11760 archive_cmds=
11761 archive_expsym_cmds=
11762 compiler_needs_object=no
11763 enable_shared_with_static_runtimes=no
11764 export_dynamic_flag_spec=
11765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11766 hardcode_automatic=no
11767 hardcode_direct=no
11768 hardcode_direct_absolute=no
11769 hardcode_libdir_flag_spec=
11770 hardcode_libdir_separator=
11771 hardcode_minus_L=no
11772 hardcode_shlibpath_var=unsupported
11773 inherit_rpath=no
11774 link_all_deplibs=unknown
11775 module_cmds=
11776 module_expsym_cmds=
11777 old_archive_from_new_cmds=
11778 old_archive_from_expsyms_cmds=
11779 thread_safe_flag_spec=
11780 whole_archive_flag_spec=
11781 # include_expsyms should be a list of space-separated symbols to be *always*
11782 # included in the symbol list
11783 include_expsyms=
11784 # exclude_expsyms can be an extended regexp of symbols to exclude
11785 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11786 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11787 # as well as any symbol that contains 'd'.
11788 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11789 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11790 # platforms (ab)use it in PIC code, but their linkers get confused if
11791 # the symbol is explicitly referenced. Since portable code cannot
11792 # rely on this symbol name, it's probably fine to never include it in
11793 # preloaded symbol tables.
11794 # Exclude shared library initialization/finalization symbols.
11795 extract_expsyms_cmds=
11796
11797 case $host_os in
11798 cygwin* | mingw* | pw32* | cegcc*)
11799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11800 # When not using gcc, we currently assume that we are using
11801 # Microsoft Visual C++.
11802 if test yes != "$GCC"; then
11803 with_gnu_ld=no
11804 fi
11805 ;;
11806 interix*)
11807 # we just hope/assume this is gcc and not c89 (= MSVC++)
11808 with_gnu_ld=yes
11809 ;;
11810 openbsd* | bitrig*)
11811 with_gnu_ld=no
11812 ;;
11813 esac
11814
11815 ld_shlibs=yes
11816
11817 # On some targets, GNU ld is compatible enough with the native linker
11818 # that we're better off using the native interface for both.
11819 lt_use_gnu_ld_interface=no
11820 if test yes = "$with_gnu_ld"; then
11821 case $host_os in
11822 aix*)
11823 # The AIX port of GNU ld has always aspired to compatibility
11824 # with the native linker. However, as the warning in the GNU ld
11825 # block says, versions before 2.19.5* couldn't really create working
11826 # shared libraries, regardless of the interface used.
11827 case `$LD -v 2>&1` in
11828 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11829 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11830 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11831 *)
11832 lt_use_gnu_ld_interface=yes
11833 ;;
11834 esac
11835 ;;
11836 *)
11837 lt_use_gnu_ld_interface=yes
11838 ;;
11839 esac
11840 fi
11841
11842 if test yes = "$lt_use_gnu_ld_interface"; then
11843 # If archive_cmds runs LD, not CC, wlarc should be empty
11844 wlarc='$wl'
11845
11846 # Set some defaults for GNU ld with shared library support. These
11847 # are reset later if shared libraries are not supported. Putting them
11848 # here allows them to be overridden if necessary.
11849 runpath_var=LD_RUN_PATH
11850 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11851 export_dynamic_flag_spec='$wl--export-dynamic'
11852 # ancient GNU ld didn't support --whole-archive et. al.
11853 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11854 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11855 else
11856 whole_archive_flag_spec=
11857 fi
11858 supports_anon_versioning=no
11859 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11860 *GNU\ gold*) supports_anon_versioning=yes ;;
11861 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11862 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11863 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11864 *\ 2.11.*) ;; # other 2.11 versions
11865 *) supports_anon_versioning=yes ;;
11866 esac
11867
11868 # See if GNU ld supports shared libraries.
11869 case $host_os in
11870 aix[3-9]*)
11871 # On AIX/PPC, the GNU linker is very broken
11872 if test ia64 != "$host_cpu"; then
11873 ld_shlibs=no
11874 cat <<_LT_EOF 1>&2
11875
11876*** Warning: the GNU linker, at least up to release 2.19, is reported
11877*** to be unable to reliably create shared libraries on AIX.
11878*** Therefore, libtool is disabling shared libraries support. If you
11879*** really care for shared libraries, you may want to install binutils
11880*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11881*** You will then need to restart the configuration process.
11882
11883_LT_EOF
11884 fi
11885 ;;
11886
11887 amigaos*)
11888 case $host_cpu in
11889 powerpc)
11890 # see comment about AmigaOS4 .so support
11891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11892 archive_expsym_cmds=''
11893 ;;
11894 m68k)
11895 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)'
11896 hardcode_libdir_flag_spec='-L$libdir'
11897 hardcode_minus_L=yes
11898 ;;
11899 esac
11900 ;;
11901
11902 beos*)
11903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11904 allow_undefined_flag=unsupported
11905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11906 # support --undefined. This deserves some investigation. FIXME
11907 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11908 else
11909 ld_shlibs=no
11910 fi
11911 ;;
11912
11913 cygwin* | mingw* | pw32* | cegcc*)
11914 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11915 # as there is no search path for DLLs.
11916 hardcode_libdir_flag_spec='-L$libdir'
11917 export_dynamic_flag_spec='$wl--export-all-symbols'
11918 allow_undefined_flag=unsupported
11919 always_export_symbols=no
11920 enable_shared_with_static_runtimes=yes
11921 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'
11922 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11923
11924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11926 # If the export-symbols file already is a .def file, use it as
11927 # is; otherwise, prepend EXPORTS...
11928 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11929 cp $export_symbols $output_objdir/$soname.def;
11930 else
11931 echo EXPORTS > $output_objdir/$soname.def;
11932 cat $export_symbols >> $output_objdir/$soname.def;
11933 fi~
11934 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11935 else
11936 ld_shlibs=no
11937 fi
11938 ;;
11939
11940 haiku*)
11941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11942 link_all_deplibs=yes
11943 ;;
11944
11945 os2*)
11946 hardcode_libdir_flag_spec='-L$libdir'
11947 hardcode_minus_L=yes
11948 allow_undefined_flag=unsupported
11949 shrext_cmds=.dll
11950 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11953 $ECHO EXPORTS >> $output_objdir/$libname.def~
11954 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11956 emximp -o $lib $output_objdir/$libname.def'
11957 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11958 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11959 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11960 $ECHO EXPORTS >> $output_objdir/$libname.def~
11961 prefix_cmds="$SED"~
11962 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11963 prefix_cmds="$prefix_cmds -e 1d";
11964 fi~
11965 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11966 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11967 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11968 emximp -o $lib $output_objdir/$libname.def'
11969 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11970 enable_shared_with_static_runtimes=yes
11971 ;;
11972
11973 interix[3-9]*)
11974 hardcode_direct=no
11975 hardcode_shlibpath_var=no
11976 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11977 export_dynamic_flag_spec='$wl-E'
11978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11979 # Instead, shared libraries are loaded at an image base (0x10000000 by
11980 # default) and relocated if they conflict, which is a slow very memory
11981 # consuming and fragmenting process. To avoid this, we pick a random,
11982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11983 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11985 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'
11986 ;;
11987
11988 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11989 tmp_diet=no
11990 if test linux-dietlibc = "$host_os"; then
11991 case $cc_basename in
11992 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11993 esac
11994 fi
11995 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11996 && test no = "$tmp_diet"
11997 then
11998 tmp_addflag=' $pic_flag'
11999 tmp_sharedflag='-shared'
12000 case $cc_basename,$host_cpu in
12001 pgcc*) # Portland Group C compiler
12002 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'
12003 tmp_addflag=' $pic_flag'
12004 ;;
12005 pgf77* | pgf90* | pgf95* | pgfortran*)
12006 # Portland Group f77 and f90 compilers
12007 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'
12008 tmp_addflag=' $pic_flag -Mnomain' ;;
12009 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12010 tmp_addflag=' -i_dynamic' ;;
12011 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12012 tmp_addflag=' -i_dynamic -nofor_main' ;;
12013 ifc* | ifort*) # Intel Fortran compiler
12014 tmp_addflag=' -nofor_main' ;;
12015 lf95*) # Lahey Fortran 8.1
12016 whole_archive_flag_spec=
12017 tmp_sharedflag='--shared' ;;
12018 nagfor*) # NAGFOR 5.3
12019 tmp_sharedflag='-Wl,-shared' ;;
12020 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12021 tmp_sharedflag='-qmkshrobj'
12022 tmp_addflag= ;;
12023 nvcc*) # Cuda Compiler Driver 2.2
12024 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'
12025 compiler_needs_object=yes
12026 ;;
12027 esac
12028 case `$CC -V 2>&1 | sed 5q` in
12029 *Sun\ C*) # Sun C 5.9
12030 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'
12031 compiler_needs_object=yes
12032 tmp_sharedflag='-G' ;;
12033 *Sun\ F*) # Sun Fortran 8.3
12034 tmp_sharedflag='-G' ;;
12035 esac
12036 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12037
12038 if test yes = "$supports_anon_versioning"; then
12039 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12041 echo "local: *; };" >> $output_objdir/$libname.ver~
12042 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12043 fi
12044
12045 case $cc_basename in
12046 tcc*)
12047 export_dynamic_flag_spec='-rdynamic'
12048 ;;
12049 xlf* | bgf* | bgxlf* | mpixlf*)
12050 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12051 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12052 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12053 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12054 if test yes = "$supports_anon_versioning"; then
12055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12057 echo "local: *; };" >> $output_objdir/$libname.ver~
12058 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12059 fi
12060 ;;
12061 esac
12062 else
12063 ld_shlibs=no
12064 fi
12065 ;;
12066
12067 netbsd*)
12068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12070 wlarc=
12071 else
12072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12074 fi
12075 ;;
12076
12077 solaris*)
12078 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12079 ld_shlibs=no
12080 cat <<_LT_EOF 1>&2
12081
12082*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12083*** create shared libraries on Solaris systems. Therefore, libtool
12084*** is disabling shared libraries support. We urge you to upgrade GNU
12085*** binutils to release 2.9.1 or newer. Another option is to modify
12086*** your PATH or compiler configuration so that the native linker is
12087*** used, and then restart.
12088
12089_LT_EOF
12090 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12093 else
12094 ld_shlibs=no
12095 fi
12096 ;;
12097
12098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12099 case `$LD -v 2>&1` in
12100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12101 ld_shlibs=no
12102 cat <<_LT_EOF 1>&2
12103
12104*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12105*** reliably create shared libraries on SCO systems. Therefore, libtool
12106*** is disabling shared libraries support. We urge you to upgrade GNU
12107*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12108*** your PATH or compiler configuration so that the native linker is
12109*** used, and then restart.
12110
12111_LT_EOF
12112 ;;
12113 *)
12114 # For security reasons, it is highly recommended that you always
12115 # use absolute paths for naming shared libraries, and exclude the
12116 # DT_RUNPATH tag from executables and libraries. But doing so
12117 # requires that you compile everything twice, which is a pain.
12118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12122 else
12123 ld_shlibs=no
12124 fi
12125 ;;
12126 esac
12127 ;;
12128
12129 sunos4*)
12130 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12131 wlarc=
12132 hardcode_direct=yes
12133 hardcode_shlibpath_var=no
12134 ;;
12135
12136 *)
12137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12140 else
12141 ld_shlibs=no
12142 fi
12143 ;;
12144 esac
12145
12146 if test no = "$ld_shlibs"; then
12147 runpath_var=
12148 hardcode_libdir_flag_spec=
12149 export_dynamic_flag_spec=
12150 whole_archive_flag_spec=
12151 fi
12152 else
12153 # PORTME fill in a description of your system's linker (not GNU ld)
12154 case $host_os in
12155 aix3*)
12156 allow_undefined_flag=unsupported
12157 always_export_symbols=yes
12158 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'
12159 # Note: this linker hardcodes the directories in LIBPATH if there
12160 # are no directories specified by -L.
12161 hardcode_minus_L=yes
12162 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12163 # Neither direct hardcoding nor static linking is supported with a
12164 # broken collect2.
12165 hardcode_direct=unsupported
12166 fi
12167 ;;
12168
12169 aix[4-9]*)
12170 if test ia64 = "$host_cpu"; then
12171 # On IA64, the linker does run time linking by default, so we don't
12172 # have to do anything special.
12173 aix_use_runtimelinking=no
12174 exp_sym_flag='-Bexport'
12175 no_entry_flag=
12176 else
12177 # If we're using GNU nm, then we don't want the "-C" option.
12178 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12179 # Without the "-l" option, or with the "-B" option, AIX nm treats
12180 # weak defined symbols like other global defined symbols, whereas
12181 # GNU nm marks them as "W".
12182 # While the 'weak' keyword is ignored in the Export File, we need
12183 # it in the Import File for the 'aix-soname' feature, so we have
12184 # to replace the "-B" option with "-P" for AIX nm.
12185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12186 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12187 else
12188 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12189 fi
12190 aix_use_runtimelinking=no
12191
12192 # Test if we are trying to use run time linking or normal
12193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12194 # have runtime linking enabled, and use it for executables.
12195 # For shared libraries, we enable/disable runtime linking
12196 # depending on the kind of the shared library created -
12197 # when "with_aix_soname,aix_use_runtimelinking" is:
12198 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12199 # "aix,yes" lib.so shared, rtl:yes, for executables
12200 # lib.a static archive
12201 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12202 # lib.a(lib.so.V) shared, rtl:no, for executables
12203 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12204 # lib.a(lib.so.V) shared, rtl:no
12205 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12206 # lib.a static archive
12207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12208 for ld_flag in $LDFLAGS; do
12209 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12210 aix_use_runtimelinking=yes
12211 break
12212 fi
12213 done
12214 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12215 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12216 # so we don't have lib.a shared libs to link our executables.
12217 # We have to force runtime linking in this case.
12218 aix_use_runtimelinking=yes
12219 LDFLAGS="$LDFLAGS -Wl,-brtl"
12220 fi
12221 ;;
12222 esac
12223
12224 exp_sym_flag='-bexport'
12225 no_entry_flag='-bnoentry'
12226 fi
12227
12228 # When large executables or shared objects are built, AIX ld can
12229 # have problems creating the table of contents. If linking a library
12230 # or program results in "error TOC overflow" add -mminimal-toc to
12231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12233
12234 archive_cmds=''
12235 hardcode_direct=yes
12236 hardcode_direct_absolute=yes
12237 hardcode_libdir_separator=':'
12238 link_all_deplibs=yes
12239 file_list_spec='$wl-f,'
12240 case $with_aix_soname,$aix_use_runtimelinking in
12241 aix,*) ;; # traditional, no import file
12242 svr4,* | *,yes) # use import file
12243 # The Import File defines what to hardcode.
12244 hardcode_direct=no
12245 hardcode_direct_absolute=no
12246 ;;
12247 esac
12248
12249 if test yes = "$GCC"; then
12250 case $host_os in aix4.[012]|aix4.[012].*)
12251 # We only want to do this on AIX 4.2 and lower, the check
12252 # below for broken collect2 doesn't work under 4.3+
12253 collect2name=`$CC -print-prog-name=collect2`
12254 if test -f "$collect2name" &&
12255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12256 then
12257 # We have reworked collect2
12258 :
12259 else
12260 # We have old collect2
12261 hardcode_direct=unsupported
12262 # It fails to find uninstalled libraries when the uninstalled
12263 # path is not listed in the libpath. Setting hardcode_minus_L
12264 # to unsupported forces relinking
12265 hardcode_minus_L=yes
12266 hardcode_libdir_flag_spec='-L$libdir'
12267 hardcode_libdir_separator=
12268 fi
12269 ;;
12270 esac
12271 shared_flag='-shared'
12272 if test yes = "$aix_use_runtimelinking"; then
12273 shared_flag="$shared_flag "'$wl-G'
12274 fi
12275 # Need to ensure runtime linking is disabled for the traditional
12276 # shared library, or the linker may eventually find shared libraries
12277 # /with/ Import File - we do not want to mix them.
12278 shared_flag_aix='-shared'
12279 shared_flag_svr4='-shared $wl-G'
12280 else
12281 # not using gcc
12282 if test ia64 = "$host_cpu"; then
12283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12284 # chokes on -Wl,-G. The following line is correct:
12285 shared_flag='-G'
12286 else
12287 if test yes = "$aix_use_runtimelinking"; then
12288 shared_flag='$wl-G'
12289 else
12290 shared_flag='$wl-bM:SRE'
12291 fi
12292 shared_flag_aix='$wl-bM:SRE'
12293 shared_flag_svr4='$wl-G'
12294 fi
12295 fi
12296
12297 export_dynamic_flag_spec='$wl-bexpall'
12298 # It seems that -bexpall does not export symbols beginning with
12299 # underscore (_), so it is better to generate a list of symbols to export.
12300 always_export_symbols=yes
12301 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12302 # Warning - without using the other runtime loading flags (-brtl),
12303 # -berok will link without error, but may produce a broken library.
12304 allow_undefined_flag='-berok'
12305 # Determine the default libpath from the value encoded in an
12306 # empty executable.
12307 if test set = "${lt_cv_aix_libpath+set}"; then
12308 aix_libpath=$lt_cv_aix_libpath
12309else
12310 if ${lt_cv_aix_libpath_+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312else
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314/* end confdefs.h. */
12315
12316int
12317main ()
12318{
12319
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"; then :
12325
12326 lt_aix_libpath_sed='
12327 /Import File Strings/,/^$/ {
12328 /^0/ {
12329 s/^0 *\([^ ]*\) *$/\1/
12330 p
12331 }
12332 }'
12333 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12334 # Check for a 64-bit object if we didn't find anything.
12335 if test -z "$lt_cv_aix_libpath_"; then
12336 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337 fi
12338fi
12339rm -f core conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
12341 if test -z "$lt_cv_aix_libpath_"; then
12342 lt_cv_aix_libpath_=/usr/lib:/lib
12343 fi
12344
12345fi
12346
12347 aix_libpath=$lt_cv_aix_libpath_
12348fi
12349
12350 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12351 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12352 else
12353 if test ia64 = "$host_cpu"; then
12354 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12355 allow_undefined_flag="-z nodefs"
12356 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"
12357 else
12358 # Determine the default libpath from the value encoded in an
12359 # empty executable.
12360 if test set = "${lt_cv_aix_libpath+set}"; then
12361 aix_libpath=$lt_cv_aix_libpath
12362else
12363 if ${lt_cv_aix_libpath_+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365else
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367/* end confdefs.h. */
12368
12369int
12370main ()
12371{
12372
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378
12379 lt_aix_libpath_sed='
12380 /Import File Strings/,/^$/ {
12381 /^0/ {
12382 s/^0 *\([^ ]*\) *$/\1/
12383 p
12384 }
12385 }'
12386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12387 # Check for a 64-bit object if we didn't find anything.
12388 if test -z "$lt_cv_aix_libpath_"; then
12389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 fi
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 if test -z "$lt_cv_aix_libpath_"; then
12395 lt_cv_aix_libpath_=/usr/lib:/lib
12396 fi
12397
12398fi
12399
12400 aix_libpath=$lt_cv_aix_libpath_
12401fi
12402
12403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12404 # Warning - without using the other run time loading flags,
12405 # -berok will link without error, but may produce a broken library.
12406 no_undefined_flag=' $wl-bernotok'
12407 allow_undefined_flag=' $wl-berok'
12408 if test yes = "$with_gnu_ld"; then
12409 # We only use this code for GNU lds that support --whole-archive.
12410 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12411 else
12412 # Exported symbols can be pulled into shared objects from archives
12413 whole_archive_flag_spec='$convenience'
12414 fi
12415 archive_cmds_need_lc=yes
12416 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12417 # -brtl affects multiple linker settings, -berok does not and is overridden later
12418 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12419 if test svr4 != "$with_aix_soname"; then
12420 # This is similar to how AIX traditionally builds its shared libraries.
12421 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12422 fi
12423 if test aix != "$with_aix_soname"; then
12424 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12425 else
12426 # used by -dlpreopen to get the symbols
12427 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12428 fi
12429 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12430 fi
12431 fi
12432 ;;
12433
12434 amigaos*)
12435 case $host_cpu in
12436 powerpc)
12437 # see comment about AmigaOS4 .so support
12438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12439 archive_expsym_cmds=''
12440 ;;
12441 m68k)
12442 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)'
12443 hardcode_libdir_flag_spec='-L$libdir'
12444 hardcode_minus_L=yes
12445 ;;
12446 esac
12447 ;;
12448
12449 bsdi[45]*)
12450 export_dynamic_flag_spec=-rdynamic
12451 ;;
12452
12453 cygwin* | mingw* | pw32* | cegcc*)
12454 # When not using gcc, we currently assume that we are using
12455 # Microsoft Visual C++.
12456 # hardcode_libdir_flag_spec is actually meaningless, as there is
12457 # no search path for DLLs.
12458 case $cc_basename in
12459 cl*)
12460 # Native MSVC
12461 hardcode_libdir_flag_spec=' '
12462 allow_undefined_flag=unsupported
12463 always_export_symbols=yes
12464 file_list_spec='@'
12465 # Tell ltmain to make .lib files, not .a files.
12466 libext=lib
12467 # Tell ltmain to make .dll files, not .so files.
12468 shrext_cmds=.dll
12469 # FIXME: Setting linknames here is a bad hack.
12470 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12471 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12472 cp "$export_symbols" "$output_objdir/$soname.def";
12473 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12474 else
12475 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12476 fi~
12477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12478 linknames='
12479 # The linker will not automatically build a static lib if we build a DLL.
12480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12481 enable_shared_with_static_runtimes=yes
12482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12484 # Don't use ranlib
12485 old_postinstall_cmds='chmod 644 $oldlib'
12486 postlink_cmds='lt_outputfile="@OUTPUT@"~
12487 lt_tool_outputfile="@TOOL_OUTPUT@"~
12488 case $lt_outputfile in
12489 *.exe|*.EXE) ;;
12490 *)
12491 lt_outputfile=$lt_outputfile.exe
12492 lt_tool_outputfile=$lt_tool_outputfile.exe
12493 ;;
12494 esac~
12495 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12497 $RM "$lt_outputfile.manifest";
12498 fi'
12499 ;;
12500 *)
12501 # Assume MSVC wrapper
12502 hardcode_libdir_flag_spec=' '
12503 allow_undefined_flag=unsupported
12504 # Tell ltmain to make .lib files, not .a files.
12505 libext=lib
12506 # Tell ltmain to make .dll files, not .so files.
12507 shrext_cmds=.dll
12508 # FIXME: Setting linknames here is a bad hack.
12509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12510 # The linker will automatically build a .lib file if we build a DLL.
12511 old_archive_from_new_cmds='true'
12512 # FIXME: Should let the user specify the lib program.
12513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12514 enable_shared_with_static_runtimes=yes
12515 ;;
12516 esac
12517 ;;
12518
12519 darwin* | rhapsody*)
12520
12521
12522 archive_cmds_need_lc=no
12523 hardcode_direct=no
12524 hardcode_automatic=yes
12525 hardcode_shlibpath_var=unsupported
12526 if test yes = "$lt_cv_ld_force_load"; then
12527 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\"`'
12528
12529 else
12530 whole_archive_flag_spec=''
12531 fi
12532 link_all_deplibs=yes
12533 allow_undefined_flag=$_lt_dar_allow_undefined
12534 case $cc_basename in
12535 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12536 *) _lt_dar_can_shared=$GCC ;;
12537 esac
12538 if test yes = "$_lt_dar_can_shared"; then
12539 output_verbose_link_cmd=func_echo_all
12540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12542 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"
12543 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"
12544
12545 else
12546 ld_shlibs=no
12547 fi
12548
12549 ;;
12550
12551 dgux*)
12552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12553 hardcode_libdir_flag_spec='-L$libdir'
12554 hardcode_shlibpath_var=no
12555 ;;
12556
12557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12558 # support. Future versions do this automatically, but an explicit c++rt0.o
12559 # does not break anything, and helps significantly (at the cost of a little
12560 # extra space).
12561 freebsd2.2*)
12562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12563 hardcode_libdir_flag_spec='-R$libdir'
12564 hardcode_direct=yes
12565 hardcode_shlibpath_var=no
12566 ;;
12567
12568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12569 freebsd2.*)
12570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12571 hardcode_direct=yes
12572 hardcode_minus_L=yes
12573 hardcode_shlibpath_var=no
12574 ;;
12575
12576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12577 freebsd* | dragonfly*)
12578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12579 hardcode_libdir_flag_spec='-R$libdir'
12580 hardcode_direct=yes
12581 hardcode_shlibpath_var=no
12582 ;;
12583
12584 hpux9*)
12585 if test yes = "$GCC"; then
12586 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12587 else
12588 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12589 fi
12590 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12591 hardcode_libdir_separator=:
12592 hardcode_direct=yes
12593
12594 # hardcode_minus_L: Not really in the search PATH,
12595 # but as the default location of the library.
12596 hardcode_minus_L=yes
12597 export_dynamic_flag_spec='$wl-E'
12598 ;;
12599
12600 hpux10*)
12601 if test yes,no = "$GCC,$with_gnu_ld"; then
12602 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12603 else
12604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12605 fi
12606 if test no = "$with_gnu_ld"; then
12607 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12608 hardcode_libdir_separator=:
12609 hardcode_direct=yes
12610 hardcode_direct_absolute=yes
12611 export_dynamic_flag_spec='$wl-E'
12612 # hardcode_minus_L: Not really in the search PATH,
12613 # but as the default location of the library.
12614 hardcode_minus_L=yes
12615 fi
12616 ;;
12617
12618 hpux11*)
12619 if test yes,no = "$GCC,$with_gnu_ld"; then
12620 case $host_cpu in
12621 hppa*64*)
12622 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 ;;
12624 ia64*)
12625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12626 ;;
12627 *)
12628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12629 ;;
12630 esac
12631 else
12632 case $host_cpu in
12633 hppa*64*)
12634 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12635 ;;
12636 ia64*)
12637 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12638 ;;
12639 *)
12640
12641 # Older versions of the 11.00 compiler do not understand -b yet
12642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12644$as_echo_n "checking if $CC understands -b... " >&6; }
12645if ${lt_cv_prog_compiler__b+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647else
12648 lt_cv_prog_compiler__b=no
12649 save_LDFLAGS=$LDFLAGS
12650 LDFLAGS="$LDFLAGS -b"
12651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12653 # The linker can only warn and ignore the option if not recognized
12654 # So say no if there are warnings
12655 if test -s conftest.err; then
12656 # Append any errors to the config.log.
12657 cat conftest.err 1>&5
12658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12660 if diff conftest.exp conftest.er2 >/dev/null; then
12661 lt_cv_prog_compiler__b=yes
12662 fi
12663 else
12664 lt_cv_prog_compiler__b=yes
12665 fi
12666 fi
12667 $RM -r conftest*
12668 LDFLAGS=$save_LDFLAGS
12669
12670fi
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12672$as_echo "$lt_cv_prog_compiler__b" >&6; }
12673
12674if test yes = "$lt_cv_prog_compiler__b"; then
12675 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12676else
12677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12678fi
12679
12680 ;;
12681 esac
12682 fi
12683 if test no = "$with_gnu_ld"; then
12684 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12685 hardcode_libdir_separator=:
12686
12687 case $host_cpu in
12688 hppa*64*|ia64*)
12689 hardcode_direct=no
12690 hardcode_shlibpath_var=no
12691 ;;
12692 *)
12693 hardcode_direct=yes
12694 hardcode_direct_absolute=yes
12695 export_dynamic_flag_spec='$wl-E'
12696
12697 # hardcode_minus_L: Not really in the search PATH,
12698 # but as the default location of the library.
12699 hardcode_minus_L=yes
12700 ;;
12701 esac
12702 fi
12703 ;;
12704
12705 irix5* | irix6* | nonstopux*)
12706 if test yes = "$GCC"; then
12707 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'
12708 # Try to use the -exported_symbol ld option, if it does not
12709 # work, assume that -exports_file does not work either and
12710 # implicitly export all symbols.
12711 # This should be the same for all languages, so no per-tag cache variable.
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12713$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12714if ${lt_cv_irix_exported_symbol+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716else
12717 save_LDFLAGS=$LDFLAGS
12718 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h. */
12721int foo (void) { return 0; }
12722_ACEOF
12723if ac_fn_c_try_link "$LINENO"; then :
12724 lt_cv_irix_exported_symbol=yes
12725else
12726 lt_cv_irix_exported_symbol=no
12727fi
12728rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LDFLAGS=$save_LDFLAGS
12731fi
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12733$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12734 if test yes = "$lt_cv_irix_exported_symbol"; then
12735 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'
12736 fi
12737 else
12738 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'
12739 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'
12740 fi
12741 archive_cmds_need_lc='no'
12742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12743 hardcode_libdir_separator=:
12744 inherit_rpath=yes
12745 link_all_deplibs=yes
12746 ;;
12747
12748 linux*)
12749 case $cc_basename in
12750 tcc*)
12751 # Fabrice Bellard et al's Tiny C Compiler
12752 ld_shlibs=yes
12753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12754 ;;
12755 esac
12756 ;;
12757
12758 netbsd*)
12759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12761 else
12762 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12763 fi
12764 hardcode_libdir_flag_spec='-R$libdir'
12765 hardcode_direct=yes
12766 hardcode_shlibpath_var=no
12767 ;;
12768
12769 newsos6)
12770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct=yes
12772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12773 hardcode_libdir_separator=:
12774 hardcode_shlibpath_var=no
12775 ;;
12776
12777 *nto* | *qnx*)
12778 ;;
12779
12780 openbsd* | bitrig*)
12781 if test -f /usr/libexec/ld.so; then
12782 hardcode_direct=yes
12783 hardcode_shlibpath_var=no
12784 hardcode_direct_absolute=yes
12785 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12787 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12788 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12789 export_dynamic_flag_spec='$wl-E'
12790 else
12791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12792 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12793 fi
12794 else
12795 ld_shlibs=no
12796 fi
12797 ;;
12798
12799 os2*)
12800 hardcode_libdir_flag_spec='-L$libdir'
12801 hardcode_minus_L=yes
12802 allow_undefined_flag=unsupported
12803 shrext_cmds=.dll
12804 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12805 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12806 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12807 $ECHO EXPORTS >> $output_objdir/$libname.def~
12808 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12809 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12810 emximp -o $lib $output_objdir/$libname.def'
12811 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12812 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12813 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12814 $ECHO EXPORTS >> $output_objdir/$libname.def~
12815 prefix_cmds="$SED"~
12816 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12817 prefix_cmds="$prefix_cmds -e 1d";
12818 fi~
12819 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12820 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12821 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12822 emximp -o $lib $output_objdir/$libname.def'
12823 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12824 enable_shared_with_static_runtimes=yes
12825 ;;
12826
12827 osf3*)
12828 if test yes = "$GCC"; then
12829 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12830 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'
12831 else
12832 allow_undefined_flag=' -expect_unresolved \*'
12833 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'
12834 fi
12835 archive_cmds_need_lc='no'
12836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12837 hardcode_libdir_separator=:
12838 ;;
12839
12840 osf4* | osf5*) # as osf3* with the addition of -msym flag
12841 if test yes = "$GCC"; then
12842 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12843 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'
12844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12845 else
12846 allow_undefined_flag=' -expect_unresolved \*'
12847 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'
12848 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~
12849 $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'
12850
12851 # Both c and cxx compiler support -rpath directly
12852 hardcode_libdir_flag_spec='-rpath $libdir'
12853 fi
12854 archive_cmds_need_lc='no'
12855 hardcode_libdir_separator=:
12856 ;;
12857
12858 solaris*)
12859 no_undefined_flag=' -z defs'
12860 if test yes = "$GCC"; then
12861 wlarc='$wl'
12862 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12864 $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'
12865 else
12866 case `$CC -V 2>&1` in
12867 *"Compilers 5.0"*)
12868 wlarc=''
12869 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12871 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12872 ;;
12873 *)
12874 wlarc='$wl'
12875 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12877 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12878 ;;
12879 esac
12880 fi
12881 hardcode_libdir_flag_spec='-R$libdir'
12882 hardcode_shlibpath_var=no
12883 case $host_os in
12884 solaris2.[0-5] | solaris2.[0-5].*) ;;
12885 *)
12886 # The compiler driver will combine and reorder linker options,
12887 # but understands '-z linker_flag'. GCC discards it without '$wl',
12888 # but is careful enough not to reorder.
12889 # Supported since Solaris 2.6 (maybe 2.5.1?)
12890 if test yes = "$GCC"; then
12891 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12892 else
12893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12894 fi
12895 ;;
12896 esac
12897 link_all_deplibs=yes
12898 ;;
12899
12900 sunos4*)
12901 if test sequent = "$host_vendor"; then
12902 # Use $CC to link under sequent, because it throws in some extra .o
12903 # files that make .init and .fini sections work.
12904 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12905 else
12906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12907 fi
12908 hardcode_libdir_flag_spec='-L$libdir'
12909 hardcode_direct=yes
12910 hardcode_minus_L=yes
12911 hardcode_shlibpath_var=no
12912 ;;
12913
12914 sysv4)
12915 case $host_vendor in
12916 sni)
12917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918 hardcode_direct=yes # is this really true???
12919 ;;
12920 siemens)
12921 ## LD is ld it makes a PLAMLIB
12922 ## CC just makes a GrossModule.
12923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12924 reload_cmds='$CC -r -o $output$reload_objs'
12925 hardcode_direct=no
12926 ;;
12927 motorola)
12928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12930 ;;
12931 esac
12932 runpath_var='LD_RUN_PATH'
12933 hardcode_shlibpath_var=no
12934 ;;
12935
12936 sysv4.3*)
12937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12938 hardcode_shlibpath_var=no
12939 export_dynamic_flag_spec='-Bexport'
12940 ;;
12941
12942 sysv4*MP*)
12943 if test -d /usr/nec; then
12944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945 hardcode_shlibpath_var=no
12946 runpath_var=LD_RUN_PATH
12947 hardcode_runpath_var=yes
12948 ld_shlibs=yes
12949 fi
12950 ;;
12951
12952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12953 no_undefined_flag='$wl-z,text'
12954 archive_cmds_need_lc=no
12955 hardcode_shlibpath_var=no
12956 runpath_var='LD_RUN_PATH'
12957
12958 if test yes = "$GCC"; then
12959 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961 else
12962 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964 fi
12965 ;;
12966
12967 sysv5* | sco3.2v5* | sco5v6*)
12968 # Note: We CANNOT use -z defs as we might desire, because we do not
12969 # link with -lc, and that would cause any symbols used from libc to
12970 # always be unresolved, which means just about no library would
12971 # ever link correctly. If we're not using GNU ld we use -z text
12972 # though, which does catch some bad symbols but isn't as heavy-handed
12973 # as -z defs.
12974 no_undefined_flag='$wl-z,text'
12975 allow_undefined_flag='$wl-z,nodefs'
12976 archive_cmds_need_lc=no
12977 hardcode_shlibpath_var=no
12978 hardcode_libdir_flag_spec='$wl-R,$libdir'
12979 hardcode_libdir_separator=':'
12980 link_all_deplibs=yes
12981 export_dynamic_flag_spec='$wl-Bexport'
12982 runpath_var='LD_RUN_PATH'
12983
12984 if test yes = "$GCC"; then
12985 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987 else
12988 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 fi
12991 ;;
12992
12993 uts4*)
12994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12995 hardcode_libdir_flag_spec='-L$libdir'
12996 hardcode_shlibpath_var=no
12997 ;;
12998
12999 *)
13000 ld_shlibs=no
13001 ;;
13002 esac
13003
13004 if test sni = "$host_vendor"; then
13005 case $host in
13006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13007 export_dynamic_flag_spec='$wl-Blargedynsym'
13008 ;;
13009 esac
13010 fi
13011 fi
13012
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13014$as_echo "$ld_shlibs" >&6; }
13015test no = "$ld_shlibs" && can_build_shared=no
13016
13017with_gnu_ld=$with_gnu_ld
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033#
13034# Do we need to explicitly link libc?
13035#
13036case "x$archive_cmds_need_lc" in
13037x|xyes)
13038 # Assume -lc should be added
13039 archive_cmds_need_lc=yes
13040
13041 if test yes,yes = "$GCC,$enable_shared"; then
13042 case $archive_cmds in
13043 *'~'*)
13044 # FIXME: we may have to deal with multi-command sequences.
13045 ;;
13046 '$CC '*)
13047 # Test whether the compiler implicitly links with -lc since on some
13048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13049 # to ld, don't add -lc before -lgcc.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13051$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13052if ${lt_cv_archive_cmds_need_lc+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054else
13055 $RM -r conftest*
13056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13057
13058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13059 (eval $ac_compile) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; } 2>conftest.err; then
13063 soname=conftest
13064 lib=conftest
13065 libobjs=conftest.$ac_objext
13066 deplibs=
13067 wl=$lt_prog_compiler_wl
13068 pic_flag=$lt_prog_compiler_pic
13069 compiler_flags=-v
13070 linker_flags=-v
13071 verstring=
13072 output_objdir=.
13073 libname=conftest
13074 lt_save_allow_undefined_flag=$allow_undefined_flag
13075 allow_undefined_flag=
13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13077 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; }
13081 then
13082 lt_cv_archive_cmds_need_lc=no
13083 else
13084 lt_cv_archive_cmds_need_lc=yes
13085 fi
13086 allow_undefined_flag=$lt_save_allow_undefined_flag
13087 else
13088 cat conftest.err 1>&5
13089 fi
13090 $RM -r conftest*
13091
13092fi
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13094$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13095 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13096 ;;
13097 esac
13098 fi
13099 ;;
13100esac
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13254$as_echo_n "checking dynamic linker characteristics... " >&6; }
13255
13256if test yes = "$GCC"; then
13257 case $host_os in
13258 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13259 *) lt_awk_arg='/^libraries:/' ;;
13260 esac
13261 case $host_os in
13262 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13263 *) lt_sed_strip_eq='s|=/|/|g' ;;
13264 esac
13265 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13266 case $lt_search_path_spec in
13267 *\;*)
13268 # if the path contains ";" then we assume it to be the separator
13269 # otherwise default to the standard path separator (i.e. ":") - it is
13270 # assumed that no part of a normal pathname contains ";" but that should
13271 # okay in the real world where ";" in dirpaths is itself problematic.
13272 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13273 ;;
13274 *)
13275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13276 ;;
13277 esac
13278 # Ok, now we have the path, separated by spaces, we can step through it
13279 # and add multilib dir if necessary...
13280 lt_tmp_lt_search_path_spec=
13281 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13282 # ...but if some path component already ends with the multilib dir we assume
13283 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13284 case "$lt_multi_os_dir; $lt_search_path_spec " in
13285 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13286 lt_multi_os_dir=
13287 ;;
13288 esac
13289 for lt_sys_path in $lt_search_path_spec; do
13290 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13292 elif test -n "$lt_multi_os_dir"; then
13293 test -d "$lt_sys_path" && \
13294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13295 fi
13296 done
13297 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13298BEGIN {RS = " "; FS = "/|\n";} {
13299 lt_foo = "";
13300 lt_count = 0;
13301 for (lt_i = NF; lt_i > 0; lt_i--) {
13302 if ($lt_i != "" && $lt_i != ".") {
13303 if ($lt_i == "..") {
13304 lt_count++;
13305 } else {
13306 if (lt_count == 0) {
13307 lt_foo = "/" $lt_i lt_foo;
13308 } else {
13309 lt_count--;
13310 }
13311 }
13312 }
13313 }
13314 if (lt_foo != "") { lt_freq[lt_foo]++; }
13315 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13316}'`
13317 # AWK program above erroneously prepends '/' to C:/dos/paths
13318 # for these hosts.
13319 case $host_os in
13320 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13321 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13322 esac
13323 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13324else
13325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13326fi
13327library_names_spec=
13328libname_spec='lib$name'
13329soname_spec=
13330shrext_cmds=.so
13331postinstall_cmds=
13332postuninstall_cmds=
13333finish_cmds=
13334finish_eval=
13335shlibpath_var=
13336shlibpath_overrides_runpath=unknown
13337version_type=none
13338dynamic_linker="$host_os ld.so"
13339sys_lib_dlsearch_path_spec="/lib /usr/lib"
13340need_lib_prefix=unknown
13341hardcode_into_libs=no
13342
13343# when you set need_version to no, make sure it does not cause -set_version
13344# flags to be left without arguments
13345need_version=unknown
13346
13347
13348
13349case $host_os in
13350aix3*)
13351 version_type=linux # correct to gnu/linux during the next big refactor
13352 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13353 shlibpath_var=LIBPATH
13354
13355 # AIX 3 has no versioning support, so we append a major version to the name.
13356 soname_spec='$libname$release$shared_ext$major'
13357 ;;
13358
13359aix[4-9]*)
13360 version_type=linux # correct to gnu/linux during the next big refactor
13361 need_lib_prefix=no
13362 need_version=no
13363 hardcode_into_libs=yes
13364 if test ia64 = "$host_cpu"; then
13365 # AIX 5 supports IA64
13366 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13367 shlibpath_var=LD_LIBRARY_PATH
13368 else
13369 # With GCC up to 2.95.x, collect2 would create an import file
13370 # for dependence libraries. The import file would start with
13371 # the line '#! .'. This would cause the generated library to
13372 # depend on '.', always an invalid library. This was fixed in
13373 # development snapshots of GCC prior to 3.0.
13374 case $host_os in
13375 aix4 | aix4.[01] | aix4.[01].*)
13376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13377 echo ' yes '
13378 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13379 :
13380 else
13381 can_build_shared=no
13382 fi
13383 ;;
13384 esac
13385 # Using Import Files as archive members, it is possible to support
13386 # filename-based versioning of shared library archives on AIX. While
13387 # this would work for both with and without runtime linking, it will
13388 # prevent static linking of such archives. So we do filename-based
13389 # shared library versioning with .so extension only, which is used
13390 # when both runtime linking and shared linking is enabled.
13391 # Unfortunately, runtime linking may impact performance, so we do
13392 # not want this to be the default eventually. Also, we use the
13393 # versioned .so libs for executables only if there is the -brtl
13394 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13395 # To allow for filename-based versioning support, we need to create
13396 # libNAME.so.V as an archive file, containing:
13397 # *) an Import File, referring to the versioned filename of the
13398 # archive as well as the shared archive member, telling the
13399 # bitwidth (32 or 64) of that shared object, and providing the
13400 # list of exported symbols of that shared object, eventually
13401 # decorated with the 'weak' keyword
13402 # *) the shared object with the F_LOADONLY flag set, to really avoid
13403 # it being seen by the linker.
13404 # At run time we better use the real file rather than another symlink,
13405 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13406
13407 case $with_aix_soname,$aix_use_runtimelinking in
13408 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13409 # soname into executable. Probably we can add versioning support to
13410 # collect2, so additional links can be useful in future.
13411 aix,yes) # traditional libtool
13412 dynamic_linker='AIX unversionable lib.so'
13413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13414 # instead of lib<name>.a to let people know that these are not
13415 # typical AIX shared libraries.
13416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13417 ;;
13418 aix,no) # traditional AIX only
13419 dynamic_linker='AIX lib.a(lib.so.V)'
13420 # We preserve .a as extension for shared libraries through AIX4.2
13421 # and later when we are not doing run time linking.
13422 library_names_spec='$libname$release.a $libname.a'
13423 soname_spec='$libname$release$shared_ext$major'
13424 ;;
13425 svr4,*) # full svr4 only
13426 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13427 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13428 # We do not specify a path in Import Files, so LIBPATH fires.
13429 shlibpath_overrides_runpath=yes
13430 ;;
13431 *,yes) # both, prefer svr4
13432 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13433 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13434 # unpreferred sharedlib libNAME.a needs extra handling
13435 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13436 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13437 # We do not specify a path in Import Files, so LIBPATH fires.
13438 shlibpath_overrides_runpath=yes
13439 ;;
13440 *,no) # both, prefer aix
13441 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13442 library_names_spec='$libname$release.a $libname.a'
13443 soname_spec='$libname$release$shared_ext$major'
13444 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13445 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13446 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13447 ;;
13448 esac
13449 shlibpath_var=LIBPATH
13450 fi
13451 ;;
13452
13453amigaos*)
13454 case $host_cpu in
13455 powerpc)
13456 # Since July 2007 AmigaOS4 officially supports .so libraries.
13457 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13459 ;;
13460 m68k)
13461 library_names_spec='$libname.ixlibrary $libname.a'
13462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13463 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13464 ;;
13465 esac
13466 ;;
13467
13468beos*)
13469 library_names_spec='$libname$shared_ext'
13470 dynamic_linker="$host_os ld.so"
13471 shlibpath_var=LIBRARY_PATH
13472 ;;
13473
13474bsdi[45]*)
13475 version_type=linux # correct to gnu/linux during the next big refactor
13476 need_version=no
13477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13478 soname_spec='$libname$release$shared_ext$major'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13483 # the default ld.so.conf also contains /usr/contrib/lib and
13484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13485 # libtool to hard-code these into programs
13486 ;;
13487
13488cygwin* | mingw* | pw32* | cegcc*)
13489 version_type=windows
13490 shrext_cmds=.dll
13491 need_version=no
13492 need_lib_prefix=no
13493
13494 case $GCC,$cc_basename in
13495 yes,*)
13496 # gcc
13497 library_names_spec='$libname.dll.a'
13498 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13499 postinstall_cmds='base_file=`basename \$file`~
13500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13501 dldir=$destdir/`dirname \$dlpath`~
13502 test -d \$dldir || mkdir -p \$dldir~
13503 $install_prog $dir/$dlname \$dldir/$dlname~
13504 chmod a+x \$dldir/$dlname~
13505 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13506 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13507 fi'
13508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13509 dlpath=$dir/\$dldll~
13510 $RM \$dlpath'
13511 shlibpath_overrides_runpath=yes
13512
13513 case $host_os in
13514 cygwin*)
13515 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13516 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13517
13518 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13519 ;;
13520 mingw* | cegcc*)
13521 # MinGW DLLs use traditional 'lib' prefix
13522 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13523 ;;
13524 pw32*)
13525 # pw32 DLLs use 'pw' prefix rather than 'lib'
13526 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13527 ;;
13528 esac
13529 dynamic_linker='Win32 ld.exe'
13530 ;;
13531
13532 *,cl*)
13533 # Native MSVC
13534 libname_spec='$name'
13535 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13536 library_names_spec='$libname.dll.lib'
13537
13538 case $build_os in
13539 mingw*)
13540 sys_lib_search_path_spec=
13541 lt_save_ifs=$IFS
13542 IFS=';'
13543 for lt_path in $LIB
13544 do
13545 IFS=$lt_save_ifs
13546 # Let DOS variable expansion print the short 8.3 style file name.
13547 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13548 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13549 done
13550 IFS=$lt_save_ifs
13551 # Convert to MSYS style.
13552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13553 ;;
13554 cygwin*)
13555 # Convert to unix form, then to dos form, then back to unix form
13556 # but this time dos style (no spaces!) so that the unix form looks
13557 # like /cygdrive/c/PROGRA~1:/cygdr...
13558 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13559 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13560 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13561 ;;
13562 *)
13563 sys_lib_search_path_spec=$LIB
13564 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13565 # It is most probably a Windows format PATH.
13566 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13567 else
13568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13569 fi
13570 # FIXME: find the short name or the path components, as spaces are
13571 # common. (e.g. "Program Files" -> "PROGRA~1")
13572 ;;
13573 esac
13574
13575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13576 postinstall_cmds='base_file=`basename \$file`~
13577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13578 dldir=$destdir/`dirname \$dlpath`~
13579 test -d \$dldir || mkdir -p \$dldir~
13580 $install_prog $dir/$dlname \$dldir/$dlname'
13581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13582 dlpath=$dir/\$dldll~
13583 $RM \$dlpath'
13584 shlibpath_overrides_runpath=yes
13585 dynamic_linker='Win32 link.exe'
13586 ;;
13587
13588 *)
13589 # Assume MSVC wrapper
13590 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13591 dynamic_linker='Win32 ld.exe'
13592 ;;
13593 esac
13594 # FIXME: first we should search . and the directory the executable is in
13595 shlibpath_var=PATH
13596 ;;
13597
13598darwin* | rhapsody*)
13599 dynamic_linker="$host_os dyld"
13600 version_type=darwin
13601 need_lib_prefix=no
13602 need_version=no
13603 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13604 soname_spec='$libname$release$major$shared_ext'
13605 shlibpath_overrides_runpath=yes
13606 shlibpath_var=DYLD_LIBRARY_PATH
13607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13608
13609 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13611 ;;
13612
13613dgux*)
13614 version_type=linux # correct to gnu/linux during the next big refactor
13615 need_lib_prefix=no
13616 need_version=no
13617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13618 soname_spec='$libname$release$shared_ext$major'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 ;;
13621
13622freebsd* | dragonfly*)
13623 # DragonFly does not have aout. When/if they implement a new
13624 # versioning mechanism, adjust this.
13625 if test -x /usr/bin/objformat; then
13626 objformat=`/usr/bin/objformat`
13627 else
13628 case $host_os in
13629 freebsd[23].*) objformat=aout ;;
13630 *) objformat=elf ;;
13631 esac
13632 fi
13633 version_type=freebsd-$objformat
13634 case $version_type in
13635 freebsd-elf*)
13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637 soname_spec='$libname$release$shared_ext$major'
13638 need_version=no
13639 need_lib_prefix=no
13640 ;;
13641 freebsd-*)
13642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13643 need_version=yes
13644 ;;
13645 esac
13646 shlibpath_var=LD_LIBRARY_PATH
13647 case $host_os in
13648 freebsd2.*)
13649 shlibpath_overrides_runpath=yes
13650 ;;
13651 freebsd3.[01]* | freebsdelf3.[01]*)
13652 shlibpath_overrides_runpath=yes
13653 hardcode_into_libs=yes
13654 ;;
13655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13657 shlibpath_overrides_runpath=no
13658 hardcode_into_libs=yes
13659 ;;
13660 *) # from 4.6 on, and DragonFly
13661 shlibpath_overrides_runpath=yes
13662 hardcode_into_libs=yes
13663 ;;
13664 esac
13665 ;;
13666
13667haiku*)
13668 version_type=linux # correct to gnu/linux during the next big refactor
13669 need_lib_prefix=no
13670 need_version=no
13671 dynamic_linker="$host_os runtime_loader"
13672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13673 soname_spec='$libname$release$shared_ext$major'
13674 shlibpath_var=LIBRARY_PATH
13675 shlibpath_overrides_runpath=no
13676 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13677 hardcode_into_libs=yes
13678 ;;
13679
13680hpux9* | hpux10* | hpux11*)
13681 # Give a soname corresponding to the major version so that dld.sl refuses to
13682 # link against other versions.
13683 version_type=sunos
13684 need_lib_prefix=no
13685 need_version=no
13686 case $host_cpu in
13687 ia64*)
13688 shrext_cmds='.so'
13689 hardcode_into_libs=yes
13690 dynamic_linker="$host_os dld.so"
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13694 soname_spec='$libname$release$shared_ext$major'
13695 if test 32 = "$HPUX_IA64_MODE"; then
13696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13697 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13698 else
13699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13700 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13701 fi
13702 ;;
13703 hppa*64*)
13704 shrext_cmds='.sl'
13705 hardcode_into_libs=yes
13706 dynamic_linker="$host_os dld.sl"
13707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13710 soname_spec='$libname$release$shared_ext$major'
13711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13713 ;;
13714 *)
13715 shrext_cmds='.sl'
13716 dynamic_linker="$host_os dld.sl"
13717 shlibpath_var=SHLIB_PATH
13718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13720 soname_spec='$libname$release$shared_ext$major'
13721 ;;
13722 esac
13723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13724 postinstall_cmds='chmod 555 $lib'
13725 # or fails outright, so override atomically:
13726 install_override_mode=555
13727 ;;
13728
13729interix[3-9]*)
13730 version_type=linux # correct to gnu/linux during the next big refactor
13731 need_lib_prefix=no
13732 need_version=no
13733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13734 soname_spec='$libname$release$shared_ext$major'
13735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=no
13738 hardcode_into_libs=yes
13739 ;;
13740
13741irix5* | irix6* | nonstopux*)
13742 case $host_os in
13743 nonstopux*) version_type=nonstopux ;;
13744 *)
13745 if test yes = "$lt_cv_prog_gnu_ld"; then
13746 version_type=linux # correct to gnu/linux during the next big refactor
13747 else
13748 version_type=irix
13749 fi ;;
13750 esac
13751 need_lib_prefix=no
13752 need_version=no
13753 soname_spec='$libname$release$shared_ext$major'
13754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13755 case $host_os in
13756 irix5* | nonstopux*)
13757 libsuff= shlibsuff=
13758 ;;
13759 *)
13760 case $LD in # libtool.m4 will add one of these switches to LD
13761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13762 libsuff= shlibsuff= libmagic=32-bit;;
13763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13764 libsuff=32 shlibsuff=N32 libmagic=N32;;
13765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13767 *) libsuff= shlibsuff= libmagic=never-match;;
13768 esac
13769 ;;
13770 esac
13771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13772 shlibpath_overrides_runpath=no
13773 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13774 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13775 hardcode_into_libs=yes
13776 ;;
13777
13778# No shared lib support for Linux oldld, aout, or coff.
13779linux*oldld* | linux*aout* | linux*coff*)
13780 dynamic_linker=no
13781 ;;
13782
13783linux*android*)
13784 version_type=none # Android doesn't support versioned libraries.
13785 need_lib_prefix=no
13786 need_version=no
13787 library_names_spec='$libname$release$shared_ext'
13788 soname_spec='$libname$release$shared_ext'
13789 finish_cmds=
13790 shlibpath_var=LD_LIBRARY_PATH
13791 shlibpath_overrides_runpath=yes
13792
13793 # This implies no fast_install, which is unacceptable.
13794 # Some rework will be needed to allow for fast_install
13795 # before this can be enabled.
13796 hardcode_into_libs=yes
13797
13798 dynamic_linker='Android linker'
13799 # Don't embed -rpath directories since the linker doesn't support them.
13800 hardcode_libdir_flag_spec='-L$libdir'
13801 ;;
13802
13803# This must be glibc/ELF.
13804linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13805 version_type=linux # correct to gnu/linux during the next big refactor
13806 need_lib_prefix=no
13807 need_version=no
13808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13809 soname_spec='$libname$release$shared_ext$major'
13810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13811 shlibpath_var=LD_LIBRARY_PATH
13812 shlibpath_overrides_runpath=no
13813
13814 # Some binutils ld are patched to set DT_RUNPATH
13815 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817else
13818 lt_cv_shlibpath_overrides_runpath=no
13819 save_LDFLAGS=$LDFLAGS
13820 save_libdir=$libdir
13821 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13822 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824/* end confdefs.h. */
13825
13826int
13827main ()
13828{
13829
13830 ;
13831 return 0;
13832}
13833_ACEOF
13834if ac_fn_c_try_link "$LINENO"; then :
13835 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13836 lt_cv_shlibpath_overrides_runpath=yes
13837fi
13838fi
13839rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 LDFLAGS=$save_LDFLAGS
13842 libdir=$save_libdir
13843
13844fi
13845
13846 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13847
13848 # This implies no fast_install, which is unacceptable.
13849 # Some rework will be needed to allow for fast_install
13850 # before this can be enabled.
13851 hardcode_into_libs=yes
13852
13853 # Ideally, we could use ldconfig to report *all* directores which are
13854 # searched for libraries, however this is still not possible. Aside from not
13855 # being certain /sbin/ldconfig is available, command
13856 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13857 # even though it is searched at run-time. Try to do the best guess by
13858 # appending ld.so.conf contents (and includes) to the search path.
13859 if test -f /etc/ld.so.conf; then
13860 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' ' '`
13861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13862 fi
13863
13864 # We used to test for /lib/ld.so.1 and disable shared libraries on
13865 # powerpc, because MkLinux only supported shared libraries with the
13866 # GNU dynamic linker. Since this was broken with cross compilers,
13867 # most powerpc-linux boxes support dynamic linking these days and
13868 # people can always --disable-shared, the test was removed, and we
13869 # assume the GNU/Linux dynamic linker is in use.
13870 dynamic_linker='GNU/Linux ld.so'
13871 ;;
13872
13873netbsd*)
13874 version_type=sunos
13875 need_lib_prefix=no
13876 need_version=no
13877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13878 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13880 dynamic_linker='NetBSD (a.out) ld.so'
13881 else
13882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13883 soname_spec='$libname$release$shared_ext$major'
13884 dynamic_linker='NetBSD ld.elf_so'
13885 fi
13886 shlibpath_var=LD_LIBRARY_PATH
13887 shlibpath_overrides_runpath=yes
13888 hardcode_into_libs=yes
13889 ;;
13890
13891newsos6)
13892 version_type=linux # correct to gnu/linux during the next big refactor
13893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13894 shlibpath_var=LD_LIBRARY_PATH
13895 shlibpath_overrides_runpath=yes
13896 ;;
13897
13898*nto* | *qnx*)
13899 version_type=qnx
13900 need_lib_prefix=no
13901 need_version=no
13902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13903 soname_spec='$libname$release$shared_ext$major'
13904 shlibpath_var=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath=no
13906 hardcode_into_libs=yes
13907 dynamic_linker='ldqnx.so'
13908 ;;
13909
13910openbsd* | bitrig*)
13911 version_type=sunos
13912 sys_lib_dlsearch_path_spec=/usr/lib
13913 need_lib_prefix=no
13914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13915 need_version=no
13916 else
13917 need_version=yes
13918 fi
13919 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=yes
13923 ;;
13924
13925os2*)
13926 libname_spec='$name'
13927 version_type=windows
13928 shrext_cmds=.dll
13929 need_version=no
13930 need_lib_prefix=no
13931 # OS/2 can only load a DLL with a base name of 8 characters or less.
13932 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13933 v=$($ECHO $release$versuffix | tr -d .-);
13934 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13935 $ECHO $n$v`$shared_ext'
13936 library_names_spec='${libname}_dll.$libext'
13937 dynamic_linker='OS/2 ld.exe'
13938 shlibpath_var=BEGINLIBPATH
13939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941 postinstall_cmds='base_file=`basename \$file`~
13942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13943 dldir=$destdir/`dirname \$dlpath`~
13944 test -d \$dldir || mkdir -p \$dldir~
13945 $install_prog $dir/$dlname \$dldir/$dlname~
13946 chmod a+x \$dldir/$dlname~
13947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13949 fi'
13950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13951 dlpath=$dir/\$dldll~
13952 $RM \$dlpath'
13953 ;;
13954
13955osf3* | osf4* | osf5*)
13956 version_type=osf
13957 need_lib_prefix=no
13958 need_version=no
13959 soname_spec='$libname$release$shared_ext$major'
13960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964 ;;
13965
13966rdos*)
13967 dynamic_linker=no
13968 ;;
13969
13970solaris*)
13971 version_type=linux # correct to gnu/linux during the next big refactor
13972 need_lib_prefix=no
13973 need_version=no
13974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13975 soname_spec='$libname$release$shared_ext$major'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 shlibpath_overrides_runpath=yes
13978 hardcode_into_libs=yes
13979 # ldd complains unless libraries are executable
13980 postinstall_cmds='chmod +x $lib'
13981 ;;
13982
13983sunos4*)
13984 version_type=sunos
13985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=yes
13989 if test yes = "$with_gnu_ld"; then
13990 need_lib_prefix=no
13991 fi
13992 need_version=yes
13993 ;;
13994
13995sysv4 | sysv4.3*)
13996 version_type=linux # correct to gnu/linux during the next big refactor
13997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13998 soname_spec='$libname$release$shared_ext$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 case $host_vendor in
14001 sni)
14002 shlibpath_overrides_runpath=no
14003 need_lib_prefix=no
14004 runpath_var=LD_RUN_PATH
14005 ;;
14006 siemens)
14007 need_lib_prefix=no
14008 ;;
14009 motorola)
14010 need_lib_prefix=no
14011 need_version=no
14012 shlibpath_overrides_runpath=no
14013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14014 ;;
14015 esac
14016 ;;
14017
14018sysv4*MP*)
14019 if test -d /usr/nec; then
14020 version_type=linux # correct to gnu/linux during the next big refactor
14021 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14022 soname_spec='$libname$shared_ext.$major'
14023 shlibpath_var=LD_LIBRARY_PATH
14024 fi
14025 ;;
14026
14027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14028 version_type=sco
14029 need_lib_prefix=no
14030 need_version=no
14031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14032 soname_spec='$libname$release$shared_ext$major'
14033 shlibpath_var=LD_LIBRARY_PATH
14034 shlibpath_overrides_runpath=yes
14035 hardcode_into_libs=yes
14036 if test yes = "$with_gnu_ld"; then
14037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14038 else
14039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14040 case $host_os in
14041 sco3.2v5*)
14042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14043 ;;
14044 esac
14045 fi
14046 sys_lib_dlsearch_path_spec='/usr/lib'
14047 ;;
14048
14049tpf*)
14050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14051 version_type=linux # correct to gnu/linux during the next big refactor
14052 need_lib_prefix=no
14053 need_version=no
14054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=no
14057 hardcode_into_libs=yes
14058 ;;
14059
14060uts4*)
14061 version_type=linux # correct to gnu/linux during the next big refactor
14062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14063 soname_spec='$libname$release$shared_ext$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 ;;
14066
14067*)
14068 dynamic_linker=no
14069 ;;
14070esac
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14072$as_echo "$dynamic_linker" >&6; }
14073test no = "$dynamic_linker" && can_build_shared=no
14074
14075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14076if test yes = "$GCC"; then
14077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14078fi
14079
14080if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14081 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14082fi
14083
14084if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14085 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14086fi
14087
14088# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14089configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14090
14091# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14092func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14093
14094# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14095configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14194$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14195hardcode_action=
14196if test -n "$hardcode_libdir_flag_spec" ||
14197 test -n "$runpath_var" ||
14198 test yes = "$hardcode_automatic"; then
14199
14200 # We can hardcode non-existent directories.
14201 if test no != "$hardcode_direct" &&
14202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14203 # have to relink, otherwise we might link with an installed library
14204 # when we should be linking with a yet-to-be-installed one
14205 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14206 test no != "$hardcode_minus_L"; then
14207 # Linking always hardcodes the temporary library directory.
14208 hardcode_action=relink
14209 else
14210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14211 hardcode_action=immediate
14212 fi
14213else
14214 # We cannot hardcode anything, or else we can only hardcode existing
14215 # directories.
14216 hardcode_action=unsupported
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14219$as_echo "$hardcode_action" >&6; }
14220
14221if test relink = "$hardcode_action" ||
14222 test yes = "$inherit_rpath"; then
14223 # Fast installation is not supported
14224 enable_fast_install=no
14225elif test yes = "$shlibpath_overrides_runpath" ||
14226 test no = "$enable_shared"; then
14227 # Fast installation is not necessary
14228 enable_fast_install=needless
14229fi
14230
14231
14232
14233
14234
14235
14236 if test yes != "$enable_dlopen"; then
14237 enable_dlopen=unknown
14238 enable_dlopen_self=unknown
14239 enable_dlopen_self_static=unknown
14240else
14241 lt_cv_dlopen=no
14242 lt_cv_dlopen_libs=
14243
14244 case $host_os in
14245 beos*)
14246 lt_cv_dlopen=load_add_on
14247 lt_cv_dlopen_libs=
14248 lt_cv_dlopen_self=yes
14249 ;;
14250
14251 mingw* | pw32* | cegcc*)
14252 lt_cv_dlopen=LoadLibrary
14253 lt_cv_dlopen_libs=
14254 ;;
14255
14256 cygwin*)
14257 lt_cv_dlopen=dlopen
14258 lt_cv_dlopen_libs=
14259 ;;
14260
14261 darwin*)
14262 # if libdl is installed we need to link against it
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14264$as_echo_n "checking for dlopen in -ldl... " >&6; }
14265if ${ac_cv_lib_dl_dlopen+:} false; then :
14266 $as_echo_n "(cached) " >&6
14267else
14268 ac_check_lib_save_LIBS=$LIBS
14269LIBS="-ldl $LIBS"
14270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h. */
14272
14273/* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276#ifdef __cplusplus
14277extern "C"
14278#endif
14279char dlopen ();
14280int
14281main ()
14282{
14283return dlopen ();
14284 ;
14285 return 0;
14286}
14287_ACEOF
14288if ac_fn_c_try_link "$LINENO"; then :
14289 ac_cv_lib_dl_dlopen=yes
14290else
14291 ac_cv_lib_dl_dlopen=no
14292fi
14293rm -f core conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14295LIBS=$ac_check_lib_save_LIBS
14296fi
14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14298$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14299if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14300 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14301else
14302
14303 lt_cv_dlopen=dyld
14304 lt_cv_dlopen_libs=
14305 lt_cv_dlopen_self=yes
14306
14307fi
14308
14309 ;;
14310
14311 tpf*)
14312 # Don't try to run any link tests for TPF. We know it's impossible
14313 # because TPF is a cross-compiler, and we know how we open DSOs.
14314 lt_cv_dlopen=dlopen
14315 lt_cv_dlopen_libs=
14316 lt_cv_dlopen_self=no
14317 ;;
14318
14319 *)
14320 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14321if test "x$ac_cv_func_shl_load" = xyes; then :
14322 lt_cv_dlopen=shl_load
14323else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14325$as_echo_n "checking for shl_load in -ldld... " >&6; }
14326if ${ac_cv_lib_dld_shl_load+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328else
14329 ac_check_lib_save_LIBS=$LIBS
14330LIBS="-ldld $LIBS"
14331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332/* end confdefs.h. */
14333
14334/* Override any GCC internal prototype to avoid an error.
14335 Use char because int might match the return type of a GCC
14336 builtin and then its argument prototype would still apply. */
14337#ifdef __cplusplus
14338extern "C"
14339#endif
14340char shl_load ();
14341int
14342main ()
14343{
14344return shl_load ();
14345 ;
14346 return 0;
14347}
14348_ACEOF
14349if ac_fn_c_try_link "$LINENO"; then :
14350 ac_cv_lib_dld_shl_load=yes
14351else
14352 ac_cv_lib_dld_shl_load=no
14353fi
14354rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356LIBS=$ac_check_lib_save_LIBS
14357fi
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14359$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14360if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14361 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14362else
14363 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14364if test "x$ac_cv_func_dlopen" = xyes; then :
14365 lt_cv_dlopen=dlopen
14366else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14368$as_echo_n "checking for dlopen in -ldl... " >&6; }
14369if ${ac_cv_lib_dl_dlopen+:} false; then :
14370 $as_echo_n "(cached) " >&6
14371else
14372 ac_check_lib_save_LIBS=$LIBS
14373LIBS="-ldl $LIBS"
14374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375/* end confdefs.h. */
14376
14377/* Override any GCC internal prototype to avoid an error.
14378 Use char because int might match the return type of a GCC
14379 builtin and then its argument prototype would still apply. */
14380#ifdef __cplusplus
14381extern "C"
14382#endif
14383char dlopen ();
14384int
14385main ()
14386{
14387return dlopen ();
14388 ;
14389 return 0;
14390}
14391_ACEOF
14392if ac_fn_c_try_link "$LINENO"; then :
14393 ac_cv_lib_dl_dlopen=yes
14394else
14395 ac_cv_lib_dl_dlopen=no
14396fi
14397rm -f core conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14399LIBS=$ac_check_lib_save_LIBS
14400fi
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14402$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14403if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14404 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14405else
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14407$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14408if ${ac_cv_lib_svld_dlopen+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410else
14411 ac_check_lib_save_LIBS=$LIBS
14412LIBS="-lsvld $LIBS"
14413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h. */
14415
14416/* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419#ifdef __cplusplus
14420extern "C"
14421#endif
14422char dlopen ();
14423int
14424main ()
14425{
14426return dlopen ();
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431if ac_fn_c_try_link "$LINENO"; then :
14432 ac_cv_lib_svld_dlopen=yes
14433else
14434 ac_cv_lib_svld_dlopen=no
14435fi
14436rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438LIBS=$ac_check_lib_save_LIBS
14439fi
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14441$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14442if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14443 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14444else
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14446$as_echo_n "checking for dld_link in -ldld... " >&6; }
14447if ${ac_cv_lib_dld_dld_link+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449else
14450 ac_check_lib_save_LIBS=$LIBS
14451LIBS="-ldld $LIBS"
14452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453/* end confdefs.h. */
14454
14455/* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14458#ifdef __cplusplus
14459extern "C"
14460#endif
14461char dld_link ();
14462int
14463main ()
14464{
14465return dld_link ();
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470if ac_fn_c_try_link "$LINENO"; then :
14471 ac_cv_lib_dld_dld_link=yes
14472else
14473 ac_cv_lib_dld_dld_link=no
14474fi
14475rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14477LIBS=$ac_check_lib_save_LIBS
14478fi
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14480$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14481if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14482 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14483fi
14484
14485
14486fi
14487
14488
14489fi
14490
14491
14492fi
14493
14494
14495fi
14496
14497
14498fi
14499
14500 ;;
14501 esac
14502
14503 if test no = "$lt_cv_dlopen"; then
14504 enable_dlopen=no
14505 else
14506 enable_dlopen=yes
14507 fi
14508
14509 case $lt_cv_dlopen in
14510 dlopen)
14511 save_CPPFLAGS=$CPPFLAGS
14512 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14513
14514 save_LDFLAGS=$LDFLAGS
14515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14516
14517 save_LIBS=$LIBS
14518 LIBS="$lt_cv_dlopen_libs $LIBS"
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14521$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14522if ${lt_cv_dlopen_self+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524else
14525 if test yes = "$cross_compiling"; then :
14526 lt_cv_dlopen_self=cross
14527else
14528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14529 lt_status=$lt_dlunknown
14530 cat > conftest.$ac_ext <<_LT_EOF
14531#line $LINENO "configure"
14532#include "confdefs.h"
14533
14534#if HAVE_DLFCN_H
14535#include <dlfcn.h>
14536#endif
14537
14538#include <stdio.h>
14539
14540#ifdef RTLD_GLOBAL
14541# define LT_DLGLOBAL RTLD_GLOBAL
14542#else
14543# ifdef DL_GLOBAL
14544# define LT_DLGLOBAL DL_GLOBAL
14545# else
14546# define LT_DLGLOBAL 0
14547# endif
14548#endif
14549
14550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14551 find out it does not work in some platform. */
14552#ifndef LT_DLLAZY_OR_NOW
14553# ifdef RTLD_LAZY
14554# define LT_DLLAZY_OR_NOW RTLD_LAZY
14555# else
14556# ifdef DL_LAZY
14557# define LT_DLLAZY_OR_NOW DL_LAZY
14558# else
14559# ifdef RTLD_NOW
14560# define LT_DLLAZY_OR_NOW RTLD_NOW
14561# else
14562# ifdef DL_NOW
14563# define LT_DLLAZY_OR_NOW DL_NOW
14564# else
14565# define LT_DLLAZY_OR_NOW 0
14566# endif
14567# endif
14568# endif
14569# endif
14570#endif
14571
14572/* When -fvisibility=hidden is used, assume the code has been annotated
14573 correspondingly for the symbols needed. */
14574#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14575int fnord () __attribute__((visibility("default")));
14576#endif
14577
14578int fnord () { return 42; }
14579int main ()
14580{
14581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14582 int status = $lt_dlunknown;
14583
14584 if (self)
14585 {
14586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14587 else
14588 {
14589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14590 else puts (dlerror ());
14591 }
14592 /* dlclose (self); */
14593 }
14594 else
14595 puts (dlerror ());
14596
14597 return status;
14598}
14599_LT_EOF
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14601 (eval $ac_link) 2>&5
14602 ac_status=$?
14603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14605 (./conftest; exit; ) >&5 2>/dev/null
14606 lt_status=$?
14607 case x$lt_status in
14608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14610 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14611 esac
14612 else :
14613 # compilation failed
14614 lt_cv_dlopen_self=no
14615 fi
14616fi
14617rm -fr conftest*
14618
14619
14620fi
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14622$as_echo "$lt_cv_dlopen_self" >&6; }
14623
14624 if test yes = "$lt_cv_dlopen_self"; then
14625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14627$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14628if ${lt_cv_dlopen_self_static+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630else
14631 if test yes = "$cross_compiling"; then :
14632 lt_cv_dlopen_self_static=cross
14633else
14634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14635 lt_status=$lt_dlunknown
14636 cat > conftest.$ac_ext <<_LT_EOF
14637#line $LINENO "configure"
14638#include "confdefs.h"
14639
14640#if HAVE_DLFCN_H
14641#include <dlfcn.h>
14642#endif
14643
14644#include <stdio.h>
14645
14646#ifdef RTLD_GLOBAL
14647# define LT_DLGLOBAL RTLD_GLOBAL
14648#else
14649# ifdef DL_GLOBAL
14650# define LT_DLGLOBAL DL_GLOBAL
14651# else
14652# define LT_DLGLOBAL 0
14653# endif
14654#endif
14655
14656/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14657 find out it does not work in some platform. */
14658#ifndef LT_DLLAZY_OR_NOW
14659# ifdef RTLD_LAZY
14660# define LT_DLLAZY_OR_NOW RTLD_LAZY
14661# else
14662# ifdef DL_LAZY
14663# define LT_DLLAZY_OR_NOW DL_LAZY
14664# else
14665# ifdef RTLD_NOW
14666# define LT_DLLAZY_OR_NOW RTLD_NOW
14667# else
14668# ifdef DL_NOW
14669# define LT_DLLAZY_OR_NOW DL_NOW
14670# else
14671# define LT_DLLAZY_OR_NOW 0
14672# endif
14673# endif
14674# endif
14675# endif
14676#endif
14677
14678/* When -fvisibility=hidden is used, assume the code has been annotated
14679 correspondingly for the symbols needed. */
14680#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14681int fnord () __attribute__((visibility("default")));
14682#endif
14683
14684int fnord () { return 42; }
14685int main ()
14686{
14687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14688 int status = $lt_dlunknown;
14689
14690 if (self)
14691 {
14692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14693 else
14694 {
14695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14696 else puts (dlerror ());
14697 }
14698 /* dlclose (self); */
14699 }
14700 else
14701 puts (dlerror ());
14702
14703 return status;
14704}
14705_LT_EOF
14706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14707 (eval $ac_link) 2>&5
14708 ac_status=$?
14709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14711 (./conftest; exit; ) >&5 2>/dev/null
14712 lt_status=$?
14713 case x$lt_status in
14714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14717 esac
14718 else :
14719 # compilation failed
14720 lt_cv_dlopen_self_static=no
14721 fi
14722fi
14723rm -fr conftest*
14724
14725
14726fi
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14728$as_echo "$lt_cv_dlopen_self_static" >&6; }
14729 fi
14730
14731 CPPFLAGS=$save_CPPFLAGS
14732 LDFLAGS=$save_LDFLAGS
14733 LIBS=$save_LIBS
14734 ;;
14735 esac
14736
14737 case $lt_cv_dlopen_self in
14738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14739 *) enable_dlopen_self=unknown ;;
14740 esac
14741
14742 case $lt_cv_dlopen_self_static in
14743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14744 *) enable_dlopen_self_static=unknown ;;
14745 esac
14746fi
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764striplib=
14765old_striplib=
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14767$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14768if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14772$as_echo "yes" >&6; }
14773else
14774# FIXME - insert some real tests, host_os isn't really good enough
14775 case $host_os in
14776 darwin*)
14777 if test -n "$STRIP"; then
14778 striplib="$STRIP -x"
14779 old_striplib="$STRIP -S"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781$as_echo "yes" >&6; }
14782 else
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784$as_echo "no" >&6; }
14785 fi
14786 ;;
14787 *)
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789$as_echo "no" >&6; }
14790 ;;
14791 esac
14792fi
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805 # Report what library types will actually be built
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14807$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14809$as_echo "$can_build_shared" >&6; }
14810
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14812$as_echo_n "checking whether to build shared libraries... " >&6; }
14813 test no = "$can_build_shared" && enable_shared=no
14814
14815 # On AIX, shared libraries and static libraries use the same namespace, and
14816 # are all built from PIC.
14817 case $host_os in
14818 aix3*)
14819 test yes = "$enable_shared" && enable_static=no
14820 if test -n "$RANLIB"; then
14821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14822 postinstall_cmds='$RANLIB $lib'
14823 fi
14824 ;;
14825
14826 aix[4-9]*)
14827 if test ia64 != "$host_cpu"; then
14828 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14829 yes,aix,yes) ;; # shared object as lib.so file only
14830 yes,svr4,*) ;; # shared object as lib.so archive member only
14831 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14832 esac
14833 fi
14834 ;;
14835 esac
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14837$as_echo "$enable_shared" >&6; }
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14840$as_echo_n "checking whether to build static libraries... " >&6; }
14841 # Make sure either enable_shared or enable_static is yes.
14842 test yes = "$enable_shared" || enable_static=yes
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14844$as_echo "$enable_static" >&6; }
14845
14846
14847
14848
14849fi
14850ac_ext=c
14851ac_cpp='$CPP $CPPFLAGS'
14852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856CC=$lt_save_CC
14857
14858 if test -n "$CXX" && ( test no != "$CXX" &&
14859 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14860 (test g++ != "$CXX"))); then
14861 ac_ext=cpp
14862ac_cpp='$CXXCPP $CPPFLAGS'
14863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14867$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14868if test -z "$CXXCPP"; then
14869 if ${ac_cv_prog_CXXCPP+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871else
14872 # Double quotes because CXXCPP needs to be expanded
14873 for CXXCPP in "$CXX -E" "/lib/cpp"
14874 do
14875 ac_preproc_ok=false
14876for ac_cxx_preproc_warn_flag in '' yes
14877do
14878 # Use a header file that comes with gcc, so configuring glibc
14879 # with a fresh cross-compiler works.
14880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14881 # <limits.h> exists even on freestanding compilers.
14882 # On the NeXT, cc -E runs the code through the compiler's parser,
14883 # not just through cpp. "Syntax error" is here to catch this case.
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h. */
14886#ifdef __STDC__
14887# include <limits.h>
14888#else
14889# include <assert.h>
14890#endif
14891 Syntax error
14892_ACEOF
14893if ac_fn_cxx_try_cpp "$LINENO"; then :
14894
14895else
14896 # Broken: fails on valid input.
14897continue
14898fi
14899rm -f conftest.err conftest.i conftest.$ac_ext
14900
14901 # OK, works on sane cases. Now check whether nonexistent headers
14902 # can be detected and how.
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904/* end confdefs.h. */
14905#include <ac_nonexistent.h>
14906_ACEOF
14907if ac_fn_cxx_try_cpp "$LINENO"; then :
14908 # Broken: success on invalid input.
14909continue
14910else
14911 # Passes both tests.
14912ac_preproc_ok=:
14913break
14914fi
14915rm -f conftest.err conftest.i conftest.$ac_ext
14916
14917done
14918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14919rm -f conftest.i conftest.err conftest.$ac_ext
14920if $ac_preproc_ok; then :
14921 break
14922fi
14923
14924 done
14925 ac_cv_prog_CXXCPP=$CXXCPP
14926
14927fi
14928 CXXCPP=$ac_cv_prog_CXXCPP
14929else
14930 ac_cv_prog_CXXCPP=$CXXCPP
14931fi
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14933$as_echo "$CXXCPP" >&6; }
14934ac_preproc_ok=false
14935for ac_cxx_preproc_warn_flag in '' yes
14936do
14937 # Use a header file that comes with gcc, so configuring glibc
14938 # with a fresh cross-compiler works.
14939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14940 # <limits.h> exists even on freestanding compilers.
14941 # On the NeXT, cc -E runs the code through the compiler's parser,
14942 # not just through cpp. "Syntax error" is here to catch this case.
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944/* end confdefs.h. */
14945#ifdef __STDC__
14946# include <limits.h>
14947#else
14948# include <assert.h>
14949#endif
14950 Syntax error
14951_ACEOF
14952if ac_fn_cxx_try_cpp "$LINENO"; then :
14953
14954else
14955 # Broken: fails on valid input.
14956continue
14957fi
14958rm -f conftest.err conftest.i conftest.$ac_ext
14959
14960 # OK, works on sane cases. Now check whether nonexistent headers
14961 # can be detected and how.
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h. */
14964#include <ac_nonexistent.h>
14965_ACEOF
14966if ac_fn_cxx_try_cpp "$LINENO"; then :
14967 # Broken: success on invalid input.
14968continue
14969else
14970 # Passes both tests.
14971ac_preproc_ok=:
14972break
14973fi
14974rm -f conftest.err conftest.i conftest.$ac_ext
14975
14976done
14977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14978rm -f conftest.i conftest.err conftest.$ac_ext
14979if $ac_preproc_ok; then :
14980
14981else
14982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14984as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14985See \`config.log' for more details" "$LINENO" 5; }
14986fi
14987
14988ac_ext=c
14989ac_cpp='$CPP $CPPFLAGS'
14990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993
14994else
14995 _lt_caught_CXX_error=yes
14996fi
14997
14998ac_ext=cpp
14999ac_cpp='$CXXCPP $CPPFLAGS'
15000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15003
15004archive_cmds_need_lc_CXX=no
15005allow_undefined_flag_CXX=
15006always_export_symbols_CXX=no
15007archive_expsym_cmds_CXX=
15008compiler_needs_object_CXX=no
15009export_dynamic_flag_spec_CXX=
15010hardcode_direct_CXX=no
15011hardcode_direct_absolute_CXX=no
15012hardcode_libdir_flag_spec_CXX=
15013hardcode_libdir_separator_CXX=
15014hardcode_minus_L_CXX=no
15015hardcode_shlibpath_var_CXX=unsupported
15016hardcode_automatic_CXX=no
15017inherit_rpath_CXX=no
15018module_cmds_CXX=
15019module_expsym_cmds_CXX=
15020link_all_deplibs_CXX=unknown
15021old_archive_cmds_CXX=$old_archive_cmds
15022reload_flag_CXX=$reload_flag
15023reload_cmds_CXX=$reload_cmds
15024no_undefined_flag_CXX=
15025whole_archive_flag_spec_CXX=
15026enable_shared_with_static_runtimes_CXX=no
15027
15028# Source file extension for C++ test sources.
15029ac_ext=cpp
15030
15031# Object file extension for compiled C++ test sources.
15032objext=o
15033objext_CXX=$objext
15034
15035# No sense in running all these tests if we already determined that
15036# the CXX compiler isn't working. Some variables (like enable_shared)
15037# are currently assumed to apply to all compilers on this platform,
15038# and will be corrupted by setting them based on a non-working compiler.
15039if test yes != "$_lt_caught_CXX_error"; then
15040 # Code to be used in simple compile tests
15041 lt_simple_compile_test_code="int some_variable = 0;"
15042
15043 # Code to be used in simple link tests
15044 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15045
15046 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15047
15048
15049
15050
15051
15052
15053# If no C compiler was specified, use CC.
15054LTCC=${LTCC-"$CC"}
15055
15056# If no C compiler flags were specified, use CFLAGS.
15057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15058
15059# Allow CC to be a program name with arguments.
15060compiler=$CC
15061
15062
15063 # save warnings/boilerplate of simple test code
15064 ac_outfile=conftest.$ac_objext
15065echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15067_lt_compiler_boilerplate=`cat conftest.err`
15068$RM -r conftest*
15069
15070 ac_outfile=conftest.$ac_objext
15071echo "$lt_simple_link_test_code" >conftest.$ac_ext
15072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15073_lt_linker_boilerplate=`cat conftest.err`
15074$RM -r conftest*
15075
15076
15077 # Allow CC to be a program name with arguments.
15078 lt_save_CC=$CC
15079 lt_save_CFLAGS=$CFLAGS
15080 lt_save_LD=$LD
15081 lt_save_GCC=$GCC
15082 GCC=$GXX
15083 lt_save_with_gnu_ld=$with_gnu_ld
15084 lt_save_path_LD=$lt_cv_path_LD
15085 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15086 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15087 else
15088 $as_unset lt_cv_prog_gnu_ld
15089 fi
15090 if test -n "${lt_cv_path_LDCXX+set}"; then
15091 lt_cv_path_LD=$lt_cv_path_LDCXX
15092 else
15093 $as_unset lt_cv_path_LD
15094 fi
15095 test -z "${LDCXX+set}" || LD=$LDCXX
15096 CC=${CXX-"c++"}
15097 CFLAGS=$CXXFLAGS
15098 compiler=$CC
15099 compiler_CXX=$CC
15100 func_cc_basename $compiler
15101cc_basename=$func_cc_basename_result
15102
15103
15104 if test -n "$compiler"; then
15105 # We don't want -fno-exception when compiling C++ code, so set the
15106 # no_builtin_flag separately
15107 if test yes = "$GXX"; then
15108 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15109 else
15110 lt_prog_compiler_no_builtin_flag_CXX=
15111 fi
15112
15113 if test yes = "$GXX"; then
15114 # Set up default GNU C++ configuration
15115
15116
15117
15118# Check whether --with-gnu-ld was given.
15119if test "${with_gnu_ld+set}" = set; then :
15120 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15121else
15122 with_gnu_ld=no
15123fi
15124
15125ac_prog=ld
15126if test yes = "$GCC"; then
15127 # Check if gcc -print-prog-name=ld gives a path.
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15129$as_echo_n "checking for ld used by $CC... " >&6; }
15130 case $host in
15131 *-*-mingw*)
15132 # gcc leaves a trailing carriage return, which upsets mingw
15133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15134 *)
15135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15136 esac
15137 case $ac_prog in
15138 # Accept absolute paths.
15139 [\\/]* | ?:[\\/]*)
15140 re_direlt='/[^/][^/]*/\.\./'
15141 # Canonicalize the pathname of ld
15142 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15143 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15144 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15145 done
15146 test -z "$LD" && LD=$ac_prog
15147 ;;
15148 "")
15149 # If it fails, then pretend we aren't using GCC.
15150 ac_prog=ld
15151 ;;
15152 *)
15153 # If it is relative, then search for the first ld in PATH.
15154 with_gnu_ld=unknown
15155 ;;
15156 esac
15157elif test yes = "$with_gnu_ld"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15159$as_echo_n "checking for GNU ld... " >&6; }
15160else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15162$as_echo_n "checking for non-GNU ld... " >&6; }
15163fi
15164if ${lt_cv_path_LD+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166else
15167 if test -z "$LD"; then
15168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15169 for ac_dir in $PATH; do
15170 IFS=$lt_save_ifs
15171 test -z "$ac_dir" && ac_dir=.
15172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15173 lt_cv_path_LD=$ac_dir/$ac_prog
15174 # Check to see if the program is GNU ld. I'd rather use --version,
15175 # but apparently some variants of GNU ld only accept -v.
15176 # Break only if it was the GNU/non-GNU ld that we prefer.
15177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15178 *GNU* | *'with BFD'*)
15179 test no != "$with_gnu_ld" && break
15180 ;;
15181 *)
15182 test yes != "$with_gnu_ld" && break
15183 ;;
15184 esac
15185 fi
15186 done
15187 IFS=$lt_save_ifs
15188else
15189 lt_cv_path_LD=$LD # Let the user override the test with a path.
15190fi
15191fi
15192
15193LD=$lt_cv_path_LD
15194if test -n "$LD"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15196$as_echo "$LD" >&6; }
15197else
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15199$as_echo "no" >&6; }
15200fi
15201test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15203$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15204if ${lt_cv_prog_gnu_ld+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206else
15207 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15208case `$LD -v 2>&1 </dev/null` in
15209*GNU* | *'with BFD'*)
15210 lt_cv_prog_gnu_ld=yes
15211 ;;
15212*)
15213 lt_cv_prog_gnu_ld=no
15214 ;;
15215esac
15216fi
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15218$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15219with_gnu_ld=$lt_cv_prog_gnu_ld
15220
15221
15222
15223
15224
15225
15226
15227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15228 # archiving commands below assume that GNU ld is being used.
15229 if test yes = "$with_gnu_ld"; then
15230 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15231 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'
15232
15233 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15234 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15235
15236 # If archive_cmds runs LD, not CC, wlarc should be empty
15237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15238 # investigate it a little bit more. (MM)
15239 wlarc='$wl'
15240
15241 # ancient GNU ld didn't support --whole-archive et. al.
15242 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15243 $GREP 'no-whole-archive' > /dev/null; then
15244 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15245 else
15246 whole_archive_flag_spec_CXX=
15247 fi
15248 else
15249 with_gnu_ld=no
15250 wlarc=
15251
15252 # A generic and very simple default shared library creation
15253 # command for GNU C++ for the case where it uses the native
15254 # linker, instead of GNU ld. If possible, this setting should
15255 # overridden to take advantage of the native linker features on
15256 # the platform it is being used on.
15257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15258 fi
15259
15260 # Commands to make compiler produce verbose output that lists
15261 # what "hidden" libraries, object files and flags are used when
15262 # linking a shared library.
15263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15264
15265 else
15266 GXX=no
15267 with_gnu_ld=no
15268 wlarc=
15269 fi
15270
15271 # PORTME: fill in a description of your system's C++ link characteristics
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15274 ld_shlibs_CXX=yes
15275 case $host_os in
15276 aix3*)
15277 # FIXME: insert proper C++ library support
15278 ld_shlibs_CXX=no
15279 ;;
15280 aix[4-9]*)
15281 if test ia64 = "$host_cpu"; then
15282 # On IA64, the linker does run time linking by default, so we don't
15283 # have to do anything special.
15284 aix_use_runtimelinking=no
15285 exp_sym_flag='-Bexport'
15286 no_entry_flag=
15287 else
15288 aix_use_runtimelinking=no
15289
15290 # Test if we are trying to use run time linking or normal
15291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15292 # have runtime linking enabled, and use it for executables.
15293 # For shared libraries, we enable/disable runtime linking
15294 # depending on the kind of the shared library created -
15295 # when "with_aix_soname,aix_use_runtimelinking" is:
15296 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15297 # "aix,yes" lib.so shared, rtl:yes, for executables
15298 # lib.a static archive
15299 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15300 # lib.a(lib.so.V) shared, rtl:no, for executables
15301 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15302 # lib.a(lib.so.V) shared, rtl:no
15303 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15304 # lib.a static archive
15305 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15306 for ld_flag in $LDFLAGS; do
15307 case $ld_flag in
15308 *-brtl*)
15309 aix_use_runtimelinking=yes
15310 break
15311 ;;
15312 esac
15313 done
15314 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15315 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15316 # so we don't have lib.a shared libs to link our executables.
15317 # We have to force runtime linking in this case.
15318 aix_use_runtimelinking=yes
15319 LDFLAGS="$LDFLAGS -Wl,-brtl"
15320 fi
15321 ;;
15322 esac
15323
15324 exp_sym_flag='-bexport'
15325 no_entry_flag='-bnoentry'
15326 fi
15327
15328 # When large executables or shared objects are built, AIX ld can
15329 # have problems creating the table of contents. If linking a library
15330 # or program results in "error TOC overflow" add -mminimal-toc to
15331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15333
15334 archive_cmds_CXX=''
15335 hardcode_direct_CXX=yes
15336 hardcode_direct_absolute_CXX=yes
15337 hardcode_libdir_separator_CXX=':'
15338 link_all_deplibs_CXX=yes
15339 file_list_spec_CXX='$wl-f,'
15340 case $with_aix_soname,$aix_use_runtimelinking in
15341 aix,*) ;; # no import file
15342 svr4,* | *,yes) # use import file
15343 # The Import File defines what to hardcode.
15344 hardcode_direct_CXX=no
15345 hardcode_direct_absolute_CXX=no
15346 ;;
15347 esac
15348
15349 if test yes = "$GXX"; then
15350 case $host_os in aix4.[012]|aix4.[012].*)
15351 # We only want to do this on AIX 4.2 and lower, the check
15352 # below for broken collect2 doesn't work under 4.3+
15353 collect2name=`$CC -print-prog-name=collect2`
15354 if test -f "$collect2name" &&
15355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15356 then
15357 # We have reworked collect2
15358 :
15359 else
15360 # We have old collect2
15361 hardcode_direct_CXX=unsupported
15362 # It fails to find uninstalled libraries when the uninstalled
15363 # path is not listed in the libpath. Setting hardcode_minus_L
15364 # to unsupported forces relinking
15365 hardcode_minus_L_CXX=yes
15366 hardcode_libdir_flag_spec_CXX='-L$libdir'
15367 hardcode_libdir_separator_CXX=
15368 fi
15369 esac
15370 shared_flag='-shared'
15371 if test yes = "$aix_use_runtimelinking"; then
15372 shared_flag=$shared_flag' $wl-G'
15373 fi
15374 # Need to ensure runtime linking is disabled for the traditional
15375 # shared library, or the linker may eventually find shared libraries
15376 # /with/ Import File - we do not want to mix them.
15377 shared_flag_aix='-shared'
15378 shared_flag_svr4='-shared $wl-G'
15379 else
15380 # not using gcc
15381 if test ia64 = "$host_cpu"; then
15382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15383 # chokes on -Wl,-G. The following line is correct:
15384 shared_flag='-G'
15385 else
15386 if test yes = "$aix_use_runtimelinking"; then
15387 shared_flag='$wl-G'
15388 else
15389 shared_flag='$wl-bM:SRE'
15390 fi
15391 shared_flag_aix='$wl-bM:SRE'
15392 shared_flag_svr4='$wl-G'
15393 fi
15394 fi
15395
15396 export_dynamic_flag_spec_CXX='$wl-bexpall'
15397 # It seems that -bexpall does not export symbols beginning with
15398 # underscore (_), so it is better to generate a list of symbols to
15399 # export.
15400 always_export_symbols_CXX=yes
15401 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15402 # Warning - without using the other runtime loading flags (-brtl),
15403 # -berok will link without error, but may produce a broken library.
15404 # The "-G" linker flag allows undefined symbols.
15405 no_undefined_flag_CXX='-bernotok'
15406 # Determine the default libpath from the value encoded in an empty
15407 # executable.
15408 if test set = "${lt_cv_aix_libpath+set}"; then
15409 aix_libpath=$lt_cv_aix_libpath
15410else
15411 if ${lt_cv_aix_libpath__CXX+:} false; then :
15412 $as_echo_n "(cached) " >&6
15413else
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h. */
15416
15417int
15418main ()
15419{
15420
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425if ac_fn_cxx_try_link "$LINENO"; then :
15426
15427 lt_aix_libpath_sed='
15428 /Import File Strings/,/^$/ {
15429 /^0/ {
15430 s/^0 *\([^ ]*\) *$/\1/
15431 p
15432 }
15433 }'
15434 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15435 # Check for a 64-bit object if we didn't find anything.
15436 if test -z "$lt_cv_aix_libpath__CXX"; then
15437 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15438 fi
15439fi
15440rm -f core conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 if test -z "$lt_cv_aix_libpath__CXX"; then
15443 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15444 fi
15445
15446fi
15447
15448 aix_libpath=$lt_cv_aix_libpath__CXX
15449fi
15450
15451 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15452
15453 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15454 else
15455 if test ia64 = "$host_cpu"; then
15456 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15457 allow_undefined_flag_CXX="-z nodefs"
15458 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"
15459 else
15460 # Determine the default libpath from the value encoded in an
15461 # empty executable.
15462 if test set = "${lt_cv_aix_libpath+set}"; then
15463 aix_libpath=$lt_cv_aix_libpath
15464else
15465 if ${lt_cv_aix_libpath__CXX+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467else
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h. */
15470
15471int
15472main ()
15473{
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479if ac_fn_cxx_try_link "$LINENO"; then :
15480
15481 lt_aix_libpath_sed='
15482 /Import File Strings/,/^$/ {
15483 /^0/ {
15484 s/^0 *\([^ ]*\) *$/\1/
15485 p
15486 }
15487 }'
15488 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15489 # Check for a 64-bit object if we didn't find anything.
15490 if test -z "$lt_cv_aix_libpath__CXX"; then
15491 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15492 fi
15493fi
15494rm -f core conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496 if test -z "$lt_cv_aix_libpath__CXX"; then
15497 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15498 fi
15499
15500fi
15501
15502 aix_libpath=$lt_cv_aix_libpath__CXX
15503fi
15504
15505 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15506 # Warning - without using the other run time loading flags,
15507 # -berok will link without error, but may produce a broken library.
15508 no_undefined_flag_CXX=' $wl-bernotok'
15509 allow_undefined_flag_CXX=' $wl-berok'
15510 if test yes = "$with_gnu_ld"; then
15511 # We only use this code for GNU lds that support --whole-archive.
15512 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15513 else
15514 # Exported symbols can be pulled into shared objects from archives
15515 whole_archive_flag_spec_CXX='$convenience'
15516 fi
15517 archive_cmds_need_lc_CXX=yes
15518 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15519 # -brtl affects multiple linker settings, -berok does not and is overridden later
15520 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15521 if test svr4 != "$with_aix_soname"; then
15522 # This is similar to how AIX traditionally builds its shared
15523 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15524 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15525 fi
15526 if test aix != "$with_aix_soname"; then
15527 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15528 else
15529 # used by -dlpreopen to get the symbols
15530 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15531 fi
15532 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15533 fi
15534 fi
15535 ;;
15536
15537 beos*)
15538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15539 allow_undefined_flag_CXX=unsupported
15540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15541 # support --undefined. This deserves some investigation. FIXME
15542 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15543 else
15544 ld_shlibs_CXX=no
15545 fi
15546 ;;
15547
15548 chorus*)
15549 case $cc_basename in
15550 *)
15551 # FIXME: insert proper C++ library support
15552 ld_shlibs_CXX=no
15553 ;;
15554 esac
15555 ;;
15556
15557 cygwin* | mingw* | pw32* | cegcc*)
15558 case $GXX,$cc_basename in
15559 ,cl* | no,cl*)
15560 # Native MSVC
15561 # hardcode_libdir_flag_spec is actually meaningless, as there is
15562 # no search path for DLLs.
15563 hardcode_libdir_flag_spec_CXX=' '
15564 allow_undefined_flag_CXX=unsupported
15565 always_export_symbols_CXX=yes
15566 file_list_spec_CXX='@'
15567 # Tell ltmain to make .lib files, not .a files.
15568 libext=lib
15569 # Tell ltmain to make .dll files, not .so files.
15570 shrext_cmds=.dll
15571 # FIXME: Setting linknames here is a bad hack.
15572 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15573 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15574 cp "$export_symbols" "$output_objdir/$soname.def";
15575 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15576 else
15577 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15578 fi~
15579 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15580 linknames='
15581 # The linker will not automatically build a static lib if we build a DLL.
15582 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15583 enable_shared_with_static_runtimes_CXX=yes
15584 # Don't use ranlib
15585 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15586 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15587 lt_tool_outputfile="@TOOL_OUTPUT@"~
15588 case $lt_outputfile in
15589 *.exe|*.EXE) ;;
15590 *)
15591 lt_outputfile=$lt_outputfile.exe
15592 lt_tool_outputfile=$lt_tool_outputfile.exe
15593 ;;
15594 esac~
15595 func_to_tool_file "$lt_outputfile"~
15596 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15597 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15598 $RM "$lt_outputfile.manifest";
15599 fi'
15600 ;;
15601 *)
15602 # g++
15603 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15604 # as there is no search path for DLLs.
15605 hardcode_libdir_flag_spec_CXX='-L$libdir'
15606 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15607 allow_undefined_flag_CXX=unsupported
15608 always_export_symbols_CXX=no
15609 enable_shared_with_static_runtimes_CXX=yes
15610
15611 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15612 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'
15613 # If the export-symbols file already is a .def file, use it as
15614 # is; otherwise, prepend EXPORTS...
15615 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15616 cp $export_symbols $output_objdir/$soname.def;
15617 else
15618 echo EXPORTS > $output_objdir/$soname.def;
15619 cat $export_symbols >> $output_objdir/$soname.def;
15620 fi~
15621 $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'
15622 else
15623 ld_shlibs_CXX=no
15624 fi
15625 ;;
15626 esac
15627 ;;
15628 darwin* | rhapsody*)
15629
15630
15631 archive_cmds_need_lc_CXX=no
15632 hardcode_direct_CXX=no
15633 hardcode_automatic_CXX=yes
15634 hardcode_shlibpath_var_CXX=unsupported
15635 if test yes = "$lt_cv_ld_force_load"; then
15636 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\"`'
15637
15638 else
15639 whole_archive_flag_spec_CXX=''
15640 fi
15641 link_all_deplibs_CXX=yes
15642 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15643 case $cc_basename in
15644 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15645 *) _lt_dar_can_shared=$GCC ;;
15646 esac
15647 if test yes = "$_lt_dar_can_shared"; then
15648 output_verbose_link_cmd=func_echo_all
15649 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"
15650 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15651 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"
15652 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"
15653 if test yes != "$lt_cv_apple_cc_single_mod"; then
15654 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"
15655 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"
15656 fi
15657
15658 else
15659 ld_shlibs_CXX=no
15660 fi
15661
15662 ;;
15663
15664 os2*)
15665 hardcode_libdir_flag_spec_CXX='-L$libdir'
15666 hardcode_minus_L_CXX=yes
15667 allow_undefined_flag_CXX=unsupported
15668 shrext_cmds=.dll
15669 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15670 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15671 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15672 $ECHO EXPORTS >> $output_objdir/$libname.def~
15673 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15675 emximp -o $lib $output_objdir/$libname.def'
15676 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15677 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15678 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15679 $ECHO EXPORTS >> $output_objdir/$libname.def~
15680 prefix_cmds="$SED"~
15681 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15682 prefix_cmds="$prefix_cmds -e 1d";
15683 fi~
15684 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15685 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15686 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15687 emximp -o $lib $output_objdir/$libname.def'
15688 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15689 enable_shared_with_static_runtimes_CXX=yes
15690 ;;
15691
15692 dgux*)
15693 case $cc_basename in
15694 ec++*)
15695 # FIXME: insert proper C++ library support
15696 ld_shlibs_CXX=no
15697 ;;
15698 ghcx*)
15699 # Green Hills C++ Compiler
15700 # FIXME: insert proper C++ library support
15701 ld_shlibs_CXX=no
15702 ;;
15703 *)
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 ;;
15707 esac
15708 ;;
15709
15710 freebsd2.*)
15711 # C++ shared libraries reported to be fairly broken before
15712 # switch to ELF
15713 ld_shlibs_CXX=no
15714 ;;
15715
15716 freebsd-elf*)
15717 archive_cmds_need_lc_CXX=no
15718 ;;
15719
15720 freebsd* | dragonfly*)
15721 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15722 # conventions
15723 ld_shlibs_CXX=yes
15724 ;;
15725
15726 haiku*)
15727 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15728 link_all_deplibs_CXX=yes
15729 ;;
15730
15731 hpux9*)
15732 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15733 hardcode_libdir_separator_CXX=:
15734 export_dynamic_flag_spec_CXX='$wl-E'
15735 hardcode_direct_CXX=yes
15736 hardcode_minus_L_CXX=yes # Not in the search PATH,
15737 # but as the default
15738 # location of the library.
15739
15740 case $cc_basename in
15741 CC*)
15742 # FIXME: insert proper C++ library support
15743 ld_shlibs_CXX=no
15744 ;;
15745 aCC*)
15746 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15747 # Commands to make compiler produce verbose output that lists
15748 # what "hidden" libraries, object files and flags are used when
15749 # linking a shared library.
15750 #
15751 # There doesn't appear to be a way to prevent this compiler from
15752 # explicitly linking system object files so we need to strip them
15753 # from the output so that they don't get included in the library
15754 # dependencies.
15755 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"'
15756 ;;
15757 *)
15758 if test yes = "$GXX"; then
15759 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15760 else
15761 # FIXME: insert proper C++ library support
15762 ld_shlibs_CXX=no
15763 fi
15764 ;;
15765 esac
15766 ;;
15767
15768 hpux10*|hpux11*)
15769 if test no = "$with_gnu_ld"; then
15770 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15771 hardcode_libdir_separator_CXX=:
15772
15773 case $host_cpu in
15774 hppa*64*|ia64*)
15775 ;;
15776 *)
15777 export_dynamic_flag_spec_CXX='$wl-E'
15778 ;;
15779 esac
15780 fi
15781 case $host_cpu in
15782 hppa*64*|ia64*)
15783 hardcode_direct_CXX=no
15784 hardcode_shlibpath_var_CXX=no
15785 ;;
15786 *)
15787 hardcode_direct_CXX=yes
15788 hardcode_direct_absolute_CXX=yes
15789 hardcode_minus_L_CXX=yes # Not in the search PATH,
15790 # but as the default
15791 # location of the library.
15792 ;;
15793 esac
15794
15795 case $cc_basename in
15796 CC*)
15797 # FIXME: insert proper C++ library support
15798 ld_shlibs_CXX=no
15799 ;;
15800 aCC*)
15801 case $host_cpu in
15802 hppa*64*)
15803 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15804 ;;
15805 ia64*)
15806 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15807 ;;
15808 *)
15809 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15810 ;;
15811 esac
15812 # Commands to make compiler produce verbose output that lists
15813 # what "hidden" libraries, object files and flags are used when
15814 # linking a shared library.
15815 #
15816 # There doesn't appear to be a way to prevent this compiler from
15817 # explicitly linking system object files so we need to strip them
15818 # from the output so that they don't get included in the library
15819 # dependencies.
15820 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"'
15821 ;;
15822 *)
15823 if test yes = "$GXX"; then
15824 if test no = "$with_gnu_ld"; then
15825 case $host_cpu in
15826 hppa*64*)
15827 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15828 ;;
15829 ia64*)
15830 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15831 ;;
15832 *)
15833 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'
15834 ;;
15835 esac
15836 fi
15837 else
15838 # FIXME: insert proper C++ library support
15839 ld_shlibs_CXX=no
15840 fi
15841 ;;
15842 esac
15843 ;;
15844
15845 interix[3-9]*)
15846 hardcode_direct_CXX=no
15847 hardcode_shlibpath_var_CXX=no
15848 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15849 export_dynamic_flag_spec_CXX='$wl-E'
15850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15851 # Instead, shared libraries are loaded at an image base (0x10000000 by
15852 # default) and relocated if they conflict, which is a slow very memory
15853 # consuming and fragmenting process. To avoid this, we pick a random,
15854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15856 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'
15857 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'
15858 ;;
15859 irix5* | irix6*)
15860 case $cc_basename in
15861 CC*)
15862 # SGI C++
15863 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'
15864
15865 # Archives containing C++ object files must be created using
15866 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15867 # necessary to make sure instantiated templates are included
15868 # in the archive.
15869 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15870 ;;
15871 *)
15872 if test yes = "$GXX"; then
15873 if test no = "$with_gnu_ld"; then
15874 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'
15875 else
15876 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'
15877 fi
15878 fi
15879 link_all_deplibs_CXX=yes
15880 ;;
15881 esac
15882 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15883 hardcode_libdir_separator_CXX=:
15884 inherit_rpath_CXX=yes
15885 ;;
15886
15887 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15888 case $cc_basename in
15889 KCC*)
15890 # Kuck and Associates, Inc. (KAI) C++ Compiler
15891
15892 # KCC will only create a shared library if the output file
15893 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15894 # to its proper name (with version) after linking.
15895 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'
15896 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'
15897 # Commands to make compiler produce verbose output that lists
15898 # what "hidden" libraries, object files and flags are used when
15899 # linking a shared library.
15900 #
15901 # There doesn't appear to be a way to prevent this compiler from
15902 # explicitly linking system object files so we need to strip them
15903 # from the output so that they don't get included in the library
15904 # dependencies.
15905 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"'
15906
15907 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15908 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15909
15910 # Archives containing C++ object files must be created using
15911 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15912 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15913 ;;
15914 icpc* | ecpc* )
15915 # Intel C++
15916 with_gnu_ld=yes
15917 # version 8.0 and above of icpc choke on multiply defined symbols
15918 # if we add $predep_objects and $postdep_objects, however 7.1 and
15919 # earlier do not add the objects themselves.
15920 case `$CC -V 2>&1` in
15921 *"Version 7."*)
15922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15923 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'
15924 ;;
15925 *) # Version 8.0 or newer
15926 tmp_idyn=
15927 case $host_cpu in
15928 ia64*) tmp_idyn=' -i_dynamic';;
15929 esac
15930 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15931 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'
15932 ;;
15933 esac
15934 archive_cmds_need_lc_CXX=no
15935 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15936 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15937 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15938 ;;
15939 pgCC* | pgcpp*)
15940 # Portland Group C++ compiler
15941 case `$CC -V` in
15942 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15943 prelink_cmds_CXX='tpldir=Template.dir~
15944 rm -rf $tpldir~
15945 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15946 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15947 old_archive_cmds_CXX='tpldir=Template.dir~
15948 rm -rf $tpldir~
15949 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15950 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15951 $RANLIB $oldlib'
15952 archive_cmds_CXX='tpldir=Template.dir~
15953 rm -rf $tpldir~
15954 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15955 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15956 archive_expsym_cmds_CXX='tpldir=Template.dir~
15957 rm -rf $tpldir~
15958 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15959 $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'
15960 ;;
15961 *) # Version 6 and above use weak symbols
15962 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15963 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'
15964 ;;
15965 esac
15966
15967 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15968 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15969 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'
15970 ;;
15971 cxx*)
15972 # Compaq C++
15973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15974 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'
15975
15976 runpath_var=LD_RUN_PATH
15977 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15978 hardcode_libdir_separator_CXX=:
15979
15980 # Commands to make compiler produce verbose output that lists
15981 # what "hidden" libraries, object files and flags are used when
15982 # linking a shared library.
15983 #
15984 # There doesn't appear to be a way to prevent this compiler from
15985 # explicitly linking system object files so we need to strip them
15986 # from the output so that they don't get included in the library
15987 # dependencies.
15988 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'
15989 ;;
15990 xl* | mpixl* | bgxl*)
15991 # IBM XL 8.0 on PPC, with GNU ld
15992 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15993 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15994 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15995 if test yes = "$supports_anon_versioning"; then
15996 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15998 echo "local: *; };" >> $output_objdir/$libname.ver~
15999 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16000 fi
16001 ;;
16002 *)
16003 case `$CC -V 2>&1 | sed 5q` in
16004 *Sun\ C*)
16005 # Sun C++ 5.9
16006 no_undefined_flag_CXX=' -zdefs'
16007 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16008 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'
16009 hardcode_libdir_flag_spec_CXX='-R$libdir'
16010 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'
16011 compiler_needs_object_CXX=yes
16012
16013 # Not sure whether something based on
16014 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16015 # would be better.
16016 output_verbose_link_cmd='func_echo_all'
16017
16018 # Archives containing C++ object files must be created using
16019 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16020 # necessary to make sure instantiated templates are included
16021 # in the archive.
16022 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16023 ;;
16024 esac
16025 ;;
16026 esac
16027 ;;
16028
16029 lynxos*)
16030 # FIXME: insert proper C++ library support
16031 ld_shlibs_CXX=no
16032 ;;
16033
16034 m88k*)
16035 # FIXME: insert proper C++ library support
16036 ld_shlibs_CXX=no
16037 ;;
16038
16039 mvs*)
16040 case $cc_basename in
16041 cxx*)
16042 # FIXME: insert proper C++ library support
16043 ld_shlibs_CXX=no
16044 ;;
16045 *)
16046 # FIXME: insert proper C++ library support
16047 ld_shlibs_CXX=no
16048 ;;
16049 esac
16050 ;;
16051
16052 netbsd*)
16053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16054 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16055 wlarc=
16056 hardcode_libdir_flag_spec_CXX='-R$libdir'
16057 hardcode_direct_CXX=yes
16058 hardcode_shlibpath_var_CXX=no
16059 fi
16060 # Workaround some broken pre-1.5 toolchains
16061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16062 ;;
16063
16064 *nto* | *qnx*)
16065 ld_shlibs_CXX=yes
16066 ;;
16067
16068 openbsd* | bitrig*)
16069 if test -f /usr/libexec/ld.so; then
16070 hardcode_direct_CXX=yes
16071 hardcode_shlibpath_var_CXX=no
16072 hardcode_direct_absolute_CXX=yes
16073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16074 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16076 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16077 export_dynamic_flag_spec_CXX='$wl-E'
16078 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16079 fi
16080 output_verbose_link_cmd=func_echo_all
16081 else
16082 ld_shlibs_CXX=no
16083 fi
16084 ;;
16085
16086 osf3* | osf4* | osf5*)
16087 case $cc_basename in
16088 KCC*)
16089 # Kuck and Associates, Inc. (KAI) C++ Compiler
16090
16091 # KCC will only create a shared library if the output file
16092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16093 # to its proper name (with version) after linking.
16094 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'
16095
16096 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16097 hardcode_libdir_separator_CXX=:
16098
16099 # Archives containing C++ object files must be created using
16100 # the KAI C++ compiler.
16101 case $host in
16102 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16103 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16104 esac
16105 ;;
16106 RCC*)
16107 # Rational C++ 2.4.1
16108 # FIXME: insert proper C++ library support
16109 ld_shlibs_CXX=no
16110 ;;
16111 cxx*)
16112 case $host in
16113 osf3*)
16114 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16115 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'
16116 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16117 ;;
16118 *)
16119 allow_undefined_flag_CXX=' -expect_unresolved \*'
16120 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'
16121 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16122 echo "-hidden">> $lib.exp~
16123 $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~
16124 $RM $lib.exp'
16125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16126 ;;
16127 esac
16128
16129 hardcode_libdir_separator_CXX=:
16130
16131 # Commands to make compiler produce verbose output that lists
16132 # what "hidden" libraries, object files and flags are used when
16133 # linking a shared library.
16134 #
16135 # There doesn't appear to be a way to prevent this compiler from
16136 # explicitly linking system object files so we need to strip them
16137 # from the output so that they don't get included in the library
16138 # dependencies.
16139 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"'
16140 ;;
16141 *)
16142 if test yes,no = "$GXX,$with_gnu_ld"; then
16143 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16144 case $host in
16145 osf3*)
16146 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'
16147 ;;
16148 *)
16149 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'
16150 ;;
16151 esac
16152
16153 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16154 hardcode_libdir_separator_CXX=:
16155
16156 # Commands to make compiler produce verbose output that lists
16157 # what "hidden" libraries, object files and flags are used when
16158 # linking a shared library.
16159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16160
16161 else
16162 # FIXME: insert proper C++ library support
16163 ld_shlibs_CXX=no
16164 fi
16165 ;;
16166 esac
16167 ;;
16168
16169 psos*)
16170 # FIXME: insert proper C++ library support
16171 ld_shlibs_CXX=no
16172 ;;
16173
16174 sunos4*)
16175 case $cc_basename in
16176 CC*)
16177 # Sun C++ 4.x
16178 # FIXME: insert proper C++ library support
16179 ld_shlibs_CXX=no
16180 ;;
16181 lcc*)
16182 # Lucid
16183 # FIXME: insert proper C++ library support
16184 ld_shlibs_CXX=no
16185 ;;
16186 *)
16187 # FIXME: insert proper C++ library support
16188 ld_shlibs_CXX=no
16189 ;;
16190 esac
16191 ;;
16192
16193 solaris*)
16194 case $cc_basename in
16195 CC* | sunCC*)
16196 # Sun C++ 4.2, 5.x and Centerline C++
16197 archive_cmds_need_lc_CXX=yes
16198 no_undefined_flag_CXX=' -zdefs'
16199 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16200 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16201 $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'
16202
16203 hardcode_libdir_flag_spec_CXX='-R$libdir'
16204 hardcode_shlibpath_var_CXX=no
16205 case $host_os in
16206 solaris2.[0-5] | solaris2.[0-5].*) ;;
16207 *)
16208 # The compiler driver will combine and reorder linker options,
16209 # but understands '-z linker_flag'.
16210 # Supported since Solaris 2.6 (maybe 2.5.1?)
16211 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16212 ;;
16213 esac
16214 link_all_deplibs_CXX=yes
16215
16216 output_verbose_link_cmd='func_echo_all'
16217
16218 # Archives containing C++ object files must be created using
16219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16220 # necessary to make sure instantiated templates are included
16221 # in the archive.
16222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223 ;;
16224 gcx*)
16225 # Green Hills C++ Compiler
16226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16227
16228 # The C++ compiler must be used to create the archive.
16229 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16230 ;;
16231 *)
16232 # GNU C++ compiler with Solaris linker
16233 if test yes,no = "$GXX,$with_gnu_ld"; then
16234 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16235 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16236 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16238 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16239
16240 # Commands to make compiler produce verbose output that lists
16241 # what "hidden" libraries, object files and flags are used when
16242 # linking a shared library.
16243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16244 else
16245 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16246 # platform.
16247 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16248 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16249 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16250
16251 # Commands to make compiler produce verbose output that lists
16252 # what "hidden" libraries, object files and flags are used when
16253 # linking a shared library.
16254 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16255 fi
16256
16257 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16258 case $host_os in
16259 solaris2.[0-5] | solaris2.[0-5].*) ;;
16260 *)
16261 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16262 ;;
16263 esac
16264 fi
16265 ;;
16266 esac
16267 ;;
16268
16269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16270 no_undefined_flag_CXX='$wl-z,text'
16271 archive_cmds_need_lc_CXX=no
16272 hardcode_shlibpath_var_CXX=no
16273 runpath_var='LD_RUN_PATH'
16274
16275 case $cc_basename in
16276 CC*)
16277 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16278 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16279 ;;
16280 *)
16281 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16283 ;;
16284 esac
16285 ;;
16286
16287 sysv5* | sco3.2v5* | sco5v6*)
16288 # Note: We CANNOT use -z defs as we might desire, because we do not
16289 # link with -lc, and that would cause any symbols used from libc to
16290 # always be unresolved, which means just about no library would
16291 # ever link correctly. If we're not using GNU ld we use -z text
16292 # though, which does catch some bad symbols but isn't as heavy-handed
16293 # as -z defs.
16294 no_undefined_flag_CXX='$wl-z,text'
16295 allow_undefined_flag_CXX='$wl-z,nodefs'
16296 archive_cmds_need_lc_CXX=no
16297 hardcode_shlibpath_var_CXX=no
16298 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16299 hardcode_libdir_separator_CXX=':'
16300 link_all_deplibs_CXX=yes
16301 export_dynamic_flag_spec_CXX='$wl-Bexport'
16302 runpath_var='LD_RUN_PATH'
16303
16304 case $cc_basename in
16305 CC*)
16306 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16307 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16309 '"$old_archive_cmds_CXX"
16310 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16311 '"$reload_cmds_CXX"
16312 ;;
16313 *)
16314 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 ;;
16317 esac
16318 ;;
16319
16320 tandem*)
16321 case $cc_basename in
16322 NCC*)
16323 # NonStop-UX NCC 3.20
16324 # FIXME: insert proper C++ library support
16325 ld_shlibs_CXX=no
16326 ;;
16327 *)
16328 # FIXME: insert proper C++ library support
16329 ld_shlibs_CXX=no
16330 ;;
16331 esac
16332 ;;
16333
16334 vxworks*)
16335 # FIXME: insert proper C++ library support
16336 ld_shlibs_CXX=no
16337 ;;
16338
16339 *)
16340 # FIXME: insert proper C++ library support
16341 ld_shlibs_CXX=no
16342 ;;
16343 esac
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16346$as_echo "$ld_shlibs_CXX" >&6; }
16347 test no = "$ld_shlibs_CXX" && can_build_shared=no
16348
16349 GCC_CXX=$GXX
16350 LD_CXX=$LD
16351
16352 ## CAVEAT EMPTOR:
16353 ## There is no encapsulation within the following macros, do not change
16354 ## the running order or otherwise move them around unless you know exactly
16355 ## what you are doing...
16356 # Dependencies to place before and after the object being linked:
16357predep_objects_CXX=
16358postdep_objects_CXX=
16359predeps_CXX=
16360postdeps_CXX=
16361compiler_lib_search_path_CXX=
16362
16363cat > conftest.$ac_ext <<_LT_EOF
16364class Foo
16365{
16366public:
16367 Foo (void) { a = 0; }
16368private:
16369 int a;
16370};
16371_LT_EOF
16372
16373
16374_lt_libdeps_save_CFLAGS=$CFLAGS
16375case "$CC $CFLAGS " in #(
16376*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16377*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16378*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16379esac
16380
16381if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16382 (eval $ac_compile) 2>&5
16383 ac_status=$?
16384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16385 test $ac_status = 0; }; then
16386 # Parse the compiler output and extract the necessary
16387 # objects, libraries and library flags.
16388
16389 # Sentinel used to keep track of whether or not we are before
16390 # the conftest object file.
16391 pre_test_object_deps_done=no
16392
16393 for p in `eval "$output_verbose_link_cmd"`; do
16394 case $prev$p in
16395
16396 -L* | -R* | -l*)
16397 # Some compilers place space between "-{L,R}" and the path.
16398 # Remove the space.
16399 if test x-L = "$p" ||
16400 test x-R = "$p"; then
16401 prev=$p
16402 continue
16403 fi
16404
16405 # Expand the sysroot to ease extracting the directories later.
16406 if test -z "$prev"; then
16407 case $p in
16408 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16409 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16410 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16411 esac
16412 fi
16413 case $p in
16414 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16415 esac
16416 if test no = "$pre_test_object_deps_done"; then
16417 case $prev in
16418 -L | -R)
16419 # Internal compiler library paths should come after those
16420 # provided the user. The postdeps already come after the
16421 # user supplied libs so there is no need to process them.
16422 if test -z "$compiler_lib_search_path_CXX"; then
16423 compiler_lib_search_path_CXX=$prev$p
16424 else
16425 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16426 fi
16427 ;;
16428 # The "-l" case would never come before the object being
16429 # linked, so don't bother handling this case.
16430 esac
16431 else
16432 if test -z "$postdeps_CXX"; then
16433 postdeps_CXX=$prev$p
16434 else
16435 postdeps_CXX="${postdeps_CXX} $prev$p"
16436 fi
16437 fi
16438 prev=
16439 ;;
16440
16441 *.lto.$objext) ;; # Ignore GCC LTO objects
16442 *.$objext)
16443 # This assumes that the test object file only shows up
16444 # once in the compiler output.
16445 if test "$p" = "conftest.$objext"; then
16446 pre_test_object_deps_done=yes
16447 continue
16448 fi
16449
16450 if test no = "$pre_test_object_deps_done"; then
16451 if test -z "$predep_objects_CXX"; then
16452 predep_objects_CXX=$p
16453 else
16454 predep_objects_CXX="$predep_objects_CXX $p"
16455 fi
16456 else
16457 if test -z "$postdep_objects_CXX"; then
16458 postdep_objects_CXX=$p
16459 else
16460 postdep_objects_CXX="$postdep_objects_CXX $p"
16461 fi
16462 fi
16463 ;;
16464
16465 *) ;; # Ignore the rest.
16466
16467 esac
16468 done
16469
16470 # Clean up.
16471 rm -f a.out a.exe
16472else
16473 echo "libtool.m4: error: problem compiling CXX test program"
16474fi
16475
16476$RM -f confest.$objext
16477CFLAGS=$_lt_libdeps_save_CFLAGS
16478
16479# PORTME: override above test on systems where it is broken
16480case $host_os in
16481interix[3-9]*)
16482 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16483 # hack all around it, let's just trust "g++" to DTRT.
16484 predep_objects_CXX=
16485 postdep_objects_CXX=
16486 postdeps_CXX=
16487 ;;
16488esac
16489
16490
16491case " $postdeps_CXX " in
16492*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16493esac
16494 compiler_lib_search_dirs_CXX=
16495if test -n "${compiler_lib_search_path_CXX}"; then
16496 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16497fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529 lt_prog_compiler_wl_CXX=
16530lt_prog_compiler_pic_CXX=
16531lt_prog_compiler_static_CXX=
16532
16533
16534 # C++ specific cases for pic, static, wl, etc.
16535 if test yes = "$GXX"; then
16536 lt_prog_compiler_wl_CXX='-Wl,'
16537 lt_prog_compiler_static_CXX='-static'
16538
16539 case $host_os in
16540 aix*)
16541 # All AIX code is PIC.
16542 if test ia64 = "$host_cpu"; then
16543 # AIX 5 now supports IA64 processor
16544 lt_prog_compiler_static_CXX='-Bstatic'
16545 fi
16546 lt_prog_compiler_pic_CXX='-fPIC'
16547 ;;
16548
16549 amigaos*)
16550 case $host_cpu in
16551 powerpc)
16552 # see comment about AmigaOS4 .so support
16553 lt_prog_compiler_pic_CXX='-fPIC'
16554 ;;
16555 m68k)
16556 # FIXME: we need at least 68020 code to build shared libraries, but
16557 # adding the '-m68020' flag to GCC prevents building anything better,
16558 # like '-m68040'.
16559 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16560 ;;
16561 esac
16562 ;;
16563
16564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16565 # PIC is the default for these OSes.
16566 ;;
16567 mingw* | cygwin* | os2* | pw32* | cegcc*)
16568 # This hack is so that the source file can tell whether it is being
16569 # built for inclusion in a dll (and should export symbols for example).
16570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16571 # (--disable-auto-import) libraries
16572 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16573 case $host_os in
16574 os2*)
16575 lt_prog_compiler_static_CXX='$wl-static'
16576 ;;
16577 esac
16578 ;;
16579 darwin* | rhapsody*)
16580 # PIC is the default on this platform
16581 # Common symbols not allowed in MH_DYLIB files
16582 lt_prog_compiler_pic_CXX='-fno-common'
16583 ;;
16584 *djgpp*)
16585 # DJGPP does not support shared libraries at all
16586 lt_prog_compiler_pic_CXX=
16587 ;;
16588 haiku*)
16589 # PIC is the default for Haiku.
16590 # The "-static" flag exists, but is broken.
16591 lt_prog_compiler_static_CXX=
16592 ;;
16593 interix[3-9]*)
16594 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16595 # Instead, we relocate shared libraries at runtime.
16596 ;;
16597 sysv4*MP*)
16598 if test -d /usr/nec; then
16599 lt_prog_compiler_pic_CXX=-Kconform_pic
16600 fi
16601 ;;
16602 hpux*)
16603 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16604 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16605 # sets the default TLS model and affects inlining.
16606 case $host_cpu in
16607 hppa*64*)
16608 ;;
16609 *)
16610 lt_prog_compiler_pic_CXX='-fPIC'
16611 ;;
16612 esac
16613 ;;
16614 *qnx* | *nto*)
16615 # QNX uses GNU C++, but need to define -shared option too, otherwise
16616 # it will coredump.
16617 lt_prog_compiler_pic_CXX='-fPIC -shared'
16618 ;;
16619 *)
16620 lt_prog_compiler_pic_CXX='-fPIC'
16621 ;;
16622 esac
16623 else
16624 case $host_os in
16625 aix[4-9]*)
16626 # All AIX code is PIC.
16627 if test ia64 = "$host_cpu"; then
16628 # AIX 5 now supports IA64 processor
16629 lt_prog_compiler_static_CXX='-Bstatic'
16630 else
16631 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16632 fi
16633 ;;
16634 chorus*)
16635 case $cc_basename in
16636 cxch68*)
16637 # Green Hills C++ Compiler
16638 # _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"
16639 ;;
16640 esac
16641 ;;
16642 mingw* | cygwin* | os2* | pw32* | cegcc*)
16643 # This hack is so that the source file can tell whether it is being
16644 # built for inclusion in a dll (and should export symbols for example).
16645 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16646 ;;
16647 dgux*)
16648 case $cc_basename in
16649 ec++*)
16650 lt_prog_compiler_pic_CXX='-KPIC'
16651 ;;
16652 ghcx*)
16653 # Green Hills C++ Compiler
16654 lt_prog_compiler_pic_CXX='-pic'
16655 ;;
16656 *)
16657 ;;
16658 esac
16659 ;;
16660 freebsd* | dragonfly*)
16661 # FreeBSD uses GNU C++
16662 ;;
16663 hpux9* | hpux10* | hpux11*)
16664 case $cc_basename in
16665 CC*)
16666 lt_prog_compiler_wl_CXX='-Wl,'
16667 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16668 if test ia64 != "$host_cpu"; then
16669 lt_prog_compiler_pic_CXX='+Z'
16670 fi
16671 ;;
16672 aCC*)
16673 lt_prog_compiler_wl_CXX='-Wl,'
16674 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16675 case $host_cpu in
16676 hppa*64*|ia64*)
16677 # +Z the default
16678 ;;
16679 *)
16680 lt_prog_compiler_pic_CXX='+Z'
16681 ;;
16682 esac
16683 ;;
16684 *)
16685 ;;
16686 esac
16687 ;;
16688 interix*)
16689 # This is c89, which is MS Visual C++ (no shared libs)
16690 # Anyone wants to do a port?
16691 ;;
16692 irix5* | irix6* | nonstopux*)
16693 case $cc_basename in
16694 CC*)
16695 lt_prog_compiler_wl_CXX='-Wl,'
16696 lt_prog_compiler_static_CXX='-non_shared'
16697 # CC pic flag -KPIC is the default.
16698 ;;
16699 *)
16700 ;;
16701 esac
16702 ;;
16703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16704 case $cc_basename in
16705 KCC*)
16706 # KAI C++ Compiler
16707 lt_prog_compiler_wl_CXX='--backend -Wl,'
16708 lt_prog_compiler_pic_CXX='-fPIC'
16709 ;;
16710 ecpc* )
16711 # old Intel C++ for x86_64, which still supported -KPIC.
16712 lt_prog_compiler_wl_CXX='-Wl,'
16713 lt_prog_compiler_pic_CXX='-KPIC'
16714 lt_prog_compiler_static_CXX='-static'
16715 ;;
16716 icpc* )
16717 # Intel C++, used to be incompatible with GCC.
16718 # ICC 10 doesn't accept -KPIC any more.
16719 lt_prog_compiler_wl_CXX='-Wl,'
16720 lt_prog_compiler_pic_CXX='-fPIC'
16721 lt_prog_compiler_static_CXX='-static'
16722 ;;
16723 pgCC* | pgcpp*)
16724 # Portland Group C++ compiler
16725 lt_prog_compiler_wl_CXX='-Wl,'
16726 lt_prog_compiler_pic_CXX='-fpic'
16727 lt_prog_compiler_static_CXX='-Bstatic'
16728 ;;
16729 cxx*)
16730 # Compaq C++
16731 # Make sure the PIC flag is empty. It appears that all Alpha
16732 # Linux and Compaq Tru64 Unix objects are PIC.
16733 lt_prog_compiler_pic_CXX=
16734 lt_prog_compiler_static_CXX='-non_shared'
16735 ;;
16736 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16737 # IBM XL 8.0, 9.0 on PPC and BlueGene
16738 lt_prog_compiler_wl_CXX='-Wl,'
16739 lt_prog_compiler_pic_CXX='-qpic'
16740 lt_prog_compiler_static_CXX='-qstaticlink'
16741 ;;
16742 *)
16743 case `$CC -V 2>&1 | sed 5q` in
16744 *Sun\ C*)
16745 # Sun C++ 5.9
16746 lt_prog_compiler_pic_CXX='-KPIC'
16747 lt_prog_compiler_static_CXX='-Bstatic'
16748 lt_prog_compiler_wl_CXX='-Qoption ld '
16749 ;;
16750 esac
16751 ;;
16752 esac
16753 ;;
16754 lynxos*)
16755 ;;
16756 m88k*)
16757 ;;
16758 mvs*)
16759 case $cc_basename in
16760 cxx*)
16761 lt_prog_compiler_pic_CXX='-W c,exportall'
16762 ;;
16763 *)
16764 ;;
16765 esac
16766 ;;
16767 netbsd*)
16768 ;;
16769 *qnx* | *nto*)
16770 # QNX uses GNU C++, but need to define -shared option too, otherwise
16771 # it will coredump.
16772 lt_prog_compiler_pic_CXX='-fPIC -shared'
16773 ;;
16774 osf3* | osf4* | osf5*)
16775 case $cc_basename in
16776 KCC*)
16777 lt_prog_compiler_wl_CXX='--backend -Wl,'
16778 ;;
16779 RCC*)
16780 # Rational C++ 2.4.1
16781 lt_prog_compiler_pic_CXX='-pic'
16782 ;;
16783 cxx*)
16784 # Digital/Compaq C++
16785 lt_prog_compiler_wl_CXX='-Wl,'
16786 # Make sure the PIC flag is empty. It appears that all Alpha
16787 # Linux and Compaq Tru64 Unix objects are PIC.
16788 lt_prog_compiler_pic_CXX=
16789 lt_prog_compiler_static_CXX='-non_shared'
16790 ;;
16791 *)
16792 ;;
16793 esac
16794 ;;
16795 psos*)
16796 ;;
16797 solaris*)
16798 case $cc_basename in
16799 CC* | sunCC*)
16800 # Sun C++ 4.2, 5.x and Centerline C++
16801 lt_prog_compiler_pic_CXX='-KPIC'
16802 lt_prog_compiler_static_CXX='-Bstatic'
16803 lt_prog_compiler_wl_CXX='-Qoption ld '
16804 ;;
16805 gcx*)
16806 # Green Hills C++ Compiler
16807 lt_prog_compiler_pic_CXX='-PIC'
16808 ;;
16809 *)
16810 ;;
16811 esac
16812 ;;
16813 sunos4*)
16814 case $cc_basename in
16815 CC*)
16816 # Sun C++ 4.x
16817 lt_prog_compiler_pic_CXX='-pic'
16818 lt_prog_compiler_static_CXX='-Bstatic'
16819 ;;
16820 lcc*)
16821 # Lucid
16822 lt_prog_compiler_pic_CXX='-pic'
16823 ;;
16824 *)
16825 ;;
16826 esac
16827 ;;
16828 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16829 case $cc_basename in
16830 CC*)
16831 lt_prog_compiler_wl_CXX='-Wl,'
16832 lt_prog_compiler_pic_CXX='-KPIC'
16833 lt_prog_compiler_static_CXX='-Bstatic'
16834 ;;
16835 esac
16836 ;;
16837 tandem*)
16838 case $cc_basename in
16839 NCC*)
16840 # NonStop-UX NCC 3.20
16841 lt_prog_compiler_pic_CXX='-KPIC'
16842 ;;
16843 *)
16844 ;;
16845 esac
16846 ;;
16847 vxworks*)
16848 ;;
16849 *)
16850 lt_prog_compiler_can_build_shared_CXX=no
16851 ;;
16852 esac
16853 fi
16854
16855case $host_os in
16856 # For platforms that do not support PIC, -DPIC is meaningless:
16857 *djgpp*)
16858 lt_prog_compiler_pic_CXX=
16859 ;;
16860 *)
16861 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16862 ;;
16863esac
16864
16865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16866$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16867if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16868 $as_echo_n "(cached) " >&6
16869else
16870 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16871fi
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16873$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16874lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16875
16876#
16877# Check to make sure the PIC flag actually works.
16878#
16879if test -n "$lt_prog_compiler_pic_CXX"; then
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16881$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16882if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884else
16885 lt_cv_prog_compiler_pic_works_CXX=no
16886 ac_outfile=conftest.$ac_objext
16887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16888 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16889 # Insert the option either (1) after the last *FLAGS variable, or
16890 # (2) before a word containing "conftest.", or (3) at the end.
16891 # Note that $ac_compile itself does not contain backslashes and begins
16892 # with a dollar sign (not a hyphen), so the echo should work correctly.
16893 # The option is referenced via a variable to avoid confusing sed.
16894 lt_compile=`echo "$ac_compile" | $SED \
16895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16897 -e 's:$: $lt_compiler_flag:'`
16898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16899 (eval "$lt_compile" 2>conftest.err)
16900 ac_status=$?
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 if (exit $ac_status) && test -s "$ac_outfile"; then
16904 # The compiler can only warn and ignore the option if not recognized
16905 # So say no if there are warnings other than the usual output.
16906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16909 lt_cv_prog_compiler_pic_works_CXX=yes
16910 fi
16911 fi
16912 $RM -r conftest*
16913
16914fi
16915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16916$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16917
16918if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16919 case $lt_prog_compiler_pic_CXX in
16920 "" | " "*) ;;
16921 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16922 esac
16923else
16924 lt_prog_compiler_pic_CXX=
16925 lt_prog_compiler_can_build_shared_CXX=no
16926fi
16927
16928fi
16929
16930
16931
16932
16933
16934#
16935# Check to make sure the static flag actually works.
16936#
16937wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16939$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16940if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16941 $as_echo_n "(cached) " >&6
16942else
16943 lt_cv_prog_compiler_static_works_CXX=no
16944 save_LDFLAGS=$LDFLAGS
16945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16948 # The linker can only warn and ignore the option if not recognized
16949 # So say no if there are warnings
16950 if test -s conftest.err; then
16951 # Append any errors to the config.log.
16952 cat conftest.err 1>&5
16953 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16955 if diff conftest.exp conftest.er2 >/dev/null; then
16956 lt_cv_prog_compiler_static_works_CXX=yes
16957 fi
16958 else
16959 lt_cv_prog_compiler_static_works_CXX=yes
16960 fi
16961 fi
16962 $RM -r conftest*
16963 LDFLAGS=$save_LDFLAGS
16964
16965fi
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16967$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16968
16969if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16970 :
16971else
16972 lt_prog_compiler_static_CXX=
16973fi
16974
16975
16976
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16980if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982else
16983 lt_cv_prog_compiler_c_o_CXX=no
16984 $RM -r conftest 2>/dev/null
16985 mkdir conftest
16986 cd conftest
16987 mkdir out
16988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16989
16990 lt_compiler_flag="-o out/conftest2.$ac_objext"
16991 # Insert the option either (1) after the last *FLAGS variable, or
16992 # (2) before a word containing "conftest.", or (3) at the end.
16993 # Note that $ac_compile itself does not contain backslashes and begins
16994 # with a dollar sign (not a hyphen), so the echo should work correctly.
16995 lt_compile=`echo "$ac_compile" | $SED \
16996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998 -e 's:$: $lt_compiler_flag:'`
16999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17000 (eval "$lt_compile" 2>out/conftest.err)
17001 ac_status=$?
17002 cat out/conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17005 then
17006 # The compiler can only warn and ignore the option if not recognized
17007 # So say no if there are warnings
17008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17011 lt_cv_prog_compiler_c_o_CXX=yes
17012 fi
17013 fi
17014 chmod u+w . 2>&5
17015 $RM -r conftest*
17016 # SGI C++ compiler will create directory out/ii_files/ for
17017 # template instantiation
17018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17019 $RM out/* && rmdir out
17020 cd ..
17021 $RM -r conftest
17022 $RM -r conftest*
17023
17024fi
17025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17026$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17027
17028
17029
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17031$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17032if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034else
17035 lt_cv_prog_compiler_c_o_CXX=no
17036 $RM -r conftest 2>/dev/null
17037 mkdir conftest
17038 cd conftest
17039 mkdir out
17040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17041
17042 lt_compiler_flag="-o out/conftest2.$ac_objext"
17043 # Insert the option either (1) after the last *FLAGS variable, or
17044 # (2) before a word containing "conftest.", or (3) at the end.
17045 # Note that $ac_compile itself does not contain backslashes and begins
17046 # with a dollar sign (not a hyphen), so the echo should work correctly.
17047 lt_compile=`echo "$ac_compile" | $SED \
17048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17050 -e 's:$: $lt_compiler_flag:'`
17051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17052 (eval "$lt_compile" 2>out/conftest.err)
17053 ac_status=$?
17054 cat out/conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17057 then
17058 # The compiler can only warn and ignore the option if not recognized
17059 # So say no if there are warnings
17060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17063 lt_cv_prog_compiler_c_o_CXX=yes
17064 fi
17065 fi
17066 chmod u+w . 2>&5
17067 $RM -r conftest*
17068 # SGI C++ compiler will create directory out/ii_files/ for
17069 # template instantiation
17070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17071 $RM out/* && rmdir out
17072 cd ..
17073 $RM -r conftest
17074 $RM -r conftest*
17075
17076fi
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17078$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17079
17080
17081
17082
17083hard_links=nottested
17084if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17085 # do not overwrite the value of need_locks provided by the user
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17087$as_echo_n "checking if we can lock with hard links... " >&6; }
17088 hard_links=yes
17089 $RM -r conftest*
17090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17091 touch conftest.a
17092 ln conftest.a conftest.b 2>&5 || hard_links=no
17093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17095$as_echo "$hard_links" >&6; }
17096 if test no = "$hard_links"; then
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17098$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17099 need_locks=warn
17100 fi
17101else
17102 need_locks=no
17103fi
17104
17105
17106
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17108$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17109
17110 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17111 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17112 case $host_os in
17113 aix[4-9]*)
17114 # If we're using GNU nm, then we don't want the "-C" option.
17115 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17116 # Without the "-l" option, or with the "-B" option, AIX nm treats
17117 # weak defined symbols like other global defined symbols, whereas
17118 # GNU nm marks them as "W".
17119 # While the 'weak' keyword is ignored in the Export File, we need
17120 # it in the Import File for the 'aix-soname' feature, so we have
17121 # to replace the "-B" option with "-P" for AIX nm.
17122 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17123 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17124 else
17125 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17126 fi
17127 ;;
17128 pw32*)
17129 export_symbols_cmds_CXX=$ltdll_cmds
17130 ;;
17131 cygwin* | mingw* | cegcc*)
17132 case $cc_basename in
17133 cl*)
17134 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17135 ;;
17136 *)
17137 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'
17138 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17139 ;;
17140 esac
17141 ;;
17142 *)
17143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17144 ;;
17145 esac
17146
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17148$as_echo "$ld_shlibs_CXX" >&6; }
17149test no = "$ld_shlibs_CXX" && can_build_shared=no
17150
17151with_gnu_ld_CXX=$with_gnu_ld
17152
17153
17154
17155
17156
17157
17158#
17159# Do we need to explicitly link libc?
17160#
17161case "x$archive_cmds_need_lc_CXX" in
17162x|xyes)
17163 # Assume -lc should be added
17164 archive_cmds_need_lc_CXX=yes
17165
17166 if test yes,yes = "$GCC,$enable_shared"; then
17167 case $archive_cmds_CXX in
17168 *'~'*)
17169 # FIXME: we may have to deal with multi-command sequences.
17170 ;;
17171 '$CC '*)
17172 # Test whether the compiler implicitly links with -lc since on some
17173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17174 # to ld, don't add -lc before -lgcc.
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17176$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17177if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179else
17180 $RM -r conftest*
17181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17182
17183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17184 (eval $ac_compile) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; } 2>conftest.err; then
17188 soname=conftest
17189 lib=conftest
17190 libobjs=conftest.$ac_objext
17191 deplibs=
17192 wl=$lt_prog_compiler_wl_CXX
17193 pic_flag=$lt_prog_compiler_pic_CXX
17194 compiler_flags=-v
17195 linker_flags=-v
17196 verstring=
17197 output_objdir=.
17198 libname=conftest
17199 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17200 allow_undefined_flag_CXX=
17201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17202 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17203 ac_status=$?
17204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17205 test $ac_status = 0; }
17206 then
17207 lt_cv_archive_cmds_need_lc_CXX=no
17208 else
17209 lt_cv_archive_cmds_need_lc_CXX=yes
17210 fi
17211 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17212 else
17213 cat conftest.err 1>&5
17214 fi
17215 $RM -r conftest*
17216
17217fi
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17219$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17220 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17221 ;;
17222 esac
17223 fi
17224 ;;
17225esac
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17289$as_echo_n "checking dynamic linker characteristics... " >&6; }
17290
17291library_names_spec=
17292libname_spec='lib$name'
17293soname_spec=
17294shrext_cmds=.so
17295postinstall_cmds=
17296postuninstall_cmds=
17297finish_cmds=
17298finish_eval=
17299shlibpath_var=
17300shlibpath_overrides_runpath=unknown
17301version_type=none
17302dynamic_linker="$host_os ld.so"
17303sys_lib_dlsearch_path_spec="/lib /usr/lib"
17304need_lib_prefix=unknown
17305hardcode_into_libs=no
17306
17307# when you set need_version to no, make sure it does not cause -set_version
17308# flags to be left without arguments
17309need_version=unknown
17310
17311
17312
17313case $host_os in
17314aix3*)
17315 version_type=linux # correct to gnu/linux during the next big refactor
17316 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17317 shlibpath_var=LIBPATH
17318
17319 # AIX 3 has no versioning support, so we append a major version to the name.
17320 soname_spec='$libname$release$shared_ext$major'
17321 ;;
17322
17323aix[4-9]*)
17324 version_type=linux # correct to gnu/linux during the next big refactor
17325 need_lib_prefix=no
17326 need_version=no
17327 hardcode_into_libs=yes
17328 if test ia64 = "$host_cpu"; then
17329 # AIX 5 supports IA64
17330 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 else
17333 # With GCC up to 2.95.x, collect2 would create an import file
17334 # for dependence libraries. The import file would start with
17335 # the line '#! .'. This would cause the generated library to
17336 # depend on '.', always an invalid library. This was fixed in
17337 # development snapshots of GCC prior to 3.0.
17338 case $host_os in
17339 aix4 | aix4.[01] | aix4.[01].*)
17340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17341 echo ' yes '
17342 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17343 :
17344 else
17345 can_build_shared=no
17346 fi
17347 ;;
17348 esac
17349 # Using Import Files as archive members, it is possible to support
17350 # filename-based versioning of shared library archives on AIX. While
17351 # this would work for both with and without runtime linking, it will
17352 # prevent static linking of such archives. So we do filename-based
17353 # shared library versioning with .so extension only, which is used
17354 # when both runtime linking and shared linking is enabled.
17355 # Unfortunately, runtime linking may impact performance, so we do
17356 # not want this to be the default eventually. Also, we use the
17357 # versioned .so libs for executables only if there is the -brtl
17358 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17359 # To allow for filename-based versioning support, we need to create
17360 # libNAME.so.V as an archive file, containing:
17361 # *) an Import File, referring to the versioned filename of the
17362 # archive as well as the shared archive member, telling the
17363 # bitwidth (32 or 64) of that shared object, and providing the
17364 # list of exported symbols of that shared object, eventually
17365 # decorated with the 'weak' keyword
17366 # *) the shared object with the F_LOADONLY flag set, to really avoid
17367 # it being seen by the linker.
17368 # At run time we better use the real file rather than another symlink,
17369 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17370
17371 case $with_aix_soname,$aix_use_runtimelinking in
17372 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17373 # soname into executable. Probably we can add versioning support to
17374 # collect2, so additional links can be useful in future.
17375 aix,yes) # traditional libtool
17376 dynamic_linker='AIX unversionable lib.so'
17377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17378 # instead of lib<name>.a to let people know that these are not
17379 # typical AIX shared libraries.
17380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17381 ;;
17382 aix,no) # traditional AIX only
17383 dynamic_linker='AIX lib.a(lib.so.V)'
17384 # We preserve .a as extension for shared libraries through AIX4.2
17385 # and later when we are not doing run time linking.
17386 library_names_spec='$libname$release.a $libname.a'
17387 soname_spec='$libname$release$shared_ext$major'
17388 ;;
17389 svr4,*) # full svr4 only
17390 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17391 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17392 # We do not specify a path in Import Files, so LIBPATH fires.
17393 shlibpath_overrides_runpath=yes
17394 ;;
17395 *,yes) # both, prefer svr4
17396 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17397 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17398 # unpreferred sharedlib libNAME.a needs extra handling
17399 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17400 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17401 # We do not specify a path in Import Files, so LIBPATH fires.
17402 shlibpath_overrides_runpath=yes
17403 ;;
17404 *,no) # both, prefer aix
17405 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17406 library_names_spec='$libname$release.a $libname.a'
17407 soname_spec='$libname$release$shared_ext$major'
17408 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17409 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17410 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17411 ;;
17412 esac
17413 shlibpath_var=LIBPATH
17414 fi
17415 ;;
17416
17417amigaos*)
17418 case $host_cpu in
17419 powerpc)
17420 # Since July 2007 AmigaOS4 officially supports .so libraries.
17421 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17423 ;;
17424 m68k)
17425 library_names_spec='$libname.ixlibrary $libname.a'
17426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17427 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17428 ;;
17429 esac
17430 ;;
17431
17432beos*)
17433 library_names_spec='$libname$shared_ext'
17434 dynamic_linker="$host_os ld.so"
17435 shlibpath_var=LIBRARY_PATH
17436 ;;
17437
17438bsdi[45]*)
17439 version_type=linux # correct to gnu/linux during the next big refactor
17440 need_version=no
17441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17442 soname_spec='$libname$release$shared_ext$major'
17443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17447 # the default ld.so.conf also contains /usr/contrib/lib and
17448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17449 # libtool to hard-code these into programs
17450 ;;
17451
17452cygwin* | mingw* | pw32* | cegcc*)
17453 version_type=windows
17454 shrext_cmds=.dll
17455 need_version=no
17456 need_lib_prefix=no
17457
17458 case $GCC,$cc_basename in
17459 yes,*)
17460 # gcc
17461 library_names_spec='$libname.dll.a'
17462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17463 postinstall_cmds='base_file=`basename \$file`~
17464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17465 dldir=$destdir/`dirname \$dlpath`~
17466 test -d \$dldir || mkdir -p \$dldir~
17467 $install_prog $dir/$dlname \$dldir/$dlname~
17468 chmod a+x \$dldir/$dlname~
17469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17471 fi'
17472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17473 dlpath=$dir/\$dldll~
17474 $RM \$dlpath'
17475 shlibpath_overrides_runpath=yes
17476
17477 case $host_os in
17478 cygwin*)
17479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17480 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17481
17482 ;;
17483 mingw* | cegcc*)
17484 # MinGW DLLs use traditional 'lib' prefix
17485 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17486 ;;
17487 pw32*)
17488 # pw32 DLLs use 'pw' prefix rather than 'lib'
17489 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17490 ;;
17491 esac
17492 dynamic_linker='Win32 ld.exe'
17493 ;;
17494
17495 *,cl*)
17496 # Native MSVC
17497 libname_spec='$name'
17498 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17499 library_names_spec='$libname.dll.lib'
17500
17501 case $build_os in
17502 mingw*)
17503 sys_lib_search_path_spec=
17504 lt_save_ifs=$IFS
17505 IFS=';'
17506 for lt_path in $LIB
17507 do
17508 IFS=$lt_save_ifs
17509 # Let DOS variable expansion print the short 8.3 style file name.
17510 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17511 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17512 done
17513 IFS=$lt_save_ifs
17514 # Convert to MSYS style.
17515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17516 ;;
17517 cygwin*)
17518 # Convert to unix form, then to dos form, then back to unix form
17519 # but this time dos style (no spaces!) so that the unix form looks
17520 # like /cygdrive/c/PROGRA~1:/cygdr...
17521 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17522 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17523 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17524 ;;
17525 *)
17526 sys_lib_search_path_spec=$LIB
17527 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17528 # It is most probably a Windows format PATH.
17529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17530 else
17531 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17532 fi
17533 # FIXME: find the short name or the path components, as spaces are
17534 # common. (e.g. "Program Files" -> "PROGRA~1")
17535 ;;
17536 esac
17537
17538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17539 postinstall_cmds='base_file=`basename \$file`~
17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17541 dldir=$destdir/`dirname \$dlpath`~
17542 test -d \$dldir || mkdir -p \$dldir~
17543 $install_prog $dir/$dlname \$dldir/$dlname'
17544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17545 dlpath=$dir/\$dldll~
17546 $RM \$dlpath'
17547 shlibpath_overrides_runpath=yes
17548 dynamic_linker='Win32 link.exe'
17549 ;;
17550
17551 *)
17552 # Assume MSVC wrapper
17553 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17554 dynamic_linker='Win32 ld.exe'
17555 ;;
17556 esac
17557 # FIXME: first we should search . and the directory the executable is in
17558 shlibpath_var=PATH
17559 ;;
17560
17561darwin* | rhapsody*)
17562 dynamic_linker="$host_os dyld"
17563 version_type=darwin
17564 need_lib_prefix=no
17565 need_version=no
17566 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17567 soname_spec='$libname$release$major$shared_ext'
17568 shlibpath_overrides_runpath=yes
17569 shlibpath_var=DYLD_LIBRARY_PATH
17570 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17571
17572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17573 ;;
17574
17575dgux*)
17576 version_type=linux # correct to gnu/linux during the next big refactor
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17580 soname_spec='$libname$release$shared_ext$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 ;;
17583
17584freebsd* | dragonfly*)
17585 # DragonFly does not have aout. When/if they implement a new
17586 # versioning mechanism, adjust this.
17587 if test -x /usr/bin/objformat; then
17588 objformat=`/usr/bin/objformat`
17589 else
17590 case $host_os in
17591 freebsd[23].*) objformat=aout ;;
17592 *) objformat=elf ;;
17593 esac
17594 fi
17595 version_type=freebsd-$objformat
17596 case $version_type in
17597 freebsd-elf*)
17598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17599 soname_spec='$libname$release$shared_ext$major'
17600 need_version=no
17601 need_lib_prefix=no
17602 ;;
17603 freebsd-*)
17604 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17605 need_version=yes
17606 ;;
17607 esac
17608 shlibpath_var=LD_LIBRARY_PATH
17609 case $host_os in
17610 freebsd2.*)
17611 shlibpath_overrides_runpath=yes
17612 ;;
17613 freebsd3.[01]* | freebsdelf3.[01]*)
17614 shlibpath_overrides_runpath=yes
17615 hardcode_into_libs=yes
17616 ;;
17617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17619 shlibpath_overrides_runpath=no
17620 hardcode_into_libs=yes
17621 ;;
17622 *) # from 4.6 on, and DragonFly
17623 shlibpath_overrides_runpath=yes
17624 hardcode_into_libs=yes
17625 ;;
17626 esac
17627 ;;
17628
17629haiku*)
17630 version_type=linux # correct to gnu/linux during the next big refactor
17631 need_lib_prefix=no
17632 need_version=no
17633 dynamic_linker="$host_os runtime_loader"
17634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17635 soname_spec='$libname$release$shared_ext$major'
17636 shlibpath_var=LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17639 hardcode_into_libs=yes
17640 ;;
17641
17642hpux9* | hpux10* | hpux11*)
17643 # Give a soname corresponding to the major version so that dld.sl refuses to
17644 # link against other versions.
17645 version_type=sunos
17646 need_lib_prefix=no
17647 need_version=no
17648 case $host_cpu in
17649 ia64*)
17650 shrext_cmds='.so'
17651 hardcode_into_libs=yes
17652 dynamic_linker="$host_os dld.so"
17653 shlibpath_var=LD_LIBRARY_PATH
17654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17656 soname_spec='$libname$release$shared_ext$major'
17657 if test 32 = "$HPUX_IA64_MODE"; then
17658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17659 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17660 else
17661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17662 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17663 fi
17664 ;;
17665 hppa*64*)
17666 shrext_cmds='.sl'
17667 hardcode_into_libs=yes
17668 dynamic_linker="$host_os dld.sl"
17669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17672 soname_spec='$libname$release$shared_ext$major'
17673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675 ;;
17676 *)
17677 shrext_cmds='.sl'
17678 dynamic_linker="$host_os dld.sl"
17679 shlibpath_var=SHLIB_PATH
17680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17682 soname_spec='$libname$release$shared_ext$major'
17683 ;;
17684 esac
17685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17686 postinstall_cmds='chmod 555 $lib'
17687 # or fails outright, so override atomically:
17688 install_override_mode=555
17689 ;;
17690
17691interix[3-9]*)
17692 version_type=linux # correct to gnu/linux during the next big refactor
17693 need_lib_prefix=no
17694 need_version=no
17695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17696 soname_spec='$libname$release$shared_ext$major'
17697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17698 shlibpath_var=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath=no
17700 hardcode_into_libs=yes
17701 ;;
17702
17703irix5* | irix6* | nonstopux*)
17704 case $host_os in
17705 nonstopux*) version_type=nonstopux ;;
17706 *)
17707 if test yes = "$lt_cv_prog_gnu_ld"; then
17708 version_type=linux # correct to gnu/linux during the next big refactor
17709 else
17710 version_type=irix
17711 fi ;;
17712 esac
17713 need_lib_prefix=no
17714 need_version=no
17715 soname_spec='$libname$release$shared_ext$major'
17716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17717 case $host_os in
17718 irix5* | nonstopux*)
17719 libsuff= shlibsuff=
17720 ;;
17721 *)
17722 case $LD in # libtool.m4 will add one of these switches to LD
17723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17724 libsuff= shlibsuff= libmagic=32-bit;;
17725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17726 libsuff=32 shlibsuff=N32 libmagic=N32;;
17727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17729 *) libsuff= shlibsuff= libmagic=never-match;;
17730 esac
17731 ;;
17732 esac
17733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17734 shlibpath_overrides_runpath=no
17735 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17736 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17737 hardcode_into_libs=yes
17738 ;;
17739
17740# No shared lib support for Linux oldld, aout, or coff.
17741linux*oldld* | linux*aout* | linux*coff*)
17742 dynamic_linker=no
17743 ;;
17744
17745linux*android*)
17746 version_type=none # Android doesn't support versioned libraries.
17747 need_lib_prefix=no
17748 need_version=no
17749 library_names_spec='$libname$release$shared_ext'
17750 soname_spec='$libname$release$shared_ext'
17751 finish_cmds=
17752 shlibpath_var=LD_LIBRARY_PATH
17753 shlibpath_overrides_runpath=yes
17754
17755 # This implies no fast_install, which is unacceptable.
17756 # Some rework will be needed to allow for fast_install
17757 # before this can be enabled.
17758 hardcode_into_libs=yes
17759
17760 dynamic_linker='Android linker'
17761 # Don't embed -rpath directories since the linker doesn't support them.
17762 hardcode_libdir_flag_spec_CXX='-L$libdir'
17763 ;;
17764
17765# This must be glibc/ELF.
17766linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17767 version_type=linux # correct to gnu/linux during the next big refactor
17768 need_lib_prefix=no
17769 need_version=no
17770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17771 soname_spec='$libname$release$shared_ext$major'
17772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 shlibpath_overrides_runpath=no
17775
17776 # Some binutils ld are patched to set DT_RUNPATH
17777 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779else
17780 lt_cv_shlibpath_overrides_runpath=no
17781 save_LDFLAGS=$LDFLAGS
17782 save_libdir=$libdir
17783 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17784 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786/* end confdefs.h. */
17787
17788int
17789main ()
17790{
17791
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796if ac_fn_cxx_try_link "$LINENO"; then :
17797 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17798 lt_cv_shlibpath_overrides_runpath=yes
17799fi
17800fi
17801rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803 LDFLAGS=$save_LDFLAGS
17804 libdir=$save_libdir
17805
17806fi
17807
17808 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17809
17810 # This implies no fast_install, which is unacceptable.
17811 # Some rework will be needed to allow for fast_install
17812 # before this can be enabled.
17813 hardcode_into_libs=yes
17814
17815 # Ideally, we could use ldconfig to report *all* directores which are
17816 # searched for libraries, however this is still not possible. Aside from not
17817 # being certain /sbin/ldconfig is available, command
17818 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17819 # even though it is searched at run-time. Try to do the best guess by
17820 # appending ld.so.conf contents (and includes) to the search path.
17821 if test -f /etc/ld.so.conf; then
17822 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' ' '`
17823 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17824 fi
17825
17826 # We used to test for /lib/ld.so.1 and disable shared libraries on
17827 # powerpc, because MkLinux only supported shared libraries with the
17828 # GNU dynamic linker. Since this was broken with cross compilers,
17829 # most powerpc-linux boxes support dynamic linking these days and
17830 # people can always --disable-shared, the test was removed, and we
17831 # assume the GNU/Linux dynamic linker is in use.
17832 dynamic_linker='GNU/Linux ld.so'
17833 ;;
17834
17835netbsd*)
17836 version_type=sunos
17837 need_lib_prefix=no
17838 need_version=no
17839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17842 dynamic_linker='NetBSD (a.out) ld.so'
17843 else
17844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17845 soname_spec='$libname$release$shared_ext$major'
17846 dynamic_linker='NetBSD ld.elf_so'
17847 fi
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=yes
17850 hardcode_into_libs=yes
17851 ;;
17852
17853newsos6)
17854 version_type=linux # correct to gnu/linux during the next big refactor
17855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=yes
17858 ;;
17859
17860*nto* | *qnx*)
17861 version_type=qnx
17862 need_lib_prefix=no
17863 need_version=no
17864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17865 soname_spec='$libname$release$shared_ext$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 shlibpath_overrides_runpath=no
17868 hardcode_into_libs=yes
17869 dynamic_linker='ldqnx.so'
17870 ;;
17871
17872openbsd* | bitrig*)
17873 version_type=sunos
17874 sys_lib_dlsearch_path_spec=/usr/lib
17875 need_lib_prefix=no
17876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17877 need_version=no
17878 else
17879 need_version=yes
17880 fi
17881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 shlibpath_overrides_runpath=yes
17885 ;;
17886
17887os2*)
17888 libname_spec='$name'
17889 version_type=windows
17890 shrext_cmds=.dll
17891 need_version=no
17892 need_lib_prefix=no
17893 # OS/2 can only load a DLL with a base name of 8 characters or less.
17894 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17895 v=$($ECHO $release$versuffix | tr -d .-);
17896 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17897 $ECHO $n$v`$shared_ext'
17898 library_names_spec='${libname}_dll.$libext'
17899 dynamic_linker='OS/2 ld.exe'
17900 shlibpath_var=BEGINLIBPATH
17901 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17903 postinstall_cmds='base_file=`basename \$file`~
17904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17905 dldir=$destdir/`dirname \$dlpath`~
17906 test -d \$dldir || mkdir -p \$dldir~
17907 $install_prog $dir/$dlname \$dldir/$dlname~
17908 chmod a+x \$dldir/$dlname~
17909 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17910 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17911 fi'
17912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17913 dlpath=$dir/\$dldll~
17914 $RM \$dlpath'
17915 ;;
17916
17917osf3* | osf4* | osf5*)
17918 version_type=osf
17919 need_lib_prefix=no
17920 need_version=no
17921 soname_spec='$libname$release$shared_ext$major'
17922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17926 ;;
17927
17928rdos*)
17929 dynamic_linker=no
17930 ;;
17931
17932solaris*)
17933 version_type=linux # correct to gnu/linux during the next big refactor
17934 need_lib_prefix=no
17935 need_version=no
17936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17937 soname_spec='$libname$release$shared_ext$major'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=yes
17940 hardcode_into_libs=yes
17941 # ldd complains unless libraries are executable
17942 postinstall_cmds='chmod +x $lib'
17943 ;;
17944
17945sunos4*)
17946 version_type=sunos
17947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17949 shlibpath_var=LD_LIBRARY_PATH
17950 shlibpath_overrides_runpath=yes
17951 if test yes = "$with_gnu_ld"; then
17952 need_lib_prefix=no
17953 fi
17954 need_version=yes
17955 ;;
17956
17957sysv4 | sysv4.3*)
17958 version_type=linux # correct to gnu/linux during the next big refactor
17959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17960 soname_spec='$libname$release$shared_ext$major'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 case $host_vendor in
17963 sni)
17964 shlibpath_overrides_runpath=no
17965 need_lib_prefix=no
17966 runpath_var=LD_RUN_PATH
17967 ;;
17968 siemens)
17969 need_lib_prefix=no
17970 ;;
17971 motorola)
17972 need_lib_prefix=no
17973 need_version=no
17974 shlibpath_overrides_runpath=no
17975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17976 ;;
17977 esac
17978 ;;
17979
17980sysv4*MP*)
17981 if test -d /usr/nec; then
17982 version_type=linux # correct to gnu/linux during the next big refactor
17983 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17984 soname_spec='$libname$shared_ext.$major'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 fi
17987 ;;
17988
17989sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17990 version_type=sco
17991 need_lib_prefix=no
17992 need_version=no
17993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17994 soname_spec='$libname$release$shared_ext$major'
17995 shlibpath_var=LD_LIBRARY_PATH
17996 shlibpath_overrides_runpath=yes
17997 hardcode_into_libs=yes
17998 if test yes = "$with_gnu_ld"; then
17999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18000 else
18001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18002 case $host_os in
18003 sco3.2v5*)
18004 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18005 ;;
18006 esac
18007 fi
18008 sys_lib_dlsearch_path_spec='/usr/lib'
18009 ;;
18010
18011tpf*)
18012 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18013 version_type=linux # correct to gnu/linux during the next big refactor
18014 need_lib_prefix=no
18015 need_version=no
18016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=no
18019 hardcode_into_libs=yes
18020 ;;
18021
18022uts4*)
18023 version_type=linux # correct to gnu/linux during the next big refactor
18024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18025 soname_spec='$libname$release$shared_ext$major'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 ;;
18028
18029*)
18030 dynamic_linker=no
18031 ;;
18032esac
18033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18034$as_echo "$dynamic_linker" >&6; }
18035test no = "$dynamic_linker" && can_build_shared=no
18036
18037variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18038if test yes = "$GCC"; then
18039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18040fi
18041
18042if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18043 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18044fi
18045
18046if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18047 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18048fi
18049
18050# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18051configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18052
18053# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18054func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18055
18056# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18057configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18099$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18100hardcode_action_CXX=
18101if test -n "$hardcode_libdir_flag_spec_CXX" ||
18102 test -n "$runpath_var_CXX" ||
18103 test yes = "$hardcode_automatic_CXX"; then
18104
18105 # We can hardcode non-existent directories.
18106 if test no != "$hardcode_direct_CXX" &&
18107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18108 # have to relink, otherwise we might link with an installed library
18109 # when we should be linking with a yet-to-be-installed one
18110 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18111 test no != "$hardcode_minus_L_CXX"; then
18112 # Linking always hardcodes the temporary library directory.
18113 hardcode_action_CXX=relink
18114 else
18115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18116 hardcode_action_CXX=immediate
18117 fi
18118else
18119 # We cannot hardcode anything, or else we can only hardcode existing
18120 # directories.
18121 hardcode_action_CXX=unsupported
18122fi
18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18124$as_echo "$hardcode_action_CXX" >&6; }
18125
18126if test relink = "$hardcode_action_CXX" ||
18127 test yes = "$inherit_rpath_CXX"; then
18128 # Fast installation is not supported
18129 enable_fast_install=no
18130elif test yes = "$shlibpath_overrides_runpath" ||
18131 test no = "$enable_shared"; then
18132 # Fast installation is not necessary
18133 enable_fast_install=needless
18134fi
18135
18136
18137
18138
18139
18140
18141
18142 fi # test -n "$compiler"
18143
18144 CC=$lt_save_CC
18145 CFLAGS=$lt_save_CFLAGS
18146 LDCXX=$LD
18147 LD=$lt_save_LD
18148 GCC=$lt_save_GCC
18149 with_gnu_ld=$lt_save_with_gnu_ld
18150 lt_cv_path_LDCXX=$lt_cv_path_LD
18151 lt_cv_path_LD=$lt_save_path_LD
18152 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18153 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18154fi # test yes != "$_lt_caught_CXX_error"
18155
18156ac_ext=c
18157ac_cpp='$CPP $CPPFLAGS'
18158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18160ac_compiler_gnu=$ac_cv_c_compiler_gnu
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176 ac_config_commands="$ac_config_commands libtool"
18177
18178
18179
18180
18181# Only expand once:
18182
18183
18184
18185ac_ext=cpp
18186ac_cpp='$CXXCPP $CPPFLAGS'
18187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18190
18191
18192 ax_cxx_compile_cxx11_required=true
18193 ac_ext=cpp
18194ac_cpp='$CXXCPP $CPPFLAGS'
18195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18198 ac_success=no
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18200$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18201if ${ax_cv_cxx_compile_cxx11+:} false; then :
18202 $as_echo_n "(cached) " >&6
18203else
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205/* end confdefs.h. */
18206
18207 template <typename T>
18208 struct check
18209 {
18210 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18211 };
18212
18213 struct Base {
18214 virtual void f() {}
18215 };
18216 struct Child : public Base {
18217 virtual void f() override {}
18218 };
18219
18220 typedef check<check<bool>> right_angle_brackets;
18221
18222 int a;
18223 decltype(a) b;
18224
18225 typedef check<int> check_type;
18226 check_type c;
18227 check_type&& cr = static_cast<check_type&&>(c);
18228
18229 auto d = a;
18230 auto l = [](){};
18231
18232_ACEOF
18233if ac_fn_cxx_try_compile "$LINENO"; then :
18234 ax_cv_cxx_compile_cxx11=yes
18235else
18236 ax_cv_cxx_compile_cxx11=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239fi
18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18241$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18242 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18243 ac_success=yes
18244 fi
18245
18246 if test x$ac_success = xno; then
18247 for switch in -std=gnu++11 -std=gnu++0x; do
18248 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18250$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18251if eval \${$cachevar+:} false; then :
18252 $as_echo_n "(cached) " >&6
18253else
18254 ac_save_CXXFLAGS="$CXXFLAGS"
18255 CXXFLAGS="$CXXFLAGS $switch"
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257/* end confdefs.h. */
18258
18259 template <typename T>
18260 struct check
18261 {
18262 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18263 };
18264
18265 struct Base {
18266 virtual void f() {}
18267 };
18268 struct Child : public Base {
18269 virtual void f() override {}
18270 };
18271
18272 typedef check<check<bool>> right_angle_brackets;
18273
18274 int a;
18275 decltype(a) b;
18276
18277 typedef check<int> check_type;
18278 check_type c;
18279 check_type&& cr = static_cast<check_type&&>(c);
18280
18281 auto d = a;
18282 auto l = [](){};
18283
18284_ACEOF
18285if ac_fn_cxx_try_compile "$LINENO"; then :
18286 eval $cachevar=yes
18287else
18288 eval $cachevar=no
18289fi
18290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 CXXFLAGS="$ac_save_CXXFLAGS"
18292fi
18293eval ac_res=\$$cachevar
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18295$as_echo "$ac_res" >&6; }
18296 if eval test x\$$cachevar = xyes; then
18297 CXXFLAGS="$CXXFLAGS $switch"
18298 ac_success=yes
18299 break
18300 fi
18301 done
18302 fi
18303
18304
18305 ac_ext=cpp
18306ac_cpp='$CXXCPP $CPPFLAGS'
18307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18310
18311 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18312 if test x$ac_success = xno; then
18313 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18314 fi
18315 else
18316 if test x$ac_success = xno; then
18317 HAVE_CXX11=0
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18319$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18320 else
18321 HAVE_CXX11=1
18322
18323$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18324
18325 fi
18326
18327
18328 fi
18329
18330OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18331
18332
18333
18334
18335
18336
18337
18338
18339if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18340 if test -n "$ac_tool_prefix"; then
18341 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18342set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18344$as_echo_n "checking for $ac_word... " >&6; }
18345if ${ac_cv_path_PKG_CONFIG+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347else
18348 case $PKG_CONFIG in
18349 [\\/]* | ?:[\\/]*)
18350 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18351 ;;
18352 *)
18353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18354for as_dir in $PATH
18355do
18356 IFS=$as_save_IFS
18357 test -z "$as_dir" && as_dir=.
18358 for ac_exec_ext in '' $ac_executable_extensions; do
18359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18360 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18362 break 2
18363 fi
18364done
18365 done
18366IFS=$as_save_IFS
18367
18368 ;;
18369esac
18370fi
18371PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18372if test -n "$PKG_CONFIG"; then
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18374$as_echo "$PKG_CONFIG" >&6; }
18375else
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377$as_echo "no" >&6; }
18378fi
18379
18380
18381fi
18382if test -z "$ac_cv_path_PKG_CONFIG"; then
18383 ac_pt_PKG_CONFIG=$PKG_CONFIG
18384 # Extract the first word of "pkg-config", so it can be a program name with args.
18385set dummy pkg-config; ac_word=$2
18386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18387$as_echo_n "checking for $ac_word... " >&6; }
18388if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18389 $as_echo_n "(cached) " >&6
18390else
18391 case $ac_pt_PKG_CONFIG in
18392 [\\/]* | ?:[\\/]*)
18393 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18394 ;;
18395 *)
18396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397for as_dir in $PATH
18398do
18399 IFS=$as_save_IFS
18400 test -z "$as_dir" && as_dir=.
18401 for ac_exec_ext in '' $ac_executable_extensions; do
18402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18403 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18405 break 2
18406 fi
18407done
18408 done
18409IFS=$as_save_IFS
18410
18411 ;;
18412esac
18413fi
18414ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18415if test -n "$ac_pt_PKG_CONFIG"; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18417$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18418else
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420$as_echo "no" >&6; }
18421fi
18422
18423 if test "x$ac_pt_PKG_CONFIG" = x; then
18424 PKG_CONFIG=""
18425 else
18426 case $cross_compiling:$ac_tool_warned in
18427yes:)
18428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18430ac_tool_warned=yes ;;
18431esac
18432 PKG_CONFIG=$ac_pt_PKG_CONFIG
18433 fi
18434else
18435 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18436fi
18437
18438fi
18439if test -n "$PKG_CONFIG"; then
18440 _pkg_min_version=0.22
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18442$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18443 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445$as_echo "yes" >&6; }
18446 else
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448$as_echo "no" >&6; }
18449 PKG_CONFIG=""
18450 fi
18451fi
18452
18453# Extract the first word of "git", so it can be a program name with args.
18454set dummy git; ac_word=$2
18455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18456$as_echo_n "checking for $ac_word... " >&6; }
18457if ${ac_cv_path_GIT+:} false; then :
18458 $as_echo_n "(cached) " >&6
18459else
18460 case $GIT in
18461 [\\/]* | ?:[\\/]*)
18462 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18463 ;;
18464 *)
18465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18466for as_dir in $PATH
18467do
18468 IFS=$as_save_IFS
18469 test -z "$as_dir" && as_dir=.
18470 for ac_exec_ext in '' $ac_executable_extensions; do
18471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18472 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18474 break 2
18475 fi
18476done
18477 done
18478IFS=$as_save_IFS
18479
18480 ;;
18481esac
18482fi
18483GIT=$ac_cv_path_GIT
18484if test -n "$GIT"; then
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18486$as_echo "$GIT" >&6; }
18487else
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18489$as_echo "no" >&6; }
18490fi
18491
18492
18493# Extract the first word of "time", so it can be a program name with args.
18494set dummy time; ac_word=$2
18495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18496$as_echo_n "checking for $ac_word... " >&6; }
18497if ${ac_cv_path_TIME+:} false; then :
18498 $as_echo_n "(cached) " >&6
18499else
18500 case $TIME in
18501 [\\/]* | ?:[\\/]*)
18502 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18503 ;;
18504 *)
18505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18506for as_dir in $PATH
18507do
18508 IFS=$as_save_IFS
18509 test -z "$as_dir" && as_dir=.
18510 for ac_exec_ext in '' $ac_executable_extensions; do
18511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18512 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18514 break 2
18515 fi
18516done
18517 done
18518IFS=$as_save_IFS
18519
18520 ;;
18521esac
18522fi
18523TIME=$ac_cv_path_TIME
18524if test -n "$TIME"; then
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18526$as_echo "$TIME" >&6; }
18527else
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18529$as_echo "no" >&6; }
18530fi
18531
18532
18533
18534
18535
18536
18537
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18539$as_echo_n "checking for bison >= 3.0... " >&6; }
18540 if test -z "$BISON"; then
18541 ac_path_BISON_found=false
18542 # Loop through the user's path and test for each of PROGNAME-LIST
18543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544for as_dir in $PATH
18545do
18546 IFS=$as_save_IFS
18547 test -z "$as_dir" && as_dir=.
18548 for ac_prog in bison; do
18549 for ac_exec_ext in '' $ac_executable_extensions; do
18550 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18551 as_fn_executable_p "$ac_path_BISON" || continue
18552version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18553 if ${version:+false} :; then :
18554
18555else
18556 as_awk_strverscmp='
18557 # Use only awk features that work with 7th edition Unix awk (1978).
18558 # My, what an old awk you have, Mr. Solaris!
18559 END {
18560 while (length(v1) && length(v2)) {
18561 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18562 # Normally this is a single character, but if v1 and v2 contain digits,
18563 # compare them as integers and fractions as strverscmp does.
18564 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18565 # Split v1 and v2 into their leading digit string components d1 and d2,
18566 # and advance v1 and v2 past the leading digit strings.
18567 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18568 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18569 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18570 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18571 if (d1 ~ /^0/) {
18572 if (d2 ~ /^0/) {
18573 # Compare two fractions.
18574 while (d1 ~ /^0/ && d2 ~ /^0/) {
18575 d1 = substr(d1, 2); len1--
18576 d2 = substr(d2, 2); len2--
18577 }
18578 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18579 # The two components differ in length, and the common prefix
18580 # contains only leading zeros. Consider the longer to be less.
18581 d1 = -len1
18582 d2 = -len2
18583 } else {
18584 # Otherwise, compare as strings.
18585 d1 = "x" d1
18586 d2 = "x" d2
18587 }
18588 } else {
18589 # A fraction is less than an integer.
18590 exit 1
18591 }
18592 } else {
18593 if (d2 ~ /^0/) {
18594 # An integer is greater than a fraction.
18595 exit 2
18596 } else {
18597 # Compare two integers.
18598 d1 += 0
18599 d2 += 0
18600 }
18601 }
18602 } else {
18603 # The normal case, without worrying about digits.
18604 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18605 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18606 }
18607 if (d1 < d2) exit 1
18608 if (d1 > d2) exit 2
18609 }
18610 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18611 # which mishandles some comparisons of empty strings to integers.
18612 if (length(v2)) exit 1
18613 if (length(v1)) exit 2
18614 }
18615'
18616as_arg_v1=$version
18617as_arg_v2=3.0
18618awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18619case $? in #(
18620 1) :
18621 ;; #(
18622 0) :
18623 ac_cv_path_BISON=$ac_path_BISON ;; #(
18624 2) :
18625 ac_cv_path_BISON=$ac_path_BISON ;; #(
18626 *) :
18627 ;;
18628esac
18629fi
18630
18631 $ac_path_BISON_found && break 3
18632 done
18633 done
18634 done
18635IFS=$as_save_IFS
18636 if test -z "$ac_cv_path_BISON"; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18638$as_echo "no" >&6; }
18639 fi
18640else
18641 ac_cv_path_BISON=$BISON
18642fi
18643
18644
18645 if true; then :
18646
18647 BISON=$ac_cv_path_BISON
18648
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18650$as_echo "$BISON" >&6; }
18651
18652else
18653 if true; then :
18654
18655 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
18656
18657else
18658
18659 BISON=:
18660
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662$as_echo "no" >&6; }
18663
18664fi
18665fi
18666
18667
18668
18669
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18671$as_echo_n "checking for flex >= 2.5.33... " >&6; }
18672 if test -z "$FLEX"; then
18673 ac_path_FLEX_found=false
18674 # Loop through the user's path and test for each of PROGNAME-LIST
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678 IFS=$as_save_IFS
18679 test -z "$as_dir" && as_dir=.
18680 for ac_prog in flex; do
18681 for ac_exec_ext in '' $ac_executable_extensions; do
18682 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18683 as_fn_executable_p "$ac_path_FLEX" || continue
18684version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18685 if ${version:+false} :; then :
18686
18687else
18688 as_arg_v1=$version
18689as_arg_v2=2.5.33
18690awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18691case $? in #(
18692 1) :
18693 ;; #(
18694 0) :
18695 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18696 2) :
18697 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18698 *) :
18699 ;;
18700esac
18701fi
18702
18703 $ac_path_FLEX_found && break 3
18704 done
18705 done
18706 done
18707IFS=$as_save_IFS
18708 if test -z "$ac_cv_path_FLEX"; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710$as_echo "no" >&6; }
18711 fi
18712else
18713 ac_cv_path_FLEX=$FLEX
18714fi
18715
18716
18717 if true; then :
18718
18719 FLEX=$ac_cv_path_FLEX
18720
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18722$as_echo "$FLEX" >&6; }
18723
18724else
18725 if true; then :
18726
18727 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
18728
18729else
18730
18731 FLEX=:
18732
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734$as_echo "no" >&6; }
18735
18736fi
18737fi
18738
18739
18740
18741
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18743$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18744 if test -z "$GPERF"; then
18745 ac_path_GPERF_found=false
18746 # Loop through the user's path and test for each of PROGNAME-LIST
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748for as_dir in $PATH
18749do
18750 IFS=$as_save_IFS
18751 test -z "$as_dir" && as_dir=.
18752 for ac_prog in gperf; do
18753 for ac_exec_ext in '' $ac_executable_extensions; do
18754 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18755 as_fn_executable_p "$ac_path_GPERF" || continue
18756version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18757 if ${version:+false} :; then :
18758
18759else
18760 as_arg_v1=$version
18761as_arg_v2=3.0.3
18762awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18763case $? in #(
18764 1) :
18765 ;; #(
18766 0) :
18767 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18768 2) :
18769 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18770 *) :
18771 ;;
18772esac
18773fi
18774
18775 $ac_path_GPERF_found && break 3
18776 done
18777 done
18778 done
18779IFS=$as_save_IFS
18780 if test -z "$ac_cv_path_GPERF"; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782$as_echo "no" >&6; }
18783 fi
18784else
18785 ac_cv_path_GPERF=$GPERF
18786fi
18787
18788
18789 if true; then :
18790
18791 GPERF=$ac_cv_path_GPERF
18792
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18794$as_echo "$GPERF" >&6; }
18795
18796else
18797 if true; then :
18798
18799 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18800
18801else
18802
18803 GPERF=:
18804
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806$as_echo "no" >&6; }
18807
18808fi
18809fi
18810
18811
18812
18813
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18815$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18816 if test -z "$GNUTAR"; then
18817 ac_path_GNUTAR_found=false
18818 # Loop through the user's path and test for each of PROGNAME-LIST
18819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18820for as_dir in $PATH
18821do
18822 IFS=$as_save_IFS
18823 test -z "$as_dir" && as_dir=.
18824 for ac_prog in tar gtar gnutar; do
18825 for ac_exec_ext in '' $ac_executable_extensions; do
18826 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18827 as_fn_executable_p "$ac_path_GNUTAR" || continue
18828version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18829 if ${version:+false} :; then :
18830
18831else
18832 as_arg_v1=$version
18833as_arg_v2=1.19
18834awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18835case $? in #(
18836 1) :
18837 ;; #(
18838 0) :
18839 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18840 2) :
18841 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18842 *) :
18843 ;;
18844esac
18845fi
18846
18847 $ac_path_GNUTAR_found && break 3
18848 done
18849 done
18850 done
18851IFS=$as_save_IFS
18852 if test -z "$ac_cv_path_GNUTAR"; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18854$as_echo "no" >&6; }
18855 fi
18856else
18857 ac_cv_path_GNUTAR=$GNUTAR
18858fi
18859
18860
18861 if true; then :
18862
18863 GNUTAR=$ac_cv_path_GNUTAR
18864
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18866$as_echo "$GNUTAR" >&6; }
18867
18868else
18869 if true; then :
18870
18871 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
18872
18873else
18874
18875 GNUTAR=:
18876
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878$as_echo "no" >&6; }
18879
18880fi
18881fi
18882
18883
18884
18885
18886
18887
18888
18889if test "x$LFLAGS" = x; then :
18890 LFLAGS="--full --ecs"
18891fi
18892
18893
18894
18895
18896
18897ac_ext=c
18898ac_cpp='$CPP $CPPFLAGS'
18899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902
18903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18904$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18905if ${ac_cv_cflags_warn_all+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907else
18908 ac_cv_cflags_warn_all="no, unknown"
18909ac_save_CFLAGS="$CFLAGS"
18910for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
18911do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913/* end confdefs.h. */
18914
18915int
18916main ()
18917{
18918
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923if ac_fn_c_try_compile "$LINENO"; then :
18924 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18925fi
18926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927done
18928CFLAGS="$ac_save_CFLAGS"
18929
18930fi
18931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18932$as_echo "$ac_cv_cflags_warn_all" >&6; }
18933
18934
18935case ".$ac_cv_cflags_warn_all" in
18936 .ok|.ok,*) ;;
18937 .|.no|.no,*) ;;
18938 *) if ${CFLAGS+:} false; then :
18939 case " $CFLAGS " in
18940 *" $ac_cv_cflags_warn_all "*)
18941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18942 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18943 ac_status=$?
18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18945 test $ac_status = 0; }
18946 ;;
18947 *)
18948 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18949 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }
18953 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18954 ;;
18955 esac
18956else
18957 CFLAGS="$ac_cv_cflags_warn_all"
18958fi
18959 ;;
18960esac
18961
18962ac_ext=cpp
18963ac_cpp='$CXXCPP $CPPFLAGS'
18964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18967
18968
18969ac_ext=cpp
18970ac_cpp='$CXXCPP $CPPFLAGS'
18971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18974
18975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18976$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18977if ${ac_cv_cxxflags_warn_all+:} false; then :
18978 $as_echo_n "(cached) " >&6
18979else
18980 ac_cv_cxxflags_warn_all="no, unknown"
18981ac_save_CXXFLAGS="$CXXFLAGS"
18982for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
18983do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* end confdefs.h. */
18986
18987int
18988main ()
18989{
18990
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995if ac_fn_cxx_try_compile "$LINENO"; then :
18996 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18997fi
18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999done
19000CXXFLAGS="$ac_save_CXXFLAGS"
19001
19002fi
19003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19004$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19005
19006
19007case ".$ac_cv_cxxflags_warn_all" in
19008 .ok|.ok,*) ;;
19009 .|.no|.no,*) ;;
19010 *) if ${CXXFLAGS+:} false; then :
19011 case " $CXXFLAGS " in
19012 *" $ac_cv_cxxflags_warn_all "*)
19013 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19014 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19015 ac_status=$?
19016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19017 test $ac_status = 0; }
19018 ;;
19019 *)
19020 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19021 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19022 ac_status=$?
19023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19024 test $ac_status = 0; }
19025 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19026 ;;
19027 esac
19028else
19029 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19030fi
19031 ;;
19032esac
19033
19034ac_ext=cpp
19035ac_cpp='$CXXCPP $CPPFLAGS'
19036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19039
19040
19041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19042$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19043if ${ac_cv_cxxflags_warn_all+:} false; then :
19044 $as_echo_n "(cached) " >&6
19045else
19046 ac_cv_cxxflags_warn_all="no, unknown"
19047ac_save_CXXFLAGS="$CXXFLAGS"
19048for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
19049do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051/* end confdefs.h. */
19052
19053int
19054main ()
19055{
19056
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061if ac_fn_cxx_try_compile "$LINENO"; then :
19062 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19063fi
19064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065done
19066CXXFLAGS="$ac_save_CXXFLAGS"
19067
19068fi
19069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19070$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19071
19072
19073case ".$ac_cv_cxxflags_warn_all" in
19074 .ok|.ok,*) ;;
19075 .|.no|.no,*) ;;
19076 *) if ${CXXFLAGS+:} false; then :
19077 case " $CXXFLAGS " in
19078 *" $ac_cv_cxxflags_warn_all "*)
19079 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19080 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19081 ac_status=$?
19082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19083 test $ac_status = 0; }
19084 ;;
19085 *)
19086 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19087 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19088 ac_status=$?
19089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19090 test $ac_status = 0; }
19091 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19092 ;;
19093 esac
19094else
19095 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19096fi
19097 ;;
19098esac
19099
19100
19101
19102
19103
19104 ac_ext=c
19105ac_cpp='$CPP $CPPFLAGS'
19106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19111$as_echo_n "checking for cc -Werror... " >&6; }
19112
19113 cy_save=$CFLAGS
19114
19115 for element in -Werror; do
19116 haveit=
19117 for x in $CFLAGS; do
19118
19119 acl_save_prefix="$prefix"
19120 prefix="$acl_final_prefix"
19121 acl_save_exec_prefix="$exec_prefix"
19122 exec_prefix="$acl_final_exec_prefix"
19123 eval x=\"$x\"
19124 exec_prefix="$acl_save_exec_prefix"
19125 prefix="$acl_save_prefix"
19126
19127 if test "X$x" = "X$element"; then
19128 haveit=yes
19129 break
19130 fi
19131 done
19132 if test -z "$haveit"; then
19133 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19134 fi
19135 done
19136
19137
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139/* end confdefs.h. */
19140
19141_ACEOF
19142if ac_fn_c_try_compile "$LINENO"; then :
19143 cy_good=1
19144else
19145 cy_good=0
19146fi
19147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148
19149 CFLAGS=$cy_save
19150 if test "x$cy_good" = x1; then :
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19152$as_echo "yes" >&6; }
19153
19154 for element in -Werror; do
19155 haveit=
19156 for x in $CFLAGS; do
19157
19158 acl_save_prefix="$prefix"
19159 prefix="$acl_final_prefix"
19160 acl_save_exec_prefix="$exec_prefix"
19161 exec_prefix="$acl_final_exec_prefix"
19162 eval x=\"$x\"
19163 exec_prefix="$acl_save_exec_prefix"
19164 prefix="$acl_save_prefix"
19165
19166 if test "X$x" = "X$element"; then
19167 haveit=yes
19168 break
19169 fi
19170 done
19171 if test -z "$haveit"; then
19172 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19173 fi
19174 done
19175
19176
19177else
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19179$as_echo "no" >&6; }
19180fi
19181
19182 ac_ext=cpp
19183ac_cpp='$CXXCPP $CPPFLAGS'
19184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19187
19188
19189
19190 ac_ext=cpp
19191ac_cpp='$CXXCPP $CPPFLAGS'
19192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19197$as_echo_n "checking for c++ -Werror... " >&6; }
19198
19199 cy_save=$CXXFLAGS
19200
19201 for element in -Werror; do
19202 haveit=
19203 for x in $CXXFLAGS; do
19204
19205 acl_save_prefix="$prefix"
19206 prefix="$acl_final_prefix"
19207 acl_save_exec_prefix="$exec_prefix"
19208 exec_prefix="$acl_final_exec_prefix"
19209 eval x=\"$x\"
19210 exec_prefix="$acl_save_exec_prefix"
19211 prefix="$acl_save_prefix"
19212
19213 if test "X$x" = "X$element"; then
19214 haveit=yes
19215 break
19216 fi
19217 done
19218 if test -z "$haveit"; then
19219 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19220 fi
19221 done
19222
19223
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225/* end confdefs.h. */
19226
19227_ACEOF
19228if ac_fn_cxx_try_compile "$LINENO"; then :
19229 cy_good=1
19230else
19231 cy_good=0
19232fi
19233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234
19235 CXXFLAGS=$cy_save
19236 if test "x$cy_good" = x1; then :
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19238$as_echo "yes" >&6; }
19239
19240 for element in -Werror; do
19241 haveit=
19242 for x in $CXXFLAGS; do
19243
19244 acl_save_prefix="$prefix"
19245 prefix="$acl_final_prefix"
19246 acl_save_exec_prefix="$exec_prefix"
19247 exec_prefix="$acl_final_exec_prefix"
19248 eval x=\"$x\"
19249 exec_prefix="$acl_save_exec_prefix"
19250 prefix="$acl_save_prefix"
19251
19252 if test "X$x" = "X$element"; then
19253 haveit=yes
19254 break
19255 fi
19256 done
19257 if test -z "$haveit"; then
19258 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19259 fi
19260 done
19261
19262
19263else
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265$as_echo "no" >&6; }
19266fi
19267
19268 ac_ext=cpp
19269ac_cpp='$CXXCPP $CPPFLAGS'
19270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19273
19274
19275
19276 ac_ext=mm
19277ac_cpp='$OBJCXXCPP $CPPFLAGS'
19278ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19281
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19283$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
19284
19285 cy_save=$OBJCXXFLAGS
19286
19287 for element in -Werror; do
19288 haveit=
19289 for x in $OBJCXXFLAGS; do
19290
19291 acl_save_prefix="$prefix"
19292 prefix="$acl_final_prefix"
19293 acl_save_exec_prefix="$exec_prefix"
19294 exec_prefix="$acl_final_exec_prefix"
19295 eval x=\"$x\"
19296 exec_prefix="$acl_save_exec_prefix"
19297 prefix="$acl_save_prefix"
19298
19299 if test "X$x" = "X$element"; then
19300 haveit=yes
19301 break
19302 fi
19303 done
19304 if test -z "$haveit"; then
19305 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19306 fi
19307 done
19308
19309
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311/* end confdefs.h. */
19312
19313_ACEOF
19314if ac_fn_objcxx_try_compile "$LINENO"; then :
19315 cy_good=1
19316else
19317 cy_good=0
19318fi
19319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320
19321 OBJCXXFLAGS=$cy_save
19322 if test "x$cy_good" = x1; then :
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324$as_echo "yes" >&6; }
19325
19326 for element in -Werror; do
19327 haveit=
19328 for x in $OBJCXXFLAGS; do
19329
19330 acl_save_prefix="$prefix"
19331 prefix="$acl_final_prefix"
19332 acl_save_exec_prefix="$exec_prefix"
19333 exec_prefix="$acl_final_exec_prefix"
19334 eval x=\"$x\"
19335 exec_prefix="$acl_save_exec_prefix"
19336 prefix="$acl_save_prefix"
19337
19338 if test "X$x" = "X$element"; then
19339 haveit=yes
19340 break
19341 fi
19342 done
19343 if test -z "$haveit"; then
19344 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19345 fi
19346 done
19347
19348
19349else
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19351$as_echo "no" >&6; }
19352fi
19353
19354 ac_ext=cpp
19355ac_cpp='$CXXCPP $CPPFLAGS'
19356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19359
19360
19361
19362
19363
19364
19365 ac_ext=c
19366ac_cpp='$CPP $CPPFLAGS'
19367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369ac_compiler_gnu=$ac_cv_c_compiler_gnu
19370
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19372$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
19373
19374 cy_save=$CFLAGS
19375
19376 for element in -Wno-deprecated-declarations; do
19377 haveit=
19378 for x in $CFLAGS; do
19379
19380 acl_save_prefix="$prefix"
19381 prefix="$acl_final_prefix"
19382 acl_save_exec_prefix="$exec_prefix"
19383 exec_prefix="$acl_final_exec_prefix"
19384 eval x=\"$x\"
19385 exec_prefix="$acl_save_exec_prefix"
19386 prefix="$acl_save_prefix"
19387
19388 if test "X$x" = "X$element"; then
19389 haveit=yes
19390 break
19391 fi
19392 done
19393 if test -z "$haveit"; then
19394 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19395 fi
19396 done
19397
19398
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400/* end confdefs.h. */
19401
19402_ACEOF
19403if ac_fn_c_try_compile "$LINENO"; then :
19404 cy_good=1
19405else
19406 cy_good=0
19407fi
19408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19409
19410 CFLAGS=$cy_save
19411 if test "x$cy_good" = x1; then :
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19413$as_echo "yes" >&6; }
19414
19415 for element in -Wno-deprecated-declarations; do
19416 haveit=
19417 for x in $CFLAGS; do
19418
19419 acl_save_prefix="$prefix"
19420 prefix="$acl_final_prefix"
19421 acl_save_exec_prefix="$exec_prefix"
19422 exec_prefix="$acl_final_exec_prefix"
19423 eval x=\"$x\"
19424 exec_prefix="$acl_save_exec_prefix"
19425 prefix="$acl_save_prefix"
19426
19427 if test "X$x" = "X$element"; then
19428 haveit=yes
19429 break
19430 fi
19431 done
19432 if test -z "$haveit"; then
19433 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19434 fi
19435 done
19436
19437
19438else
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19440$as_echo "no" >&6; }
19441fi
19442
19443 ac_ext=cpp
19444ac_cpp='$CXXCPP $CPPFLAGS'
19445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19448
19449
19450
19451 ac_ext=cpp
19452ac_cpp='$CXXCPP $CPPFLAGS'
19453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19456
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19458$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
19459
19460 cy_save=$CXXFLAGS
19461
19462 for element in -Wno-deprecated-declarations; do
19463 haveit=
19464 for x in $CXXFLAGS; do
19465
19466 acl_save_prefix="$prefix"
19467 prefix="$acl_final_prefix"
19468 acl_save_exec_prefix="$exec_prefix"
19469 exec_prefix="$acl_final_exec_prefix"
19470 eval x=\"$x\"
19471 exec_prefix="$acl_save_exec_prefix"
19472 prefix="$acl_save_prefix"
19473
19474 if test "X$x" = "X$element"; then
19475 haveit=yes
19476 break
19477 fi
19478 done
19479 if test -z "$haveit"; then
19480 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19481 fi
19482 done
19483
19484
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486/* end confdefs.h. */
19487
19488_ACEOF
19489if ac_fn_cxx_try_compile "$LINENO"; then :
19490 cy_good=1
19491else
19492 cy_good=0
19493fi
19494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495
19496 CXXFLAGS=$cy_save
19497 if test "x$cy_good" = x1; then :
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499$as_echo "yes" >&6; }
19500
19501 for element in -Wno-deprecated-declarations; do
19502 haveit=
19503 for x in $CXXFLAGS; do
19504
19505 acl_save_prefix="$prefix"
19506 prefix="$acl_final_prefix"
19507 acl_save_exec_prefix="$exec_prefix"
19508 exec_prefix="$acl_final_exec_prefix"
19509 eval x=\"$x\"
19510 exec_prefix="$acl_save_exec_prefix"
19511 prefix="$acl_save_prefix"
19512
19513 if test "X$x" = "X$element"; then
19514 haveit=yes
19515 break
19516 fi
19517 done
19518 if test -z "$haveit"; then
19519 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19520 fi
19521 done
19522
19523
19524else
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526$as_echo "no" >&6; }
19527fi
19528
19529 ac_ext=cpp
19530ac_cpp='$CXXCPP $CPPFLAGS'
19531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19534
19535
19536
19537 ac_ext=mm
19538ac_cpp='$OBJCXXCPP $CPPFLAGS'
19539ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19542
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19544$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
19545
19546 cy_save=$OBJCXXFLAGS
19547
19548 for element in -Wno-deprecated-declarations; do
19549 haveit=
19550 for x in $OBJCXXFLAGS; do
19551
19552 acl_save_prefix="$prefix"
19553 prefix="$acl_final_prefix"
19554 acl_save_exec_prefix="$exec_prefix"
19555 exec_prefix="$acl_final_exec_prefix"
19556 eval x=\"$x\"
19557 exec_prefix="$acl_save_exec_prefix"
19558 prefix="$acl_save_prefix"
19559
19560 if test "X$x" = "X$element"; then
19561 haveit=yes
19562 break
19563 fi
19564 done
19565 if test -z "$haveit"; then
19566 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19567 fi
19568 done
19569
19570
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572/* end confdefs.h. */
19573
19574_ACEOF
19575if ac_fn_objcxx_try_compile "$LINENO"; then :
19576 cy_good=1
19577else
19578 cy_good=0
19579fi
19580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581
19582 OBJCXXFLAGS=$cy_save
19583 if test "x$cy_good" = x1; then :
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19585$as_echo "yes" >&6; }
19586
19587 for element in -Wno-deprecated-declarations; do
19588 haveit=
19589 for x in $OBJCXXFLAGS; do
19590
19591 acl_save_prefix="$prefix"
19592 prefix="$acl_final_prefix"
19593 acl_save_exec_prefix="$exec_prefix"
19594 exec_prefix="$acl_final_exec_prefix"
19595 eval x=\"$x\"
19596 exec_prefix="$acl_save_exec_prefix"
19597 prefix="$acl_save_prefix"
19598
19599 if test "X$x" = "X$element"; then
19600 haveit=yes
19601 break
19602 fi
19603 done
19604 if test -z "$haveit"; then
19605 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19606 fi
19607 done
19608
19609
19610else
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612$as_echo "no" >&6; }
19613fi
19614
19615 ac_ext=cpp
19616ac_cpp='$CXXCPP $CPPFLAGS'
19617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19620
19621
19622
19623
19624
19625
19626 ac_ext=c
19627ac_cpp='$CPP $CPPFLAGS'
19628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19630ac_compiler_gnu=$ac_cv_c_compiler_gnu
19631
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19633$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
19634
19635 cy_save=$CFLAGS
19636
19637 for element in -Wno-dangling-else; do
19638 haveit=
19639 for x in $CFLAGS; do
19640
19641 acl_save_prefix="$prefix"
19642 prefix="$acl_final_prefix"
19643 acl_save_exec_prefix="$exec_prefix"
19644 exec_prefix="$acl_final_exec_prefix"
19645 eval x=\"$x\"
19646 exec_prefix="$acl_save_exec_prefix"
19647 prefix="$acl_save_prefix"
19648
19649 if test "X$x" = "X$element"; then
19650 haveit=yes
19651 break
19652 fi
19653 done
19654 if test -z "$haveit"; then
19655 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19656 fi
19657 done
19658
19659
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661/* end confdefs.h. */
19662
19663_ACEOF
19664if ac_fn_c_try_compile "$LINENO"; then :
19665 cy_good=1
19666else
19667 cy_good=0
19668fi
19669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670
19671 CFLAGS=$cy_save
19672 if test "x$cy_good" = x1; then :
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19674$as_echo "yes" >&6; }
19675
19676 for element in -Wno-dangling-else; do
19677 haveit=
19678 for x in $CFLAGS; do
19679
19680 acl_save_prefix="$prefix"
19681 prefix="$acl_final_prefix"
19682 acl_save_exec_prefix="$exec_prefix"
19683 exec_prefix="$acl_final_exec_prefix"
19684 eval x=\"$x\"
19685 exec_prefix="$acl_save_exec_prefix"
19686 prefix="$acl_save_prefix"
19687
19688 if test "X$x" = "X$element"; then
19689 haveit=yes
19690 break
19691 fi
19692 done
19693 if test -z "$haveit"; then
19694 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19695 fi
19696 done
19697
19698
19699else
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701$as_echo "no" >&6; }
19702fi
19703
19704 ac_ext=cpp
19705ac_cpp='$CXXCPP $CPPFLAGS'
19706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19709
19710
19711
19712 ac_ext=cpp
19713ac_cpp='$CXXCPP $CPPFLAGS'
19714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19717
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19719$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
19720
19721 cy_save=$CXXFLAGS
19722
19723 for element in -Wno-dangling-else; do
19724 haveit=
19725 for x in $CXXFLAGS; do
19726
19727 acl_save_prefix="$prefix"
19728 prefix="$acl_final_prefix"
19729 acl_save_exec_prefix="$exec_prefix"
19730 exec_prefix="$acl_final_exec_prefix"
19731 eval x=\"$x\"
19732 exec_prefix="$acl_save_exec_prefix"
19733 prefix="$acl_save_prefix"
19734
19735 if test "X$x" = "X$element"; then
19736 haveit=yes
19737 break
19738 fi
19739 done
19740 if test -z "$haveit"; then
19741 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19742 fi
19743 done
19744
19745
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747/* end confdefs.h. */
19748
19749_ACEOF
19750if ac_fn_cxx_try_compile "$LINENO"; then :
19751 cy_good=1
19752else
19753 cy_good=0
19754fi
19755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756
19757 CXXFLAGS=$cy_save
19758 if test "x$cy_good" = x1; then :
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19760$as_echo "yes" >&6; }
19761
19762 for element in -Wno-dangling-else; do
19763 haveit=
19764 for x in $CXXFLAGS; do
19765
19766 acl_save_prefix="$prefix"
19767 prefix="$acl_final_prefix"
19768 acl_save_exec_prefix="$exec_prefix"
19769 exec_prefix="$acl_final_exec_prefix"
19770 eval x=\"$x\"
19771 exec_prefix="$acl_save_exec_prefix"
19772 prefix="$acl_save_prefix"
19773
19774 if test "X$x" = "X$element"; then
19775 haveit=yes
19776 break
19777 fi
19778 done
19779 if test -z "$haveit"; then
19780 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19781 fi
19782 done
19783
19784
19785else
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787$as_echo "no" >&6; }
19788fi
19789
19790 ac_ext=cpp
19791ac_cpp='$CXXCPP $CPPFLAGS'
19792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19795
19796
19797
19798 ac_ext=mm
19799ac_cpp='$OBJCXXCPP $CPPFLAGS'
19800ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19803
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19805$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
19806
19807 cy_save=$OBJCXXFLAGS
19808
19809 for element in -Wno-dangling-else; do
19810 haveit=
19811 for x in $OBJCXXFLAGS; do
19812
19813 acl_save_prefix="$prefix"
19814 prefix="$acl_final_prefix"
19815 acl_save_exec_prefix="$exec_prefix"
19816 exec_prefix="$acl_final_exec_prefix"
19817 eval x=\"$x\"
19818 exec_prefix="$acl_save_exec_prefix"
19819 prefix="$acl_save_prefix"
19820
19821 if test "X$x" = "X$element"; then
19822 haveit=yes
19823 break
19824 fi
19825 done
19826 if test -z "$haveit"; then
19827 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19828 fi
19829 done
19830
19831
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833/* end confdefs.h. */
19834
19835_ACEOF
19836if ac_fn_objcxx_try_compile "$LINENO"; then :
19837 cy_good=1
19838else
19839 cy_good=0
19840fi
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842
19843 OBJCXXFLAGS=$cy_save
19844 if test "x$cy_good" = x1; then :
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19846$as_echo "yes" >&6; }
19847
19848 for element in -Wno-dangling-else; do
19849 haveit=
19850 for x in $OBJCXXFLAGS; do
19851
19852 acl_save_prefix="$prefix"
19853 prefix="$acl_final_prefix"
19854 acl_save_exec_prefix="$exec_prefix"
19855 exec_prefix="$acl_final_exec_prefix"
19856 eval x=\"$x\"
19857 exec_prefix="$acl_save_exec_prefix"
19858 prefix="$acl_save_prefix"
19859
19860 if test "X$x" = "X$element"; then
19861 haveit=yes
19862 break
19863 fi
19864 done
19865 if test -z "$haveit"; then
19866 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19867 fi
19868 done
19869
19870
19871else
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873$as_echo "no" >&6; }
19874fi
19875
19876 ac_ext=cpp
19877ac_cpp='$CXXCPP $CPPFLAGS'
19878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19881
19882
19883
19884
19885
19886 ac_ext=c
19887ac_cpp='$CPP $CPPFLAGS'
19888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19893$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19894
19895 cy_save=$CFLAGS
19896
19897 for element in -Wno-empty-body; do
19898 haveit=
19899 for x in $CFLAGS; do
19900
19901 acl_save_prefix="$prefix"
19902 prefix="$acl_final_prefix"
19903 acl_save_exec_prefix="$exec_prefix"
19904 exec_prefix="$acl_final_exec_prefix"
19905 eval x=\"$x\"
19906 exec_prefix="$acl_save_exec_prefix"
19907 prefix="$acl_save_prefix"
19908
19909 if test "X$x" = "X$element"; then
19910 haveit=yes
19911 break
19912 fi
19913 done
19914 if test -z "$haveit"; then
19915 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19916 fi
19917 done
19918
19919
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h. */
19922
19923_ACEOF
19924if ac_fn_c_try_compile "$LINENO"; then :
19925 cy_good=1
19926else
19927 cy_good=0
19928fi
19929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930
19931 CFLAGS=$cy_save
19932 if test "x$cy_good" = x1; then :
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19934$as_echo "yes" >&6; }
19935
19936 for element in -Wno-empty-body; do
19937 haveit=
19938 for x in $CFLAGS; do
19939
19940 acl_save_prefix="$prefix"
19941 prefix="$acl_final_prefix"
19942 acl_save_exec_prefix="$exec_prefix"
19943 exec_prefix="$acl_final_exec_prefix"
19944 eval x=\"$x\"
19945 exec_prefix="$acl_save_exec_prefix"
19946 prefix="$acl_save_prefix"
19947
19948 if test "X$x" = "X$element"; then
19949 haveit=yes
19950 break
19951 fi
19952 done
19953 if test -z "$haveit"; then
19954 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19955 fi
19956 done
19957
19958
19959else
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19961$as_echo "no" >&6; }
19962fi
19963
19964 ac_ext=cpp
19965ac_cpp='$CXXCPP $CPPFLAGS'
19966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19969
19970
19971
19972 ac_ext=cpp
19973ac_cpp='$CXXCPP $CPPFLAGS'
19974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19977
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19979$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19980
19981 cy_save=$CXXFLAGS
19982
19983 for element in -Wno-empty-body; do
19984 haveit=
19985 for x in $CXXFLAGS; do
19986
19987 acl_save_prefix="$prefix"
19988 prefix="$acl_final_prefix"
19989 acl_save_exec_prefix="$exec_prefix"
19990 exec_prefix="$acl_final_exec_prefix"
19991 eval x=\"$x\"
19992 exec_prefix="$acl_save_exec_prefix"
19993 prefix="$acl_save_prefix"
19994
19995 if test "X$x" = "X$element"; then
19996 haveit=yes
19997 break
19998 fi
19999 done
20000 if test -z "$haveit"; then
20001 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20002 fi
20003 done
20004
20005
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h. */
20008
20009_ACEOF
20010if ac_fn_cxx_try_compile "$LINENO"; then :
20011 cy_good=1
20012else
20013 cy_good=0
20014fi
20015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016
20017 CXXFLAGS=$cy_save
20018 if test "x$cy_good" = x1; then :
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20020$as_echo "yes" >&6; }
20021
20022 for element in -Wno-empty-body; do
20023 haveit=
20024 for x in $CXXFLAGS; do
20025
20026 acl_save_prefix="$prefix"
20027 prefix="$acl_final_prefix"
20028 acl_save_exec_prefix="$exec_prefix"
20029 exec_prefix="$acl_final_exec_prefix"
20030 eval x=\"$x\"
20031 exec_prefix="$acl_save_exec_prefix"
20032 prefix="$acl_save_prefix"
20033
20034 if test "X$x" = "X$element"; then
20035 haveit=yes
20036 break
20037 fi
20038 done
20039 if test -z "$haveit"; then
20040 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20041 fi
20042 done
20043
20044
20045else
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047$as_echo "no" >&6; }
20048fi
20049
20050 ac_ext=cpp
20051ac_cpp='$CXXCPP $CPPFLAGS'
20052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055
20056
20057
20058 ac_ext=mm
20059ac_cpp='$OBJCXXCPP $CPPFLAGS'
20060ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20063
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20065$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20066
20067 cy_save=$OBJCXXFLAGS
20068
20069 for element in -Wno-empty-body; do
20070 haveit=
20071 for x in $OBJCXXFLAGS; do
20072
20073 acl_save_prefix="$prefix"
20074 prefix="$acl_final_prefix"
20075 acl_save_exec_prefix="$exec_prefix"
20076 exec_prefix="$acl_final_exec_prefix"
20077 eval x=\"$x\"
20078 exec_prefix="$acl_save_exec_prefix"
20079 prefix="$acl_save_prefix"
20080
20081 if test "X$x" = "X$element"; then
20082 haveit=yes
20083 break
20084 fi
20085 done
20086 if test -z "$haveit"; then
20087 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20088 fi
20089 done
20090
20091
20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093/* end confdefs.h. */
20094
20095_ACEOF
20096if ac_fn_objcxx_try_compile "$LINENO"; then :
20097 cy_good=1
20098else
20099 cy_good=0
20100fi
20101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102
20103 OBJCXXFLAGS=$cy_save
20104 if test "x$cy_good" = x1; then :
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20106$as_echo "yes" >&6; }
20107
20108 for element in -Wno-empty-body; do
20109 haveit=
20110 for x in $OBJCXXFLAGS; do
20111
20112 acl_save_prefix="$prefix"
20113 prefix="$acl_final_prefix"
20114 acl_save_exec_prefix="$exec_prefix"
20115 exec_prefix="$acl_final_exec_prefix"
20116 eval x=\"$x\"
20117 exec_prefix="$acl_save_exec_prefix"
20118 prefix="$acl_save_prefix"
20119
20120 if test "X$x" = "X$element"; then
20121 haveit=yes
20122 break
20123 fi
20124 done
20125 if test -z "$haveit"; then
20126 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20127 fi
20128 done
20129
20130
20131else
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133$as_echo "no" >&6; }
20134fi
20135
20136 ac_ext=cpp
20137ac_cpp='$CXXCPP $CPPFLAGS'
20138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20141
20142
20143
20144
20145
20146 ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20153$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
20154
20155 cy_save=$CFLAGS
20156
20157 for element in -Wno-overloaded-virtual; do
20158 haveit=
20159 for x in $CFLAGS; do
20160
20161 acl_save_prefix="$prefix"
20162 prefix="$acl_final_prefix"
20163 acl_save_exec_prefix="$exec_prefix"
20164 exec_prefix="$acl_final_exec_prefix"
20165 eval x=\"$x\"
20166 exec_prefix="$acl_save_exec_prefix"
20167 prefix="$acl_save_prefix"
20168
20169 if test "X$x" = "X$element"; then
20170 haveit=yes
20171 break
20172 fi
20173 done
20174 if test -z "$haveit"; then
20175 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20176 fi
20177 done
20178
20179
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181/* end confdefs.h. */
20182
20183_ACEOF
20184if ac_fn_c_try_compile "$LINENO"; then :
20185 cy_good=1
20186else
20187 cy_good=0
20188fi
20189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190
20191 CFLAGS=$cy_save
20192 if test "x$cy_good" = x1; then :
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194$as_echo "yes" >&6; }
20195
20196 for element in -Wno-overloaded-virtual; do
20197 haveit=
20198 for x in $CFLAGS; do
20199
20200 acl_save_prefix="$prefix"
20201 prefix="$acl_final_prefix"
20202 acl_save_exec_prefix="$exec_prefix"
20203 exec_prefix="$acl_final_exec_prefix"
20204 eval x=\"$x\"
20205 exec_prefix="$acl_save_exec_prefix"
20206 prefix="$acl_save_prefix"
20207
20208 if test "X$x" = "X$element"; then
20209 haveit=yes
20210 break
20211 fi
20212 done
20213 if test -z "$haveit"; then
20214 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20215 fi
20216 done
20217
20218
20219else
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221$as_echo "no" >&6; }
20222fi
20223
20224 ac_ext=cpp
20225ac_cpp='$CXXCPP $CPPFLAGS'
20226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20229
20230
20231
20232 ac_ext=cpp
20233ac_cpp='$CXXCPP $CPPFLAGS'
20234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20239$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
20240
20241 cy_save=$CXXFLAGS
20242
20243 for element in -Wno-overloaded-virtual; do
20244 haveit=
20245 for x in $CXXFLAGS; do
20246
20247 acl_save_prefix="$prefix"
20248 prefix="$acl_final_prefix"
20249 acl_save_exec_prefix="$exec_prefix"
20250 exec_prefix="$acl_final_exec_prefix"
20251 eval x=\"$x\"
20252 exec_prefix="$acl_save_exec_prefix"
20253 prefix="$acl_save_prefix"
20254
20255 if test "X$x" = "X$element"; then
20256 haveit=yes
20257 break
20258 fi
20259 done
20260 if test -z "$haveit"; then
20261 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20262 fi
20263 done
20264
20265
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267/* end confdefs.h. */
20268
20269_ACEOF
20270if ac_fn_cxx_try_compile "$LINENO"; then :
20271 cy_good=1
20272else
20273 cy_good=0
20274fi
20275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276
20277 CXXFLAGS=$cy_save
20278 if test "x$cy_good" = x1; then :
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20280$as_echo "yes" >&6; }
20281
20282 for element in -Wno-overloaded-virtual; do
20283 haveit=
20284 for x in $CXXFLAGS; do
20285
20286 acl_save_prefix="$prefix"
20287 prefix="$acl_final_prefix"
20288 acl_save_exec_prefix="$exec_prefix"
20289 exec_prefix="$acl_final_exec_prefix"
20290 eval x=\"$x\"
20291 exec_prefix="$acl_save_exec_prefix"
20292 prefix="$acl_save_prefix"
20293
20294 if test "X$x" = "X$element"; then
20295 haveit=yes
20296 break
20297 fi
20298 done
20299 if test -z "$haveit"; then
20300 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20301 fi
20302 done
20303
20304
20305else
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20307$as_echo "no" >&6; }
20308fi
20309
20310 ac_ext=cpp
20311ac_cpp='$CXXCPP $CPPFLAGS'
20312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20315
20316
20317
20318 ac_ext=mm
20319ac_cpp='$OBJCXXCPP $CPPFLAGS'
20320ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20323
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20325$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
20326
20327 cy_save=$OBJCXXFLAGS
20328
20329 for element in -Wno-overloaded-virtual; do
20330 haveit=
20331 for x in $OBJCXXFLAGS; do
20332
20333 acl_save_prefix="$prefix"
20334 prefix="$acl_final_prefix"
20335 acl_save_exec_prefix="$exec_prefix"
20336 exec_prefix="$acl_final_exec_prefix"
20337 eval x=\"$x\"
20338 exec_prefix="$acl_save_exec_prefix"
20339 prefix="$acl_save_prefix"
20340
20341 if test "X$x" = "X$element"; then
20342 haveit=yes
20343 break
20344 fi
20345 done
20346 if test -z "$haveit"; then
20347 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20348 fi
20349 done
20350
20351
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353/* end confdefs.h. */
20354
20355_ACEOF
20356if ac_fn_objcxx_try_compile "$LINENO"; then :
20357 cy_good=1
20358else
20359 cy_good=0
20360fi
20361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362
20363 OBJCXXFLAGS=$cy_save
20364 if test "x$cy_good" = x1; then :
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20366$as_echo "yes" >&6; }
20367
20368 for element in -Wno-overloaded-virtual; do
20369 haveit=
20370 for x in $OBJCXXFLAGS; do
20371
20372 acl_save_prefix="$prefix"
20373 prefix="$acl_final_prefix"
20374 acl_save_exec_prefix="$exec_prefix"
20375 exec_prefix="$acl_final_exec_prefix"
20376 eval x=\"$x\"
20377 exec_prefix="$acl_save_exec_prefix"
20378 prefix="$acl_save_prefix"
20379
20380 if test "X$x" = "X$element"; then
20381 haveit=yes
20382 break
20383 fi
20384 done
20385 if test -z "$haveit"; then
20386 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20387 fi
20388 done
20389
20390
20391else
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393$as_echo "no" >&6; }
20394fi
20395
20396 ac_ext=cpp
20397ac_cpp='$CXXCPP $CPPFLAGS'
20398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20401
20402
20403
20404
20405
20406 ac_ext=c
20407ac_cpp='$CPP $CPPFLAGS'
20408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20413$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
20414
20415 cy_save=$CFLAGS
20416
20417 for element in -Wno-parentheses; do
20418 haveit=
20419 for x in $CFLAGS; do
20420
20421 acl_save_prefix="$prefix"
20422 prefix="$acl_final_prefix"
20423 acl_save_exec_prefix="$exec_prefix"
20424 exec_prefix="$acl_final_exec_prefix"
20425 eval x=\"$x\"
20426 exec_prefix="$acl_save_exec_prefix"
20427 prefix="$acl_save_prefix"
20428
20429 if test "X$x" = "X$element"; then
20430 haveit=yes
20431 break
20432 fi
20433 done
20434 if test -z "$haveit"; then
20435 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20436 fi
20437 done
20438
20439
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441/* end confdefs.h. */
20442
20443_ACEOF
20444if ac_fn_c_try_compile "$LINENO"; then :
20445 cy_good=1
20446else
20447 cy_good=0
20448fi
20449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450
20451 CFLAGS=$cy_save
20452 if test "x$cy_good" = x1; then :
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20454$as_echo "yes" >&6; }
20455
20456 for element in -Wno-parentheses; do
20457 haveit=
20458 for x in $CFLAGS; do
20459
20460 acl_save_prefix="$prefix"
20461 prefix="$acl_final_prefix"
20462 acl_save_exec_prefix="$exec_prefix"
20463 exec_prefix="$acl_final_exec_prefix"
20464 eval x=\"$x\"
20465 exec_prefix="$acl_save_exec_prefix"
20466 prefix="$acl_save_prefix"
20467
20468 if test "X$x" = "X$element"; then
20469 haveit=yes
20470 break
20471 fi
20472 done
20473 if test -z "$haveit"; then
20474 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20475 fi
20476 done
20477
20478
20479else
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20481$as_echo "no" >&6; }
20482fi
20483
20484 ac_ext=cpp
20485ac_cpp='$CXXCPP $CPPFLAGS'
20486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20489
20490
20491
20492 ac_ext=cpp
20493ac_cpp='$CXXCPP $CPPFLAGS'
20494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20497
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20499$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
20500
20501 cy_save=$CXXFLAGS
20502
20503 for element in -Wno-parentheses; do
20504 haveit=
20505 for x in $CXXFLAGS; do
20506
20507 acl_save_prefix="$prefix"
20508 prefix="$acl_final_prefix"
20509 acl_save_exec_prefix="$exec_prefix"
20510 exec_prefix="$acl_final_exec_prefix"
20511 eval x=\"$x\"
20512 exec_prefix="$acl_save_exec_prefix"
20513 prefix="$acl_save_prefix"
20514
20515 if test "X$x" = "X$element"; then
20516 haveit=yes
20517 break
20518 fi
20519 done
20520 if test -z "$haveit"; then
20521 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20522 fi
20523 done
20524
20525
20526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527/* end confdefs.h. */
20528
20529_ACEOF
20530if ac_fn_cxx_try_compile "$LINENO"; then :
20531 cy_good=1
20532else
20533 cy_good=0
20534fi
20535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536
20537 CXXFLAGS=$cy_save
20538 if test "x$cy_good" = x1; then :
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20540$as_echo "yes" >&6; }
20541
20542 for element in -Wno-parentheses; do
20543 haveit=
20544 for x in $CXXFLAGS; do
20545
20546 acl_save_prefix="$prefix"
20547 prefix="$acl_final_prefix"
20548 acl_save_exec_prefix="$exec_prefix"
20549 exec_prefix="$acl_final_exec_prefix"
20550 eval x=\"$x\"
20551 exec_prefix="$acl_save_exec_prefix"
20552 prefix="$acl_save_prefix"
20553
20554 if test "X$x" = "X$element"; then
20555 haveit=yes
20556 break
20557 fi
20558 done
20559 if test -z "$haveit"; then
20560 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20561 fi
20562 done
20563
20564
20565else
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20567$as_echo "no" >&6; }
20568fi
20569
20570 ac_ext=cpp
20571ac_cpp='$CXXCPP $CPPFLAGS'
20572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20575
20576
20577
20578 ac_ext=mm
20579ac_cpp='$OBJCXXCPP $CPPFLAGS'
20580ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20585$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
20586
20587 cy_save=$OBJCXXFLAGS
20588
20589 for element in -Wno-parentheses; do
20590 haveit=
20591 for x in $OBJCXXFLAGS; do
20592
20593 acl_save_prefix="$prefix"
20594 prefix="$acl_final_prefix"
20595 acl_save_exec_prefix="$exec_prefix"
20596 exec_prefix="$acl_final_exec_prefix"
20597 eval x=\"$x\"
20598 exec_prefix="$acl_save_exec_prefix"
20599 prefix="$acl_save_prefix"
20600
20601 if test "X$x" = "X$element"; then
20602 haveit=yes
20603 break
20604 fi
20605 done
20606 if test -z "$haveit"; then
20607 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20608 fi
20609 done
20610
20611
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613/* end confdefs.h. */
20614
20615_ACEOF
20616if ac_fn_objcxx_try_compile "$LINENO"; then :
20617 cy_good=1
20618else
20619 cy_good=0
20620fi
20621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622
20623 OBJCXXFLAGS=$cy_save
20624 if test "x$cy_good" = x1; then :
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626$as_echo "yes" >&6; }
20627
20628 for element in -Wno-parentheses; do
20629 haveit=
20630 for x in $OBJCXXFLAGS; do
20631
20632 acl_save_prefix="$prefix"
20633 prefix="$acl_final_prefix"
20634 acl_save_exec_prefix="$exec_prefix"
20635 exec_prefix="$acl_final_exec_prefix"
20636 eval x=\"$x\"
20637 exec_prefix="$acl_save_exec_prefix"
20638 prefix="$acl_save_prefix"
20639
20640 if test "X$x" = "X$element"; then
20641 haveit=yes
20642 break
20643 fi
20644 done
20645 if test -z "$haveit"; then
20646 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20647 fi
20648 done
20649
20650
20651else
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653$as_echo "no" >&6; }
20654fi
20655
20656 ac_ext=cpp
20657ac_cpp='$CXXCPP $CPPFLAGS'
20658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20661
20662
20663
20664
20665
20666 ac_ext=c
20667ac_cpp='$CPP $CPPFLAGS'
20668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670ac_compiler_gnu=$ac_cv_c_compiler_gnu
20671
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20673$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20674
20675 cy_save=$CFLAGS
20676
20677 for element in -Wno-tautological-undefined-compare; do
20678 haveit=
20679 for x in $CFLAGS; do
20680
20681 acl_save_prefix="$prefix"
20682 prefix="$acl_final_prefix"
20683 acl_save_exec_prefix="$exec_prefix"
20684 exec_prefix="$acl_final_exec_prefix"
20685 eval x=\"$x\"
20686 exec_prefix="$acl_save_exec_prefix"
20687 prefix="$acl_save_prefix"
20688
20689 if test "X$x" = "X$element"; then
20690 haveit=yes
20691 break
20692 fi
20693 done
20694 if test -z "$haveit"; then
20695 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20696 fi
20697 done
20698
20699
20700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701/* end confdefs.h. */
20702
20703_ACEOF
20704if ac_fn_c_try_compile "$LINENO"; then :
20705 cy_good=1
20706else
20707 cy_good=0
20708fi
20709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710
20711 CFLAGS=$cy_save
20712 if test "x$cy_good" = x1; then :
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20714$as_echo "yes" >&6; }
20715
20716 for element in -Wno-tautological-undefined-compare; do
20717 haveit=
20718 for x in $CFLAGS; do
20719
20720 acl_save_prefix="$prefix"
20721 prefix="$acl_final_prefix"
20722 acl_save_exec_prefix="$exec_prefix"
20723 exec_prefix="$acl_final_exec_prefix"
20724 eval x=\"$x\"
20725 exec_prefix="$acl_save_exec_prefix"
20726 prefix="$acl_save_prefix"
20727
20728 if test "X$x" = "X$element"; then
20729 haveit=yes
20730 break
20731 fi
20732 done
20733 if test -z "$haveit"; then
20734 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20735 fi
20736 done
20737
20738
20739else
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20741$as_echo "no" >&6; }
20742fi
20743
20744 ac_ext=cpp
20745ac_cpp='$CXXCPP $CPPFLAGS'
20746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20749
20750
20751
20752 ac_ext=cpp
20753ac_cpp='$CXXCPP $CPPFLAGS'
20754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20759$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20760
20761 cy_save=$CXXFLAGS
20762
20763 for element in -Wno-tautological-undefined-compare; do
20764 haveit=
20765 for x in $CXXFLAGS; do
20766
20767 acl_save_prefix="$prefix"
20768 prefix="$acl_final_prefix"
20769 acl_save_exec_prefix="$exec_prefix"
20770 exec_prefix="$acl_final_exec_prefix"
20771 eval x=\"$x\"
20772 exec_prefix="$acl_save_exec_prefix"
20773 prefix="$acl_save_prefix"
20774
20775 if test "X$x" = "X$element"; then
20776 haveit=yes
20777 break
20778 fi
20779 done
20780 if test -z "$haveit"; then
20781 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20782 fi
20783 done
20784
20785
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787/* end confdefs.h. */
20788
20789_ACEOF
20790if ac_fn_cxx_try_compile "$LINENO"; then :
20791 cy_good=1
20792else
20793 cy_good=0
20794fi
20795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796
20797 CXXFLAGS=$cy_save
20798 if test "x$cy_good" = x1; then :
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20800$as_echo "yes" >&6; }
20801
20802 for element in -Wno-tautological-undefined-compare; do
20803 haveit=
20804 for x in $CXXFLAGS; do
20805
20806 acl_save_prefix="$prefix"
20807 prefix="$acl_final_prefix"
20808 acl_save_exec_prefix="$exec_prefix"
20809 exec_prefix="$acl_final_exec_prefix"
20810 eval x=\"$x\"
20811 exec_prefix="$acl_save_exec_prefix"
20812 prefix="$acl_save_prefix"
20813
20814 if test "X$x" = "X$element"; then
20815 haveit=yes
20816 break
20817 fi
20818 done
20819 if test -z "$haveit"; then
20820 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20821 fi
20822 done
20823
20824
20825else
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20827$as_echo "no" >&6; }
20828fi
20829
20830 ac_ext=cpp
20831ac_cpp='$CXXCPP $CPPFLAGS'
20832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836
20837
20838 ac_ext=mm
20839ac_cpp='$OBJCXXCPP $CPPFLAGS'
20840ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20843
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20845$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20846
20847 cy_save=$OBJCXXFLAGS
20848
20849 for element in -Wno-tautological-undefined-compare; do
20850 haveit=
20851 for x in $OBJCXXFLAGS; do
20852
20853 acl_save_prefix="$prefix"
20854 prefix="$acl_final_prefix"
20855 acl_save_exec_prefix="$exec_prefix"
20856 exec_prefix="$acl_final_exec_prefix"
20857 eval x=\"$x\"
20858 exec_prefix="$acl_save_exec_prefix"
20859 prefix="$acl_save_prefix"
20860
20861 if test "X$x" = "X$element"; then
20862 haveit=yes
20863 break
20864 fi
20865 done
20866 if test -z "$haveit"; then
20867 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20868 fi
20869 done
20870
20871
20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20873/* end confdefs.h. */
20874
20875_ACEOF
20876if ac_fn_objcxx_try_compile "$LINENO"; then :
20877 cy_good=1
20878else
20879 cy_good=0
20880fi
20881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882
20883 OBJCXXFLAGS=$cy_save
20884 if test "x$cy_good" = x1; then :
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886$as_echo "yes" >&6; }
20887
20888 for element in -Wno-tautological-undefined-compare; do
20889 haveit=
20890 for x in $OBJCXXFLAGS; do
20891
20892 acl_save_prefix="$prefix"
20893 prefix="$acl_final_prefix"
20894 acl_save_exec_prefix="$exec_prefix"
20895 exec_prefix="$acl_final_exec_prefix"
20896 eval x=\"$x\"
20897 exec_prefix="$acl_save_exec_prefix"
20898 prefix="$acl_save_prefix"
20899
20900 if test "X$x" = "X$element"; then
20901 haveit=yes
20902 break
20903 fi
20904 done
20905 if test -z "$haveit"; then
20906 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20907 fi
20908 done
20909
20910
20911else
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913$as_echo "no" >&6; }
20914fi
20915
20916 ac_ext=cpp
20917ac_cpp='$CXXCPP $CPPFLAGS'
20918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20921
20922
20923
20924
20925
20926 ac_ext=c
20927ac_cpp='$CPP $CPPFLAGS'
20928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20930ac_compiler_gnu=$ac_cv_c_compiler_gnu
20931
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20933$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20934
20935 cy_save=$CFLAGS
20936
20937 for element in -Wno-unneeded-internal-declaration; do
20938 haveit=
20939 for x in $CFLAGS; do
20940
20941 acl_save_prefix="$prefix"
20942 prefix="$acl_final_prefix"
20943 acl_save_exec_prefix="$exec_prefix"
20944 exec_prefix="$acl_final_exec_prefix"
20945 eval x=\"$x\"
20946 exec_prefix="$acl_save_exec_prefix"
20947 prefix="$acl_save_prefix"
20948
20949 if test "X$x" = "X$element"; then
20950 haveit=yes
20951 break
20952 fi
20953 done
20954 if test -z "$haveit"; then
20955 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20956 fi
20957 done
20958
20959
20960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20961/* end confdefs.h. */
20962
20963_ACEOF
20964if ac_fn_c_try_compile "$LINENO"; then :
20965 cy_good=1
20966else
20967 cy_good=0
20968fi
20969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970
20971 CFLAGS=$cy_save
20972 if test "x$cy_good" = x1; then :
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20974$as_echo "yes" >&6; }
20975
20976 for element in -Wno-unneeded-internal-declaration; do
20977 haveit=
20978 for x in $CFLAGS; do
20979
20980 acl_save_prefix="$prefix"
20981 prefix="$acl_final_prefix"
20982 acl_save_exec_prefix="$exec_prefix"
20983 exec_prefix="$acl_final_exec_prefix"
20984 eval x=\"$x\"
20985 exec_prefix="$acl_save_exec_prefix"
20986 prefix="$acl_save_prefix"
20987
20988 if test "X$x" = "X$element"; then
20989 haveit=yes
20990 break
20991 fi
20992 done
20993 if test -z "$haveit"; then
20994 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20995 fi
20996 done
20997
20998
20999else
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21001$as_echo "no" >&6; }
21002fi
21003
21004 ac_ext=cpp
21005ac_cpp='$CXXCPP $CPPFLAGS'
21006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21009
21010
21011
21012 ac_ext=cpp
21013ac_cpp='$CXXCPP $CPPFLAGS'
21014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21017
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21019$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
21020
21021 cy_save=$CXXFLAGS
21022
21023 for element in -Wno-unneeded-internal-declaration; do
21024 haveit=
21025 for x in $CXXFLAGS; do
21026
21027 acl_save_prefix="$prefix"
21028 prefix="$acl_final_prefix"
21029 acl_save_exec_prefix="$exec_prefix"
21030 exec_prefix="$acl_final_exec_prefix"
21031 eval x=\"$x\"
21032 exec_prefix="$acl_save_exec_prefix"
21033 prefix="$acl_save_prefix"
21034
21035 if test "X$x" = "X$element"; then
21036 haveit=yes
21037 break
21038 fi
21039 done
21040 if test -z "$haveit"; then
21041 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21042 fi
21043 done
21044
21045
21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047/* end confdefs.h. */
21048
21049_ACEOF
21050if ac_fn_cxx_try_compile "$LINENO"; then :
21051 cy_good=1
21052else
21053 cy_good=0
21054fi
21055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056
21057 CXXFLAGS=$cy_save
21058 if test "x$cy_good" = x1; then :
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21060$as_echo "yes" >&6; }
21061
21062 for element in -Wno-unneeded-internal-declaration; do
21063 haveit=
21064 for x in $CXXFLAGS; do
21065
21066 acl_save_prefix="$prefix"
21067 prefix="$acl_final_prefix"
21068 acl_save_exec_prefix="$exec_prefix"
21069 exec_prefix="$acl_final_exec_prefix"
21070 eval x=\"$x\"
21071 exec_prefix="$acl_save_exec_prefix"
21072 prefix="$acl_save_prefix"
21073
21074 if test "X$x" = "X$element"; then
21075 haveit=yes
21076 break
21077 fi
21078 done
21079 if test -z "$haveit"; then
21080 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21081 fi
21082 done
21083
21084
21085else
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21087$as_echo "no" >&6; }
21088fi
21089
21090 ac_ext=cpp
21091ac_cpp='$CXXCPP $CPPFLAGS'
21092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21095
21096
21097
21098 ac_ext=mm
21099ac_cpp='$OBJCXXCPP $CPPFLAGS'
21100ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21103
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21105$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
21106
21107 cy_save=$OBJCXXFLAGS
21108
21109 for element in -Wno-unneeded-internal-declaration; do
21110 haveit=
21111 for x in $OBJCXXFLAGS; do
21112
21113 acl_save_prefix="$prefix"
21114 prefix="$acl_final_prefix"
21115 acl_save_exec_prefix="$exec_prefix"
21116 exec_prefix="$acl_final_exec_prefix"
21117 eval x=\"$x\"
21118 exec_prefix="$acl_save_exec_prefix"
21119 prefix="$acl_save_prefix"
21120
21121 if test "X$x" = "X$element"; then
21122 haveit=yes
21123 break
21124 fi
21125 done
21126 if test -z "$haveit"; then
21127 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21128 fi
21129 done
21130
21131
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133/* end confdefs.h. */
21134
21135_ACEOF
21136if ac_fn_objcxx_try_compile "$LINENO"; then :
21137 cy_good=1
21138else
21139 cy_good=0
21140fi
21141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142
21143 OBJCXXFLAGS=$cy_save
21144 if test "x$cy_good" = x1; then :
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21146$as_echo "yes" >&6; }
21147
21148 for element in -Wno-unneeded-internal-declaration; do
21149 haveit=
21150 for x in $OBJCXXFLAGS; do
21151
21152 acl_save_prefix="$prefix"
21153 prefix="$acl_final_prefix"
21154 acl_save_exec_prefix="$exec_prefix"
21155 exec_prefix="$acl_final_exec_prefix"
21156 eval x=\"$x\"
21157 exec_prefix="$acl_save_exec_prefix"
21158 prefix="$acl_save_prefix"
21159
21160 if test "X$x" = "X$element"; then
21161 haveit=yes
21162 break
21163 fi
21164 done
21165 if test -z "$haveit"; then
21166 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21167 fi
21168 done
21169
21170
21171else
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21173$as_echo "no" >&6; }
21174fi
21175
21176 ac_ext=cpp
21177ac_cpp='$CXXCPP $CPPFLAGS'
21178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21181
21182
21183
21184
21185
21186
21187
21188ac_ext=c
21189ac_cpp='$CPP $CPPFLAGS'
21190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192ac_compiler_gnu=$ac_cv_c_compiler_gnu
21193
21194ax_pthread_ok=no
21195
21196# We used to check for pthread.h first, but this fails if pthread.h
21197# requires special compiler flags (e.g. on Tru64 or Sequent).
21198# It gets checked for in the link test anyway.
21199
21200# First of all, check if the user has set any of the PTHREAD_LIBS,
21201# etcetera environment variables, and if threads linking works using
21202# them:
21203if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21204 save_CFLAGS="$CFLAGS"
21205 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21206 save_LIBS="$LIBS"
21207 LIBS="$PTHREAD_LIBS $LIBS"
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21209$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211/* end confdefs.h. */
21212
21213/* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21216#ifdef __cplusplus
21217extern "C"
21218#endif
21219char pthread_join ();
21220int
21221main ()
21222{
21223return pthread_join ();
21224 ;
21225 return 0;
21226}
21227_ACEOF
21228if ac_fn_c_try_link "$LINENO"; then :
21229 ax_pthread_ok=yes
21230fi
21231rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21234$as_echo "$ax_pthread_ok" >&6; }
21235 if test x"$ax_pthread_ok" = xno; then
21236 PTHREAD_LIBS=""
21237 PTHREAD_CFLAGS=""
21238 fi
21239 LIBS="$save_LIBS"
21240 CFLAGS="$save_CFLAGS"
21241fi
21242
21243# We must check for the threads library under a number of different
21244# names; the ordering is very important because some systems
21245# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21246# libraries is broken (non-POSIX).
21247
21248# Create a list of thread flags to try. Items starting with a "-" are
21249# C compiler flags, and other items are library names, except for "none"
21250# which indicates that we try without any flags at all, and "pthread-config"
21251# which is a program returning the flags for the Pth emulation library.
21252
21253ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
21254
21255# The ordering *is* (sometimes) important. Some notes on the
21256# individual items follow:
21257
21258# pthreads: AIX (must check this before -lpthread)
21259# none: in case threads are in libc; should be tried before -Kthread and
21260# other compiler flags to prevent continual compiler warnings
21261# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21262# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21263# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21264# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
21265# -pthreads: Solaris/gcc
21266# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21267# doesn't hurt to check since this sometimes defines pthreads and
21268# -D_REENTRANT too), HP C (must be checked before -lpthread, which
21269# is present but should not be used directly)
21270# -mthreads: Mingw32/gcc, Lynx/gcc
21271# pthread: Linux, etcetera
21272# --thread-safe: KAI C++
21273# pthread-config: use pthread-config program (for GNU Pth library)
21274
21275case $host_os in
21276
21277 hpux*)
21278
21279 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21280 # multi-threading and also sets -lpthread."
21281
21282 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21283 ;;
21284
21285 openedition*)
21286
21287 # IBM z/OS requires a feature-test macro to be defined in order to
21288 # enable POSIX threads at all, so give the user a hint if this is
21289 # not set. (We don't define these ourselves, as they can affect
21290 # other portions of the system API in unpredictable ways.)
21291
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293/* end confdefs.h. */
21294
21295# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21296 AX_PTHREAD_ZOS_MISSING
21297# endif
21298
21299_ACEOF
21300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21301 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21303$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21304fi
21305rm -f conftest*
21306
21307 ;;
21308
21309 solaris*)
21310
21311 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21312 # check that first. On some older versions, libc contains stubbed
21313 # (non-functional) versions of the pthreads routines, so link-based
21314 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21315 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21316 # a function called by this macro, so we could check for that, but
21317 # who knows whether they'll stub that too in a future libc.) So
21318 # we'll look for -pthreads and -lpthread shortly thereafter.
21319
21320 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
21321 ;;
21322esac
21323
21324# Older versions of Clang only give a warning instead of an error for an
21325# unrecognized option, unless we specify -Werror. (We throw in some extra
21326# Clang warning flags for good measure.)
21327
21328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21329$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21330if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21331 $as_echo_n "(cached) " >&6
21332else
21333 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21334 save_CFLAGS="$CFLAGS"
21335 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21336 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338/* end confdefs.h. */
21339int foo(void);
21340int
21341main ()
21342{
21343foo()
21344 ;
21345 return 0;
21346}
21347_ACEOF
21348if ac_fn_c_try_compile "$LINENO"; then :
21349 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
21350else
21351 ax_cv_PTHREAD_REJECT_UNKNOWN=no
21352fi
21353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 CFLAGS="$save_CFLAGS"
21355
21356fi
21357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21358$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21359ax_pthread_extra_flags=
21360if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21361 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21362fi
21363
21364if test x"$ax_pthread_ok" = xno; then
21365for flag in $ax_pthread_flags; do
21366
21367 case $flag in
21368 none)
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21370$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21371 ;;
21372
21373 -mt,pthread)
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21375$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21376 PTHREAD_CFLAGS="-mt"
21377 PTHREAD_LIBS="-lpthread"
21378 ;;
21379
21380 -*)
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21382$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21383 PTHREAD_CFLAGS="$flag"
21384 ;;
21385
21386 pthread-config)
21387 # Extract the first word of "pthread-config", so it can be a program name with args.
21388set dummy pthread-config; ac_word=$2
21389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21390$as_echo_n "checking for $ac_word... " >&6; }
21391if ${ac_cv_prog_ax_pthread_config+:} false; then :
21392 $as_echo_n "(cached) " >&6
21393else
21394 if test -n "$ax_pthread_config"; then
21395 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21396else
21397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21398for as_dir in $PATH
21399do
21400 IFS=$as_save_IFS
21401 test -z "$as_dir" && as_dir=.
21402 for ac_exec_ext in '' $ac_executable_extensions; do
21403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21404 ac_cv_prog_ax_pthread_config="yes"
21405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21406 break 2
21407 fi
21408done
21409 done
21410IFS=$as_save_IFS
21411
21412 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21413fi
21414fi
21415ax_pthread_config=$ac_cv_prog_ax_pthread_config
21416if test -n "$ax_pthread_config"; then
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21418$as_echo "$ax_pthread_config" >&6; }
21419else
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21421$as_echo "no" >&6; }
21422fi
21423
21424
21425 if test x"$ax_pthread_config" = xno; then continue; fi
21426 PTHREAD_CFLAGS="`pthread-config --cflags`"
21427 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21428 ;;
21429
21430 *)
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21432$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21433 PTHREAD_LIBS="-l$flag"
21434 ;;
21435 esac
21436
21437 save_LIBS="$LIBS"
21438 save_CFLAGS="$CFLAGS"
21439 LIBS="$PTHREAD_LIBS $LIBS"
21440 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21441
21442 # Check for various functions. We must include pthread.h,
21443 # since some functions may be macros. (On the Sequent, we
21444 # need a special flag -Kthread to make this header compile.)
21445 # We check for pthread_join because it is in -lpthread on IRIX
21446 # while pthread_create is in libc. We check for pthread_attr_init
21447 # due to DEC craziness with -lpthreads. We check for
21448 # pthread_cleanup_push because it is one of the few pthread
21449 # functions on Solaris that doesn't have a non-functional libc stub.
21450 # We try pthread_create on general principles.
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452/* end confdefs.h. */
21453#include <pthread.h>
21454 static void routine(void *a) { a = 0; }
21455 static void *start_routine(void *a) { return a; }
21456int
21457main ()
21458{
21459pthread_t th; pthread_attr_t attr;
21460 pthread_create(&th, 0, start_routine, 0);
21461 pthread_join(th, 0);
21462 pthread_attr_init(&attr);
21463 pthread_cleanup_push(routine, 0);
21464 pthread_cleanup_pop(0) /* ; */
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469if ac_fn_c_try_link "$LINENO"; then :
21470 ax_pthread_ok=yes
21471fi
21472rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21474
21475 LIBS="$save_LIBS"
21476 CFLAGS="$save_CFLAGS"
21477
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21479$as_echo "$ax_pthread_ok" >&6; }
21480 if test "x$ax_pthread_ok" = xyes; then
21481 break;
21482 fi
21483
21484 PTHREAD_LIBS=""
21485 PTHREAD_CFLAGS=""
21486done
21487fi
21488
21489# Various other checks:
21490if test "x$ax_pthread_ok" = xyes; then
21491 save_LIBS="$LIBS"
21492 LIBS="$PTHREAD_LIBS $LIBS"
21493 save_CFLAGS="$CFLAGS"
21494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21495
21496 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21498$as_echo_n "checking for joinable pthread attribute... " >&6; }
21499if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21500 $as_echo_n "(cached) " >&6
21501else
21502 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21503 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505/* end confdefs.h. */
21506#include <pthread.h>
21507int
21508main ()
21509{
21510int attr = $attr; return attr /* ; */
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515if ac_fn_c_try_link "$LINENO"; then :
21516 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
21517fi
21518rm -f core conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21520 done
21521
21522fi
21523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21524$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21525 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21526 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
21527
21528cat >>confdefs.h <<_ACEOF
21529#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
21530_ACEOF
21531
21532fi
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21535$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21536if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21537 $as_echo_n "(cached) " >&6
21538else
21539 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21540 ax_pthread_special_flags_added=no
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542/* end confdefs.h. */
21543
21544# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21545 AX_PTHREAD_NEED_SPECIAL_FLAG
21546# endif
21547
21548_ACEOF
21549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21551 case $host_os in
21552 aix* | freebsd*)
21553 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21554 ;;
21555 darwin* | hpux* | osf* | solaris*)
21556 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21557 ;;
21558 esac
21559
21560fi
21561rm -f conftest*
21562
21563
21564fi
21565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21566$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21567 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21568 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21569 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21570 ax_pthread_special_flags_added=yes
21571fi
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21574$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21575if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21576 $as_echo_n "(cached) " >&6
21577else
21578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579/* end confdefs.h. */
21580#include <pthread.h>
21581int
21582main ()
21583{
21584int i = PTHREAD_PRIO_INHERIT;
21585 ;
21586 return 0;
21587}
21588_ACEOF
21589if ac_fn_c_try_link "$LINENO"; then :
21590 ax_cv_PTHREAD_PRIO_INHERIT=yes
21591else
21592 ax_cv_PTHREAD_PRIO_INHERIT=no
21593fi
21594rm -f core conftest.err conftest.$ac_objext \
21595 conftest$ac_exeext conftest.$ac_ext
21596
21597fi
21598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21599$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21600 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21601
21602$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21603
21604fi
21605
21606 LIBS="$save_LIBS"
21607 CFLAGS="$save_CFLAGS"
21608
21609 # More AIX lossage: compile with *_r variant
21610 if test "x$GCC" != xyes; then
21611 case $host_os in
21612 aix*)
21613 case "x/$CC" in #(
21614 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21615 #handle absolute path differently from PATH based program lookup
21616 case "x$CC" in #(
21617 x/*) :
21618 if as_fn_executable_p ${CC}_r; then :
21619 PTHREAD_CC="${CC}_r"
21620fi ;; #(
21621 *) :
21622 for ac_prog in ${CC}_r
21623do
21624 # Extract the first word of "$ac_prog", so it can be a program name with args.
21625set dummy $ac_prog; ac_word=$2
21626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21627$as_echo_n "checking for $ac_word... " >&6; }
21628if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21629 $as_echo_n "(cached) " >&6
21630else
21631 if test -n "$PTHREAD_CC"; then
21632 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21633else
21634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21635for as_dir in $PATH
21636do
21637 IFS=$as_save_IFS
21638 test -z "$as_dir" && as_dir=.
21639 for ac_exec_ext in '' $ac_executable_extensions; do
21640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21641 ac_cv_prog_PTHREAD_CC="$ac_prog"
21642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21643 break 2
21644 fi
21645done
21646 done
21647IFS=$as_save_IFS
21648
21649fi
21650fi
21651PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21652if test -n "$PTHREAD_CC"; then
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21654$as_echo "$PTHREAD_CC" >&6; }
21655else
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657$as_echo "no" >&6; }
21658fi
21659
21660
21661 test -n "$PTHREAD_CC" && break
21662done
21663test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21664 ;;
21665esac ;; #(
21666 *) :
21667 ;;
21668esac
21669 ;;
21670 esac
21671 fi
21672fi
21673
21674test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21675
21676
21677
21678
21679
21680# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21681if test x"$ax_pthread_ok" = xyes; then
21682
21683$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21684
21685 :
21686else
21687 ax_pthread_ok=no
21688
21689fi
21690ac_ext=cpp
21691ac_cpp='$CXXCPP $CPPFLAGS'
21692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704# Check whether --enable-javascript was given.
21705if test "${enable_javascript+set}" = set; then :
21706 enableval=$enable_javascript;
21707 case $enableval in #(
21708 yes) :
21709
21710
21711
21712
21713 cy_save=$LIBS
21714 LIBS=
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21716$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21717if ${ac_cv_search_JSEvaluateScript+:} false; then :
21718 $as_echo_n "(cached) " >&6
21719else
21720 ac_func_search_save_LIBS=$LIBS
21721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722/* end confdefs.h. */
21723
21724/* Override any GCC internal prototype to avoid an error.
21725 Use char because int might match the return type of a GCC
21726 builtin and then its argument prototype would still apply. */
21727#ifdef __cplusplus
21728extern "C"
21729#endif
21730char JSEvaluateScript ();
21731int
21732main ()
21733{
21734return JSEvaluateScript ();
21735 ;
21736 return 0;
21737}
21738_ACEOF
21739for ac_lib in '' JavaScriptCore; do
21740 if test -z "$ac_lib"; then
21741 ac_res="none required"
21742 else
21743 ac_res=-l$ac_lib
21744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21745 fi
21746 if ac_fn_cxx_try_link "$LINENO"; then :
21747 ac_cv_search_JSEvaluateScript=$ac_res
21748fi
21749rm -f core conftest.err conftest.$ac_objext \
21750 conftest$ac_exeext
21751 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21752 break
21753fi
21754done
21755if ${ac_cv_search_JSEvaluateScript+:} false; then :
21756
21757else
21758 ac_cv_search_JSEvaluateScript=no
21759fi
21760rm conftest.$ac_ext
21761LIBS=$ac_func_search_save_LIBS
21762fi
21763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21764$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21765ac_res=$ac_cv_search_JSEvaluateScript
21766if test "$ac_res" != no; then :
21767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21768
21769 CY_EXECUTE=1
21770
21771
21772else
21773
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21775$as_echo_n "checking for framework JavaScriptCore... " >&6; }
21776if ${ac_cv_framework_JavaScriptCore+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778else
21779
21780 ac_check_framework_save_LIBS=$LIBS
21781 LIBS="-framework JavaScriptCore $LIBS"
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783/* end confdefs.h. */
21784
21785 #include <JavaScriptCore/JSBase.h>
21786
21787int
21788main ()
21789{
21790
21791 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21792
21793 ;
21794 return 0;
21795}
21796_ACEOF
21797if ac_fn_cxx_try_link "$LINENO"; then :
21798
21799 ac_cv_framework_JavaScriptCore=yes
21800
21801else
21802 ac_cv_framework_JavaScriptCore=no
21803fi
21804rm -f core conftest.err conftest.$ac_objext \
21805 conftest$ac_exeext conftest.$ac_ext
21806 LIBS=$ac_check_framework_save_LIBS
21807
21808fi
21809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21810$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21811 if test $ac_cv_framework_JavaScriptCore = yes; then :
21812
21813
21814 for element in "-framework JavaScriptCore"; do
21815 haveit=
21816 for x in $LIBS; do
21817
21818 acl_save_prefix="$prefix"
21819 prefix="$acl_final_prefix"
21820 acl_save_exec_prefix="$exec_prefix"
21821 exec_prefix="$acl_final_exec_prefix"
21822 eval x=\"$x\"
21823 exec_prefix="$acl_save_exec_prefix"
21824 prefix="$acl_save_prefix"
21825
21826 if test "X$x" = "X$element"; then
21827 haveit=yes
21828 break
21829 fi
21830 done
21831 if test -z "$haveit"; then
21832 LIBS="${LIBS}${LIBS:+ }$element"
21833 fi
21834 done
21835
21836
21837 CY_EXECUTE=1
21838
21839
21840
21841else
21842
21843 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
21844
21845pkg_failed=no
21846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
21847$as_echo_n "checking for WEBKIT... " >&6; }
21848
21849if test -n "$WEBKIT_CFLAGS"; then
21850 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21851 elif test -n "$PKG_CONFIG"; then
21852 if test -n "$PKG_CONFIG" && \
21853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21854 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21855 ac_status=$?
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; then
21858 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
21859 test "x$?" != "x0" && pkg_failed=yes
21860else
21861 pkg_failed=yes
21862fi
21863 else
21864 pkg_failed=untried
21865fi
21866if test -n "$WEBKIT_LIBS"; then
21867 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21868 elif test -n "$PKG_CONFIG"; then
21869 if test -n "$PKG_CONFIG" && \
21870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21871 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21872 ac_status=$?
21873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874 test $ac_status = 0; }; then
21875 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
21876 test "x$?" != "x0" && pkg_failed=yes
21877else
21878 pkg_failed=yes
21879fi
21880 else
21881 pkg_failed=untried
21882fi
21883
21884
21885
21886if test $pkg_failed = yes; then
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21888$as_echo "no" >&6; }
21889
21890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21891 _pkg_short_errors_supported=yes
21892else
21893 _pkg_short_errors_supported=no
21894fi
21895 if test $_pkg_short_errors_supported = yes; then
21896 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21897 else
21898 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21899 fi
21900 # Put the nasty error message in config.log where it belongs
21901 echo "$WEBKIT_PKG_ERRORS" >&5
21902
21903 :
21904elif test $pkg_failed = untried; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906$as_echo "no" >&6; }
21907 :
21908else
21909 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21910 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21912$as_echo "yes" >&6; }
21913
21914 CY_EXECUTE=1
21915
21916
21917 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21918 haveit=
21919 for x in $CPPFLAGS; do
21920
21921 acl_save_prefix="$prefix"
21922 prefix="$acl_final_prefix"
21923 acl_save_exec_prefix="$exec_prefix"
21924 exec_prefix="$acl_final_exec_prefix"
21925 eval x=\"$x\"
21926 exec_prefix="$acl_save_exec_prefix"
21927 prefix="$acl_save_prefix"
21928
21929 if test "X$x" = "X$element"; then
21930 haveit=yes
21931 break
21932 fi
21933 done
21934 if test -z "$haveit"; then
21935 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21936 fi
21937 done
21938
21939
21940 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
21941 haveit=
21942 for x in $LIBS; do
21943
21944 acl_save_prefix="$prefix"
21945 prefix="$acl_final_prefix"
21946 acl_save_exec_prefix="$exec_prefix"
21947 exec_prefix="$acl_final_exec_prefix"
21948 eval x=\"$x\"
21949 exec_prefix="$acl_save_exec_prefix"
21950 prefix="$acl_save_prefix"
21951
21952 if test "X$x" = "X$element"; then
21953 haveit=yes
21954 break
21955 fi
21956 done
21957 if test -z "$haveit"; then
21958 LIBS="${LIBS}${LIBS:+ }$element"
21959 fi
21960 done
21961
21962
21963fi; if test "x$CY_EXECUTE" = x1; then break; fi
21964 done
21965
21966fi
21967fi
21968
21969 LTJAVASCRIPTCORE=$LIBS
21970 LIBS=$cy_save
21971
21972
21973 ;; #(
21974 no) :
21975
21976 CY_EXECUTE=0
21977 ;; #(
21978 JavaScriptCore) :
21979
21980
21981
21982 cy_save=$LIBS
21983 LIBS=
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21985$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21986if ${ac_cv_search_JSEvaluateScript+:} false; then :
21987 $as_echo_n "(cached) " >&6
21988else
21989 ac_func_search_save_LIBS=$LIBS
21990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991/* end confdefs.h. */
21992
21993/* Override any GCC internal prototype to avoid an error.
21994 Use char because int might match the return type of a GCC
21995 builtin and then its argument prototype would still apply. */
21996#ifdef __cplusplus
21997extern "C"
21998#endif
21999char JSEvaluateScript ();
22000int
22001main ()
22002{
22003return JSEvaluateScript ();
22004 ;
22005 return 0;
22006}
22007_ACEOF
22008for ac_lib in '' JavaScriptCore; do
22009 if test -z "$ac_lib"; then
22010 ac_res="none required"
22011 else
22012 ac_res=-l$ac_lib
22013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22014 fi
22015 if ac_fn_cxx_try_link "$LINENO"; then :
22016 ac_cv_search_JSEvaluateScript=$ac_res
22017fi
22018rm -f core conftest.err conftest.$ac_objext \
22019 conftest$ac_exeext
22020 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22021 break
22022fi
22023done
22024if ${ac_cv_search_JSEvaluateScript+:} false; then :
22025
22026else
22027 ac_cv_search_JSEvaluateScript=no
22028fi
22029rm conftest.$ac_ext
22030LIBS=$ac_func_search_save_LIBS
22031fi
22032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22033$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22034ac_res=$ac_cv_search_JSEvaluateScript
22035if test "$ac_res" != no; then :
22036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22037
22038 CY_EXECUTE=1
22039
22040
22041else
22042
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22044$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22045if ${ac_cv_framework_JavaScriptCore+:} false; then :
22046 $as_echo_n "(cached) " >&6
22047else
22048
22049 ac_check_framework_save_LIBS=$LIBS
22050 LIBS="-framework JavaScriptCore $LIBS"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052/* end confdefs.h. */
22053
22054 #include <JavaScriptCore/JSBase.h>
22055
22056int
22057main ()
22058{
22059
22060 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22061
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066if ac_fn_cxx_try_link "$LINENO"; then :
22067
22068 ac_cv_framework_JavaScriptCore=yes
22069
22070else
22071 ac_cv_framework_JavaScriptCore=no
22072fi
22073rm -f core conftest.err conftest.$ac_objext \
22074 conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_framework_save_LIBS
22076
22077fi
22078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22079$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22080 if test $ac_cv_framework_JavaScriptCore = yes; then :
22081
22082
22083 for element in "-framework JavaScriptCore"; do
22084 haveit=
22085 for x in $LIBS; do
22086
22087 acl_save_prefix="$prefix"
22088 prefix="$acl_final_prefix"
22089 acl_save_exec_prefix="$exec_prefix"
22090 exec_prefix="$acl_final_exec_prefix"
22091 eval x=\"$x\"
22092 exec_prefix="$acl_save_exec_prefix"
22093 prefix="$acl_save_prefix"
22094
22095 if test "X$x" = "X$element"; then
22096 haveit=yes
22097 break
22098 fi
22099 done
22100 if test -z "$haveit"; then
22101 LIBS="${LIBS}${LIBS:+ }$element"
22102 fi
22103 done
22104
22105
22106 CY_EXECUTE=1
22107
22108
22109
22110else
22111
22112 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22113
22114pkg_failed=no
22115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22116$as_echo_n "checking for WEBKIT... " >&6; }
22117
22118if test -n "$WEBKIT_CFLAGS"; then
22119 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22120 elif test -n "$PKG_CONFIG"; then
22121 if test -n "$PKG_CONFIG" && \
22122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22123 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22124 ac_status=$?
22125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22126 test $ac_status = 0; }; then
22127 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22128 test "x$?" != "x0" && pkg_failed=yes
22129else
22130 pkg_failed=yes
22131fi
22132 else
22133 pkg_failed=untried
22134fi
22135if test -n "$WEBKIT_LIBS"; then
22136 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22137 elif test -n "$PKG_CONFIG"; then
22138 if test -n "$PKG_CONFIG" && \
22139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22140 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22141 ac_status=$?
22142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22143 test $ac_status = 0; }; then
22144 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22145 test "x$?" != "x0" && pkg_failed=yes
22146else
22147 pkg_failed=yes
22148fi
22149 else
22150 pkg_failed=untried
22151fi
22152
22153
22154
22155if test $pkg_failed = yes; then
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157$as_echo "no" >&6; }
22158
22159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22160 _pkg_short_errors_supported=yes
22161else
22162 _pkg_short_errors_supported=no
22163fi
22164 if test $_pkg_short_errors_supported = yes; then
22165 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22166 else
22167 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22168 fi
22169 # Put the nasty error message in config.log where it belongs
22170 echo "$WEBKIT_PKG_ERRORS" >&5
22171
22172 :
22173elif test $pkg_failed = untried; then
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175$as_echo "no" >&6; }
22176 :
22177else
22178 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22179 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22181$as_echo "yes" >&6; }
22182
22183 CY_EXECUTE=1
22184
22185
22186 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22187 haveit=
22188 for x in $CPPFLAGS; do
22189
22190 acl_save_prefix="$prefix"
22191 prefix="$acl_final_prefix"
22192 acl_save_exec_prefix="$exec_prefix"
22193 exec_prefix="$acl_final_exec_prefix"
22194 eval x=\"$x\"
22195 exec_prefix="$acl_save_exec_prefix"
22196 prefix="$acl_save_prefix"
22197
22198 if test "X$x" = "X$element"; then
22199 haveit=yes
22200 break
22201 fi
22202 done
22203 if test -z "$haveit"; then
22204 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22205 fi
22206 done
22207
22208
22209 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22210 haveit=
22211 for x in $LIBS; do
22212
22213 acl_save_prefix="$prefix"
22214 prefix="$acl_final_prefix"
22215 acl_save_exec_prefix="$exec_prefix"
22216 exec_prefix="$acl_final_exec_prefix"
22217 eval x=\"$x\"
22218 exec_prefix="$acl_save_exec_prefix"
22219 prefix="$acl_save_prefix"
22220
22221 if test "X$x" = "X$element"; then
22222 haveit=yes
22223 break
22224 fi
22225 done
22226 if test -z "$haveit"; then
22227 LIBS="${LIBS}${LIBS:+ }$element"
22228 fi
22229 done
22230
22231
22232fi; if test "x$CY_EXECUTE" = x1; then break; fi
22233 done
22234
22235fi
22236fi
22237
22238 LTJAVASCRIPTCORE=$LIBS
22239 LIBS=$cy_save
22240
22241
22242 ;; #(
22243 *) :
22244 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22245esac
22246
22247else
22248
22249
22250
22251 cy_save=$LIBS
22252 LIBS=
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22254$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22255if ${ac_cv_search_JSEvaluateScript+:} false; then :
22256 $as_echo_n "(cached) " >&6
22257else
22258 ac_func_search_save_LIBS=$LIBS
22259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h. */
22261
22262/* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22265#ifdef __cplusplus
22266extern "C"
22267#endif
22268char JSEvaluateScript ();
22269int
22270main ()
22271{
22272return JSEvaluateScript ();
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277for ac_lib in '' JavaScriptCore; do
22278 if test -z "$ac_lib"; then
22279 ac_res="none required"
22280 else
22281 ac_res=-l$ac_lib
22282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22283 fi
22284 if ac_fn_cxx_try_link "$LINENO"; then :
22285 ac_cv_search_JSEvaluateScript=$ac_res
22286fi
22287rm -f core conftest.err conftest.$ac_objext \
22288 conftest$ac_exeext
22289 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22290 break
22291fi
22292done
22293if ${ac_cv_search_JSEvaluateScript+:} false; then :
22294
22295else
22296 ac_cv_search_JSEvaluateScript=no
22297fi
22298rm conftest.$ac_ext
22299LIBS=$ac_func_search_save_LIBS
22300fi
22301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22302$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22303ac_res=$ac_cv_search_JSEvaluateScript
22304if test "$ac_res" != no; then :
22305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22306
22307 CY_EXECUTE=1
22308
22309
22310else
22311
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22313$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22314if ${ac_cv_framework_JavaScriptCore+:} false; then :
22315 $as_echo_n "(cached) " >&6
22316else
22317
22318 ac_check_framework_save_LIBS=$LIBS
22319 LIBS="-framework JavaScriptCore $LIBS"
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321/* end confdefs.h. */
22322
22323 #include <JavaScriptCore/JSBase.h>
22324
22325int
22326main ()
22327{
22328
22329 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22330
22331 ;
22332 return 0;
22333}
22334_ACEOF
22335if ac_fn_cxx_try_link "$LINENO"; then :
22336
22337 ac_cv_framework_JavaScriptCore=yes
22338
22339else
22340 ac_cv_framework_JavaScriptCore=no
22341fi
22342rm -f core conftest.err conftest.$ac_objext \
22343 conftest$ac_exeext conftest.$ac_ext
22344 LIBS=$ac_check_framework_save_LIBS
22345
22346fi
22347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22348$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22349 if test $ac_cv_framework_JavaScriptCore = yes; then :
22350
22351
22352 for element in "-framework JavaScriptCore"; do
22353 haveit=
22354 for x in $LIBS; do
22355
22356 acl_save_prefix="$prefix"
22357 prefix="$acl_final_prefix"
22358 acl_save_exec_prefix="$exec_prefix"
22359 exec_prefix="$acl_final_exec_prefix"
22360 eval x=\"$x\"
22361 exec_prefix="$acl_save_exec_prefix"
22362 prefix="$acl_save_prefix"
22363
22364 if test "X$x" = "X$element"; then
22365 haveit=yes
22366 break
22367 fi
22368 done
22369 if test -z "$haveit"; then
22370 LIBS="${LIBS}${LIBS:+ }$element"
22371 fi
22372 done
22373
22374
22375 CY_EXECUTE=1
22376
22377
22378
22379else
22380
22381 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22382
22383pkg_failed=no
22384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22385$as_echo_n "checking for WEBKIT... " >&6; }
22386
22387if test -n "$WEBKIT_CFLAGS"; then
22388 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22389 elif test -n "$PKG_CONFIG"; then
22390 if test -n "$PKG_CONFIG" && \
22391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22392 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22393 ac_status=$?
22394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22395 test $ac_status = 0; }; then
22396 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22397 test "x$?" != "x0" && pkg_failed=yes
22398else
22399 pkg_failed=yes
22400fi
22401 else
22402 pkg_failed=untried
22403fi
22404if test -n "$WEBKIT_LIBS"; then
22405 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22406 elif test -n "$PKG_CONFIG"; then
22407 if test -n "$PKG_CONFIG" && \
22408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22409 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22410 ac_status=$?
22411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22412 test $ac_status = 0; }; then
22413 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22414 test "x$?" != "x0" && pkg_failed=yes
22415else
22416 pkg_failed=yes
22417fi
22418 else
22419 pkg_failed=untried
22420fi
22421
22422
22423
22424if test $pkg_failed = yes; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426$as_echo "no" >&6; }
22427
22428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22429 _pkg_short_errors_supported=yes
22430else
22431 _pkg_short_errors_supported=no
22432fi
22433 if test $_pkg_short_errors_supported = yes; then
22434 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22435 else
22436 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22437 fi
22438 # Put the nasty error message in config.log where it belongs
22439 echo "$WEBKIT_PKG_ERRORS" >&5
22440
22441 :
22442elif test $pkg_failed = untried; then
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22444$as_echo "no" >&6; }
22445 :
22446else
22447 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22448 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22450$as_echo "yes" >&6; }
22451
22452 CY_EXECUTE=1
22453
22454
22455 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22456 haveit=
22457 for x in $CPPFLAGS; do
22458
22459 acl_save_prefix="$prefix"
22460 prefix="$acl_final_prefix"
22461 acl_save_exec_prefix="$exec_prefix"
22462 exec_prefix="$acl_final_exec_prefix"
22463 eval x=\"$x\"
22464 exec_prefix="$acl_save_exec_prefix"
22465 prefix="$acl_save_prefix"
22466
22467 if test "X$x" = "X$element"; then
22468 haveit=yes
22469 break
22470 fi
22471 done
22472 if test -z "$haveit"; then
22473 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22474 fi
22475 done
22476
22477
22478 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22479 haveit=
22480 for x in $LIBS; do
22481
22482 acl_save_prefix="$prefix"
22483 prefix="$acl_final_prefix"
22484 acl_save_exec_prefix="$exec_prefix"
22485 exec_prefix="$acl_final_exec_prefix"
22486 eval x=\"$x\"
22487 exec_prefix="$acl_save_exec_prefix"
22488 prefix="$acl_save_prefix"
22489
22490 if test "X$x" = "X$element"; then
22491 haveit=yes
22492 break
22493 fi
22494 done
22495 if test -z "$haveit"; then
22496 LIBS="${LIBS}${LIBS:+ }$element"
22497 fi
22498 done
22499
22500
22501fi; if test "x$CY_EXECUTE" = x1; then break; fi
22502 done
22503
22504fi
22505fi
22506
22507 LTJAVASCRIPTCORE=$LIBS
22508 LIBS=$cy_save
22509
22510
22511
22512fi
22513
22514
22515# Check whether --enable-console was given.
22516if test "${enable_console+set}" = set; then :
22517 enableval=$enable_console;
22518fi
22519
22520 if test "x$enable_console" != "xno"; then
22521 CY_CONSOLE_TRUE=
22522 CY_CONSOLE_FALSE='#'
22523else
22524 CY_CONSOLE_TRUE='#'
22525 CY_CONSOLE_FALSE=
22526fi
22527
22528
22529# Check whether --enable-attach was given.
22530if test "${enable_attach+set}" = set; then :
22531 enableval=$enable_attach;
22532fi
22533
22534 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22535 CY_ATTACH_TRUE=
22536 CY_ATTACH_FALSE='#'
22537else
22538 CY_ATTACH_TRUE='#'
22539 CY_ATTACH_FALSE=
22540fi
22541
22542
22543
22544
22545 if test "x$CY_EXECUTE" = x1; then
22546 CY_EXECUTE_TRUE=
22547 CY_EXECUTE_FALSE='#'
22548else
22549 CY_EXECUTE_TRUE='#'
22550 CY_EXECUTE_FALSE=
22551fi
22552
22553
22554if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22555
22556
22557
22558case $CY_EXECUTE in #(
22559 1) :
22560
22561
22562 cy_save=$LIBS
22563 LIBS=
22564 for ac_header in uv.h
22565do :
22566 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22567if test "x$ac_cv_header_uv_h" = xyes; then :
22568 cat >>confdefs.h <<_ACEOF
22569#define HAVE_UV_H 1
22570_ACEOF
22571
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22573$as_echo_n "checking for library containing uv_loop_init... " >&6; }
22574if ${ac_cv_search_uv_loop_init+:} false; then :
22575 $as_echo_n "(cached) " >&6
22576else
22577 ac_func_search_save_LIBS=$LIBS
22578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579/* end confdefs.h. */
22580
22581/* Override any GCC internal prototype to avoid an error.
22582 Use char because int might match the return type of a GCC
22583 builtin and then its argument prototype would still apply. */
22584#ifdef __cplusplus
22585extern "C"
22586#endif
22587char uv_loop_init ();
22588int
22589main ()
22590{
22591return uv_loop_init ();
22592 ;
22593 return 0;
22594}
22595_ACEOF
22596for ac_lib in '' uv; do
22597 if test -z "$ac_lib"; then
22598 ac_res="none required"
22599 else
22600 ac_res=-l$ac_lib
22601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22602 fi
22603 if ac_fn_cxx_try_link "$LINENO"; then :
22604 ac_cv_search_uv_loop_init=$ac_res
22605fi
22606rm -f core conftest.err conftest.$ac_objext \
22607 conftest$ac_exeext
22608 if ${ac_cv_search_uv_loop_init+:} false; then :
22609 break
22610fi
22611done
22612if ${ac_cv_search_uv_loop_init+:} false; then :
22613
22614else
22615 ac_cv_search_uv_loop_init=no
22616fi
22617rm conftest.$ac_ext
22618LIBS=$ac_func_search_save_LIBS
22619fi
22620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22621$as_echo "$ac_cv_search_uv_loop_init" >&6; }
22622ac_res=$ac_cv_search_uv_loop_init
22623if test "$ac_res" != no; then :
22624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22625
22626fi
22627
22628
22629fi
22630
22631done
22632
22633 LTLIBUV=$LIBS
22634 LIBS=$cy_save
22635
22636
22637
22638
22639 cy_save=$LIBS
22640 LIBS=
22641 for ac_header in sqlite3.h
22642do :
22643 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22644if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22645 cat >>confdefs.h <<_ACEOF
22646#define HAVE_SQLITE3_H 1
22647_ACEOF
22648
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22650$as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22651if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22652 $as_echo_n "(cached) " >&6
22653else
22654 ac_func_search_save_LIBS=$LIBS
22655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656/* end confdefs.h. */
22657
22658/* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22661#ifdef __cplusplus
22662extern "C"
22663#endif
22664char sqlite3_open_v2 ();
22665int
22666main ()
22667{
22668return sqlite3_open_v2 ();
22669 ;
22670 return 0;
22671}
22672_ACEOF
22673for ac_lib in '' sqlite3 sqlite; do
22674 if test -z "$ac_lib"; then
22675 ac_res="none required"
22676 else
22677 ac_res=-l$ac_lib
22678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22679 fi
22680 if ac_fn_cxx_try_link "$LINENO"; then :
22681 ac_cv_search_sqlite3_open_v2=$ac_res
22682fi
22683rm -f core conftest.err conftest.$ac_objext \
22684 conftest$ac_exeext
22685 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22686 break
22687fi
22688done
22689if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22690
22691else
22692 ac_cv_search_sqlite3_open_v2=no
22693fi
22694rm conftest.$ac_ext
22695LIBS=$ac_func_search_save_LIBS
22696fi
22697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22698$as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22699ac_res=$ac_cv_search_sqlite3_open_v2
22700if test "$ac_res" != no; then :
22701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22702
22703fi
22704
22705
22706fi
22707
22708done
22709
22710 LTLIBSQLITE3=$LIBS
22711 LIBS=$cy_save
22712
22713
22714
22715 for ac_header in ffi.h ffi/ffi.h
22716do :
22717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22718ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22720 cat >>confdefs.h <<_ACEOF
22721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22722_ACEOF
22723 break
22724fi
22725
22726done
22727
22728
22729
22730 cy_save=$LIBS
22731 LIBS=
22732 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
22733
22734
22735
22736pkg_failed=no
22737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22738$as_echo_n "checking for LIBFFI... " >&6; }
22739
22740if test -n "$LIBFFI_CFLAGS"; then
22741 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22742 elif test -n "$PKG_CONFIG"; then
22743 if test -n "$PKG_CONFIG" && \
22744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22745 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; then
22749 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22750 test "x$?" != "x0" && pkg_failed=yes
22751else
22752 pkg_failed=yes
22753fi
22754 else
22755 pkg_failed=untried
22756fi
22757if test -n "$LIBFFI_LIBS"; then
22758 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22759 elif test -n "$PKG_CONFIG"; then
22760 if test -n "$PKG_CONFIG" && \
22761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22762 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22763 ac_status=$?
22764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22765 test $ac_status = 0; }; then
22766 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22767 test "x$?" != "x0" && pkg_failed=yes
22768else
22769 pkg_failed=yes
22770fi
22771 else
22772 pkg_failed=untried
22773fi
22774
22775
22776
22777if test $pkg_failed = yes; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22779$as_echo "no" >&6; }
22780
22781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22782 _pkg_short_errors_supported=yes
22783else
22784 _pkg_short_errors_supported=no
22785fi
22786 if test $_pkg_short_errors_supported = yes; then
22787 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22788 else
22789 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22790 fi
22791 # Put the nasty error message in config.log where it belongs
22792 echo "$LIBFFI_PKG_ERRORS" >&5
22793
22794 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22795elif test $pkg_failed = untried; then
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22797$as_echo "no" >&6; }
22798 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22799else
22800 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22801 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22803$as_echo "yes" >&6; }
22804
22805
22806 for element in `$PKG_CONFIG --cflags libffi`; do
22807 haveit=
22808 for x in $CPPFLAGS; do
22809
22810 acl_save_prefix="$prefix"
22811 prefix="$acl_final_prefix"
22812 acl_save_exec_prefix="$exec_prefix"
22813 exec_prefix="$acl_final_exec_prefix"
22814 eval x=\"$x\"
22815 exec_prefix="$acl_save_exec_prefix"
22816 prefix="$acl_save_prefix"
22817
22818 if test "X$x" = "X$element"; then
22819 haveit=yes
22820 break
22821 fi
22822 done
22823 if test -z "$haveit"; then
22824 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22825 fi
22826 done
22827
22828
22829 for element in `$PKG_CONFIG --libs libffi`; do
22830 haveit=
22831 for x in $LIBS; do
22832
22833 acl_save_prefix="$prefix"
22834 prefix="$acl_final_prefix"
22835 acl_save_exec_prefix="$exec_prefix"
22836 exec_prefix="$acl_final_exec_prefix"
22837 eval x=\"$x\"
22838 exec_prefix="$acl_save_exec_prefix"
22839 prefix="$acl_save_prefix"
22840
22841 if test "X$x" = "X$element"; then
22842 haveit=yes
22843 break
22844 fi
22845 done
22846 if test -z "$haveit"; then
22847 LIBS="${LIBS}${LIBS:+ }$element"
22848 fi
22849 done
22850
22851
22852fi
22853
22854else
22855
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22857$as_echo_n "checking for library containing ffi_call... " >&6; }
22858if ${ac_cv_search_ffi_call+:} false; then :
22859 $as_echo_n "(cached) " >&6
22860else
22861 ac_func_search_save_LIBS=$LIBS
22862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22863/* end confdefs.h. */
22864
22865/* Override any GCC internal prototype to avoid an error.
22866 Use char because int might match the return type of a GCC
22867 builtin and then its argument prototype would still apply. */
22868#ifdef __cplusplus
22869extern "C"
22870#endif
22871char ffi_call ();
22872int
22873main ()
22874{
22875return ffi_call ();
22876 ;
22877 return 0;
22878}
22879_ACEOF
22880for ac_lib in '' ffi; do
22881 if test -z "$ac_lib"; then
22882 ac_res="none required"
22883 else
22884 ac_res=-l$ac_lib
22885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22886 fi
22887 if ac_fn_cxx_try_link "$LINENO"; then :
22888 ac_cv_search_ffi_call=$ac_res
22889fi
22890rm -f core conftest.err conftest.$ac_objext \
22891 conftest$ac_exeext
22892 if ${ac_cv_search_ffi_call+:} false; then :
22893 break
22894fi
22895done
22896if ${ac_cv_search_ffi_call+:} false; then :
22897
22898else
22899 ac_cv_search_ffi_call=no
22900fi
22901rm conftest.$ac_ext
22902LIBS=$ac_func_search_save_LIBS
22903fi
22904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22905$as_echo "$ac_cv_search_ffi_call" >&6; }
22906ac_res=$ac_cv_search_ffi_call
22907if test "$ac_res" != no; then :
22908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22909
22910fi
22911
22912 case $ac_cv_search_ffi_call in #(
22913 no) :
22914
22915
22916pkg_failed=no
22917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22918$as_echo_n "checking for LIBFFI... " >&6; }
22919
22920if test -n "$LIBFFI_CFLAGS"; then
22921 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22922 elif test -n "$PKG_CONFIG"; then
22923 if test -n "$PKG_CONFIG" && \
22924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22925 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22926 ac_status=$?
22927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22928 test $ac_status = 0; }; then
22929 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22930 test "x$?" != "x0" && pkg_failed=yes
22931else
22932 pkg_failed=yes
22933fi
22934 else
22935 pkg_failed=untried
22936fi
22937if test -n "$LIBFFI_LIBS"; then
22938 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22939 elif test -n "$PKG_CONFIG"; then
22940 if test -n "$PKG_CONFIG" && \
22941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22942 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22943 ac_status=$?
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; then
22946 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22947 test "x$?" != "x0" && pkg_failed=yes
22948else
22949 pkg_failed=yes
22950fi
22951 else
22952 pkg_failed=untried
22953fi
22954
22955
22956
22957if test $pkg_failed = yes; then
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959$as_echo "no" >&6; }
22960
22961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22962 _pkg_short_errors_supported=yes
22963else
22964 _pkg_short_errors_supported=no
22965fi
22966 if test $_pkg_short_errors_supported = yes; then
22967 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22968 else
22969 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22970 fi
22971 # Put the nasty error message in config.log where it belongs
22972 echo "$LIBFFI_PKG_ERRORS" >&5
22973
22974 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22975elif test $pkg_failed = untried; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977$as_echo "no" >&6; }
22978 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22979else
22980 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22981 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22983$as_echo "yes" >&6; }
22984
22985
22986 for element in `$PKG_CONFIG --cflags libffi`; do
22987 haveit=
22988 for x in $CPPFLAGS; do
22989
22990 acl_save_prefix="$prefix"
22991 prefix="$acl_final_prefix"
22992 acl_save_exec_prefix="$exec_prefix"
22993 exec_prefix="$acl_final_exec_prefix"
22994 eval x=\"$x\"
22995 exec_prefix="$acl_save_exec_prefix"
22996 prefix="$acl_save_prefix"
22997
22998 if test "X$x" = "X$element"; then
22999 haveit=yes
23000 break
23001 fi
23002 done
23003 if test -z "$haveit"; then
23004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23005 fi
23006 done
23007
23008
23009 for element in `$PKG_CONFIG --libs libffi`; do
23010 haveit=
23011 for x in $LIBS; do
23012
23013 acl_save_prefix="$prefix"
23014 prefix="$acl_final_prefix"
23015 acl_save_exec_prefix="$exec_prefix"
23016 exec_prefix="$acl_final_exec_prefix"
23017 eval x=\"$x\"
23018 exec_prefix="$acl_save_exec_prefix"
23019 prefix="$acl_save_prefix"
23020
23021 if test "X$x" = "X$element"; then
23022 haveit=yes
23023 break
23024 fi
23025 done
23026 if test -z "$haveit"; then
23027 LIBS="${LIBS}${LIBS:+ }$element"
23028 fi
23029 done
23030
23031
23032fi ;; #(
23033 *) :
23034 ;;
23035esac
23036 for ac_func in ffi_prep_cif_var
23037do :
23038 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23039if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23040 cat >>confdefs.h <<_ACEOF
23041#define HAVE_FFI_PREP_CIF_VAR 1
23042_ACEOF
23043
23044fi
23045done
23046
23047
23048fi
23049 LTLIBFFI=$LIBS
23050 LIBS=$cy_save
23051
23052
23053
23054
23055 cy_save=$LIBS
23056 LIBS=
23057
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23059$as_echo_n "checking for framework JavaVM... " >&6; }
23060if ${ac_cv_framework_JavaVM+:} false; then :
23061 $as_echo_n "(cached) " >&6
23062else
23063
23064 ac_check_framework_save_LIBS=$LIBS
23065 LIBS="-framework JavaVM $LIBS"
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h. */
23068
23069 #include <JavaVM/jni.h>
23070
23071int
23072main ()
23073{
23074JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23075 ;
23076 return 0;
23077}
23078_ACEOF
23079if ac_fn_cxx_try_link "$LINENO"; then :
23080
23081 ac_cv_framework_JavaVM=yes
23082
23083else
23084 ac_cv_framework_JavaVM=no
23085fi
23086rm -f core conftest.err conftest.$ac_objext \
23087 conftest$ac_exeext conftest.$ac_ext
23088 LIBS=$ac_check_framework_save_LIBS
23089
23090fi
23091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23092$as_echo "$ac_cv_framework_JavaVM" >&6; }
23093 if test $ac_cv_framework_JavaVM = yes; then :
23094
23095
23096 for element in "-framework JavaVM"; do
23097 haveit=
23098 for x in $LIBS; do
23099
23100 acl_save_prefix="$prefix"
23101 prefix="$acl_final_prefix"
23102 acl_save_exec_prefix="$exec_prefix"
23103 exec_prefix="$acl_final_exec_prefix"
23104 eval x=\"$x\"
23105 exec_prefix="$acl_save_exec_prefix"
23106 prefix="$acl_save_prefix"
23107
23108 if test "X$x" = "X$element"; then
23109 haveit=yes
23110 break
23111 fi
23112 done
23113 if test -z "$haveit"; then
23114 LIBS="${LIBS}${LIBS:+ }$element"
23115 fi
23116 done
23117
23118
23119 CY_JAVA=1
23120
23121
23122
23123else
23124 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
23125if test "x$ac_cv_header_jni_h" = xyes; then :
23126
23127 CY_JAVA=1
23128
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
23130$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
23131if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23132 $as_echo_n "(cached) " >&6
23133else
23134 ac_func_search_save_LIBS=$LIBS
23135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136/* end confdefs.h. */
23137
23138/* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23141#ifdef __cplusplus
23142extern "C"
23143#endif
23144char JNI_GetCreatedJavaVMs ();
23145int
23146main ()
23147{
23148return JNI_GetCreatedJavaVMs ();
23149 ;
23150 return 0;
23151}
23152_ACEOF
23153for ac_lib in '' art dvm; do
23154 if test -z "$ac_lib"; then
23155 ac_res="none required"
23156 else
23157 ac_res=-l$ac_lib
23158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23159 fi
23160 if ac_fn_cxx_try_link "$LINENO"; then :
23161 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
23162fi
23163rm -f core conftest.err conftest.$ac_objext \
23164 conftest$ac_exeext
23165 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23166 break
23167fi
23168done
23169if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23170
23171else
23172 ac_cv_search_JNI_GetCreatedJavaVMs=no
23173fi
23174rm conftest.$ac_ext
23175LIBS=$ac_func_search_save_LIBS
23176fi
23177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
23178$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
23179ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
23180if test "$ac_res" != no; then :
23181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23182
23183
23184fi
23185
23186
23187else
23188
23189 CY_JAVA=0
23190
23191
23192fi
23193
23194
23195fi
23196 LTJAVA=$LIBS
23197 LIBS=$cy_save
23198
23199
23200
23201
23202 cy_save=$LIBS
23203 LIBS=
23204
23205pkg_failed=no
23206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRUBY21" >&5
23207$as_echo_n "checking for LIBRUBY21... " >&6; }
23208
23209if test -n "$LIBRUBY21_CFLAGS"; then
23210 pkg_cv_LIBRUBY21_CFLAGS="$LIBRUBY21_CFLAGS"
23211 elif test -n "$PKG_CONFIG"; then
23212 if test -n "$PKG_CONFIG" && \
23213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23214 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23215 ac_status=$?
23216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23217 test $ac_status = 0; }; then
23218 pkg_cv_LIBRUBY21_CFLAGS=`$PKG_CONFIG --cflags "ruby-2.1" 2>/dev/null`
23219 test "x$?" != "x0" && pkg_failed=yes
23220else
23221 pkg_failed=yes
23222fi
23223 else
23224 pkg_failed=untried
23225fi
23226if test -n "$LIBRUBY21_LIBS"; then
23227 pkg_cv_LIBRUBY21_LIBS="$LIBRUBY21_LIBS"
23228 elif test -n "$PKG_CONFIG"; then
23229 if test -n "$PKG_CONFIG" && \
23230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23231 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23232 ac_status=$?
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; then
23235 pkg_cv_LIBRUBY21_LIBS=`$PKG_CONFIG --libs "ruby-2.1" 2>/dev/null`
23236 test "x$?" != "x0" && pkg_failed=yes
23237else
23238 pkg_failed=yes
23239fi
23240 else
23241 pkg_failed=untried
23242fi
23243
23244
23245
23246if test $pkg_failed = yes; then
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23248$as_echo "no" >&6; }
23249
23250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23251 _pkg_short_errors_supported=yes
23252else
23253 _pkg_short_errors_supported=no
23254fi
23255 if test $_pkg_short_errors_supported = yes; then
23256 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-2.1" 2>&1`
23257 else
23258 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-2.1" 2>&1`
23259 fi
23260 # Put the nasty error message in config.log where it belongs
23261 echo "$LIBRUBY21_PKG_ERRORS" >&5
23262
23263
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23265$as_echo_n "checking for framework Ruby... " >&6; }
23266if ${ac_cv_framework_Ruby+:} false; then :
23267 $as_echo_n "(cached) " >&6
23268else
23269
23270 ac_check_framework_save_LIBS=$LIBS
23271 LIBS="-framework Ruby $LIBS"
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273/* end confdefs.h. */
23274
23275 #include <Ruby/ruby.h>
23276
23277int
23278main ()
23279{
23280ruby_init();
23281 ;
23282 return 0;
23283}
23284_ACEOF
23285if ac_fn_cxx_try_link "$LINENO"; then :
23286
23287 ac_cv_framework_Ruby=yes
23288
23289else
23290 ac_cv_framework_Ruby=no
23291fi
23292rm -f core conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
23294 LIBS=$ac_check_framework_save_LIBS
23295
23296fi
23297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23298$as_echo "$ac_cv_framework_Ruby" >&6; }
23299 if test $ac_cv_framework_Ruby = yes; then :
23300
23301
23302 for element in "-framework Ruby"; do
23303 haveit=
23304 for x in $LIBS; do
23305
23306 acl_save_prefix="$prefix"
23307 prefix="$acl_final_prefix"
23308 acl_save_exec_prefix="$exec_prefix"
23309 exec_prefix="$acl_final_exec_prefix"
23310 eval x=\"$x\"
23311 exec_prefix="$acl_save_exec_prefix"
23312 prefix="$acl_save_prefix"
23313
23314 if test "X$x" = "X$element"; then
23315 haveit=yes
23316 break
23317 fi
23318 done
23319 if test -z "$haveit"; then
23320 LIBS="${LIBS}${LIBS:+ }$element"
23321 fi
23322 done
23323
23324
23325 CY_RUBY=1
23326
23327
23328
23329else
23330 for ac_header in ruby.h
23331do :
23332 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23333if test "x$ac_cv_header_ruby_h" = xyes; then :
23334 cat >>confdefs.h <<_ACEOF
23335#define HAVE_RUBY_H 1
23336_ACEOF
23337
23338 CY_RUBY=1
23339
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23341$as_echo_n "checking for library containing ruby_init... " >&6; }
23342if ${ac_cv_search_ruby_init+:} false; then :
23343 $as_echo_n "(cached) " >&6
23344else
23345 ac_func_search_save_LIBS=$LIBS
23346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347/* end confdefs.h. */
23348
23349/* Override any GCC internal prototype to avoid an error.
23350 Use char because int might match the return type of a GCC
23351 builtin and then its argument prototype would still apply. */
23352#ifdef __cplusplus
23353extern "C"
23354#endif
23355char ruby_init ();
23356int
23357main ()
23358{
23359return ruby_init ();
23360 ;
23361 return 0;
23362}
23363_ACEOF
23364for ac_lib in '' ruby; do
23365 if test -z "$ac_lib"; then
23366 ac_res="none required"
23367 else
23368 ac_res=-l$ac_lib
23369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23370 fi
23371 if ac_fn_cxx_try_link "$LINENO"; then :
23372 ac_cv_search_ruby_init=$ac_res
23373fi
23374rm -f core conftest.err conftest.$ac_objext \
23375 conftest$ac_exeext
23376 if ${ac_cv_search_ruby_init+:} false; then :
23377 break
23378fi
23379done
23380if ${ac_cv_search_ruby_init+:} false; then :
23381
23382else
23383 ac_cv_search_ruby_init=no
23384fi
23385rm conftest.$ac_ext
23386LIBS=$ac_func_search_save_LIBS
23387fi
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23389$as_echo "$ac_cv_search_ruby_init" >&6; }
23390ac_res=$ac_cv_search_ruby_init
23391if test "$ac_res" != no; then :
23392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23393
23394
23395fi
23396
23397
23398else
23399
23400 CY_RUBY=0
23401
23402
23403fi
23404
23405done
23406
23407fi
23408elif test $pkg_failed = untried; then
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410$as_echo "no" >&6; }
23411
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23413$as_echo_n "checking for framework Ruby... " >&6; }
23414if ${ac_cv_framework_Ruby+:} false; then :
23415 $as_echo_n "(cached) " >&6
23416else
23417
23418 ac_check_framework_save_LIBS=$LIBS
23419 LIBS="-framework Ruby $LIBS"
23420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23421/* end confdefs.h. */
23422
23423 #include <Ruby/ruby.h>
23424
23425int
23426main ()
23427{
23428ruby_init();
23429 ;
23430 return 0;
23431}
23432_ACEOF
23433if ac_fn_cxx_try_link "$LINENO"; then :
23434
23435 ac_cv_framework_Ruby=yes
23436
23437else
23438 ac_cv_framework_Ruby=no
23439fi
23440rm -f core conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23442 LIBS=$ac_check_framework_save_LIBS
23443
23444fi
23445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23446$as_echo "$ac_cv_framework_Ruby" >&6; }
23447 if test $ac_cv_framework_Ruby = yes; then :
23448
23449
23450 for element in "-framework Ruby"; do
23451 haveit=
23452 for x in $LIBS; do
23453
23454 acl_save_prefix="$prefix"
23455 prefix="$acl_final_prefix"
23456 acl_save_exec_prefix="$exec_prefix"
23457 exec_prefix="$acl_final_exec_prefix"
23458 eval x=\"$x\"
23459 exec_prefix="$acl_save_exec_prefix"
23460 prefix="$acl_save_prefix"
23461
23462 if test "X$x" = "X$element"; then
23463 haveit=yes
23464 break
23465 fi
23466 done
23467 if test -z "$haveit"; then
23468 LIBS="${LIBS}${LIBS:+ }$element"
23469 fi
23470 done
23471
23472
23473 CY_RUBY=1
23474
23475
23476
23477else
23478 for ac_header in ruby.h
23479do :
23480 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23481if test "x$ac_cv_header_ruby_h" = xyes; then :
23482 cat >>confdefs.h <<_ACEOF
23483#define HAVE_RUBY_H 1
23484_ACEOF
23485
23486 CY_RUBY=1
23487
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23489$as_echo_n "checking for library containing ruby_init... " >&6; }
23490if ${ac_cv_search_ruby_init+:} false; then :
23491 $as_echo_n "(cached) " >&6
23492else
23493 ac_func_search_save_LIBS=$LIBS
23494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495/* end confdefs.h. */
23496
23497/* Override any GCC internal prototype to avoid an error.
23498 Use char because int might match the return type of a GCC
23499 builtin and then its argument prototype would still apply. */
23500#ifdef __cplusplus
23501extern "C"
23502#endif
23503char ruby_init ();
23504int
23505main ()
23506{
23507return ruby_init ();
23508 ;
23509 return 0;
23510}
23511_ACEOF
23512for ac_lib in '' ruby; do
23513 if test -z "$ac_lib"; then
23514 ac_res="none required"
23515 else
23516 ac_res=-l$ac_lib
23517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23518 fi
23519 if ac_fn_cxx_try_link "$LINENO"; then :
23520 ac_cv_search_ruby_init=$ac_res
23521fi
23522rm -f core conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext
23524 if ${ac_cv_search_ruby_init+:} false; then :
23525 break
23526fi
23527done
23528if ${ac_cv_search_ruby_init+:} false; then :
23529
23530else
23531 ac_cv_search_ruby_init=no
23532fi
23533rm conftest.$ac_ext
23534LIBS=$ac_func_search_save_LIBS
23535fi
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23537$as_echo "$ac_cv_search_ruby_init" >&6; }
23538ac_res=$ac_cv_search_ruby_init
23539if test "$ac_res" != no; then :
23540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23541
23542
23543fi
23544
23545
23546else
23547
23548 CY_RUBY=0
23549
23550
23551fi
23552
23553done
23554
23555fi
23556else
23557 LIBRUBY21_CFLAGS=$pkg_cv_LIBRUBY21_CFLAGS
23558 LIBRUBY21_LIBS=$pkg_cv_LIBRUBY21_LIBS
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23560$as_echo "yes" >&6; }
23561
23562 CY_RUBY=1
23563
23564
23565 for element in `$PKG_CONFIG --cflags ruby-2.1`; do
23566 haveit=
23567 for x in $CPPFLAGS; do
23568
23569 acl_save_prefix="$prefix"
23570 prefix="$acl_final_prefix"
23571 acl_save_exec_prefix="$exec_prefix"
23572 exec_prefix="$acl_final_exec_prefix"
23573 eval x=\"$x\"
23574 exec_prefix="$acl_save_exec_prefix"
23575 prefix="$acl_save_prefix"
23576
23577 if test "X$x" = "X$element"; then
23578 haveit=yes
23579 break
23580 fi
23581 done
23582 if test -z "$haveit"; then
23583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23584 fi
23585 done
23586
23587
23588 for element in `$PKG_CONFIG --libs ruby-2.1`; do
23589 haveit=
23590 for x in $LIBS; do
23591
23592 acl_save_prefix="$prefix"
23593 prefix="$acl_final_prefix"
23594 acl_save_exec_prefix="$exec_prefix"
23595 exec_prefix="$acl_final_exec_prefix"
23596 eval x=\"$x\"
23597 exec_prefix="$acl_save_exec_prefix"
23598 prefix="$acl_save_prefix"
23599
23600 if test "X$x" = "X$element"; then
23601 haveit=yes
23602 break
23603 fi
23604 done
23605 if test -z "$haveit"; then
23606 LIBS="${LIBS}${LIBS:+ }$element"
23607 fi
23608 done
23609
23610
23611fi
23612 LTRUBY=$LIBS
23613 LIBS=$cy_save
23614
23615
23616
23617
23618# Check whether --with-python was given.
23619if test "${with_python+set}" = set; then :
23620 withval=$with_python;
23621else
23622 with_python=no
23623fi
23624
23625
23626 if test "x$with_python" != "xno"; then :
23627
23628 CY_PYTHON=1
23629
23630
23631 cy_save=$LIBS
23632 LIBS=
23633
23634
23635 for element in `$with_python --includes`; do
23636 haveit=
23637 for x in $CPPFLAGS; do
23638
23639 acl_save_prefix="$prefix"
23640 prefix="$acl_final_prefix"
23641 acl_save_exec_prefix="$exec_prefix"
23642 exec_prefix="$acl_final_exec_prefix"
23643 eval x=\"$x\"
23644 exec_prefix="$acl_save_exec_prefix"
23645 prefix="$acl_save_prefix"
23646
23647 if test "X$x" = "X$element"; then
23648 haveit=yes
23649 break
23650 fi
23651 done
23652 if test -z "$haveit"; then
23653 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23654 fi
23655 done
23656
23657
23658 for element in `$with_python --ldflags`; do
23659 haveit=
23660 for x in $LIBS; do
23661
23662 acl_save_prefix="$prefix"
23663 prefix="$acl_final_prefix"
23664 acl_save_exec_prefix="$exec_prefix"
23665 exec_prefix="$acl_final_exec_prefix"
23666 eval x=\"$x\"
23667 exec_prefix="$acl_save_exec_prefix"
23668 prefix="$acl_save_prefix"
23669
23670 if test "X$x" = "X$element"; then
23671 haveit=yes
23672 break
23673 fi
23674 done
23675 if test -z "$haveit"; then
23676 LIBS="${LIBS}${LIBS:+ }$element"
23677 fi
23678 done
23679
23680
23681 LTPYTHON=$LIBS
23682 LIBS=$cy_save
23683
23684
23685
23686else
23687
23688 CY_PYTHON=0
23689
23690
23691fi
23692
23693 if test "x$with_python" != "xno"; then
23694 CY_PRELINK_TRUE=
23695 CY_PRELINK_FALSE='#'
23696else
23697 CY_PRELINK_TRUE='#'
23698 CY_PRELINK_FALSE=
23699fi
23700
23701
23702 ac_ext=mm
23703ac_cpp='$OBJCXXCPP $CPPFLAGS'
23704ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23705ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23706ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23707
23708
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23710$as_echo_n "checking if we really have Objective C++... " >&6; }
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712/* end confdefs.h. */
23713
23714_ACEOF
23715if ac_fn_objcxx_try_compile "$LINENO"; then :
23716
23717 CY_OBJECTIVEC=1
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23719$as_echo "yes" >&6; }
23720
23721else
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723$as_echo "no" >&6; }
23724fi
23725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726
23727 if test "x$CY_OBJECTIVEC" = x1; then :
23728
23729
23730 cy_save=$LIBS
23731 LIBS=
23732
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23734$as_echo_n "checking for framework CoreFoundation... " >&6; }
23735if ${ac_cv_framework_CoreFoundation+:} false; then :
23736 $as_echo_n "(cached) " >&6
23737else
23738
23739 ac_check_framework_save_LIBS=$LIBS
23740 LIBS="-framework CoreFoundation $LIBS"
23741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23742/* end confdefs.h. */
23743
23744 #include <CoreFoundation/CFBase.h>
23745
23746int
23747main ()
23748{
23749CFAllocatorGetDefault();
23750 ;
23751 return 0;
23752}
23753_ACEOF
23754if ac_fn_objcxx_try_link "$LINENO"; then :
23755
23756 ac_cv_framework_CoreFoundation=yes
23757
23758else
23759 ac_cv_framework_CoreFoundation=no
23760fi
23761rm -f core conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
23763 LIBS=$ac_check_framework_save_LIBS
23764
23765fi
23766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23767$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23768 if test $ac_cv_framework_CoreFoundation = yes; then :
23769
23770
23771 for element in "-framework CoreFoundation"; do
23772 haveit=
23773 for x in $LIBS; do
23774
23775 acl_save_prefix="$prefix"
23776 prefix="$acl_final_prefix"
23777 acl_save_exec_prefix="$exec_prefix"
23778 exec_prefix="$acl_final_exec_prefix"
23779 eval x=\"$x\"
23780 exec_prefix="$acl_save_exec_prefix"
23781 prefix="$acl_save_prefix"
23782
23783 if test "X$x" = "X$element"; then
23784 haveit=yes
23785 break
23786 fi
23787 done
23788 if test -z "$haveit"; then
23789 LIBS="${LIBS}${LIBS:+ }$element"
23790 fi
23791 done
23792
23793
23794 CY_OBJECTIVEC=1
23795
23796
23797
23798
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23800$as_echo_n "checking for framework Foundation... " >&6; }
23801if ${ac_cv_framework_Foundation+:} false; then :
23802 $as_echo_n "(cached) " >&6
23803else
23804
23805 ac_check_framework_save_LIBS=$LIBS
23806 LIBS="-framework Foundation $LIBS"
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808/* end confdefs.h. */
23809
23810 #include <Foundation/NSObject.h>
23811
23812int
23813main ()
23814{
23815[[NSObject alloc] init];
23816 ;
23817 return 0;
23818}
23819_ACEOF
23820if ac_fn_objcxx_try_link "$LINENO"; then :
23821
23822 ac_cv_framework_Foundation=yes
23823
23824else
23825 ac_cv_framework_Foundation=no
23826fi
23827rm -f core conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
23829 LIBS=$ac_check_framework_save_LIBS
23830
23831fi
23832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23833$as_echo "$ac_cv_framework_Foundation" >&6; }
23834 if test $ac_cv_framework_Foundation = yes; then :
23835
23836
23837 for element in "-framework Foundation"; do
23838 haveit=
23839 for x in $LIBS; do
23840
23841 acl_save_prefix="$prefix"
23842 prefix="$acl_final_prefix"
23843 acl_save_exec_prefix="$exec_prefix"
23844 exec_prefix="$acl_final_exec_prefix"
23845 eval x=\"$x\"
23846 exec_prefix="$acl_save_exec_prefix"
23847 prefix="$acl_save_prefix"
23848
23849 if test "X$x" = "X$element"; then
23850 haveit=yes
23851 break
23852 fi
23853 done
23854 if test -z "$haveit"; then
23855 LIBS="${LIBS}${LIBS:+ }$element"
23856 fi
23857 done
23858
23859 cat >>confdefs.h <<_ACEOF
23860#define HAVE_FRAMEWORK_FOUNDATION 1
23861_ACEOF
23862
23863
23864fi
23865
23866
23867else
23868
23869
23870 for ac_prog in gnustep-config
23871do
23872 # Extract the first word of "$ac_prog", so it can be a program name with args.
23873set dummy $ac_prog; ac_word=$2
23874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23875$as_echo_n "checking for $ac_word... " >&6; }
23876if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23877 $as_echo_n "(cached) " >&6
23878else
23879 if test -n "$GNUSTEP_CONFIG"; then
23880 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
23881else
23882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23883for as_dir in $PATH
23884do
23885 IFS=$as_save_IFS
23886 test -z "$as_dir" && as_dir=.
23887 for ac_exec_ext in '' $ac_executable_extensions; do
23888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23889 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23891 break 2
23892 fi
23893done
23894 done
23895IFS=$as_save_IFS
23896
23897fi
23898fi
23899GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23900if test -n "$GNUSTEP_CONFIG"; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23902$as_echo "$GNUSTEP_CONFIG" >&6; }
23903else
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905$as_echo "no" >&6; }
23906fi
23907
23908
23909 test -n "$GNUSTEP_CONFIG" && break
23910done
23911
23912
23913 if test "x$GNUSTEP_CONFIG" != x; then :
23914
23915 CY_OBJECTIVEC=1
23916
23917
23918 for element in `$GNUSTEP_CONFIG --objc-flags`; do
23919 haveit=
23920 for x in $OBJCXXFLAGS; do
23921
23922 acl_save_prefix="$prefix"
23923 prefix="$acl_final_prefix"
23924 acl_save_exec_prefix="$exec_prefix"
23925 exec_prefix="$acl_final_exec_prefix"
23926 eval x=\"$x\"
23927 exec_prefix="$acl_save_exec_prefix"
23928 prefix="$acl_save_prefix"
23929
23930 if test "X$x" = "X$element"; then
23931 haveit=yes
23932 break
23933 fi
23934 done
23935 if test -z "$haveit"; then
23936 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23937 fi
23938 done
23939
23940
23941 for element in `$GNUSTEP_CONFIG --base-libs`; do
23942 haveit=
23943 for x in $LIBS; do
23944
23945 acl_save_prefix="$prefix"
23946 prefix="$acl_final_prefix"
23947 acl_save_exec_prefix="$exec_prefix"
23948 exec_prefix="$acl_final_exec_prefix"
23949 eval x=\"$x\"
23950 exec_prefix="$acl_save_exec_prefix"
23951 prefix="$acl_save_prefix"
23952
23953 if test "X$x" = "X$element"; then
23954 haveit=yes
23955 break
23956 fi
23957 done
23958 if test -z "$haveit"; then
23959 LIBS="${LIBS}${LIBS:+ }$element"
23960 fi
23961 done
23962
23963
23964else
23965 CY_OBJECTIVEC=0
23966
23967fi
23968
23969fi
23970 LTOBJECTIVEC=$LIBS
23971 LIBS=$cy_save
23972
23973
23974
23975else
23976
23977 CY_OBJECTIVEC=0
23978
23979
23980fi
23981
23982 ac_ext=cpp
23983ac_cpp='$CXXCPP $CPPFLAGS'
23984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23987
23988 ;; #(
23989 *) :
23990 ;;
23991esac
23992
23993 if test "x$CY_JAVA" = x1; then
23994 CY_JAVA_TRUE=
23995 CY_JAVA_FALSE='#'
23996else
23997 CY_JAVA_TRUE='#'
23998 CY_JAVA_FALSE=
23999fi
24000
24001 if test "x$CY_RUBY" = x1; then
24002 CY_RUBY_TRUE=
24003 CY_RUBY_FALSE='#'
24004else
24005 CY_RUBY_TRUE='#'
24006 CY_RUBY_FALSE=
24007fi
24008
24009 if test "x$CY_PYTHON" = x1; then
24010 CY_PYTHON_TRUE=
24011 CY_PYTHON_FALSE='#'
24012else
24013 CY_PYTHON_TRUE='#'
24014 CY_PYTHON_FALSE=
24015fi
24016
24017 if test "x$CY_OBJECTIVEC" = x1; then
24018 CY_OBJECTIVEC_TRUE=
24019 CY_OBJECTIVEC_FALSE='#'
24020else
24021 CY_OBJECTIVEC_TRUE='#'
24022 CY_OBJECTIVEC_FALSE=
24023fi
24024
24025
24026
24027# Check whether --with-libclang was given.
24028if test "${with_libclang+set}" = set; then :
24029 withval=$with_libclang;
24030else
24031 with_libclang=no
24032fi
24033
24034
24035if test "x$with_libclang" != "xno"; then :
24036
24037 CY_LIBCLANG="$with_libclang"
24038
24039fi
24040 if test "x$with_libclang" != "xno"; then
24041 CY_PRELINK_TRUE=
24042 CY_PRELINK_FALSE='#'
24043else
24044 CY_PRELINK_TRUE='#'
24045 CY_PRELINK_FALSE=
24046fi
24047
24048
24049
24050 cy_save=$LIBS
24051 LIBS=
24052
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
24054$as_echo_n "checking for a readline compatible library... " >&6; }
24055if ${ax_cv_lib_readline+:} false; then :
24056 $as_echo_n "(cached) " >&6
24057else
24058
24059 ORIG_LIBS="$LIBS"
24060 for readline_lib in readline edit editline; do
24061 for termcap_lib in "" termcap curses ncurses; do
24062 if test -z "$termcap_lib"; then
24063 TRY_LIB="-l$readline_lib"
24064 else
24065 TRY_LIB="-l$readline_lib -l$termcap_lib"
24066 fi
24067 LIBS="$ORIG_LIBS $TRY_LIB"
24068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24069/* end confdefs.h. */
24070
24071/* Override any GCC internal prototype to avoid an error.
24072 Use char because int might match the return type of a GCC
24073 builtin and then its argument prototype would still apply. */
24074#ifdef __cplusplus
24075extern "C"
24076#endif
24077char readline ();
24078int
24079main ()
24080{
24081return readline ();
24082 ;
24083 return 0;
24084}
24085_ACEOF
24086if ac_fn_cxx_try_link "$LINENO"; then :
24087 ax_cv_lib_readline="$TRY_LIB"
24088fi
24089rm -f core conftest.err conftest.$ac_objext \
24090 conftest$ac_exeext conftest.$ac_ext
24091 if test -n "$ax_cv_lib_readline"; then
24092 break
24093 fi
24094 done
24095 if test -n "$ax_cv_lib_readline"; then
24096 break
24097 fi
24098 done
24099 if test -z "$ax_cv_lib_readline"; then
24100 ax_cv_lib_readline="no"
24101 fi
24102 LIBS="$ORIG_LIBS"
24103
24104fi
24105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
24106$as_echo "$ax_cv_lib_readline" >&6; }
24107
24108 if test "$ax_cv_lib_readline" != "no"; then
24109 LIBS="$LIBS $ax_cv_lib_readline"
24110
24111$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
24112
24113 for ac_header in readline.h readline/readline.h
24114do :
24115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24116ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24117if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24118 cat >>confdefs.h <<_ACEOF
24119#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24120_ACEOF
24121
24122fi
24123
24124done
24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
24127$as_echo_n "checking whether readline supports history... " >&6; }
24128if ${ax_cv_lib_readline_history+:} false; then :
24129 $as_echo_n "(cached) " >&6
24130else
24131
24132 ax_cv_lib_readline_history="no"
24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134/* end confdefs.h. */
24135
24136/* Override any GCC internal prototype to avoid an error.
24137 Use char because int might match the return type of a GCC
24138 builtin and then its argument prototype would still apply. */
24139#ifdef __cplusplus
24140extern "C"
24141#endif
24142char add_history ();
24143int
24144main ()
24145{
24146return add_history ();
24147 ;
24148 return 0;
24149}
24150_ACEOF
24151if ac_fn_cxx_try_link "$LINENO"; then :
24152 ax_cv_lib_readline_history="yes"
24153fi
24154rm -f core conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
24156
24157fi
24158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
24159$as_echo "$ax_cv_lib_readline_history" >&6; }
24160 if test "$ax_cv_lib_readline_history" = "yes"; then
24161
24162$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
24163
24164 for ac_header in history.h readline/history.h
24165do :
24166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24167ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24169 cat >>confdefs.h <<_ACEOF
24170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24171_ACEOF
24172
24173fi
24174
24175done
24176
24177 fi
24178 fi
24179
24180 LTLIBREADLINE=$LIBS
24181 LIBS=$cy_save
24182
24183
24184case $ax_cv_lib_readline in #(
24185 no) :
24186 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
24187 *) :
24188 ;;
24189esac
24190
24191
24192 cy_save=$LIBS
24193 LIBS=
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
24195$as_echo_n "checking for library containing cur_term... " >&6; }
24196if ${ac_cv_search_cur_term+:} false; then :
24197 $as_echo_n "(cached) " >&6
24198else
24199 ac_func_search_save_LIBS=$LIBS
24200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201/* end confdefs.h. */
24202
24203/* Override any GCC internal prototype to avoid an error.
24204 Use char because int might match the return type of a GCC
24205 builtin and then its argument prototype would still apply. */
24206#ifdef __cplusplus
24207extern "C"
24208#endif
24209char cur_term ();
24210int
24211main ()
24212{
24213return cur_term ();
24214 ;
24215 return 0;
24216}
24217_ACEOF
24218for ac_lib in '' termcap ncurses; do
24219 if test -z "$ac_lib"; then
24220 ac_res="none required"
24221 else
24222 ac_res=-l$ac_lib
24223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24224 fi
24225 if ac_fn_cxx_try_link "$LINENO"; then :
24226 ac_cv_search_cur_term=$ac_res
24227fi
24228rm -f core conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext
24230 if ${ac_cv_search_cur_term+:} false; then :
24231 break
24232fi
24233done
24234if ${ac_cv_search_cur_term+:} false; then :
24235
24236else
24237 ac_cv_search_cur_term=no
24238fi
24239rm conftest.$ac_ext
24240LIBS=$ac_func_search_save_LIBS
24241fi
24242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
24243$as_echo "$ac_cv_search_cur_term" >&6; }
24244ac_res=$ac_cv_search_cur_term
24245if test "$ac_res" != no; then :
24246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24247
24248fi
24249
24250 LTLIBTERMCAP=$LIBS
24251 LIBS=$cy_save
24252
24253
24254
24255
24256
24257
24258SO=$acl_shlibext
24259
24260
24261ac_config_files="$ac_config_files Makefile"
24262
24263cat >confcache <<\_ACEOF
24264# This file is a shell script that caches the results of configure
24265# tests run on this system so they can be shared between configure
24266# scripts and configure runs, see configure's option --config-cache.
24267# It is not useful on other systems. If it contains results you don't
24268# want to keep, you may remove or edit it.
24269#
24270# config.status only pays attention to the cache file if you give it
24271# the --recheck option to rerun configure.
24272#
24273# `ac_cv_env_foo' variables (set or unset) will be overridden when
24274# loading this file, other *unset* `ac_cv_foo' will be assigned the
24275# following values.
24276
24277_ACEOF
24278
24279# The following way of writing the cache mishandles newlines in values,
24280# but we know of no workaround that is simple, portable, and efficient.
24281# So, we kill variables containing newlines.
24282# Ultrix sh set writes to stderr and can't be redirected directly,
24283# and sets the high bit in the cache file unless we assign to the vars.
24284(
24285 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24286 eval ac_val=\$$ac_var
24287 case $ac_val in #(
24288 *${as_nl}*)
24289 case $ac_var in #(
24290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24292 esac
24293 case $ac_var in #(
24294 _ | IFS | as_nl) ;; #(
24295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24296 *) { eval $ac_var=; unset $ac_var;} ;;
24297 esac ;;
24298 esac
24299 done
24300
24301 (set) 2>&1 |
24302 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24303 *${as_nl}ac_space=\ *)
24304 # `set' does not quote correctly, so add quotes: double-quote
24305 # substitution turns \\\\ into \\, and sed turns \\ into \.
24306 sed -n \
24307 "s/'/'\\\\''/g;
24308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24309 ;; #(
24310 *)
24311 # `set' quotes correctly as required by POSIX, so do not add quotes.
24312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24313 ;;
24314 esac |
24315 sort
24316) |
24317 sed '
24318 /^ac_cv_env_/b end
24319 t clear
24320 :clear
24321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24322 t end
24323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24324 :end' >>confcache
24325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24326 if test -w "$cache_file"; then
24327 if test "x$cache_file" != "x/dev/null"; then
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24329$as_echo "$as_me: updating cache $cache_file" >&6;}
24330 if test ! -f "$cache_file" || test -h "$cache_file"; then
24331 cat confcache >"$cache_file"
24332 else
24333 case $cache_file in #(
24334 */* | ?:*)
24335 mv -f confcache "$cache_file"$$ &&
24336 mv -f "$cache_file"$$ "$cache_file" ;; #(
24337 *)
24338 mv -f confcache "$cache_file" ;;
24339 esac
24340 fi
24341 fi
24342 else
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24344$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24345 fi
24346fi
24347rm -f confcache
24348
24349test "x$prefix" = xNONE && prefix=$ac_default_prefix
24350# Let make expand exec_prefix.
24351test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24352
24353DEFS=-DHAVE_CONFIG_H
24354
24355ac_libobjs=
24356ac_ltlibobjs=
24357U=
24358for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24359 # 1. Remove the extension, and $U if already installed.
24360 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24361 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24362 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24363 # will be set to the directory where LIBOBJS objects are built.
24364 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24365 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24366done
24367LIBOBJS=$ac_libobjs
24368
24369LTLIBOBJS=$ac_ltlibobjs
24370
24371
24372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24373$as_echo_n "checking that generated files are newer than configure... " >&6; }
24374 if test -n "$am_sleep_pid"; then
24375 # Hide warnings about reused PIDs.
24376 wait $am_sleep_pid 2>/dev/null
24377 fi
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24379$as_echo "done" >&6; }
24380 if test -n "$EXEEXT"; then
24381 am__EXEEXT_TRUE=
24382 am__EXEEXT_FALSE='#'
24383else
24384 am__EXEEXT_TRUE='#'
24385 am__EXEEXT_FALSE=
24386fi
24387
24388if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24389 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24390Usually this means the macro was only invoked conditionally." "$LINENO" 5
24391fi
24392if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24393 as_fn_error $? "conditional \"AMDEP\" was never defined.
24394Usually this means the macro was only invoked conditionally." "$LINENO" 5
24395fi
24396if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24397 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24398Usually this means the macro was only invoked conditionally." "$LINENO" 5
24399fi
24400if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24401 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24402Usually this means the macro was only invoked conditionally." "$LINENO" 5
24403fi
24404if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
24405 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
24406Usually this means the macro was only invoked conditionally." "$LINENO" 5
24407fi
24408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24409 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24410Usually this means the macro was only invoked conditionally." "$LINENO" 5
24411fi
24412if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24413 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24414Usually this means the macro was only invoked conditionally." "$LINENO" 5
24415fi
24416if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
24417 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
24418Usually this means the macro was only invoked conditionally." "$LINENO" 5
24419fi
24420if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
24421 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
24422Usually this means the macro was only invoked conditionally." "$LINENO" 5
24423fi
24424if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
24425 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
24426Usually this means the macro was only invoked conditionally." "$LINENO" 5
24427fi
24428if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24429 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24430Usually this means the macro was only invoked conditionally." "$LINENO" 5
24431fi
24432if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
24433 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
24434Usually this means the macro was only invoked conditionally." "$LINENO" 5
24435fi
24436if test -z "${CY_RUBY_TRUE}" && test -z "${CY_RUBY_FALSE}"; then
24437 as_fn_error $? "conditional \"CY_RUBY\" was never defined.
24438Usually this means the macro was only invoked conditionally." "$LINENO" 5
24439fi
24440if test -z "${CY_PYTHON_TRUE}" && test -z "${CY_PYTHON_FALSE}"; then
24441 as_fn_error $? "conditional \"CY_PYTHON\" was never defined.
24442Usually this means the macro was only invoked conditionally." "$LINENO" 5
24443fi
24444if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
24445 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
24446Usually this means the macro was only invoked conditionally." "$LINENO" 5
24447fi
24448if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24449 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24450Usually this means the macro was only invoked conditionally." "$LINENO" 5
24451fi
24452
24453: "${CONFIG_STATUS=./config.status}"
24454ac_write_fail=0
24455ac_clean_files_save=$ac_clean_files
24456ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24457{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24458$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24459as_write_fail=0
24460cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24461#! $SHELL
24462# Generated by $as_me.
24463# Run this file to recreate the current configuration.
24464# Compiler output produced by configure, useful for debugging
24465# configure, is in config.log if it exists.
24466
24467debug=false
24468ac_cs_recheck=false
24469ac_cs_silent=false
24470
24471SHELL=\${CONFIG_SHELL-$SHELL}
24472export SHELL
24473_ASEOF
24474cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24475## -------------------- ##
24476## M4sh Initialization. ##
24477## -------------------- ##
24478
24479# Be more Bourne compatible
24480DUALCASE=1; export DUALCASE # for MKS sh
24481if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24482 emulate sh
24483 NULLCMD=:
24484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24485 # is contrary to our usage. Disable this feature.
24486 alias -g '${1+"$@"}'='"$@"'
24487 setopt NO_GLOB_SUBST
24488else
24489 case `(set -o) 2>/dev/null` in #(
24490 *posix*) :
24491 set -o posix ;; #(
24492 *) :
24493 ;;
24494esac
24495fi
24496
24497
24498as_nl='
24499'
24500export as_nl
24501# Printing a long string crashes Solaris 7 /usr/bin/printf.
24502as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24504as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24505# Prefer a ksh shell builtin over an external printf program on Solaris,
24506# but without wasting forks for bash or zsh.
24507if test -z "$BASH_VERSION$ZSH_VERSION" \
24508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24509 as_echo='print -r --'
24510 as_echo_n='print -rn --'
24511elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24512 as_echo='printf %s\n'
24513 as_echo_n='printf %s'
24514else
24515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24516 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24517 as_echo_n='/usr/ucb/echo -n'
24518 else
24519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24520 as_echo_n_body='eval
24521 arg=$1;
24522 case $arg in #(
24523 *"$as_nl"*)
24524 expr "X$arg" : "X\\(.*\\)$as_nl";
24525 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24526 esac;
24527 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24528 '
24529 export as_echo_n_body
24530 as_echo_n='sh -c $as_echo_n_body as_echo'
24531 fi
24532 export as_echo_body
24533 as_echo='sh -c $as_echo_body as_echo'
24534fi
24535
24536# The user is always right.
24537if test "${PATH_SEPARATOR+set}" != set; then
24538 PATH_SEPARATOR=:
24539 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24540 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24541 PATH_SEPARATOR=';'
24542 }
24543fi
24544
24545
24546# IFS
24547# We need space, tab and new line, in precisely that order. Quoting is
24548# there to prevent editors from complaining about space-tab.
24549# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24550# splitting by setting IFS to empty value.)
24551IFS=" "" $as_nl"
24552
24553# Find who we are. Look in the path if we contain no directory separator.
24554as_myself=
24555case $0 in #((
24556 *[\\/]* ) as_myself=$0 ;;
24557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24558for as_dir in $PATH
24559do
24560 IFS=$as_save_IFS
24561 test -z "$as_dir" && as_dir=.
24562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24563 done
24564IFS=$as_save_IFS
24565
24566 ;;
24567esac
24568# We did not find ourselves, most probably we were run as `sh COMMAND'
24569# in which case we are not to be found in the path.
24570if test "x$as_myself" = x; then
24571 as_myself=$0
24572fi
24573if test ! -f "$as_myself"; then
24574 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24575 exit 1
24576fi
24577
24578# Unset variables that we do not need and which cause bugs (e.g. in
24579# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24580# suppresses any "Segmentation fault" message there. '((' could
24581# trigger a bug in pdksh 5.2.14.
24582for as_var in BASH_ENV ENV MAIL MAILPATH
24583do eval test x\${$as_var+set} = xset \
24584 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24585done
24586PS1='$ '
24587PS2='> '
24588PS4='+ '
24589
24590# NLS nuisances.
24591LC_ALL=C
24592export LC_ALL
24593LANGUAGE=C
24594export LANGUAGE
24595
24596# CDPATH.
24597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24598
24599
24600# as_fn_error STATUS ERROR [LINENO LOG_FD]
24601# ----------------------------------------
24602# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24603# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24604# script with STATUS, using 1 if that was 0.
24605as_fn_error ()
24606{
24607 as_status=$1; test $as_status -eq 0 && as_status=1
24608 if test "$4"; then
24609 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24610 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24611 fi
24612 $as_echo "$as_me: error: $2" >&2
24613 as_fn_exit $as_status
24614} # as_fn_error
24615
24616
24617# as_fn_set_status STATUS
24618# -----------------------
24619# Set $? to STATUS, without forking.
24620as_fn_set_status ()
24621{
24622 return $1
24623} # as_fn_set_status
24624
24625# as_fn_exit STATUS
24626# -----------------
24627# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24628as_fn_exit ()
24629{
24630 set +e
24631 as_fn_set_status $1
24632 exit $1
24633} # as_fn_exit
24634
24635# as_fn_unset VAR
24636# ---------------
24637# Portably unset VAR.
24638as_fn_unset ()
24639{
24640 { eval $1=; unset $1;}
24641}
24642as_unset=as_fn_unset
24643# as_fn_append VAR VALUE
24644# ----------------------
24645# Append the text in VALUE to the end of the definition contained in VAR. Take
24646# advantage of any shell optimizations that allow amortized linear growth over
24647# repeated appends, instead of the typical quadratic growth present in naive
24648# implementations.
24649if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24650 eval 'as_fn_append ()
24651 {
24652 eval $1+=\$2
24653 }'
24654else
24655 as_fn_append ()
24656 {
24657 eval $1=\$$1\$2
24658 }
24659fi # as_fn_append
24660
24661# as_fn_arith ARG...
24662# ------------------
24663# Perform arithmetic evaluation on the ARGs, and store the result in the
24664# global $as_val. Take advantage of shells that can avoid forks. The arguments
24665# must be portable across $(()) and expr.
24666if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24667 eval 'as_fn_arith ()
24668 {
24669 as_val=$(( $* ))
24670 }'
24671else
24672 as_fn_arith ()
24673 {
24674 as_val=`expr "$@" || test $? -eq 1`
24675 }
24676fi # as_fn_arith
24677
24678
24679if expr a : '\(a\)' >/dev/null 2>&1 &&
24680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24681 as_expr=expr
24682else
24683 as_expr=false
24684fi
24685
24686if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24687 as_basename=basename
24688else
24689 as_basename=false
24690fi
24691
24692if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24693 as_dirname=dirname
24694else
24695 as_dirname=false
24696fi
24697
24698as_me=`$as_basename -- "$0" ||
24699$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24700 X"$0" : 'X\(//\)$' \| \
24701 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24702$as_echo X/"$0" |
24703 sed '/^.*\/\([^/][^/]*\)\/*$/{
24704 s//\1/
24705 q
24706 }
24707 /^X\/\(\/\/\)$/{
24708 s//\1/
24709 q
24710 }
24711 /^X\/\(\/\).*/{
24712 s//\1/
24713 q
24714 }
24715 s/.*/./; q'`
24716
24717# Avoid depending upon Character Ranges.
24718as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24719as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24720as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24721as_cr_digits='0123456789'
24722as_cr_alnum=$as_cr_Letters$as_cr_digits
24723
24724ECHO_C= ECHO_N= ECHO_T=
24725case `echo -n x` in #(((((
24726-n*)
24727 case `echo 'xy\c'` in
24728 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24729 xy) ECHO_C='\c';;
24730 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24731 ECHO_T=' ';;
24732 esac;;
24733*)
24734 ECHO_N='-n';;
24735esac
24736
24737rm -f conf$$ conf$$.exe conf$$.file
24738if test -d conf$$.dir; then
24739 rm -f conf$$.dir/conf$$.file
24740else
24741 rm -f conf$$.dir
24742 mkdir conf$$.dir 2>/dev/null
24743fi
24744if (echo >conf$$.file) 2>/dev/null; then
24745 if ln -s conf$$.file conf$$ 2>/dev/null; then
24746 as_ln_s='ln -s'
24747 # ... but there are two gotchas:
24748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24750 # In both cases, we have to default to `cp -pR'.
24751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24752 as_ln_s='cp -pR'
24753 elif ln conf$$.file conf$$ 2>/dev/null; then
24754 as_ln_s=ln
24755 else
24756 as_ln_s='cp -pR'
24757 fi
24758else
24759 as_ln_s='cp -pR'
24760fi
24761rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24762rmdir conf$$.dir 2>/dev/null
24763
24764
24765# as_fn_mkdir_p
24766# -------------
24767# Create "$as_dir" as a directory, including parents if necessary.
24768as_fn_mkdir_p ()
24769{
24770
24771 case $as_dir in #(
24772 -*) as_dir=./$as_dir;;
24773 esac
24774 test -d "$as_dir" || eval $as_mkdir_p || {
24775 as_dirs=
24776 while :; do
24777 case $as_dir in #(
24778 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24779 *) as_qdir=$as_dir;;
24780 esac
24781 as_dirs="'$as_qdir' $as_dirs"
24782 as_dir=`$as_dirname -- "$as_dir" ||
24783$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24784 X"$as_dir" : 'X\(//\)[^/]' \| \
24785 X"$as_dir" : 'X\(//\)$' \| \
24786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24787$as_echo X"$as_dir" |
24788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24789 s//\1/
24790 q
24791 }
24792 /^X\(\/\/\)[^/].*/{
24793 s//\1/
24794 q
24795 }
24796 /^X\(\/\/\)$/{
24797 s//\1/
24798 q
24799 }
24800 /^X\(\/\).*/{
24801 s//\1/
24802 q
24803 }
24804 s/.*/./; q'`
24805 test -d "$as_dir" && break
24806 done
24807 test -z "$as_dirs" || eval "mkdir $as_dirs"
24808 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24809
24810
24811} # as_fn_mkdir_p
24812if mkdir -p . 2>/dev/null; then
24813 as_mkdir_p='mkdir -p "$as_dir"'
24814else
24815 test -d ./-p && rmdir ./-p
24816 as_mkdir_p=false
24817fi
24818
24819
24820# as_fn_executable_p FILE
24821# -----------------------
24822# Test if FILE is an executable regular file.
24823as_fn_executable_p ()
24824{
24825 test -f "$1" && test -x "$1"
24826} # as_fn_executable_p
24827as_test_x='test -x'
24828as_executable_p=as_fn_executable_p
24829
24830# Sed expression to map a string onto a valid CPP name.
24831as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24832
24833# Sed expression to map a string onto a valid variable name.
24834as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24835
24836
24837exec 6>&1
24838## ----------------------------------- ##
24839## Main body of $CONFIG_STATUS script. ##
24840## ----------------------------------- ##
24841_ASEOF
24842test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24843
24844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24845# Save the log message, to keep $0 and so on meaningful, and to
24846# report actual input values of CONFIG_FILES etc. instead of their
24847# values after options handling.
24848ac_log="
24849This file was extended by Cycript $as_me 0.9, which was
24850generated by GNU Autoconf 2.69. Invocation command line was
24851
24852 CONFIG_FILES = $CONFIG_FILES
24853 CONFIG_HEADERS = $CONFIG_HEADERS
24854 CONFIG_LINKS = $CONFIG_LINKS
24855 CONFIG_COMMANDS = $CONFIG_COMMANDS
24856 $ $0 $@
24857
24858on `(hostname || uname -n) 2>/dev/null | sed 1q`
24859"
24860
24861_ACEOF
24862
24863case $ac_config_files in *"
24864"*) set x $ac_config_files; shift; ac_config_files=$*;;
24865esac
24866
24867case $ac_config_headers in *"
24868"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24869esac
24870
24871
24872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24873# Files that config.status was made for.
24874config_files="$ac_config_files"
24875config_headers="$ac_config_headers"
24876config_commands="$ac_config_commands"
24877
24878_ACEOF
24879
24880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24881ac_cs_usage="\
24882\`$as_me' instantiates files and other configuration actions
24883from templates according to the current configuration. Unless the files
24884and actions are specified as TAGs, all are instantiated by default.
24885
24886Usage: $0 [OPTION]... [TAG]...
24887
24888 -h, --help print this help, then exit
24889 -V, --version print version number and configuration settings, then exit
24890 --config print configuration, then exit
24891 -q, --quiet, --silent
24892 do not print progress messages
24893 -d, --debug don't remove temporary files
24894 --recheck update $as_me by reconfiguring in the same conditions
24895 --file=FILE[:TEMPLATE]
24896 instantiate the configuration file FILE
24897 --header=FILE[:TEMPLATE]
24898 instantiate the configuration header FILE
24899
24900Configuration files:
24901$config_files
24902
24903Configuration headers:
24904$config_headers
24905
24906Configuration commands:
24907$config_commands
24908
24909Report bugs to <saurik@saurik.com>.
24910Cycript home page: <http://www.cycript.org/>."
24911
24912_ACEOF
24913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24914ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24915ac_cs_version="\\
24916Cycript config.status 0.9
24917configured by $0, generated by GNU Autoconf 2.69,
24918 with options \\"\$ac_cs_config\\"
24919
24920Copyright (C) 2012 Free Software Foundation, Inc.
24921This config.status script is free software; the Free Software Foundation
24922gives unlimited permission to copy, distribute and modify it."
24923
24924ac_pwd='$ac_pwd'
24925srcdir='$srcdir'
24926INSTALL='$INSTALL'
24927MKDIR_P='$MKDIR_P'
24928AWK='$AWK'
24929test -n "\$AWK" || AWK=awk
24930_ACEOF
24931
24932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24933# The default lists apply if the user does not specify any file.
24934ac_need_defaults=:
24935while test $# != 0
24936do
24937 case $1 in
24938 --*=?*)
24939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24941 ac_shift=:
24942 ;;
24943 --*=)
24944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24945 ac_optarg=
24946 ac_shift=:
24947 ;;
24948 *)
24949 ac_option=$1
24950 ac_optarg=$2
24951 ac_shift=shift
24952 ;;
24953 esac
24954
24955 case $ac_option in
24956 # Handling of the options.
24957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24958 ac_cs_recheck=: ;;
24959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24960 $as_echo "$ac_cs_version"; exit ;;
24961 --config | --confi | --conf | --con | --co | --c )
24962 $as_echo "$ac_cs_config"; exit ;;
24963 --debug | --debu | --deb | --de | --d | -d )
24964 debug=: ;;
24965 --file | --fil | --fi | --f )
24966 $ac_shift
24967 case $ac_optarg in
24968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24969 '') as_fn_error $? "missing file argument" ;;
24970 esac
24971 as_fn_append CONFIG_FILES " '$ac_optarg'"
24972 ac_need_defaults=false;;
24973 --header | --heade | --head | --hea )
24974 $ac_shift
24975 case $ac_optarg in
24976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24977 esac
24978 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24979 ac_need_defaults=false;;
24980 --he | --h)
24981 # Conflict between --help and --header
24982 as_fn_error $? "ambiguous option: \`$1'
24983Try \`$0 --help' for more information.";;
24984 --help | --hel | -h )
24985 $as_echo "$ac_cs_usage"; exit ;;
24986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24988 ac_cs_silent=: ;;
24989
24990 # This is an error.
24991 -*) as_fn_error $? "unrecognized option: \`$1'
24992Try \`$0 --help' for more information." ;;
24993
24994 *) as_fn_append ac_config_targets " $1"
24995 ac_need_defaults=false ;;
24996
24997 esac
24998 shift
24999done
25000
25001ac_configure_extra_args=
25002
25003if $ac_cs_silent; then
25004 exec 6>/dev/null
25005 ac_configure_extra_args="$ac_configure_extra_args --silent"
25006fi
25007
25008_ACEOF
25009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25010if \$ac_cs_recheck; then
25011 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25012 shift
25013 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25014 CONFIG_SHELL='$SHELL'
25015 export CONFIG_SHELL
25016 exec "\$@"
25017fi
25018
25019_ACEOF
25020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25021exec 5>>config.log
25022{
25023 echo
25024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25025## Running $as_me. ##
25026_ASBOX
25027 $as_echo "$ac_log"
25028} >&5
25029
25030_ACEOF
25031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25032#
25033# INIT-COMMANDS
25034#
25035AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25036
25037
25038# The HP-UX ksh and POSIX shell print the target directory to stdout
25039# if CDPATH is set.
25040(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25041
25042sed_quote_subst='$sed_quote_subst'
25043double_quote_subst='$double_quote_subst'
25044delay_variable_subst='$delay_variable_subst'
25045macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25046macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25047enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25048enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25049pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25050enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25051shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25052SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25053ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25054PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25055host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25056host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25057host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25058build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25059build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25060build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25061SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25062Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25063GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25064EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25065FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25066LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25067NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25068LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25069max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25070ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25071exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25072lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25073lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25074lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25075lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25076lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25077reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25078reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25079OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25080deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25081file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25082file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25083want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25084DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25085sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25086AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25087AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25088archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25089STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25090RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25091old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25092old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25093old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25094lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25095CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25096CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25097compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25098GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25099lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25100lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25101lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25102lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25103lt_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"`'
25104lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25105nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25106lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25107lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25108objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25109MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25110lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25111lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25112lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25113lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25114lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25115need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25116MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25117DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25118NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25119LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25120OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25121OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25122libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25123shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25124extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25125archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25126enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25127export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25128whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25129compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25130old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25131old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25132archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25133archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25134module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25135module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25136with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25137allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25138no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25139hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25140hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25141hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25142hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25143hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25144hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25145hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25146inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25147link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25148always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25149export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25150exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25151include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25152prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25153postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25154file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25155variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25156need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25157need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25158version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25159runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25160shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25161shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25162libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25163library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25164soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25165install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25166postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25167postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25168finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25169finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25170hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25171sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25172configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25173configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25174hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25175enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25176enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25177enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25178old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25179striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25180compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25181predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25182postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25183predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25184postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25185compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25186LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25187reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25188reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25189old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25190compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25191GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25192lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25193lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25194lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25195lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25196lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25197archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25198enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25199export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25200whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25201compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25202old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25203old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25204archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25205archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25206module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25207module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25208with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25209allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25210no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25211hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25212hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25213hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25214hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25215hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25216hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25217hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25218inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25219link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25220always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25221export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25222exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25223include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25224prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25225postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25226file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25227hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25228compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25229predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25230postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25231predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25232postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25233compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25234
25235LTCC='$LTCC'
25236LTCFLAGS='$LTCFLAGS'
25237compiler='$compiler_DEFAULT'
25238
25239# A function that is used when there is no print builtin or printf.
25240func_fallback_echo ()
25241{
25242 eval 'cat <<_LTECHO_EOF
25243\$1
25244_LTECHO_EOF'
25245}
25246
25247# Quote evaled strings.
25248for var in SHELL \
25249ECHO \
25250PATH_SEPARATOR \
25251SED \
25252GREP \
25253EGREP \
25254FGREP \
25255LD \
25256NM \
25257LN_S \
25258lt_SP2NL \
25259lt_NL2SP \
25260reload_flag \
25261OBJDUMP \
25262deplibs_check_method \
25263file_magic_cmd \
25264file_magic_glob \
25265want_nocaseglob \
25266DLLTOOL \
25267sharedlib_from_linklib_cmd \
25268AR \
25269AR_FLAGS \
25270archiver_list_spec \
25271STRIP \
25272RANLIB \
25273CC \
25274CFLAGS \
25275compiler \
25276lt_cv_sys_global_symbol_pipe \
25277lt_cv_sys_global_symbol_to_cdecl \
25278lt_cv_sys_global_symbol_to_import \
25279lt_cv_sys_global_symbol_to_c_name_address \
25280lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25281lt_cv_nm_interface \
25282nm_file_list_spec \
25283lt_cv_truncate_bin \
25284lt_prog_compiler_no_builtin_flag \
25285lt_prog_compiler_pic \
25286lt_prog_compiler_wl \
25287lt_prog_compiler_static \
25288lt_cv_prog_compiler_c_o \
25289need_locks \
25290MANIFEST_TOOL \
25291DSYMUTIL \
25292NMEDIT \
25293LIPO \
25294OTOOL \
25295OTOOL64 \
25296shrext_cmds \
25297export_dynamic_flag_spec \
25298whole_archive_flag_spec \
25299compiler_needs_object \
25300with_gnu_ld \
25301allow_undefined_flag \
25302no_undefined_flag \
25303hardcode_libdir_flag_spec \
25304hardcode_libdir_separator \
25305exclude_expsyms \
25306include_expsyms \
25307file_list_spec \
25308variables_saved_for_relink \
25309libname_spec \
25310library_names_spec \
25311soname_spec \
25312install_override_mode \
25313finish_eval \
25314old_striplib \
25315striplib \
25316compiler_lib_search_dirs \
25317predep_objects \
25318postdep_objects \
25319predeps \
25320postdeps \
25321compiler_lib_search_path \
25322LD_CXX \
25323reload_flag_CXX \
25324compiler_CXX \
25325lt_prog_compiler_no_builtin_flag_CXX \
25326lt_prog_compiler_pic_CXX \
25327lt_prog_compiler_wl_CXX \
25328lt_prog_compiler_static_CXX \
25329lt_cv_prog_compiler_c_o_CXX \
25330export_dynamic_flag_spec_CXX \
25331whole_archive_flag_spec_CXX \
25332compiler_needs_object_CXX \
25333with_gnu_ld_CXX \
25334allow_undefined_flag_CXX \
25335no_undefined_flag_CXX \
25336hardcode_libdir_flag_spec_CXX \
25337hardcode_libdir_separator_CXX \
25338exclude_expsyms_CXX \
25339include_expsyms_CXX \
25340file_list_spec_CXX \
25341compiler_lib_search_dirs_CXX \
25342predep_objects_CXX \
25343postdep_objects_CXX \
25344predeps_CXX \
25345postdeps_CXX \
25346compiler_lib_search_path_CXX; do
25347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25348 *[\\\\\\\`\\"\\\$]*)
25349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25350 ;;
25351 *)
25352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25353 ;;
25354 esac
25355done
25356
25357# Double-quote double-evaled strings.
25358for var in reload_cmds \
25359old_postinstall_cmds \
25360old_postuninstall_cmds \
25361old_archive_cmds \
25362extract_expsyms_cmds \
25363old_archive_from_new_cmds \
25364old_archive_from_expsyms_cmds \
25365archive_cmds \
25366archive_expsym_cmds \
25367module_cmds \
25368module_expsym_cmds \
25369export_symbols_cmds \
25370prelink_cmds \
25371postlink_cmds \
25372postinstall_cmds \
25373postuninstall_cmds \
25374finish_cmds \
25375sys_lib_search_path_spec \
25376configure_time_dlsearch_path \
25377configure_time_lt_sys_library_path \
25378reload_cmds_CXX \
25379old_archive_cmds_CXX \
25380old_archive_from_new_cmds_CXX \
25381old_archive_from_expsyms_cmds_CXX \
25382archive_cmds_CXX \
25383archive_expsym_cmds_CXX \
25384module_cmds_CXX \
25385module_expsym_cmds_CXX \
25386export_symbols_cmds_CXX \
25387prelink_cmds_CXX \
25388postlink_cmds_CXX; do
25389 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25390 *[\\\\\\\`\\"\\\$]*)
25391 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25392 ;;
25393 *)
25394 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25395 ;;
25396 esac
25397done
25398
25399ac_aux_dir='$ac_aux_dir'
25400
25401# See if we are running on zsh, and set the options that allow our
25402# commands through without removal of \ escapes INIT.
25403if test -n "\${ZSH_VERSION+set}"; then
25404 setopt NO_GLOB_SUBST
25405fi
25406
25407
25408 PACKAGE='$PACKAGE'
25409 VERSION='$VERSION'
25410 RM='$RM'
25411 ofile='$ofile'
25412
25413
25414
25415
25416
25417
25418_ACEOF
25419
25420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25421
25422# Handling of arguments.
25423for ac_config_target in $ac_config_targets
25424do
25425 case $ac_config_target in
25426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25430
25431 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25432 esac
25433done
25434
25435
25436# If the user did not use the arguments to specify the items to instantiate,
25437# then the envvar interface is used. Set only those that are not.
25438# We use the long form for the default assignment because of an extremely
25439# bizarre bug on SunOS 4.1.3.
25440if $ac_need_defaults; then
25441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25444fi
25445
25446# Have a temporary directory for convenience. Make it in the build tree
25447# simply because there is no reason against having it here, and in addition,
25448# creating and moving files from /tmp can sometimes cause problems.
25449# Hook for its removal unless debugging.
25450# Note that there is a small window in which the directory will not be cleaned:
25451# after its creation but before its name has been assigned to `$tmp'.
25452$debug ||
25453{
25454 tmp= ac_tmp=
25455 trap 'exit_status=$?
25456 : "${ac_tmp:=$tmp}"
25457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25458' 0
25459 trap 'as_fn_exit 1' 1 2 13 15
25460}
25461# Create a (secure) tmp directory for tmp files.
25462
25463{
25464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25465 test -d "$tmp"
25466} ||
25467{
25468 tmp=./conf$$-$RANDOM
25469 (umask 077 && mkdir "$tmp")
25470} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25471ac_tmp=$tmp
25472
25473# Set up the scripts for CONFIG_FILES section.
25474# No need to generate them if there are no CONFIG_FILES.
25475# This happens for instance with `./config.status config.h'.
25476if test -n "$CONFIG_FILES"; then
25477
25478
25479ac_cr=`echo X | tr X '\015'`
25480# On cygwin, bash can eat \r inside `` if the user requested igncr.
25481# But we know of no other shell where ac_cr would be empty at this
25482# point, so we can use a bashism as a fallback.
25483if test "x$ac_cr" = x; then
25484 eval ac_cr=\$\'\\r\'
25485fi
25486ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25487if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25488 ac_cs_awk_cr='\\r'
25489else
25490 ac_cs_awk_cr=$ac_cr
25491fi
25492
25493echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25494_ACEOF
25495
25496
25497{
25498 echo "cat >conf$$subs.awk <<_ACEOF" &&
25499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25500 echo "_ACEOF"
25501} >conf$$subs.sh ||
25502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25503ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25504ac_delim='%!_!# '
25505for ac_last_try in false false false false false :; do
25506 . ./conf$$subs.sh ||
25507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25508
25509 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25510 if test $ac_delim_n = $ac_delim_num; then
25511 break
25512 elif $ac_last_try; then
25513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25514 else
25515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25516 fi
25517done
25518rm -f conf$$subs.sh
25519
25520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25521cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25522_ACEOF
25523sed -n '
25524h
25525s/^/S["/; s/!.*/"]=/
25526p
25527g
25528s/^[^!]*!//
25529:repl
25530t repl
25531s/'"$ac_delim"'$//
25532t delim
25533:nl
25534h
25535s/\(.\{148\}\)..*/\1/
25536t more1
25537s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25538p
25539n
25540b repl
25541:more1
25542s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25543p
25544g
25545s/.\{148\}//
25546t nl
25547:delim
25548h
25549s/\(.\{148\}\)..*/\1/
25550t more2
25551s/["\\]/\\&/g; s/^/"/; s/$/"/
25552p
25553b
25554:more2
25555s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25556p
25557g
25558s/.\{148\}//
25559t delim
25560' <conf$$subs.awk | sed '
25561/^[^""]/{
25562 N
25563 s/\n//
25564}
25565' >>$CONFIG_STATUS || ac_write_fail=1
25566rm -f conf$$subs.awk
25567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25568_ACAWK
25569cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25570 for (key in S) S_is_set[key] = 1
25571 FS = "\a"
25572
25573}
25574{
25575 line = $ 0
25576 nfields = split(line, field, "@")
25577 substed = 0
25578 len = length(field[1])
25579 for (i = 2; i < nfields; i++) {
25580 key = field[i]
25581 keylen = length(key)
25582 if (S_is_set[key]) {
25583 value = S[key]
25584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25585 len += length(value) + length(field[++i])
25586 substed = 1
25587 } else
25588 len += 1 + keylen
25589 }
25590
25591 print line
25592}
25593
25594_ACAWK
25595_ACEOF
25596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25597if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25599else
25600 cat
25601fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25602 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25603_ACEOF
25604
25605# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25606# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25607# trailing colons and then remove the whole line if VPATH becomes empty
25608# (actually we leave an empty line to preserve line numbers).
25609if test "x$srcdir" = x.; then
25610 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25611h
25612s///
25613s/^/:/
25614s/[ ]*$/:/
25615s/:\$(srcdir):/:/g
25616s/:\${srcdir}:/:/g
25617s/:@srcdir@:/:/g
25618s/^:*//
25619s/:*$//
25620x
25621s/\(=[ ]*\).*/\1/
25622G
25623s/\n//
25624s/^[^=]*=[ ]*$//
25625}'
25626fi
25627
25628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25629fi # test -n "$CONFIG_FILES"
25630
25631# Set up the scripts for CONFIG_HEADERS section.
25632# No need to generate them if there are no CONFIG_HEADERS.
25633# This happens for instance with `./config.status Makefile'.
25634if test -n "$CONFIG_HEADERS"; then
25635cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25636BEGIN {
25637_ACEOF
25638
25639# Transform confdefs.h into an awk script `defines.awk', embedded as
25640# here-document in config.status, that substitutes the proper values into
25641# config.h.in to produce config.h.
25642
25643# Create a delimiter string that does not exist in confdefs.h, to ease
25644# handling of long lines.
25645ac_delim='%!_!# '
25646for ac_last_try in false false :; do
25647 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25648 if test -z "$ac_tt"; then
25649 break
25650 elif $ac_last_try; then
25651 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25652 else
25653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25654 fi
25655done
25656
25657# For the awk script, D is an array of macro values keyed by name,
25658# likewise P contains macro parameters if any. Preserve backslash
25659# newline sequences.
25660
25661ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25662sed -n '
25663s/.\{148\}/&'"$ac_delim"'/g
25664t rset
25665:rset
25666s/^[ ]*#[ ]*define[ ][ ]*/ /
25667t def
25668d
25669:def
25670s/\\$//
25671t bsnl
25672s/["\\]/\\&/g
25673s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25674D["\1"]=" \3"/p
25675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25676d
25677:bsnl
25678s/["\\]/\\&/g
25679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25680D["\1"]=" \3\\\\\\n"\\/p
25681t cont
25682s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25683t cont
25684d
25685:cont
25686n
25687s/.\{148\}/&'"$ac_delim"'/g
25688t clear
25689:clear
25690s/\\$//
25691t bsnlc
25692s/["\\]/\\&/g; s/^/"/; s/$/"/p
25693d
25694:bsnlc
25695s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25696b cont
25697' <confdefs.h | sed '
25698s/'"$ac_delim"'/"\\\
25699"/g' >>$CONFIG_STATUS || ac_write_fail=1
25700
25701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25702 for (key in D) D_is_set[key] = 1
25703 FS = "\a"
25704}
25705/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25706 line = \$ 0
25707 split(line, arg, " ")
25708 if (arg[1] == "#") {
25709 defundef = arg[2]
25710 mac1 = arg[3]
25711 } else {
25712 defundef = substr(arg[1], 2)
25713 mac1 = arg[2]
25714 }
25715 split(mac1, mac2, "(") #)
25716 macro = mac2[1]
25717 prefix = substr(line, 1, index(line, defundef) - 1)
25718 if (D_is_set[macro]) {
25719 # Preserve the white space surrounding the "#".
25720 print prefix "define", macro P[macro] D[macro]
25721 next
25722 } else {
25723 # Replace #undef with comments. This is necessary, for example,
25724 # in the case of _POSIX_SOURCE, which is predefined and required
25725 # on some systems where configure will not decide to define it.
25726 if (defundef == "undef") {
25727 print "/*", prefix defundef, macro, "*/"
25728 next
25729 }
25730 }
25731}
25732{ print }
25733_ACAWK
25734_ACEOF
25735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25736 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25737fi # test -n "$CONFIG_HEADERS"
25738
25739
25740eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25741shift
25742for ac_tag
25743do
25744 case $ac_tag in
25745 :[FHLC]) ac_mode=$ac_tag; continue;;
25746 esac
25747 case $ac_mode$ac_tag in
25748 :[FHL]*:*);;
25749 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25750 :[FH]-) ac_tag=-:-;;
25751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25752 esac
25753 ac_save_IFS=$IFS
25754 IFS=:
25755 set x $ac_tag
25756 IFS=$ac_save_IFS
25757 shift
25758 ac_file=$1
25759 shift
25760
25761 case $ac_mode in
25762 :L) ac_source=$1;;
25763 :[FH])
25764 ac_file_inputs=
25765 for ac_f
25766 do
25767 case $ac_f in
25768 -) ac_f="$ac_tmp/stdin";;
25769 *) # Look for the file first in the build tree, then in the source tree
25770 # (if the path is not absolute). The absolute path cannot be DOS-style,
25771 # because $ac_f cannot contain `:'.
25772 test -f "$ac_f" ||
25773 case $ac_f in
25774 [\\/$]*) false;;
25775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25776 esac ||
25777 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25778 esac
25779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25780 as_fn_append ac_file_inputs " '$ac_f'"
25781 done
25782
25783 # Let's still pretend it is `configure' which instantiates (i.e., don't
25784 # use $as_me), people would be surprised to read:
25785 # /* config.h. Generated by config.status. */
25786 configure_input='Generated from '`
25787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25788 `' by configure.'
25789 if test x"$ac_file" != x-; then
25790 configure_input="$ac_file. $configure_input"
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25792$as_echo "$as_me: creating $ac_file" >&6;}
25793 fi
25794 # Neutralize special characters interpreted by sed in replacement strings.
25795 case $configure_input in #(
25796 *\&* | *\|* | *\\* )
25797 ac_sed_conf_input=`$as_echo "$configure_input" |
25798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25799 *) ac_sed_conf_input=$configure_input;;
25800 esac
25801
25802 case $ac_tag in
25803 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25805 esac
25806 ;;
25807 esac
25808
25809 ac_dir=`$as_dirname -- "$ac_file" ||
25810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25811 X"$ac_file" : 'X\(//\)[^/]' \| \
25812 X"$ac_file" : 'X\(//\)$' \| \
25813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25814$as_echo X"$ac_file" |
25815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25816 s//\1/
25817 q
25818 }
25819 /^X\(\/\/\)[^/].*/{
25820 s//\1/
25821 q
25822 }
25823 /^X\(\/\/\)$/{
25824 s//\1/
25825 q
25826 }
25827 /^X\(\/\).*/{
25828 s//\1/
25829 q
25830 }
25831 s/.*/./; q'`
25832 as_dir="$ac_dir"; as_fn_mkdir_p
25833 ac_builddir=.
25834
25835case "$ac_dir" in
25836.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25837*)
25838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25839 # A ".." for each directory in $ac_dir_suffix.
25840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25841 case $ac_top_builddir_sub in
25842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25844 esac ;;
25845esac
25846ac_abs_top_builddir=$ac_pwd
25847ac_abs_builddir=$ac_pwd$ac_dir_suffix
25848# for backward compatibility:
25849ac_top_builddir=$ac_top_build_prefix
25850
25851case $srcdir in
25852 .) # We are building in place.
25853 ac_srcdir=.
25854 ac_top_srcdir=$ac_top_builddir_sub
25855 ac_abs_top_srcdir=$ac_pwd ;;
25856 [\\/]* | ?:[\\/]* ) # Absolute name.
25857 ac_srcdir=$srcdir$ac_dir_suffix;
25858 ac_top_srcdir=$srcdir
25859 ac_abs_top_srcdir=$srcdir ;;
25860 *) # Relative name.
25861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25862 ac_top_srcdir=$ac_top_build_prefix$srcdir
25863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25864esac
25865ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25866
25867
25868 case $ac_mode in
25869 :F)
25870 #
25871 # CONFIG_FILE
25872 #
25873
25874 case $INSTALL in
25875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25877 esac
25878 ac_MKDIR_P=$MKDIR_P
25879 case $MKDIR_P in
25880 [\\/$]* | ?:[\\/]* ) ;;
25881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25882 esac
25883_ACEOF
25884
25885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25886# If the template does not know about datarootdir, expand it.
25887# FIXME: This hack should be removed a few years after 2.60.
25888ac_datarootdir_hack=; ac_datarootdir_seen=
25889ac_sed_dataroot='
25890/datarootdir/ {
25891 p
25892 q
25893}
25894/@datadir@/p
25895/@docdir@/p
25896/@infodir@/p
25897/@localedir@/p
25898/@mandir@/p'
25899case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25900*datarootdir*) ac_datarootdir_seen=yes;;
25901*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25903$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25904_ACEOF
25905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25906 ac_datarootdir_hack='
25907 s&@datadir@&$datadir&g
25908 s&@docdir@&$docdir&g
25909 s&@infodir@&$infodir&g
25910 s&@localedir@&$localedir&g
25911 s&@mandir@&$mandir&g
25912 s&\\\${datarootdir}&$datarootdir&g' ;;
25913esac
25914_ACEOF
25915
25916# Neutralize VPATH when `$srcdir' = `.'.
25917# Shell code in configure.ac might set extrasub.
25918# FIXME: do we really want to maintain this feature?
25919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25920ac_sed_extra="$ac_vpsub
25921$extrasub
25922_ACEOF
25923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25924:t
25925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25926s|@configure_input@|$ac_sed_conf_input|;t t
25927s&@top_builddir@&$ac_top_builddir_sub&;t t
25928s&@top_build_prefix@&$ac_top_build_prefix&;t t
25929s&@srcdir@&$ac_srcdir&;t t
25930s&@abs_srcdir@&$ac_abs_srcdir&;t t
25931s&@top_srcdir@&$ac_top_srcdir&;t t
25932s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25933s&@builddir@&$ac_builddir&;t t
25934s&@abs_builddir@&$ac_abs_builddir&;t t
25935s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25936s&@INSTALL@&$ac_INSTALL&;t t
25937s&@MKDIR_P@&$ac_MKDIR_P&;t t
25938$ac_datarootdir_hack
25939"
25940eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25941 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25942
25943test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25944 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25946 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25948which seems to be undefined. Please make sure it is defined" >&5
25949$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25950which seems to be undefined. Please make sure it is defined" >&2;}
25951
25952 rm -f "$ac_tmp/stdin"
25953 case $ac_file in
25954 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25955 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25956 esac \
25957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25958 ;;
25959 :H)
25960 #
25961 # CONFIG_HEADER
25962 #
25963 if test x"$ac_file" != x-; then
25964 {
25965 $as_echo "/* $configure_input */" \
25966 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25967 } >"$ac_tmp/config.h" \
25968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25969 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25971$as_echo "$as_me: $ac_file is unchanged" >&6;}
25972 else
25973 rm -f "$ac_file"
25974 mv "$ac_tmp/config.h" "$ac_file" \
25975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25976 fi
25977 else
25978 $as_echo "/* $configure_input */" \
25979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25980 || as_fn_error $? "could not create -" "$LINENO" 5
25981 fi
25982# Compute "$ac_file"'s index in $config_headers.
25983_am_arg="$ac_file"
25984_am_stamp_count=1
25985for _am_header in $config_headers :; do
25986 case $_am_header in
25987 $_am_arg | $_am_arg:* )
25988 break ;;
25989 * )
25990 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25991 esac
25992done
25993echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25994$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25995 X"$_am_arg" : 'X\(//\)[^/]' \| \
25996 X"$_am_arg" : 'X\(//\)$' \| \
25997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25998$as_echo X"$_am_arg" |
25999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26000 s//\1/
26001 q
26002 }
26003 /^X\(\/\/\)[^/].*/{
26004 s//\1/
26005 q
26006 }
26007 /^X\(\/\/\)$/{
26008 s//\1/
26009 q
26010 }
26011 /^X\(\/\).*/{
26012 s//\1/
26013 q
26014 }
26015 s/.*/./; q'`/stamp-h$_am_stamp_count
26016 ;;
26017
26018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26019$as_echo "$as_me: executing $ac_file commands" >&6;}
26020 ;;
26021 esac
26022
26023
26024 case $ac_file$ac_mode in
26025 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26026 # Older Autoconf quotes --file arguments for eval, but not when files
26027 # are listed without --file. Let's play safe and only enable the eval
26028 # if we detect the quoting.
26029 case $CONFIG_FILES in
26030 *\'*) eval set x "$CONFIG_FILES" ;;
26031 *) set x $CONFIG_FILES ;;
26032 esac
26033 shift
26034 for mf
26035 do
26036 # Strip MF so we end up with the name of the file.
26037 mf=`echo "$mf" | sed -e 's/:.*$//'`
26038 # Check whether this is an Automake generated Makefile or not.
26039 # We used to match only the files named 'Makefile.in', but
26040 # some people rename them; so instead we look at the file content.
26041 # Grep'ing the first line is not enough: some people post-process
26042 # each Makefile.in and add a new line on top of each file to say so.
26043 # Grep'ing the whole file is not good either: AIX grep has a line
26044 # limit of 2048, but all sed's we know have understand at least 4000.
26045 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26046 dirpart=`$as_dirname -- "$mf" ||
26047$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26048 X"$mf" : 'X\(//\)[^/]' \| \
26049 X"$mf" : 'X\(//\)$' \| \
26050 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26051$as_echo X"$mf" |
26052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26053 s//\1/
26054 q
26055 }
26056 /^X\(\/\/\)[^/].*/{
26057 s//\1/
26058 q
26059 }
26060 /^X\(\/\/\)$/{
26061 s//\1/
26062 q
26063 }
26064 /^X\(\/\).*/{
26065 s//\1/
26066 q
26067 }
26068 s/.*/./; q'`
26069 else
26070 continue
26071 fi
26072 # Extract the definition of DEPDIR, am__include, and am__quote
26073 # from the Makefile without running 'make'.
26074 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26075 test -z "$DEPDIR" && continue
26076 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26077 test -z "$am__include" && continue
26078 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26079 # Find all dependency output files, they are included files with
26080 # $(DEPDIR) in their names. We invoke sed twice because it is the
26081 # simplest approach to changing $(DEPDIR) to its actual value in the
26082 # expansion.
26083 for file in `sed -n "
26084 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26085 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26086 # Make sure the directory exists.
26087 test -f "$dirpart/$file" && continue
26088 fdir=`$as_dirname -- "$file" ||
26089$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26090 X"$file" : 'X\(//\)[^/]' \| \
26091 X"$file" : 'X\(//\)$' \| \
26092 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26093$as_echo X"$file" |
26094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26095 s//\1/
26096 q
26097 }
26098 /^X\(\/\/\)[^/].*/{
26099 s//\1/
26100 q
26101 }
26102 /^X\(\/\/\)$/{
26103 s//\1/
26104 q
26105 }
26106 /^X\(\/\).*/{
26107 s//\1/
26108 q
26109 }
26110 s/.*/./; q'`
26111 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26112 # echo "creating $dirpart/$file"
26113 echo '# dummy' > "$dirpart/$file"
26114 done
26115 done
26116}
26117 ;;
26118 "libtool":C)
26119
26120 # See if we are running on zsh, and set the options that allow our
26121 # commands through without removal of \ escapes.
26122 if test -n "${ZSH_VERSION+set}"; then
26123 setopt NO_GLOB_SUBST
26124 fi
26125
26126 cfgfile=${ofile}T
26127 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26128 $RM "$cfgfile"
26129
26130 cat <<_LT_EOF >> "$cfgfile"
26131#! $SHELL
26132# Generated automatically by $as_me ($PACKAGE) $VERSION
26133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26134# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26135
26136# Provide generalized library-building support services.
26137# Written by Gordon Matzigkeit, 1996
26138
26139# Copyright (C) 2014 Free Software Foundation, Inc.
26140# This is free software; see the source for copying conditions. There is NO
26141# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26142
26143# GNU Libtool is free software; you can redistribute it and/or modify
26144# it under the terms of the GNU General Public License as published by
26145# the Free Software Foundation; either version 2 of of the License, or
26146# (at your option) any later version.
26147#
26148# As a special exception to the GNU General Public License, if you
26149# distribute this file as part of a program or library that is built
26150# using GNU Libtool, you may include this file under the same
26151# distribution terms that you use for the rest of that program.
26152#
26153# GNU Libtool is distributed in the hope that it will be useful, but
26154# WITHOUT ANY WARRANTY; without even the implied warranty of
26155# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26156# GNU General Public License for more details.
26157#
26158# You should have received a copy of the GNU General Public License
26159# along with this program. If not, see <http://www.gnu.org/licenses/>.
26160
26161
26162# The names of the tagged configurations supported by this script.
26163available_tags='CXX '
26164
26165# Configured defaults for sys_lib_dlsearch_path munging.
26166: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26167
26168# ### BEGIN LIBTOOL CONFIG
26169
26170# Which release of libtool.m4 was used?
26171macro_version=$macro_version
26172macro_revision=$macro_revision
26173
26174# Whether or not to build static libraries.
26175build_old_libs=$enable_static
26176
26177# Whether or not to build shared libraries.
26178build_libtool_libs=$enable_shared
26179
26180# What type of objects to build.
26181pic_mode=$pic_mode
26182
26183# Whether or not to optimize for fast installation.
26184fast_install=$enable_fast_install
26185
26186# Shared archive member basename,for filename based shared library versioning on AIX.
26187shared_archive_member_spec=$shared_archive_member_spec
26188
26189# Shell to use when invoking shell scripts.
26190SHELL=$lt_SHELL
26191
26192# An echo program that protects backslashes.
26193ECHO=$lt_ECHO
26194
26195# The PATH separator for the build system.
26196PATH_SEPARATOR=$lt_PATH_SEPARATOR
26197
26198# The host system.
26199host_alias=$host_alias
26200host=$host
26201host_os=$host_os
26202
26203# The build system.
26204build_alias=$build_alias
26205build=$build
26206build_os=$build_os
26207
26208# A sed program that does not truncate output.
26209SED=$lt_SED
26210
26211# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26212Xsed="\$SED -e 1s/^X//"
26213
26214# A grep program that handles long lines.
26215GREP=$lt_GREP
26216
26217# An ERE matcher.
26218EGREP=$lt_EGREP
26219
26220# A literal string matcher.
26221FGREP=$lt_FGREP
26222
26223# A BSD- or MS-compatible name lister.
26224NM=$lt_NM
26225
26226# Whether we need soft or hard links.
26227LN_S=$lt_LN_S
26228
26229# What is the maximum length of a command?
26230max_cmd_len=$max_cmd_len
26231
26232# Object file suffix (normally "o").
26233objext=$ac_objext
26234
26235# Executable file suffix (normally "").
26236exeext=$exeext
26237
26238# whether the shell understands "unset".
26239lt_unset=$lt_unset
26240
26241# turn spaces into newlines.
26242SP2NL=$lt_lt_SP2NL
26243
26244# turn newlines into spaces.
26245NL2SP=$lt_lt_NL2SP
26246
26247# convert \$build file names to \$host format.
26248to_host_file_cmd=$lt_cv_to_host_file_cmd
26249
26250# convert \$build files to toolchain format.
26251to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26252
26253# An object symbol dumper.
26254OBJDUMP=$lt_OBJDUMP
26255
26256# Method to check whether dependent libraries are shared objects.
26257deplibs_check_method=$lt_deplibs_check_method
26258
26259# Command to use when deplibs_check_method = "file_magic".
26260file_magic_cmd=$lt_file_magic_cmd
26261
26262# How to find potential files when deplibs_check_method = "file_magic".
26263file_magic_glob=$lt_file_magic_glob
26264
26265# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26266want_nocaseglob=$lt_want_nocaseglob
26267
26268# DLL creation program.
26269DLLTOOL=$lt_DLLTOOL
26270
26271# Command to associate shared and link libraries.
26272sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26273
26274# The archiver.
26275AR=$lt_AR
26276
26277# Flags to create an archive.
26278AR_FLAGS=$lt_AR_FLAGS
26279
26280# How to feed a file listing to the archiver.
26281archiver_list_spec=$lt_archiver_list_spec
26282
26283# A symbol stripping program.
26284STRIP=$lt_STRIP
26285
26286# Commands used to install an old-style archive.
26287RANLIB=$lt_RANLIB
26288old_postinstall_cmds=$lt_old_postinstall_cmds
26289old_postuninstall_cmds=$lt_old_postuninstall_cmds
26290
26291# Whether to use a lock for old archive extraction.
26292lock_old_archive_extraction=$lock_old_archive_extraction
26293
26294# A C compiler.
26295LTCC=$lt_CC
26296
26297# LTCC compiler flags.
26298LTCFLAGS=$lt_CFLAGS
26299
26300# Take the output of nm and produce a listing of raw symbols and C names.
26301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26302
26303# Transform the output of nm in a proper C declaration.
26304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26305
26306# Transform the output of nm into a list of symbols to manually relocate.
26307global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26308
26309# Transform the output of nm in a C name address pair.
26310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26311
26312# Transform the output of nm in a C name address pair when lib prefix is needed.
26313global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26314
26315# The name lister interface.
26316nm_interface=$lt_lt_cv_nm_interface
26317
26318# Specify filename containing input files for \$NM.
26319nm_file_list_spec=$lt_nm_file_list_spec
26320
26321# The root where to search for dependent libraries,and where our libraries should be installed.
26322lt_sysroot=$lt_sysroot
26323
26324# Command to truncate a binary pipe.
26325lt_truncate_bin=$lt_lt_cv_truncate_bin
26326
26327# The name of the directory that contains temporary libtool files.
26328objdir=$objdir
26329
26330# Used to examine libraries when file_magic_cmd begins with "file".
26331MAGIC_CMD=$MAGIC_CMD
26332
26333# Must we lock files when doing compilation?
26334need_locks=$lt_need_locks
26335
26336# Manifest tool.
26337MANIFEST_TOOL=$lt_MANIFEST_TOOL
26338
26339# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26340DSYMUTIL=$lt_DSYMUTIL
26341
26342# Tool to change global to local symbols on Mac OS X.
26343NMEDIT=$lt_NMEDIT
26344
26345# Tool to manipulate fat objects and archives on Mac OS X.
26346LIPO=$lt_LIPO
26347
26348# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26349OTOOL=$lt_OTOOL
26350
26351# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26352OTOOL64=$lt_OTOOL64
26353
26354# Old archive suffix (normally "a").
26355libext=$libext
26356
26357# Shared library suffix (normally ".so").
26358shrext_cmds=$lt_shrext_cmds
26359
26360# The commands to extract the exported symbol list from a shared archive.
26361extract_expsyms_cmds=$lt_extract_expsyms_cmds
26362
26363# Variables whose values should be saved in libtool wrapper scripts and
26364# restored at link time.
26365variables_saved_for_relink=$lt_variables_saved_for_relink
26366
26367# Do we need the "lib" prefix for modules?
26368need_lib_prefix=$need_lib_prefix
26369
26370# Do we need a version for libraries?
26371need_version=$need_version
26372
26373# Library versioning type.
26374version_type=$version_type
26375
26376# Shared library runtime path variable.
26377runpath_var=$runpath_var
26378
26379# Shared library path variable.
26380shlibpath_var=$shlibpath_var
26381
26382# Is shlibpath searched before the hard-coded library search path?
26383shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26384
26385# Format of library name prefix.
26386libname_spec=$lt_libname_spec
26387
26388# List of archive names. First name is the real one, the rest are links.
26389# The last name is the one that the linker finds with -lNAME
26390library_names_spec=$lt_library_names_spec
26391
26392# The coded name of the library, if different from the real name.
26393soname_spec=$lt_soname_spec
26394
26395# Permission mode override for installation of shared libraries.
26396install_override_mode=$lt_install_override_mode
26397
26398# Command to use after installation of a shared archive.
26399postinstall_cmds=$lt_postinstall_cmds
26400
26401# Command to use after uninstallation of a shared archive.
26402postuninstall_cmds=$lt_postuninstall_cmds
26403
26404# Commands used to finish a libtool library installation in a directory.
26405finish_cmds=$lt_finish_cmds
26406
26407# As "finish_cmds", except a single script fragment to be evaled but
26408# not shown.
26409finish_eval=$lt_finish_eval
26410
26411# Whether we should hardcode library paths into libraries.
26412hardcode_into_libs=$hardcode_into_libs
26413
26414# Compile-time system search path for libraries.
26415sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26416
26417# Detected run-time system search path for libraries.
26418sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26419
26420# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26421configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26422
26423# Whether dlopen is supported.
26424dlopen_support=$enable_dlopen
26425
26426# Whether dlopen of programs is supported.
26427dlopen_self=$enable_dlopen_self
26428
26429# Whether dlopen of statically linked programs is supported.
26430dlopen_self_static=$enable_dlopen_self_static
26431
26432# Commands to strip libraries.
26433old_striplib=$lt_old_striplib
26434striplib=$lt_striplib
26435
26436
26437# The linker used to build libraries.
26438LD=$lt_LD
26439
26440# How to create reloadable object files.
26441reload_flag=$lt_reload_flag
26442reload_cmds=$lt_reload_cmds
26443
26444# Commands used to build an old-style archive.
26445old_archive_cmds=$lt_old_archive_cmds
26446
26447# A language specific compiler.
26448CC=$lt_compiler
26449
26450# Is the compiler the GNU compiler?
26451with_gcc=$GCC
26452
26453# Compiler flag to turn off builtin functions.
26454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26455
26456# Additional compiler flags for building library objects.
26457pic_flag=$lt_lt_prog_compiler_pic
26458
26459# How to pass a linker flag through the compiler.
26460wl=$lt_lt_prog_compiler_wl
26461
26462# Compiler flag to prevent dynamic linking.
26463link_static_flag=$lt_lt_prog_compiler_static
26464
26465# Does compiler simultaneously support -c and -o options?
26466compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26467
26468# Whether or not to add -lc for building shared libraries.
26469build_libtool_need_lc=$archive_cmds_need_lc
26470
26471# Whether or not to disallow shared libs when runtime libs are static.
26472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26473
26474# Compiler flag to allow reflexive dlopens.
26475export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26476
26477# Compiler flag to generate shared objects directly from archives.
26478whole_archive_flag_spec=$lt_whole_archive_flag_spec
26479
26480# Whether the compiler copes with passing no objects directly.
26481compiler_needs_object=$lt_compiler_needs_object
26482
26483# Create an old-style archive from a shared archive.
26484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26485
26486# Create a temporary old-style archive to link instead of a shared archive.
26487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26488
26489# Commands used to build a shared archive.
26490archive_cmds=$lt_archive_cmds
26491archive_expsym_cmds=$lt_archive_expsym_cmds
26492
26493# Commands used to build a loadable module if different from building
26494# a shared archive.
26495module_cmds=$lt_module_cmds
26496module_expsym_cmds=$lt_module_expsym_cmds
26497
26498# Whether we are building with GNU ld or not.
26499with_gnu_ld=$lt_with_gnu_ld
26500
26501# Flag that allows shared libraries with undefined symbols to be built.
26502allow_undefined_flag=$lt_allow_undefined_flag
26503
26504# Flag that enforces no undefined symbols.
26505no_undefined_flag=$lt_no_undefined_flag
26506
26507# Flag to hardcode \$libdir into a binary during linking.
26508# This must work even if \$libdir does not exist
26509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26510
26511# Whether we need a single "-rpath" flag with a separated argument.
26512hardcode_libdir_separator=$lt_hardcode_libdir_separator
26513
26514# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26515# DIR into the resulting binary.
26516hardcode_direct=$hardcode_direct
26517
26518# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26519# DIR into the resulting binary and the resulting library dependency is
26520# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26521# library is relocated.
26522hardcode_direct_absolute=$hardcode_direct_absolute
26523
26524# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26525# into the resulting binary.
26526hardcode_minus_L=$hardcode_minus_L
26527
26528# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26529# into the resulting binary.
26530hardcode_shlibpath_var=$hardcode_shlibpath_var
26531
26532# Set to "yes" if building a shared library automatically hardcodes DIR
26533# into the library and all subsequent libraries and executables linked
26534# against it.
26535hardcode_automatic=$hardcode_automatic
26536
26537# Set to yes if linker adds runtime paths of dependent libraries
26538# to runtime path list.
26539inherit_rpath=$inherit_rpath
26540
26541# Whether libtool must link a program against all its dependency libraries.
26542link_all_deplibs=$link_all_deplibs
26543
26544# Set to "yes" if exported symbols are required.
26545always_export_symbols=$always_export_symbols
26546
26547# The commands to list exported symbols.
26548export_symbols_cmds=$lt_export_symbols_cmds
26549
26550# Symbols that should not be listed in the preloaded symbols.
26551exclude_expsyms=$lt_exclude_expsyms
26552
26553# Symbols that must always be exported.
26554include_expsyms=$lt_include_expsyms
26555
26556# Commands necessary for linking programs (against libraries) with templates.
26557prelink_cmds=$lt_prelink_cmds
26558
26559# Commands necessary for finishing linking programs.
26560postlink_cmds=$lt_postlink_cmds
26561
26562# Specify filename containing input files.
26563file_list_spec=$lt_file_list_spec
26564
26565# How to hardcode a shared library path into an executable.
26566hardcode_action=$hardcode_action
26567
26568# The directories searched by this compiler when creating a shared library.
26569compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26570
26571# Dependencies to place before and after the objects being linked to
26572# create a shared library.
26573predep_objects=$lt_predep_objects
26574postdep_objects=$lt_postdep_objects
26575predeps=$lt_predeps
26576postdeps=$lt_postdeps
26577
26578# The library search path used internally by the compiler when linking
26579# a shared library.
26580compiler_lib_search_path=$lt_compiler_lib_search_path
26581
26582# ### END LIBTOOL CONFIG
26583
26584_LT_EOF
26585
26586 cat <<'_LT_EOF' >> "$cfgfile"
26587
26588# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26589
26590# func_munge_path_list VARIABLE PATH
26591# -----------------------------------
26592# VARIABLE is name of variable containing _space_ separated list of
26593# directories to be munged by the contents of PATH, which is string
26594# having a format:
26595# "DIR[:DIR]:"
26596# string "DIR[ DIR]" will be prepended to VARIABLE
26597# ":DIR[:DIR]"
26598# string "DIR[ DIR]" will be appended to VARIABLE
26599# "DIRP[:DIRP]::[DIRA:]DIRA"
26600# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26601# "DIRA[ DIRA]" will be appended to VARIABLE
26602# "DIR[:DIR]"
26603# VARIABLE will be replaced by "DIR[ DIR]"
26604func_munge_path_list ()
26605{
26606 case x$2 in
26607 x)
26608 ;;
26609 *:)
26610 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26611 ;;
26612 x:*)
26613 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26614 ;;
26615 *::*)
26616 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26617 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26618 ;;
26619 *)
26620 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26621 ;;
26622 esac
26623}
26624
26625
26626# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26627func_cc_basename ()
26628{
26629 for cc_temp in $*""; do
26630 case $cc_temp in
26631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26633 \-*) ;;
26634 *) break;;
26635 esac
26636 done
26637 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26638}
26639
26640
26641# ### END FUNCTIONS SHARED WITH CONFIGURE
26642
26643_LT_EOF
26644
26645 case $host_os in
26646 aix3*)
26647 cat <<\_LT_EOF >> "$cfgfile"
26648# AIX sometimes has problems with the GCC collect2 program. For some
26649# reason, if we set the COLLECT_NAMES environment variable, the problems
26650# vanish in a puff of smoke.
26651if test set != "${COLLECT_NAMES+set}"; then
26652 COLLECT_NAMES=
26653 export COLLECT_NAMES
26654fi
26655_LT_EOF
26656 ;;
26657 esac
26658
26659
26660ltmain=$ac_aux_dir/ltmain.sh
26661
26662
26663 # We use sed instead of cat because bash on DJGPP gets confused if
26664 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26665 # text mode, it properly converts lines to CR/LF. This bash problem
26666 # is reportedly fixed, but why not run on old versions too?
26667 sed '$q' "$ltmain" >> "$cfgfile" \
26668 || (rm -f "$cfgfile"; exit 1)
26669
26670 mv -f "$cfgfile" "$ofile" ||
26671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26672 chmod +x "$ofile"
26673
26674
26675 cat <<_LT_EOF >> "$ofile"
26676
26677# ### BEGIN LIBTOOL TAG CONFIG: CXX
26678
26679# The linker used to build libraries.
26680LD=$lt_LD_CXX
26681
26682# How to create reloadable object files.
26683reload_flag=$lt_reload_flag_CXX
26684reload_cmds=$lt_reload_cmds_CXX
26685
26686# Commands used to build an old-style archive.
26687old_archive_cmds=$lt_old_archive_cmds_CXX
26688
26689# A language specific compiler.
26690CC=$lt_compiler_CXX
26691
26692# Is the compiler the GNU compiler?
26693with_gcc=$GCC_CXX
26694
26695# Compiler flag to turn off builtin functions.
26696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26697
26698# Additional compiler flags for building library objects.
26699pic_flag=$lt_lt_prog_compiler_pic_CXX
26700
26701# How to pass a linker flag through the compiler.
26702wl=$lt_lt_prog_compiler_wl_CXX
26703
26704# Compiler flag to prevent dynamic linking.
26705link_static_flag=$lt_lt_prog_compiler_static_CXX
26706
26707# Does compiler simultaneously support -c and -o options?
26708compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26709
26710# Whether or not to add -lc for building shared libraries.
26711build_libtool_need_lc=$archive_cmds_need_lc_CXX
26712
26713# Whether or not to disallow shared libs when runtime libs are static.
26714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26715
26716# Compiler flag to allow reflexive dlopens.
26717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26718
26719# Compiler flag to generate shared objects directly from archives.
26720whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26721
26722# Whether the compiler copes with passing no objects directly.
26723compiler_needs_object=$lt_compiler_needs_object_CXX
26724
26725# Create an old-style archive from a shared archive.
26726old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26727
26728# Create a temporary old-style archive to link instead of a shared archive.
26729old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26730
26731# Commands used to build a shared archive.
26732archive_cmds=$lt_archive_cmds_CXX
26733archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26734
26735# Commands used to build a loadable module if different from building
26736# a shared archive.
26737module_cmds=$lt_module_cmds_CXX
26738module_expsym_cmds=$lt_module_expsym_cmds_CXX
26739
26740# Whether we are building with GNU ld or not.
26741with_gnu_ld=$lt_with_gnu_ld_CXX
26742
26743# Flag that allows shared libraries with undefined symbols to be built.
26744allow_undefined_flag=$lt_allow_undefined_flag_CXX
26745
26746# Flag that enforces no undefined symbols.
26747no_undefined_flag=$lt_no_undefined_flag_CXX
26748
26749# Flag to hardcode \$libdir into a binary during linking.
26750# This must work even if \$libdir does not exist
26751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26752
26753# Whether we need a single "-rpath" flag with a separated argument.
26754hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26755
26756# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26757# DIR into the resulting binary.
26758hardcode_direct=$hardcode_direct_CXX
26759
26760# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26761# DIR into the resulting binary and the resulting library dependency is
26762# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26763# library is relocated.
26764hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26765
26766# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26767# into the resulting binary.
26768hardcode_minus_L=$hardcode_minus_L_CXX
26769
26770# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26771# into the resulting binary.
26772hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26773
26774# Set to "yes" if building a shared library automatically hardcodes DIR
26775# into the library and all subsequent libraries and executables linked
26776# against it.
26777hardcode_automatic=$hardcode_automatic_CXX
26778
26779# Set to yes if linker adds runtime paths of dependent libraries
26780# to runtime path list.
26781inherit_rpath=$inherit_rpath_CXX
26782
26783# Whether libtool must link a program against all its dependency libraries.
26784link_all_deplibs=$link_all_deplibs_CXX
26785
26786# Set to "yes" if exported symbols are required.
26787always_export_symbols=$always_export_symbols_CXX
26788
26789# The commands to list exported symbols.
26790export_symbols_cmds=$lt_export_symbols_cmds_CXX
26791
26792# Symbols that should not be listed in the preloaded symbols.
26793exclude_expsyms=$lt_exclude_expsyms_CXX
26794
26795# Symbols that must always be exported.
26796include_expsyms=$lt_include_expsyms_CXX
26797
26798# Commands necessary for linking programs (against libraries) with templates.
26799prelink_cmds=$lt_prelink_cmds_CXX
26800
26801# Commands necessary for finishing linking programs.
26802postlink_cmds=$lt_postlink_cmds_CXX
26803
26804# Specify filename containing input files.
26805file_list_spec=$lt_file_list_spec_CXX
26806
26807# How to hardcode a shared library path into an executable.
26808hardcode_action=$hardcode_action_CXX
26809
26810# The directories searched by this compiler when creating a shared library.
26811compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26812
26813# Dependencies to place before and after the objects being linked to
26814# create a shared library.
26815predep_objects=$lt_predep_objects_CXX
26816postdep_objects=$lt_postdep_objects_CXX
26817predeps=$lt_predeps_CXX
26818postdeps=$lt_postdeps_CXX
26819
26820# The library search path used internally by the compiler when linking
26821# a shared library.
26822compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26823
26824# ### END LIBTOOL TAG CONFIG: CXX
26825_LT_EOF
26826
26827 ;;
26828
26829 esac
26830done # for ac_tag
26831
26832
26833as_fn_exit 0
26834_ACEOF
26835ac_clean_files=$ac_clean_files_save
26836
26837test $ac_write_fail = 0 ||
26838 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26839
26840
26841# configure is writing to config.log, and then calls config.status.
26842# config.status does its own redirection, appending to config.log.
26843# Unfortunately, on DOS this fails, as config.log is still kept open
26844# by configure, so config.status won't be able to write to it; its
26845# output is simply discarded. So we exec the FD to /dev/null,
26846# effectively closing config.log, so it can be properly (re)opened and
26847# appended to by config.status. When coming back to configure, we
26848# need to make the FD available again.
26849if test "$no_create" != yes; then
26850 ac_cs_success=:
26851 ac_config_status_args=
26852 test "$silent" = yes &&
26853 ac_config_status_args="$ac_config_status_args --quiet"
26854 exec 5>/dev/null
26855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26856 exec 5>>config.log
26857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26858 # would make configure fail if this is the last instruction.
26859 $ac_cs_success || as_fn_exit 1
26860fi
26861if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26863$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26864fi
26865