Improve the process for GNU tools
[minix3.git] / external / bsd / flex / dist / configure
blobb92239d46a4cb8a60d72406b92fe8e0b8838ccc5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for the fast lexical analyser generator 2.5.39.
5 # Report bugs to <flex-help@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: flex-help@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='the fast lexical analyser generator'
592 PACKAGE_TARNAME='flex'
593 PACKAGE_VERSION='2.5.39'
594 PACKAGE_STRING='the fast lexical analyser generator 2.5.39'
595 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
596 PACKAGE_URL=''
598 ac_unique_file="scan.l"
599 ac_config_libobj_dir=lib
600 gt_needs=
601 # Factoring default headers for most tests.
602 ac_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"
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 ALLOCA
642 INDENT
644 HELP2MAN
645 BISON
646 CXXCPP
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
656 DLLTOOL
657 OBJDUMP
659 ac_ct_DUMPBIN
660 DUMPBIN
662 FGREP
664 LIBTOOL
665 LN_S
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
672 LEXLIB
673 LEX_OUTPUT_ROOT
675 YFLAGS
676 YACC
677 POSUB
678 LTLIBINTL
679 LIBINTL
680 INTLLIBS
681 LTLIBICONV
682 LIBICONV
683 INTL_MACOSX_LIBS
684 EGREP
685 GREP
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 XGETTEXT_EXTRA_OPTIONS
713 MSGMERGE
714 XGETTEXT_015
715 XGETTEXT
716 GMSGFMT_015
717 MSGFMT_015
718 GMSGFMT
719 MSGFMT
720 GETTEXT_MACRO_VERSION
721 USE_NLS
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 SHARED_VERSION_INFO
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_nls
788 enable_dependency_tracking
789 with_gnu_ld
790 enable_rpath
791 with_libiconv_prefix
792 with_libintl_prefix
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_sysroot
798 enable_libtool_lock
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
809 YACC
810 YFLAGS
812 CXXFLAGS
814 CXXCPP'
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
865 ac_prev=
866 ac_dashdash=
867 for ac_option
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
876 case $ac_option in
877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *=) ac_optarg= ;;
879 *) ac_optarg=yes ;;
880 esac
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
886 ac_dashdash=yes ;;
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
905 --config-cache | -C)
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 esac
1223 done
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1307 /^X\(\/\/\)$/{
1308 s//\1/
1311 /^X\(\/\).*/{
1312 s//\1/
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1320 else
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures the fast lexical analyser generator 2.5.39 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/flex]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1410 cat <<\_ACEOF
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.39:";;
1426 esac
1427 cat <<\_ACEOF
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-nls do not use Native Language Support
1434 --disable-dependency-tracking speeds up one-time build
1435 --enable-dependency-tracking do not reject slow dependency extractors
1436 --disable-rpath do not hardcode runtime library paths
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-gnu-ld assume the C compiler uses GNU ld default=no
1447 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1448 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1449 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1450 --without-libintl-prefix don't search for libintl in includedir and libdir
1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot=DIR Search for dependent libraries within DIR
1455 (or the compiler's sysroot if not specified).
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 YACC The `Yet Another Compiler Compiler' implementation to use.
1467 Defaults to the first program found out of: `bison -y', `byacc',
1468 `yacc'.
1469 YFLAGS The list of arguments that will be passed by default to $YACC.
1470 This script will default YFLAGS to the empty string to avoid a
1471 default value of `-d' given by some make applications.
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1474 CXXCPP C++ preprocessor
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to <flex-help@lists.sourceforge.net>.
1480 _ACEOF
1481 ac_status=$?
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 the fast lexical analyser generator configure 2.5.39
1543 generated by GNU Autoconf 2.69
1545 Copyright (C) 2012 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } > conftest.i && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_c_try_cpp
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_link ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 test -x conftest$ac_exeext
1659 }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=1
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_link
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=$ac_status
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_run
1719 # ac_fn_cxx_try_compile LINENO
1720 # ----------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_cxx_try_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext
1726 if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_cxx_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=1
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1755 } # ac_fn_cxx_try_compile
1757 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists and can be compiled using the include files in
1760 # INCLUDES, setting the cache variable VAR accordingly.
1761 ac_fn_c_check_header_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 } # ac_fn_c_check_header_compile
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1810 #ifdef __STDC__
1811 # include <limits.h>
1812 #else
1813 # include <assert.h>
1814 #endif
1816 #undef $2
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1833 main ()
1835 return $2 ();
1837 return 0;
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842 else
1843 eval "$3=no"
1845 rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_func
1855 # ac_fn_cxx_try_cpp LINENO
1856 # ------------------------
1857 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_cpp ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } > conftest.i && {
1877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1878 test ! -s conftest.err
1879 }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_cxx_try_cpp
1892 # ac_fn_cxx_try_link LINENO
1893 # -------------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_link ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_cxx_try_link
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_header_mongrel ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if eval \${$3+:} false; then :
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 else
1956 # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1966 else
1967 ac_header_compiler=no
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1982 else
1983 ac_header_preproc=no
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1989 # So? What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991 yes:no: )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 no:yes:* )
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ( $as_echo "## ---------------------------------------------- ##
2009 ## Report this to flex-help@lists.sourceforge.net ##
2010 ## ---------------------------------------------- ##"
2011 ) | sed "s/^/$as_me: WARNING: /" >&2
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_mongrel
2029 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2030 # -------------------------------------------
2031 # Tests whether TYPE exists after having included INCLUDES, setting cache
2032 # variable VAR accordingly.
2033 ac_fn_c_check_type ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=no"
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 if (sizeof ($2))
2049 return 0;
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 if (sizeof (($2)))
2062 return 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2069 else
2070 eval "$3=yes"
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_type
2082 cat >config.log <<_ACEOF
2083 This file contains any messages produced by compilers while
2084 running configure, to aid debugging if configure makes a mistake.
2086 It was created by the fast lexical analyser generator $as_me 2.5.39, which was
2087 generated by GNU Autoconf 2.69. Invocation command line was
2089 $ $0 $@
2091 _ACEOF
2092 exec 5>>config.log
2094 cat <<_ASUNAME
2095 ## --------- ##
2096 ## Platform. ##
2097 ## --------- ##
2099 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2105 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2108 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2109 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2110 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2112 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2113 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2114 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116 _ASUNAME
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 $as_echo "PATH: $as_dir"
2124 done
2125 IFS=$as_save_IFS
2127 } >&5
2129 cat >&5 <<_ACEOF
2132 ## ----------- ##
2133 ## Core tests. ##
2134 ## ----------- ##
2136 _ACEOF
2139 # Keep a trace of the command line.
2140 # Strip out --no-create and --no-recursion so they do not pile up.
2141 # Strip out --silent because we don't want to record it for future runs.
2142 # Also quote any args containing shell meta-characters.
2143 # Make two passes to allow for proper duplicate-argument suppression.
2144 ac_configure_args=
2145 ac_configure_args0=
2146 ac_configure_args1=
2147 ac_must_keep_next=false
2148 for ac_pass in 1 2
2150 for ac_arg
2152 case $ac_arg in
2153 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2155 | -silent | --silent | --silen | --sile | --sil)
2156 continue ;;
2157 *\'*)
2158 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 esac
2160 case $ac_pass in
2161 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2163 as_fn_append ac_configure_args1 " '$ac_arg'"
2164 if test $ac_must_keep_next = true; then
2165 ac_must_keep_next=false # Got value, back to normal.
2166 else
2167 case $ac_arg in
2168 *=* | --config-cache | -C | -disable-* | --disable-* \
2169 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2170 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2171 | -with-* | --with-* | -without-* | --without-* | --x)
2172 case "$ac_configure_args0 " in
2173 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174 esac
2176 -* ) ac_must_keep_next=true ;;
2177 esac
2179 as_fn_append ac_configure_args " '$ac_arg'"
2181 esac
2182 done
2183 done
2184 { ac_configure_args0=; unset ac_configure_args0;}
2185 { ac_configure_args1=; unset ac_configure_args1;}
2187 # When interrupted or exit'd, cleanup temporary files, and complete
2188 # config.log. We remove comments because anyway the quotes in there
2189 # would cause problems or look ugly.
2190 # WARNING: Use '\'' to represent an apostrophe within the trap.
2191 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192 trap 'exit_status=$?
2193 # Save into config.log some information that might help in debugging.
2195 echo
2197 $as_echo "## ---------------- ##
2198 ## Cache variables. ##
2199 ## ---------------- ##"
2200 echo
2201 # The following way of writing the cache mishandles newlines in values,
2203 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in #(
2206 *${as_nl}*)
2207 case $ac_var in #(
2208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 esac
2211 case $ac_var in #(
2212 _ | IFS | as_nl) ;; #(
2213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214 *) { eval $ac_var=; unset $ac_var;} ;;
2215 esac ;;
2216 esac
2217 done
2218 (set) 2>&1 |
2219 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220 *${as_nl}ac_space=\ *)
2221 sed -n \
2222 "s/'\''/'\''\\\\'\'''\''/g;
2223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 ;; #(
2226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2228 esac |
2229 sort
2231 echo
2233 $as_echo "## ----------------- ##
2234 ## Output variables. ##
2235 ## ----------------- ##"
2236 echo
2237 for ac_var in $ac_subst_vars
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2247 if test -n "$ac_subst_files"; then
2248 $as_echo "## ------------------- ##
2249 ## File substitutions. ##
2250 ## ------------------- ##"
2251 echo
2252 for ac_var in $ac_subst_files
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2263 if test -s confdefs.h; then
2264 $as_echo "## ----------- ##
2265 ## confdefs.h. ##
2266 ## ----------- ##"
2267 echo
2268 cat confdefs.h
2269 echo
2271 test "$ac_signal" != 0 &&
2272 $as_echo "$as_me: caught signal $ac_signal"
2273 $as_echo "$as_me: exit $exit_status"
2274 } >&5
2275 rm -f core *.core core.conftest.* &&
2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 exit $exit_status
2279 for ac_signal in 1 2 13 15; do
2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 done
2282 ac_signal=0
2284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2285 rm -f -r conftest* confdefs.h
2287 $as_echo "/* confdefs.h */" > confdefs.h
2289 # Predefined preprocessor variables.
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_NAME "$PACKAGE_NAME"
2293 _ACEOF
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297 _ACEOF
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_STRING "$PACKAGE_STRING"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_URL "$PACKAGE_URL"
2313 _ACEOF
2316 # Let the site file select an alternate cache file if it wants to.
2317 # Prefer an explicitly selected file to automatically selected ones.
2318 ac_site_file1=NONE
2319 ac_site_file2=NONE
2320 if test -n "$CONFIG_SITE"; then
2321 # We do not want a PATH search for config.site.
2322 case $CONFIG_SITE in #((
2323 -*) ac_site_file1=./$CONFIG_SITE;;
2324 */*) ac_site_file1=$CONFIG_SITE;;
2325 *) ac_site_file1=./$CONFIG_SITE;;
2326 esac
2327 elif test "x$prefix" != xNONE; then
2328 ac_site_file1=$prefix/share/config.site
2329 ac_site_file2=$prefix/etc/config.site
2330 else
2331 ac_site_file1=$ac_default_prefix/share/config.site
2332 ac_site_file2=$ac_default_prefix/etc/config.site
2334 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2336 test "x$ac_site_file" = xNONE && continue
2337 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2339 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2340 sed 's/^/| /' "$ac_site_file" >&5
2341 . "$ac_site_file" \
2342 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344 as_fn_error $? "failed to load site script $ac_site_file
2345 See \`config.log' for more details" "$LINENO" 5; }
2347 done
2349 if test -r "$cache_file"; then
2350 # Some versions of bash will fail to source /dev/null (special files
2351 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2352 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2354 $as_echo "$as_me: loading cache $cache_file" >&6;}
2355 case $cache_file in
2356 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2357 *) . "./$cache_file";;
2358 esac
2360 else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2362 $as_echo "$as_me: creating cache $cache_file" >&6;}
2363 >$cache_file
2366 gt_needs="$gt_needs "
2367 # Check that the precious variables saved in the cache have kept the same
2368 # value.
2369 ac_cache_corrupted=false
2370 for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2376 set,)
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2380 ,set)
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2384 ,);;
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x $ac_old_val`
2389 ac_new_val_w=`echo x $ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393 ac_cache_corrupted=:
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2403 fi;;
2404 esac
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2407 case $ac_new_val in
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2410 esac
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 esac
2416 done
2417 if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424 ## -------------------- ##
2425 ## Main body of script. ##
2426 ## -------------------- ##
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 SHARED_VERSION_INFO="2:0:0"
2439 am__api_version='1.11'
2441 ac_aux_dir=
2442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2443 if test -f "$ac_dir/install-sh"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/install-sh -c"
2446 break
2447 elif test -f "$ac_dir/install.sh"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/install.sh -c"
2450 break
2451 elif test -f "$ac_dir/shtool"; then
2452 ac_aux_dir=$ac_dir
2453 ac_install_sh="$ac_aux_dir/shtool install -c"
2454 break
2456 done
2457 if test -z "$ac_aux_dir"; then
2458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470 # Find a good install program. We prefer a C program (faster),
2471 # so one script is as good as another. But avoid the broken or
2472 # incompatible versions:
2473 # SysV /etc/install, /usr/sbin/install
2474 # SunOS /usr/etc/install
2475 # IRIX /sbin/install
2476 # AIX /bin/install
2477 # AmigaOS /C/install, which installs bootblocks on floppy discs
2478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2481 # OS/2's system install, which has a completely different semantic
2482 # ./install, which can be erroneously created by make from ./install.sh.
2483 # Reject install programs that cannot install multiple files.
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2485 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2486 if test -z "$INSTALL"; then
2487 if ${ac_cv_path_install+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 # Account for people who put trailing slashes in PATH elements.
2496 case $as_dir/ in #((
2497 ./ | .// | /[cC]/* | \
2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2500 /usr/ucb/* ) ;;
2502 # OSF1 and SCO ODT 3.0 have their own names for install.
2503 # Don't use installbsd from OSF since it installs stuff as root
2504 # by default.
2505 for ac_prog in ginstall scoinst install; do
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2508 if test $ac_prog = install &&
2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # AIX install. It has an incompatible calling convention.
2512 elif test $ac_prog = install &&
2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514 # program-specific install script used by HP pwplus--don't use.
2516 else
2517 rm -rf conftest.one conftest.two conftest.dir
2518 echo one > conftest.one
2519 echo two > conftest.two
2520 mkdir conftest.dir
2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2522 test -s conftest.one && test -s conftest.two &&
2523 test -s conftest.dir/conftest.one &&
2524 test -s conftest.dir/conftest.two
2525 then
2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2527 break 3
2531 done
2532 done
2534 esac
2536 done
2537 IFS=$as_save_IFS
2539 rm -rf conftest.one conftest.two conftest.dir
2542 if test "${ac_cv_path_install+set}" = set; then
2543 INSTALL=$ac_cv_path_install
2544 else
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 INSTALL=$ac_install_sh
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2553 $as_echo "$INSTALL" >&6; }
2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556 # It thinks the first close brace ends the variable substitution.
2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2564 $as_echo_n "checking whether build environment is sane... " >&6; }
2565 # Just in case
2566 sleep 1
2567 echo timestamp > conftest.file
2568 # Reject unsafe characters in $srcdir or the absolute working directory
2569 # name. Accept space and tab only in the latter.
2570 am_lf='
2572 case `pwd` in
2573 *[\\\"\#\$\&\'\`$am_lf]*)
2574 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2575 esac
2576 case $srcdir in
2577 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2578 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2579 esac
2581 # Do `set' in a subshell so we don't clobber the current shell's
2582 # arguments. Must try -L first in case configure is actually a
2583 # symlink; some systems play weird games with the mod time of symlinks
2584 # (eg FreeBSD returns the mod time of the symlink's containing
2585 # directory).
2586 if (
2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2588 if test "$*" = "X"; then
2589 # -L didn't work.
2590 set X `ls -t "$srcdir/configure" conftest.file`
2592 rm -f conftest.file
2593 if test "$*" != "X $srcdir/configure conftest.file" \
2594 && test "$*" != "X conftest.file $srcdir/configure"; then
2596 # If neither matched, then we have a broken ls. This can happen
2597 # if, for instance, CONFIG_SHELL is bash and it inherits a
2598 # broken ls alias from the environment. This has actually
2599 # happened. Such a system could not be considered "sane".
2600 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2601 alias in your environment" "$LINENO" 5
2604 test "$2" = conftest.file
2606 then
2607 # Ok.
2609 else
2610 as_fn_error $? "newly created file is older than distributed files!
2611 Check your system clock" "$LINENO" 5
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614 $as_echo "yes" >&6; }
2615 test "$program_prefix" != NONE &&
2616 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2617 # Use a double $ so make ignores it.
2618 test "$program_suffix" != NONE &&
2619 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2620 # Double any \ or $.
2621 # By default was `s,x,x', remove it if useless.
2622 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2623 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2625 # expand $ac_aux_dir to an absolute path
2626 am_aux_dir=`cd $ac_aux_dir && pwd`
2628 if test x"${MISSING+set}" != xset; then
2629 case $am_aux_dir in
2630 *\ * | *\ *)
2631 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2633 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2634 esac
2636 # Use eval to expand $SHELL
2637 if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639 else
2640 am_missing_run=
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2642 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 if test x"${install_sh}" != xset; then
2646 case $am_aux_dir in
2647 *\ * | *\ *)
2648 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2650 install_sh="\${SHELL} $am_aux_dir/install-sh"
2651 esac
2654 # Installed binaries are usually stripped using `strip' when the user
2655 # run `make install-strip'. However `strip' might not be the right
2656 # tool to use in cross-compilation environments, therefore Automake
2657 # will honor the `STRIP' environment variable to overrule this program.
2658 if test "$cross_compiling" != no; then
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}strip; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_STRIP+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$STRIP"; then
2668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 STRIP=$ac_cv_prog_STRIP
2688 if test -n "$STRIP"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2690 $as_echo "$STRIP" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2698 if test -z "$ac_cv_prog_STRIP"; then
2699 ac_ct_STRIP=$STRIP
2700 # Extract the first word of "strip", so it can be a program name with args.
2701 set dummy strip; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$ac_ct_STRIP"; then
2708 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_ac_ct_STRIP="strip"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2723 IFS=$as_save_IFS
2727 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2728 if test -n "$ac_ct_STRIP"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2730 $as_echo "$ac_ct_STRIP" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2736 if test "x$ac_ct_STRIP" = x; then
2737 STRIP=":"
2738 else
2739 case $cross_compiling:$ac_tool_warned in
2740 yes:)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743 ac_tool_warned=yes ;;
2744 esac
2745 STRIP=$ac_ct_STRIP
2747 else
2748 STRIP="$ac_cv_prog_STRIP"
2752 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2755 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2756 if test -z "$MKDIR_P"; then
2757 if ${ac_cv_path_mkdir+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_prog in mkdir gmkdir; do
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2768 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2769 'mkdir (GNU coreutils) '* | \
2770 'mkdir (coreutils) '* | \
2771 'mkdir (fileutils) '4.1*)
2772 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2773 break 3;;
2774 esac
2775 done
2776 done
2777 done
2778 IFS=$as_save_IFS
2782 test -d ./--version && rmdir ./--version
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 MKDIR_P="$ac_install_sh -d"
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2794 $as_echo "$MKDIR_P" >&6; }
2796 mkdir_p="$MKDIR_P"
2797 case $mkdir_p in
2798 [\\/$]* | ?:[\\/]*) ;;
2799 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2800 esac
2802 for ac_prog in gawk mawk nawk awk
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_AWK+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$AWK"; then
2812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_AWK="$ac_prog"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 AWK=$ac_cv_prog_AWK
2832 if test -n "$AWK"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2834 $as_echo "$AWK" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2841 test -n "$AWK" && break
2842 done
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2845 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2846 set x ${MAKE-make}
2847 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2848 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 cat >conftest.make <<\_ACEOF
2852 SHELL = /bin/sh
2853 all:
2854 @echo '@@@%%%=$(MAKE)=@@@%%%'
2855 _ACEOF
2856 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2857 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2858 *@@@%%%=?*=@@@%%%*)
2859 eval ac_cv_prog_make_${ac_make}_set=yes;;
2861 eval ac_cv_prog_make_${ac_make}_set=no;;
2862 esac
2863 rm -f conftest.make
2865 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867 $as_echo "yes" >&6; }
2868 SET_MAKE=
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 SET_MAKE="MAKE=${MAKE-make}"
2875 rm -rf .tst 2>/dev/null
2876 mkdir .tst 2>/dev/null
2877 if test -d .tst; then
2878 am__leading_dot=.
2879 else
2880 am__leading_dot=_
2882 rmdir .tst 2>/dev/null
2884 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2886 # is not polluted with repeated "-I."
2887 am__isrc=' -I$(srcdir)'
2888 # test to see if srcdir already configured
2889 if test -f $srcdir/config.status; then
2890 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894 # test whether we have cygpath
2895 if test -z "$CYGPATH_W"; then
2896 if (cygpath --version) >/dev/null 2>/dev/null; then
2897 CYGPATH_W='cygpath -w'
2898 else
2899 CYGPATH_W=echo
2904 # Define the identity of the package.
2905 PACKAGE='flex'
2906 VERSION='2.5.39'
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE "$PACKAGE"
2911 _ACEOF
2914 cat >>confdefs.h <<_ACEOF
2915 #define VERSION "$VERSION"
2916 _ACEOF
2918 # Some tools Automake needs.
2920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2934 # We need awk for the "check" target. The system "awk" is bad on
2935 # some platforms.
2936 # Always define AMTAR for backward compatibility. Yes, it's still used
2937 # in the wild :-( We should find a proper way to deprecate it ...
2938 AMTAR='$${TAR-tar}'
2940 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2946 ac_config_headers="$ac_config_headers config.h:conf.in"
2950 # checks for programs
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2954 $as_echo_n "checking whether NLS is requested... " >&6; }
2955 # Check whether --enable-nls was given.
2956 if test "${enable_nls+set}" = set; then :
2957 enableval=$enable_nls; USE_NLS=$enableval
2958 else
2959 USE_NLS=yes
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2963 $as_echo "$USE_NLS" >&6; }
2968 GETTEXT_MACRO_VERSION=0.18
2973 # Prepare PATH_SEPARATOR.
2974 # The user is always right.
2975 if test "${PATH_SEPARATOR+set}" != set; then
2976 echo "#! /bin/sh" >conf$$.sh
2977 echo "exit 0" >>conf$$.sh
2978 chmod +x conf$$.sh
2979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2980 PATH_SEPARATOR=';'
2981 else
2982 PATH_SEPARATOR=:
2984 rm -f conf$$.sh
2987 # Find out how to test for executable files. Don't use a zero-byte file,
2988 # as systems may use methods other than mode bits to determine executability.
2989 cat >conf$$.file <<_ASEOF
2990 #! /bin/sh
2991 exit 0
2992 _ASEOF
2993 chmod +x conf$$.file
2994 if test -x conf$$.file >/dev/null 2>&1; then
2995 ac_executable_p="test -x"
2996 else
2997 ac_executable_p="test -f"
2999 rm -f conf$$.file
3001 # Extract the first word of "msgfmt", so it can be a program name with args.
3002 set dummy msgfmt; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_path_MSGFMT+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 case "$MSGFMT" in
3009 [\\/]* | ?:[\\/]*)
3010 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3014 for ac_dir in $PATH; do
3015 IFS="$ac_save_IFS"
3016 test -z "$ac_dir" && ac_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3019 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3020 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3021 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3022 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3023 break 2
3026 done
3027 done
3028 IFS="$ac_save_IFS"
3029 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3031 esac
3033 MSGFMT="$ac_cv_path_MSGFMT"
3034 if test "$MSGFMT" != ":"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3036 $as_echo "$MSGFMT" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3042 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3043 set dummy gmsgfmt; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_path_GMSGFMT+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 case $GMSGFMT in
3050 [\\/]* | ?:[\\/]*)
3051 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3069 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3071 esac
3073 GMSGFMT=$ac_cv_path_GMSGFMT
3074 if test -n "$GMSGFMT"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3076 $as_echo "$GMSGFMT" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3085 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3086 *) MSGFMT_015=$MSGFMT ;;
3087 esac
3089 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3090 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3091 *) GMSGFMT_015=$GMSGFMT ;;
3092 esac
3096 # Prepare PATH_SEPARATOR.
3097 # The user is always right.
3098 if test "${PATH_SEPARATOR+set}" != set; then
3099 echo "#! /bin/sh" >conf$$.sh
3100 echo "exit 0" >>conf$$.sh
3101 chmod +x conf$$.sh
3102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3103 PATH_SEPARATOR=';'
3104 else
3105 PATH_SEPARATOR=:
3107 rm -f conf$$.sh
3110 # Find out how to test for executable files. Don't use a zero-byte file,
3111 # as systems may use methods other than mode bits to determine executability.
3112 cat >conf$$.file <<_ASEOF
3113 #! /bin/sh
3114 exit 0
3115 _ASEOF
3116 chmod +x conf$$.file
3117 if test -x conf$$.file >/dev/null 2>&1; then
3118 ac_executable_p="test -x"
3119 else
3120 ac_executable_p="test -f"
3122 rm -f conf$$.file
3124 # Extract the first word of "xgettext", so it can be a program name with args.
3125 set dummy xgettext; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_path_XGETTEXT+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 case "$XGETTEXT" in
3132 [\\/]* | ?:[\\/]*)
3133 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3136 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3137 for ac_dir in $PATH; do
3138 IFS="$ac_save_IFS"
3139 test -z "$ac_dir" && ac_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3142 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3143 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3144 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3145 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3146 break 2
3149 done
3150 done
3151 IFS="$ac_save_IFS"
3152 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3154 esac
3156 XGETTEXT="$ac_cv_path_XGETTEXT"
3157 if test "$XGETTEXT" != ":"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3159 $as_echo "$XGETTEXT" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3165 rm -f messages.po
3167 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3168 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3169 *) XGETTEXT_015=$XGETTEXT ;;
3170 esac
3174 # Prepare PATH_SEPARATOR.
3175 # The user is always right.
3176 if test "${PATH_SEPARATOR+set}" != set; then
3177 echo "#! /bin/sh" >conf$$.sh
3178 echo "exit 0" >>conf$$.sh
3179 chmod +x conf$$.sh
3180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3181 PATH_SEPARATOR=';'
3182 else
3183 PATH_SEPARATOR=:
3185 rm -f conf$$.sh
3188 # Find out how to test for executable files. Don't use a zero-byte file,
3189 # as systems may use methods other than mode bits to determine executability.
3190 cat >conf$$.file <<_ASEOF
3191 #! /bin/sh
3192 exit 0
3193 _ASEOF
3194 chmod +x conf$$.file
3195 if test -x conf$$.file >/dev/null 2>&1; then
3196 ac_executable_p="test -x"
3197 else
3198 ac_executable_p="test -f"
3200 rm -f conf$$.file
3202 # Extract the first word of "msgmerge", so it can be a program name with args.
3203 set dummy msgmerge; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_path_MSGMERGE+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 case "$MSGMERGE" in
3210 [\\/]* | ?:[\\/]*)
3211 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3215 for ac_dir in $PATH; do
3216 IFS="$ac_save_IFS"
3217 test -z "$ac_dir" && ac_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3220 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3221 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3222 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3223 break 2
3226 done
3227 done
3228 IFS="$ac_save_IFS"
3229 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3231 esac
3233 MSGMERGE="$ac_cv_path_MSGMERGE"
3234 if test "$MSGMERGE" != ":"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3236 $as_echo "$MSGMERGE" >&6; }
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$localedir" || localedir='${datadir}/locale'
3246 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3249 ac_config_commands="$ac_config_commands po-directories"
3253 if test "X$prefix" = "XNONE"; then
3254 acl_final_prefix="$ac_default_prefix"
3255 else
3256 acl_final_prefix="$prefix"
3258 if test "X$exec_prefix" = "XNONE"; then
3259 acl_final_exec_prefix='${prefix}'
3260 else
3261 acl_final_exec_prefix="$exec_prefix"
3263 acl_save_prefix="$prefix"
3264 prefix="$acl_final_prefix"
3265 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3266 prefix="$acl_save_prefix"
3268 DEPDIR="${am__leading_dot}deps"
3270 ac_config_commands="$ac_config_commands depfiles"
3273 am_make=${MAKE-make}
3274 cat > confinc << 'END'
3275 am__doit:
3276 @echo this is the am__doit target
3277 .PHONY: am__doit
3279 # If we don't find an include directive, just comment out the code.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3281 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3282 am__include="#"
3283 am__quote=
3284 _am_result=none
3285 # First try GNU make style include.
3286 echo "include confinc" > confmf
3287 # Ignore all kinds of additional output from `make'.
3288 case `$am_make -s -f confmf 2> /dev/null` in #(
3289 *the\ am__doit\ target*)
3290 am__include=include
3291 am__quote=
3292 _am_result=GNU
3294 esac
3295 # Now try BSD make style include.
3296 if test "$am__include" = "#"; then
3297 echo '.include "confinc"' > confmf
3298 case `$am_make -s -f confmf 2> /dev/null` in #(
3299 *the\ am__doit\ target*)
3300 am__include=.include
3301 am__quote="\""
3302 _am_result=BSD
3304 esac
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3309 $as_echo "$_am_result" >&6; }
3310 rm -f confinc confmf
3312 # Check whether --enable-dependency-tracking was given.
3313 if test "${enable_dependency_tracking+set}" = set; then :
3314 enableval=$enable_dependency_tracking;
3317 if test "x$enable_dependency_tracking" != xno; then
3318 am_depcomp="$ac_aux_dir/depcomp"
3319 AMDEPBACKSLASH='\'
3320 am__nodep='_no'
3322 if test "x$enable_dependency_tracking" != xno; then
3323 AMDEP_TRUE=
3324 AMDEP_FALSE='#'
3325 else
3326 AMDEP_TRUE='#'
3327 AMDEP_FALSE=
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3364 CC=$ac_cv_prog_CC
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3375 if test -z "$ac_cv_prog_CC"; then
3376 ac_ct_CC=$CC
3377 # Extract the first word of "gcc", so it can be a program name with args.
3378 set dummy gcc; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_CC="gcc"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3398 done
3399 done
3400 IFS=$as_save_IFS
3404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405 if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407 $as_echo "$ac_ct_CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3413 if test "x$ac_ct_CC" = x; then
3414 CC=""
3415 else
3416 case $cross_compiling:$ac_tool_warned in
3417 yes:)
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3421 esac
3422 CC=$ac_ct_CC
3424 else
3425 CC="$ac_cv_prog_CC"
3428 if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}cc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_CC="${ac_tool_prefix}cc"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3451 done
3452 done
3453 IFS=$as_save_IFS
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 $as_echo "$CC" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3469 if test -z "$CC"; then
3470 # Extract the first word of "cc", so it can be a program name with args.
3471 set dummy cc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 ac_prog_rejected=no
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3489 ac_prog_rejected=yes
3490 continue
3492 ac_cv_prog_CC="cc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3496 done
3497 done
3498 IFS=$as_save_IFS
3500 if test $ac_prog_rejected = yes; then
3501 # We found a bogon in the path, so make sure we never use it.
3502 set dummy $ac_cv_prog_CC
3503 shift
3504 if test $# != 0; then
3505 # We chose a different compiler from the bogus one.
3506 # However, it has the same basename, so the bogon will be chosen
3507 # first if we set CC to just the basename; use the full file name.
3508 shift
3509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3525 if test -z "$CC"; then
3526 if test -n "$ac_tool_prefix"; then
3527 for ac_prog in cl.exe
3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CC+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3550 done
3551 done
3552 IFS=$as_save_IFS
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 $as_echo "$CC" >&6; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3566 test -n "$CC" && break
3567 done
3569 if test -z "$CC"; then
3570 ac_ct_CC=$CC
3571 for ac_prog in cl.exe
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_ac_ct_CC="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601 if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603 $as_echo "$ac_ct_CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$ac_ct_CC" && break
3611 done
3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3621 esac
3622 CC=$ac_ct_CC
3629 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error $? "no acceptable C compiler found in \$PATH
3632 See \`config.log' for more details" "$LINENO" 5; }
3634 # Provide some information about the compiler.
3635 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3636 set X $ac_compile
3637 ac_compiler=$2
3638 for ac_option in --version -v -V -qversion; do
3639 { { ac_try="$ac_compiler $ac_option >&5"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3647 ac_status=$?
3648 if test -s conftest.err; then
3649 sed '10a\
3650 ... rest of stderr output deleted ...
3651 10q' conftest.err >conftest.er1
3652 cat conftest.er1 >&5
3654 rm -f conftest.er1 conftest.err
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }
3657 done
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3663 main ()
3667 return 0;
3669 _ACEOF
3670 ac_clean_files_save=$ac_clean_files
3671 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3672 # Try to create an executable without -o first, disregard a.out.
3673 # It will help us diagnose broken compilers, and finding out an intuition
3674 # of exeext.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3676 $as_echo_n "checking whether the C compiler works... " >&6; }
3677 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3679 # The possible output files:
3680 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3682 ac_rmfiles=
3683 for ac_file in $ac_files
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3687 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3688 esac
3689 done
3690 rm -f $ac_rmfiles
3692 if { { ac_try="$ac_link_default"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_link_default") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3704 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3705 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3706 # so that the user can short-circuit this test for compilers unknown to
3707 # Autoconf.
3708 for ac_file in $ac_files ''
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3714 [ab].out )
3715 # We found the default executable, but exeext='' is most
3716 # certainly right.
3717 break;;
3718 *.* )
3719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3720 then :; else
3721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723 # We set ac_cv_exeext here because the later test for it is not
3724 # safe: cross compilers may not add the suffix if given an `-o'
3725 # argument, so we may need to know it at that point already.
3726 # Even if this section looks crufty: it has the advantage of
3727 # actually working.
3728 break;;
3730 break;;
3731 esac
3732 done
3733 test "$ac_cv_exeext" = no && ac_cv_exeext=
3735 else
3736 ac_file=''
3738 if test -z "$ac_file"; then :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error 77 "C compiler cannot create executables
3747 See \`config.log' for more details" "$LINENO" 5; }
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3750 $as_echo "yes" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3753 $as_echo_n "checking for C compiler default output file name... " >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3755 $as_echo "$ac_file" >&6; }
3756 ac_exeext=$ac_cv_exeext
3758 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3759 ac_clean_files=$ac_clean_files_save
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3761 $as_echo_n "checking for suffix of executables... " >&6; }
3762 if { { ac_try="$ac_link"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_link") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3774 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3775 # work properly (i.e., refer to `conftest.exe'), while it won't with
3776 # `rm'.
3777 for ac_file in conftest.exe conftest conftest.*; do
3778 test -f "$ac_file" || continue
3779 case $ac_file in
3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 break;;
3783 * ) break;;
3784 esac
3785 done
3786 else
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3790 See \`config.log' for more details" "$LINENO" 5; }
3792 rm -f conftest conftest$ac_cv_exeext
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3794 $as_echo "$ac_cv_exeext" >&6; }
3796 rm -f conftest.$ac_ext
3797 EXEEXT=$ac_cv_exeext
3798 ac_exeext=$EXEEXT
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <stdio.h>
3803 main ()
3805 FILE *f = fopen ("conftest.out", "w");
3806 return ferror (f) || fclose (f) != 0;
3809 return 0;
3811 _ACEOF
3812 ac_clean_files="$ac_clean_files conftest.out"
3813 # Check that the compiler produces executables we can run. If not, either
3814 # the compiler is broken, or we cross compile.
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3816 $as_echo_n "checking whether we are cross compiling... " >&6; }
3817 if test "$cross_compiling" != yes; then
3818 { { ac_try="$ac_link"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link") 2>&5
3826 ac_status=$?
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }
3829 if { ac_try='./conftest$ac_cv_exeext'
3830 { { case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_try") 2>&5
3837 ac_status=$?
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; }; then
3840 cross_compiling=no
3841 else
3842 if test "$cross_compiling" = maybe; then
3843 cross_compiling=yes
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "cannot run C compiled programs.
3848 If you meant to cross compile, use \`--host'.
3849 See \`config.log' for more details" "$LINENO" 5; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3854 $as_echo "$cross_compiling" >&6; }
3856 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3857 ac_clean_files=$ac_clean_files_save
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3859 $as_echo_n "checking for suffix of object files... " >&6; }
3860 if ${ac_cv_objext+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3867 main ()
3871 return 0;
3873 _ACEOF
3874 rm -f conftest.o conftest.obj
3875 if { { ac_try="$ac_compile"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_compile") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; then :
3886 for ac_file in conftest.o conftest.obj conftest.*; do
3887 test -f "$ac_file" || continue;
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 break;;
3892 esac
3893 done
3894 else
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "cannot compute suffix of object files: cannot compile
3901 See \`config.log' for more details" "$LINENO" 5; }
3903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3906 $as_echo "$ac_cv_objext" >&6; }
3907 OBJEXT=$ac_cv_objext
3908 ac_objext=$OBJEXT
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3910 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3911 if ${ac_cv_c_compiler_gnu+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main ()
3920 #ifndef __GNUC__
3921 choke me
3922 #endif
3925 return 0;
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_compiler_gnu=yes
3930 else
3931 ac_compiler_gnu=no
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3938 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3939 if test $ac_compiler_gnu = yes; then
3940 GCC=yes
3941 else
3942 GCC=
3944 ac_test_CFLAGS=${CFLAGS+set}
3945 ac_save_CFLAGS=$CFLAGS
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3947 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3948 if ${ac_cv_prog_cc_g+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 ac_save_c_werror_flag=$ac_c_werror_flag
3952 ac_c_werror_flag=yes
3953 ac_cv_prog_cc_g=no
3954 CFLAGS="-g"
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_prog_cc_g=yes
3968 else
3969 CFLAGS=""
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 main ()
3978 return 0;
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3983 else
3984 ac_c_werror_flag=$ac_save_c_werror_flag
3985 CFLAGS="-g"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 main ()
3994 return 0;
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_prog_cc_g=yes
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4008 $as_echo "$ac_cv_prog_cc_g" >&6; }
4009 if test "$ac_test_CFLAGS" = set; then
4010 CFLAGS=$ac_save_CFLAGS
4011 elif test $ac_cv_prog_cc_g = yes; then
4012 if test "$GCC" = yes; then
4013 CFLAGS="-g -O2"
4014 else
4015 CFLAGS="-g"
4017 else
4018 if test "$GCC" = yes; then
4019 CFLAGS="-O2"
4020 else
4021 CFLAGS=
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4026 if ${ac_cv_prog_cc_c89+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 ac_cv_prog_cc_c89=no
4030 ac_save_CC=$CC
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #include <stdarg.h>
4034 #include <stdio.h>
4035 struct stat;
4036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4037 struct buf { int x; };
4038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4039 static char *e (p, i)
4040 char **p;
4041 int i;
4043 return p[i];
4045 static char *f (char * (*g) (char **, int), char **p, ...)
4047 char *s;
4048 va_list v;
4049 va_start (v,p);
4050 s = g (p, va_arg (v,int));
4051 va_end (v);
4052 return s;
4055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4056 function prototypes and stuff, but not '\xHH' hex character constants.
4057 These don't provoke an error unfortunately, instead are silently treated
4058 as 'x'. The following induces an error, until -std is added to get
4059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4060 array size at least. It's necessary to write '\x00'==0 to get something
4061 that's true only with -std. */
4062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4065 inside strings and character constants. */
4066 #define FOO(x) 'x'
4067 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4069 int test (int i, double x);
4070 struct s1 {int (*f) (int a);};
4071 struct s2 {int (*f) (double a);};
4072 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073 int argc;
4074 char **argv;
4076 main ()
4078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4080 return 0;
4082 _ACEOF
4083 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4086 CC="$ac_save_CC $ac_arg"
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_c89=$ac_arg
4090 rm -f core conftest.err conftest.$ac_objext
4091 test "x$ac_cv_prog_cc_c89" != "xno" && break
4092 done
4093 rm -f conftest.$ac_ext
4094 CC=$ac_save_CC
4097 # AC_CACHE_VAL
4098 case "x$ac_cv_prog_cc_c89" in
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4101 $as_echo "none needed" >&6; } ;;
4102 xno)
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4104 $as_echo "unsupported" >&6; } ;;
4106 CC="$CC $ac_cv_prog_cc_c89"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4108 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4109 esac
4110 if test "x$ac_cv_prog_cc_c89" != xno; then :
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 depcc="$CC" am_compiler_list=
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4123 $as_echo_n "checking dependency style of $depcc... " >&6; }
4124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4128 # We make a subdir and do the tests there. Otherwise we can end up
4129 # making bogus files that we don't know about and never remove. For
4130 # instance it was reported that on HP-UX the gcc test will end up
4131 # making a dummy file named `D' -- because `-MD' means `put the output
4132 # in D'.
4133 rm -rf conftest.dir
4134 mkdir conftest.dir
4135 # Copy depcomp to subdir because otherwise we won't find it if we're
4136 # using a relative directory.
4137 cp "$am_depcomp" conftest.dir
4138 cd conftest.dir
4139 # We will build objects and dependencies in a subdirectory because
4140 # it helps to detect inapplicable dependency modes. For instance
4141 # both Tru64's cc and ICC support -MD to output dependencies as a
4142 # side effect of compilation, but ICC will put the dependencies in
4143 # the current directory while Tru64 will put them in the object
4144 # directory.
4145 mkdir sub
4147 am_cv_CC_dependencies_compiler_type=none
4148 if test "$am_compiler_list" = ""; then
4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4151 am__universal=false
4152 case " $depcc " in #(
4153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4154 esac
4156 for depmode in $am_compiler_list; do
4157 # Setup a source with many dependencies, because some compilers
4158 # like to wrap large dependency lists on column 80 (with \), and
4159 # we should not choose a depcomp mode which is confused by this.
4161 # We need to recreate these files for each test, as the compiler may
4162 # overwrite some of them when testing with obscure command lines.
4163 # This happens at least with the AIX C compiler.
4164 : > sub/conftest.c
4165 for i in 1 2 3 4 5 6; do
4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4168 # Solaris 8's {/usr,}/bin/sh.
4169 touch sub/conftst$i.h
4170 done
4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4174 # mode. It turns out that the SunPro C++ compiler does not properly
4175 # handle `-M -o', and we need to detect this. Also, some Intel
4176 # versions had trouble with output in subdirs
4177 am__obj=sub/conftest.${OBJEXT-o}
4178 am__minus_obj="-o $am__obj"
4179 case $depmode in
4180 gcc)
4181 # This depmode causes a compiler race in universal mode.
4182 test "$am__universal" = false || continue
4184 nosideeffect)
4185 # after this tag, mechanisms are not by side-effect, so they'll
4186 # only be used when explicitly requested
4187 if test "x$enable_dependency_tracking" = xyes; then
4188 continue
4189 else
4190 break
4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4194 # This compiler won't grok `-c -o', but also, the minuso test has
4195 # not run yet. These depmodes are late enough in the game, and
4196 # so weak that their functioning should not be impacted.
4197 am__obj=conftest.${OBJEXT-o}
4198 am__minus_obj=
4200 none) break ;;
4201 esac
4202 if depmode=$depmode \
4203 source=sub/conftest.c object=$am__obj \
4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4206 >/dev/null 2>conftest.err &&
4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4211 # icc doesn't choke on unknown options, it will just issue warnings
4212 # or remarks (even with -Werror). So we grep stderr for any message
4213 # that says an option was ignored or not supported.
4214 # When given -MP, icc 7.0 and 7.1 complain thusly:
4215 # icc: Command line warning: ignoring option '-M'; no argument required
4216 # The diagnosis changed in icc 8.0:
4217 # icc: Command line remark: option '-MP' not supported
4218 if (grep 'ignoring option' conftest.err ||
4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4220 am_cv_CC_dependencies_compiler_type=$depmode
4221 break
4224 done
4226 cd ..
4227 rm -rf conftest.dir
4228 else
4229 am_cv_CC_dependencies_compiler_type=none
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4238 test "x$enable_dependency_tracking" != xno \
4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4240 am__fastdepCC_TRUE=
4241 am__fastdepCC_FALSE='#'
4242 else
4243 am__fastdepCC_TRUE='#'
4244 am__fastdepCC_FALSE=
4248 # Make sure we can run config.sub.
4249 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4250 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4253 $as_echo_n "checking build system type... " >&6; }
4254 if ${ac_cv_build+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 ac_build_alias=$build_alias
4258 test "x$ac_build_alias" = x &&
4259 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4260 test "x$ac_build_alias" = x &&
4261 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4262 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4267 $as_echo "$ac_cv_build" >&6; }
4268 case $ac_cv_build in
4269 *-*-*) ;;
4270 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4271 esac
4272 build=$ac_cv_build
4273 ac_save_IFS=$IFS; IFS='-'
4274 set x $ac_cv_build
4275 shift
4276 build_cpu=$1
4277 build_vendor=$2
4278 shift; shift
4279 # Remember, the first character of IFS is used to create $*,
4280 # except with old shells:
4281 build_os=$*
4282 IFS=$ac_save_IFS
4283 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4287 $as_echo_n "checking host system type... " >&6; }
4288 if ${ac_cv_host+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test "x$host_alias" = x; then
4292 ac_cv_host=$ac_cv_build
4293 else
4294 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4300 $as_echo "$ac_cv_host" >&6; }
4301 case $ac_cv_host in
4302 *-*-*) ;;
4303 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4304 esac
4305 host=$ac_cv_host
4306 ac_save_IFS=$IFS; IFS='-'
4307 set x $ac_cv_host
4308 shift
4309 host_cpu=$1
4310 host_vendor=$2
4311 shift; shift
4312 # Remember, the first character of IFS is used to create $*,
4313 # except with old shells:
4314 host_os=$*
4315 IFS=$ac_save_IFS
4316 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4320 # Check whether --with-gnu-ld was given.
4321 if test "${with_gnu_ld+set}" = set; then :
4322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4323 else
4324 with_gnu_ld=no
4327 # Prepare PATH_SEPARATOR.
4328 # The user is always right.
4329 if test "${PATH_SEPARATOR+set}" != set; then
4330 echo "#! /bin/sh" >conf$$.sh
4331 echo "exit 0" >>conf$$.sh
4332 chmod +x conf$$.sh
4333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4334 PATH_SEPARATOR=';'
4335 else
4336 PATH_SEPARATOR=:
4338 rm -f conf$$.sh
4340 ac_prog=ld
4341 if test "$GCC" = yes; then
4342 # Check if gcc -print-prog-name=ld gives a path.
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4344 $as_echo_n "checking for ld used by GCC... " >&6; }
4345 case $host in
4346 *-*-mingw*)
4347 # gcc leaves a trailing carriage return which upsets mingw
4348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4351 esac
4352 case $ac_prog in
4353 # Accept absolute paths.
4354 [\\/]* | [A-Za-z]:[\\/]*)
4355 re_direlt='/[^/][^/]*/\.\./'
4356 # Canonicalize the path of ld
4357 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4358 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4359 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4360 done
4361 test -z "$LD" && LD="$ac_prog"
4364 # If it fails, then pretend we aren't using GCC.
4365 ac_prog=ld
4368 # If it is relative, then search for the first ld in PATH.
4369 with_gnu_ld=unknown
4371 esac
4372 elif test "$with_gnu_ld" = yes; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4374 $as_echo_n "checking for GNU ld... " >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4377 $as_echo_n "checking for non-GNU ld... " >&6; }
4379 if ${acl_cv_path_LD+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -z "$LD"; then
4383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4384 for ac_dir in $PATH; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4387 acl_cv_path_LD="$ac_dir/$ac_prog"
4388 # Check to see if the program is GNU ld. I'd rather use --version,
4389 # but apparently some GNU ld's only accept -v.
4390 # Break only if it was the GNU/non-GNU ld that we prefer.
4391 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4392 *GNU* | *'with BFD'*)
4393 test "$with_gnu_ld" != no && break ;;
4395 test "$with_gnu_ld" != yes && break ;;
4396 esac
4398 done
4399 IFS="$ac_save_ifs"
4400 else
4401 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4405 LD="$acl_cv_path_LD"
4406 if test -n "$LD"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4408 $as_echo "$LD" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4416 if ${acl_cv_prog_gnu_ld+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 acl_cv_prog_gnu_ld=yes ;;
4424 acl_cv_prog_gnu_ld=no ;;
4425 esac
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4428 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4429 with_gnu_ld=$acl_cv_prog_gnu_ld
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4435 $as_echo_n "checking for shared library run path origin... " >&6; }
4436 if ${acl_cv_rpath+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4440 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4441 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4442 . ./conftest.sh
4443 rm -f ./conftest.sh
4444 acl_cv_rpath=done
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4448 $as_echo "$acl_cv_rpath" >&6; }
4449 wl="$acl_cv_wl"
4450 acl_libext="$acl_cv_libext"
4451 acl_shlibext="$acl_cv_shlibext"
4452 acl_libname_spec="$acl_cv_libname_spec"
4453 acl_library_names_spec="$acl_cv_library_names_spec"
4454 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4455 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4456 acl_hardcode_direct="$acl_cv_hardcode_direct"
4457 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4458 # Check whether --enable-rpath was given.
4459 if test "${enable_rpath+set}" = set; then :
4460 enableval=$enable_rpath; :
4461 else
4462 enable_rpath=yes
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4474 # On Suns, sometimes $CPP names a directory.
4475 if test -n "$CPP" && test -d "$CPP"; then
4476 CPP=
4478 if test -z "$CPP"; then
4479 if ${ac_cv_prog_CPP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 # Double quotes because CPP needs to be expanded
4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4485 ac_preproc_ok=false
4486 for ac_c_preproc_warn_flag in '' yes
4488 # Use a header file that comes with gcc, so configuring glibc
4489 # with a fresh cross-compiler works.
4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491 # <limits.h> exists even on freestanding compilers.
4492 # On the NeXT, cc -E runs the code through the compiler's parser,
4493 # not just through cpp. "Syntax error" is here to catch this case.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #ifdef __STDC__
4497 # include <limits.h>
4498 #else
4499 # include <assert.h>
4500 #endif
4501 Syntax error
4502 _ACEOF
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4505 else
4506 # Broken: fails on valid input.
4507 continue
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4511 # OK, works on sane cases. Now check whether nonexistent headers
4512 # can be detected and how.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <ac_nonexistent.h>
4516 _ACEOF
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4518 # Broken: success on invalid input.
4519 continue
4520 else
4521 # Passes both tests.
4522 ac_preproc_ok=:
4523 break
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4527 done
4528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529 rm -f conftest.i conftest.err conftest.$ac_ext
4530 if $ac_preproc_ok; then :
4531 break
4534 done
4535 ac_cv_prog_CPP=$CPP
4538 CPP=$ac_cv_prog_CPP
4539 else
4540 ac_cv_prog_CPP=$CPP
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4543 $as_echo "$CPP" >&6; }
4544 ac_preproc_ok=false
4545 for ac_c_preproc_warn_flag in '' yes
4547 # Use a header file that comes with gcc, so configuring glibc
4548 # with a fresh cross-compiler works.
4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 # <limits.h> exists even on freestanding compilers.
4551 # On the NeXT, cc -E runs the code through the compiler's parser,
4552 # not just through cpp. "Syntax error" is here to catch this case.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #ifdef __STDC__
4556 # include <limits.h>
4557 #else
4558 # include <assert.h>
4559 #endif
4560 Syntax error
4561 _ACEOF
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4564 else
4565 # Broken: fails on valid input.
4566 continue
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4570 # OK, works on sane cases. Now check whether nonexistent headers
4571 # can be detected and how.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <ac_nonexistent.h>
4575 _ACEOF
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4577 # Broken: success on invalid input.
4578 continue
4579 else
4580 # Passes both tests.
4581 ac_preproc_ok=:
4582 break
4584 rm -f conftest.err conftest.i conftest.$ac_ext
4586 done
4587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588 rm -f conftest.i conftest.err conftest.$ac_ext
4589 if $ac_preproc_ok; then :
4591 else
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4595 See \`config.log' for more details" "$LINENO" 5; }
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4606 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4607 if ${ac_cv_path_GREP+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -z "$GREP"; then
4611 ac_path_GREP_found=false
4612 # Loop through the user's path and test for each of PROGNAME-LIST
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_prog in grep ggrep; do
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4621 as_fn_executable_p "$ac_path_GREP" || continue
4622 # Check for GNU ac_path_GREP and select it if it is found.
4623 # Check for GNU $ac_path_GREP
4624 case `"$ac_path_GREP" --version 2>&1` in
4625 *GNU*)
4626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4628 ac_count=0
4629 $as_echo_n 0123456789 >"conftest.in"
4630 while :
4632 cat "conftest.in" "conftest.in" >"conftest.tmp"
4633 mv "conftest.tmp" "conftest.in"
4634 cp "conftest.in" "conftest.nl"
4635 $as_echo 'GREP' >> "conftest.nl"
4636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638 as_fn_arith $ac_count + 1 && ac_count=$as_val
4639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4640 # Best one so far, save it but keep looking for a better one
4641 ac_cv_path_GREP="$ac_path_GREP"
4642 ac_path_GREP_max=$ac_count
4644 # 10*(2^10) chars as input seems more than enough
4645 test $ac_count -gt 10 && break
4646 done
4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648 esac
4650 $ac_path_GREP_found && break 3
4651 done
4652 done
4653 done
4654 IFS=$as_save_IFS
4655 if test -z "$ac_cv_path_GREP"; then
4656 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 else
4659 ac_cv_path_GREP=$GREP
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4664 $as_echo "$ac_cv_path_GREP" >&6; }
4665 GREP="$ac_cv_path_GREP"
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4669 $as_echo_n "checking for egrep... " >&6; }
4670 if ${ac_cv_path_EGREP+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4674 then ac_cv_path_EGREP="$GREP -E"
4675 else
4676 if test -z "$EGREP"; then
4677 ac_path_EGREP_found=false
4678 # Loop through the user's path and test for each of PROGNAME-LIST
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_prog in egrep; do
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4687 as_fn_executable_p "$ac_path_EGREP" || continue
4688 # Check for GNU ac_path_EGREP and select it if it is found.
4689 # Check for GNU $ac_path_EGREP
4690 case `"$ac_path_EGREP" --version 2>&1` in
4691 *GNU*)
4692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 ac_count=0
4695 $as_echo_n 0123456789 >"conftest.in"
4696 while :
4698 cat "conftest.in" "conftest.in" >"conftest.tmp"
4699 mv "conftest.tmp" "conftest.in"
4700 cp "conftest.in" "conftest.nl"
4701 $as_echo 'EGREP' >> "conftest.nl"
4702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4704 as_fn_arith $ac_count + 1 && ac_count=$as_val
4705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4706 # Best one so far, save it but keep looking for a better one
4707 ac_cv_path_EGREP="$ac_path_EGREP"
4708 ac_path_EGREP_max=$ac_count
4710 # 10*(2^10) chars as input seems more than enough
4711 test $ac_count -gt 10 && break
4712 done
4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714 esac
4716 $ac_path_EGREP_found && break 3
4717 done
4718 done
4719 done
4720 IFS=$as_save_IFS
4721 if test -z "$ac_cv_path_EGREP"; then
4722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 else
4725 ac_cv_path_EGREP=$EGREP
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4731 $as_echo "$ac_cv_path_EGREP" >&6; }
4732 EGREP="$ac_cv_path_EGREP"
4737 acl_libdirstem=lib
4738 acl_libdirstem2=
4739 case "$host_os" in
4740 solaris*)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4742 $as_echo_n "checking for 64-bit host... " >&6; }
4743 if ${gl_cv_solaris_64bit+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4749 #ifdef _LP64
4750 sixtyfour bits
4751 #endif
4753 _ACEOF
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4756 gl_cv_solaris_64bit=yes
4757 else
4758 gl_cv_solaris_64bit=no
4760 rm -f conftest*
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4765 $as_echo "$gl_cv_solaris_64bit" >&6; }
4766 if test $gl_cv_solaris_64bit = yes; then
4767 acl_libdirstem=lib/64
4768 case "$host_cpu" in
4769 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4770 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4771 esac
4775 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4776 if test -n "$searchpath"; then
4777 acl_save_IFS="${IFS= }"; IFS=":"
4778 for searchdir in $searchpath; do
4779 if test -d "$searchdir"; then
4780 case "$searchdir" in
4781 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4782 */../ | */.. )
4783 # Better ignore directories of this form. They are misleading.
4785 *) searchdir=`cd "$searchdir" && pwd`
4786 case "$searchdir" in
4787 */lib64 ) acl_libdirstem=lib64 ;;
4788 esac ;;
4789 esac
4791 done
4792 IFS="$acl_save_IFS"
4795 esac
4796 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4809 use_additional=yes
4811 acl_save_prefix="$prefix"
4812 prefix="$acl_final_prefix"
4813 acl_save_exec_prefix="$exec_prefix"
4814 exec_prefix="$acl_final_exec_prefix"
4816 eval additional_includedir=\"$includedir\"
4817 eval additional_libdir=\"$libdir\"
4819 exec_prefix="$acl_save_exec_prefix"
4820 prefix="$acl_save_prefix"
4823 # Check whether --with-libiconv-prefix was given.
4824 if test "${with_libiconv_prefix+set}" = set; then :
4825 withval=$with_libiconv_prefix;
4826 if test "X$withval" = "Xno"; then
4827 use_additional=no
4828 else
4829 if test "X$withval" = "X"; then
4831 acl_save_prefix="$prefix"
4832 prefix="$acl_final_prefix"
4833 acl_save_exec_prefix="$exec_prefix"
4834 exec_prefix="$acl_final_exec_prefix"
4836 eval additional_includedir=\"$includedir\"
4837 eval additional_libdir=\"$libdir\"
4839 exec_prefix="$acl_save_exec_prefix"
4840 prefix="$acl_save_prefix"
4842 else
4843 additional_includedir="$withval/include"
4844 additional_libdir="$withval/$acl_libdirstem"
4845 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4846 && ! test -d "$withval/$acl_libdirstem"; then
4847 additional_libdir="$withval/$acl_libdirstem2"
4854 LIBICONV=
4855 LTLIBICONV=
4856 INCICONV=
4857 LIBICONV_PREFIX=
4858 HAVE_LIBICONV=
4859 rpathdirs=
4860 ltrpathdirs=
4861 names_already_handled=
4862 names_next_round='iconv '
4863 while test -n "$names_next_round"; do
4864 names_this_round="$names_next_round"
4865 names_next_round=
4866 for name in $names_this_round; do
4867 already_handled=
4868 for n in $names_already_handled; do
4869 if test "$n" = "$name"; then
4870 already_handled=yes
4871 break
4873 done
4874 if test -z "$already_handled"; then
4875 names_already_handled="$names_already_handled $name"
4876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4877 eval value=\"\$HAVE_LIB$uppername\"
4878 if test -n "$value"; then
4879 if test "$value" = yes; then
4880 eval value=\"\$LIB$uppername\"
4881 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4882 eval value=\"\$LTLIB$uppername\"
4883 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4884 else
4887 else
4888 found_dir=
4889 found_la=
4890 found_so=
4891 found_a=
4892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4893 if test -n "$acl_shlibext"; then
4894 shrext=".$acl_shlibext" # typically: shrext=.so
4895 else
4896 shrext=
4898 if test $use_additional = yes; then
4899 dir="$additional_libdir"
4900 if test -n "$acl_shlibext"; then
4901 if test -f "$dir/$libname$shrext"; then
4902 found_dir="$dir"
4903 found_so="$dir/$libname$shrext"
4904 else
4905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4906 ver=`(cd "$dir" && \
4907 for f in "$libname$shrext".*; do echo "$f"; done \
4908 | sed -e "s,^$libname$shrext\\\\.,," \
4909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4910 | sed 1q ) 2>/dev/null`
4911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4912 found_dir="$dir"
4913 found_so="$dir/$libname$shrext.$ver"
4915 else
4916 eval library_names=\"$acl_library_names_spec\"
4917 for f in $library_names; do
4918 if test -f "$dir/$f"; then
4919 found_dir="$dir"
4920 found_so="$dir/$f"
4921 break
4923 done
4927 if test "X$found_dir" = "X"; then
4928 if test -f "$dir/$libname.$acl_libext"; then
4929 found_dir="$dir"
4930 found_a="$dir/$libname.$acl_libext"
4933 if test "X$found_dir" != "X"; then
4934 if test -f "$dir/$libname.la"; then
4935 found_la="$dir/$libname.la"
4939 if test "X$found_dir" = "X"; then
4940 for x in $LDFLAGS $LTLIBICONV; do
4942 acl_save_prefix="$prefix"
4943 prefix="$acl_final_prefix"
4944 acl_save_exec_prefix="$exec_prefix"
4945 exec_prefix="$acl_final_exec_prefix"
4946 eval x=\"$x\"
4947 exec_prefix="$acl_save_exec_prefix"
4948 prefix="$acl_save_prefix"
4950 case "$x" in
4951 -L*)
4952 dir=`echo "X$x" | sed -e 's/^X-L//'`
4953 if test -n "$acl_shlibext"; then
4954 if test -f "$dir/$libname$shrext"; then
4955 found_dir="$dir"
4956 found_so="$dir/$libname$shrext"
4957 else
4958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4959 ver=`(cd "$dir" && \
4960 for f in "$libname$shrext".*; do echo "$f"; done \
4961 | sed -e "s,^$libname$shrext\\\\.,," \
4962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4963 | sed 1q ) 2>/dev/null`
4964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4965 found_dir="$dir"
4966 found_so="$dir/$libname$shrext.$ver"
4968 else
4969 eval library_names=\"$acl_library_names_spec\"
4970 for f in $library_names; do
4971 if test -f "$dir/$f"; then
4972 found_dir="$dir"
4973 found_so="$dir/$f"
4974 break
4976 done
4980 if test "X$found_dir" = "X"; then
4981 if test -f "$dir/$libname.$acl_libext"; then
4982 found_dir="$dir"
4983 found_a="$dir/$libname.$acl_libext"
4986 if test "X$found_dir" != "X"; then
4987 if test -f "$dir/$libname.la"; then
4988 found_la="$dir/$libname.la"
4992 esac
4993 if test "X$found_dir" != "X"; then
4994 break
4996 done
4998 if test "X$found_dir" != "X"; then
4999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5000 if test "X$found_so" != "X"; then
5001 if test "$enable_rpath" = no \
5002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5005 else
5006 haveit=
5007 for x in $ltrpathdirs; do
5008 if test "X$x" = "X$found_dir"; then
5009 haveit=yes
5010 break
5012 done
5013 if test -z "$haveit"; then
5014 ltrpathdirs="$ltrpathdirs $found_dir"
5016 if test "$acl_hardcode_direct" = yes; then
5017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5018 else
5019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5021 haveit=
5022 for x in $rpathdirs; do
5023 if test "X$x" = "X$found_dir"; then
5024 haveit=yes
5025 break
5027 done
5028 if test -z "$haveit"; then
5029 rpathdirs="$rpathdirs $found_dir"
5031 else
5032 haveit=
5033 for x in $LDFLAGS $LIBICONV; do
5035 acl_save_prefix="$prefix"
5036 prefix="$acl_final_prefix"
5037 acl_save_exec_prefix="$exec_prefix"
5038 exec_prefix="$acl_final_exec_prefix"
5039 eval x=\"$x\"
5040 exec_prefix="$acl_save_exec_prefix"
5041 prefix="$acl_save_prefix"
5043 if test "X$x" = "X-L$found_dir"; then
5044 haveit=yes
5045 break
5047 done
5048 if test -z "$haveit"; then
5049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5051 if test "$acl_hardcode_minus_L" != no; then
5052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5053 else
5054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5059 else
5060 if test "X$found_a" != "X"; then
5061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5062 else
5063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5066 additional_includedir=
5067 case "$found_dir" in
5068 */$acl_libdirstem | */$acl_libdirstem/)
5069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5070 if test "$name" = 'iconv'; then
5071 LIBICONV_PREFIX="$basedir"
5073 additional_includedir="$basedir/include"
5075 */$acl_libdirstem2 | */$acl_libdirstem2/)
5076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5077 if test "$name" = 'iconv'; then
5078 LIBICONV_PREFIX="$basedir"
5080 additional_includedir="$basedir/include"
5082 esac
5083 if test "X$additional_includedir" != "X"; then
5084 if test "X$additional_includedir" != "X/usr/include"; then
5085 haveit=
5086 if test "X$additional_includedir" = "X/usr/local/include"; then
5087 if test -n "$GCC"; then
5088 case $host_os in
5089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5090 esac
5093 if test -z "$haveit"; then
5094 for x in $CPPFLAGS $INCICONV; do
5096 acl_save_prefix="$prefix"
5097 prefix="$acl_final_prefix"
5098 acl_save_exec_prefix="$exec_prefix"
5099 exec_prefix="$acl_final_exec_prefix"
5100 eval x=\"$x\"
5101 exec_prefix="$acl_save_exec_prefix"
5102 prefix="$acl_save_prefix"
5104 if test "X$x" = "X-I$additional_includedir"; then
5105 haveit=yes
5106 break
5108 done
5109 if test -z "$haveit"; then
5110 if test -d "$additional_includedir"; then
5111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5117 if test -n "$found_la"; then
5118 save_libdir="$libdir"
5119 case "$found_la" in
5120 */* | *\\*) . "$found_la" ;;
5121 *) . "./$found_la" ;;
5122 esac
5123 libdir="$save_libdir"
5124 for dep in $dependency_libs; do
5125 case "$dep" in
5126 -L*)
5127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5130 haveit=
5131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5133 if test -n "$GCC"; then
5134 case $host_os in
5135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5136 esac
5139 if test -z "$haveit"; then
5140 haveit=
5141 for x in $LDFLAGS $LIBICONV; do
5143 acl_save_prefix="$prefix"
5144 prefix="$acl_final_prefix"
5145 acl_save_exec_prefix="$exec_prefix"
5146 exec_prefix="$acl_final_exec_prefix"
5147 eval x=\"$x\"
5148 exec_prefix="$acl_save_exec_prefix"
5149 prefix="$acl_save_prefix"
5151 if test "X$x" = "X-L$additional_libdir"; then
5152 haveit=yes
5153 break
5155 done
5156 if test -z "$haveit"; then
5157 if test -d "$additional_libdir"; then
5158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5161 haveit=
5162 for x in $LDFLAGS $LTLIBICONV; do
5164 acl_save_prefix="$prefix"
5165 prefix="$acl_final_prefix"
5166 acl_save_exec_prefix="$exec_prefix"
5167 exec_prefix="$acl_final_exec_prefix"
5168 eval x=\"$x\"
5169 exec_prefix="$acl_save_exec_prefix"
5170 prefix="$acl_save_prefix"
5172 if test "X$x" = "X-L$additional_libdir"; then
5173 haveit=yes
5174 break
5176 done
5177 if test -z "$haveit"; then
5178 if test -d "$additional_libdir"; then
5179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5185 -R*)
5186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5187 if test "$enable_rpath" != no; then
5188 haveit=
5189 for x in $rpathdirs; do
5190 if test "X$x" = "X$dir"; then
5191 haveit=yes
5192 break
5194 done
5195 if test -z "$haveit"; then
5196 rpathdirs="$rpathdirs $dir"
5198 haveit=
5199 for x in $ltrpathdirs; do
5200 if test "X$x" = "X$dir"; then
5201 haveit=yes
5202 break
5204 done
5205 if test -z "$haveit"; then
5206 ltrpathdirs="$ltrpathdirs $dir"
5210 -l*)
5211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5213 *.la)
5214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5220 esac
5221 done
5223 else
5224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5229 done
5230 done
5231 if test "X$rpathdirs" != "X"; then
5232 if test -n "$acl_hardcode_libdir_separator"; then
5233 alldirs=
5234 for found_dir in $rpathdirs; do
5235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5236 done
5237 acl_save_libdir="$libdir"
5238 libdir="$alldirs"
5239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5240 libdir="$acl_save_libdir"
5241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5242 else
5243 for found_dir in $rpathdirs; do
5244 acl_save_libdir="$libdir"
5245 libdir="$found_dir"
5246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5247 libdir="$acl_save_libdir"
5248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5249 done
5252 if test "X$ltrpathdirs" != "X"; then
5253 for found_dir in $ltrpathdirs; do
5254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5255 done
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5289 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5290 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 gt_save_LIBS="$LIBS"
5294 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 #include <CoreFoundation/CFPreferences.h>
5299 main ()
5301 CFPreferencesCopyAppValue(NULL, NULL)
5303 return 0;
5305 _ACEOF
5306 if ac_fn_c_try_link "$LINENO"; then :
5307 gt_cv_func_CFPreferencesCopyAppValue=yes
5308 else
5309 gt_cv_func_CFPreferencesCopyAppValue=no
5311 rm -f core conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 LIBS="$gt_save_LIBS"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5316 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5317 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5319 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5323 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5324 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 gt_save_LIBS="$LIBS"
5328 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <CoreFoundation/CFLocale.h>
5333 main ()
5335 CFLocaleCopyCurrent();
5337 return 0;
5339 _ACEOF
5340 if ac_fn_c_try_link "$LINENO"; then :
5341 gt_cv_func_CFLocaleCopyCurrent=yes
5342 else
5343 gt_cv_func_CFLocaleCopyCurrent=no
5345 rm -f core conftest.err conftest.$ac_objext \
5346 conftest$ac_exeext conftest.$ac_ext
5347 LIBS="$gt_save_LIBS"
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5350 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5351 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5353 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5356 INTL_MACOSX_LIBS=
5357 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5358 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5366 LIBINTL=
5367 LTLIBINTL=
5368 POSUB=
5370 case " $gt_needs " in
5371 *" need-formatstring-macros "*) gt_api_version=3 ;;
5372 *" need-ngettext "*) gt_api_version=2 ;;
5373 *) gt_api_version=1 ;;
5374 esac
5375 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5376 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5378 if test "$USE_NLS" = "yes"; then
5379 gt_use_preinstalled_gnugettext=no
5382 if test $gt_api_version -ge 3; then
5383 gt_revision_test_code='
5384 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5385 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5386 #endif
5387 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5389 else
5390 gt_revision_test_code=
5392 if test $gt_api_version -ge 2; then
5393 gt_expression_test_code=' + * ngettext ("", "", 0)'
5394 else
5395 gt_expression_test_code=
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5399 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5400 if eval \${$gt_func_gnugettext_libc+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <libintl.h>
5406 $gt_revision_test_code
5407 extern int _nl_msg_cat_cntr;
5408 extern int *_nl_domain_bindings;
5410 main ()
5412 bindtextdomain ("", "");
5413 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5415 return 0;
5417 _ACEOF
5418 if ac_fn_c_try_link "$LINENO"; then :
5419 eval "$gt_func_gnugettext_libc=yes"
5420 else
5421 eval "$gt_func_gnugettext_libc=no"
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5426 eval ac_res=\$$gt_func_gnugettext_libc
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5428 $as_echo "$ac_res" >&6; }
5430 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5436 am_save_CPPFLAGS="$CPPFLAGS"
5438 for element in $INCICONV; do
5439 haveit=
5440 for x in $CPPFLAGS; do
5442 acl_save_prefix="$prefix"
5443 prefix="$acl_final_prefix"
5444 acl_save_exec_prefix="$exec_prefix"
5445 exec_prefix="$acl_final_exec_prefix"
5446 eval x=\"$x\"
5447 exec_prefix="$acl_save_exec_prefix"
5448 prefix="$acl_save_prefix"
5450 if test "X$x" = "X$element"; then
5451 haveit=yes
5452 break
5454 done
5455 if test -z "$haveit"; then
5456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5458 done
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5462 $as_echo_n "checking for iconv... " >&6; }
5463 if ${am_cv_func_iconv+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5467 am_cv_func_iconv="no, consider installing GNU libiconv"
5468 am_cv_lib_iconv=no
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <stdlib.h>
5472 #include <iconv.h>
5474 main ()
5476 iconv_t cd = iconv_open("","");
5477 iconv(cd,NULL,NULL,NULL,NULL);
5478 iconv_close(cd);
5480 return 0;
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 am_cv_func_iconv=yes
5486 rm -f core conftest.err conftest.$ac_objext \
5487 conftest$ac_exeext conftest.$ac_ext
5488 if test "$am_cv_func_iconv" != yes; then
5489 am_save_LIBS="$LIBS"
5490 LIBS="$LIBS $LIBICONV"
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include <stdlib.h>
5494 #include <iconv.h>
5496 main ()
5498 iconv_t cd = iconv_open("","");
5499 iconv(cd,NULL,NULL,NULL,NULL);
5500 iconv_close(cd);
5502 return 0;
5504 _ACEOF
5505 if ac_fn_c_try_link "$LINENO"; then :
5506 am_cv_lib_iconv=yes
5507 am_cv_func_iconv=yes
5509 rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 LIBS="$am_save_LIBS"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5516 $as_echo "$am_cv_func_iconv" >&6; }
5517 if test "$am_cv_func_iconv" = yes; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5519 $as_echo_n "checking for working iconv... " >&6; }
5520 if ${am_cv_func_iconv_works+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5524 am_save_LIBS="$LIBS"
5525 if test $am_cv_lib_iconv = yes; then
5526 LIBS="$LIBS $LIBICONV"
5528 if test "$cross_compiling" = yes; then :
5529 case "$host_os" in
5530 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5531 *) am_cv_func_iconv_works="guessing yes" ;;
5532 esac
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 #include <iconv.h>
5538 #include <string.h>
5539 int main ()
5541 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5542 returns. */
5544 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5545 if (cd_utf8_to_88591 != (iconv_t)(-1))
5547 static const char input[] = "\342\202\254"; /* EURO SIGN */
5548 char buf[10];
5549 const char *inptr = input;
5550 size_t inbytesleft = strlen (input);
5551 char *outptr = buf;
5552 size_t outbytesleft = sizeof (buf);
5553 size_t res = iconv (cd_utf8_to_88591,
5554 (char **) &inptr, &inbytesleft,
5555 &outptr, &outbytesleft);
5556 if (res == 0)
5557 return 1;
5560 /* Test against Solaris 10 bug: Failures are not distinguishable from
5561 successful returns. */
5563 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5564 if (cd_ascii_to_88591 != (iconv_t)(-1))
5566 static const char input[] = "\263";
5567 char buf[10];
5568 const char *inptr = input;
5569 size_t inbytesleft = strlen (input);
5570 char *outptr = buf;
5571 size_t outbytesleft = sizeof (buf);
5572 size_t res = iconv (cd_ascii_to_88591,
5573 (char **) &inptr, &inbytesleft,
5574 &outptr, &outbytesleft);
5575 if (res == 0)
5576 return 1;
5579 #if 0 /* This bug could be worked around by the caller. */
5580 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5582 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5583 if (cd_88591_to_utf8 != (iconv_t)(-1))
5585 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5586 char buf[50];
5587 const char *inptr = input;
5588 size_t inbytesleft = strlen (input);
5589 char *outptr = buf;
5590 size_t outbytesleft = sizeof (buf);
5591 size_t res = iconv (cd_88591_to_utf8,
5592 (char **) &inptr, &inbytesleft,
5593 &outptr, &outbytesleft);
5594 if ((int)res > 0)
5595 return 1;
5598 #endif
5599 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5600 provided. */
5601 if (/* Try standardized names. */
5602 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5603 /* Try IRIX, OSF/1 names. */
5604 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5605 /* Try AIX names. */
5606 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5607 /* Try HP-UX names. */
5608 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5609 return 1;
5610 return 0;
5612 _ACEOF
5613 if ac_fn_c_try_run "$LINENO"; then :
5614 am_cv_func_iconv_works=yes
5615 else
5616 am_cv_func_iconv_works=no
5618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5619 conftest.$ac_objext conftest.beam conftest.$ac_ext
5622 LIBS="$am_save_LIBS"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5626 $as_echo "$am_cv_func_iconv_works" >&6; }
5627 case "$am_cv_func_iconv_works" in
5628 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5629 *) am_func_iconv=yes ;;
5630 esac
5631 else
5632 am_func_iconv=no am_cv_lib_iconv=no
5634 if test "$am_func_iconv" = yes; then
5636 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5639 if test "$am_cv_lib_iconv" = yes; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5641 $as_echo_n "checking how to link with libiconv... " >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5643 $as_echo "$LIBICONV" >&6; }
5644 else
5645 CPPFLAGS="$am_save_CPPFLAGS"
5646 LIBICONV=
5647 LTLIBICONV=
5660 use_additional=yes
5662 acl_save_prefix="$prefix"
5663 prefix="$acl_final_prefix"
5664 acl_save_exec_prefix="$exec_prefix"
5665 exec_prefix="$acl_final_exec_prefix"
5667 eval additional_includedir=\"$includedir\"
5668 eval additional_libdir=\"$libdir\"
5670 exec_prefix="$acl_save_exec_prefix"
5671 prefix="$acl_save_prefix"
5674 # Check whether --with-libintl-prefix was given.
5675 if test "${with_libintl_prefix+set}" = set; then :
5676 withval=$with_libintl_prefix;
5677 if test "X$withval" = "Xno"; then
5678 use_additional=no
5679 else
5680 if test "X$withval" = "X"; then
5682 acl_save_prefix="$prefix"
5683 prefix="$acl_final_prefix"
5684 acl_save_exec_prefix="$exec_prefix"
5685 exec_prefix="$acl_final_exec_prefix"
5687 eval additional_includedir=\"$includedir\"
5688 eval additional_libdir=\"$libdir\"
5690 exec_prefix="$acl_save_exec_prefix"
5691 prefix="$acl_save_prefix"
5693 else
5694 additional_includedir="$withval/include"
5695 additional_libdir="$withval/$acl_libdirstem"
5696 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5697 && ! test -d "$withval/$acl_libdirstem"; then
5698 additional_libdir="$withval/$acl_libdirstem2"
5705 LIBINTL=
5706 LTLIBINTL=
5707 INCINTL=
5708 LIBINTL_PREFIX=
5709 HAVE_LIBINTL=
5710 rpathdirs=
5711 ltrpathdirs=
5712 names_already_handled=
5713 names_next_round='intl '
5714 while test -n "$names_next_round"; do
5715 names_this_round="$names_next_round"
5716 names_next_round=
5717 for name in $names_this_round; do
5718 already_handled=
5719 for n in $names_already_handled; do
5720 if test "$n" = "$name"; then
5721 already_handled=yes
5722 break
5724 done
5725 if test -z "$already_handled"; then
5726 names_already_handled="$names_already_handled $name"
5727 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5728 eval value=\"\$HAVE_LIB$uppername\"
5729 if test -n "$value"; then
5730 if test "$value" = yes; then
5731 eval value=\"\$LIB$uppername\"
5732 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5733 eval value=\"\$LTLIB$uppername\"
5734 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5735 else
5738 else
5739 found_dir=
5740 found_la=
5741 found_so=
5742 found_a=
5743 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5744 if test -n "$acl_shlibext"; then
5745 shrext=".$acl_shlibext" # typically: shrext=.so
5746 else
5747 shrext=
5749 if test $use_additional = yes; then
5750 dir="$additional_libdir"
5751 if test -n "$acl_shlibext"; then
5752 if test -f "$dir/$libname$shrext"; then
5753 found_dir="$dir"
5754 found_so="$dir/$libname$shrext"
5755 else
5756 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5757 ver=`(cd "$dir" && \
5758 for f in "$libname$shrext".*; do echo "$f"; done \
5759 | sed -e "s,^$libname$shrext\\\\.,," \
5760 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5761 | sed 1q ) 2>/dev/null`
5762 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5763 found_dir="$dir"
5764 found_so="$dir/$libname$shrext.$ver"
5766 else
5767 eval library_names=\"$acl_library_names_spec\"
5768 for f in $library_names; do
5769 if test -f "$dir/$f"; then
5770 found_dir="$dir"
5771 found_so="$dir/$f"
5772 break
5774 done
5778 if test "X$found_dir" = "X"; then
5779 if test -f "$dir/$libname.$acl_libext"; then
5780 found_dir="$dir"
5781 found_a="$dir/$libname.$acl_libext"
5784 if test "X$found_dir" != "X"; then
5785 if test -f "$dir/$libname.la"; then
5786 found_la="$dir/$libname.la"
5790 if test "X$found_dir" = "X"; then
5791 for x in $LDFLAGS $LTLIBINTL; do
5793 acl_save_prefix="$prefix"
5794 prefix="$acl_final_prefix"
5795 acl_save_exec_prefix="$exec_prefix"
5796 exec_prefix="$acl_final_exec_prefix"
5797 eval x=\"$x\"
5798 exec_prefix="$acl_save_exec_prefix"
5799 prefix="$acl_save_prefix"
5801 case "$x" in
5802 -L*)
5803 dir=`echo "X$x" | sed -e 's/^X-L//'`
5804 if test -n "$acl_shlibext"; then
5805 if test -f "$dir/$libname$shrext"; then
5806 found_dir="$dir"
5807 found_so="$dir/$libname$shrext"
5808 else
5809 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5810 ver=`(cd "$dir" && \
5811 for f in "$libname$shrext".*; do echo "$f"; done \
5812 | sed -e "s,^$libname$shrext\\\\.,," \
5813 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5814 | sed 1q ) 2>/dev/null`
5815 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5816 found_dir="$dir"
5817 found_so="$dir/$libname$shrext.$ver"
5819 else
5820 eval library_names=\"$acl_library_names_spec\"
5821 for f in $library_names; do
5822 if test -f "$dir/$f"; then
5823 found_dir="$dir"
5824 found_so="$dir/$f"
5825 break
5827 done
5831 if test "X$found_dir" = "X"; then
5832 if test -f "$dir/$libname.$acl_libext"; then
5833 found_dir="$dir"
5834 found_a="$dir/$libname.$acl_libext"
5837 if test "X$found_dir" != "X"; then
5838 if test -f "$dir/$libname.la"; then
5839 found_la="$dir/$libname.la"
5843 esac
5844 if test "X$found_dir" != "X"; then
5845 break
5847 done
5849 if test "X$found_dir" != "X"; then
5850 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5851 if test "X$found_so" != "X"; then
5852 if test "$enable_rpath" = no \
5853 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5854 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5855 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5856 else
5857 haveit=
5858 for x in $ltrpathdirs; do
5859 if test "X$x" = "X$found_dir"; then
5860 haveit=yes
5861 break
5863 done
5864 if test -z "$haveit"; then
5865 ltrpathdirs="$ltrpathdirs $found_dir"
5867 if test "$acl_hardcode_direct" = yes; then
5868 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5869 else
5870 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5871 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5872 haveit=
5873 for x in $rpathdirs; do
5874 if test "X$x" = "X$found_dir"; then
5875 haveit=yes
5876 break
5878 done
5879 if test -z "$haveit"; then
5880 rpathdirs="$rpathdirs $found_dir"
5882 else
5883 haveit=
5884 for x in $LDFLAGS $LIBINTL; do
5886 acl_save_prefix="$prefix"
5887 prefix="$acl_final_prefix"
5888 acl_save_exec_prefix="$exec_prefix"
5889 exec_prefix="$acl_final_exec_prefix"
5890 eval x=\"$x\"
5891 exec_prefix="$acl_save_exec_prefix"
5892 prefix="$acl_save_prefix"
5894 if test "X$x" = "X-L$found_dir"; then
5895 haveit=yes
5896 break
5898 done
5899 if test -z "$haveit"; then
5900 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5902 if test "$acl_hardcode_minus_L" != no; then
5903 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5904 else
5905 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5910 else
5911 if test "X$found_a" != "X"; then
5912 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5913 else
5914 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5917 additional_includedir=
5918 case "$found_dir" in
5919 */$acl_libdirstem | */$acl_libdirstem/)
5920 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5921 if test "$name" = 'intl'; then
5922 LIBINTL_PREFIX="$basedir"
5924 additional_includedir="$basedir/include"
5926 */$acl_libdirstem2 | */$acl_libdirstem2/)
5927 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5928 if test "$name" = 'intl'; then
5929 LIBINTL_PREFIX="$basedir"
5931 additional_includedir="$basedir/include"
5933 esac
5934 if test "X$additional_includedir" != "X"; then
5935 if test "X$additional_includedir" != "X/usr/include"; then
5936 haveit=
5937 if test "X$additional_includedir" = "X/usr/local/include"; then
5938 if test -n "$GCC"; then
5939 case $host_os in
5940 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5941 esac
5944 if test -z "$haveit"; then
5945 for x in $CPPFLAGS $INCINTL; do
5947 acl_save_prefix="$prefix"
5948 prefix="$acl_final_prefix"
5949 acl_save_exec_prefix="$exec_prefix"
5950 exec_prefix="$acl_final_exec_prefix"
5951 eval x=\"$x\"
5952 exec_prefix="$acl_save_exec_prefix"
5953 prefix="$acl_save_prefix"
5955 if test "X$x" = "X-I$additional_includedir"; then
5956 haveit=yes
5957 break
5959 done
5960 if test -z "$haveit"; then
5961 if test -d "$additional_includedir"; then
5962 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5968 if test -n "$found_la"; then
5969 save_libdir="$libdir"
5970 case "$found_la" in
5971 */* | *\\*) . "$found_la" ;;
5972 *) . "./$found_la" ;;
5973 esac
5974 libdir="$save_libdir"
5975 for dep in $dependency_libs; do
5976 case "$dep" in
5977 -L*)
5978 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5979 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5980 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5981 haveit=
5982 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5983 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5984 if test -n "$GCC"; then
5985 case $host_os in
5986 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5987 esac
5990 if test -z "$haveit"; then
5991 haveit=
5992 for x in $LDFLAGS $LIBINTL; do
5994 acl_save_prefix="$prefix"
5995 prefix="$acl_final_prefix"
5996 acl_save_exec_prefix="$exec_prefix"
5997 exec_prefix="$acl_final_exec_prefix"
5998 eval x=\"$x\"
5999 exec_prefix="$acl_save_exec_prefix"
6000 prefix="$acl_save_prefix"
6002 if test "X$x" = "X-L$additional_libdir"; then
6003 haveit=yes
6004 break
6006 done
6007 if test -z "$haveit"; then
6008 if test -d "$additional_libdir"; then
6009 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6012 haveit=
6013 for x in $LDFLAGS $LTLIBINTL; do
6015 acl_save_prefix="$prefix"
6016 prefix="$acl_final_prefix"
6017 acl_save_exec_prefix="$exec_prefix"
6018 exec_prefix="$acl_final_exec_prefix"
6019 eval x=\"$x\"
6020 exec_prefix="$acl_save_exec_prefix"
6021 prefix="$acl_save_prefix"
6023 if test "X$x" = "X-L$additional_libdir"; then
6024 haveit=yes
6025 break
6027 done
6028 if test -z "$haveit"; then
6029 if test -d "$additional_libdir"; then
6030 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6036 -R*)
6037 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6038 if test "$enable_rpath" != no; then
6039 haveit=
6040 for x in $rpathdirs; do
6041 if test "X$x" = "X$dir"; then
6042 haveit=yes
6043 break
6045 done
6046 if test -z "$haveit"; then
6047 rpathdirs="$rpathdirs $dir"
6049 haveit=
6050 for x in $ltrpathdirs; do
6051 if test "X$x" = "X$dir"; then
6052 haveit=yes
6053 break
6055 done
6056 if test -z "$haveit"; then
6057 ltrpathdirs="$ltrpathdirs $dir"
6061 -l*)
6062 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6064 *.la)
6065 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6068 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6069 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6071 esac
6072 done
6074 else
6075 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6080 done
6081 done
6082 if test "X$rpathdirs" != "X"; then
6083 if test -n "$acl_hardcode_libdir_separator"; then
6084 alldirs=
6085 for found_dir in $rpathdirs; do
6086 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6087 done
6088 acl_save_libdir="$libdir"
6089 libdir="$alldirs"
6090 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6091 libdir="$acl_save_libdir"
6092 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6093 else
6094 for found_dir in $rpathdirs; do
6095 acl_save_libdir="$libdir"
6096 libdir="$found_dir"
6097 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6098 libdir="$acl_save_libdir"
6099 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6100 done
6103 if test "X$ltrpathdirs" != "X"; then
6104 for found_dir in $ltrpathdirs; do
6105 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6106 done
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6115 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6116 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 gt_save_CPPFLAGS="$CPPFLAGS"
6120 CPPFLAGS="$CPPFLAGS $INCINTL"
6121 gt_save_LIBS="$LIBS"
6122 LIBS="$LIBS $LIBINTL"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <libintl.h>
6126 $gt_revision_test_code
6127 extern int _nl_msg_cat_cntr;
6128 extern
6129 #ifdef __cplusplus
6131 #endif
6132 const char *_nl_expand_alias (const char *);
6134 main ()
6136 bindtextdomain ("", "");
6137 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6139 return 0;
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"; then :
6143 eval "$gt_func_gnugettext_libintl=yes"
6144 else
6145 eval "$gt_func_gnugettext_libintl=no"
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6150 LIBS="$LIBS $LIBICONV"
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <libintl.h>
6154 $gt_revision_test_code
6155 extern int _nl_msg_cat_cntr;
6156 extern
6157 #ifdef __cplusplus
6159 #endif
6160 const char *_nl_expand_alias (const char *);
6162 main ()
6164 bindtextdomain ("", "");
6165 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6167 return 0;
6169 _ACEOF
6170 if ac_fn_c_try_link "$LINENO"; then :
6171 LIBINTL="$LIBINTL $LIBICONV"
6172 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6173 eval "$gt_func_gnugettext_libintl=yes"
6176 rm -f core conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6179 CPPFLAGS="$gt_save_CPPFLAGS"
6180 LIBS="$gt_save_LIBS"
6182 eval ac_res=\$$gt_func_gnugettext_libintl
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6184 $as_echo "$ac_res" >&6; }
6187 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6188 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6189 && test "$PACKAGE" != gettext-runtime \
6190 && test "$PACKAGE" != gettext-tools; }; then
6191 gt_use_preinstalled_gnugettext=yes
6192 else
6193 LIBINTL=
6194 LTLIBINTL=
6195 INCINTL=
6200 if test -n "$INTL_MACOSX_LIBS"; then
6201 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6202 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6203 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6204 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6208 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6209 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6211 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6213 else
6214 USE_NLS=no
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6219 $as_echo_n "checking whether to use NLS... " >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6221 $as_echo "$USE_NLS" >&6; }
6222 if test "$USE_NLS" = "yes"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6224 $as_echo_n "checking where the gettext function comes from... " >&6; }
6225 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6226 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6227 gt_source="external libintl"
6228 else
6229 gt_source="libc"
6231 else
6232 gt_source="included intl directory"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6235 $as_echo "$gt_source" >&6; }
6238 if test "$USE_NLS" = "yes"; then
6240 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6241 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6243 $as_echo_n "checking how to link with libintl... " >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6245 $as_echo "$LIBINTL" >&6; }
6247 for element in $INCINTL; do
6248 haveit=
6249 for x in $CPPFLAGS; do
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6255 eval x=\"$x\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6259 if test "X$x" = "X$element"; then
6260 haveit=yes
6261 break
6263 done
6264 if test -z "$haveit"; then
6265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6267 done
6272 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6275 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6279 POSUB=po
6284 INTLLIBS="$LIBINTL"
6292 for ac_prog in 'bison -y' byacc
6294 # Extract the first word of "$ac_prog", so it can be a program name with args.
6295 set dummy $ac_prog; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_YACC+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$YACC"; then
6302 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_YACC="$ac_prog"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6321 YACC=$ac_cv_prog_YACC
6322 if test -n "$YACC"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6324 $as_echo "$YACC" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6331 test -n "$YACC" && break
6332 done
6333 test -n "$YACC" || YACC="yacc"
6335 for ac_prog in flex lex
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_LEX+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$LEX"; then
6345 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_LEX="$ac_prog"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6364 LEX=$ac_cv_prog_LEX
6365 if test -n "$LEX"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6367 $as_echo "$LEX" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6374 test -n "$LEX" && break
6375 done
6376 test -n "$LEX" || LEX=":"
6378 if test "x$LEX" != "x:"; then
6379 cat >conftest.l <<_ACEOF
6381 a { ECHO; }
6382 b { REJECT; }
6383 c { yymore (); }
6384 d { yyless (1); }
6385 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6386 yyless ((input () != 0)); }
6387 f { unput (yytext[0]); }
6388 . { BEGIN INITIAL; }
6390 #ifdef YYTEXT_POINTER
6391 extern char *yytext;
6392 #endif
6394 main (void)
6396 return ! yylex () + ! yywrap ();
6398 _ACEOF
6399 { { ac_try="$LEX conftest.l"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405 $as_echo "$ac_try_echo"; } >&5
6406 (eval "$LEX conftest.l") 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6411 $as_echo_n "checking lex output file root... " >&6; }
6412 if ${ac_cv_prog_lex_root+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6416 if test -f lex.yy.c; then
6417 ac_cv_prog_lex_root=lex.yy
6418 elif test -f lexyy.c; then
6419 ac_cv_prog_lex_root=lexyy
6420 else
6421 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6425 $as_echo "$ac_cv_prog_lex_root" >&6; }
6426 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6428 if test -z "${LEXLIB+set}"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6430 $as_echo_n "checking lex library... " >&6; }
6431 if ${ac_cv_lib_lex+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6435 ac_save_LIBS=$LIBS
6436 ac_cv_lib_lex='none needed'
6437 for ac_lib in '' -lfl -ll; do
6438 LIBS="$ac_lib $ac_save_LIBS"
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 `cat $LEX_OUTPUT_ROOT.c`
6442 _ACEOF
6443 if ac_fn_c_try_link "$LINENO"; then :
6444 ac_cv_lib_lex=$ac_lib
6446 rm -f core conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext conftest.$ac_ext
6448 test "$ac_cv_lib_lex" != 'none needed' && break
6449 done
6450 LIBS=$ac_save_LIBS
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6454 $as_echo "$ac_cv_lib_lex" >&6; }
6455 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6460 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6461 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 # POSIX says lex can declare yytext either as a pointer or an array; the
6465 # default is implementation-dependent. Figure out which it is, since
6466 # not all implementations provide the %pointer and %array declarations.
6467 ac_cv_prog_lex_yytext_pointer=no
6468 ac_save_LIBS=$LIBS
6469 LIBS="$LEXLIB $ac_save_LIBS"
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6473 #define YYTEXT_POINTER 1
6474 `cat $LEX_OUTPUT_ROOT.c`
6475 _ACEOF
6476 if ac_fn_c_try_link "$LINENO"; then :
6477 ac_cv_prog_lex_yytext_pointer=yes
6479 rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_save_LIBS
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6485 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6486 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6488 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6491 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6494 if test "$LEX" = :; then
6495 LEX=${am_missing_run}flex
6497 ac_ext=c
6498 ac_cpp='$CPP $CPPFLAGS'
6499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_CC+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$CC"; then
6511 ac_cv_prog_CC="$CC" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6526 IFS=$as_save_IFS
6530 CC=$ac_cv_prog_CC
6531 if test -n "$CC"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6533 $as_echo "$CC" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6541 if test -z "$ac_cv_prog_CC"; then
6542 ac_ct_CC=$CC
6543 # Extract the first word of "gcc", so it can be a program name with args.
6544 set dummy gcc; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$ac_ct_CC"; then
6551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_ac_ct_CC="gcc"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6564 done
6565 done
6566 IFS=$as_save_IFS
6570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6571 if test -n "$ac_ct_CC"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6573 $as_echo "$ac_ct_CC" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6579 if test "x$ac_ct_CC" = x; then
6580 CC=""
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 CC=$ac_ct_CC
6590 else
6591 CC="$ac_cv_prog_CC"
6594 if test -z "$CC"; then
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}cc; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_CC+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$CC"; then
6604 ac_cv_prog_CC="$CC" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_CC="${ac_tool_prefix}cc"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6617 done
6618 done
6619 IFS=$as_save_IFS
6623 CC=$ac_cv_prog_CC
6624 if test -n "$CC"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6626 $as_echo "$CC" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6635 if test -z "$CC"; then
6636 # Extract the first word of "cc", so it can be a program name with args.
6637 set dummy cc; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_CC+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$CC"; then
6644 ac_cv_prog_CC="$CC" # Let the user override the test.
6645 else
6646 ac_prog_rejected=no
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6655 ac_prog_rejected=yes
6656 continue
6658 ac_cv_prog_CC="cc"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6662 done
6663 done
6664 IFS=$as_save_IFS
6666 if test $ac_prog_rejected = yes; then
6667 # We found a bogon in the path, so make sure we never use it.
6668 set dummy $ac_cv_prog_CC
6669 shift
6670 if test $# != 0; then
6671 # We chose a different compiler from the bogus one.
6672 # However, it has the same basename, so the bogon will be chosen
6673 # first if we set CC to just the basename; use the full file name.
6674 shift
6675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6680 CC=$ac_cv_prog_CC
6681 if test -n "$CC"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6683 $as_echo "$CC" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6691 if test -z "$CC"; then
6692 if test -n "$ac_tool_prefix"; then
6693 for ac_prog in cl.exe
6695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_CC+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$CC"; then
6703 ac_cv_prog_CC="$CC" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6722 CC=$ac_cv_prog_CC
6723 if test -n "$CC"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6725 $as_echo "$CC" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6732 test -n "$CC" && break
6733 done
6735 if test -z "$CC"; then
6736 ac_ct_CC=$CC
6737 for ac_prog in cl.exe
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_CC"; then
6747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_CC="$ac_prog"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6767 if test -n "$ac_ct_CC"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6769 $as_echo "$ac_ct_CC" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6776 test -n "$ac_ct_CC" && break
6777 done
6779 if test "x$ac_ct_CC" = x; then
6780 CC=""
6781 else
6782 case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6787 esac
6788 CC=$ac_ct_CC
6795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6797 as_fn_error $? "no acceptable C compiler found in \$PATH
6798 See \`config.log' for more details" "$LINENO" 5; }
6800 # Provide some information about the compiler.
6801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6802 set X $ac_compile
6803 ac_compiler=$2
6804 for ac_option in --version -v -V -qversion; do
6805 { { ac_try="$ac_compiler $ac_option >&5"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6811 $as_echo "$ac_try_echo"; } >&5
6812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6813 ac_status=$?
6814 if test -s conftest.err; then
6815 sed '10a\
6816 ... rest of stderr output deleted ...
6817 10q' conftest.err >conftest.er1
6818 cat conftest.er1 >&5
6820 rm -f conftest.er1 conftest.err
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }
6823 done
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6827 if ${ac_cv_c_compiler_gnu+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6834 main ()
6836 #ifndef __GNUC__
6837 choke me
6838 #endif
6841 return 0;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 ac_compiler_gnu=yes
6846 else
6847 ac_compiler_gnu=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6855 if test $ac_compiler_gnu = yes; then
6856 GCC=yes
6857 else
6858 GCC=
6860 ac_test_CFLAGS=${CFLAGS+set}
6861 ac_save_CFLAGS=$CFLAGS
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6864 if ${ac_cv_prog_cc_g+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 ac_save_c_werror_flag=$ac_c_werror_flag
6868 ac_c_werror_flag=yes
6869 ac_cv_prog_cc_g=no
6870 CFLAGS="-g"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6875 main ()
6879 return 0;
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 ac_cv_prog_cc_g=yes
6884 else
6885 CFLAGS=""
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6890 main ()
6894 return 0;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6899 else
6900 ac_c_werror_flag=$ac_save_c_werror_flag
6901 CFLAGS="-g"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6906 main ()
6910 return 0;
6912 _ACEOF
6913 if ac_fn_c_try_compile "$LINENO"; then :
6914 ac_cv_prog_cc_g=yes
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_c_werror_flag=$ac_save_c_werror_flag
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6924 $as_echo "$ac_cv_prog_cc_g" >&6; }
6925 if test "$ac_test_CFLAGS" = set; then
6926 CFLAGS=$ac_save_CFLAGS
6927 elif test $ac_cv_prog_cc_g = yes; then
6928 if test "$GCC" = yes; then
6929 CFLAGS="-g -O2"
6930 else
6931 CFLAGS="-g"
6933 else
6934 if test "$GCC" = yes; then
6935 CFLAGS="-O2"
6936 else
6937 CFLAGS=
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6942 if ${ac_cv_prog_cc_c89+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 ac_cv_prog_cc_c89=no
6946 ac_save_CC=$CC
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <stdarg.h>
6950 #include <stdio.h>
6951 struct stat;
6952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6953 struct buf { int x; };
6954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6955 static char *e (p, i)
6956 char **p;
6957 int i;
6959 return p[i];
6961 static char *f (char * (*g) (char **, int), char **p, ...)
6963 char *s;
6964 va_list v;
6965 va_start (v,p);
6966 s = g (p, va_arg (v,int));
6967 va_end (v);
6968 return s;
6971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6972 function prototypes and stuff, but not '\xHH' hex character constants.
6973 These don't provoke an error unfortunately, instead are silently treated
6974 as 'x'. The following induces an error, until -std is added to get
6975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6976 array size at least. It's necessary to write '\x00'==0 to get something
6977 that's true only with -std. */
6978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6981 inside strings and character constants. */
6982 #define FOO(x) 'x'
6983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6985 int test (int i, double x);
6986 struct s1 {int (*f) (int a);};
6987 struct s2 {int (*f) (double a);};
6988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6989 int argc;
6990 char **argv;
6992 main ()
6994 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6996 return 0;
6998 _ACEOF
6999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7002 CC="$ac_save_CC $ac_arg"
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 ac_cv_prog_cc_c89=$ac_arg
7006 rm -f core conftest.err conftest.$ac_objext
7007 test "x$ac_cv_prog_cc_c89" != "xno" && break
7008 done
7009 rm -f conftest.$ac_ext
7010 CC=$ac_save_CC
7013 # AC_CACHE_VAL
7014 case "x$ac_cv_prog_cc_c89" in
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7017 $as_echo "none needed" >&6; } ;;
7018 xno)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7020 $as_echo "unsupported" >&6; } ;;
7022 CC="$CC $ac_cv_prog_cc_c89"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7025 esac
7026 if test "x$ac_cv_prog_cc_c89" != xno; then :
7030 ac_ext=c
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036 depcc="$CC" am_compiler_list=
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7039 $as_echo_n "checking dependency style of $depcc... " >&6; }
7040 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7044 # We make a subdir and do the tests there. Otherwise we can end up
7045 # making bogus files that we don't know about and never remove. For
7046 # instance it was reported that on HP-UX the gcc test will end up
7047 # making a dummy file named `D' -- because `-MD' means `put the output
7048 # in D'.
7049 rm -rf conftest.dir
7050 mkdir conftest.dir
7051 # Copy depcomp to subdir because otherwise we won't find it if we're
7052 # using a relative directory.
7053 cp "$am_depcomp" conftest.dir
7054 cd conftest.dir
7055 # We will build objects and dependencies in a subdirectory because
7056 # it helps to detect inapplicable dependency modes. For instance
7057 # both Tru64's cc and ICC support -MD to output dependencies as a
7058 # side effect of compilation, but ICC will put the dependencies in
7059 # the current directory while Tru64 will put them in the object
7060 # directory.
7061 mkdir sub
7063 am_cv_CC_dependencies_compiler_type=none
7064 if test "$am_compiler_list" = ""; then
7065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7067 am__universal=false
7068 case " $depcc " in #(
7069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7070 esac
7072 for depmode in $am_compiler_list; do
7073 # Setup a source with many dependencies, because some compilers
7074 # like to wrap large dependency lists on column 80 (with \), and
7075 # we should not choose a depcomp mode which is confused by this.
7077 # We need to recreate these files for each test, as the compiler may
7078 # overwrite some of them when testing with obscure command lines.
7079 # This happens at least with the AIX C compiler.
7080 : > sub/conftest.c
7081 for i in 1 2 3 4 5 6; do
7082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7083 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7084 # Solaris 8's {/usr,}/bin/sh.
7085 touch sub/conftst$i.h
7086 done
7087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7089 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7090 # mode. It turns out that the SunPro C++ compiler does not properly
7091 # handle `-M -o', and we need to detect this. Also, some Intel
7092 # versions had trouble with output in subdirs
7093 am__obj=sub/conftest.${OBJEXT-o}
7094 am__minus_obj="-o $am__obj"
7095 case $depmode in
7096 gcc)
7097 # This depmode causes a compiler race in universal mode.
7098 test "$am__universal" = false || continue
7100 nosideeffect)
7101 # after this tag, mechanisms are not by side-effect, so they'll
7102 # only be used when explicitly requested
7103 if test "x$enable_dependency_tracking" = xyes; then
7104 continue
7105 else
7106 break
7109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7110 # This compiler won't grok `-c -o', but also, the minuso test has
7111 # not run yet. These depmodes are late enough in the game, and
7112 # so weak that their functioning should not be impacted.
7113 am__obj=conftest.${OBJEXT-o}
7114 am__minus_obj=
7116 none) break ;;
7117 esac
7118 if depmode=$depmode \
7119 source=sub/conftest.c object=$am__obj \
7120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7122 >/dev/null 2>conftest.err &&
7123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7127 # icc doesn't choke on unknown options, it will just issue warnings
7128 # or remarks (even with -Werror). So we grep stderr for any message
7129 # that says an option was ignored or not supported.
7130 # When given -MP, icc 7.0 and 7.1 complain thusly:
7131 # icc: Command line warning: ignoring option '-M'; no argument required
7132 # The diagnosis changed in icc 8.0:
7133 # icc: Command line remark: option '-MP' not supported
7134 if (grep 'ignoring option' conftest.err ||
7135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7136 am_cv_CC_dependencies_compiler_type=$depmode
7137 break
7140 done
7142 cd ..
7143 rm -rf conftest.dir
7144 else
7145 am_cv_CC_dependencies_compiler_type=none
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7154 test "x$enable_dependency_tracking" != xno \
7155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7156 am__fastdepCC_TRUE=
7157 am__fastdepCC_FALSE='#'
7158 else
7159 am__fastdepCC_TRUE='#'
7160 am__fastdepCC_FALSE=
7164 ac_ext=cpp
7165 ac_cpp='$CXXCPP $CPPFLAGS'
7166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7169 if test -z "$CXX"; then
7170 if test -n "$CCC"; then
7171 CXX=$CCC
7172 else
7173 if test -n "$ac_tool_prefix"; then
7174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_CXX+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$CXX"; then
7184 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7197 done
7198 done
7199 IFS=$as_save_IFS
7203 CXX=$ac_cv_prog_CXX
7204 if test -n "$CXX"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7206 $as_echo "$CXX" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7213 test -n "$CXX" && break
7214 done
7216 if test -z "$CXX"; then
7217 ac_ct_CXX=$CXX
7218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7220 # Extract the first word of "$ac_prog", so it can be a program name with args.
7221 set dummy $ac_prog; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$ac_ct_CXX"; then
7228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_CXX="$ac_prog"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7241 done
7242 done
7243 IFS=$as_save_IFS
7247 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7248 if test -n "$ac_ct_CXX"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7250 $as_echo "$ac_ct_CXX" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7257 test -n "$ac_ct_CXX" && break
7258 done
7260 if test "x$ac_ct_CXX" = x; then
7261 CXX="g++"
7262 else
7263 case $cross_compiling:$ac_tool_warned in
7264 yes:)
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned=yes ;;
7268 esac
7269 CXX=$ac_ct_CXX
7275 # Provide some information about the compiler.
7276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7277 set X $ac_compile
7278 ac_compiler=$2
7279 for ac_option in --version -v -V -qversion; do
7280 { { ac_try="$ac_compiler $ac_option >&5"
7281 case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284 esac
7285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7286 $as_echo "$ac_try_echo"; } >&5
7287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7288 ac_status=$?
7289 if test -s conftest.err; then
7290 sed '10a\
7291 ... rest of stderr output deleted ...
7292 10q' conftest.err >conftest.er1
7293 cat conftest.er1 >&5
7295 rm -f conftest.er1 conftest.err
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }
7298 done
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7301 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7302 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7309 main ()
7311 #ifndef __GNUC__
7312 choke me
7313 #endif
7316 return 0;
7318 _ACEOF
7319 if ac_fn_cxx_try_compile "$LINENO"; then :
7320 ac_compiler_gnu=yes
7321 else
7322 ac_compiler_gnu=no
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7329 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7330 if test $ac_compiler_gnu = yes; then
7331 GXX=yes
7332 else
7333 GXX=
7335 ac_test_CXXFLAGS=${CXXFLAGS+set}
7336 ac_save_CXXFLAGS=$CXXFLAGS
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7338 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7339 if ${ac_cv_prog_cxx_g+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7343 ac_cxx_werror_flag=yes
7344 ac_cv_prog_cxx_g=no
7345 CXXFLAGS="-g"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 main ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_cxx_try_compile "$LINENO"; then :
7358 ac_cv_prog_cxx_g=yes
7359 else
7360 CXXFLAGS=""
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7365 main ()
7369 return 0;
7371 _ACEOF
7372 if ac_fn_cxx_try_compile "$LINENO"; then :
7374 else
7375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7376 CXXFLAGS="-g"
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7381 main ()
7385 return 0;
7387 _ACEOF
7388 if ac_fn_cxx_try_compile "$LINENO"; then :
7389 ac_cv_prog_cxx_g=yes
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7399 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7400 if test "$ac_test_CXXFLAGS" = set; then
7401 CXXFLAGS=$ac_save_CXXFLAGS
7402 elif test $ac_cv_prog_cxx_g = yes; then
7403 if test "$GXX" = yes; then
7404 CXXFLAGS="-g -O2"
7405 else
7406 CXXFLAGS="-g"
7408 else
7409 if test "$GXX" = yes; then
7410 CXXFLAGS="-O2"
7411 else
7412 CXXFLAGS=
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421 depcc="$CXX" am_compiler_list=
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7424 $as_echo_n "checking dependency style of $depcc... " >&6; }
7425 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7429 # We make a subdir and do the tests there. Otherwise we can end up
7430 # making bogus files that we don't know about and never remove. For
7431 # instance it was reported that on HP-UX the gcc test will end up
7432 # making a dummy file named `D' -- because `-MD' means `put the output
7433 # in D'.
7434 rm -rf conftest.dir
7435 mkdir conftest.dir
7436 # Copy depcomp to subdir because otherwise we won't find it if we're
7437 # using a relative directory.
7438 cp "$am_depcomp" conftest.dir
7439 cd conftest.dir
7440 # We will build objects and dependencies in a subdirectory because
7441 # it helps to detect inapplicable dependency modes. For instance
7442 # both Tru64's cc and ICC support -MD to output dependencies as a
7443 # side effect of compilation, but ICC will put the dependencies in
7444 # the current directory while Tru64 will put them in the object
7445 # directory.
7446 mkdir sub
7448 am_cv_CXX_dependencies_compiler_type=none
7449 if test "$am_compiler_list" = ""; then
7450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7452 am__universal=false
7453 case " $depcc " in #(
7454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7455 esac
7457 for depmode in $am_compiler_list; do
7458 # Setup a source with many dependencies, because some compilers
7459 # like to wrap large dependency lists on column 80 (with \), and
7460 # we should not choose a depcomp mode which is confused by this.
7462 # We need to recreate these files for each test, as the compiler may
7463 # overwrite some of them when testing with obscure command lines.
7464 # This happens at least with the AIX C compiler.
7465 : > sub/conftest.c
7466 for i in 1 2 3 4 5 6; do
7467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7469 # Solaris 8's {/usr,}/bin/sh.
7470 touch sub/conftst$i.h
7471 done
7472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7475 # mode. It turns out that the SunPro C++ compiler does not properly
7476 # handle `-M -o', and we need to detect this. Also, some Intel
7477 # versions had trouble with output in subdirs
7478 am__obj=sub/conftest.${OBJEXT-o}
7479 am__minus_obj="-o $am__obj"
7480 case $depmode in
7481 gcc)
7482 # This depmode causes a compiler race in universal mode.
7483 test "$am__universal" = false || continue
7485 nosideeffect)
7486 # after this tag, mechanisms are not by side-effect, so they'll
7487 # only be used when explicitly requested
7488 if test "x$enable_dependency_tracking" = xyes; then
7489 continue
7490 else
7491 break
7494 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7495 # This compiler won't grok `-c -o', but also, the minuso test has
7496 # not run yet. These depmodes are late enough in the game, and
7497 # so weak that their functioning should not be impacted.
7498 am__obj=conftest.${OBJEXT-o}
7499 am__minus_obj=
7501 none) break ;;
7502 esac
7503 if depmode=$depmode \
7504 source=sub/conftest.c object=$am__obj \
7505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7507 >/dev/null 2>conftest.err &&
7508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7512 # icc doesn't choke on unknown options, it will just issue warnings
7513 # or remarks (even with -Werror). So we grep stderr for any message
7514 # that says an option was ignored or not supported.
7515 # When given -MP, icc 7.0 and 7.1 complain thusly:
7516 # icc: Command line warning: ignoring option '-M'; no argument required
7517 # The diagnosis changed in icc 8.0:
7518 # icc: Command line remark: option '-MP' not supported
7519 if (grep 'ignoring option' conftest.err ||
7520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7521 am_cv_CXX_dependencies_compiler_type=$depmode
7522 break
7525 done
7527 cd ..
7528 rm -rf conftest.dir
7529 else
7530 am_cv_CXX_dependencies_compiler_type=none
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7535 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7539 test "x$enable_dependency_tracking" != xno \
7540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7541 am__fastdepCXX_TRUE=
7542 am__fastdepCXX_FALSE='#'
7543 else
7544 am__fastdepCXX_TRUE='#'
7545 am__fastdepCXX_FALSE=
7549 if test "x$CC" != xcc; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7551 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7554 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7556 set dummy $CC; ac_cc=`$as_echo "$2" |
7557 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7558 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7569 return 0;
7571 _ACEOF
7572 # Make sure it works both with $CC and with simple cc.
7573 # We do the test twice because some compilers refuse to overwrite an
7574 # existing .o file with -o, though they will create one.
7575 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7576 rm -f conftest2.*
7577 if { { case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7582 $as_echo "$ac_try_echo"; } >&5
7583 (eval "$ac_try") 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; } &&
7587 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590 esac
7591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7592 $as_echo "$ac_try_echo"; } >&5
7593 (eval "$ac_try") 2>&5
7594 ac_status=$?
7595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; };
7597 then
7598 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7599 if test "x$CC" != xcc; then
7600 # Test first that cc exists at all.
7601 if { ac_try='cc -c conftest.$ac_ext >&5'
7602 { { case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7607 $as_echo "$ac_try_echo"; } >&5
7608 (eval "$ac_try") 2>&5
7609 ac_status=$?
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; }; }; then
7612 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7613 rm -f conftest2.*
7614 if { { case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7619 $as_echo "$ac_try_echo"; } >&5
7620 (eval "$ac_try") 2>&5
7621 ac_status=$?
7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7623 test $ac_status = 0; } &&
7624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7629 $as_echo "$ac_try_echo"; } >&5
7630 (eval "$ac_try") 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; };
7634 then
7635 # cc works too.
7637 else
7638 # cc exists but doesn't like -o.
7639 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7643 else
7644 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7646 rm -f core conftest*
7649 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7651 $as_echo "yes" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7656 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7660 # FIXME: we rely on the cache variable name because
7661 # there is no other way.
7662 set dummy $CC
7663 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7664 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7665 if test "$am_t" != yes; then
7666 # Losing compiler, so override with the script.
7667 # FIXME: It is wrong to rewrite CC.
7668 # But if we don't then we get into trouble of one sort or another.
7669 # A longer-term fix would be to have automake use am__CC in this case,
7670 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7671 CC="$am_aux_dir/compile $CC"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7676 $as_echo_n "checking whether ln -s works... " >&6; }
7677 LN_S=$as_ln_s
7678 if test "$LN_S" = "ln -s"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680 $as_echo "yes" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7683 $as_echo "no, using $LN_S" >&6; }
7686 case `pwd` in
7687 *\ * | *\ *)
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7689 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7690 esac
7694 macro_version='2.4.2'
7695 macro_revision='1.3337'
7709 ltmain="$ac_aux_dir/ltmain.sh"
7711 # Backslashify metacharacters that are still active within
7712 # double-quoted strings.
7713 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7715 # Same as above, but do not quote variable references.
7716 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7718 # Sed substitution to delay expansion of an escaped shell variable in a
7719 # double_quote_subst'ed string.
7720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7722 # Sed substitution to delay expansion of an escaped single quote.
7723 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7725 # Sed substitution to avoid accidental globbing in evaled expressions
7726 no_glob_subst='s/\*/\\\*/g'
7728 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7729 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7730 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7733 $as_echo_n "checking how to print strings... " >&6; }
7734 # Test print first, because it will be a builtin if present.
7735 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7736 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7737 ECHO='print -r --'
7738 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7739 ECHO='printf %s\n'
7740 else
7741 # Use this function as a fallback that always works.
7742 func_fallback_echo ()
7744 eval 'cat <<_LTECHO_EOF
7746 _LTECHO_EOF'
7748 ECHO='func_fallback_echo'
7751 # func_echo_all arg...
7752 # Invoke $ECHO with all args, space-separated.
7753 func_echo_all ()
7755 $ECHO ""
7758 case "$ECHO" in
7759 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7760 $as_echo "printf" >&6; } ;;
7761 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7762 $as_echo "print -r" >&6; } ;;
7763 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7764 $as_echo "cat" >&6; } ;;
7765 esac
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7781 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7782 if ${ac_cv_path_SED+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7786 for ac_i in 1 2 3 4 5 6 7; do
7787 ac_script="$ac_script$as_nl$ac_script"
7788 done
7789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7790 { ac_script=; unset ac_script;}
7791 if test -z "$SED"; then
7792 ac_path_SED_found=false
7793 # Loop through the user's path and test for each of PROGNAME-LIST
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_prog in sed gsed; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7802 as_fn_executable_p "$ac_path_SED" || continue
7803 # Check for GNU ac_path_SED and select it if it is found.
7804 # Check for GNU $ac_path_SED
7805 case `"$ac_path_SED" --version 2>&1` in
7806 *GNU*)
7807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7809 ac_count=0
7810 $as_echo_n 0123456789 >"conftest.in"
7811 while :
7813 cat "conftest.in" "conftest.in" >"conftest.tmp"
7814 mv "conftest.tmp" "conftest.in"
7815 cp "conftest.in" "conftest.nl"
7816 $as_echo '' >> "conftest.nl"
7817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7819 as_fn_arith $ac_count + 1 && ac_count=$as_val
7820 if test $ac_count -gt ${ac_path_SED_max-0}; then
7821 # Best one so far, save it but keep looking for a better one
7822 ac_cv_path_SED="$ac_path_SED"
7823 ac_path_SED_max=$ac_count
7825 # 10*(2^10) chars as input seems more than enough
7826 test $ac_count -gt 10 && break
7827 done
7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7829 esac
7831 $ac_path_SED_found && break 3
7832 done
7833 done
7834 done
7835 IFS=$as_save_IFS
7836 if test -z "$ac_cv_path_SED"; then
7837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7839 else
7840 ac_cv_path_SED=$SED
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7845 $as_echo "$ac_cv_path_SED" >&6; }
7846 SED="$ac_cv_path_SED"
7847 rm -f conftest.sed
7849 test -z "$SED" && SED=sed
7850 Xsed="$SED -e 1s/^X//"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7863 $as_echo_n "checking for fgrep... " >&6; }
7864 if ${ac_cv_path_FGREP+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7868 then ac_cv_path_FGREP="$GREP -F"
7869 else
7870 if test -z "$FGREP"; then
7871 ac_path_FGREP_found=false
7872 # Loop through the user's path and test for each of PROGNAME-LIST
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_prog in fgrep; do
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7881 as_fn_executable_p "$ac_path_FGREP" || continue
7882 # Check for GNU ac_path_FGREP and select it if it is found.
7883 # Check for GNU $ac_path_FGREP
7884 case `"$ac_path_FGREP" --version 2>&1` in
7885 *GNU*)
7886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7888 ac_count=0
7889 $as_echo_n 0123456789 >"conftest.in"
7890 while :
7892 cat "conftest.in" "conftest.in" >"conftest.tmp"
7893 mv "conftest.tmp" "conftest.in"
7894 cp "conftest.in" "conftest.nl"
7895 $as_echo 'FGREP' >> "conftest.nl"
7896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7898 as_fn_arith $ac_count + 1 && ac_count=$as_val
7899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7900 # Best one so far, save it but keep looking for a better one
7901 ac_cv_path_FGREP="$ac_path_FGREP"
7902 ac_path_FGREP_max=$ac_count
7904 # 10*(2^10) chars as input seems more than enough
7905 test $ac_count -gt 10 && break
7906 done
7907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7908 esac
7910 $ac_path_FGREP_found && break 3
7911 done
7912 done
7913 done
7914 IFS=$as_save_IFS
7915 if test -z "$ac_cv_path_FGREP"; then
7916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7918 else
7919 ac_cv_path_FGREP=$FGREP
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7925 $as_echo "$ac_cv_path_FGREP" >&6; }
7926 FGREP="$ac_cv_path_FGREP"
7929 test -z "$GREP" && GREP=grep
7949 # Check whether --with-gnu-ld was given.
7950 if test "${with_gnu_ld+set}" = set; then :
7951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7952 else
7953 with_gnu_ld=no
7956 ac_prog=ld
7957 if test "$GCC" = yes; then
7958 # Check if gcc -print-prog-name=ld gives a path.
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7960 $as_echo_n "checking for ld used by $CC... " >&6; }
7961 case $host in
7962 *-*-mingw*)
7963 # gcc leaves a trailing carriage return which upsets mingw
7964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7967 esac
7968 case $ac_prog in
7969 # Accept absolute paths.
7970 [\\/]* | ?:[\\/]*)
7971 re_direlt='/[^/][^/]*/\.\./'
7972 # Canonicalize the pathname of ld
7973 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7974 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7975 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7976 done
7977 test -z "$LD" && LD="$ac_prog"
7980 # If it fails, then pretend we aren't using GCC.
7981 ac_prog=ld
7984 # If it is relative, then search for the first ld in PATH.
7985 with_gnu_ld=unknown
7987 esac
7988 elif test "$with_gnu_ld" = yes; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7990 $as_echo_n "checking for GNU ld... " >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7993 $as_echo_n "checking for non-GNU ld... " >&6; }
7995 if ${lt_cv_path_LD+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -z "$LD"; then
7999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8000 for ac_dir in $PATH; do
8001 IFS="$lt_save_ifs"
8002 test -z "$ac_dir" && ac_dir=.
8003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8004 lt_cv_path_LD="$ac_dir/$ac_prog"
8005 # Check to see if the program is GNU ld. I'd rather use --version,
8006 # but apparently some variants of GNU ld only accept -v.
8007 # Break only if it was the GNU/non-GNU ld that we prefer.
8008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8009 *GNU* | *'with BFD'*)
8010 test "$with_gnu_ld" != no && break
8013 test "$with_gnu_ld" != yes && break
8015 esac
8017 done
8018 IFS="$lt_save_ifs"
8019 else
8020 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8024 LD="$lt_cv_path_LD"
8025 if test -n "$LD"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8027 $as_echo "$LD" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8032 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8034 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8035 if ${lt_cv_prog_gnu_ld+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8039 case `$LD -v 2>&1 </dev/null` in
8040 *GNU* | *'with BFD'*)
8041 lt_cv_prog_gnu_ld=yes
8044 lt_cv_prog_gnu_ld=no
8046 esac
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8049 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8050 with_gnu_ld=$lt_cv_prog_gnu_ld
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8061 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8062 if ${lt_cv_path_NM+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$NM"; then
8066 # Let the user override the test.
8067 lt_cv_path_NM="$NM"
8068 else
8069 lt_nm_to_check="${ac_tool_prefix}nm"
8070 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8071 lt_nm_to_check="$lt_nm_to_check nm"
8073 for lt_tmp_nm in $lt_nm_to_check; do
8074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8076 IFS="$lt_save_ifs"
8077 test -z "$ac_dir" && ac_dir=.
8078 tmp_nm="$ac_dir/$lt_tmp_nm"
8079 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8080 # Check to see if the nm accepts a BSD-compat flag.
8081 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8082 # nm: unknown option "B" ignored
8083 # Tru64's nm complains that /dev/null is an invalid object file
8084 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8085 */dev/null* | *'Invalid file or object type'*)
8086 lt_cv_path_NM="$tmp_nm -B"
8087 break
8090 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8091 */dev/null*)
8092 lt_cv_path_NM="$tmp_nm -p"
8093 break
8096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8097 continue # so that we can try to find one that supports BSD flags
8099 esac
8101 esac
8103 done
8104 IFS="$lt_save_ifs"
8105 done
8106 : ${lt_cv_path_NM=no}
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8110 $as_echo "$lt_cv_path_NM" >&6; }
8111 if test "$lt_cv_path_NM" != "no"; then
8112 NM="$lt_cv_path_NM"
8113 else
8114 # Didn't find any BSD compatible name lister, look for dumpbin.
8115 if test -n "$DUMPBIN"; then :
8116 # Let the user override the test.
8117 else
8118 if test -n "$ac_tool_prefix"; then
8119 for ac_prog in dumpbin "link -dump"
8121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_DUMPBIN+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$DUMPBIN"; then
8129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 DUMPBIN=$ac_cv_prog_DUMPBIN
8149 if test -n "$DUMPBIN"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8151 $as_echo "$DUMPBIN" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 test -n "$DUMPBIN" && break
8159 done
8161 if test -z "$DUMPBIN"; then
8162 ac_ct_DUMPBIN=$DUMPBIN
8163 for ac_prog in dumpbin "link -dump"
8165 # Extract the first word of "$ac_prog", so it can be a program name with args.
8166 set dummy $ac_prog; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$ac_ct_DUMPBIN"; then
8173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8192 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8193 if test -n "$ac_ct_DUMPBIN"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8195 $as_echo "$ac_ct_DUMPBIN" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8202 test -n "$ac_ct_DUMPBIN" && break
8203 done
8205 if test "x$ac_ct_DUMPBIN" = x; then
8206 DUMPBIN=":"
8207 else
8208 case $cross_compiling:$ac_tool_warned in
8209 yes:)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8212 ac_tool_warned=yes ;;
8213 esac
8214 DUMPBIN=$ac_ct_DUMPBIN
8218 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8219 *COFF*)
8220 DUMPBIN="$DUMPBIN -symbols"
8223 DUMPBIN=:
8225 esac
8228 if test "$DUMPBIN" != ":"; then
8229 NM="$DUMPBIN"
8232 test -z "$NM" && NM=nm
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8240 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8241 if ${lt_cv_nm_interface+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 lt_cv_nm_interface="BSD nm"
8245 echo "int some_variable = 0;" > conftest.$ac_ext
8246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8247 (eval "$ac_compile" 2>conftest.err)
8248 cat conftest.err >&5
8249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8251 cat conftest.err >&5
8252 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8253 cat conftest.out >&5
8254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8255 lt_cv_nm_interface="MS dumpbin"
8257 rm -f conftest*
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8260 $as_echo "$lt_cv_nm_interface" >&6; }
8262 # find the maximum length of command line arguments
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8264 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8265 if ${lt_cv_sys_max_cmd_len+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8269 teststring="ABCD"
8271 case $build_os in
8272 msdosdjgpp*)
8273 # On DJGPP, this test can blow up pretty badly due to problems in libc
8274 # (any single argument exceeding 2000 bytes causes a buffer overrun
8275 # during glob expansion). Even if it were fixed, the result of this
8276 # check would be larger than it should be.
8277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8280 gnu*)
8281 # Under GNU Hurd, this test is not required because there is
8282 # no limit to the length of command line arguments.
8283 # Libtool will interpret -1 as no limit whatsoever
8284 lt_cv_sys_max_cmd_len=-1;
8287 cygwin* | mingw* | cegcc*)
8288 # On Win9x/ME, this test blows up -- it succeeds, but takes
8289 # about 5 minutes as the teststring grows exponentially.
8290 # Worse, since 9x/ME are not pre-emptively multitasking,
8291 # you end up with a "frozen" computer, even though with patience
8292 # the test eventually succeeds (with a max line length of 256k).
8293 # Instead, let's just punt: use the minimum linelength reported by
8294 # all of the supported platforms: 8192 (on NT/2K/XP).
8295 lt_cv_sys_max_cmd_len=8192;
8298 mint*)
8299 # On MiNT this can take a long time and run out of memory.
8300 lt_cv_sys_max_cmd_len=8192;
8303 amigaos*)
8304 # On AmigaOS with pdksh, this test takes hours, literally.
8305 # So we just punt and use a minimum line length of 8192.
8306 lt_cv_sys_max_cmd_len=8192;
8309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8310 # This has been around since 386BSD, at least. Likely further.
8311 if test -x /sbin/sysctl; then
8312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8313 elif test -x /usr/sbin/sysctl; then
8314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8315 else
8316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8318 # And add a safety zone
8319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8323 interix*)
8324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8325 lt_cv_sys_max_cmd_len=196608
8328 os2*)
8329 # The test takes a long time on OS/2.
8330 lt_cv_sys_max_cmd_len=8192
8333 osf*)
8334 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8335 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8336 # nice to cause kernel panics so lets avoid the loop below.
8337 # First set a reasonable default.
8338 lt_cv_sys_max_cmd_len=16384
8340 if test -x /sbin/sysconfig; then
8341 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8342 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8343 esac
8346 sco3.2v5*)
8347 lt_cv_sys_max_cmd_len=102400
8349 sysv5* | sco5v6* | sysv4.2uw2*)
8350 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8351 if test -n "$kargmax"; then
8352 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8353 else
8354 lt_cv_sys_max_cmd_len=32768
8358 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8359 if test -n "$lt_cv_sys_max_cmd_len"; then
8360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8362 else
8363 # Make teststring a little bigger before we do anything with it.
8364 # a 1K string should be a reasonable start.
8365 for i in 1 2 3 4 5 6 7 8 ; do
8366 teststring=$teststring$teststring
8367 done
8368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8369 # If test is not a shell built-in, we'll probably end up computing a
8370 # maximum length that is only half of the actual maximum length, but
8371 # we can't tell.
8372 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8373 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8374 test $i != 17 # 1/2 MB should be enough
8376 i=`expr $i + 1`
8377 teststring=$teststring$teststring
8378 done
8379 # Only check the string length outside the loop.
8380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8381 teststring=
8382 # Add a significant safety factor because C++ compilers can tack on
8383 # massive amounts of additional arguments before passing them to the
8384 # linker. It appears as though 1/2 is a usable value.
8385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8388 esac
8392 if test -n $lt_cv_sys_max_cmd_len ; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8394 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8397 $as_echo "none" >&6; }
8399 max_cmd_len=$lt_cv_sys_max_cmd_len
8406 : ${CP="cp -f"}
8407 : ${MV="mv -f"}
8408 : ${RM="rm -f"}
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8411 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8412 # Try some XSI features
8413 xsi_shell=no
8414 ( _lt_dummy="a/b/c"
8415 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8416 = c,a/b,b/c, \
8417 && eval 'test $(( 1 + 1 )) -eq 2 \
8418 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8419 && xsi_shell=yes
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8421 $as_echo "$xsi_shell" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8425 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8426 lt_shell_append=no
8427 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8428 >/dev/null 2>&1 \
8429 && lt_shell_append=yes
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8431 $as_echo "$lt_shell_append" >&6; }
8434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8435 lt_unset=unset
8436 else
8437 lt_unset=false
8444 # test EBCDIC or ASCII
8445 case `echo X|tr X '\101'` in
8446 A) # ASCII based system
8447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8448 lt_SP2NL='tr \040 \012'
8449 lt_NL2SP='tr \015\012 \040\040'
8451 *) # EBCDIC based system
8452 lt_SP2NL='tr \100 \n'
8453 lt_NL2SP='tr \r\n \100\100'
8455 esac
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8466 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8467 if ${lt_cv_to_host_file_cmd+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 case $host in
8471 *-*-mingw* )
8472 case $build in
8473 *-*-mingw* ) # actually msys
8474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8476 *-*-cygwin* )
8477 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8479 * ) # otherwise, assume *nix
8480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8482 esac
8484 *-*-cygwin* )
8485 case $build in
8486 *-*-mingw* ) # actually msys
8487 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8489 *-*-cygwin* )
8490 lt_cv_to_host_file_cmd=func_convert_file_noop
8492 * ) # otherwise, assume *nix
8493 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8495 esac
8497 * ) # unhandled hosts (and "normal" native builds)
8498 lt_cv_to_host_file_cmd=func_convert_file_noop
8500 esac
8504 to_host_file_cmd=$lt_cv_to_host_file_cmd
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8506 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8513 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8514 if ${lt_cv_to_tool_file_cmd+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 #assume ordinary cross tools, or native build.
8518 lt_cv_to_tool_file_cmd=func_convert_file_noop
8519 case $host in
8520 *-*-mingw* )
8521 case $build in
8522 *-*-mingw* ) # actually msys
8523 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8525 esac
8527 esac
8531 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8533 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8540 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8541 if ${lt_cv_ld_reload_flag+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_ld_reload_flag='-r'
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8547 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8548 reload_flag=$lt_cv_ld_reload_flag
8549 case $reload_flag in
8550 "" | " "*) ;;
8551 *) reload_flag=" $reload_flag" ;;
8552 esac
8553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8554 case $host_os in
8555 cygwin* | mingw* | pw32* | cegcc*)
8556 if test "$GCC" != yes; then
8557 reload_cmds=false
8560 darwin*)
8561 if test "$GCC" = yes; then
8562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8563 else
8564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8567 esac
8577 if test -n "$ac_tool_prefix"; then
8578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if ${ac_cv_prog_OBJDUMP+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 if test -n "$OBJDUMP"; then
8586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8601 IFS=$as_save_IFS
8605 OBJDUMP=$ac_cv_prog_OBJDUMP
8606 if test -n "$OBJDUMP"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8608 $as_echo "$OBJDUMP" >&6; }
8609 else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8616 if test -z "$ac_cv_prog_OBJDUMP"; then
8617 ac_ct_OBJDUMP=$OBJDUMP
8618 # Extract the first word of "objdump", so it can be a program name with args.
8619 set dummy objdump; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 if test -n "$ac_ct_OBJDUMP"; then
8626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8639 done
8640 done
8641 IFS=$as_save_IFS
8645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8646 if test -n "$ac_ct_OBJDUMP"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8648 $as_echo "$ac_ct_OBJDUMP" >&6; }
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8654 if test "x$ac_ct_OBJDUMP" = x; then
8655 OBJDUMP="false"
8656 else
8657 case $cross_compiling:$ac_tool_warned in
8658 yes:)
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8662 esac
8663 OBJDUMP=$ac_ct_OBJDUMP
8665 else
8666 OBJDUMP="$ac_cv_prog_OBJDUMP"
8669 test -z "$OBJDUMP" && OBJDUMP=objdump
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8680 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8681 if ${lt_cv_deplibs_check_method+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_file_magic_cmd='$MAGIC_CMD'
8685 lt_cv_file_magic_test_file=
8686 lt_cv_deplibs_check_method='unknown'
8687 # Need to set the preceding variable on all platforms that support
8688 # interlibrary dependencies.
8689 # 'none' -- dependencies not supported.
8690 # `unknown' -- same as none, but documents that we really don't know.
8691 # 'pass_all' -- all dependencies passed with no checks.
8692 # 'test_compile' -- check by making test program.
8693 # 'file_magic [[regex]]' -- check by looking for files in library path
8694 # which responds to the $file_magic_cmd with a given extended regex.
8695 # If you have `file' or equivalent on your system and you're not sure
8696 # whether `pass_all' will *always* work, you probably want this one.
8698 case $host_os in
8699 aix[4-9]*)
8700 lt_cv_deplibs_check_method=pass_all
8703 beos*)
8704 lt_cv_deplibs_check_method=pass_all
8707 bsdi[45]*)
8708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8709 lt_cv_file_magic_cmd='/usr/bin/file -L'
8710 lt_cv_file_magic_test_file=/shlib/libc.so
8713 cygwin*)
8714 # func_win32_libid is a shell function defined in ltmain.sh
8715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8716 lt_cv_file_magic_cmd='func_win32_libid'
8719 mingw* | pw32*)
8720 # Base MSYS/MinGW do not provide the 'file' command needed by
8721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8722 # unless we find 'file', for example because we are cross-compiling.
8723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8726 lt_cv_file_magic_cmd='func_win32_libid'
8727 else
8728 # Keep this pattern in sync with the one in func_win32_libid.
8729 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8730 lt_cv_file_magic_cmd='$OBJDUMP -f'
8734 cegcc*)
8735 # use the weaker test based on 'objdump'. See mingw*.
8736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8737 lt_cv_file_magic_cmd='$OBJDUMP -f'
8740 darwin* | rhapsody*)
8741 lt_cv_deplibs_check_method=pass_all
8744 freebsd* | dragonfly*)
8745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8746 case $host_cpu in
8747 i*86 )
8748 # Not sure whether the presence of OpenBSD here was a mistake.
8749 # Let's accept both of them until this is cleared up.
8750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8751 lt_cv_file_magic_cmd=/usr/bin/file
8752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8754 esac
8755 else
8756 lt_cv_deplibs_check_method=pass_all
8760 gnu*)
8761 lt_cv_deplibs_check_method=pass_all
8764 haiku*)
8765 lt_cv_deplibs_check_method=pass_all
8768 hpux10.20* | hpux11*)
8769 lt_cv_file_magic_cmd=/usr/bin/file
8770 case $host_cpu in
8771 ia64*)
8772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8773 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8775 hppa*64*)
8776 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]'
8777 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8781 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8783 esac
8786 interix[3-9]*)
8787 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8791 irix5* | irix6* | nonstopux*)
8792 case $LD in
8793 *-32|*"-32 ") libmagic=32-bit;;
8794 *-n32|*"-n32 ") libmagic=N32;;
8795 *-64|*"-64 ") libmagic=64-bit;;
8796 *) libmagic=never-match;;
8797 esac
8798 lt_cv_deplibs_check_method=pass_all
8801 # This must be glibc/ELF.
8802 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8803 lt_cv_deplibs_check_method=pass_all
8806 netbsd* | netbsdelf*-gnu)
8807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8809 else
8810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8814 newos6*)
8815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8816 lt_cv_file_magic_cmd=/usr/bin/file
8817 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8820 *nto* | *qnx*)
8821 lt_cv_deplibs_check_method=pass_all
8824 openbsd*)
8825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8827 else
8828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8832 osf3* | osf4* | osf5*)
8833 lt_cv_deplibs_check_method=pass_all
8836 rdos*)
8837 lt_cv_deplibs_check_method=pass_all
8840 solaris*)
8841 lt_cv_deplibs_check_method=pass_all
8844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8845 lt_cv_deplibs_check_method=pass_all
8848 sysv4 | sysv4.3*)
8849 case $host_vendor in
8850 motorola)
8851 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]'
8852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8854 ncr)
8855 lt_cv_deplibs_check_method=pass_all
8857 sequent)
8858 lt_cv_file_magic_cmd='/bin/file'
8859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8861 sni)
8862 lt_cv_file_magic_cmd='/bin/file'
8863 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8864 lt_cv_file_magic_test_file=/lib/libc.so
8866 siemens)
8867 lt_cv_deplibs_check_method=pass_all
8870 lt_cv_deplibs_check_method=pass_all
8872 esac
8875 tpf*)
8876 lt_cv_deplibs_check_method=pass_all
8878 esac
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8882 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8884 file_magic_glob=
8885 want_nocaseglob=no
8886 if test "$build" = "$host"; then
8887 case $host_os in
8888 mingw* | pw32*)
8889 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8890 want_nocaseglob=yes
8891 else
8892 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8895 esac
8898 file_magic_cmd=$lt_cv_file_magic_cmd
8899 deplibs_check_method=$lt_cv_deplibs_check_method
8900 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8923 if test -n "$ac_tool_prefix"; then
8924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8925 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_prog_DLLTOOL+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 if test -n "$DLLTOOL"; then
8932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8945 done
8946 done
8947 IFS=$as_save_IFS
8951 DLLTOOL=$ac_cv_prog_DLLTOOL
8952 if test -n "$DLLTOOL"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8954 $as_echo "$DLLTOOL" >&6; }
8955 else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8962 if test -z "$ac_cv_prog_DLLTOOL"; then
8963 ac_ct_DLLTOOL=$DLLTOOL
8964 # Extract the first word of "dlltool", so it can be a program name with args.
8965 set dummy dlltool; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 if test -n "$ac_ct_DLLTOOL"; then
8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8985 done
8986 done
8987 IFS=$as_save_IFS
8991 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8992 if test -n "$ac_ct_DLLTOOL"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8994 $as_echo "$ac_ct_DLLTOOL" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9000 if test "x$ac_ct_DLLTOOL" = x; then
9001 DLLTOOL="false"
9002 else
9003 case $cross_compiling:$ac_tool_warned in
9004 yes:)
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9007 ac_tool_warned=yes ;;
9008 esac
9009 DLLTOOL=$ac_ct_DLLTOOL
9011 else
9012 DLLTOOL="$ac_cv_prog_DLLTOOL"
9015 test -z "$DLLTOOL" && DLLTOOL=dlltool
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9027 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9028 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 lt_cv_sharedlib_from_linklib_cmd='unknown'
9033 case $host_os in
9034 cygwin* | mingw* | pw32* | cegcc*)
9035 # two different shell functions defined in ltmain.sh
9036 # decide which to use based on capabilities of $DLLTOOL
9037 case `$DLLTOOL --help 2>&1` in
9038 *--identify-strict*)
9039 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9042 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9044 esac
9047 # fallback: assume linklib IS sharedlib
9048 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9050 esac
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9054 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9055 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9056 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9064 if test -n "$ac_tool_prefix"; then
9065 for ac_prog in ar
9067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_AR+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$AR"; then
9075 ac_cv_prog_AR="$AR" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9094 AR=$ac_cv_prog_AR
9095 if test -n "$AR"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9097 $as_echo "$AR" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9104 test -n "$AR" && break
9105 done
9107 if test -z "$AR"; then
9108 ac_ct_AR=$AR
9109 for ac_prog in ar
9111 # Extract the first word of "$ac_prog", so it can be a program name with args.
9112 set dummy $ac_prog; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$ac_ct_AR"; then
9119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_ac_ct_AR="$ac_prog"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9139 if test -n "$ac_ct_AR"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9141 $as_echo "$ac_ct_AR" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9148 test -n "$ac_ct_AR" && break
9149 done
9151 if test "x$ac_ct_AR" = x; then
9152 AR="false"
9153 else
9154 case $cross_compiling:$ac_tool_warned in
9155 yes:)
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9158 ac_tool_warned=yes ;;
9159 esac
9160 AR=$ac_ct_AR
9164 : ${AR=ar}
9165 : ${AR_FLAGS=cru}
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9178 $as_echo_n "checking for archiver @FILE support... " >&6; }
9179 if ${lt_cv_ar_at_file+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 lt_cv_ar_at_file=no
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9187 main ()
9191 return 0;
9193 _ACEOF
9194 if ac_fn_c_try_compile "$LINENO"; then :
9195 echo conftest.$ac_objext > conftest.lst
9196 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9198 (eval $lt_ar_try) 2>&5
9199 ac_status=$?
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; }
9202 if test "$ac_status" -eq 0; then
9203 # Ensure the archiver fails upon bogus file names.
9204 rm -f conftest.$ac_objext libconftest.a
9205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9206 (eval $lt_ar_try) 2>&5
9207 ac_status=$?
9208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9209 test $ac_status = 0; }
9210 if test "$ac_status" -ne 0; then
9211 lt_cv_ar_at_file=@
9214 rm -f conftest.* libconftest.a
9217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9221 $as_echo "$lt_cv_ar_at_file" >&6; }
9223 if test "x$lt_cv_ar_at_file" = xno; then
9224 archiver_list_spec=
9225 else
9226 archiver_list_spec=$lt_cv_ar_at_file
9235 if test -n "$ac_tool_prefix"; then
9236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9237 set dummy ${ac_tool_prefix}strip; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_STRIP+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 if test -n "$STRIP"; then
9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9257 done
9258 done
9259 IFS=$as_save_IFS
9263 STRIP=$ac_cv_prog_STRIP
9264 if test -n "$STRIP"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9266 $as_echo "$STRIP" >&6; }
9267 else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9274 if test -z "$ac_cv_prog_STRIP"; then
9275 ac_ct_STRIP=$STRIP
9276 # Extract the first word of "strip", so it can be a program name with args.
9277 set dummy strip; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 if test -n "$ac_ct_STRIP"; then
9284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293 ac_cv_prog_ac_ct_STRIP="strip"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9297 done
9298 done
9299 IFS=$as_save_IFS
9303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9304 if test -n "$ac_ct_STRIP"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9306 $as_echo "$ac_ct_STRIP" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9312 if test "x$ac_ct_STRIP" = x; then
9313 STRIP=":"
9314 else
9315 case $cross_compiling:$ac_tool_warned in
9316 yes:)
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9319 ac_tool_warned=yes ;;
9320 esac
9321 STRIP=$ac_ct_STRIP
9323 else
9324 STRIP="$ac_cv_prog_STRIP"
9327 test -z "$STRIP" && STRIP=:
9334 if test -n "$ac_tool_prefix"; then
9335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338 $as_echo_n "checking for $ac_word... " >&6; }
9339 if ${ac_cv_prog_RANLIB+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 if test -n "$RANLIB"; then
9343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9344 else
9345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 for as_dir in $PATH
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
9350 for ac_exec_ext in '' $ac_executable_extensions; do
9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 break 2
9356 done
9357 done
9358 IFS=$as_save_IFS
9362 RANLIB=$ac_cv_prog_RANLIB
9363 if test -n "$RANLIB"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9365 $as_echo "$RANLIB" >&6; }
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9373 if test -z "$ac_cv_prog_RANLIB"; then
9374 ac_ct_RANLIB=$RANLIB
9375 # Extract the first word of "ranlib", so it can be a program name with args.
9376 set dummy ranlib; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 if test -n "$ac_ct_RANLIB"; then
9383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392 ac_cv_prog_ac_ct_RANLIB="ranlib"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9396 done
9397 done
9398 IFS=$as_save_IFS
9402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9403 if test -n "$ac_ct_RANLIB"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9405 $as_echo "$ac_ct_RANLIB" >&6; }
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9411 if test "x$ac_ct_RANLIB" = x; then
9412 RANLIB=":"
9413 else
9414 case $cross_compiling:$ac_tool_warned in
9415 yes:)
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9418 ac_tool_warned=yes ;;
9419 esac
9420 RANLIB=$ac_ct_RANLIB
9422 else
9423 RANLIB="$ac_cv_prog_RANLIB"
9426 test -z "$RANLIB" && RANLIB=:
9433 # Determine commands to create old-style static archives.
9434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9435 old_postinstall_cmds='chmod 644 $oldlib'
9436 old_postuninstall_cmds=
9438 if test -n "$RANLIB"; then
9439 case $host_os in
9440 openbsd*)
9441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9446 esac
9447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9450 case $host_os in
9451 darwin*)
9452 lock_old_archive_extraction=yes ;;
9454 lock_old_archive_extraction=no ;;
9455 esac
9495 # If no C compiler was specified, use CC.
9496 LTCC=${LTCC-"$CC"}
9498 # If no C compiler flags were specified, use CFLAGS.
9499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9501 # Allow CC to be a program name with arguments.
9502 compiler=$CC
9505 # Check for command to grab the raw symbol name followed by C symbol from nm.
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9507 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9508 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9512 # These are sane defaults that work on at least a few old systems.
9513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9515 # Character class describing NM global symbol codes.
9516 symcode='[BCDEGRST]'
9518 # Regexp to match symbols that can be accessed directly from C.
9519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9521 # Define system-specific variables.
9522 case $host_os in
9523 aix*)
9524 symcode='[BCDT]'
9526 cygwin* | mingw* | pw32* | cegcc*)
9527 symcode='[ABCDGISTW]'
9529 hpux*)
9530 if test "$host_cpu" = ia64; then
9531 symcode='[ABCDEGRST]'
9534 irix* | nonstopux*)
9535 symcode='[BCDEGRST]'
9537 osf*)
9538 symcode='[BCDEGQRST]'
9540 solaris*)
9541 symcode='[BDRT]'
9543 sco3.2v5*)
9544 symcode='[DT]'
9546 sysv4.2uw2*)
9547 symcode='[DT]'
9549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9550 symcode='[ABDT]'
9552 sysv4)
9553 symcode='[DFNSTU]'
9555 esac
9557 # If we're using GNU nm, then use its standard symbol codes.
9558 case `$NM -V 2>&1` in
9559 *GNU* | *'with BFD'*)
9560 symcode='[ABCDGIRSTW]' ;;
9561 esac
9563 # Transform an extracted symbol line into a proper C declaration.
9564 # Some systems (esp. on ia64) link data and code symbols differently,
9565 # so use this general approach.
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9568 # Transform an extracted symbol line into symbol name and symbol address
9569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9572 # Handle CRLF in mingw tool chain
9573 opt_cr=
9574 case $build_os in
9575 mingw*)
9576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9578 esac
9580 # Try without a prefix underscore, then with it.
9581 for ac_symprfx in "" "_"; do
9583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9584 symxfrm="\\1 $ac_symprfx\\2 \\2"
9586 # Write the raw and C identifiers.
9587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9588 # Fake it for dumpbin and say T for any non-static function
9589 # and D for any global variable.
9590 # Also find C++ and __fastcall symbols from MSVC++,
9591 # which start with @ or ?.
9592 lt_cv_sys_global_symbol_pipe="$AWK '"\
9593 " {last_section=section; section=\$ 3};"\
9594 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9595 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9596 " \$ 0!~/External *\|/{next};"\
9597 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9598 " {if(hide[section]) next};"\
9599 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9600 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9601 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9602 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9603 " ' prfx=^$ac_symprfx"
9604 else
9605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9607 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9609 # Check to see that the pipe works correctly.
9610 pipe_works=no
9612 rm -f conftest*
9613 cat > conftest.$ac_ext <<_LT_EOF
9614 #ifdef __cplusplus
9615 extern "C" {
9616 #endif
9617 char nm_test_var;
9618 void nm_test_func(void);
9619 void nm_test_func(void){}
9620 #ifdef __cplusplus
9622 #endif
9623 int main(){nm_test_var='a';nm_test_func();return(0);}
9624 _LT_EOF
9626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9627 (eval $ac_compile) 2>&5
9628 ac_status=$?
9629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9630 test $ac_status = 0; }; then
9631 # Now try to grab the symbols.
9632 nlist=conftest.nm
9633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9634 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9635 ac_status=$?
9636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9637 test $ac_status = 0; } && test -s "$nlist"; then
9638 # Try sorting and uniquifying the output.
9639 if sort "$nlist" | uniq > "$nlist"T; then
9640 mv -f "$nlist"T "$nlist"
9641 else
9642 rm -f "$nlist"T
9645 # Make sure that we snagged all the symbols we need.
9646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9648 cat <<_LT_EOF > conftest.$ac_ext
9649 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9650 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9651 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9652 relocations are performed -- see ld's documentation on pseudo-relocs. */
9653 # define LT_DLSYM_CONST
9654 #elif defined(__osf__)
9655 /* This system does not cope well with relocations in const data. */
9656 # define LT_DLSYM_CONST
9657 #else
9658 # define LT_DLSYM_CONST const
9659 #endif
9661 #ifdef __cplusplus
9662 extern "C" {
9663 #endif
9665 _LT_EOF
9666 # Now generate the symbol file.
9667 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9669 cat <<_LT_EOF >> conftest.$ac_ext
9671 /* The mapping between symbol names and symbols. */
9672 LT_DLSYM_CONST struct {
9673 const char *name;
9674 void *address;
9676 lt__PROGRAM__LTX_preloaded_symbols[] =
9678 { "@PROGRAM@", (void *) 0 },
9679 _LT_EOF
9680 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9681 cat <<\_LT_EOF >> conftest.$ac_ext
9682 {0, (void *) 0}
9685 /* This works around a problem in FreeBSD linker */
9686 #ifdef FREEBSD_WORKAROUND
9687 static const void *lt_preloaded_setup() {
9688 return lt__PROGRAM__LTX_preloaded_symbols;
9690 #endif
9692 #ifdef __cplusplus
9694 #endif
9695 _LT_EOF
9696 # Now try linking the two files.
9697 mv conftest.$ac_objext conftstm.$ac_objext
9698 lt_globsym_save_LIBS=$LIBS
9699 lt_globsym_save_CFLAGS=$CFLAGS
9700 LIBS="conftstm.$ac_objext"
9701 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9703 (eval $ac_link) 2>&5
9704 ac_status=$?
9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9707 pipe_works=yes
9709 LIBS=$lt_globsym_save_LIBS
9710 CFLAGS=$lt_globsym_save_CFLAGS
9711 else
9712 echo "cannot find nm_test_func in $nlist" >&5
9714 else
9715 echo "cannot find nm_test_var in $nlist" >&5
9717 else
9718 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9720 else
9721 echo "$progname: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 rm -rf conftest* conftst*
9726 # Do not use the global_symbol_pipe unless it works.
9727 if test "$pipe_works" = yes; then
9728 break
9729 else
9730 lt_cv_sys_global_symbol_pipe=
9732 done
9736 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9737 lt_cv_sys_global_symbol_to_cdecl=
9739 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9741 $as_echo "failed" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9744 $as_echo "ok" >&6; }
9747 # Response file support.
9748 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9749 nm_file_list_spec='@'
9750 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9751 nm_file_list_spec='@'
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9781 $as_echo_n "checking for sysroot... " >&6; }
9783 # Check whether --with-sysroot was given.
9784 if test "${with_sysroot+set}" = set; then :
9785 withval=$with_sysroot;
9786 else
9787 with_sysroot=no
9791 lt_sysroot=
9792 case ${with_sysroot} in #(
9793 yes)
9794 if test "$GCC" = yes; then
9795 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9797 ;; #(
9799 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9800 ;; #(
9801 no|'')
9802 ;; #(
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9805 $as_echo "${with_sysroot}" >&6; }
9806 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9808 esac
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9811 $as_echo "${lt_sysroot:-no}" >&6; }
9817 # Check whether --enable-libtool-lock was given.
9818 if test "${enable_libtool_lock+set}" = set; then :
9819 enableval=$enable_libtool_lock;
9822 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9824 # Some flags need to be propagated to the compiler or linker for good
9825 # libtool support.
9826 case $host in
9827 ia64-*-hpux*)
9828 # Find out which ABI we are using.
9829 echo 'int i;' > conftest.$ac_ext
9830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9831 (eval $ac_compile) 2>&5
9832 ac_status=$?
9833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9834 test $ac_status = 0; }; then
9835 case `/usr/bin/file conftest.$ac_objext` in
9836 *ELF-32*)
9837 HPUX_IA64_MODE="32"
9839 *ELF-64*)
9840 HPUX_IA64_MODE="64"
9842 esac
9844 rm -rf conftest*
9846 *-*-irix6*)
9847 # Find out which ABI we are using.
9848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9850 (eval $ac_compile) 2>&5
9851 ac_status=$?
9852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9853 test $ac_status = 0; }; then
9854 if test "$lt_cv_prog_gnu_ld" = yes; then
9855 case `/usr/bin/file conftest.$ac_objext` in
9856 *32-bit*)
9857 LD="${LD-ld} -melf32bsmip"
9859 *N32*)
9860 LD="${LD-ld} -melf32bmipn32"
9862 *64-bit*)
9863 LD="${LD-ld} -melf64bmip"
9865 esac
9866 else
9867 case `/usr/bin/file conftest.$ac_objext` in
9868 *32-bit*)
9869 LD="${LD-ld} -32"
9871 *N32*)
9872 LD="${LD-ld} -n32"
9874 *64-bit*)
9875 LD="${LD-ld} -64"
9877 esac
9880 rm -rf conftest*
9883 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9884 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9885 # Find out which ABI we are using.
9886 echo 'int i;' > conftest.$ac_ext
9887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9888 (eval $ac_compile) 2>&5
9889 ac_status=$?
9890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891 test $ac_status = 0; }; then
9892 case `/usr/bin/file conftest.o` in
9893 *32-bit*)
9894 case $host in
9895 x86_64-*kfreebsd*-gnu)
9896 LD="${LD-ld} -m elf_i386_fbsd"
9898 x86_64-*linux*)
9899 LD="${LD-ld} -m elf_i386"
9901 ppc64-*linux*|powerpc64-*linux*)
9902 LD="${LD-ld} -m elf32ppclinux"
9904 s390x-*linux*)
9905 LD="${LD-ld} -m elf_s390"
9907 sparc64-*linux*)
9908 LD="${LD-ld} -m elf32_sparc"
9910 esac
9912 *64-bit*)
9913 case $host in
9914 x86_64-*kfreebsd*-gnu)
9915 LD="${LD-ld} -m elf_x86_64_fbsd"
9917 x86_64-*linux*)
9918 LD="${LD-ld} -m elf_x86_64"
9920 ppc*-*linux*|powerpc*-*linux*)
9921 LD="${LD-ld} -m elf64ppc"
9923 s390*-*linux*|s390*-*tpf*)
9924 LD="${LD-ld} -m elf64_s390"
9926 sparc*-*linux*)
9927 LD="${LD-ld} -m elf64_sparc"
9929 esac
9931 esac
9933 rm -rf conftest*
9936 *-*-sco3.2v5*)
9937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9938 SAVE_CFLAGS="$CFLAGS"
9939 CFLAGS="$CFLAGS -belf"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9942 if ${lt_cv_cc_needs_belf+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 ac_ext=c
9946 ac_cpp='$CPP $CPPFLAGS'
9947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9955 main ()
9959 return 0;
9961 _ACEOF
9962 if ac_fn_c_try_link "$LINENO"; then :
9963 lt_cv_cc_needs_belf=yes
9964 else
9965 lt_cv_cc_needs_belf=no
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 ac_ext=c
9970 ac_cpp='$CPP $CPPFLAGS'
9971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9977 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9980 CFLAGS="$SAVE_CFLAGS"
9983 *-*solaris*)
9984 # Find out which ABI we are using.
9985 echo 'int i;' > conftest.$ac_ext
9986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9987 (eval $ac_compile) 2>&5
9988 ac_status=$?
9989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990 test $ac_status = 0; }; then
9991 case `/usr/bin/file conftest.o` in
9992 *64-bit*)
9993 case $lt_cv_prog_gnu_ld in
9994 yes*)
9995 case $host in
9996 i?86-*-solaris*)
9997 LD="${LD-ld} -m elf_x86_64"
9999 sparc*-*-solaris*)
10000 LD="${LD-ld} -m elf64_sparc"
10002 esac
10003 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10004 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10005 LD="${LD-ld}_sol2"
10009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10010 LD="${LD-ld} -64"
10013 esac
10015 esac
10017 rm -rf conftest*
10019 esac
10021 need_locks="$enable_libtool_lock"
10023 if test -n "$ac_tool_prefix"; then
10024 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10025 set dummy ${ac_tool_prefix}mt; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 if test -n "$MANIFEST_TOOL"; then
10032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10033 else
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10045 done
10046 done
10047 IFS=$as_save_IFS
10051 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10052 if test -n "$MANIFEST_TOOL"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10054 $as_echo "$MANIFEST_TOOL" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10064 # Extract the first word of "mt", so it can be a program name with args.
10065 set dummy mt; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 if test -n "$ac_ct_MANIFEST_TOOL"; then
10072 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10073 else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10085 done
10086 done
10087 IFS=$as_save_IFS
10091 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10092 if test -n "$ac_ct_MANIFEST_TOOL"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10094 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10100 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10101 MANIFEST_TOOL=":"
10102 else
10103 case $cross_compiling:$ac_tool_warned in
10104 yes:)
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10107 ac_tool_warned=yes ;;
10108 esac
10109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10111 else
10112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10115 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10117 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10118 if ${lt_cv_path_mainfest_tool+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 lt_cv_path_mainfest_tool=no
10122 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10123 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10124 cat conftest.err >&5
10125 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10126 lt_cv_path_mainfest_tool=yes
10128 rm -f conftest*
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10131 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10132 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10133 MANIFEST_TOOL=:
10141 case $host_os in
10142 rhapsody* | darwin*)
10143 if test -n "$ac_tool_prefix"; then
10144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10145 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 if test -n "$DSYMUTIL"; then
10152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10171 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10172 if test -n "$DSYMUTIL"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10174 $as_echo "$DSYMUTIL" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10182 if test -z "$ac_cv_prog_DSYMUTIL"; then
10183 ac_ct_DSYMUTIL=$DSYMUTIL
10184 # Extract the first word of "dsymutil", so it can be a program name with args.
10185 set dummy dsymutil; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 if test -n "$ac_ct_DSYMUTIL"; then
10192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10205 done
10206 done
10207 IFS=$as_save_IFS
10211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10212 if test -n "$ac_ct_DSYMUTIL"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10214 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10220 if test "x$ac_ct_DSYMUTIL" = x; then
10221 DSYMUTIL=":"
10222 else
10223 case $cross_compiling:$ac_tool_warned in
10224 yes:)
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10227 ac_tool_warned=yes ;;
10228 esac
10229 DSYMUTIL=$ac_ct_DSYMUTIL
10231 else
10232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10235 if test -n "$ac_tool_prefix"; then
10236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if ${ac_cv_prog_NMEDIT+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 if test -n "$NMEDIT"; then
10244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10257 done
10258 done
10259 IFS=$as_save_IFS
10263 NMEDIT=$ac_cv_prog_NMEDIT
10264 if test -n "$NMEDIT"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10266 $as_echo "$NMEDIT" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10274 if test -z "$ac_cv_prog_NMEDIT"; then
10275 ac_ct_NMEDIT=$NMEDIT
10276 # Extract the first word of "nmedit", so it can be a program name with args.
10277 set dummy nmedit; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 if test -n "$ac_ct_NMEDIT"; then
10284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10285 else
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10304 if test -n "$ac_ct_NMEDIT"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10306 $as_echo "$ac_ct_NMEDIT" >&6; }
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10312 if test "x$ac_ct_NMEDIT" = x; then
10313 NMEDIT=":"
10314 else
10315 case $cross_compiling:$ac_tool_warned in
10316 yes:)
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319 ac_tool_warned=yes ;;
10320 esac
10321 NMEDIT=$ac_ct_NMEDIT
10323 else
10324 NMEDIT="$ac_cv_prog_NMEDIT"
10327 if test -n "$ac_tool_prefix"; then
10328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10329 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_prog_LIPO+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 if test -n "$LIPO"; then
10336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10337 else
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347 break 2
10349 done
10350 done
10351 IFS=$as_save_IFS
10355 LIPO=$ac_cv_prog_LIPO
10356 if test -n "$LIPO"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10358 $as_echo "$LIPO" >&6; }
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10366 if test -z "$ac_cv_prog_LIPO"; then
10367 ac_ct_LIPO=$LIPO
10368 # Extract the first word of "lipo", so it can be a program name with args.
10369 set dummy lipo; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 if test -n "$ac_ct_LIPO"; then
10376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10377 else
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_prog_ac_ct_LIPO="lipo"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10395 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10396 if test -n "$ac_ct_LIPO"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10398 $as_echo "$ac_ct_LIPO" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10404 if test "x$ac_ct_LIPO" = x; then
10405 LIPO=":"
10406 else
10407 case $cross_compiling:$ac_tool_warned in
10408 yes:)
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10411 ac_tool_warned=yes ;;
10412 esac
10413 LIPO=$ac_ct_LIPO
10415 else
10416 LIPO="$ac_cv_prog_LIPO"
10419 if test -n "$ac_tool_prefix"; then
10420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10421 set dummy ${ac_tool_prefix}otool; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_prog_OTOOL+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test -n "$OTOOL"; then
10428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10441 done
10442 done
10443 IFS=$as_save_IFS
10447 OTOOL=$ac_cv_prog_OTOOL
10448 if test -n "$OTOOL"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10450 $as_echo "$OTOOL" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10458 if test -z "$ac_cv_prog_OTOOL"; then
10459 ac_ct_OTOOL=$OTOOL
10460 # Extract the first word of "otool", so it can be a program name with args.
10461 set dummy otool; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 if test -n "$ac_ct_OTOOL"; then
10468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10469 else
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10477 ac_cv_prog_ac_ct_OTOOL="otool"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10481 done
10482 done
10483 IFS=$as_save_IFS
10487 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10488 if test -n "$ac_ct_OTOOL"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10490 $as_echo "$ac_ct_OTOOL" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10496 if test "x$ac_ct_OTOOL" = x; then
10497 OTOOL=":"
10498 else
10499 case $cross_compiling:$ac_tool_warned in
10500 yes:)
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10503 ac_tool_warned=yes ;;
10504 esac
10505 OTOOL=$ac_ct_OTOOL
10507 else
10508 OTOOL="$ac_cv_prog_OTOOL"
10511 if test -n "$ac_tool_prefix"; then
10512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10513 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_prog_OTOOL64+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 if test -n "$OTOOL64"; then
10520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10521 else
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10533 done
10534 done
10535 IFS=$as_save_IFS
10539 OTOOL64=$ac_cv_prog_OTOOL64
10540 if test -n "$OTOOL64"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10542 $as_echo "$OTOOL64" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10550 if test -z "$ac_cv_prog_OTOOL64"; then
10551 ac_ct_OTOOL64=$OTOOL64
10552 # Extract the first word of "otool64", so it can be a program name with args.
10553 set dummy otool64; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 if test -n "$ac_ct_OTOOL64"; then
10560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10561 else
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 ac_cv_prog_ac_ct_OTOOL64="otool64"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10573 done
10574 done
10575 IFS=$as_save_IFS
10579 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10580 if test -n "$ac_ct_OTOOL64"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10582 $as_echo "$ac_ct_OTOOL64" >&6; }
10583 else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10588 if test "x$ac_ct_OTOOL64" = x; then
10589 OTOOL64=":"
10590 else
10591 case $cross_compiling:$ac_tool_warned in
10592 yes:)
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10595 ac_tool_warned=yes ;;
10596 esac
10597 OTOOL64=$ac_ct_OTOOL64
10599 else
10600 OTOOL64="$ac_cv_prog_OTOOL64"
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10630 $as_echo_n "checking for -single_module linker flag... " >&6; }
10631 if ${lt_cv_apple_cc_single_mod+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 lt_cv_apple_cc_single_mod=no
10635 if test -z "${LT_MULTI_MODULE}"; then
10636 # By default we will add the -single_module flag. You can override
10637 # by either setting the environment variable LT_MULTI_MODULE
10638 # non-empty at configure time, or by adding -multi_module to the
10639 # link flags.
10640 rm -rf libconftest.dylib*
10641 echo "int foo(void){return 1;}" > conftest.c
10642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10643 -dynamiclib -Wl,-single_module conftest.c" >&5
10644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10646 _lt_result=$?
10647 # If there is a non-empty error log, and "single_module"
10648 # appears in it, assume the flag caused a linker warning
10649 if test -s conftest.err && $GREP single_module conftest.err; then
10650 cat conftest.err >&5
10651 # Otherwise, if the output was created with a 0 exit code from
10652 # the compiler, it worked.
10653 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10654 lt_cv_apple_cc_single_mod=yes
10655 else
10656 cat conftest.err >&5
10658 rm -rf libconftest.dylib*
10659 rm -f conftest.*
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10663 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10666 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10667 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 lt_cv_ld_exported_symbols_list=no
10671 save_LDFLAGS=$LDFLAGS
10672 echo "_main" > conftest.sym
10673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10678 main ()
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 lt_cv_ld_exported_symbols_list=yes
10687 else
10688 lt_cv_ld_exported_symbols_list=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LDFLAGS="$save_LDFLAGS"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10696 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10699 $as_echo_n "checking for -force_load linker flag... " >&6; }
10700 if ${lt_cv_ld_force_load+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 lt_cv_ld_force_load=no
10704 cat > conftest.c << _LT_EOF
10705 int forced_loaded() { return 2;}
10706 _LT_EOF
10707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10709 echo "$AR cru libconftest.a conftest.o" >&5
10710 $AR cru libconftest.a conftest.o 2>&5
10711 echo "$RANLIB libconftest.a" >&5
10712 $RANLIB libconftest.a 2>&5
10713 cat > conftest.c << _LT_EOF
10714 int main() { return 0;}
10715 _LT_EOF
10716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10718 _lt_result=$?
10719 if test -s conftest.err && $GREP force_load conftest.err; then
10720 cat conftest.err >&5
10721 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10722 lt_cv_ld_force_load=yes
10723 else
10724 cat conftest.err >&5
10726 rm -f conftest.err libconftest.a conftest conftest.c
10727 rm -rf conftest.dSYM
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10731 $as_echo "$lt_cv_ld_force_load" >&6; }
10732 case $host_os in
10733 rhapsody* | darwin1.[012])
10734 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10735 darwin1.*)
10736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10737 darwin*) # darwin 5.x on
10738 # if running on 10.5 or later, the deployment target defaults
10739 # to the OS version, if on x86, and 10.4, the deployment
10740 # target defaults to 10.4. Don't you love it?
10741 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10742 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10743 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10744 10.[012]*)
10745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10746 10.*)
10747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10748 esac
10750 esac
10751 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10752 _lt_dar_single_mod='$single_module'
10754 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10755 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10756 else
10757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10759 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10760 _lt_dsymutil='~$DSYMUTIL $lib || :'
10761 else
10762 _lt_dsymutil=
10765 esac
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10768 $as_echo_n "checking for ANSI C header files... " >&6; }
10769 if ${ac_cv_header_stdc+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include <stdlib.h>
10775 #include <stdarg.h>
10776 #include <string.h>
10777 #include <float.h>
10780 main ()
10784 return 0;
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788 ac_cv_header_stdc=yes
10789 else
10790 ac_cv_header_stdc=no
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 if test $ac_cv_header_stdc = yes; then
10795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 #include <string.h>
10800 _ACEOF
10801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10802 $EGREP "memchr" >/dev/null 2>&1; then :
10804 else
10805 ac_cv_header_stdc=no
10807 rm -f conftest*
10811 if test $ac_cv_header_stdc = yes; then
10812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815 #include <stdlib.h>
10817 _ACEOF
10818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10819 $EGREP "free" >/dev/null 2>&1; then :
10821 else
10822 ac_cv_header_stdc=no
10824 rm -f conftest*
10828 if test $ac_cv_header_stdc = yes; then
10829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10830 if test "$cross_compiling" = yes; then :
10832 else
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 #include <ctype.h>
10836 #include <stdlib.h>
10837 #if ((' ' & 0x0FF) == 0x020)
10838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10840 #else
10841 # define ISLOWER(c) \
10842 (('a' <= (c) && (c) <= 'i') \
10843 || ('j' <= (c) && (c) <= 'r') \
10844 || ('s' <= (c) && (c) <= 'z'))
10845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10846 #endif
10848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10850 main ()
10852 int i;
10853 for (i = 0; i < 256; i++)
10854 if (XOR (islower (i), ISLOWER (i))
10855 || toupper (i) != TOUPPER (i))
10856 return 2;
10857 return 0;
10859 _ACEOF
10860 if ac_fn_c_try_run "$LINENO"; then :
10862 else
10863 ac_cv_header_stdc=no
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10866 conftest.$ac_objext conftest.beam conftest.$ac_ext
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10872 $as_echo "$ac_cv_header_stdc" >&6; }
10873 if test $ac_cv_header_stdc = yes; then
10875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10881 inttypes.h stdint.h unistd.h
10882 do :
10883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10887 cat >>confdefs.h <<_ACEOF
10888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10889 _ACEOF
10893 done
10896 for ac_header in dlfcn.h
10897 do :
10898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10900 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_DLFCN_H 1
10903 _ACEOF
10907 done
10912 func_stripname_cnf ()
10914 case ${2} in
10915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10917 esac
10918 } # func_stripname_cnf
10924 # Set options
10928 enable_dlopen=no
10931 enable_win32_dll=no
10934 # Check whether --enable-shared was given.
10935 if test "${enable_shared+set}" = set; then :
10936 enableval=$enable_shared; p=${PACKAGE-default}
10937 case $enableval in
10938 yes) enable_shared=yes ;;
10939 no) enable_shared=no ;;
10941 enable_shared=no
10942 # Look at the argument we got. We use all the common list separators.
10943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10944 for pkg in $enableval; do
10945 IFS="$lt_save_ifs"
10946 if test "X$pkg" = "X$p"; then
10947 enable_shared=yes
10949 done
10950 IFS="$lt_save_ifs"
10952 esac
10953 else
10954 enable_shared=yes
10965 # Check whether --enable-static was given.
10966 if test "${enable_static+set}" = set; then :
10967 enableval=$enable_static; p=${PACKAGE-default}
10968 case $enableval in
10969 yes) enable_static=yes ;;
10970 no) enable_static=no ;;
10972 enable_static=no
10973 # Look at the argument we got. We use all the common list separators.
10974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10975 for pkg in $enableval; do
10976 IFS="$lt_save_ifs"
10977 if test "X$pkg" = "X$p"; then
10978 enable_static=yes
10980 done
10981 IFS="$lt_save_ifs"
10983 esac
10984 else
10985 enable_static=yes
10997 # Check whether --with-pic was given.
10998 if test "${with_pic+set}" = set; then :
10999 withval=$with_pic; lt_p=${PACKAGE-default}
11000 case $withval in
11001 yes|no) pic_mode=$withval ;;
11003 pic_mode=default
11004 # Look at the argument we got. We use all the common list separators.
11005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11006 for lt_pkg in $withval; do
11007 IFS="$lt_save_ifs"
11008 if test "X$lt_pkg" = "X$lt_p"; then
11009 pic_mode=yes
11011 done
11012 IFS="$lt_save_ifs"
11014 esac
11015 else
11016 pic_mode=default
11020 test -z "$pic_mode" && pic_mode=default
11028 # Check whether --enable-fast-install was given.
11029 if test "${enable_fast_install+set}" = set; then :
11030 enableval=$enable_fast_install; p=${PACKAGE-default}
11031 case $enableval in
11032 yes) enable_fast_install=yes ;;
11033 no) enable_fast_install=no ;;
11035 enable_fast_install=no
11036 # Look at the argument we got. We use all the common list separators.
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for pkg in $enableval; do
11039 IFS="$lt_save_ifs"
11040 if test "X$pkg" = "X$p"; then
11041 enable_fast_install=yes
11043 done
11044 IFS="$lt_save_ifs"
11046 esac
11047 else
11048 enable_fast_install=yes
11061 # This can be used to rebuild libtool when needed
11062 LIBTOOL_DEPS="$ltmain"
11064 # Always use our own libtool.
11065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11096 test -z "$LN_S" && LN_S="ln -s"
11111 if test -n "${ZSH_VERSION+set}" ; then
11112 setopt NO_GLOB_SUBST
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11116 $as_echo_n "checking for objdir... " >&6; }
11117 if ${lt_cv_objdir+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 rm -f .libs 2>/dev/null
11121 mkdir .libs 2>/dev/null
11122 if test -d .libs; then
11123 lt_cv_objdir=.libs
11124 else
11125 # MS-DOS does not allow filenames that begin with a dot.
11126 lt_cv_objdir=_libs
11128 rmdir .libs 2>/dev/null
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11131 $as_echo "$lt_cv_objdir" >&6; }
11132 objdir=$lt_cv_objdir
11138 cat >>confdefs.h <<_ACEOF
11139 #define LT_OBJDIR "$lt_cv_objdir/"
11140 _ACEOF
11145 case $host_os in
11146 aix3*)
11147 # AIX sometimes has problems with the GCC collect2 program. For some
11148 # reason, if we set the COLLECT_NAMES environment variable, the problems
11149 # vanish in a puff of smoke.
11150 if test "X${COLLECT_NAMES+set}" != Xset; then
11151 COLLECT_NAMES=
11152 export COLLECT_NAMES
11155 esac
11157 # Global variables:
11158 ofile=libtool
11159 can_build_shared=yes
11161 # All known linkers require a `.a' archive for static linking (except MSVC,
11162 # which needs '.lib').
11163 libext=a
11165 with_gnu_ld="$lt_cv_prog_gnu_ld"
11167 old_CC="$CC"
11168 old_CFLAGS="$CFLAGS"
11170 # Set sane defaults for various variables
11171 test -z "$CC" && CC=cc
11172 test -z "$LTCC" && LTCC=$CC
11173 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11174 test -z "$LD" && LD=ld
11175 test -z "$ac_objext" && ac_objext=o
11177 for cc_temp in $compiler""; do
11178 case $cc_temp in
11179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11181 \-*) ;;
11182 *) break;;
11183 esac
11184 done
11185 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11188 # Only perform the check for file, if the check method requires it
11189 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11190 case $deplibs_check_method in
11191 file_magic*)
11192 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11194 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11195 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 case $MAGIC_CMD in
11199 [\\/*] | ?:[\\/]*)
11200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11203 lt_save_MAGIC_CMD="$MAGIC_CMD"
11204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11206 for ac_dir in $ac_dummy; do
11207 IFS="$lt_save_ifs"
11208 test -z "$ac_dir" && ac_dir=.
11209 if test -f $ac_dir/${ac_tool_prefix}file; then
11210 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11211 if test -n "$file_magic_test_file"; then
11212 case $deplibs_check_method in
11213 "file_magic "*)
11214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11217 $EGREP "$file_magic_regex" > /dev/null; then
11219 else
11220 cat <<_LT_EOF 1>&2
11222 *** Warning: the command libtool uses to detect shared libraries,
11223 *** $file_magic_cmd, produces output that libtool cannot recognize.
11224 *** The result is that libtool may fail to recognize shared libraries
11225 *** as such. This will affect the creation of libtool libraries that
11226 *** depend on shared libraries, but programs linked with such libtool
11227 *** libraries will work regardless of this problem. Nevertheless, you
11228 *** may want to report the problem to your system manager and/or to
11229 *** bug-libtool@gnu.org
11231 _LT_EOF
11232 fi ;;
11233 esac
11235 break
11237 done
11238 IFS="$lt_save_ifs"
11239 MAGIC_CMD="$lt_save_MAGIC_CMD"
11241 esac
11244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11245 if test -n "$MAGIC_CMD"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11247 $as_echo "$MAGIC_CMD" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11257 if test -z "$lt_cv_path_MAGIC_CMD"; then
11258 if test -n "$ac_tool_prefix"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11260 $as_echo_n "checking for file... " >&6; }
11261 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 case $MAGIC_CMD in
11265 [\\/*] | ?:[\\/]*)
11266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11269 lt_save_MAGIC_CMD="$MAGIC_CMD"
11270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11272 for ac_dir in $ac_dummy; do
11273 IFS="$lt_save_ifs"
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f $ac_dir/file; then
11276 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11277 if test -n "$file_magic_test_file"; then
11278 case $deplibs_check_method in
11279 "file_magic "*)
11280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11283 $EGREP "$file_magic_regex" > /dev/null; then
11285 else
11286 cat <<_LT_EOF 1>&2
11288 *** Warning: the command libtool uses to detect shared libraries,
11289 *** $file_magic_cmd, produces output that libtool cannot recognize.
11290 *** The result is that libtool may fail to recognize shared libraries
11291 *** as such. This will affect the creation of libtool libraries that
11292 *** depend on shared libraries, but programs linked with such libtool
11293 *** libraries will work regardless of this problem. Nevertheless, you
11294 *** may want to report the problem to your system manager and/or to
11295 *** bug-libtool@gnu.org
11297 _LT_EOF
11298 fi ;;
11299 esac
11301 break
11303 done
11304 IFS="$lt_save_ifs"
11305 MAGIC_CMD="$lt_save_MAGIC_CMD"
11307 esac
11310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11311 if test -n "$MAGIC_CMD"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11313 $as_echo "$MAGIC_CMD" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11320 else
11321 MAGIC_CMD=:
11327 esac
11329 # Use C for the default configuration in the libtool script
11331 lt_save_CC="$CC"
11332 ac_ext=c
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11339 # Source file extension for C test sources.
11340 ac_ext=c
11342 # Object file extension for compiled C test sources.
11343 objext=o
11344 objext=$objext
11346 # Code to be used in simple compile tests
11347 lt_simple_compile_test_code="int some_variable = 0;"
11349 # Code to be used in simple link tests
11350 lt_simple_link_test_code='int main(){return(0);}'
11358 # If no C compiler was specified, use CC.
11359 LTCC=${LTCC-"$CC"}
11361 # If no C compiler flags were specified, use CFLAGS.
11362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11364 # Allow CC to be a program name with arguments.
11365 compiler=$CC
11367 # Save the default compiler, since it gets overwritten when the other
11368 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11369 compiler_DEFAULT=$CC
11371 # save warnings/boilerplate of simple test code
11372 ac_outfile=conftest.$ac_objext
11373 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11375 _lt_compiler_boilerplate=`cat conftest.err`
11376 $RM conftest*
11378 ac_outfile=conftest.$ac_objext
11379 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11381 _lt_linker_boilerplate=`cat conftest.err`
11382 $RM -r conftest*
11385 ## CAVEAT EMPTOR:
11386 ## There is no encapsulation within the following macros, do not change
11387 ## the running order or otherwise move them around unless you know exactly
11388 ## what you are doing...
11389 if test -n "$compiler"; then
11391 lt_prog_compiler_no_builtin_flag=
11393 if test "$GCC" = yes; then
11394 case $cc_basename in
11395 nvcc*)
11396 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11398 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11399 esac
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11402 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11403 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 lt_cv_prog_compiler_rtti_exceptions=no
11407 ac_outfile=conftest.$ac_objext
11408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11409 lt_compiler_flag="-fno-rtti -fno-exceptions"
11410 # Insert the option either (1) after the last *FLAGS variable, or
11411 # (2) before a word containing "conftest.", or (3) at the end.
11412 # Note that $ac_compile itself does not contain backslashes and begins
11413 # with a dollar sign (not a hyphen), so the echo should work correctly.
11414 # The option is referenced via a variable to avoid confusing sed.
11415 lt_compile=`echo "$ac_compile" | $SED \
11416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11418 -e 's:$: $lt_compiler_flag:'`
11419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11420 (eval "$lt_compile" 2>conftest.err)
11421 ac_status=$?
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 if (exit $ac_status) && test -s "$ac_outfile"; then
11425 # The compiler can only warn and ignore the option if not recognized
11426 # So say no if there are warnings other than the usual output.
11427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11430 lt_cv_prog_compiler_rtti_exceptions=yes
11433 $RM conftest*
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11437 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11441 else
11452 lt_prog_compiler_wl=
11453 lt_prog_compiler_pic=
11454 lt_prog_compiler_static=
11457 if test "$GCC" = yes; then
11458 lt_prog_compiler_wl='-Wl,'
11459 lt_prog_compiler_static='-static'
11461 case $host_os in
11462 aix*)
11463 # All AIX code is PIC.
11464 if test "$host_cpu" = ia64; then
11465 # AIX 5 now supports IA64 processor
11466 lt_prog_compiler_static='-Bstatic'
11470 amigaos*)
11471 case $host_cpu in
11472 powerpc)
11473 # see comment about AmigaOS4 .so support
11474 lt_prog_compiler_pic='-fPIC'
11476 m68k)
11477 # FIXME: we need at least 68020 code to build shared libraries, but
11478 # adding the `-m68020' flag to GCC prevents building anything better,
11479 # like `-m68040'.
11480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11482 esac
11485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11486 # PIC is the default for these OSes.
11489 mingw* | cygwin* | pw32* | os2* | cegcc*)
11490 # This hack is so that the source file can tell whether it is being
11491 # built for inclusion in a dll (and should export symbols for example).
11492 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11493 # (--disable-auto-import) libraries
11494 lt_prog_compiler_pic='-DDLL_EXPORT'
11497 darwin* | rhapsody*)
11498 # PIC is the default on this platform
11499 # Common symbols not allowed in MH_DYLIB files
11500 lt_prog_compiler_pic='-fno-common'
11503 haiku*)
11504 # PIC is the default for Haiku.
11505 # The "-static" flag exists, but is broken.
11506 lt_prog_compiler_static=
11509 hpux*)
11510 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11511 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11512 # sets the default TLS model and affects inlining.
11513 case $host_cpu in
11514 hppa*64*)
11515 # +Z the default
11518 lt_prog_compiler_pic='-fPIC'
11520 esac
11523 interix[3-9]*)
11524 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11525 # Instead, we relocate shared libraries at runtime.
11528 msdosdjgpp*)
11529 # Just because we use GCC doesn't mean we suddenly get shared libraries
11530 # on systems that don't support them.
11531 lt_prog_compiler_can_build_shared=no
11532 enable_shared=no
11535 *nto* | *qnx*)
11536 # QNX uses GNU C++, but need to define -shared option too, otherwise
11537 # it will coredump.
11538 lt_prog_compiler_pic='-fPIC -shared'
11541 sysv4*MP*)
11542 if test -d /usr/nec; then
11543 lt_prog_compiler_pic=-Kconform_pic
11548 lt_prog_compiler_pic='-fPIC'
11550 esac
11552 case $cc_basename in
11553 nvcc*) # Cuda Compiler Driver 2.2
11554 lt_prog_compiler_wl='-Xlinker '
11555 if test -n "$lt_prog_compiler_pic"; then
11556 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11559 esac
11560 else
11561 # PORTME Check for flag to pass linker flags through the system compiler.
11562 case $host_os in
11563 aix*)
11564 lt_prog_compiler_wl='-Wl,'
11565 if test "$host_cpu" = ia64; then
11566 # AIX 5 now supports IA64 processor
11567 lt_prog_compiler_static='-Bstatic'
11568 else
11569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11573 mingw* | cygwin* | pw32* | os2* | cegcc*)
11574 # This hack is so that the source file can tell whether it is being
11575 # built for inclusion in a dll (and should export symbols for example).
11576 lt_prog_compiler_pic='-DDLL_EXPORT'
11579 hpux9* | hpux10* | hpux11*)
11580 lt_prog_compiler_wl='-Wl,'
11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11582 # not for PA HP-UX.
11583 case $host_cpu in
11584 hppa*64*|ia64*)
11585 # +Z the default
11588 lt_prog_compiler_pic='+Z'
11590 esac
11591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11592 lt_prog_compiler_static='${wl}-a ${wl}archive'
11595 irix5* | irix6* | nonstopux*)
11596 lt_prog_compiler_wl='-Wl,'
11597 # PIC (with -KPIC) is the default.
11598 lt_prog_compiler_static='-non_shared'
11601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11602 case $cc_basename in
11603 # old Intel for x86_64 which still supported -KPIC.
11604 ecc*)
11605 lt_prog_compiler_wl='-Wl,'
11606 lt_prog_compiler_pic='-KPIC'
11607 lt_prog_compiler_static='-static'
11609 # icc used to be incompatible with GCC.
11610 # ICC 10 doesn't accept -KPIC any more.
11611 icc* | ifort*)
11612 lt_prog_compiler_wl='-Wl,'
11613 lt_prog_compiler_pic='-fPIC'
11614 lt_prog_compiler_static='-static'
11616 # Lahey Fortran 8.1.
11617 lf95*)
11618 lt_prog_compiler_wl='-Wl,'
11619 lt_prog_compiler_pic='--shared'
11620 lt_prog_compiler_static='--static'
11622 nagfor*)
11623 # NAG Fortran compiler
11624 lt_prog_compiler_wl='-Wl,-Wl,,'
11625 lt_prog_compiler_pic='-PIC'
11626 lt_prog_compiler_static='-Bstatic'
11628 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11629 # Portland Group compilers (*not* the Pentium gcc compiler,
11630 # which looks to be a dead project)
11631 lt_prog_compiler_wl='-Wl,'
11632 lt_prog_compiler_pic='-fpic'
11633 lt_prog_compiler_static='-Bstatic'
11635 ccc*)
11636 lt_prog_compiler_wl='-Wl,'
11637 # All Alpha code is PIC.
11638 lt_prog_compiler_static='-non_shared'
11640 xl* | bgxl* | bgf* | mpixl*)
11641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11642 lt_prog_compiler_wl='-Wl,'
11643 lt_prog_compiler_pic='-qpic'
11644 lt_prog_compiler_static='-qstaticlink'
11647 case `$CC -V 2>&1 | sed 5q` in
11648 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11650 lt_prog_compiler_pic='-KPIC'
11651 lt_prog_compiler_static='-Bstatic'
11652 lt_prog_compiler_wl=''
11654 *Sun\ F* | *Sun*Fortran*)
11655 lt_prog_compiler_pic='-KPIC'
11656 lt_prog_compiler_static='-Bstatic'
11657 lt_prog_compiler_wl='-Qoption ld '
11659 *Sun\ C*)
11660 # Sun C 5.9
11661 lt_prog_compiler_pic='-KPIC'
11662 lt_prog_compiler_static='-Bstatic'
11663 lt_prog_compiler_wl='-Wl,'
11665 *Intel*\ [CF]*Compiler*)
11666 lt_prog_compiler_wl='-Wl,'
11667 lt_prog_compiler_pic='-fPIC'
11668 lt_prog_compiler_static='-static'
11670 *Portland\ Group*)
11671 lt_prog_compiler_wl='-Wl,'
11672 lt_prog_compiler_pic='-fpic'
11673 lt_prog_compiler_static='-Bstatic'
11675 esac
11677 esac
11680 newsos6)
11681 lt_prog_compiler_pic='-KPIC'
11682 lt_prog_compiler_static='-Bstatic'
11685 *nto* | *qnx*)
11686 # QNX uses GNU C++, but need to define -shared option too, otherwise
11687 # it will coredump.
11688 lt_prog_compiler_pic='-fPIC -shared'
11691 osf3* | osf4* | osf5*)
11692 lt_prog_compiler_wl='-Wl,'
11693 # All OSF/1 code is PIC.
11694 lt_prog_compiler_static='-non_shared'
11697 rdos*)
11698 lt_prog_compiler_static='-non_shared'
11701 solaris*)
11702 lt_prog_compiler_pic='-KPIC'
11703 lt_prog_compiler_static='-Bstatic'
11704 case $cc_basename in
11705 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11706 lt_prog_compiler_wl='-Qoption ld ';;
11708 lt_prog_compiler_wl='-Wl,';;
11709 esac
11712 sunos4*)
11713 lt_prog_compiler_wl='-Qoption ld '
11714 lt_prog_compiler_pic='-PIC'
11715 lt_prog_compiler_static='-Bstatic'
11718 sysv4 | sysv4.2uw2* | sysv4.3*)
11719 lt_prog_compiler_wl='-Wl,'
11720 lt_prog_compiler_pic='-KPIC'
11721 lt_prog_compiler_static='-Bstatic'
11724 sysv4*MP*)
11725 if test -d /usr/nec ;then
11726 lt_prog_compiler_pic='-Kconform_pic'
11727 lt_prog_compiler_static='-Bstatic'
11731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-KPIC'
11734 lt_prog_compiler_static='-Bstatic'
11737 unicos*)
11738 lt_prog_compiler_wl='-Wl,'
11739 lt_prog_compiler_can_build_shared=no
11742 uts4*)
11743 lt_prog_compiler_pic='-pic'
11744 lt_prog_compiler_static='-Bstatic'
11748 lt_prog_compiler_can_build_shared=no
11750 esac
11753 case $host_os in
11754 # For platforms which do not support PIC, -DPIC is meaningless:
11755 *djgpp*)
11756 lt_prog_compiler_pic=
11759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11761 esac
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11765 if ${lt_cv_prog_compiler_pic+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11771 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11772 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11775 # Check to make sure the PIC flag actually works.
11777 if test -n "$lt_prog_compiler_pic"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11780 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 lt_cv_prog_compiler_pic_works=no
11784 ac_outfile=conftest.$ac_objext
11785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11787 # Insert the option either (1) after the last *FLAGS variable, or
11788 # (2) before a word containing "conftest.", or (3) at the end.
11789 # Note that $ac_compile itself does not contain backslashes and begins
11790 # with a dollar sign (not a hyphen), so the echo should work correctly.
11791 # The option is referenced via a variable to avoid confusing sed.
11792 lt_compile=`echo "$ac_compile" | $SED \
11793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795 -e 's:$: $lt_compiler_flag:'`
11796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11797 (eval "$lt_compile" 2>conftest.err)
11798 ac_status=$?
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 if (exit $ac_status) && test -s "$ac_outfile"; then
11802 # The compiler can only warn and ignore the option if not recognized
11803 # So say no if there are warnings other than the usual output.
11804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11807 lt_cv_prog_compiler_pic_works=yes
11810 $RM conftest*
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11814 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11816 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11817 case $lt_prog_compiler_pic in
11818 "" | " "*) ;;
11819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11820 esac
11821 else
11822 lt_prog_compiler_pic=
11823 lt_prog_compiler_can_build_shared=no
11839 # Check to make sure the static flag actually works.
11841 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11844 if ${lt_cv_prog_compiler_static_works+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 lt_cv_prog_compiler_static_works=no
11848 save_LDFLAGS="$LDFLAGS"
11849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11852 # The linker can only warn and ignore the option if not recognized
11853 # So say no if there are warnings
11854 if test -s conftest.err; then
11855 # Append any errors to the config.log.
11856 cat conftest.err 1>&5
11857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11859 if diff conftest.exp conftest.er2 >/dev/null; then
11860 lt_cv_prog_compiler_static_works=yes
11862 else
11863 lt_cv_prog_compiler_static_works=yes
11866 $RM -r conftest*
11867 LDFLAGS="$save_LDFLAGS"
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11871 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11873 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11875 else
11876 lt_prog_compiler_static=
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11887 if ${lt_cv_prog_compiler_c_o+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 lt_cv_prog_compiler_c_o=no
11891 $RM -r conftest 2>/dev/null
11892 mkdir conftest
11893 cd conftest
11894 mkdir out
11895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897 lt_compiler_flag="-o out/conftest2.$ac_objext"
11898 # Insert the option either (1) after the last *FLAGS variable, or
11899 # (2) before a word containing "conftest.", or (3) at the end.
11900 # Note that $ac_compile itself does not contain backslashes and begins
11901 # with a dollar sign (not a hyphen), so the echo should work correctly.
11902 lt_compile=`echo "$ac_compile" | $SED \
11903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11905 -e 's:$: $lt_compiler_flag:'`
11906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11907 (eval "$lt_compile" 2>out/conftest.err)
11908 ac_status=$?
11909 cat out/conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11912 then
11913 # The compiler can only warn and ignore the option if not recognized
11914 # So say no if there are warnings
11915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11918 lt_cv_prog_compiler_c_o=yes
11921 chmod u+w . 2>&5
11922 $RM conftest*
11923 # SGI C++ compiler will create directory out/ii_files/ for
11924 # template instantiation
11925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11926 $RM out/* && rmdir out
11927 cd ..
11928 $RM -r conftest
11929 $RM conftest*
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11942 if ${lt_cv_prog_compiler_c_o+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 lt_cv_prog_compiler_c_o=no
11946 $RM -r conftest 2>/dev/null
11947 mkdir conftest
11948 cd conftest
11949 mkdir out
11950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11952 lt_compiler_flag="-o out/conftest2.$ac_objext"
11953 # Insert the option either (1) after the last *FLAGS variable, or
11954 # (2) before a word containing "conftest.", or (3) at the end.
11955 # Note that $ac_compile itself does not contain backslashes and begins
11956 # with a dollar sign (not a hyphen), so the echo should work correctly.
11957 lt_compile=`echo "$ac_compile" | $SED \
11958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11960 -e 's:$: $lt_compiler_flag:'`
11961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11962 (eval "$lt_compile" 2>out/conftest.err)
11963 ac_status=$?
11964 cat out/conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11967 then
11968 # The compiler can only warn and ignore the option if not recognized
11969 # So say no if there are warnings
11970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11973 lt_cv_prog_compiler_c_o=yes
11976 chmod u+w . 2>&5
11977 $RM conftest*
11978 # SGI C++ compiler will create directory out/ii_files/ for
11979 # template instantiation
11980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11981 $RM out/* && rmdir out
11982 cd ..
11983 $RM -r conftest
11984 $RM conftest*
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11993 hard_links="nottested"
11994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11995 # do not overwrite the value of need_locks provided by the user
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11997 $as_echo_n "checking if we can lock with hard links... " >&6; }
11998 hard_links=yes
11999 $RM conftest*
12000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12001 touch conftest.a
12002 ln conftest.a conftest.b 2>&5 || hard_links=no
12003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12005 $as_echo "$hard_links" >&6; }
12006 if test "$hard_links" = no; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12008 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12009 need_locks=warn
12011 else
12012 need_locks=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12023 runpath_var=
12024 allow_undefined_flag=
12025 always_export_symbols=no
12026 archive_cmds=
12027 archive_expsym_cmds=
12028 compiler_needs_object=no
12029 enable_shared_with_static_runtimes=no
12030 export_dynamic_flag_spec=
12031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12032 hardcode_automatic=no
12033 hardcode_direct=no
12034 hardcode_direct_absolute=no
12035 hardcode_libdir_flag_spec=
12036 hardcode_libdir_separator=
12037 hardcode_minus_L=no
12038 hardcode_shlibpath_var=unsupported
12039 inherit_rpath=no
12040 link_all_deplibs=unknown
12041 module_cmds=
12042 module_expsym_cmds=
12043 old_archive_from_new_cmds=
12044 old_archive_from_expsyms_cmds=
12045 thread_safe_flag_spec=
12046 whole_archive_flag_spec=
12047 # include_expsyms should be a list of space-separated symbols to be *always*
12048 # included in the symbol list
12049 include_expsyms=
12050 # exclude_expsyms can be an extended regexp of symbols to exclude
12051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12053 # as well as any symbol that contains `d'.
12054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12056 # platforms (ab)use it in PIC code, but their linkers get confused if
12057 # the symbol is explicitly referenced. Since portable code cannot
12058 # rely on this symbol name, it's probably fine to never include it in
12059 # preloaded symbol tables.
12060 # Exclude shared library initialization/finalization symbols.
12061 extract_expsyms_cmds=
12063 case $host_os in
12064 cygwin* | mingw* | pw32* | cegcc*)
12065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12066 # When not using gcc, we currently assume that we are using
12067 # Microsoft Visual C++.
12068 if test "$GCC" != yes; then
12069 with_gnu_ld=no
12072 interix*)
12073 # we just hope/assume this is gcc and not c89 (= MSVC++)
12074 with_gnu_ld=yes
12076 openbsd*)
12077 with_gnu_ld=no
12079 linux* | k*bsd*-gnu | gnu*)
12080 link_all_deplibs=no
12082 esac
12084 ld_shlibs=yes
12086 # On some targets, GNU ld is compatible enough with the native linker
12087 # that we're better off using the native interface for both.
12088 lt_use_gnu_ld_interface=no
12089 if test "$with_gnu_ld" = yes; then
12090 case $host_os in
12091 aix*)
12092 # The AIX port of GNU ld has always aspired to compatibility
12093 # with the native linker. However, as the warning in the GNU ld
12094 # block says, versions before 2.19.5* couldn't really create working
12095 # shared libraries, regardless of the interface used.
12096 case `$LD -v 2>&1` in
12097 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12098 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12099 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12101 lt_use_gnu_ld_interface=yes
12103 esac
12106 lt_use_gnu_ld_interface=yes
12108 esac
12111 if test "$lt_use_gnu_ld_interface" = yes; then
12112 # If archive_cmds runs LD, not CC, wlarc should be empty
12113 wlarc='${wl}'
12115 # Set some defaults for GNU ld with shared library support. These
12116 # are reset later if shared libraries are not supported. Putting them
12117 # here allows them to be overridden if necessary.
12118 runpath_var=LD_RUN_PATH
12119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12120 export_dynamic_flag_spec='${wl}--export-dynamic'
12121 # ancient GNU ld didn't support --whole-archive et. al.
12122 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12123 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12124 else
12125 whole_archive_flag_spec=
12127 supports_anon_versioning=no
12128 case `$LD -v 2>&1` in
12129 *GNU\ gold*) supports_anon_versioning=yes ;;
12130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12133 *\ 2.11.*) ;; # other 2.11 versions
12134 *) supports_anon_versioning=yes ;;
12135 esac
12137 # See if GNU ld supports shared libraries.
12138 case $host_os in
12139 aix[3-9]*)
12140 # On AIX/PPC, the GNU linker is very broken
12141 if test "$host_cpu" != ia64; then
12142 ld_shlibs=no
12143 cat <<_LT_EOF 1>&2
12145 *** Warning: the GNU linker, at least up to release 2.19, is reported
12146 *** to be unable to reliably create shared libraries on AIX.
12147 *** Therefore, libtool is disabling shared libraries support. If you
12148 *** really care for shared libraries, you may want to install binutils
12149 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12150 *** You will then need to restart the configuration process.
12152 _LT_EOF
12156 amigaos*)
12157 case $host_cpu in
12158 powerpc)
12159 # see comment about AmigaOS4 .so support
12160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 archive_expsym_cmds=''
12163 m68k)
12164 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)'
12165 hardcode_libdir_flag_spec='-L$libdir'
12166 hardcode_minus_L=yes
12168 esac
12171 beos*)
12172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12173 allow_undefined_flag=unsupported
12174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12175 # support --undefined. This deserves some investigation. FIXME
12176 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12177 else
12178 ld_shlibs=no
12182 cygwin* | mingw* | pw32* | cegcc*)
12183 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12184 # as there is no search path for DLLs.
12185 hardcode_libdir_flag_spec='-L$libdir'
12186 export_dynamic_flag_spec='${wl}--export-all-symbols'
12187 allow_undefined_flag=unsupported
12188 always_export_symbols=no
12189 enable_shared_with_static_runtimes=yes
12190 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'
12191 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12195 # If the export-symbols file already is a .def file (1st line
12196 # is EXPORTS), use it as is; otherwise, prepend...
12197 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12198 cp $export_symbols $output_objdir/$soname.def;
12199 else
12200 echo EXPORTS > $output_objdir/$soname.def;
12201 cat $export_symbols >> $output_objdir/$soname.def;
12203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12204 else
12205 ld_shlibs=no
12209 haiku*)
12210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211 link_all_deplibs=yes
12214 interix[3-9]*)
12215 hardcode_direct=no
12216 hardcode_shlibpath_var=no
12217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12218 export_dynamic_flag_spec='${wl}-E'
12219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12220 # Instead, shared libraries are loaded at an image base (0x10000000 by
12221 # default) and relocated if they conflict, which is a slow very memory
12222 # consuming and fragmenting process. To avoid this, we pick a random,
12223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12226 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'
12229 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12230 tmp_diet=no
12231 if test "$host_os" = linux-dietlibc; then
12232 case $cc_basename in
12233 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12234 esac
12236 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12237 && test "$tmp_diet" = no
12238 then
12239 tmp_addflag=' $pic_flag'
12240 tmp_sharedflag='-shared'
12241 case $cc_basename,$host_cpu in
12242 pgcc*) # Portland Group C compiler
12243 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'
12244 tmp_addflag=' $pic_flag'
12246 pgf77* | pgf90* | pgf95* | pgfortran*)
12247 # Portland Group f77 and f90 compilers
12248 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'
12249 tmp_addflag=' $pic_flag -Mnomain' ;;
12250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12251 tmp_addflag=' -i_dynamic' ;;
12252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12253 tmp_addflag=' -i_dynamic -nofor_main' ;;
12254 ifc* | ifort*) # Intel Fortran compiler
12255 tmp_addflag=' -nofor_main' ;;
12256 lf95*) # Lahey Fortran 8.1
12257 whole_archive_flag_spec=
12258 tmp_sharedflag='--shared' ;;
12259 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12260 tmp_sharedflag='-qmkshrobj'
12261 tmp_addflag= ;;
12262 nvcc*) # Cuda Compiler Driver 2.2
12263 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'
12264 compiler_needs_object=yes
12266 esac
12267 case `$CC -V 2>&1 | sed 5q` in
12268 *Sun\ C*) # Sun C 5.9
12269 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'
12270 compiler_needs_object=yes
12271 tmp_sharedflag='-G' ;;
12272 *Sun\ F*) # Sun Fortran 8.3
12273 tmp_sharedflag='-G' ;;
12274 esac
12275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 if test "x$supports_anon_versioning" = xyes; then
12278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12280 echo "local: *; };" >> $output_objdir/$libname.ver~
12281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12284 case $cc_basename in
12285 xlf* | bgf* | bgxlf* | mpixlf*)
12286 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12287 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12289 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12290 if test "x$supports_anon_versioning" = xyes; then
12291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12293 echo "local: *; };" >> $output_objdir/$libname.ver~
12294 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12297 esac
12298 else
12299 ld_shlibs=no
12303 netbsd* | netbsdelf*-gnu)
12304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12306 wlarc=
12307 else
12308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12313 solaris*)
12314 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12315 ld_shlibs=no
12316 cat <<_LT_EOF 1>&2
12318 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12319 *** create shared libraries on Solaris systems. Therefore, libtool
12320 *** is disabling shared libraries support. We urge you to upgrade GNU
12321 *** binutils to release 2.9.1 or newer. Another option is to modify
12322 *** your PATH or compiler configuration so that the native linker is
12323 *** used, and then restart.
12325 _LT_EOF
12326 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12328 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12329 else
12330 ld_shlibs=no
12334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12335 case `$LD -v 2>&1` in
12336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12337 ld_shlibs=no
12338 cat <<_LT_EOF 1>&2
12340 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12341 *** reliably create shared libraries on SCO systems. Therefore, libtool
12342 *** is disabling shared libraries support. We urge you to upgrade GNU
12343 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12344 *** your PATH or compiler configuration so that the native linker is
12345 *** used, and then restart.
12347 _LT_EOF
12350 # For security reasons, it is highly recommended that you always
12351 # use absolute paths for naming shared libraries, and exclude the
12352 # DT_RUNPATH tag from executables and libraries. But doing so
12353 # requires that you compile everything twice, which is a pain.
12354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12358 else
12359 ld_shlibs=no
12362 esac
12365 sunos4*)
12366 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12367 wlarc=
12368 hardcode_direct=yes
12369 hardcode_shlibpath_var=no
12373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12376 else
12377 ld_shlibs=no
12380 esac
12382 if test "$ld_shlibs" = no; then
12383 runpath_var=
12384 hardcode_libdir_flag_spec=
12385 export_dynamic_flag_spec=
12386 whole_archive_flag_spec=
12388 else
12389 # PORTME fill in a description of your system's linker (not GNU ld)
12390 case $host_os in
12391 aix3*)
12392 allow_undefined_flag=unsupported
12393 always_export_symbols=yes
12394 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'
12395 # Note: this linker hardcodes the directories in LIBPATH if there
12396 # are no directories specified by -L.
12397 hardcode_minus_L=yes
12398 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12399 # Neither direct hardcoding nor static linking is supported with a
12400 # broken collect2.
12401 hardcode_direct=unsupported
12405 aix[4-9]*)
12406 if test "$host_cpu" = ia64; then
12407 # On IA64, the linker does run time linking by default, so we don't
12408 # have to do anything special.
12409 aix_use_runtimelinking=no
12410 exp_sym_flag='-Bexport'
12411 no_entry_flag=""
12412 else
12413 # If we're using GNU nm, then we don't want the "-C" option.
12414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12415 # Also, AIX nm treats weak defined symbols like other global
12416 # defined symbols, whereas GNU nm marks them as "W".
12417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12418 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12419 else
12420 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12422 aix_use_runtimelinking=no
12424 # Test if we are trying to use run time linking or normal
12425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12426 # need to do runtime linking.
12427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12428 for ld_flag in $LDFLAGS; do
12429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12430 aix_use_runtimelinking=yes
12431 break
12433 done
12435 esac
12437 exp_sym_flag='-bexport'
12438 no_entry_flag='-bnoentry'
12441 # When large executables or shared objects are built, AIX ld can
12442 # have problems creating the table of contents. If linking a library
12443 # or program results in "error TOC overflow" add -mminimal-toc to
12444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12447 archive_cmds=''
12448 hardcode_direct=yes
12449 hardcode_direct_absolute=yes
12450 hardcode_libdir_separator=':'
12451 link_all_deplibs=yes
12452 file_list_spec='${wl}-f,'
12454 if test "$GCC" = yes; then
12455 case $host_os in aix4.[012]|aix4.[012].*)
12456 # We only want to do this on AIX 4.2 and lower, the check
12457 # below for broken collect2 doesn't work under 4.3+
12458 collect2name=`${CC} -print-prog-name=collect2`
12459 if test -f "$collect2name" &&
12460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12461 then
12462 # We have reworked collect2
12464 else
12465 # We have old collect2
12466 hardcode_direct=unsupported
12467 # It fails to find uninstalled libraries when the uninstalled
12468 # path is not listed in the libpath. Setting hardcode_minus_L
12469 # to unsupported forces relinking
12470 hardcode_minus_L=yes
12471 hardcode_libdir_flag_spec='-L$libdir'
12472 hardcode_libdir_separator=
12475 esac
12476 shared_flag='-shared'
12477 if test "$aix_use_runtimelinking" = yes; then
12478 shared_flag="$shared_flag "'${wl}-G'
12480 link_all_deplibs=no
12481 else
12482 # not using gcc
12483 if test "$host_cpu" = ia64; then
12484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12485 # chokes on -Wl,-G. The following line is correct:
12486 shared_flag='-G'
12487 else
12488 if test "$aix_use_runtimelinking" = yes; then
12489 shared_flag='${wl}-G'
12490 else
12491 shared_flag='${wl}-bM:SRE'
12496 export_dynamic_flag_spec='${wl}-bexpall'
12497 # It seems that -bexpall does not export symbols beginning with
12498 # underscore (_), so it is better to generate a list of symbols to export.
12499 always_export_symbols=yes
12500 if test "$aix_use_runtimelinking" = yes; then
12501 # Warning - without using the other runtime loading flags (-brtl),
12502 # -berok will link without error, but may produce a broken library.
12503 allow_undefined_flag='-berok'
12504 # Determine the default libpath from the value encoded in an
12505 # empty executable.
12506 if test "${lt_cv_aix_libpath+set}" = set; then
12507 aix_libpath=$lt_cv_aix_libpath
12508 else
12509 if ${lt_cv_aix_libpath_+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12516 main ()
12520 return 0;
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12525 lt_aix_libpath_sed='
12526 /Import File Strings/,/^$/ {
12527 /^0/ {
12528 s/^0 *\([^ ]*\) *$/\1/
12532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12533 # Check for a 64-bit object if we didn't find anything.
12534 if test -z "$lt_cv_aix_libpath_"; then
12535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12538 rm -f core conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 if test -z "$lt_cv_aix_libpath_"; then
12541 lt_cv_aix_libpath_="/usr/lib:/lib"
12546 aix_libpath=$lt_cv_aix_libpath_
12549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12550 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12551 else
12552 if test "$host_cpu" = ia64; then
12553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12554 allow_undefined_flag="-z nodefs"
12555 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"
12556 else
12557 # Determine the default libpath from the value encoded in an
12558 # empty executable.
12559 if test "${lt_cv_aix_libpath+set}" = set; then
12560 aix_libpath=$lt_cv_aix_libpath
12561 else
12562 if ${lt_cv_aix_libpath_+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12569 main ()
12573 return 0;
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12578 lt_aix_libpath_sed='
12579 /Import File Strings/,/^$/ {
12580 /^0/ {
12581 s/^0 *\([^ ]*\) *$/\1/
12585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12586 # Check for a 64-bit object if we didn't find anything.
12587 if test -z "$lt_cv_aix_libpath_"; then
12588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 if test -z "$lt_cv_aix_libpath_"; then
12594 lt_cv_aix_libpath_="/usr/lib:/lib"
12599 aix_libpath=$lt_cv_aix_libpath_
12602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12603 # Warning - without using the other run time loading flags,
12604 # -berok will link without error, but may produce a broken library.
12605 no_undefined_flag=' ${wl}-bernotok'
12606 allow_undefined_flag=' ${wl}-berok'
12607 if test "$with_gnu_ld" = yes; then
12608 # We only use this code for GNU lds that support --whole-archive.
12609 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12610 else
12611 # Exported symbols can be pulled into shared objects from archives
12612 whole_archive_flag_spec='$convenience'
12614 archive_cmds_need_lc=yes
12615 # This is similar to how AIX traditionally builds its shared libraries.
12616 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12621 amigaos*)
12622 case $host_cpu in
12623 powerpc)
12624 # see comment about AmigaOS4 .so support
12625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 archive_expsym_cmds=''
12628 m68k)
12629 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)'
12630 hardcode_libdir_flag_spec='-L$libdir'
12631 hardcode_minus_L=yes
12633 esac
12636 bsdi[45]*)
12637 export_dynamic_flag_spec=-rdynamic
12640 cygwin* | mingw* | pw32* | cegcc*)
12641 # When not using gcc, we currently assume that we are using
12642 # Microsoft Visual C++.
12643 # hardcode_libdir_flag_spec is actually meaningless, as there is
12644 # no search path for DLLs.
12645 case $cc_basename in
12646 cl*)
12647 # Native MSVC
12648 hardcode_libdir_flag_spec=' '
12649 allow_undefined_flag=unsupported
12650 always_export_symbols=yes
12651 file_list_spec='@'
12652 # Tell ltmain to make .lib files, not .a files.
12653 libext=lib
12654 # Tell ltmain to make .dll files, not .so files.
12655 shrext_cmds=".dll"
12656 # FIXME: Setting linknames here is a bad hack.
12657 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12659 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12660 else
12661 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12663 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12664 linknames='
12665 # The linker will not automatically build a static lib if we build a DLL.
12666 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12667 enable_shared_with_static_runtimes=yes
12668 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12670 # Don't use ranlib
12671 old_postinstall_cmds='chmod 644 $oldlib'
12672 postlink_cmds='lt_outputfile="@OUTPUT@"~
12673 lt_tool_outputfile="@TOOL_OUTPUT@"~
12674 case $lt_outputfile in
12675 *.exe|*.EXE) ;;
12677 lt_outputfile="$lt_outputfile.exe"
12678 lt_tool_outputfile="$lt_tool_outputfile.exe"
12680 esac~
12681 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12682 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12683 $RM "$lt_outputfile.manifest";
12687 # Assume MSVC wrapper
12688 hardcode_libdir_flag_spec=' '
12689 allow_undefined_flag=unsupported
12690 # Tell ltmain to make .lib files, not .a files.
12691 libext=lib
12692 # Tell ltmain to make .dll files, not .so files.
12693 shrext_cmds=".dll"
12694 # FIXME: Setting linknames here is a bad hack.
12695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12696 # The linker will automatically build a .lib file if we build a DLL.
12697 old_archive_from_new_cmds='true'
12698 # FIXME: Should let the user specify the lib program.
12699 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12700 enable_shared_with_static_runtimes=yes
12702 esac
12705 darwin* | rhapsody*)
12708 archive_cmds_need_lc=no
12709 hardcode_direct=no
12710 hardcode_automatic=yes
12711 hardcode_shlibpath_var=unsupported
12712 if test "$lt_cv_ld_force_load" = "yes"; then
12713 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\"`'
12715 else
12716 whole_archive_flag_spec=''
12718 link_all_deplibs=yes
12719 allow_undefined_flag="$_lt_dar_allow_undefined"
12720 case $cc_basename in
12721 ifort*) _lt_dar_can_shared=yes ;;
12722 *) _lt_dar_can_shared=$GCC ;;
12723 esac
12724 if test "$_lt_dar_can_shared" = "yes"; then
12725 output_verbose_link_cmd=func_echo_all
12726 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12727 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12728 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}"
12729 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}"
12731 else
12732 ld_shlibs=no
12737 dgux*)
12738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739 hardcode_libdir_flag_spec='-L$libdir'
12740 hardcode_shlibpath_var=no
12743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12744 # support. Future versions do this automatically, but an explicit c++rt0.o
12745 # does not break anything, and helps significantly (at the cost of a little
12746 # extra space).
12747 freebsd2.2*)
12748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12749 hardcode_libdir_flag_spec='-R$libdir'
12750 hardcode_direct=yes
12751 hardcode_shlibpath_var=no
12754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12755 freebsd2.*)
12756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12757 hardcode_direct=yes
12758 hardcode_minus_L=yes
12759 hardcode_shlibpath_var=no
12762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12763 freebsd* | dragonfly*)
12764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12765 hardcode_libdir_flag_spec='-R$libdir'
12766 hardcode_direct=yes
12767 hardcode_shlibpath_var=no
12770 hpux9*)
12771 if test "$GCC" = yes; then
12772 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12773 else
12774 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator=:
12778 hardcode_direct=yes
12780 # hardcode_minus_L: Not really in the search PATH,
12781 # but as the default location of the library.
12782 hardcode_minus_L=yes
12783 export_dynamic_flag_spec='${wl}-E'
12786 hpux10*)
12787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12788 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12789 else
12790 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12792 if test "$with_gnu_ld" = no; then
12793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_separator=:
12795 hardcode_direct=yes
12796 hardcode_direct_absolute=yes
12797 export_dynamic_flag_spec='${wl}-E'
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L=yes
12804 hpux11*)
12805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12806 case $host_cpu in
12807 hppa*64*)
12808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810 ia64*)
12811 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12814 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12816 esac
12817 else
12818 case $host_cpu in
12819 hppa*64*)
12820 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 ia64*)
12823 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827 # Older versions of the 11.00 compiler do not understand -b yet
12828 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12830 $as_echo_n "checking if $CC understands -b... " >&6; }
12831 if ${lt_cv_prog_compiler__b+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 lt_cv_prog_compiler__b=no
12835 save_LDFLAGS="$LDFLAGS"
12836 LDFLAGS="$LDFLAGS -b"
12837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12839 # The linker can only warn and ignore the option if not recognized
12840 # So say no if there are warnings
12841 if test -s conftest.err; then
12842 # Append any errors to the config.log.
12843 cat conftest.err 1>&5
12844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12846 if diff conftest.exp conftest.er2 >/dev/null; then
12847 lt_cv_prog_compiler__b=yes
12849 else
12850 lt_cv_prog_compiler__b=yes
12853 $RM -r conftest*
12854 LDFLAGS="$save_LDFLAGS"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12858 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12860 if test x"$lt_cv_prog_compiler__b" = xyes; then
12861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12862 else
12863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12867 esac
12869 if test "$with_gnu_ld" = no; then
12870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12871 hardcode_libdir_separator=:
12873 case $host_cpu in
12874 hppa*64*|ia64*)
12875 hardcode_direct=no
12876 hardcode_shlibpath_var=no
12879 hardcode_direct=yes
12880 hardcode_direct_absolute=yes
12881 export_dynamic_flag_spec='${wl}-E'
12883 # hardcode_minus_L: Not really in the search PATH,
12884 # but as the default location of the library.
12885 hardcode_minus_L=yes
12887 esac
12891 irix5* | irix6* | nonstopux*)
12892 if test "$GCC" = yes; then
12893 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'
12894 # Try to use the -exported_symbol ld option, if it does not
12895 # work, assume that -exports_file does not work either and
12896 # implicitly export all symbols.
12897 # This should be the same for all languages, so no per-tag cache variable.
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12899 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12900 if ${lt_cv_irix_exported_symbol+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 save_LDFLAGS="$LDFLAGS"
12904 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 int foo (void) { return 0; }
12908 _ACEOF
12909 if ac_fn_c_try_link "$LINENO"; then :
12910 lt_cv_irix_exported_symbol=yes
12911 else
12912 lt_cv_irix_exported_symbol=no
12914 rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext conftest.$ac_ext
12916 LDFLAGS="$save_LDFLAGS"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12919 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12920 if test "$lt_cv_irix_exported_symbol" = yes; then
12921 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'
12923 else
12924 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'
12925 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'
12927 archive_cmds_need_lc='no'
12928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12929 hardcode_libdir_separator=:
12930 inherit_rpath=yes
12931 link_all_deplibs=yes
12934 netbsd* | netbsdelf*-gnu)
12935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12937 else
12938 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12940 hardcode_libdir_flag_spec='-R$libdir'
12941 hardcode_direct=yes
12942 hardcode_shlibpath_var=no
12945 newsos6)
12946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947 hardcode_direct=yes
12948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator=:
12950 hardcode_shlibpath_var=no
12953 *nto* | *qnx*)
12956 openbsd*)
12957 if test -f /usr/libexec/ld.so; then
12958 hardcode_direct=yes
12959 hardcode_shlibpath_var=no
12960 hardcode_direct_absolute=yes
12961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12965 export_dynamic_flag_spec='${wl}-E'
12966 else
12967 case $host_os in
12968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_libdir_flag_spec='-R$libdir'
12973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12976 esac
12978 else
12979 ld_shlibs=no
12983 os2*)
12984 hardcode_libdir_flag_spec='-L$libdir'
12985 hardcode_minus_L=yes
12986 allow_undefined_flag=unsupported
12987 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12988 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12991 osf3*)
12992 if test "$GCC" = yes; then
12993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12994 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'
12995 else
12996 allow_undefined_flag=' -expect_unresolved \*'
12997 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'
12999 archive_cmds_need_lc='no'
13000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13001 hardcode_libdir_separator=:
13004 osf4* | osf5*) # as osf3* with the addition of -msym flag
13005 if test "$GCC" = yes; then
13006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13007 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'
13008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13009 else
13010 allow_undefined_flag=' -expect_unresolved \*'
13011 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'
13012 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~
13013 $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'
13015 # Both c and cxx compiler support -rpath directly
13016 hardcode_libdir_flag_spec='-rpath $libdir'
13018 archive_cmds_need_lc='no'
13019 hardcode_libdir_separator=:
13022 solaris*)
13023 no_undefined_flag=' -z defs'
13024 if test "$GCC" = yes; then
13025 wlarc='${wl}'
13026 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13028 $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'
13029 else
13030 case `$CC -V 2>&1` in
13031 *"Compilers 5.0"*)
13032 wlarc=''
13033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13038 wlarc='${wl}'
13039 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13043 esac
13045 hardcode_libdir_flag_spec='-R$libdir'
13046 hardcode_shlibpath_var=no
13047 case $host_os in
13048 solaris2.[0-5] | solaris2.[0-5].*) ;;
13050 # The compiler driver will combine and reorder linker options,
13051 # but understands `-z linker_flag'. GCC discards it without `$wl',
13052 # but is careful enough not to reorder.
13053 # Supported since Solaris 2.6 (maybe 2.5.1?)
13054 if test "$GCC" = yes; then
13055 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13056 else
13057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13060 esac
13061 link_all_deplibs=yes
13064 sunos4*)
13065 if test "x$host_vendor" = xsequent; then
13066 # Use $CC to link under sequent, because it throws in some extra .o
13067 # files that make .init and .fini sections work.
13068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13069 else
13070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_libdir_flag_spec='-L$libdir'
13073 hardcode_direct=yes
13074 hardcode_minus_L=yes
13075 hardcode_shlibpath_var=no
13078 sysv4)
13079 case $host_vendor in
13080 sni)
13081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 hardcode_direct=yes # is this really true???
13084 siemens)
13085 ## LD is ld it makes a PLAMLIB
13086 ## CC just makes a GrossModule.
13087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13088 reload_cmds='$CC -r -o $output$reload_objs'
13089 hardcode_direct=no
13091 motorola)
13092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13095 esac
13096 runpath_var='LD_RUN_PATH'
13097 hardcode_shlibpath_var=no
13100 sysv4.3*)
13101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13102 hardcode_shlibpath_var=no
13103 export_dynamic_flag_spec='-Bexport'
13106 sysv4*MP*)
13107 if test -d /usr/nec; then
13108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109 hardcode_shlibpath_var=no
13110 runpath_var=LD_RUN_PATH
13111 hardcode_runpath_var=yes
13112 ld_shlibs=yes
13116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13117 no_undefined_flag='${wl}-z,text'
13118 archive_cmds_need_lc=no
13119 hardcode_shlibpath_var=no
13120 runpath_var='LD_RUN_PATH'
13122 if test "$GCC" = yes; then
13123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 else
13126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 sysv5* | sco3.2v5* | sco5v6*)
13132 # Note: We can NOT use -z defs as we might desire, because we do not
13133 # link with -lc, and that would cause any symbols used from libc to
13134 # always be unresolved, which means just about no library would
13135 # ever link correctly. If we're not using GNU ld we use -z text
13136 # though, which does catch some bad symbols but isn't as heavy-handed
13137 # as -z defs.
13138 no_undefined_flag='${wl}-z,text'
13139 allow_undefined_flag='${wl}-z,nodefs'
13140 archive_cmds_need_lc=no
13141 hardcode_shlibpath_var=no
13142 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13143 hardcode_libdir_separator=':'
13144 link_all_deplibs=yes
13145 export_dynamic_flag_spec='${wl}-Bexport'
13146 runpath_var='LD_RUN_PATH'
13148 if test "$GCC" = yes; then
13149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13151 else
13152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13157 uts4*)
13158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13159 hardcode_libdir_flag_spec='-L$libdir'
13160 hardcode_shlibpath_var=no
13164 ld_shlibs=no
13166 esac
13168 if test x$host_vendor = xsni; then
13169 case $host in
13170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13171 export_dynamic_flag_spec='${wl}-Blargedynsym'
13173 esac
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13178 $as_echo "$ld_shlibs" >&6; }
13179 test "$ld_shlibs" = no && can_build_shared=no
13181 with_gnu_ld=$with_gnu_ld
13198 # Do we need to explicitly link libc?
13200 case "x$archive_cmds_need_lc" in
13201 x|xyes)
13202 # Assume -lc should be added
13203 archive_cmds_need_lc=yes
13205 if test "$enable_shared" = yes && test "$GCC" = yes; then
13206 case $archive_cmds in
13207 *'~'*)
13208 # FIXME: we may have to deal with multi-command sequences.
13210 '$CC '*)
13211 # Test whether the compiler implicitly links with -lc since on some
13212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13213 # to ld, don't add -lc before -lgcc.
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13215 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13216 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 $RM conftest*
13220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13223 (eval $ac_compile) 2>&5
13224 ac_status=$?
13225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13226 test $ac_status = 0; } 2>conftest.err; then
13227 soname=conftest
13228 lib=conftest
13229 libobjs=conftest.$ac_objext
13230 deplibs=
13231 wl=$lt_prog_compiler_wl
13232 pic_flag=$lt_prog_compiler_pic
13233 compiler_flags=-v
13234 linker_flags=-v
13235 verstring=
13236 output_objdir=.
13237 libname=conftest
13238 lt_save_allow_undefined_flag=$allow_undefined_flag
13239 allow_undefined_flag=
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }
13245 then
13246 lt_cv_archive_cmds_need_lc=no
13247 else
13248 lt_cv_archive_cmds_need_lc=yes
13250 allow_undefined_flag=$lt_save_allow_undefined_flag
13251 else
13252 cat conftest.err 1>&5
13254 $RM conftest*
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13258 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13261 esac
13264 esac
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13418 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13420 if test "$GCC" = yes; then
13421 case $host_os in
13422 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13423 *) lt_awk_arg="/^libraries:/" ;;
13424 esac
13425 case $host_os in
13426 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13427 *) lt_sed_strip_eq="s,=/,/,g" ;;
13428 esac
13429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13430 case $lt_search_path_spec in
13431 *\;*)
13432 # if the path contains ";" then we assume it to be the separator
13433 # otherwise default to the standard path separator (i.e. ":") - it is
13434 # assumed that no part of a normal pathname contains ";" but that should
13435 # okay in the real world where ";" in dirpaths is itself problematic.
13436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13441 esac
13442 # Ok, now we have the path, separated by spaces, we can step through it
13443 # and add multilib dir if necessary.
13444 lt_tmp_lt_search_path_spec=
13445 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13446 for lt_sys_path in $lt_search_path_spec; do
13447 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13449 else
13450 test -d "$lt_sys_path" && \
13451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13453 done
13454 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13455 BEGIN {RS=" "; FS="/|\n";} {
13456 lt_foo="";
13457 lt_count=0;
13458 for (lt_i = NF; lt_i > 0; lt_i--) {
13459 if ($lt_i != "" && $lt_i != ".") {
13460 if ($lt_i == "..") {
13461 lt_count++;
13462 } else {
13463 if (lt_count == 0) {
13464 lt_foo="/" $lt_i lt_foo;
13465 } else {
13466 lt_count--;
13471 if (lt_foo != "") { lt_freq[lt_foo]++; }
13472 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13474 # AWK program above erroneously prepends '/' to C:/dos/paths
13475 # for these hosts.
13476 case $host_os in
13477 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13478 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13479 esac
13480 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13481 else
13482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13484 library_names_spec=
13485 libname_spec='lib$name'
13486 soname_spec=
13487 shrext_cmds=".so"
13488 postinstall_cmds=
13489 postuninstall_cmds=
13490 finish_cmds=
13491 finish_eval=
13492 shlibpath_var=
13493 shlibpath_overrides_runpath=unknown
13494 version_type=none
13495 dynamic_linker="$host_os ld.so"
13496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13497 need_lib_prefix=unknown
13498 hardcode_into_libs=no
13500 # when you set need_version to no, make sure it does not cause -set_version
13501 # flags to be left without arguments
13502 need_version=unknown
13504 case $host_os in
13505 aix3*)
13506 version_type=linux # correct to gnu/linux during the next big refactor
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13508 shlibpath_var=LIBPATH
13510 # AIX 3 has no versioning support, so we append a major version to the name.
13511 soname_spec='${libname}${release}${shared_ext}$major'
13514 aix[4-9]*)
13515 version_type=linux # correct to gnu/linux during the next big refactor
13516 need_lib_prefix=no
13517 need_version=no
13518 hardcode_into_libs=yes
13519 if test "$host_cpu" = ia64; then
13520 # AIX 5 supports IA64
13521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 else
13524 # With GCC up to 2.95.x, collect2 would create an import file
13525 # for dependence libraries. The import file would start with
13526 # the line `#! .'. This would cause the generated library to
13527 # depend on `.', always an invalid library. This was fixed in
13528 # development snapshots of GCC prior to 3.0.
13529 case $host_os in
13530 aix4 | aix4.[01] | aix4.[01].*)
13531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13532 echo ' yes '
13533 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13535 else
13536 can_build_shared=no
13539 esac
13540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13541 # soname into executable. Probably we can add versioning support to
13542 # collect2, so additional links can be useful in future.
13543 if test "$aix_use_runtimelinking" = yes; then
13544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13545 # instead of lib<name>.a to let people know that these are not
13546 # typical AIX shared libraries.
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13548 else
13549 # We preserve .a as extension for shared libraries through AIX4.2
13550 # and later when we are not doing run time linking.
13551 library_names_spec='${libname}${release}.a $libname.a'
13552 soname_spec='${libname}${release}${shared_ext}$major'
13554 shlibpath_var=LIBPATH
13558 amigaos*)
13559 case $host_cpu in
13560 powerpc)
13561 # Since July 2007 AmigaOS4 officially supports .so libraries.
13562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565 m68k)
13566 library_names_spec='$libname.ixlibrary $libname.a'
13567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13568 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13570 esac
13573 beos*)
13574 library_names_spec='${libname}${shared_ext}'
13575 dynamic_linker="$host_os ld.so"
13576 shlibpath_var=LIBRARY_PATH
13579 bsdi[45]*)
13580 version_type=linux # correct to gnu/linux during the next big refactor
13581 need_version=no
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13588 # the default ld.so.conf also contains /usr/contrib/lib and
13589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13590 # libtool to hard-code these into programs
13593 cygwin* | mingw* | pw32* | cegcc*)
13594 version_type=windows
13595 shrext_cmds=".dll"
13596 need_version=no
13597 need_lib_prefix=no
13599 case $GCC,$cc_basename in
13600 yes,*)
13601 # gcc
13602 library_names_spec='$libname.dll.a'
13603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13604 postinstall_cmds='base_file=`basename \${file}`~
13605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13606 dldir=$destdir/`dirname \$dlpath`~
13607 test -d \$dldir || mkdir -p \$dldir~
13608 $install_prog $dir/$dlname \$dldir/$dlname~
13609 chmod a+x \$dldir/$dlname~
13610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13614 dlpath=$dir/\$dldll~
13615 $RM \$dlpath'
13616 shlibpath_overrides_runpath=yes
13618 case $host_os in
13619 cygwin*)
13620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13623 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13625 mingw* | cegcc*)
13626 # MinGW DLLs use traditional 'lib' prefix
13627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13629 pw32*)
13630 # pw32 DLLs use 'pw' prefix rather than 'lib'
13631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13633 esac
13634 dynamic_linker='Win32 ld.exe'
13637 *,cl*)
13638 # Native MSVC
13639 libname_spec='$name'
13640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641 library_names_spec='${libname}.dll.lib'
13643 case $build_os in
13644 mingw*)
13645 sys_lib_search_path_spec=
13646 lt_save_ifs=$IFS
13647 IFS=';'
13648 for lt_path in $LIB
13650 IFS=$lt_save_ifs
13651 # Let DOS variable expansion print the short 8.3 style file name.
13652 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13653 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13654 done
13655 IFS=$lt_save_ifs
13656 # Convert to MSYS style.
13657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13659 cygwin*)
13660 # Convert to unix form, then to dos form, then back to unix form
13661 # but this time dos style (no spaces!) so that the unix form looks
13662 # like /cygdrive/c/PROGRA~1:/cygdr...
13663 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13664 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13665 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13668 sys_lib_search_path_spec="$LIB"
13669 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13670 # It is most probably a Windows format PATH.
13671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13672 else
13673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13675 # FIXME: find the short name or the path components, as spaces are
13676 # common. (e.g. "Program Files" -> "PROGRA~1")
13678 esac
13680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13681 postinstall_cmds='base_file=`basename \${file}`~
13682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13683 dldir=$destdir/`dirname \$dlpath`~
13684 test -d \$dldir || mkdir -p \$dldir~
13685 $install_prog $dir/$dlname \$dldir/$dlname'
13686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13687 dlpath=$dir/\$dldll~
13688 $RM \$dlpath'
13689 shlibpath_overrides_runpath=yes
13690 dynamic_linker='Win32 link.exe'
13694 # Assume MSVC wrapper
13695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13696 dynamic_linker='Win32 ld.exe'
13698 esac
13699 # FIXME: first we should search . and the directory the executable is in
13700 shlibpath_var=PATH
13703 darwin* | rhapsody*)
13704 dynamic_linker="$host_os dyld"
13705 version_type=darwin
13706 need_lib_prefix=no
13707 need_version=no
13708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13709 soname_spec='${libname}${release}${major}$shared_ext'
13710 shlibpath_overrides_runpath=yes
13711 shlibpath_var=DYLD_LIBRARY_PATH
13712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13714 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13718 dgux*)
13719 version_type=linux # correct to gnu/linux during the next big refactor
13720 need_lib_prefix=no
13721 need_version=no
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13723 soname_spec='${libname}${release}${shared_ext}$major'
13724 shlibpath_var=LD_LIBRARY_PATH
13727 freebsd* | dragonfly*)
13728 # DragonFly does not have aout. When/if they implement a new
13729 # versioning mechanism, adjust this.
13730 if test -x /usr/bin/objformat; then
13731 objformat=`/usr/bin/objformat`
13732 else
13733 case $host_os in
13734 freebsd[23].*) objformat=aout ;;
13735 *) objformat=elf ;;
13736 esac
13738 version_type=freebsd-$objformat
13739 case $version_type in
13740 freebsd-elf*)
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13742 need_version=no
13743 need_lib_prefix=no
13745 freebsd-*)
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13747 need_version=yes
13749 esac
13750 shlibpath_var=LD_LIBRARY_PATH
13751 case $host_os in
13752 freebsd2.*)
13753 shlibpath_overrides_runpath=yes
13755 freebsd3.[01]* | freebsdelf3.[01]*)
13756 shlibpath_overrides_runpath=yes
13757 hardcode_into_libs=yes
13759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13761 shlibpath_overrides_runpath=no
13762 hardcode_into_libs=yes
13764 *) # from 4.6 on, and DragonFly
13765 shlibpath_overrides_runpath=yes
13766 hardcode_into_libs=yes
13768 esac
13771 gnu*)
13772 version_type=linux # correct to gnu/linux during the next big refactor
13773 need_lib_prefix=no
13774 need_version=no
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 shlibpath_var=LD_LIBRARY_PATH
13778 shlibpath_overrides_runpath=no
13779 hardcode_into_libs=yes
13782 haiku*)
13783 version_type=linux # correct to gnu/linux during the next big refactor
13784 need_lib_prefix=no
13785 need_version=no
13786 dynamic_linker="$host_os runtime_loader"
13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13788 soname_spec='${libname}${release}${shared_ext}$major'
13789 shlibpath_var=LIBRARY_PATH
13790 shlibpath_overrides_runpath=yes
13791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13792 hardcode_into_libs=yes
13795 hpux9* | hpux10* | hpux11*)
13796 # Give a soname corresponding to the major version so that dld.sl refuses to
13797 # link against other versions.
13798 version_type=sunos
13799 need_lib_prefix=no
13800 need_version=no
13801 case $host_cpu in
13802 ia64*)
13803 shrext_cmds='.so'
13804 hardcode_into_libs=yes
13805 dynamic_linker="$host_os dld.so"
13806 shlibpath_var=LD_LIBRARY_PATH
13807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
13811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13812 else
13813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13817 hppa*64*)
13818 shrext_cmds='.sl'
13819 hardcode_into_libs=yes
13820 dynamic_linker="$host_os dld.sl"
13821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13829 shrext_cmds='.sl'
13830 dynamic_linker="$host_os dld.sl"
13831 shlibpath_var=SHLIB_PATH
13832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13836 esac
13837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13838 postinstall_cmds='chmod 555 $lib'
13839 # or fails outright, so override atomically:
13840 install_override_mode=555
13843 interix[3-9]*)
13844 version_type=linux # correct to gnu/linux during the next big refactor
13845 need_lib_prefix=no
13846 need_version=no
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13848 soname_spec='${libname}${release}${shared_ext}$major'
13849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 shlibpath_overrides_runpath=no
13852 hardcode_into_libs=yes
13855 irix5* | irix6* | nonstopux*)
13856 case $host_os in
13857 nonstopux*) version_type=nonstopux ;;
13859 if test "$lt_cv_prog_gnu_ld" = yes; then
13860 version_type=linux # correct to gnu/linux during the next big refactor
13861 else
13862 version_type=irix
13863 fi ;;
13864 esac
13865 need_lib_prefix=no
13866 need_version=no
13867 soname_spec='${libname}${release}${shared_ext}$major'
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13869 case $host_os in
13870 irix5* | nonstopux*)
13871 libsuff= shlibsuff=
13874 case $LD in # libtool.m4 will add one of these switches to LD
13875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13876 libsuff= shlibsuff= libmagic=32-bit;;
13877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13878 libsuff=32 shlibsuff=N32 libmagic=N32;;
13879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13881 *) libsuff= shlibsuff= libmagic=never-match;;
13882 esac
13884 esac
13885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13886 shlibpath_overrides_runpath=no
13887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13889 hardcode_into_libs=yes
13892 # No shared lib support for Linux oldld, aout, or coff.
13893 linux*oldld* | linux*aout* | linux*coff*)
13894 dynamic_linker=no
13897 # This must be glibc/ELF.
13898 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13899 version_type=linux # correct to gnu/linux during the next big refactor
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 shlibpath_overrides_runpath=no
13908 # Some binutils ld are patched to set DT_RUNPATH
13909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 lt_cv_shlibpath_overrides_runpath=no
13913 save_LDFLAGS=$LDFLAGS
13914 save_libdir=$libdir
13915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13921 main ()
13925 return 0;
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13930 lt_cv_shlibpath_overrides_runpath=yes
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LDFLAGS=$save_LDFLAGS
13936 libdir=$save_libdir
13940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13942 # This implies no fast_install, which is unacceptable.
13943 # Some rework will be needed to allow for fast_install
13944 # before this can be enabled.
13945 hardcode_into_libs=yes
13947 # Append ld.so.conf contents to the search path
13948 if test -f /etc/ld.so.conf; then
13949 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' ' '`
13950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13953 # We used to test for /lib/ld.so.1 and disable shared libraries on
13954 # powerpc, because MkLinux only supported shared libraries with the
13955 # GNU dynamic linker. Since this was broken with cross compilers,
13956 # most powerpc-linux boxes support dynamic linking these days and
13957 # people can always --disable-shared, the test was removed, and we
13958 # assume the GNU/Linux dynamic linker is in use.
13959 dynamic_linker='GNU/Linux ld.so'
13962 netbsdelf*-gnu)
13963 version_type=linux
13964 need_lib_prefix=no
13965 need_version=no
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=no
13970 hardcode_into_libs=yes
13971 dynamic_linker='NetBSD ld.elf_so'
13974 netbsd*)
13975 version_type=sunos
13976 need_lib_prefix=no
13977 need_version=no
13978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13981 dynamic_linker='NetBSD (a.out) ld.so'
13982 else
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 dynamic_linker='NetBSD ld.elf_so'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=yes
13989 hardcode_into_libs=yes
13992 newsos6)
13993 version_type=linux # correct to gnu/linux during the next big refactor
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 shlibpath_overrides_runpath=yes
13999 *nto* | *qnx*)
14000 version_type=qnx
14001 need_lib_prefix=no
14002 need_version=no
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=no
14007 hardcode_into_libs=yes
14008 dynamic_linker='ldqnx.so'
14011 openbsd*)
14012 version_type=sunos
14013 sys_lib_dlsearch_path_spec="/usr/lib"
14014 need_lib_prefix=no
14015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14016 case $host_os in
14017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14018 *) need_version=no ;;
14019 esac
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14024 case $host_os in
14025 openbsd2.[89] | openbsd2.[89].*)
14026 shlibpath_overrides_runpath=no
14029 shlibpath_overrides_runpath=yes
14031 esac
14032 else
14033 shlibpath_overrides_runpath=yes
14037 os2*)
14038 libname_spec='$name'
14039 shrext_cmds=".dll"
14040 need_lib_prefix=no
14041 library_names_spec='$libname${shared_ext} $libname.a'
14042 dynamic_linker='OS/2 ld.exe'
14043 shlibpath_var=LIBPATH
14046 osf3* | osf4* | osf5*)
14047 version_type=osf
14048 need_lib_prefix=no
14049 need_version=no
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14057 rdos*)
14058 dynamic_linker=no
14061 solaris*)
14062 version_type=linux # correct to gnu/linux during the next big refactor
14063 need_lib_prefix=no
14064 need_version=no
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14069 hardcode_into_libs=yes
14070 # ldd complains unless libraries are executable
14071 postinstall_cmds='chmod +x $lib'
14074 sunos4*)
14075 version_type=sunos
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 shlibpath_overrides_runpath=yes
14080 if test "$with_gnu_ld" = yes; then
14081 need_lib_prefix=no
14083 need_version=yes
14086 sysv4 | sysv4.3*)
14087 version_type=linux # correct to gnu/linux during the next big refactor
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 soname_spec='${libname}${release}${shared_ext}$major'
14090 shlibpath_var=LD_LIBRARY_PATH
14091 case $host_vendor in
14092 sni)
14093 shlibpath_overrides_runpath=no
14094 need_lib_prefix=no
14095 runpath_var=LD_RUN_PATH
14097 siemens)
14098 need_lib_prefix=no
14100 motorola)
14101 need_lib_prefix=no
14102 need_version=no
14103 shlibpath_overrides_runpath=no
14104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14106 esac
14109 sysv4*MP*)
14110 if test -d /usr/nec ;then
14111 version_type=linux # correct to gnu/linux during the next big refactor
14112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14113 soname_spec='$libname${shared_ext}.$major'
14114 shlibpath_var=LD_LIBRARY_PATH
14118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14119 version_type=freebsd-elf
14120 need_lib_prefix=no
14121 need_version=no
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 hardcode_into_libs=yes
14127 if test "$with_gnu_ld" = yes; then
14128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14129 else
14130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14131 case $host_os in
14132 sco3.2v5*)
14133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14135 esac
14137 sys_lib_dlsearch_path_spec='/usr/lib'
14140 tpf*)
14141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14142 version_type=linux # correct to gnu/linux during the next big refactor
14143 need_lib_prefix=no
14144 need_version=no
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=no
14148 hardcode_into_libs=yes
14151 uts4*)
14152 version_type=linux # correct to gnu/linux during the next big refactor
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14159 dynamic_linker=no
14161 esac
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14163 $as_echo "$dynamic_linker" >&6; }
14164 test "$dynamic_linker" = no && can_build_shared=no
14166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14167 if test "$GCC" = yes; then
14168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14271 hardcode_action=
14272 if test -n "$hardcode_libdir_flag_spec" ||
14273 test -n "$runpath_var" ||
14274 test "X$hardcode_automatic" = "Xyes" ; then
14276 # We can hardcode non-existent directories.
14277 if test "$hardcode_direct" != no &&
14278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14279 # have to relink, otherwise we might link with an installed library
14280 # when we should be linking with a yet-to-be-installed one
14281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14282 test "$hardcode_minus_L" != no; then
14283 # Linking always hardcodes the temporary library directory.
14284 hardcode_action=relink
14285 else
14286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14287 hardcode_action=immediate
14289 else
14290 # We cannot hardcode anything, or else we can only hardcode existing
14291 # directories.
14292 hardcode_action=unsupported
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14295 $as_echo "$hardcode_action" >&6; }
14297 if test "$hardcode_action" = relink ||
14298 test "$inherit_rpath" = yes; then
14299 # Fast installation is not supported
14300 enable_fast_install=no
14301 elif test "$shlibpath_overrides_runpath" = yes ||
14302 test "$enable_shared" = no; then
14303 # Fast installation is not necessary
14304 enable_fast_install=needless
14312 if test "x$enable_dlopen" != xyes; then
14313 enable_dlopen=unknown
14314 enable_dlopen_self=unknown
14315 enable_dlopen_self_static=unknown
14316 else
14317 lt_cv_dlopen=no
14318 lt_cv_dlopen_libs=
14320 case $host_os in
14321 beos*)
14322 lt_cv_dlopen="load_add_on"
14323 lt_cv_dlopen_libs=
14324 lt_cv_dlopen_self=yes
14327 mingw* | pw32* | cegcc*)
14328 lt_cv_dlopen="LoadLibrary"
14329 lt_cv_dlopen_libs=
14332 cygwin*)
14333 lt_cv_dlopen="dlopen"
14334 lt_cv_dlopen_libs=
14337 darwin*)
14338 # if libdl is installed we need to link against it
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14341 if ${ac_cv_lib_dl_dlopen+:} false; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 ac_check_lib_save_LIBS=$LIBS
14345 LIBS="-ldl $LIBS"
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14349 /* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 char dlopen ();
14357 main ()
14359 return dlopen ();
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 ac_cv_lib_dl_dlopen=yes
14366 else
14367 ac_cv_lib_dl_dlopen=no
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14377 else
14379 lt_cv_dlopen="dyld"
14380 lt_cv_dlopen_libs=
14381 lt_cv_dlopen_self=yes
14388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14389 if test "x$ac_cv_func_shl_load" = xyes; then :
14390 lt_cv_dlopen="shl_load"
14391 else
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14394 if ${ac_cv_lib_dld_shl_load+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-ldld $LIBS"
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14402 /* Override any GCC internal prototype to avoid an error.
14403 Use char because int might match the return type of a GCC
14404 builtin and then its argument prototype would still apply. */
14405 #ifdef __cplusplus
14406 extern "C"
14407 #endif
14408 char shl_load ();
14410 main ()
14412 return shl_load ();
14414 return 0;
14416 _ACEOF
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 ac_cv_lib_dld_shl_load=yes
14419 else
14420 ac_cv_lib_dld_shl_load=no
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LIBS=$ac_check_lib_save_LIBS
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14430 else
14431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14432 if test "x$ac_cv_func_dlopen" = xyes; then :
14433 lt_cv_dlopen="dlopen"
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14437 if ${ac_cv_lib_dl_dlopen+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-ldl $LIBS"
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14445 /* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply. */
14448 #ifdef __cplusplus
14449 extern "C"
14450 #endif
14451 char dlopen ();
14453 main ()
14455 return dlopen ();
14457 return 0;
14459 _ACEOF
14460 if ac_fn_c_try_link "$LINENO"; then :
14461 ac_cv_lib_dl_dlopen=yes
14462 else
14463 ac_cv_lib_dl_dlopen=no
14465 rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14473 else
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14476 if ${ac_cv_lib_svld_dlopen+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 ac_check_lib_save_LIBS=$LIBS
14480 LIBS="-lsvld $LIBS"
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14484 /* Override any GCC internal prototype to avoid an error.
14485 Use char because int might match the return type of a GCC
14486 builtin and then its argument prototype would still apply. */
14487 #ifdef __cplusplus
14488 extern "C"
14489 #endif
14490 char dlopen ();
14492 main ()
14494 return dlopen ();
14496 return 0;
14498 _ACEOF
14499 if ac_fn_c_try_link "$LINENO"; then :
14500 ac_cv_lib_svld_dlopen=yes
14501 else
14502 ac_cv_lib_svld_dlopen=no
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14515 if ${ac_cv_lib_dld_dld_link+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-ldld $LIBS"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char dld_link ();
14531 main ()
14533 return dld_link ();
14535 return 0;
14537 _ACEOF
14538 if ac_fn_c_try_link "$LINENO"; then :
14539 ac_cv_lib_dld_dld_link=yes
14540 else
14541 ac_cv_lib_dld_dld_link=no
14543 rm -f core conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14569 esac
14571 if test "x$lt_cv_dlopen" != xno; then
14572 enable_dlopen=yes
14573 else
14574 enable_dlopen=no
14577 case $lt_cv_dlopen in
14578 dlopen)
14579 save_CPPFLAGS="$CPPFLAGS"
14580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14582 save_LDFLAGS="$LDFLAGS"
14583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14585 save_LIBS="$LIBS"
14586 LIBS="$lt_cv_dlopen_libs $LIBS"
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14589 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14590 if ${lt_cv_dlopen_self+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 if test "$cross_compiling" = yes; then :
14594 lt_cv_dlopen_self=cross
14595 else
14596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14597 lt_status=$lt_dlunknown
14598 cat > conftest.$ac_ext <<_LT_EOF
14599 #line $LINENO "configure"
14600 #include "confdefs.h"
14602 #if HAVE_DLFCN_H
14603 #include <dlfcn.h>
14604 #endif
14606 #include <stdio.h>
14608 #ifdef RTLD_GLOBAL
14609 # define LT_DLGLOBAL RTLD_GLOBAL
14610 #else
14611 # ifdef DL_GLOBAL
14612 # define LT_DLGLOBAL DL_GLOBAL
14613 # else
14614 # define LT_DLGLOBAL 0
14615 # endif
14616 #endif
14618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14619 find out it does not work in some platform. */
14620 #ifndef LT_DLLAZY_OR_NOW
14621 # ifdef RTLD_LAZY
14622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14623 # else
14624 # ifdef DL_LAZY
14625 # define LT_DLLAZY_OR_NOW DL_LAZY
14626 # else
14627 # ifdef RTLD_NOW
14628 # define LT_DLLAZY_OR_NOW RTLD_NOW
14629 # else
14630 # ifdef DL_NOW
14631 # define LT_DLLAZY_OR_NOW DL_NOW
14632 # else
14633 # define LT_DLLAZY_OR_NOW 0
14634 # endif
14635 # endif
14636 # endif
14637 # endif
14638 #endif
14640 /* When -fvisbility=hidden is used, assume the code has been annotated
14641 correspondingly for the symbols needed. */
14642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14643 int fnord () __attribute__((visibility("default")));
14644 #endif
14646 int fnord () { return 42; }
14647 int main ()
14649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14650 int status = $lt_dlunknown;
14652 if (self)
14654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14655 else
14657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14658 else puts (dlerror ());
14660 /* dlclose (self); */
14662 else
14663 puts (dlerror ());
14665 return status;
14667 _LT_EOF
14668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14669 (eval $ac_link) 2>&5
14670 ac_status=$?
14671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14673 (./conftest; exit; ) >&5 2>/dev/null
14674 lt_status=$?
14675 case x$lt_status in
14676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14679 esac
14680 else :
14681 # compilation failed
14682 lt_cv_dlopen_self=no
14685 rm -fr conftest*
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14690 $as_echo "$lt_cv_dlopen_self" >&6; }
14692 if test "x$lt_cv_dlopen_self" = xyes; then
14693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14696 if ${lt_cv_dlopen_self_static+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 if test "$cross_compiling" = yes; then :
14700 lt_cv_dlopen_self_static=cross
14701 else
14702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14703 lt_status=$lt_dlunknown
14704 cat > conftest.$ac_ext <<_LT_EOF
14705 #line $LINENO "configure"
14706 #include "confdefs.h"
14708 #if HAVE_DLFCN_H
14709 #include <dlfcn.h>
14710 #endif
14712 #include <stdio.h>
14714 #ifdef RTLD_GLOBAL
14715 # define LT_DLGLOBAL RTLD_GLOBAL
14716 #else
14717 # ifdef DL_GLOBAL
14718 # define LT_DLGLOBAL DL_GLOBAL
14719 # else
14720 # define LT_DLGLOBAL 0
14721 # endif
14722 #endif
14724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14725 find out it does not work in some platform. */
14726 #ifndef LT_DLLAZY_OR_NOW
14727 # ifdef RTLD_LAZY
14728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14729 # else
14730 # ifdef DL_LAZY
14731 # define LT_DLLAZY_OR_NOW DL_LAZY
14732 # else
14733 # ifdef RTLD_NOW
14734 # define LT_DLLAZY_OR_NOW RTLD_NOW
14735 # else
14736 # ifdef DL_NOW
14737 # define LT_DLLAZY_OR_NOW DL_NOW
14738 # else
14739 # define LT_DLLAZY_OR_NOW 0
14740 # endif
14741 # endif
14742 # endif
14743 # endif
14744 #endif
14746 /* When -fvisbility=hidden is used, assume the code has been annotated
14747 correspondingly for the symbols needed. */
14748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14749 int fnord () __attribute__((visibility("default")));
14750 #endif
14752 int fnord () { return 42; }
14753 int main ()
14755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14756 int status = $lt_dlunknown;
14758 if (self)
14760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14761 else
14763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14764 else puts (dlerror ());
14766 /* dlclose (self); */
14768 else
14769 puts (dlerror ());
14771 return status;
14773 _LT_EOF
14774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14775 (eval $ac_link) 2>&5
14776 ac_status=$?
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14779 (./conftest; exit; ) >&5 2>/dev/null
14780 lt_status=$?
14781 case x$lt_status in
14782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14785 esac
14786 else :
14787 # compilation failed
14788 lt_cv_dlopen_self_static=no
14791 rm -fr conftest*
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14796 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14799 CPPFLAGS="$save_CPPFLAGS"
14800 LDFLAGS="$save_LDFLAGS"
14801 LIBS="$save_LIBS"
14803 esac
14805 case $lt_cv_dlopen_self in
14806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14807 *) enable_dlopen_self=unknown ;;
14808 esac
14810 case $lt_cv_dlopen_self_static in
14811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14812 *) enable_dlopen_self_static=unknown ;;
14813 esac
14832 striplib=
14833 old_striplib=
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14840 $as_echo "yes" >&6; }
14841 else
14842 # FIXME - insert some real tests, host_os isn't really good enough
14843 case $host_os in
14844 darwin*)
14845 if test -n "$STRIP" ; then
14846 striplib="$STRIP -x"
14847 old_striplib="$STRIP -S"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14849 $as_echo "yes" >&6; }
14850 else
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14859 esac
14873 # Report which library types will actually be built
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14875 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14877 $as_echo "$can_build_shared" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14880 $as_echo_n "checking whether to build shared libraries... " >&6; }
14881 test "$can_build_shared" = "no" && enable_shared=no
14883 # On AIX, shared libraries and static libraries use the same namespace, and
14884 # are all built from PIC.
14885 case $host_os in
14886 aix3*)
14887 test "$enable_shared" = yes && enable_static=no
14888 if test -n "$RANLIB"; then
14889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14890 postinstall_cmds='$RANLIB $lib'
14894 aix[4-9]*)
14895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14896 test "$enable_shared" = yes && enable_static=no
14899 esac
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14901 $as_echo "$enable_shared" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14904 $as_echo_n "checking whether to build static libraries... " >&6; }
14905 # Make sure either enable_shared or enable_static is yes.
14906 test "$enable_shared" = yes || enable_static=yes
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14908 $as_echo "$enable_static" >&6; }
14914 ac_ext=c
14915 ac_cpp='$CPP $CPPFLAGS'
14916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920 CC="$lt_save_CC"
14922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14924 (test "X$CXX" != "Xg++"))) ; then
14925 ac_ext=cpp
14926 ac_cpp='$CXXCPP $CPPFLAGS'
14927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14931 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14932 if test -z "$CXXCPP"; then
14933 if ${ac_cv_prog_CXXCPP+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 # Double quotes because CXXCPP needs to be expanded
14937 for CXXCPP in "$CXX -E" "/lib/cpp"
14939 ac_preproc_ok=false
14940 for ac_cxx_preproc_warn_flag in '' yes
14942 # Use a header file that comes with gcc, so configuring glibc
14943 # with a fresh cross-compiler works.
14944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14945 # <limits.h> exists even on freestanding compilers.
14946 # On the NeXT, cc -E runs the code through the compiler's parser,
14947 # not just through cpp. "Syntax error" is here to catch this case.
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 #ifdef __STDC__
14951 # include <limits.h>
14952 #else
14953 # include <assert.h>
14954 #endif
14955 Syntax error
14956 _ACEOF
14957 if ac_fn_cxx_try_cpp "$LINENO"; then :
14959 else
14960 # Broken: fails on valid input.
14961 continue
14963 rm -f conftest.err conftest.i conftest.$ac_ext
14965 # OK, works on sane cases. Now check whether nonexistent headers
14966 # can be detected and how.
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <ac_nonexistent.h>
14970 _ACEOF
14971 if ac_fn_cxx_try_cpp "$LINENO"; then :
14972 # Broken: success on invalid input.
14973 continue
14974 else
14975 # Passes both tests.
14976 ac_preproc_ok=:
14977 break
14979 rm -f conftest.err conftest.i conftest.$ac_ext
14981 done
14982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14983 rm -f conftest.i conftest.err conftest.$ac_ext
14984 if $ac_preproc_ok; then :
14985 break
14988 done
14989 ac_cv_prog_CXXCPP=$CXXCPP
14992 CXXCPP=$ac_cv_prog_CXXCPP
14993 else
14994 ac_cv_prog_CXXCPP=$CXXCPP
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14997 $as_echo "$CXXCPP" >&6; }
14998 ac_preproc_ok=false
14999 for ac_cxx_preproc_warn_flag in '' yes
15001 # Use a header file that comes with gcc, so configuring glibc
15002 # with a fresh cross-compiler works.
15003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15004 # <limits.h> exists even on freestanding compilers.
15005 # On the NeXT, cc -E runs the code through the compiler's parser,
15006 # not just through cpp. "Syntax error" is here to catch this case.
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 #ifdef __STDC__
15010 # include <limits.h>
15011 #else
15012 # include <assert.h>
15013 #endif
15014 Syntax error
15015 _ACEOF
15016 if ac_fn_cxx_try_cpp "$LINENO"; then :
15018 else
15019 # Broken: fails on valid input.
15020 continue
15022 rm -f conftest.err conftest.i conftest.$ac_ext
15024 # OK, works on sane cases. Now check whether nonexistent headers
15025 # can be detected and how.
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <ac_nonexistent.h>
15029 _ACEOF
15030 if ac_fn_cxx_try_cpp "$LINENO"; then :
15031 # Broken: success on invalid input.
15032 continue
15033 else
15034 # Passes both tests.
15035 ac_preproc_ok=:
15036 break
15038 rm -f conftest.err conftest.i conftest.$ac_ext
15040 done
15041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15042 rm -f conftest.i conftest.err conftest.$ac_ext
15043 if $ac_preproc_ok; then :
15045 else
15046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15048 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15049 See \`config.log' for more details" "$LINENO" 5; }
15052 ac_ext=c
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15058 else
15059 _lt_caught_CXX_error=yes
15062 ac_ext=cpp
15063 ac_cpp='$CXXCPP $CPPFLAGS'
15064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15068 archive_cmds_need_lc_CXX=no
15069 allow_undefined_flag_CXX=
15070 always_export_symbols_CXX=no
15071 archive_expsym_cmds_CXX=
15072 compiler_needs_object_CXX=no
15073 export_dynamic_flag_spec_CXX=
15074 hardcode_direct_CXX=no
15075 hardcode_direct_absolute_CXX=no
15076 hardcode_libdir_flag_spec_CXX=
15077 hardcode_libdir_separator_CXX=
15078 hardcode_minus_L_CXX=no
15079 hardcode_shlibpath_var_CXX=unsupported
15080 hardcode_automatic_CXX=no
15081 inherit_rpath_CXX=no
15082 module_cmds_CXX=
15083 module_expsym_cmds_CXX=
15084 link_all_deplibs_CXX=unknown
15085 old_archive_cmds_CXX=$old_archive_cmds
15086 reload_flag_CXX=$reload_flag
15087 reload_cmds_CXX=$reload_cmds
15088 no_undefined_flag_CXX=
15089 whole_archive_flag_spec_CXX=
15090 enable_shared_with_static_runtimes_CXX=no
15092 # Source file extension for C++ test sources.
15093 ac_ext=cpp
15095 # Object file extension for compiled C++ test sources.
15096 objext=o
15097 objext_CXX=$objext
15099 # No sense in running all these tests if we already determined that
15100 # the CXX compiler isn't working. Some variables (like enable_shared)
15101 # are currently assumed to apply to all compilers on this platform,
15102 # and will be corrupted by setting them based on a non-working compiler.
15103 if test "$_lt_caught_CXX_error" != yes; then
15104 # Code to be used in simple compile tests
15105 lt_simple_compile_test_code="int some_variable = 0;"
15107 # Code to be used in simple link tests
15108 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15117 # If no C compiler was specified, use CC.
15118 LTCC=${LTCC-"$CC"}
15120 # If no C compiler flags were specified, use CFLAGS.
15121 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15123 # Allow CC to be a program name with arguments.
15124 compiler=$CC
15127 # save warnings/boilerplate of simple test code
15128 ac_outfile=conftest.$ac_objext
15129 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15130 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15131 _lt_compiler_boilerplate=`cat conftest.err`
15132 $RM conftest*
15134 ac_outfile=conftest.$ac_objext
15135 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15136 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15137 _lt_linker_boilerplate=`cat conftest.err`
15138 $RM -r conftest*
15141 # Allow CC to be a program name with arguments.
15142 lt_save_CC=$CC
15143 lt_save_CFLAGS=$CFLAGS
15144 lt_save_LD=$LD
15145 lt_save_GCC=$GCC
15146 GCC=$GXX
15147 lt_save_with_gnu_ld=$with_gnu_ld
15148 lt_save_path_LD=$lt_cv_path_LD
15149 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15150 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15151 else
15152 $as_unset lt_cv_prog_gnu_ld
15154 if test -n "${lt_cv_path_LDCXX+set}"; then
15155 lt_cv_path_LD=$lt_cv_path_LDCXX
15156 else
15157 $as_unset lt_cv_path_LD
15159 test -z "${LDCXX+set}" || LD=$LDCXX
15160 CC=${CXX-"c++"}
15161 CFLAGS=$CXXFLAGS
15162 compiler=$CC
15163 compiler_CXX=$CC
15164 for cc_temp in $compiler""; do
15165 case $cc_temp in
15166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15168 \-*) ;;
15169 *) break;;
15170 esac
15171 done
15172 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15175 if test -n "$compiler"; then
15176 # We don't want -fno-exception when compiling C++ code, so set the
15177 # no_builtin_flag separately
15178 if test "$GXX" = yes; then
15179 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15180 else
15181 lt_prog_compiler_no_builtin_flag_CXX=
15184 if test "$GXX" = yes; then
15185 # Set up default GNU C++ configuration
15189 # Check whether --with-gnu-ld was given.
15190 if test "${with_gnu_ld+set}" = set; then :
15191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15192 else
15193 with_gnu_ld=no
15196 ac_prog=ld
15197 if test "$GCC" = yes; then
15198 # Check if gcc -print-prog-name=ld gives a path.
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15200 $as_echo_n "checking for ld used by $CC... " >&6; }
15201 case $host in
15202 *-*-mingw*)
15203 # gcc leaves a trailing carriage return which upsets mingw
15204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15207 esac
15208 case $ac_prog in
15209 # Accept absolute paths.
15210 [\\/]* | ?:[\\/]*)
15211 re_direlt='/[^/][^/]*/\.\./'
15212 # Canonicalize the pathname of ld
15213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15216 done
15217 test -z "$LD" && LD="$ac_prog"
15220 # If it fails, then pretend we aren't using GCC.
15221 ac_prog=ld
15224 # If it is relative, then search for the first ld in PATH.
15225 with_gnu_ld=unknown
15227 esac
15228 elif test "$with_gnu_ld" = yes; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15230 $as_echo_n "checking for GNU ld... " >&6; }
15231 else
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15233 $as_echo_n "checking for non-GNU ld... " >&6; }
15235 if ${lt_cv_path_LD+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 if test -z "$LD"; then
15239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15240 for ac_dir in $PATH; do
15241 IFS="$lt_save_ifs"
15242 test -z "$ac_dir" && ac_dir=.
15243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15244 lt_cv_path_LD="$ac_dir/$ac_prog"
15245 # Check to see if the program is GNU ld. I'd rather use --version,
15246 # but apparently some variants of GNU ld only accept -v.
15247 # Break only if it was the GNU/non-GNU ld that we prefer.
15248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15249 *GNU* | *'with BFD'*)
15250 test "$with_gnu_ld" != no && break
15253 test "$with_gnu_ld" != yes && break
15255 esac
15257 done
15258 IFS="$lt_save_ifs"
15259 else
15260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15264 LD="$lt_cv_path_LD"
15265 if test -n "$LD"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15267 $as_echo "$LD" >&6; }
15268 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15275 if ${lt_cv_prog_gnu_ld+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277 else
15278 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15279 case `$LD -v 2>&1 </dev/null` in
15280 *GNU* | *'with BFD'*)
15281 lt_cv_prog_gnu_ld=yes
15284 lt_cv_prog_gnu_ld=no
15286 esac
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15290 with_gnu_ld=$lt_cv_prog_gnu_ld
15298 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15299 # archiving commands below assume that GNU ld is being used.
15300 if test "$with_gnu_ld" = yes; then
15301 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15302 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'
15304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15307 # If archive_cmds runs LD, not CC, wlarc should be empty
15308 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15309 # investigate it a little bit more. (MM)
15310 wlarc='${wl}'
15312 # ancient GNU ld didn't support --whole-archive et. al.
15313 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15314 $GREP 'no-whole-archive' > /dev/null; then
15315 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15316 else
15317 whole_archive_flag_spec_CXX=
15319 else
15320 with_gnu_ld=no
15321 wlarc=
15323 # A generic and very simple default shared library creation
15324 # command for GNU C++ for the case where it uses the native
15325 # linker, instead of GNU ld. If possible, this setting should
15326 # overridden to take advantage of the native linker features on
15327 # the platform it is being used on.
15328 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15331 # Commands to make compiler produce verbose output that lists
15332 # what "hidden" libraries, object files and flags are used when
15333 # linking a shared library.
15334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15336 else
15337 GXX=no
15338 with_gnu_ld=no
15339 wlarc=
15342 # PORTME: fill in a description of your system's C++ link characteristics
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15345 ld_shlibs_CXX=yes
15346 case $host_os in
15347 aix3*)
15348 # FIXME: insert proper C++ library support
15349 ld_shlibs_CXX=no
15351 aix[4-9]*)
15352 if test "$host_cpu" = ia64; then
15353 # On IA64, the linker does run time linking by default, so we don't
15354 # have to do anything special.
15355 aix_use_runtimelinking=no
15356 exp_sym_flag='-Bexport'
15357 no_entry_flag=""
15358 else
15359 aix_use_runtimelinking=no
15361 # Test if we are trying to use run time linking or normal
15362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15363 # need to do runtime linking.
15364 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15365 for ld_flag in $LDFLAGS; do
15366 case $ld_flag in
15367 *-brtl*)
15368 aix_use_runtimelinking=yes
15369 break
15371 esac
15372 done
15374 esac
15376 exp_sym_flag='-bexport'
15377 no_entry_flag='-bnoentry'
15380 # When large executables or shared objects are built, AIX ld can
15381 # have problems creating the table of contents. If linking a library
15382 # or program results in "error TOC overflow" add -mminimal-toc to
15383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15386 archive_cmds_CXX=''
15387 hardcode_direct_CXX=yes
15388 hardcode_direct_absolute_CXX=yes
15389 hardcode_libdir_separator_CXX=':'
15390 link_all_deplibs_CXX=yes
15391 file_list_spec_CXX='${wl}-f,'
15393 if test "$GXX" = yes; then
15394 case $host_os in aix4.[012]|aix4.[012].*)
15395 # We only want to do this on AIX 4.2 and lower, the check
15396 # below for broken collect2 doesn't work under 4.3+
15397 collect2name=`${CC} -print-prog-name=collect2`
15398 if test -f "$collect2name" &&
15399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15400 then
15401 # We have reworked collect2
15403 else
15404 # We have old collect2
15405 hardcode_direct_CXX=unsupported
15406 # It fails to find uninstalled libraries when the uninstalled
15407 # path is not listed in the libpath. Setting hardcode_minus_L
15408 # to unsupported forces relinking
15409 hardcode_minus_L_CXX=yes
15410 hardcode_libdir_flag_spec_CXX='-L$libdir'
15411 hardcode_libdir_separator_CXX=
15413 esac
15414 shared_flag='-shared'
15415 if test "$aix_use_runtimelinking" = yes; then
15416 shared_flag="$shared_flag "'${wl}-G'
15418 else
15419 # not using gcc
15420 if test "$host_cpu" = ia64; then
15421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15422 # chokes on -Wl,-G. The following line is correct:
15423 shared_flag='-G'
15424 else
15425 if test "$aix_use_runtimelinking" = yes; then
15426 shared_flag='${wl}-G'
15427 else
15428 shared_flag='${wl}-bM:SRE'
15433 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15434 # It seems that -bexpall does not export symbols beginning with
15435 # underscore (_), so it is better to generate a list of symbols to
15436 # export.
15437 always_export_symbols_CXX=yes
15438 if test "$aix_use_runtimelinking" = yes; then
15439 # Warning - without using the other runtime loading flags (-brtl),
15440 # -berok will link without error, but may produce a broken library.
15441 allow_undefined_flag_CXX='-berok'
15442 # Determine the default libpath from the value encoded in an empty
15443 # executable.
15444 if test "${lt_cv_aix_libpath+set}" = set; then
15445 aix_libpath=$lt_cv_aix_libpath
15446 else
15447 if ${lt_cv_aix_libpath__CXX+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449 else
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15454 main ()
15458 return 0;
15460 _ACEOF
15461 if ac_fn_cxx_try_link "$LINENO"; then :
15463 lt_aix_libpath_sed='
15464 /Import File Strings/,/^$/ {
15465 /^0/ {
15466 s/^0 *\([^ ]*\) *$/\1/
15470 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15471 # Check for a 64-bit object if we didn't find anything.
15472 if test -z "$lt_cv_aix_libpath__CXX"; then
15473 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478 if test -z "$lt_cv_aix_libpath__CXX"; then
15479 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15484 aix_libpath=$lt_cv_aix_libpath__CXX
15487 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15489 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15490 else
15491 if test "$host_cpu" = ia64; then
15492 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15493 allow_undefined_flag_CXX="-z nodefs"
15494 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"
15495 else
15496 # Determine the default libpath from the value encoded in an
15497 # empty executable.
15498 if test "${lt_cv_aix_libpath+set}" = set; then
15499 aix_libpath=$lt_cv_aix_libpath
15500 else
15501 if ${lt_cv_aix_libpath__CXX+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15508 main ()
15512 return 0;
15514 _ACEOF
15515 if ac_fn_cxx_try_link "$LINENO"; then :
15517 lt_aix_libpath_sed='
15518 /Import File Strings/,/^$/ {
15519 /^0/ {
15520 s/^0 *\([^ ]*\) *$/\1/
15524 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15525 # Check for a 64-bit object if we didn't find anything.
15526 if test -z "$lt_cv_aix_libpath__CXX"; then
15527 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15530 rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 if test -z "$lt_cv_aix_libpath__CXX"; then
15533 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15538 aix_libpath=$lt_cv_aix_libpath__CXX
15541 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15542 # Warning - without using the other run time loading flags,
15543 # -berok will link without error, but may produce a broken library.
15544 no_undefined_flag_CXX=' ${wl}-bernotok'
15545 allow_undefined_flag_CXX=' ${wl}-berok'
15546 if test "$with_gnu_ld" = yes; then
15547 # We only use this code for GNU lds that support --whole-archive.
15548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15549 else
15550 # Exported symbols can be pulled into shared objects from archives
15551 whole_archive_flag_spec_CXX='$convenience'
15553 archive_cmds_need_lc_CXX=yes
15554 # This is similar to how AIX traditionally builds its shared
15555 # libraries.
15556 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15561 beos*)
15562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15563 allow_undefined_flag_CXX=unsupported
15564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15565 # support --undefined. This deserves some investigation. FIXME
15566 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15567 else
15568 ld_shlibs_CXX=no
15572 chorus*)
15573 case $cc_basename in
15575 # FIXME: insert proper C++ library support
15576 ld_shlibs_CXX=no
15578 esac
15581 cygwin* | mingw* | pw32* | cegcc*)
15582 case $GXX,$cc_basename in
15583 ,cl* | no,cl*)
15584 # Native MSVC
15585 # hardcode_libdir_flag_spec is actually meaningless, as there is
15586 # no search path for DLLs.
15587 hardcode_libdir_flag_spec_CXX=' '
15588 allow_undefined_flag_CXX=unsupported
15589 always_export_symbols_CXX=yes
15590 file_list_spec_CXX='@'
15591 # Tell ltmain to make .lib files, not .a files.
15592 libext=lib
15593 # Tell ltmain to make .dll files, not .so files.
15594 shrext_cmds=".dll"
15595 # FIXME: Setting linknames here is a bad hack.
15596 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15597 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15598 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15599 else
15600 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15602 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15603 linknames='
15604 # The linker will not automatically build a static lib if we build a DLL.
15605 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15606 enable_shared_with_static_runtimes_CXX=yes
15607 # Don't use ranlib
15608 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15609 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15610 lt_tool_outputfile="@TOOL_OUTPUT@"~
15611 case $lt_outputfile in
15612 *.exe|*.EXE) ;;
15614 lt_outputfile="$lt_outputfile.exe"
15615 lt_tool_outputfile="$lt_tool_outputfile.exe"
15617 esac~
15618 func_to_tool_file "$lt_outputfile"~
15619 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15620 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15621 $RM "$lt_outputfile.manifest";
15625 # g++
15626 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15627 # as there is no search path for DLLs.
15628 hardcode_libdir_flag_spec_CXX='-L$libdir'
15629 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15630 allow_undefined_flag_CXX=unsupported
15631 always_export_symbols_CXX=no
15632 enable_shared_with_static_runtimes_CXX=yes
15634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15635 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'
15636 # If the export-symbols file already is a .def file (1st line
15637 # is EXPORTS), use it as is; otherwise, prepend...
15638 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15639 cp $export_symbols $output_objdir/$soname.def;
15640 else
15641 echo EXPORTS > $output_objdir/$soname.def;
15642 cat $export_symbols >> $output_objdir/$soname.def;
15644 $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'
15645 else
15646 ld_shlibs_CXX=no
15649 esac
15651 darwin* | rhapsody*)
15654 archive_cmds_need_lc_CXX=no
15655 hardcode_direct_CXX=no
15656 hardcode_automatic_CXX=yes
15657 hardcode_shlibpath_var_CXX=unsupported
15658 if test "$lt_cv_ld_force_load" = "yes"; then
15659 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\"`'
15661 else
15662 whole_archive_flag_spec_CXX=''
15664 link_all_deplibs_CXX=yes
15665 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15666 case $cc_basename in
15667 ifort*) _lt_dar_can_shared=yes ;;
15668 *) _lt_dar_can_shared=$GCC ;;
15669 esac
15670 if test "$_lt_dar_can_shared" = "yes"; then
15671 output_verbose_link_cmd=func_echo_all
15672 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}"
15673 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15674 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}"
15675 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}"
15676 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15677 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}"
15678 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}"
15681 else
15682 ld_shlibs_CXX=no
15687 dgux*)
15688 case $cc_basename in
15689 ec++*)
15690 # FIXME: insert proper C++ library support
15691 ld_shlibs_CXX=no
15693 ghcx*)
15694 # Green Hills C++ Compiler
15695 # FIXME: insert proper C++ library support
15696 ld_shlibs_CXX=no
15699 # FIXME: insert proper C++ library support
15700 ld_shlibs_CXX=no
15702 esac
15705 freebsd2.*)
15706 # C++ shared libraries reported to be fairly broken before
15707 # switch to ELF
15708 ld_shlibs_CXX=no
15711 freebsd-elf*)
15712 archive_cmds_need_lc_CXX=no
15715 freebsd* | dragonfly*)
15716 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15717 # conventions
15718 ld_shlibs_CXX=yes
15721 gnu*)
15724 haiku*)
15725 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15726 link_all_deplibs_CXX=yes
15729 hpux9*)
15730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15731 hardcode_libdir_separator_CXX=:
15732 export_dynamic_flag_spec_CXX='${wl}-E'
15733 hardcode_direct_CXX=yes
15734 hardcode_minus_L_CXX=yes # Not in the search PATH,
15735 # but as the default
15736 # location of the library.
15738 case $cc_basename in
15739 CC*)
15740 # FIXME: insert proper C++ library support
15741 ld_shlibs_CXX=no
15743 aCC*)
15744 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15745 # Commands to make compiler produce verbose output that lists
15746 # what "hidden" libraries, object files and flags are used when
15747 # linking a shared library.
15749 # There doesn't appear to be a way to prevent this compiler from
15750 # explicitly linking system object files so we need to strip them
15751 # from the output so that they don't get included in the library
15752 # dependencies.
15753 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 if test "$GXX" = yes; then
15757 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15758 else
15759 # FIXME: insert proper C++ library support
15760 ld_shlibs_CXX=no
15763 esac
15766 hpux10*|hpux11*)
15767 if test $with_gnu_ld = no; then
15768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15769 hardcode_libdir_separator_CXX=:
15771 case $host_cpu in
15772 hppa*64*|ia64*)
15775 export_dynamic_flag_spec_CXX='${wl}-E'
15777 esac
15779 case $host_cpu in
15780 hppa*64*|ia64*)
15781 hardcode_direct_CXX=no
15782 hardcode_shlibpath_var_CXX=no
15785 hardcode_direct_CXX=yes
15786 hardcode_direct_absolute_CXX=yes
15787 hardcode_minus_L_CXX=yes # Not in the search PATH,
15788 # but as the default
15789 # location of the library.
15791 esac
15793 case $cc_basename in
15794 CC*)
15795 # FIXME: insert proper C++ library support
15796 ld_shlibs_CXX=no
15798 aCC*)
15799 case $host_cpu in
15800 hppa*64*)
15801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15803 ia64*)
15804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15807 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15809 esac
15810 # Commands to make compiler produce verbose output that lists
15811 # what "hidden" libraries, object files and flags are used when
15812 # linking a shared library.
15814 # There doesn't appear to be a way to prevent this compiler from
15815 # explicitly linking system object files so we need to strip them
15816 # from the output so that they don't get included in the library
15817 # dependencies.
15818 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 if test "$GXX" = yes; then
15822 if test $with_gnu_ld = no; then
15823 case $host_cpu in
15824 hppa*64*)
15825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15827 ia64*)
15828 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 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'
15833 esac
15835 else
15836 # FIXME: insert proper C++ library support
15837 ld_shlibs_CXX=no
15840 esac
15843 interix[3-9]*)
15844 hardcode_direct_CXX=no
15845 hardcode_shlibpath_var_CXX=no
15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847 export_dynamic_flag_spec_CXX='${wl}-E'
15848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15849 # Instead, shared libraries are loaded at an image base (0x10000000 by
15850 # default) and relocated if they conflict, which is a slow very memory
15851 # consuming and fragmenting process. To avoid this, we pick a random,
15852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15854 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'
15855 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'
15857 irix5* | irix6*)
15858 case $cc_basename in
15859 CC*)
15860 # SGI C++
15861 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'
15863 # Archives containing C++ object files must be created using
15864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15865 # necessary to make sure instantiated templates are included
15866 # in the archive.
15867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15870 if test "$GXX" = yes; then
15871 if test "$with_gnu_ld" = no; then
15872 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'
15873 else
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"` -o $lib'
15877 link_all_deplibs_CXX=yes
15879 esac
15880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15881 hardcode_libdir_separator_CXX=:
15882 inherit_rpath_CXX=yes
15885 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15886 case $cc_basename in
15887 KCC*)
15888 # Kuck and Associates, Inc. (KAI) C++ Compiler
15890 # KCC will only create a shared library if the output file
15891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15892 # to its proper name (with version) after linking.
15893 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'
15894 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'
15895 # Commands to make compiler produce verbose output that lists
15896 # what "hidden" libraries, object files and flags are used when
15897 # linking a shared library.
15899 # There doesn't appear to be a way to prevent this compiler from
15900 # explicitly linking system object files so we need to strip them
15901 # from the output so that they don't get included in the library
15902 # dependencies.
15903 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"'
15905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15908 # Archives containing C++ object files must be created using
15909 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15912 icpc* | ecpc* )
15913 # Intel C++
15914 with_gnu_ld=yes
15915 # version 8.0 and above of icpc choke on multiply defined symbols
15916 # if we add $predep_objects and $postdep_objects, however 7.1 and
15917 # earlier do not add the objects themselves.
15918 case `$CC -V 2>&1` in
15919 *"Version 7."*)
15920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921 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'
15923 *) # Version 8.0 or newer
15924 tmp_idyn=
15925 case $host_cpu in
15926 ia64*) tmp_idyn=' -i_dynamic';;
15927 esac
15928 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 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'
15931 esac
15932 archive_cmds_need_lc_CXX=no
15933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15935 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15937 pgCC* | pgcpp*)
15938 # Portland Group C++ compiler
15939 case `$CC -V` in
15940 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15941 prelink_cmds_CXX='tpldir=Template.dir~
15942 rm -rf $tpldir~
15943 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15944 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15945 old_archive_cmds_CXX='tpldir=Template.dir~
15946 rm -rf $tpldir~
15947 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15948 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15949 $RANLIB $oldlib'
15950 archive_cmds_CXX='tpldir=Template.dir~
15951 rm -rf $tpldir~
15952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15953 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15954 archive_expsym_cmds_CXX='tpldir=Template.dir~
15955 rm -rf $tpldir~
15956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15957 $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'
15959 *) # Version 6 and above use weak symbols
15960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15961 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'
15963 esac
15965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15967 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'
15969 cxx*)
15970 # Compaq C++
15971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15972 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'
15974 runpath_var=LD_RUN_PATH
15975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15976 hardcode_libdir_separator_CXX=:
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15982 # There doesn't appear to be a way to prevent this compiler from
15983 # explicitly linking system object files so we need to strip them
15984 # from the output so that they don't get included in the library
15985 # dependencies.
15986 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'
15988 xl* | mpixl* | bgxl*)
15989 # IBM XL 8.0 on PPC, with GNU ld
15990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15992 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993 if test "x$supports_anon_versioning" = xyes; then
15994 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996 echo "local: *; };" >> $output_objdir/$libname.ver~
15997 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16001 case `$CC -V 2>&1 | sed 5q` in
16002 *Sun\ C*)
16003 # Sun C++ 5.9
16004 no_undefined_flag_CXX=' -zdefs'
16005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16006 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'
16007 hardcode_libdir_flag_spec_CXX='-R$libdir'
16008 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'
16009 compiler_needs_object_CXX=yes
16011 # Not sure whether something based on
16012 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16013 # would be better.
16014 output_verbose_link_cmd='func_echo_all'
16016 # Archives containing C++ object files must be created using
16017 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16018 # necessary to make sure instantiated templates are included
16019 # in the archive.
16020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16022 esac
16024 esac
16027 lynxos*)
16028 # FIXME: insert proper C++ library support
16029 ld_shlibs_CXX=no
16032 m88k*)
16033 # FIXME: insert proper C++ library support
16034 ld_shlibs_CXX=no
16037 mvs*)
16038 case $cc_basename in
16039 cxx*)
16040 # FIXME: insert proper C++ library support
16041 ld_shlibs_CXX=no
16044 # FIXME: insert proper C++ library support
16045 ld_shlibs_CXX=no
16047 esac
16050 netbsd*)
16051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16053 wlarc=
16054 hardcode_libdir_flag_spec_CXX='-R$libdir'
16055 hardcode_direct_CXX=yes
16056 hardcode_shlibpath_var_CXX=no
16058 # Workaround some broken pre-1.5 toolchains
16059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16062 *nto* | *qnx*)
16063 ld_shlibs_CXX=yes
16066 openbsd2*)
16067 # C++ shared libraries are fairly broken
16068 ld_shlibs_CXX=no
16071 openbsd*)
16072 if test -f /usr/libexec/ld.so; then
16073 hardcode_direct_CXX=yes
16074 hardcode_shlibpath_var_CXX=no
16075 hardcode_direct_absolute_CXX=yes
16076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16080 export_dynamic_flag_spec_CXX='${wl}-E'
16081 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16083 output_verbose_link_cmd=func_echo_all
16084 else
16085 ld_shlibs_CXX=no
16089 osf3* | osf4* | osf5*)
16090 case $cc_basename in
16091 KCC*)
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100 hardcode_libdir_separator_CXX=:
16102 # Archives containing C++ object files must be created using
16103 # the KAI C++ compiler.
16104 case $host in
16105 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16106 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16107 esac
16109 RCC*)
16110 # Rational C++ 2.4.1
16111 # FIXME: insert proper C++ library support
16112 ld_shlibs_CXX=no
16114 cxx*)
16115 case $host in
16116 osf3*)
16117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16118 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'
16119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16122 allow_undefined_flag_CXX=' -expect_unresolved \*'
16123 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'
16124 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16125 echo "-hidden">> $lib.exp~
16126 $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~
16127 $RM $lib.exp'
16128 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16130 esac
16132 hardcode_libdir_separator_CXX=:
16134 # Commands to make compiler produce verbose output that lists
16135 # what "hidden" libraries, object files and flags are used when
16136 # linking a shared library.
16138 # There doesn't appear to be a way to prevent this compiler from
16139 # explicitly linking system object files so we need to strip them
16140 # from the output so that they don't get included in the library
16141 # dependencies.
16142 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"'
16145 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16147 case $host in
16148 osf3*)
16149 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'
16152 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'
16154 esac
16156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16157 hardcode_libdir_separator_CXX=:
16159 # Commands to make compiler produce verbose output that lists
16160 # what "hidden" libraries, object files and flags are used when
16161 # linking a shared library.
16162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16164 else
16165 # FIXME: insert proper C++ library support
16166 ld_shlibs_CXX=no
16169 esac
16172 psos*)
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16177 sunos4*)
16178 case $cc_basename in
16179 CC*)
16180 # Sun C++ 4.x
16181 # FIXME: insert proper C++ library support
16182 ld_shlibs_CXX=no
16184 lcc*)
16185 # Lucid
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16190 # FIXME: insert proper C++ library support
16191 ld_shlibs_CXX=no
16193 esac
16196 solaris*)
16197 case $cc_basename in
16198 CC* | sunCC*)
16199 # Sun C++ 4.2, 5.x and Centerline C++
16200 archive_cmds_need_lc_CXX=yes
16201 no_undefined_flag_CXX=' -zdefs'
16202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16204 $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'
16206 hardcode_libdir_flag_spec_CXX='-R$libdir'
16207 hardcode_shlibpath_var_CXX=no
16208 case $host_os in
16209 solaris2.[0-5] | solaris2.[0-5].*) ;;
16211 # The compiler driver will combine and reorder linker options,
16212 # but understands `-z linker_flag'.
16213 # Supported since Solaris 2.6 (maybe 2.5.1?)
16214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16216 esac
16217 link_all_deplibs_CXX=yes
16219 output_verbose_link_cmd='func_echo_all'
16221 # Archives containing C++ object files must be created using
16222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16223 # necessary to make sure instantiated templates are included
16224 # in the archive.
16225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16227 gcx*)
16228 # Green Hills C++ Compiler
16229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16231 # The C++ compiler must be used to create the archive.
16232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16235 # GNU C++ compiler with Solaris linker
16236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16238 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16239 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16241 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16243 # Commands to make compiler produce verbose output that lists
16244 # what "hidden" libraries, object files and flags are used when
16245 # linking a shared library.
16246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16247 else
16248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16249 # platform.
16250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16254 # Commands to make compiler produce verbose output that lists
16255 # what "hidden" libraries, object files and flags are used when
16256 # linking a shared library.
16257 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16261 case $host_os in
16262 solaris2.[0-5] | solaris2.[0-5].*) ;;
16264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16266 esac
16269 esac
16272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16273 no_undefined_flag_CXX='${wl}-z,text'
16274 archive_cmds_need_lc_CXX=no
16275 hardcode_shlibpath_var_CXX=no
16276 runpath_var='LD_RUN_PATH'
16278 case $cc_basename in
16279 CC*)
16280 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 esac
16290 sysv5* | sco3.2v5* | sco5v6*)
16291 # Note: We can NOT use -z defs as we might desire, because we do not
16292 # link with -lc, and that would cause any symbols used from libc to
16293 # always be unresolved, which means just about no library would
16294 # ever link correctly. If we're not using GNU ld we use -z text
16295 # though, which does catch some bad symbols but isn't as heavy-handed
16296 # as -z defs.
16297 no_undefined_flag_CXX='${wl}-z,text'
16298 allow_undefined_flag_CXX='${wl}-z,nodefs'
16299 archive_cmds_need_lc_CXX=no
16300 hardcode_shlibpath_var_CXX=no
16301 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16302 hardcode_libdir_separator_CXX=':'
16303 link_all_deplibs_CXX=yes
16304 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16305 runpath_var='LD_RUN_PATH'
16307 case $cc_basename in
16308 CC*)
16309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16312 '"$old_archive_cmds_CXX"
16313 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16314 '"$reload_cmds_CXX"
16317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16320 esac
16323 tandem*)
16324 case $cc_basename in
16325 NCC*)
16326 # NonStop-UX NCC 3.20
16327 # FIXME: insert proper C++ library support
16328 ld_shlibs_CXX=no
16331 # FIXME: insert proper C++ library support
16332 ld_shlibs_CXX=no
16334 esac
16337 vxworks*)
16338 # FIXME: insert proper C++ library support
16339 ld_shlibs_CXX=no
16343 # FIXME: insert proper C++ library support
16344 ld_shlibs_CXX=no
16346 esac
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16349 $as_echo "$ld_shlibs_CXX" >&6; }
16350 test "$ld_shlibs_CXX" = no && can_build_shared=no
16352 GCC_CXX="$GXX"
16353 LD_CXX="$LD"
16355 ## CAVEAT EMPTOR:
16356 ## There is no encapsulation within the following macros, do not change
16357 ## the running order or otherwise move them around unless you know exactly
16358 ## what you are doing...
16359 # Dependencies to place before and after the object being linked:
16360 predep_objects_CXX=
16361 postdep_objects_CXX=
16362 predeps_CXX=
16363 postdeps_CXX=
16364 compiler_lib_search_path_CXX=
16366 cat > conftest.$ac_ext <<_LT_EOF
16367 class Foo
16369 public:
16370 Foo (void) { a = 0; }
16371 private:
16372 int a;
16374 _LT_EOF
16377 _lt_libdeps_save_CFLAGS=$CFLAGS
16378 case "$CC $CFLAGS " in #(
16379 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16380 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16381 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16382 esac
16384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16388 test $ac_status = 0; }; then
16389 # Parse the compiler output and extract the necessary
16390 # objects, libraries and library flags.
16392 # Sentinel used to keep track of whether or not we are before
16393 # the conftest object file.
16394 pre_test_object_deps_done=no
16396 for p in `eval "$output_verbose_link_cmd"`; do
16397 case ${prev}${p} in
16399 -L* | -R* | -l*)
16400 # Some compilers place space between "-{L,R}" and the path.
16401 # Remove the space.
16402 if test $p = "-L" ||
16403 test $p = "-R"; then
16404 prev=$p
16405 continue
16408 # Expand the sysroot to ease extracting the directories later.
16409 if test -z "$prev"; then
16410 case $p in
16411 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16412 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16413 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16414 esac
16416 case $p in
16417 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16418 esac
16419 if test "$pre_test_object_deps_done" = no; then
16420 case ${prev} in
16421 -L | -R)
16422 # Internal compiler library paths should come after those
16423 # provided the user. The postdeps already come after the
16424 # user supplied libs so there is no need to process them.
16425 if test -z "$compiler_lib_search_path_CXX"; then
16426 compiler_lib_search_path_CXX="${prev}${p}"
16427 else
16428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16431 # The "-l" case would never come before the object being
16432 # linked, so don't bother handling this case.
16433 esac
16434 else
16435 if test -z "$postdeps_CXX"; then
16436 postdeps_CXX="${prev}${p}"
16437 else
16438 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16441 prev=
16444 *.lto.$objext) ;; # Ignore GCC LTO objects
16445 *.$objext)
16446 # This assumes that the test object file only shows up
16447 # once in the compiler output.
16448 if test "$p" = "conftest.$objext"; then
16449 pre_test_object_deps_done=yes
16450 continue
16453 if test "$pre_test_object_deps_done" = no; then
16454 if test -z "$predep_objects_CXX"; then
16455 predep_objects_CXX="$p"
16456 else
16457 predep_objects_CXX="$predep_objects_CXX $p"
16459 else
16460 if test -z "$postdep_objects_CXX"; then
16461 postdep_objects_CXX="$p"
16462 else
16463 postdep_objects_CXX="$postdep_objects_CXX $p"
16468 *) ;; # Ignore the rest.
16470 esac
16471 done
16473 # Clean up.
16474 rm -f a.out a.exe
16475 else
16476 echo "libtool.m4: error: problem compiling CXX test program"
16479 $RM -f confest.$objext
16480 CFLAGS=$_lt_libdeps_save_CFLAGS
16482 # PORTME: override above test on systems where it is broken
16483 case $host_os in
16484 interix[3-9]*)
16485 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16486 # hack all around it, let's just trust "g++" to DTRT.
16487 predep_objects_CXX=
16488 postdep_objects_CXX=
16489 postdeps_CXX=
16492 linux*)
16493 case `$CC -V 2>&1 | sed 5q` in
16494 *Sun\ C*)
16495 # Sun C++ 5.9
16497 # The more standards-conforming stlport4 library is
16498 # incompatible with the Cstd library. Avoid specifying
16499 # it if it's in CXXFLAGS. Ignore libCrun as
16500 # -library=stlport4 depends on it.
16501 case " $CXX $CXXFLAGS " in
16502 *" -library=stlport4 "*)
16503 solaris_use_stlport4=yes
16505 esac
16507 if test "$solaris_use_stlport4" != yes; then
16508 postdeps_CXX='-library=Cstd -library=Crun'
16511 esac
16514 solaris*)
16515 case $cc_basename in
16516 CC* | sunCC*)
16517 # The more standards-conforming stlport4 library is
16518 # incompatible with the Cstd library. Avoid specifying
16519 # it if it's in CXXFLAGS. Ignore libCrun as
16520 # -library=stlport4 depends on it.
16521 case " $CXX $CXXFLAGS " in
16522 *" -library=stlport4 "*)
16523 solaris_use_stlport4=yes
16525 esac
16527 # Adding this requires a known-good setup of shared libraries for
16528 # Sun compiler versions before 5.6, else PIC objects from an old
16529 # archive will be linked into the output, leading to subtle bugs.
16530 if test "$solaris_use_stlport4" != yes; then
16531 postdeps_CXX='-library=Cstd -library=Crun'
16534 esac
16536 esac
16539 case " $postdeps_CXX " in
16540 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16541 esac
16542 compiler_lib_search_dirs_CXX=
16543 if test -n "${compiler_lib_search_path_CXX}"; then
16544 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16577 lt_prog_compiler_wl_CXX=
16578 lt_prog_compiler_pic_CXX=
16579 lt_prog_compiler_static_CXX=
16582 # C++ specific cases for pic, static, wl, etc.
16583 if test "$GXX" = yes; then
16584 lt_prog_compiler_wl_CXX='-Wl,'
16585 lt_prog_compiler_static_CXX='-static'
16587 case $host_os in
16588 aix*)
16589 # All AIX code is PIC.
16590 if test "$host_cpu" = ia64; then
16591 # AIX 5 now supports IA64 processor
16592 lt_prog_compiler_static_CXX='-Bstatic'
16596 amigaos*)
16597 case $host_cpu in
16598 powerpc)
16599 # see comment about AmigaOS4 .so support
16600 lt_prog_compiler_pic_CXX='-fPIC'
16602 m68k)
16603 # FIXME: we need at least 68020 code to build shared libraries, but
16604 # adding the `-m68020' flag to GCC prevents building anything better,
16605 # like `-m68040'.
16606 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16608 esac
16611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16612 # PIC is the default for these OSes.
16614 mingw* | cygwin* | os2* | pw32* | cegcc*)
16615 # This hack is so that the source file can tell whether it is being
16616 # built for inclusion in a dll (and should export symbols for example).
16617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16618 # (--disable-auto-import) libraries
16619 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16621 darwin* | rhapsody*)
16622 # PIC is the default on this platform
16623 # Common symbols not allowed in MH_DYLIB files
16624 lt_prog_compiler_pic_CXX='-fno-common'
16626 *djgpp*)
16627 # DJGPP does not support shared libraries at all
16628 lt_prog_compiler_pic_CXX=
16630 haiku*)
16631 # PIC is the default for Haiku.
16632 # The "-static" flag exists, but is broken.
16633 lt_prog_compiler_static_CXX=
16635 interix[3-9]*)
16636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16637 # Instead, we relocate shared libraries at runtime.
16639 sysv4*MP*)
16640 if test -d /usr/nec; then
16641 lt_prog_compiler_pic_CXX=-Kconform_pic
16644 hpux*)
16645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16647 # sets the default TLS model and affects inlining.
16648 case $host_cpu in
16649 hppa*64*)
16652 lt_prog_compiler_pic_CXX='-fPIC'
16654 esac
16656 *qnx* | *nto*)
16657 # QNX uses GNU C++, but need to define -shared option too, otherwise
16658 # it will coredump.
16659 lt_prog_compiler_pic_CXX='-fPIC -shared'
16662 lt_prog_compiler_pic_CXX='-fPIC'
16664 esac
16665 else
16666 case $host_os in
16667 aix[4-9]*)
16668 # All AIX code is PIC.
16669 if test "$host_cpu" = ia64; then
16670 # AIX 5 now supports IA64 processor
16671 lt_prog_compiler_static_CXX='-Bstatic'
16672 else
16673 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16676 chorus*)
16677 case $cc_basename in
16678 cxch68*)
16679 # Green Hills C++ Compiler
16680 # _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"
16682 esac
16684 mingw* | cygwin* | os2* | pw32* | cegcc*)
16685 # This hack is so that the source file can tell whether it is being
16686 # built for inclusion in a dll (and should export symbols for example).
16687 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16689 dgux*)
16690 case $cc_basename in
16691 ec++*)
16692 lt_prog_compiler_pic_CXX='-KPIC'
16694 ghcx*)
16695 # Green Hills C++ Compiler
16696 lt_prog_compiler_pic_CXX='-pic'
16700 esac
16702 freebsd* | dragonfly*)
16703 # FreeBSD uses GNU C++
16705 hpux9* | hpux10* | hpux11*)
16706 case $cc_basename in
16707 CC*)
16708 lt_prog_compiler_wl_CXX='-Wl,'
16709 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16710 if test "$host_cpu" != ia64; then
16711 lt_prog_compiler_pic_CXX='+Z'
16714 aCC*)
16715 lt_prog_compiler_wl_CXX='-Wl,'
16716 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16717 case $host_cpu in
16718 hppa*64*|ia64*)
16719 # +Z the default
16722 lt_prog_compiler_pic_CXX='+Z'
16724 esac
16728 esac
16730 interix*)
16731 # This is c89, which is MS Visual C++ (no shared libs)
16732 # Anyone wants to do a port?
16734 irix5* | irix6* | nonstopux*)
16735 case $cc_basename in
16736 CC*)
16737 lt_prog_compiler_wl_CXX='-Wl,'
16738 lt_prog_compiler_static_CXX='-non_shared'
16739 # CC pic flag -KPIC is the default.
16743 esac
16745 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16746 case $cc_basename in
16747 KCC*)
16748 # KAI C++ Compiler
16749 lt_prog_compiler_wl_CXX='--backend -Wl,'
16750 lt_prog_compiler_pic_CXX='-fPIC'
16752 ecpc* )
16753 # old Intel C++ for x86_64 which still supported -KPIC.
16754 lt_prog_compiler_wl_CXX='-Wl,'
16755 lt_prog_compiler_pic_CXX='-KPIC'
16756 lt_prog_compiler_static_CXX='-static'
16758 icpc* )
16759 # Intel C++, used to be incompatible with GCC.
16760 # ICC 10 doesn't accept -KPIC any more.
16761 lt_prog_compiler_wl_CXX='-Wl,'
16762 lt_prog_compiler_pic_CXX='-fPIC'
16763 lt_prog_compiler_static_CXX='-static'
16765 pgCC* | pgcpp*)
16766 # Portland Group C++ compiler
16767 lt_prog_compiler_wl_CXX='-Wl,'
16768 lt_prog_compiler_pic_CXX='-fpic'
16769 lt_prog_compiler_static_CXX='-Bstatic'
16771 cxx*)
16772 # Compaq C++
16773 # Make sure the PIC flag is empty. It appears that all Alpha
16774 # Linux and Compaq Tru64 Unix objects are PIC.
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX='-non_shared'
16778 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16779 # IBM XL 8.0, 9.0 on PPC and BlueGene
16780 lt_prog_compiler_wl_CXX='-Wl,'
16781 lt_prog_compiler_pic_CXX='-qpic'
16782 lt_prog_compiler_static_CXX='-qstaticlink'
16785 case `$CC -V 2>&1 | sed 5q` in
16786 *Sun\ C*)
16787 # Sun C++ 5.9
16788 lt_prog_compiler_pic_CXX='-KPIC'
16789 lt_prog_compiler_static_CXX='-Bstatic'
16790 lt_prog_compiler_wl_CXX='-Qoption ld '
16792 esac
16794 esac
16796 lynxos*)
16798 m88k*)
16800 mvs*)
16801 case $cc_basename in
16802 cxx*)
16803 lt_prog_compiler_pic_CXX='-W c,exportall'
16807 esac
16809 netbsd* | netbsdelf*-gnu)
16811 *qnx* | *nto*)
16812 # QNX uses GNU C++, but need to define -shared option too, otherwise
16813 # it will coredump.
16814 lt_prog_compiler_pic_CXX='-fPIC -shared'
16816 osf3* | osf4* | osf5*)
16817 case $cc_basename in
16818 KCC*)
16819 lt_prog_compiler_wl_CXX='--backend -Wl,'
16821 RCC*)
16822 # Rational C++ 2.4.1
16823 lt_prog_compiler_pic_CXX='-pic'
16825 cxx*)
16826 # Digital/Compaq C++
16827 lt_prog_compiler_wl_CXX='-Wl,'
16828 # Make sure the PIC flag is empty. It appears that all Alpha
16829 # Linux and Compaq Tru64 Unix objects are PIC.
16830 lt_prog_compiler_pic_CXX=
16831 lt_prog_compiler_static_CXX='-non_shared'
16835 esac
16837 psos*)
16839 solaris*)
16840 case $cc_basename in
16841 CC* | sunCC*)
16842 # Sun C++ 4.2, 5.x and Centerline C++
16843 lt_prog_compiler_pic_CXX='-KPIC'
16844 lt_prog_compiler_static_CXX='-Bstatic'
16845 lt_prog_compiler_wl_CXX='-Qoption ld '
16847 gcx*)
16848 # Green Hills C++ Compiler
16849 lt_prog_compiler_pic_CXX='-PIC'
16853 esac
16855 sunos4*)
16856 case $cc_basename in
16857 CC*)
16858 # Sun C++ 4.x
16859 lt_prog_compiler_pic_CXX='-pic'
16860 lt_prog_compiler_static_CXX='-Bstatic'
16862 lcc*)
16863 # Lucid
16864 lt_prog_compiler_pic_CXX='-pic'
16868 esac
16870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16871 case $cc_basename in
16872 CC*)
16873 lt_prog_compiler_wl_CXX='-Wl,'
16874 lt_prog_compiler_pic_CXX='-KPIC'
16875 lt_prog_compiler_static_CXX='-Bstatic'
16877 esac
16879 tandem*)
16880 case $cc_basename in
16881 NCC*)
16882 # NonStop-UX NCC 3.20
16883 lt_prog_compiler_pic_CXX='-KPIC'
16887 esac
16889 vxworks*)
16892 lt_prog_compiler_can_build_shared_CXX=no
16894 esac
16897 case $host_os in
16898 # For platforms which do not support PIC, -DPIC is meaningless:
16899 *djgpp*)
16900 lt_prog_compiler_pic_CXX=
16903 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16905 esac
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16908 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16909 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16910 $as_echo_n "(cached) " >&6
16911 else
16912 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16915 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16916 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16919 # Check to make sure the PIC flag actually works.
16921 if test -n "$lt_prog_compiler_pic_CXX"; then
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16923 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16924 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 lt_cv_prog_compiler_pic_works_CXX=no
16928 ac_outfile=conftest.$ac_objext
16929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16930 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16931 # Insert the option either (1) after the last *FLAGS variable, or
16932 # (2) before a word containing "conftest.", or (3) at the end.
16933 # Note that $ac_compile itself does not contain backslashes and begins
16934 # with a dollar sign (not a hyphen), so the echo should work correctly.
16935 # The option is referenced via a variable to avoid confusing sed.
16936 lt_compile=`echo "$ac_compile" | $SED \
16937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16939 -e 's:$: $lt_compiler_flag:'`
16940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16941 (eval "$lt_compile" 2>conftest.err)
16942 ac_status=$?
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 if (exit $ac_status) && test -s "$ac_outfile"; then
16946 # The compiler can only warn and ignore the option if not recognized
16947 # So say no if there are warnings other than the usual output.
16948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16951 lt_cv_prog_compiler_pic_works_CXX=yes
16954 $RM conftest*
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16958 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16960 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16961 case $lt_prog_compiler_pic_CXX in
16962 "" | " "*) ;;
16963 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16964 esac
16965 else
16966 lt_prog_compiler_pic_CXX=
16967 lt_prog_compiler_can_build_shared_CXX=no
16977 # Check to make sure the static flag actually works.
16979 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16982 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16983 $as_echo_n "(cached) " >&6
16984 else
16985 lt_cv_prog_compiler_static_works_CXX=no
16986 save_LDFLAGS="$LDFLAGS"
16987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16990 # The linker can only warn and ignore the option if not recognized
16991 # So say no if there are warnings
16992 if test -s conftest.err; then
16993 # Append any errors to the config.log.
16994 cat conftest.err 1>&5
16995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16997 if diff conftest.exp conftest.er2 >/dev/null; then
16998 lt_cv_prog_compiler_static_works_CXX=yes
17000 else
17001 lt_cv_prog_compiler_static_works_CXX=yes
17004 $RM -r conftest*
17005 LDFLAGS="$save_LDFLAGS"
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17009 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17011 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17013 else
17014 lt_prog_compiler_static_CXX=
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17022 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17023 $as_echo_n "(cached) " >&6
17024 else
17025 lt_cv_prog_compiler_c_o_CXX=no
17026 $RM -r conftest 2>/dev/null
17027 mkdir conftest
17028 cd conftest
17029 mkdir out
17030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17032 lt_compiler_flag="-o out/conftest2.$ac_objext"
17033 # Insert the option either (1) after the last *FLAGS variable, or
17034 # (2) before a word containing "conftest.", or (3) at the end.
17035 # Note that $ac_compile itself does not contain backslashes and begins
17036 # with a dollar sign (not a hyphen), so the echo should work correctly.
17037 lt_compile=`echo "$ac_compile" | $SED \
17038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17040 -e 's:$: $lt_compiler_flag:'`
17041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17042 (eval "$lt_compile" 2>out/conftest.err)
17043 ac_status=$?
17044 cat out/conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17047 then
17048 # The compiler can only warn and ignore the option if not recognized
17049 # So say no if there are warnings
17050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17053 lt_cv_prog_compiler_c_o_CXX=yes
17056 chmod u+w . 2>&5
17057 $RM conftest*
17058 # SGI C++ compiler will create directory out/ii_files/ for
17059 # template instantiation
17060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17061 $RM out/* && rmdir out
17062 cd ..
17063 $RM -r conftest
17064 $RM conftest*
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17068 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17074 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17075 $as_echo_n "(cached) " >&6
17076 else
17077 lt_cv_prog_compiler_c_o_CXX=no
17078 $RM -r conftest 2>/dev/null
17079 mkdir conftest
17080 cd conftest
17081 mkdir out
17082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17084 lt_compiler_flag="-o out/conftest2.$ac_objext"
17085 # Insert the option either (1) after the last *FLAGS variable, or
17086 # (2) before a word containing "conftest.", or (3) at the end.
17087 # Note that $ac_compile itself does not contain backslashes and begins
17088 # with a dollar sign (not a hyphen), so the echo should work correctly.
17089 lt_compile=`echo "$ac_compile" | $SED \
17090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17092 -e 's:$: $lt_compiler_flag:'`
17093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17094 (eval "$lt_compile" 2>out/conftest.err)
17095 ac_status=$?
17096 cat out/conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17099 then
17100 # The compiler can only warn and ignore the option if not recognized
17101 # So say no if there are warnings
17102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17105 lt_cv_prog_compiler_c_o_CXX=yes
17108 chmod u+w . 2>&5
17109 $RM conftest*
17110 # SGI C++ compiler will create directory out/ii_files/ for
17111 # template instantiation
17112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17113 $RM out/* && rmdir out
17114 cd ..
17115 $RM -r conftest
17116 $RM conftest*
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17120 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17125 hard_links="nottested"
17126 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17127 # do not overwrite the value of need_locks provided by the user
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17129 $as_echo_n "checking if we can lock with hard links... " >&6; }
17130 hard_links=yes
17131 $RM conftest*
17132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133 touch conftest.a
17134 ln conftest.a conftest.b 2>&5 || hard_links=no
17135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17137 $as_echo "$hard_links" >&6; }
17138 if test "$hard_links" = no; then
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17140 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17141 need_locks=warn
17143 else
17144 need_locks=no
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17153 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17154 case $host_os in
17155 aix[4-9]*)
17156 # If we're using GNU nm, then we don't want the "-C" option.
17157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17158 # Also, AIX nm treats weak defined symbols like other global defined
17159 # symbols, whereas GNU nm marks them as "W".
17160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17161 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17162 else
17163 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17166 pw32*)
17167 export_symbols_cmds_CXX="$ltdll_cmds"
17169 cygwin* | mingw* | cegcc*)
17170 case $cc_basename in
17171 cl*)
17172 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17175 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'
17176 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17178 esac
17180 linux* | k*bsd*-gnu | gnu*)
17181 link_all_deplibs_CXX=no
17184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17186 esac
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17189 $as_echo "$ld_shlibs_CXX" >&6; }
17190 test "$ld_shlibs_CXX" = no && can_build_shared=no
17192 with_gnu_ld_CXX=$with_gnu_ld
17200 # Do we need to explicitly link libc?
17202 case "x$archive_cmds_need_lc_CXX" in
17203 x|xyes)
17204 # Assume -lc should be added
17205 archive_cmds_need_lc_CXX=yes
17207 if test "$enable_shared" = yes && test "$GCC" = yes; then
17208 case $archive_cmds_CXX in
17209 *'~'*)
17210 # FIXME: we may have to deal with multi-command sequences.
17212 '$CC '*)
17213 # Test whether the compiler implicitly links with -lc since on some
17214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17215 # to ld, don't add -lc before -lgcc.
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17218 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17219 $as_echo_n "(cached) " >&6
17220 else
17221 $RM conftest*
17222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17225 (eval $ac_compile) 2>&5
17226 ac_status=$?
17227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17228 test $ac_status = 0; } 2>conftest.err; then
17229 soname=conftest
17230 lib=conftest
17231 libobjs=conftest.$ac_objext
17232 deplibs=
17233 wl=$lt_prog_compiler_wl_CXX
17234 pic_flag=$lt_prog_compiler_pic_CXX
17235 compiler_flags=-v
17236 linker_flags=-v
17237 verstring=
17238 output_objdir=.
17239 libname=conftest
17240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17241 allow_undefined_flag_CXX=
17242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17244 ac_status=$?
17245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17246 test $ac_status = 0; }
17247 then
17248 lt_cv_archive_cmds_need_lc_CXX=no
17249 else
17250 lt_cv_archive_cmds_need_lc_CXX=yes
17252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17253 else
17254 cat conftest.err 1>&5
17256 $RM conftest*
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17260 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17263 esac
17266 esac
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17330 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17332 library_names_spec=
17333 libname_spec='lib$name'
17334 soname_spec=
17335 shrext_cmds=".so"
17336 postinstall_cmds=
17337 postuninstall_cmds=
17338 finish_cmds=
17339 finish_eval=
17340 shlibpath_var=
17341 shlibpath_overrides_runpath=unknown
17342 version_type=none
17343 dynamic_linker="$host_os ld.so"
17344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17345 need_lib_prefix=unknown
17346 hardcode_into_libs=no
17348 # when you set need_version to no, make sure it does not cause -set_version
17349 # flags to be left without arguments
17350 need_version=unknown
17352 case $host_os in
17353 aix3*)
17354 version_type=linux # correct to gnu/linux during the next big refactor
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17356 shlibpath_var=LIBPATH
17358 # AIX 3 has no versioning support, so we append a major version to the name.
17359 soname_spec='${libname}${release}${shared_ext}$major'
17362 aix[4-9]*)
17363 version_type=linux # correct to gnu/linux during the next big refactor
17364 need_lib_prefix=no
17365 need_version=no
17366 hardcode_into_libs=yes
17367 if test "$host_cpu" = ia64; then
17368 # AIX 5 supports IA64
17369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 else
17372 # With GCC up to 2.95.x, collect2 would create an import file
17373 # for dependence libraries. The import file would start with
17374 # the line `#! .'. This would cause the generated library to
17375 # depend on `.', always an invalid library. This was fixed in
17376 # development snapshots of GCC prior to 3.0.
17377 case $host_os in
17378 aix4 | aix4.[01] | aix4.[01].*)
17379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17380 echo ' yes '
17381 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17383 else
17384 can_build_shared=no
17387 esac
17388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17389 # soname into executable. Probably we can add versioning support to
17390 # collect2, so additional links can be useful in future.
17391 if test "$aix_use_runtimelinking" = yes; then
17392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17393 # instead of lib<name>.a to let people know that these are not
17394 # typical AIX shared libraries.
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 else
17397 # We preserve .a as extension for shared libraries through AIX4.2
17398 # and later when we are not doing run time linking.
17399 library_names_spec='${libname}${release}.a $libname.a'
17400 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LIBPATH
17406 amigaos*)
17407 case $host_cpu in
17408 powerpc)
17409 # Since July 2007 AmigaOS4 officially supports .so libraries.
17410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 m68k)
17414 library_names_spec='$libname.ixlibrary $libname.a'
17415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17416 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17418 esac
17421 beos*)
17422 library_names_spec='${libname}${shared_ext}'
17423 dynamic_linker="$host_os ld.so"
17424 shlibpath_var=LIBRARY_PATH
17427 bsdi[45]*)
17428 version_type=linux # correct to gnu/linux during the next big refactor
17429 need_version=no
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17436 # the default ld.so.conf also contains /usr/contrib/lib and
17437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17438 # libtool to hard-code these into programs
17441 cygwin* | mingw* | pw32* | cegcc*)
17442 version_type=windows
17443 shrext_cmds=".dll"
17444 need_version=no
17445 need_lib_prefix=no
17447 case $GCC,$cc_basename in
17448 yes,*)
17449 # gcc
17450 library_names_spec='$libname.dll.a'
17451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17452 postinstall_cmds='base_file=`basename \${file}`~
17453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17454 dldir=$destdir/`dirname \$dlpath`~
17455 test -d \$dldir || mkdir -p \$dldir~
17456 $install_prog $dir/$dlname \$dldir/$dlname~
17457 chmod a+x \$dldir/$dlname~
17458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17462 dlpath=$dir/\$dldll~
17463 $RM \$dlpath'
17464 shlibpath_overrides_runpath=yes
17466 case $host_os in
17467 cygwin*)
17468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17472 mingw* | cegcc*)
17473 # MinGW DLLs use traditional 'lib' prefix
17474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17476 pw32*)
17477 # pw32 DLLs use 'pw' prefix rather than 'lib'
17478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17480 esac
17481 dynamic_linker='Win32 ld.exe'
17484 *,cl*)
17485 # Native MSVC
17486 libname_spec='$name'
17487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488 library_names_spec='${libname}.dll.lib'
17490 case $build_os in
17491 mingw*)
17492 sys_lib_search_path_spec=
17493 lt_save_ifs=$IFS
17494 IFS=';'
17495 for lt_path in $LIB
17497 IFS=$lt_save_ifs
17498 # Let DOS variable expansion print the short 8.3 style file name.
17499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17501 done
17502 IFS=$lt_save_ifs
17503 # Convert to MSYS style.
17504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17506 cygwin*)
17507 # Convert to unix form, then to dos form, then back to unix form
17508 # but this time dos style (no spaces!) so that the unix form looks
17509 # like /cygdrive/c/PROGRA~1:/cygdr...
17510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17515 sys_lib_search_path_spec="$LIB"
17516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17517 # It is most probably a Windows format PATH.
17518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17519 else
17520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17522 # FIXME: find the short name or the path components, as spaces are
17523 # common. (e.g. "Program Files" -> "PROGRA~1")
17525 esac
17527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17528 postinstall_cmds='base_file=`basename \${file}`~
17529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17530 dldir=$destdir/`dirname \$dlpath`~
17531 test -d \$dldir || mkdir -p \$dldir~
17532 $install_prog $dir/$dlname \$dldir/$dlname'
17533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17534 dlpath=$dir/\$dldll~
17535 $RM \$dlpath'
17536 shlibpath_overrides_runpath=yes
17537 dynamic_linker='Win32 link.exe'
17541 # Assume MSVC wrapper
17542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17543 dynamic_linker='Win32 ld.exe'
17545 esac
17546 # FIXME: first we should search . and the directory the executable is in
17547 shlibpath_var=PATH
17550 darwin* | rhapsody*)
17551 dynamic_linker="$host_os dyld"
17552 version_type=darwin
17553 need_lib_prefix=no
17554 need_version=no
17555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17556 soname_spec='${libname}${release}${major}$shared_ext'
17557 shlibpath_overrides_runpath=yes
17558 shlibpath_var=DYLD_LIBRARY_PATH
17559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17564 dgux*)
17565 version_type=linux # correct to gnu/linux during the next big refactor
17566 need_lib_prefix=no
17567 need_version=no
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 shlibpath_var=LD_LIBRARY_PATH
17573 freebsd* | dragonfly*)
17574 # DragonFly does not have aout. When/if they implement a new
17575 # versioning mechanism, adjust this.
17576 if test -x /usr/bin/objformat; then
17577 objformat=`/usr/bin/objformat`
17578 else
17579 case $host_os in
17580 freebsd[23].*) objformat=aout ;;
17581 *) objformat=elf ;;
17582 esac
17584 version_type=freebsd-$objformat
17585 case $version_type in
17586 freebsd-elf*)
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17588 need_version=no
17589 need_lib_prefix=no
17591 freebsd-*)
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17593 need_version=yes
17595 esac
17596 shlibpath_var=LD_LIBRARY_PATH
17597 case $host_os in
17598 freebsd2.*)
17599 shlibpath_overrides_runpath=yes
17601 freebsd3.[01]* | freebsdelf3.[01]*)
17602 shlibpath_overrides_runpath=yes
17603 hardcode_into_libs=yes
17605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17607 shlibpath_overrides_runpath=no
17608 hardcode_into_libs=yes
17610 *) # from 4.6 on, and DragonFly
17611 shlibpath_overrides_runpath=yes
17612 hardcode_into_libs=yes
17614 esac
17617 gnu*)
17618 version_type=linux # correct to gnu/linux during the next big refactor
17619 need_lib_prefix=no
17620 need_version=no
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 shlibpath_overrides_runpath=no
17625 hardcode_into_libs=yes
17628 haiku*)
17629 version_type=linux # correct to gnu/linux during the next big refactor
17630 need_lib_prefix=no
17631 need_version=no
17632 dynamic_linker="$host_os runtime_loader"
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 shlibpath_var=LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17638 hardcode_into_libs=yes
17641 hpux9* | hpux10* | hpux11*)
17642 # Give a soname corresponding to the major version so that dld.sl refuses to
17643 # link against other versions.
17644 version_type=sunos
17645 need_lib_prefix=no
17646 need_version=no
17647 case $host_cpu in
17648 ia64*)
17649 shrext_cmds='.so'
17650 hardcode_into_libs=yes
17651 dynamic_linker="$host_os dld.so"
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 if test "X$HPUX_IA64_MODE" = X32; then
17657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17658 else
17659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17663 hppa*64*)
17664 shrext_cmds='.sl'
17665 hardcode_into_libs=yes
17666 dynamic_linker="$host_os dld.sl"
17667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675 shrext_cmds='.sl'
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=SHLIB_PATH
17678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17682 esac
17683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17684 postinstall_cmds='chmod 555 $lib'
17685 # or fails outright, so override atomically:
17686 install_override_mode=555
17689 interix[3-9]*)
17690 version_type=linux # correct to gnu/linux during the next big refactor
17691 need_lib_prefix=no
17692 need_version=no
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=no
17698 hardcode_into_libs=yes
17701 irix5* | irix6* | nonstopux*)
17702 case $host_os in
17703 nonstopux*) version_type=nonstopux ;;
17705 if test "$lt_cv_prog_gnu_ld" = yes; then
17706 version_type=linux # correct to gnu/linux during the next big refactor
17707 else
17708 version_type=irix
17709 fi ;;
17710 esac
17711 need_lib_prefix=no
17712 need_version=no
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17715 case $host_os in
17716 irix5* | nonstopux*)
17717 libsuff= shlibsuff=
17720 case $LD in # libtool.m4 will add one of these switches to LD
17721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17722 libsuff= shlibsuff= libmagic=32-bit;;
17723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17724 libsuff=32 shlibsuff=N32 libmagic=N32;;
17725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17727 *) libsuff= shlibsuff= libmagic=never-match;;
17728 esac
17730 esac
17731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17732 shlibpath_overrides_runpath=no
17733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17735 hardcode_into_libs=yes
17738 # No shared lib support for Linux oldld, aout, or coff.
17739 linux*oldld* | linux*aout* | linux*coff*)
17740 dynamic_linker=no
17743 # This must be glibc/ELF.
17744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17745 version_type=linux # correct to gnu/linux during the next big refactor
17746 need_lib_prefix=no
17747 need_version=no
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=no
17754 # Some binutils ld are patched to set DT_RUNPATH
17755 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 lt_cv_shlibpath_overrides_runpath=no
17759 save_LDFLAGS=$LDFLAGS
17760 save_libdir=$libdir
17761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17767 main ()
17771 return 0;
17773 _ACEOF
17774 if ac_fn_cxx_try_link "$LINENO"; then :
17775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17776 lt_cv_shlibpath_overrides_runpath=yes
17779 rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LDFLAGS=$save_LDFLAGS
17782 libdir=$save_libdir
17786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17788 # This implies no fast_install, which is unacceptable.
17789 # Some rework will be needed to allow for fast_install
17790 # before this can be enabled.
17791 hardcode_into_libs=yes
17793 # Append ld.so.conf contents to the search path
17794 if test -f /etc/ld.so.conf; then
17795 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' ' '`
17796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17799 # We used to test for /lib/ld.so.1 and disable shared libraries on
17800 # powerpc, because MkLinux only supported shared libraries with the
17801 # GNU dynamic linker. Since this was broken with cross compilers,
17802 # most powerpc-linux boxes support dynamic linking these days and
17803 # people can always --disable-shared, the test was removed, and we
17804 # assume the GNU/Linux dynamic linker is in use.
17805 dynamic_linker='GNU/Linux ld.so'
17808 netbsdelf*-gnu)
17809 version_type=linux
17810 need_lib_prefix=no
17811 need_version=no
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17813 soname_spec='${libname}${release}${shared_ext}$major'
17814 shlibpath_var=LD_LIBRARY_PATH
17815 shlibpath_overrides_runpath=no
17816 hardcode_into_libs=yes
17817 dynamic_linker='NetBSD ld.elf_so'
17820 netbsd*)
17821 version_type=sunos
17822 need_lib_prefix=no
17823 need_version=no
17824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17827 dynamic_linker='NetBSD (a.out) ld.so'
17828 else
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 dynamic_linker='NetBSD ld.elf_so'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17838 newsos6)
17839 version_type=linux # correct to gnu/linux during the next big refactor
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 shlibpath_overrides_runpath=yes
17845 *nto* | *qnx*)
17846 version_type=qnx
17847 need_lib_prefix=no
17848 need_version=no
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=no
17853 hardcode_into_libs=yes
17854 dynamic_linker='ldqnx.so'
17857 openbsd*)
17858 version_type=sunos
17859 sys_lib_dlsearch_path_spec="/usr/lib"
17860 need_lib_prefix=no
17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17862 case $host_os in
17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17864 *) need_version=no ;;
17865 esac
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17870 case $host_os in
17871 openbsd2.[89] | openbsd2.[89].*)
17872 shlibpath_overrides_runpath=no
17875 shlibpath_overrides_runpath=yes
17877 esac
17878 else
17879 shlibpath_overrides_runpath=yes
17883 os2*)
17884 libname_spec='$name'
17885 shrext_cmds=".dll"
17886 need_lib_prefix=no
17887 library_names_spec='$libname${shared_ext} $libname.a'
17888 dynamic_linker='OS/2 ld.exe'
17889 shlibpath_var=LIBPATH
17892 osf3* | osf4* | osf5*)
17893 version_type=osf
17894 need_lib_prefix=no
17895 need_version=no
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17903 rdos*)
17904 dynamic_linker=no
17907 solaris*)
17908 version_type=linux # correct to gnu/linux during the next big refactor
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 # ldd complains unless libraries are executable
17917 postinstall_cmds='chmod +x $lib'
17920 sunos4*)
17921 version_type=sunos
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 shlibpath_overrides_runpath=yes
17926 if test "$with_gnu_ld" = yes; then
17927 need_lib_prefix=no
17929 need_version=yes
17932 sysv4 | sysv4.3*)
17933 version_type=linux # correct to gnu/linux during the next big refactor
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 soname_spec='${libname}${release}${shared_ext}$major'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 case $host_vendor in
17938 sni)
17939 shlibpath_overrides_runpath=no
17940 need_lib_prefix=no
17941 runpath_var=LD_RUN_PATH
17943 siemens)
17944 need_lib_prefix=no
17946 motorola)
17947 need_lib_prefix=no
17948 need_version=no
17949 shlibpath_overrides_runpath=no
17950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17952 esac
17955 sysv4*MP*)
17956 if test -d /usr/nec ;then
17957 version_type=linux # correct to gnu/linux during the next big refactor
17958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17959 soname_spec='$libname${shared_ext}.$major'
17960 shlibpath_var=LD_LIBRARY_PATH
17964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17965 version_type=freebsd-elf
17966 need_lib_prefix=no
17967 need_version=no
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath=yes
17972 hardcode_into_libs=yes
17973 if test "$with_gnu_ld" = yes; then
17974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17975 else
17976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17977 case $host_os in
17978 sco3.2v5*)
17979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17981 esac
17983 sys_lib_dlsearch_path_spec='/usr/lib'
17986 tpf*)
17987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17988 version_type=linux # correct to gnu/linux during the next big refactor
17989 need_lib_prefix=no
17990 need_version=no
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=no
17994 hardcode_into_libs=yes
17997 uts4*)
17998 version_type=linux # correct to gnu/linux during the next big refactor
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18005 dynamic_linker=no
18007 esac
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18009 $as_echo "$dynamic_linker" >&6; }
18010 test "$dynamic_linker" = no && can_build_shared=no
18012 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18013 if test "$GCC" = yes; then
18014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18017 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18020 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18063 hardcode_action_CXX=
18064 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18065 test -n "$runpath_var_CXX" ||
18066 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18068 # We can hardcode non-existent directories.
18069 if test "$hardcode_direct_CXX" != no &&
18070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18071 # have to relink, otherwise we might link with an installed library
18072 # when we should be linking with a yet-to-be-installed one
18073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18074 test "$hardcode_minus_L_CXX" != no; then
18075 # Linking always hardcodes the temporary library directory.
18076 hardcode_action_CXX=relink
18077 else
18078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18079 hardcode_action_CXX=immediate
18081 else
18082 # We cannot hardcode anything, or else we can only hardcode existing
18083 # directories.
18084 hardcode_action_CXX=unsupported
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18087 $as_echo "$hardcode_action_CXX" >&6; }
18089 if test "$hardcode_action_CXX" = relink ||
18090 test "$inherit_rpath_CXX" = yes; then
18091 # Fast installation is not supported
18092 enable_fast_install=no
18093 elif test "$shlibpath_overrides_runpath" = yes ||
18094 test "$enable_shared" = no; then
18095 # Fast installation is not necessary
18096 enable_fast_install=needless
18105 fi # test -n "$compiler"
18107 CC=$lt_save_CC
18108 CFLAGS=$lt_save_CFLAGS
18109 LDCXX=$LD
18110 LD=$lt_save_LD
18111 GCC=$lt_save_GCC
18112 with_gnu_ld=$lt_save_with_gnu_ld
18113 lt_cv_path_LDCXX=$lt_cv_path_LD
18114 lt_cv_path_LD=$lt_save_path_LD
18115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18117 fi # test "$_lt_caught_CXX_error" != yes
18119 ac_ext=c
18120 ac_cpp='$CPP $CPPFLAGS'
18121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18139 ac_config_commands="$ac_config_commands libtool"
18144 # Only expand once:
18147 for ac_prog in gawk mawk nawk awk
18149 # Extract the first word of "$ac_prog", so it can be a program name with args.
18150 set dummy $ac_prog; ac_word=$2
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18152 $as_echo_n "checking for $ac_word... " >&6; }
18153 if ${ac_cv_prog_AWK+:} false; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 if test -n "$AWK"; then
18157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18158 else
18159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18160 for as_dir in $PATH
18162 IFS=$as_save_IFS
18163 test -z "$as_dir" && as_dir=.
18164 for ac_exec_ext in '' $ac_executable_extensions; do
18165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18166 ac_cv_prog_AWK="$ac_prog"
18167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18168 break 2
18170 done
18171 done
18172 IFS=$as_save_IFS
18176 AWK=$ac_cv_prog_AWK
18177 if test -n "$AWK"; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18179 $as_echo "$AWK" >&6; }
18180 else
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18186 test -n "$AWK" && break
18187 done
18191 # Extract the first word of "bison", so it can be a program name with args.
18192 set dummy bison; ac_word=$2
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18194 $as_echo_n "checking for $ac_word... " >&6; }
18195 if ${ac_cv_path_BISON+:} false; then :
18196 $as_echo_n "(cached) " >&6
18197 else
18198 case $BISON in
18199 [\\/]* | ?:[\\/]*)
18200 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204 for as_dir in $PATH
18206 IFS=$as_save_IFS
18207 test -z "$as_dir" && as_dir=.
18208 for ac_exec_ext in '' $ac_executable_extensions; do
18209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
18211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18212 break 2
18214 done
18215 done
18216 IFS=$as_save_IFS
18218 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
18220 esac
18222 BISON=$ac_cv_path_BISON
18223 if test -n "$BISON"; then
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18225 $as_echo "$BISON" >&6; }
18226 else
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228 $as_echo "no" >&6; }
18232 # Extract the first word of "help2man", so it can be a program name with args.
18233 set dummy help2man; ac_word=$2
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18235 $as_echo_n "checking for $ac_word... " >&6; }
18236 if ${ac_cv_path_HELP2MAN+:} false; then :
18237 $as_echo_n "(cached) " >&6
18238 else
18239 case $HELP2MAN in
18240 [\\/]* | ?:[\\/]*)
18241 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
18244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18245 for as_dir in $PATH
18247 IFS=$as_save_IFS
18248 test -z "$as_dir" && as_dir=.
18249 for ac_exec_ext in '' $ac_executable_extensions; do
18250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18251 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
18252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18253 break 2
18255 done
18256 done
18257 IFS=$as_save_IFS
18259 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
18261 esac
18263 HELP2MAN=$ac_cv_path_HELP2MAN
18264 if test -n "$HELP2MAN"; then
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
18266 $as_echo "$HELP2MAN" >&6; }
18267 else
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18269 $as_echo "no" >&6; }
18274 # Check for a m4 that supports -P
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
18277 $as_echo_n "checking for m4 that supports -P... " >&6; }
18278 if ${ac_cv_path_M4+:} false; then :
18279 $as_echo_n "(cached) " >&6
18280 else
18281 if test -z "$M4"; then
18282 ac_path_M4_found=false
18283 # Loop through the user's path and test for each of PROGNAME-LIST
18284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18285 for as_dir in $PATH
18287 IFS=$as_save_IFS
18288 test -z "$as_dir" && as_dir=.
18289 for ac_prog in gm4 gnum4 m4; do
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
18292 as_fn_executable_p "$ac_path_M4" || continue
18293 m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
18294 test "x$m4out" = x0 \
18295 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
18296 $ac_path_M4_found && break 3
18297 done
18298 done
18299 done
18300 IFS=$as_save_IFS
18301 if test -z "$ac_cv_path_M4"; then
18302 as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5
18304 else
18305 ac_cv_path_M4=$M4
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
18310 $as_echo "$ac_cv_path_M4" >&6; }
18311 M4=$ac_cv_path_M4
18314 cat >>confdefs.h <<_ACEOF
18315 #define M4 "$M4"
18316 _ACEOF
18319 # Extract the first word of "indent", so it can be a program name with args.
18320 set dummy indent; ac_word=$2
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18322 $as_echo_n "checking for $ac_word... " >&6; }
18323 if ${ac_cv_path_INDENT+:} false; then :
18324 $as_echo_n "(cached) " >&6
18325 else
18326 case $INDENT in
18327 [\\/]* | ?:[\\/]*)
18328 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
18331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18332 for as_dir in $PATH
18334 IFS=$as_save_IFS
18335 test -z "$as_dir" && as_dir=.
18336 for ac_exec_ext in '' $ac_executable_extensions; do
18337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18338 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
18339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18340 break 2
18342 done
18343 done
18344 IFS=$as_save_IFS
18346 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
18348 esac
18350 INDENT=$ac_cv_path_INDENT
18351 if test -n "$INDENT"; then
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
18353 $as_echo "$INDENT" >&6; }
18354 else
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18360 # if INDENT is set to 'indent' then we didn't find indent
18361 if test "$INDENT" != indent ; then
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
18363 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
18364 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18366 $as_echo "yes" >&6; }
18367 else
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369 $as_echo "no" >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
18371 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
18373 else
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5
18375 $as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
18378 # checks for headers
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18381 $as_echo_n "checking for ANSI C header files... " >&6; }
18382 if ${ac_cv_header_stdc+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387 #include <stdlib.h>
18388 #include <stdarg.h>
18389 #include <string.h>
18390 #include <float.h>
18393 main ()
18397 return 0;
18399 _ACEOF
18400 if ac_fn_c_try_compile "$LINENO"; then :
18401 ac_cv_header_stdc=yes
18402 else
18403 ac_cv_header_stdc=no
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 if test $ac_cv_header_stdc = yes; then
18408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18411 #include <string.h>
18413 _ACEOF
18414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18415 $EGREP "memchr" >/dev/null 2>&1; then :
18417 else
18418 ac_cv_header_stdc=no
18420 rm -f conftest*
18424 if test $ac_cv_header_stdc = yes; then
18425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <stdlib.h>
18430 _ACEOF
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 $EGREP "free" >/dev/null 2>&1; then :
18434 else
18435 ac_cv_header_stdc=no
18437 rm -f conftest*
18441 if test $ac_cv_header_stdc = yes; then
18442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18443 if test "$cross_compiling" = yes; then :
18445 else
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448 #include <ctype.h>
18449 #include <stdlib.h>
18450 #if ((' ' & 0x0FF) == 0x020)
18451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18453 #else
18454 # define ISLOWER(c) \
18455 (('a' <= (c) && (c) <= 'i') \
18456 || ('j' <= (c) && (c) <= 'r') \
18457 || ('s' <= (c) && (c) <= 'z'))
18458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18459 #endif
18461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18463 main ()
18465 int i;
18466 for (i = 0; i < 256; i++)
18467 if (XOR (islower (i), ISLOWER (i))
18468 || toupper (i) != TOUPPER (i))
18469 return 2;
18470 return 0;
18472 _ACEOF
18473 if ac_fn_c_try_run "$LINENO"; then :
18475 else
18476 ac_cv_header_stdc=no
18478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18479 conftest.$ac_objext conftest.beam conftest.$ac_ext
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18485 $as_echo "$ac_cv_header_stdc" >&6; }
18486 if test $ac_cv_header_stdc = yes; then
18488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18493 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18494 if ${ac_cv_header_sys_wait_h+:} false; then :
18495 $as_echo_n "(cached) " >&6
18496 else
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499 #include <sys/types.h>
18500 #include <sys/wait.h>
18501 #ifndef WEXITSTATUS
18502 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18503 #endif
18504 #ifndef WIFEXITED
18505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18506 #endif
18509 main ()
18511 int s;
18512 wait (&s);
18513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18515 return 0;
18517 _ACEOF
18518 if ac_fn_c_try_compile "$LINENO"; then :
18519 ac_cv_header_sys_wait_h=yes
18520 else
18521 ac_cv_header_sys_wait_h=no
18523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18526 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18527 if test $ac_cv_header_sys_wait_h = yes; then
18529 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18533 for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h
18534 do :
18535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18538 cat >>confdefs.h <<_ACEOF
18539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18540 _ACEOF
18544 done
18547 # checks for libraries
18549 # The test test-pthread uses libpthread, so we check for it here, but
18550 # all we need is the preprocessor symbol defined since we don't need
18551 # LIBS to include libpthread for building flex.
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
18554 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
18555 if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
18556 $as_echo_n "(cached) " >&6
18557 else
18558 ac_check_lib_save_LIBS=$LIBS
18559 LIBS="-lpthread $LIBS"
18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18563 /* Override any GCC internal prototype to avoid an error.
18564 Use char because int might match the return type of a GCC
18565 builtin and then its argument prototype would still apply. */
18566 #ifdef __cplusplus
18567 extern "C"
18568 #endif
18569 char pthread_mutex_lock ();
18571 main ()
18573 return pthread_mutex_lock ();
18575 return 0;
18577 _ACEOF
18578 if ac_fn_c_try_link "$LINENO"; then :
18579 ac_cv_lib_pthread_pthread_mutex_lock=yes
18580 else
18581 ac_cv_lib_pthread_pthread_mutex_lock=no
18583 rm -f core conftest.err conftest.$ac_objext \
18584 conftest$ac_exeext conftest.$ac_ext
18585 LIBS=$ac_check_lib_save_LIBS
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
18588 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
18589 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
18591 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
18593 else
18595 $as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h
18600 for ac_header in pthread.h
18601 do :
18602 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18603 if test "x$ac_cv_header_pthread_h" = xyes; then :
18604 cat >>confdefs.h <<_ACEOF
18605 #define HAVE_PTHREAD_H 1
18606 _ACEOF
18610 done
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
18614 $as_echo_n "checking for log10 in -lm... " >&6; }
18615 if ${ac_cv_lib_m_log10+:} false; then :
18616 $as_echo_n "(cached) " >&6
18617 else
18618 ac_check_lib_save_LIBS=$LIBS
18619 LIBS="-lm $LIBS"
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18623 /* Override any GCC internal prototype to avoid an error.
18624 Use char because int might match the return type of a GCC
18625 builtin and then its argument prototype would still apply. */
18626 #ifdef __cplusplus
18627 extern "C"
18628 #endif
18629 char log10 ();
18631 main ()
18633 return log10 ();
18635 return 0;
18637 _ACEOF
18638 if ac_fn_c_try_link "$LINENO"; then :
18639 ac_cv_lib_m_log10=yes
18640 else
18641 ac_cv_lib_m_log10=no
18643 rm -f core conftest.err conftest.$ac_objext \
18644 conftest$ac_exeext conftest.$ac_ext
18645 LIBS=$ac_check_lib_save_LIBS
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
18648 $as_echo "$ac_cv_lib_m_log10" >&6; }
18649 if test "x$ac_cv_lib_m_log10" = xyes; then :
18650 cat >>confdefs.h <<_ACEOF
18651 #define HAVE_LIBM 1
18652 _ACEOF
18654 LIBS="-lm $LIBS"
18659 # Checks for typedefs, structures, and compiler characteristics.
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18662 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18663 if ${ac_cv_header_stdbool_h+:} false; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18669 #include <stdbool.h>
18670 #ifndef bool
18671 "error: bool is not defined"
18672 #endif
18673 #ifndef false
18674 "error: false is not defined"
18675 #endif
18676 #if false
18677 "error: false is not 0"
18678 #endif
18679 #ifndef true
18680 "error: true is not defined"
18681 #endif
18682 #if true != 1
18683 "error: true is not 1"
18684 #endif
18685 #ifndef __bool_true_false_are_defined
18686 "error: __bool_true_false_are_defined is not defined"
18687 #endif
18689 struct s { _Bool s: 1; _Bool t; } s;
18691 char a[true == 1 ? 1 : -1];
18692 char b[false == 0 ? 1 : -1];
18693 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18694 char d[(bool) 0.5 == true ? 1 : -1];
18695 /* See body of main program for 'e'. */
18696 char f[(_Bool) 0.0 == false ? 1 : -1];
18697 char g[true];
18698 char h[sizeof (_Bool)];
18699 char i[sizeof s.t];
18700 enum { j = false, k = true, l = false * true, m = true * 256 };
18701 /* The following fails for
18702 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18703 _Bool n[m];
18704 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18705 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18706 /* Catch a bug in an HP-UX C compiler. See
18707 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18708 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18710 _Bool q = true;
18711 _Bool *pq = &q;
18714 main ()
18717 bool e = &s;
18718 *pq |= q;
18719 *pq |= ! q;
18720 /* Refer to every declared value, to avoid compiler optimizations. */
18721 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18722 + !m + !n + !o + !p + !q + !pq);
18725 return 0;
18727 _ACEOF
18728 if ac_fn_c_try_compile "$LINENO"; then :
18729 ac_cv_header_stdbool_h=yes
18730 else
18731 ac_cv_header_stdbool_h=no
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18736 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18737 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18738 if test "x$ac_cv_type__Bool" = xyes; then :
18740 cat >>confdefs.h <<_ACEOF
18741 #define HAVE__BOOL 1
18742 _ACEOF
18748 if test $ac_cv_header_stdbool_h = yes; then
18750 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18756 if ${ac_cv_c_const+:} false; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18763 main ()
18766 #ifndef __cplusplus
18767 /* Ultrix mips cc rejects this sort of thing. */
18768 typedef int charset[2];
18769 const charset cs = { 0, 0 };
18770 /* SunOS 4.1.1 cc rejects this. */
18771 char const *const *pcpcc;
18772 char **ppc;
18773 /* NEC SVR4.0.2 mips cc rejects this. */
18774 struct point {int x, y;};
18775 static struct point const zero = {0,0};
18776 /* AIX XL C 1.02.0.0 rejects this.
18777 It does not let you subtract one const X* pointer from another in
18778 an arm of an if-expression whose if-part is not a constant
18779 expression */
18780 const char *g = "string";
18781 pcpcc = &g + (g ? g-g : 0);
18782 /* HPUX 7.0 cc rejects these. */
18783 ++pcpcc;
18784 ppc = (char**) pcpcc;
18785 pcpcc = (char const *const *) ppc;
18786 { /* SCO 3.2v4 cc rejects this sort of thing. */
18787 char tx;
18788 char *t = &tx;
18789 char const *s = 0 ? (char *) 0 : (char const *) 0;
18791 *t++ = 0;
18792 if (s) return 0;
18794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18795 int x[] = {25, 17};
18796 const int *foo = &x[0];
18797 ++foo;
18799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18800 typedef const int *iptr;
18801 iptr p = 0;
18802 ++p;
18804 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18806 struct s { int j; const int *ap[3]; } bx;
18807 struct s *b = &bx; b->j = 5;
18809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18810 const int foo = 10;
18811 if (!foo) return 0;
18813 return !cs[0] && !zero.x;
18814 #endif
18817 return 0;
18819 _ACEOF
18820 if ac_fn_c_try_compile "$LINENO"; then :
18821 ac_cv_c_const=yes
18822 else
18823 ac_cv_c_const=no
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18828 $as_echo "$ac_cv_c_const" >&6; }
18829 if test $ac_cv_c_const = no; then
18831 $as_echo "#define const /**/" >>confdefs.h
18835 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18836 if test "x$ac_cv_type_size_t" = xyes; then :
18838 else
18840 cat >>confdefs.h <<_ACEOF
18841 #define size_t unsigned int
18842 _ACEOF
18847 # Checks for library functions.
18849 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18850 # for constant arguments. Useless!
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18852 $as_echo_n "checking for working alloca.h... " >&6; }
18853 if ${ac_cv_working_alloca_h+:} false; then :
18854 $as_echo_n "(cached) " >&6
18855 else
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858 #include <alloca.h>
18860 main ()
18862 char *p = (char *) alloca (2 * sizeof (int));
18863 if (p) return 0;
18865 return 0;
18867 _ACEOF
18868 if ac_fn_c_try_link "$LINENO"; then :
18869 ac_cv_working_alloca_h=yes
18870 else
18871 ac_cv_working_alloca_h=no
18873 rm -f core conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18877 $as_echo "$ac_cv_working_alloca_h" >&6; }
18878 if test $ac_cv_working_alloca_h = yes; then
18880 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18885 $as_echo_n "checking for alloca... " >&6; }
18886 if ${ac_cv_func_alloca_works+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18891 #ifdef __GNUC__
18892 # define alloca __builtin_alloca
18893 #else
18894 # ifdef _MSC_VER
18895 # include <malloc.h>
18896 # define alloca _alloca
18897 # else
18898 # ifdef HAVE_ALLOCA_H
18899 # include <alloca.h>
18900 # else
18901 # ifdef _AIX
18902 #pragma alloca
18903 # else
18904 # ifndef alloca /* predefined by HP cc +Olibcalls */
18905 void *alloca (size_t);
18906 # endif
18907 # endif
18908 # endif
18909 # endif
18910 #endif
18913 main ()
18915 char *p = (char *) alloca (1);
18916 if (p) return 0;
18918 return 0;
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 ac_cv_func_alloca_works=yes
18923 else
18924 ac_cv_func_alloca_works=no
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18930 $as_echo "$ac_cv_func_alloca_works" >&6; }
18932 if test $ac_cv_func_alloca_works = yes; then
18934 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18936 else
18937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18938 # that cause trouble. Some versions do not even contain alloca or
18939 # contain a buggy version. If you still want to use their alloca,
18940 # use ar to extract alloca.o from them instead of compiling alloca.c.
18942 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18944 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18948 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18949 if ${ac_cv_os_cray+:} false; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18954 #if defined CRAY && ! defined CRAY2
18955 webecray
18956 #else
18957 wenotbecray
18958 #endif
18960 _ACEOF
18961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18962 $EGREP "webecray" >/dev/null 2>&1; then :
18963 ac_cv_os_cray=yes
18964 else
18965 ac_cv_os_cray=no
18967 rm -f conftest*
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18971 $as_echo "$ac_cv_os_cray" >&6; }
18972 if test $ac_cv_os_cray = yes; then
18973 for ac_func in _getb67 GETB67 getb67; do
18974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18976 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18978 cat >>confdefs.h <<_ACEOF
18979 #define CRAY_STACKSEG_END $ac_func
18980 _ACEOF
18982 break
18985 done
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18989 $as_echo_n "checking stack direction for C alloca... " >&6; }
18990 if ${ac_cv_c_stack_direction+:} false; then :
18991 $as_echo_n "(cached) " >&6
18992 else
18993 if test "$cross_compiling" = yes; then :
18994 ac_cv_c_stack_direction=0
18995 else
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18998 $ac_includes_default
19000 find_stack_direction (int *addr, int depth)
19002 int dir, dummy = 0;
19003 if (! addr)
19004 addr = &dummy;
19005 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19006 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19007 return dir + dummy;
19011 main (int argc, char **argv)
19013 return find_stack_direction (0, argc + !argv + 20) < 0;
19015 _ACEOF
19016 if ac_fn_c_try_run "$LINENO"; then :
19017 ac_cv_c_stack_direction=1
19018 else
19019 ac_cv_c_stack_direction=-1
19021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19022 conftest.$ac_objext conftest.beam conftest.$ac_ext
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19027 $as_echo "$ac_cv_c_stack_direction" >&6; }
19028 cat >>confdefs.h <<_ACEOF
19029 #define STACK_DIRECTION $ac_cv_c_stack_direction
19030 _ACEOF
19035 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19036 if test "x$ac_cv_type_pid_t" = xyes; then :
19038 else
19040 cat >>confdefs.h <<_ACEOF
19041 #define pid_t int
19042 _ACEOF
19046 for ac_header in vfork.h
19047 do :
19048 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19049 if test "x$ac_cv_header_vfork_h" = xyes; then :
19050 cat >>confdefs.h <<_ACEOF
19051 #define HAVE_VFORK_H 1
19052 _ACEOF
19056 done
19058 for ac_func in fork vfork
19059 do :
19060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19063 cat >>confdefs.h <<_ACEOF
19064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19065 _ACEOF
19068 done
19070 if test "x$ac_cv_func_fork" = xyes; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19072 $as_echo_n "checking for working fork... " >&6; }
19073 if ${ac_cv_func_fork_works+:} false; then :
19074 $as_echo_n "(cached) " >&6
19075 else
19076 if test "$cross_compiling" = yes; then :
19077 ac_cv_func_fork_works=cross
19078 else
19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h. */
19081 $ac_includes_default
19083 main ()
19086 /* By Ruediger Kuhlmann. */
19087 return fork () < 0;
19090 return 0;
19092 _ACEOF
19093 if ac_fn_c_try_run "$LINENO"; then :
19094 ac_cv_func_fork_works=yes
19095 else
19096 ac_cv_func_fork_works=no
19098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19099 conftest.$ac_objext conftest.beam conftest.$ac_ext
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19104 $as_echo "$ac_cv_func_fork_works" >&6; }
19106 else
19107 ac_cv_func_fork_works=$ac_cv_func_fork
19109 if test "x$ac_cv_func_fork_works" = xcross; then
19110 case $host in
19111 *-*-amigaos* | *-*-msdosdjgpp*)
19112 # Override, as these systems have only a dummy fork() stub
19113 ac_cv_func_fork_works=no
19116 ac_cv_func_fork_works=yes
19118 esac
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19120 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19122 ac_cv_func_vfork_works=$ac_cv_func_vfork
19123 if test "x$ac_cv_func_vfork" = xyes; then
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19125 $as_echo_n "checking for working vfork... " >&6; }
19126 if ${ac_cv_func_vfork_works+:} false; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 if test "$cross_compiling" = yes; then :
19130 ac_cv_func_vfork_works=cross
19131 else
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134 /* Thanks to Paul Eggert for this test. */
19135 $ac_includes_default
19136 #include <sys/wait.h>
19137 #ifdef HAVE_VFORK_H
19138 # include <vfork.h>
19139 #endif
19140 /* On some sparc systems, changes by the child to local and incoming
19141 argument registers are propagated back to the parent. The compiler
19142 is told about this with #include <vfork.h>, but some compilers
19143 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19144 static variable whose address is put into a register that is
19145 clobbered by the vfork. */
19146 static void
19147 #ifdef __cplusplus
19148 sparc_address_test (int arg)
19149 # else
19150 sparc_address_test (arg) int arg;
19151 #endif
19153 static pid_t child;
19154 if (!child) {
19155 child = vfork ();
19156 if (child < 0) {
19157 perror ("vfork");
19158 _exit(2);
19160 if (!child) {
19161 arg = getpid();
19162 write(-1, "", 0);
19163 _exit (arg);
19169 main ()
19171 pid_t parent = getpid ();
19172 pid_t child;
19174 sparc_address_test (0);
19176 child = vfork ();
19178 if (child == 0) {
19179 /* Here is another test for sparc vfork register problems. This
19180 test uses lots of local variables, at least as many local
19181 variables as main has allocated so far including compiler
19182 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19183 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19184 reuse the register of parent for one of the local variables,
19185 since it will think that parent can't possibly be used any more
19186 in this routine. Assigning to the local variable will thus
19187 munge parent in the parent process. */
19188 pid_t
19189 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19190 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19191 /* Convince the compiler that p..p7 are live; otherwise, it might
19192 use the same hardware register for all 8 local variables. */
19193 if (p != p1 || p != p2 || p != p3 || p != p4
19194 || p != p5 || p != p6 || p != p7)
19195 _exit(1);
19197 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19198 from child file descriptors. If the child closes a descriptor
19199 before it execs or exits, this munges the parent's descriptor
19200 as well. Test for this by closing stdout in the child. */
19201 _exit(close(fileno(stdout)) != 0);
19202 } else {
19203 int status;
19204 struct stat st;
19206 while (wait(&status) != child)
19208 return (
19209 /* Was there some problem with vforking? */
19210 child < 0
19212 /* Did the child fail? (This shouldn't happen.) */
19213 || status
19215 /* Did the vfork/compiler bug occur? */
19216 || parent != getpid()
19218 /* Did the file descriptor bug occur? */
19219 || fstat(fileno(stdout), &st) != 0
19223 _ACEOF
19224 if ac_fn_c_try_run "$LINENO"; then :
19225 ac_cv_func_vfork_works=yes
19226 else
19227 ac_cv_func_vfork_works=no
19229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19230 conftest.$ac_objext conftest.beam conftest.$ac_ext
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19235 $as_echo "$ac_cv_func_vfork_works" >&6; }
19238 if test "x$ac_cv_func_fork_works" = xcross; then
19239 ac_cv_func_vfork_works=$ac_cv_func_vfork
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19241 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19244 if test "x$ac_cv_func_vfork_works" = xyes; then
19246 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19248 else
19250 $as_echo "#define vfork fork" >>confdefs.h
19253 if test "x$ac_cv_func_fork_works" = xyes; then
19255 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19259 for ac_header in stdlib.h
19260 do :
19261 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19262 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19263 cat >>confdefs.h <<_ACEOF
19264 #define HAVE_STDLIB_H 1
19265 _ACEOF
19269 done
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19272 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19273 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19274 $as_echo_n "(cached) " >&6
19275 else
19276 if test "$cross_compiling" = yes; then :
19277 ac_cv_func_malloc_0_nonnull=no
19278 else
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19282 # include <stdlib.h>
19283 #else
19284 char *malloc ();
19285 #endif
19288 main ()
19290 return ! malloc (0);
19292 return 0;
19294 _ACEOF
19295 if ac_fn_c_try_run "$LINENO"; then :
19296 ac_cv_func_malloc_0_nonnull=yes
19297 else
19298 ac_cv_func_malloc_0_nonnull=no
19300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19301 conftest.$ac_objext conftest.beam conftest.$ac_ext
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19306 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19307 if test $ac_cv_func_malloc_0_nonnull = yes; then :
19309 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
19311 else
19312 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
19314 case " $LIBOBJS " in
19315 *" malloc.$ac_objext "* ) ;;
19316 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
19318 esac
19321 $as_echo "#define malloc rpl_malloc" >>confdefs.h
19326 for ac_header in stdlib.h
19327 do :
19328 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19329 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_STDLIB_H 1
19332 _ACEOF
19336 done
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
19339 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
19340 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
19341 $as_echo_n "(cached) " >&6
19342 else
19343 if test "$cross_compiling" = yes; then :
19344 ac_cv_func_realloc_0_nonnull=no
19345 else
19346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347 /* end confdefs.h. */
19348 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19349 # include <stdlib.h>
19350 #else
19351 char *realloc ();
19352 #endif
19355 main ()
19357 return ! realloc (0, 0);
19359 return 0;
19361 _ACEOF
19362 if ac_fn_c_try_run "$LINENO"; then :
19363 ac_cv_func_realloc_0_nonnull=yes
19364 else
19365 ac_cv_func_realloc_0_nonnull=no
19367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19368 conftest.$ac_objext conftest.beam conftest.$ac_ext
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
19373 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
19374 if test $ac_cv_func_realloc_0_nonnull = yes; then :
19376 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
19378 else
19379 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
19381 case " $LIBOBJS " in
19382 *" realloc.$ac_objext "* ) ;;
19383 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
19385 esac
19388 $as_echo "#define realloc rpl_realloc" >>confdefs.h
19393 for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol
19394 do :
19395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19398 cat >>confdefs.h <<_ACEOF
19399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19400 _ACEOF
19403 done
19406 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-trailing/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile"
19409 cat >confcache <<\_ACEOF
19410 # This file is a shell script that caches the results of configure
19411 # tests run on this system so they can be shared between configure
19412 # scripts and configure runs, see configure's option --config-cache.
19413 # It is not useful on other systems. If it contains results you don't
19414 # want to keep, you may remove or edit it.
19416 # config.status only pays attention to the cache file if you give it
19417 # the --recheck option to rerun configure.
19419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19421 # following values.
19423 _ACEOF
19425 # The following way of writing the cache mishandles newlines in values,
19426 # but we know of no workaround that is simple, portable, and efficient.
19427 # So, we kill variables containing newlines.
19428 # Ultrix sh set writes to stderr and can't be redirected directly,
19429 # and sets the high bit in the cache file unless we assign to the vars.
19431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19432 eval ac_val=\$$ac_var
19433 case $ac_val in #(
19434 *${as_nl}*)
19435 case $ac_var in #(
19436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19438 esac
19439 case $ac_var in #(
19440 _ | IFS | as_nl) ;; #(
19441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19442 *) { eval $ac_var=; unset $ac_var;} ;;
19443 esac ;;
19444 esac
19445 done
19447 (set) 2>&1 |
19448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19449 *${as_nl}ac_space=\ *)
19450 # `set' does not quote correctly, so add quotes: double-quote
19451 # substitution turns \\\\ into \\, and sed turns \\ into \.
19452 sed -n \
19453 "s/'/'\\\\''/g;
19454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19455 ;; #(
19457 # `set' quotes correctly as required by POSIX, so do not add quotes.
19458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19460 esac |
19461 sort
19463 sed '
19464 /^ac_cv_env_/b end
19465 t clear
19466 :clear
19467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19468 t end
19469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19470 :end' >>confcache
19471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19472 if test -w "$cache_file"; then
19473 if test "x$cache_file" != "x/dev/null"; then
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19475 $as_echo "$as_me: updating cache $cache_file" >&6;}
19476 if test ! -f "$cache_file" || test -h "$cache_file"; then
19477 cat confcache >"$cache_file"
19478 else
19479 case $cache_file in #(
19480 */* | ?:*)
19481 mv -f confcache "$cache_file"$$ &&
19482 mv -f "$cache_file"$$ "$cache_file" ;; #(
19484 mv -f confcache "$cache_file" ;;
19485 esac
19488 else
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19493 rm -f confcache
19495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19496 # Let make expand exec_prefix.
19497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19499 DEFS=-DHAVE_CONFIG_H
19501 ac_libobjs=
19502 ac_ltlibobjs=
19504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19505 # 1. Remove the extension, and $U if already installed.
19506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19509 # will be set to the directory where LIBOBJS objects are built.
19510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19512 done
19513 LIBOBJS=$ac_libobjs
19515 LTLIBOBJS=$ac_ltlibobjs
19518 if test -n "$EXEEXT"; then
19519 am__EXEEXT_TRUE=
19520 am__EXEEXT_FALSE='#'
19521 else
19522 am__EXEEXT_TRUE='#'
19523 am__EXEEXT_FALSE=
19526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19527 as_fn_error $? "conditional \"AMDEP\" was never defined.
19528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19531 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19535 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19538 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19539 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19543 : "${CONFIG_STATUS=./config.status}"
19544 ac_write_fail=0
19545 ac_clean_files_save=$ac_clean_files
19546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19548 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19549 as_write_fail=0
19550 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19551 #! $SHELL
19552 # Generated by $as_me.
19553 # Run this file to recreate the current configuration.
19554 # Compiler output produced by configure, useful for debugging
19555 # configure, is in config.log if it exists.
19557 debug=false
19558 ac_cs_recheck=false
19559 ac_cs_silent=false
19561 SHELL=\${CONFIG_SHELL-$SHELL}
19562 export SHELL
19563 _ASEOF
19564 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19565 ## -------------------- ##
19566 ## M4sh Initialization. ##
19567 ## -------------------- ##
19569 # Be more Bourne compatible
19570 DUALCASE=1; export DUALCASE # for MKS sh
19571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19572 emulate sh
19573 NULLCMD=:
19574 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19575 # is contrary to our usage. Disable this feature.
19576 alias -g '${1+"$@"}'='"$@"'
19577 setopt NO_GLOB_SUBST
19578 else
19579 case `(set -o) 2>/dev/null` in #(
19580 *posix*) :
19581 set -o posix ;; #(
19582 *) :
19584 esac
19588 as_nl='
19590 export as_nl
19591 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19592 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19593 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19595 # Prefer a ksh shell builtin over an external printf program on Solaris,
19596 # but without wasting forks for bash or zsh.
19597 if test -z "$BASH_VERSION$ZSH_VERSION" \
19598 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19599 as_echo='print -r --'
19600 as_echo_n='print -rn --'
19601 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19602 as_echo='printf %s\n'
19603 as_echo_n='printf %s'
19604 else
19605 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19606 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19607 as_echo_n='/usr/ucb/echo -n'
19608 else
19609 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19610 as_echo_n_body='eval
19611 arg=$1;
19612 case $arg in #(
19613 *"$as_nl"*)
19614 expr "X$arg" : "X\\(.*\\)$as_nl";
19615 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19616 esac;
19617 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19619 export as_echo_n_body
19620 as_echo_n='sh -c $as_echo_n_body as_echo'
19622 export as_echo_body
19623 as_echo='sh -c $as_echo_body as_echo'
19626 # The user is always right.
19627 if test "${PATH_SEPARATOR+set}" != set; then
19628 PATH_SEPARATOR=:
19629 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19630 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19631 PATH_SEPARATOR=';'
19636 # IFS
19637 # We need space, tab and new line, in precisely that order. Quoting is
19638 # there to prevent editors from complaining about space-tab.
19639 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19640 # splitting by setting IFS to empty value.)
19641 IFS=" "" $as_nl"
19643 # Find who we are. Look in the path if we contain no directory separator.
19644 as_myself=
19645 case $0 in #((
19646 *[\\/]* ) as_myself=$0 ;;
19647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648 for as_dir in $PATH
19650 IFS=$as_save_IFS
19651 test -z "$as_dir" && as_dir=.
19652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19653 done
19654 IFS=$as_save_IFS
19657 esac
19658 # We did not find ourselves, most probably we were run as `sh COMMAND'
19659 # in which case we are not to be found in the path.
19660 if test "x$as_myself" = x; then
19661 as_myself=$0
19663 if test ! -f "$as_myself"; then
19664 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19665 exit 1
19668 # Unset variables that we do not need and which cause bugs (e.g. in
19669 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19670 # suppresses any "Segmentation fault" message there. '((' could
19671 # trigger a bug in pdksh 5.2.14.
19672 for as_var in BASH_ENV ENV MAIL MAILPATH
19673 do eval test x\${$as_var+set} = xset \
19674 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19675 done
19676 PS1='$ '
19677 PS2='> '
19678 PS4='+ '
19680 # NLS nuisances.
19681 LC_ALL=C
19682 export LC_ALL
19683 LANGUAGE=C
19684 export LANGUAGE
19686 # CDPATH.
19687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19690 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19691 # ----------------------------------------
19692 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19693 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19694 # script with STATUS, using 1 if that was 0.
19695 as_fn_error ()
19697 as_status=$1; test $as_status -eq 0 && as_status=1
19698 if test "$4"; then
19699 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19700 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19702 $as_echo "$as_me: error: $2" >&2
19703 as_fn_exit $as_status
19704 } # as_fn_error
19707 # as_fn_set_status STATUS
19708 # -----------------------
19709 # Set $? to STATUS, without forking.
19710 as_fn_set_status ()
19712 return $1
19713 } # as_fn_set_status
19715 # as_fn_exit STATUS
19716 # -----------------
19717 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19718 as_fn_exit ()
19720 set +e
19721 as_fn_set_status $1
19722 exit $1
19723 } # as_fn_exit
19725 # as_fn_unset VAR
19726 # ---------------
19727 # Portably unset VAR.
19728 as_fn_unset ()
19730 { eval $1=; unset $1;}
19732 as_unset=as_fn_unset
19733 # as_fn_append VAR VALUE
19734 # ----------------------
19735 # Append the text in VALUE to the end of the definition contained in VAR. Take
19736 # advantage of any shell optimizations that allow amortized linear growth over
19737 # repeated appends, instead of the typical quadratic growth present in naive
19738 # implementations.
19739 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19740 eval 'as_fn_append ()
19742 eval $1+=\$2
19744 else
19745 as_fn_append ()
19747 eval $1=\$$1\$2
19749 fi # as_fn_append
19751 # as_fn_arith ARG...
19752 # ------------------
19753 # Perform arithmetic evaluation on the ARGs, and store the result in the
19754 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19755 # must be portable across $(()) and expr.
19756 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19757 eval 'as_fn_arith ()
19759 as_val=$(( $* ))
19761 else
19762 as_fn_arith ()
19764 as_val=`expr "$@" || test $? -eq 1`
19766 fi # as_fn_arith
19769 if expr a : '\(a\)' >/dev/null 2>&1 &&
19770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19771 as_expr=expr
19772 else
19773 as_expr=false
19776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19777 as_basename=basename
19778 else
19779 as_basename=false
19782 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19783 as_dirname=dirname
19784 else
19785 as_dirname=false
19788 as_me=`$as_basename -- "$0" ||
19789 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19790 X"$0" : 'X\(//\)$' \| \
19791 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19792 $as_echo X/"$0" |
19793 sed '/^.*\/\([^/][^/]*\)\/*$/{
19794 s//\1/
19797 /^X\/\(\/\/\)$/{
19798 s//\1/
19801 /^X\/\(\/\).*/{
19802 s//\1/
19805 s/.*/./; q'`
19807 # Avoid depending upon Character Ranges.
19808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19811 as_cr_digits='0123456789'
19812 as_cr_alnum=$as_cr_Letters$as_cr_digits
19814 ECHO_C= ECHO_N= ECHO_T=
19815 case `echo -n x` in #(((((
19816 -n*)
19817 case `echo 'xy\c'` in
19818 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19819 xy) ECHO_C='\c';;
19820 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19821 ECHO_T=' ';;
19822 esac;;
19824 ECHO_N='-n';;
19825 esac
19827 rm -f conf$$ conf$$.exe conf$$.file
19828 if test -d conf$$.dir; then
19829 rm -f conf$$.dir/conf$$.file
19830 else
19831 rm -f conf$$.dir
19832 mkdir conf$$.dir 2>/dev/null
19834 if (echo >conf$$.file) 2>/dev/null; then
19835 if ln -s conf$$.file conf$$ 2>/dev/null; then
19836 as_ln_s='ln -s'
19837 # ... but there are two gotchas:
19838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19840 # In both cases, we have to default to `cp -pR'.
19841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19842 as_ln_s='cp -pR'
19843 elif ln conf$$.file conf$$ 2>/dev/null; then
19844 as_ln_s=ln
19845 else
19846 as_ln_s='cp -pR'
19848 else
19849 as_ln_s='cp -pR'
19851 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19852 rmdir conf$$.dir 2>/dev/null
19855 # as_fn_mkdir_p
19856 # -------------
19857 # Create "$as_dir" as a directory, including parents if necessary.
19858 as_fn_mkdir_p ()
19861 case $as_dir in #(
19862 -*) as_dir=./$as_dir;;
19863 esac
19864 test -d "$as_dir" || eval $as_mkdir_p || {
19865 as_dirs=
19866 while :; do
19867 case $as_dir in #(
19868 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19869 *) as_qdir=$as_dir;;
19870 esac
19871 as_dirs="'$as_qdir' $as_dirs"
19872 as_dir=`$as_dirname -- "$as_dir" ||
19873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19874 X"$as_dir" : 'X\(//\)[^/]' \| \
19875 X"$as_dir" : 'X\(//\)$' \| \
19876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19877 $as_echo X"$as_dir" |
19878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19879 s//\1/
19882 /^X\(\/\/\)[^/].*/{
19883 s//\1/
19886 /^X\(\/\/\)$/{
19887 s//\1/
19890 /^X\(\/\).*/{
19891 s//\1/
19894 s/.*/./; q'`
19895 test -d "$as_dir" && break
19896 done
19897 test -z "$as_dirs" || eval "mkdir $as_dirs"
19898 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19901 } # as_fn_mkdir_p
19902 if mkdir -p . 2>/dev/null; then
19903 as_mkdir_p='mkdir -p "$as_dir"'
19904 else
19905 test -d ./-p && rmdir ./-p
19906 as_mkdir_p=false
19910 # as_fn_executable_p FILE
19911 # -----------------------
19912 # Test if FILE is an executable regular file.
19913 as_fn_executable_p ()
19915 test -f "$1" && test -x "$1"
19916 } # as_fn_executable_p
19917 as_test_x='test -x'
19918 as_executable_p=as_fn_executable_p
19920 # Sed expression to map a string onto a valid CPP name.
19921 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19923 # Sed expression to map a string onto a valid variable name.
19924 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19927 exec 6>&1
19928 ## ----------------------------------- ##
19929 ## Main body of $CONFIG_STATUS script. ##
19930 ## ----------------------------------- ##
19931 _ASEOF
19932 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19935 # Save the log message, to keep $0 and so on meaningful, and to
19936 # report actual input values of CONFIG_FILES etc. instead of their
19937 # values after options handling.
19938 ac_log="
19939 This file was extended by the fast lexical analyser generator $as_me 2.5.39, which was
19940 generated by GNU Autoconf 2.69. Invocation command line was
19942 CONFIG_FILES = $CONFIG_FILES
19943 CONFIG_HEADERS = $CONFIG_HEADERS
19944 CONFIG_LINKS = $CONFIG_LINKS
19945 CONFIG_COMMANDS = $CONFIG_COMMANDS
19946 $ $0 $@
19948 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19951 _ACEOF
19953 case $ac_config_files in *"
19954 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19955 esac
19957 case $ac_config_headers in *"
19958 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19959 esac
19962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19963 # Files that config.status was made for.
19964 config_files="$ac_config_files"
19965 config_headers="$ac_config_headers"
19966 config_commands="$ac_config_commands"
19968 _ACEOF
19970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19971 ac_cs_usage="\
19972 \`$as_me' instantiates files and other configuration actions
19973 from templates according to the current configuration. Unless the files
19974 and actions are specified as TAGs, all are instantiated by default.
19976 Usage: $0 [OPTION]... [TAG]...
19978 -h, --help print this help, then exit
19979 -V, --version print version number and configuration settings, then exit
19980 --config print configuration, then exit
19981 -q, --quiet, --silent
19982 do not print progress messages
19983 -d, --debug don't remove temporary files
19984 --recheck update $as_me by reconfiguring in the same conditions
19985 --file=FILE[:TEMPLATE]
19986 instantiate the configuration file FILE
19987 --header=FILE[:TEMPLATE]
19988 instantiate the configuration header FILE
19990 Configuration files:
19991 $config_files
19993 Configuration headers:
19994 $config_headers
19996 Configuration commands:
19997 $config_commands
19999 Report bugs to <flex-help@lists.sourceforge.net>."
20001 _ACEOF
20002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20003 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20004 ac_cs_version="\\
20005 the fast lexical analyser generator config.status 2.5.39
20006 configured by $0, generated by GNU Autoconf 2.69,
20007 with options \\"\$ac_cs_config\\"
20009 Copyright (C) 2012 Free Software Foundation, Inc.
20010 This config.status script is free software; the Free Software Foundation
20011 gives unlimited permission to copy, distribute and modify it."
20013 ac_pwd='$ac_pwd'
20014 srcdir='$srcdir'
20015 INSTALL='$INSTALL'
20016 MKDIR_P='$MKDIR_P'
20017 AWK='$AWK'
20018 test -n "\$AWK" || AWK=awk
20019 _ACEOF
20021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20022 # The default lists apply if the user does not specify any file.
20023 ac_need_defaults=:
20024 while test $# != 0
20026 case $1 in
20027 --*=?*)
20028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20030 ac_shift=:
20032 --*=)
20033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20034 ac_optarg=
20035 ac_shift=:
20038 ac_option=$1
20039 ac_optarg=$2
20040 ac_shift=shift
20042 esac
20044 case $ac_option in
20045 # Handling of the options.
20046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20047 ac_cs_recheck=: ;;
20048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20049 $as_echo "$ac_cs_version"; exit ;;
20050 --config | --confi | --conf | --con | --co | --c )
20051 $as_echo "$ac_cs_config"; exit ;;
20052 --debug | --debu | --deb | --de | --d | -d )
20053 debug=: ;;
20054 --file | --fil | --fi | --f )
20055 $ac_shift
20056 case $ac_optarg in
20057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20058 '') as_fn_error $? "missing file argument" ;;
20059 esac
20060 as_fn_append CONFIG_FILES " '$ac_optarg'"
20061 ac_need_defaults=false;;
20062 --header | --heade | --head | --hea )
20063 $ac_shift
20064 case $ac_optarg in
20065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20066 esac
20067 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20068 ac_need_defaults=false;;
20069 --he | --h)
20070 # Conflict between --help and --header
20071 as_fn_error $? "ambiguous option: \`$1'
20072 Try \`$0 --help' for more information.";;
20073 --help | --hel | -h )
20074 $as_echo "$ac_cs_usage"; exit ;;
20075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20077 ac_cs_silent=: ;;
20079 # This is an error.
20080 -*) as_fn_error $? "unrecognized option: \`$1'
20081 Try \`$0 --help' for more information." ;;
20083 *) as_fn_append ac_config_targets " $1"
20084 ac_need_defaults=false ;;
20086 esac
20087 shift
20088 done
20090 ac_configure_extra_args=
20092 if $ac_cs_silent; then
20093 exec 6>/dev/null
20094 ac_configure_extra_args="$ac_configure_extra_args --silent"
20097 _ACEOF
20098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099 if \$ac_cs_recheck; then
20100 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20101 shift
20102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20103 CONFIG_SHELL='$SHELL'
20104 export CONFIG_SHELL
20105 exec "\$@"
20108 _ACEOF
20109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110 exec 5>>config.log
20112 echo
20113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20114 ## Running $as_me. ##
20115 _ASBOX
20116 $as_echo "$ac_log"
20117 } >&5
20119 _ACEOF
20120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20122 # INIT-COMMANDS
20124 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20125 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20126 # from automake < 1.5.
20127 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20128 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20129 LINGUAS="${LINGUAS-%UNSET%}"
20131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20134 # The HP-UX ksh and POSIX shell print the target directory to stdout
20135 # if CDPATH is set.
20136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20138 sed_quote_subst='$sed_quote_subst'
20139 double_quote_subst='$double_quote_subst'
20140 delay_variable_subst='$delay_variable_subst'
20141 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20142 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20143 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20144 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20145 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20146 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20147 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20148 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20149 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20150 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20151 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20152 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20153 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20154 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20155 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20156 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20157 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20158 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20159 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20160 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20161 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20162 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20163 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20164 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20165 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20166 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20167 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20168 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20169 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20170 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20171 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20172 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20173 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20174 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20175 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20176 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20177 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20178 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20179 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20180 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20181 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20182 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20183 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20184 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20185 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20186 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20187 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20188 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20189 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20190 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20191 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20192 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20193 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20194 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20195 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20196 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20197 lt_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"`'
20198 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20199 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20200 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20201 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20202 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20203 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20204 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20205 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20206 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20207 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20208 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20209 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20210 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20211 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20212 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20213 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20214 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20215 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20216 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20217 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20218 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20219 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20220 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20221 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20222 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20223 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20224 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20225 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20226 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20227 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20228 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20229 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20230 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20231 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20232 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20233 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20234 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20235 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20236 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20237 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20238 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20239 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20240 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20241 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20242 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20243 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20244 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20245 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20246 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20247 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20248 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20249 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20250 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20251 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20252 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20253 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20254 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20255 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20256 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20257 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20258 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20259 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20260 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20261 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20262 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20263 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20264 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20265 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20266 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20267 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20268 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20269 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20270 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20271 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20272 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20273 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20274 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20275 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20276 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20277 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20278 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20279 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20280 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20281 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20282 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20283 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20284 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20285 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20286 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20287 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20288 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20289 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20290 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20291 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20292 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20293 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20294 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20295 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20296 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20297 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20298 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20299 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20300 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20301 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20302 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20303 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20304 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20305 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20306 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20307 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20308 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20309 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20310 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20311 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20312 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20313 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20314 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20315 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20316 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20317 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20318 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20319 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20320 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20321 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20322 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20323 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20324 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20326 LTCC='$LTCC'
20327 LTCFLAGS='$LTCFLAGS'
20328 compiler='$compiler_DEFAULT'
20330 # A function that is used when there is no print builtin or printf.
20331 func_fallback_echo ()
20333 eval 'cat <<_LTECHO_EOF
20335 _LTECHO_EOF'
20338 # Quote evaled strings.
20339 for var in SHELL \
20340 ECHO \
20341 PATH_SEPARATOR \
20342 SED \
20343 GREP \
20344 EGREP \
20345 FGREP \
20346 LD \
20347 NM \
20348 LN_S \
20349 lt_SP2NL \
20350 lt_NL2SP \
20351 reload_flag \
20352 OBJDUMP \
20353 deplibs_check_method \
20354 file_magic_cmd \
20355 file_magic_glob \
20356 want_nocaseglob \
20357 DLLTOOL \
20358 sharedlib_from_linklib_cmd \
20359 AR \
20360 AR_FLAGS \
20361 archiver_list_spec \
20362 STRIP \
20363 RANLIB \
20364 CC \
20365 CFLAGS \
20366 compiler \
20367 lt_cv_sys_global_symbol_pipe \
20368 lt_cv_sys_global_symbol_to_cdecl \
20369 lt_cv_sys_global_symbol_to_c_name_address \
20370 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20371 nm_file_list_spec \
20372 lt_prog_compiler_no_builtin_flag \
20373 lt_prog_compiler_pic \
20374 lt_prog_compiler_wl \
20375 lt_prog_compiler_static \
20376 lt_cv_prog_compiler_c_o \
20377 need_locks \
20378 MANIFEST_TOOL \
20379 DSYMUTIL \
20380 NMEDIT \
20381 LIPO \
20382 OTOOL \
20383 OTOOL64 \
20384 shrext_cmds \
20385 export_dynamic_flag_spec \
20386 whole_archive_flag_spec \
20387 compiler_needs_object \
20388 with_gnu_ld \
20389 allow_undefined_flag \
20390 no_undefined_flag \
20391 hardcode_libdir_flag_spec \
20392 hardcode_libdir_separator \
20393 exclude_expsyms \
20394 include_expsyms \
20395 file_list_spec \
20396 variables_saved_for_relink \
20397 libname_spec \
20398 library_names_spec \
20399 soname_spec \
20400 install_override_mode \
20401 finish_eval \
20402 old_striplib \
20403 striplib \
20404 compiler_lib_search_dirs \
20405 predep_objects \
20406 postdep_objects \
20407 predeps \
20408 postdeps \
20409 compiler_lib_search_path \
20410 LD_CXX \
20411 reload_flag_CXX \
20412 compiler_CXX \
20413 lt_prog_compiler_no_builtin_flag_CXX \
20414 lt_prog_compiler_pic_CXX \
20415 lt_prog_compiler_wl_CXX \
20416 lt_prog_compiler_static_CXX \
20417 lt_cv_prog_compiler_c_o_CXX \
20418 export_dynamic_flag_spec_CXX \
20419 whole_archive_flag_spec_CXX \
20420 compiler_needs_object_CXX \
20421 with_gnu_ld_CXX \
20422 allow_undefined_flag_CXX \
20423 no_undefined_flag_CXX \
20424 hardcode_libdir_flag_spec_CXX \
20425 hardcode_libdir_separator_CXX \
20426 exclude_expsyms_CXX \
20427 include_expsyms_CXX \
20428 file_list_spec_CXX \
20429 compiler_lib_search_dirs_CXX \
20430 predep_objects_CXX \
20431 postdep_objects_CXX \
20432 predeps_CXX \
20433 postdeps_CXX \
20434 compiler_lib_search_path_CXX; do
20435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20436 *[\\\\\\\`\\"\\\$]*)
20437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20442 esac
20443 done
20445 # Double-quote double-evaled strings.
20446 for var in reload_cmds \
20447 old_postinstall_cmds \
20448 old_postuninstall_cmds \
20449 old_archive_cmds \
20450 extract_expsyms_cmds \
20451 old_archive_from_new_cmds \
20452 old_archive_from_expsyms_cmds \
20453 archive_cmds \
20454 archive_expsym_cmds \
20455 module_cmds \
20456 module_expsym_cmds \
20457 export_symbols_cmds \
20458 prelink_cmds \
20459 postlink_cmds \
20460 postinstall_cmds \
20461 postuninstall_cmds \
20462 finish_cmds \
20463 sys_lib_search_path_spec \
20464 sys_lib_dlsearch_path_spec \
20465 reload_cmds_CXX \
20466 old_archive_cmds_CXX \
20467 old_archive_from_new_cmds_CXX \
20468 old_archive_from_expsyms_cmds_CXX \
20469 archive_cmds_CXX \
20470 archive_expsym_cmds_CXX \
20471 module_cmds_CXX \
20472 module_expsym_cmds_CXX \
20473 export_symbols_cmds_CXX \
20474 prelink_cmds_CXX \
20475 postlink_cmds_CXX; do
20476 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20477 *[\\\\\\\`\\"\\\$]*)
20478 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20481 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20483 esac
20484 done
20486 ac_aux_dir='$ac_aux_dir'
20487 xsi_shell='$xsi_shell'
20488 lt_shell_append='$lt_shell_append'
20490 # See if we are running on zsh, and set the options which allow our
20491 # commands through without removal of \ escapes INIT.
20492 if test -n "\${ZSH_VERSION+set}" ; then
20493 setopt NO_GLOB_SUBST
20497 PACKAGE='$PACKAGE'
20498 VERSION='$VERSION'
20499 TIMESTAMP='$TIMESTAMP'
20500 RM='$RM'
20501 ofile='$ofile'
20508 _ACEOF
20510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20512 # Handling of arguments.
20513 for ac_config_target in $ac_config_targets
20515 case $ac_config_target in
20516 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
20517 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20518 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20519 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20521 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20522 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20523 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
20524 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
20525 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20526 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20527 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20528 "tests/TEMPLATE/Makefile") CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
20529 "tests/test-array-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
20530 "tests/test-array-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
20531 "tests/test-basic-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
20532 "tests/test-basic-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
20533 "tests/test-bison-yylloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
20534 "tests/test-bison-yylval/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
20535 "tests/test-c-cpp-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
20536 "tests/test-c-cpp-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
20537 "tests/test-header-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
20538 "tests/test-header-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
20539 "tests/test-include-by-buffer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
20540 "tests/test-include-by-push/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
20541 "tests/test-include-by-reentrant/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
20542 "tests/test-multiple-scanners-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
20543 "tests/test-multiple-scanners-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
20544 "tests/test-noansi-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
20545 "tests/test-noansi-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
20546 "tests/test-prefix-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
20547 "tests/test-prefix-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
20548 "tests/test-pthread/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
20549 "tests/test-string-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
20550 "tests/test-string-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
20551 "tests/test-yyextra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
20552 "tests/test-alloc-extra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;;
20553 "tests/test-lineno-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
20554 "tests/test-lineno-trailing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-trailing/Makefile" ;;
20555 "tests/test-lineno-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
20556 "tests/test-linedir-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
20557 "tests/test-debug-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
20558 "tests/test-debug-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
20559 "tests/test-mem-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
20560 "tests/test-mem-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
20561 "tests/test-posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
20562 "tests/test-posixly-correct/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
20563 "tests/test-table-opts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
20564 "tests/test-c++-basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
20565 "tests/test-bison-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
20566 "tests/test-reject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
20567 "tests/test-c++-multiple-scanners/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
20568 "tests/test-top/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
20569 "tests/test-rescan-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
20570 "tests/test-rescan-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
20571 "tests/test-quotes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;;
20572 "tests/test-ccl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;;
20573 "tests/test-extended/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;;
20574 "tests/test-c++-yywrap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;;
20575 "tests/test-concatenated-options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;;
20577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20578 esac
20579 done
20582 # If the user did not use the arguments to specify the items to instantiate,
20583 # then the envvar interface is used. Set only those that are not.
20584 # We use the long form for the default assignment because of an extremely
20585 # bizarre bug on SunOS 4.1.3.
20586 if $ac_need_defaults; then
20587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20592 # Have a temporary directory for convenience. Make it in the build tree
20593 # simply because there is no reason against having it here, and in addition,
20594 # creating and moving files from /tmp can sometimes cause problems.
20595 # Hook for its removal unless debugging.
20596 # Note that there is a small window in which the directory will not be cleaned:
20597 # after its creation but before its name has been assigned to `$tmp'.
20598 $debug ||
20600 tmp= ac_tmp=
20601 trap 'exit_status=$?
20602 : "${ac_tmp:=$tmp}"
20603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20605 trap 'as_fn_exit 1' 1 2 13 15
20607 # Create a (secure) tmp directory for tmp files.
20610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20611 test -d "$tmp"
20612 } ||
20614 tmp=./conf$$-$RANDOM
20615 (umask 077 && mkdir "$tmp")
20616 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20617 ac_tmp=$tmp
20619 # Set up the scripts for CONFIG_FILES section.
20620 # No need to generate them if there are no CONFIG_FILES.
20621 # This happens for instance with `./config.status config.h'.
20622 if test -n "$CONFIG_FILES"; then
20625 ac_cr=`echo X | tr X '\015'`
20626 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20627 # But we know of no other shell where ac_cr would be empty at this
20628 # point, so we can use a bashism as a fallback.
20629 if test "x$ac_cr" = x; then
20630 eval ac_cr=\$\'\\r\'
20632 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20633 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20634 ac_cs_awk_cr='\\r'
20635 else
20636 ac_cs_awk_cr=$ac_cr
20639 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20640 _ACEOF
20644 echo "cat >conf$$subs.awk <<_ACEOF" &&
20645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20646 echo "_ACEOF"
20647 } >conf$$subs.sh ||
20648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20649 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20650 ac_delim='%!_!# '
20651 for ac_last_try in false false false false false :; do
20652 . ./conf$$subs.sh ||
20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20656 if test $ac_delim_n = $ac_delim_num; then
20657 break
20658 elif $ac_last_try; then
20659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20660 else
20661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20663 done
20664 rm -f conf$$subs.sh
20666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20667 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20668 _ACEOF
20669 sed -n '
20671 s/^/S["/; s/!.*/"]=/
20674 s/^[^!]*!//
20675 :repl
20676 t repl
20677 s/'"$ac_delim"'$//
20678 t delim
20681 s/\(.\{148\}\)..*/\1/
20682 t more1
20683 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20686 b repl
20687 :more1
20688 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20691 s/.\{148\}//
20692 t nl
20693 :delim
20695 s/\(.\{148\}\)..*/\1/
20696 t more2
20697 s/["\\]/\\&/g; s/^/"/; s/$/"/
20700 :more2
20701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20704 s/.\{148\}//
20705 t delim
20706 ' <conf$$subs.awk | sed '
20707 /^[^""]/{
20709 s/\n//
20711 ' >>$CONFIG_STATUS || ac_write_fail=1
20712 rm -f conf$$subs.awk
20713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714 _ACAWK
20715 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20716 for (key in S) S_is_set[key] = 1
20717 FS = "\a"
20721 line = $ 0
20722 nfields = split(line, field, "@")
20723 substed = 0
20724 len = length(field[1])
20725 for (i = 2; i < nfields; i++) {
20726 key = field[i]
20727 keylen = length(key)
20728 if (S_is_set[key]) {
20729 value = S[key]
20730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20731 len += length(value) + length(field[++i])
20732 substed = 1
20733 } else
20734 len += 1 + keylen
20737 print line
20740 _ACAWK
20741 _ACEOF
20742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20743 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20744 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20745 else
20747 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20748 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20749 _ACEOF
20751 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20752 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20753 # trailing colons and then remove the whole line if VPATH becomes empty
20754 # (actually we leave an empty line to preserve line numbers).
20755 if test "x$srcdir" = x.; then
20756 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20758 s///
20759 s/^/:/
20760 s/[ ]*$/:/
20761 s/:\$(srcdir):/:/g
20762 s/:\${srcdir}:/:/g
20763 s/:@srcdir@:/:/g
20764 s/^:*//
20765 s/:*$//
20767 s/\(=[ ]*\).*/\1/
20769 s/\n//
20770 s/^[^=]*=[ ]*$//
20774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20775 fi # test -n "$CONFIG_FILES"
20777 # Set up the scripts for CONFIG_HEADERS section.
20778 # No need to generate them if there are no CONFIG_HEADERS.
20779 # This happens for instance with `./config.status Makefile'.
20780 if test -n "$CONFIG_HEADERS"; then
20781 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20782 BEGIN {
20783 _ACEOF
20785 # Transform confdefs.h into an awk script `defines.awk', embedded as
20786 # here-document in config.status, that substitutes the proper values into
20787 # config.h.in to produce config.h.
20789 # Create a delimiter string that does not exist in confdefs.h, to ease
20790 # handling of long lines.
20791 ac_delim='%!_!# '
20792 for ac_last_try in false false :; do
20793 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20794 if test -z "$ac_tt"; then
20795 break
20796 elif $ac_last_try; then
20797 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20798 else
20799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20801 done
20803 # For the awk script, D is an array of macro values keyed by name,
20804 # likewise P contains macro parameters if any. Preserve backslash
20805 # newline sequences.
20807 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20808 sed -n '
20809 s/.\{148\}/&'"$ac_delim"'/g
20810 t rset
20811 :rset
20812 s/^[ ]*#[ ]*define[ ][ ]*/ /
20813 t def
20815 :def
20816 s/\\$//
20817 t bsnl
20818 s/["\\]/\\&/g
20819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20820 D["\1"]=" \3"/p
20821 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20823 :bsnl
20824 s/["\\]/\\&/g
20825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20826 D["\1"]=" \3\\\\\\n"\\/p
20827 t cont
20828 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20829 t cont
20831 :cont
20833 s/.\{148\}/&'"$ac_delim"'/g
20834 t clear
20835 :clear
20836 s/\\$//
20837 t bsnlc
20838 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20840 :bsnlc
20841 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20842 b cont
20843 ' <confdefs.h | sed '
20844 s/'"$ac_delim"'/"\\\
20845 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20848 for (key in D) D_is_set[key] = 1
20849 FS = "\a"
20851 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20852 line = \$ 0
20853 split(line, arg, " ")
20854 if (arg[1] == "#") {
20855 defundef = arg[2]
20856 mac1 = arg[3]
20857 } else {
20858 defundef = substr(arg[1], 2)
20859 mac1 = arg[2]
20861 split(mac1, mac2, "(") #)
20862 macro = mac2[1]
20863 prefix = substr(line, 1, index(line, defundef) - 1)
20864 if (D_is_set[macro]) {
20865 # Preserve the white space surrounding the "#".
20866 print prefix "define", macro P[macro] D[macro]
20867 next
20868 } else {
20869 # Replace #undef with comments. This is necessary, for example,
20870 # in the case of _POSIX_SOURCE, which is predefined and required
20871 # on some systems where configure will not decide to define it.
20872 if (defundef == "undef") {
20873 print "/*", prefix defundef, macro, "*/"
20874 next
20878 { print }
20879 _ACAWK
20880 _ACEOF
20881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20882 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20883 fi # test -n "$CONFIG_HEADERS"
20886 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20887 shift
20888 for ac_tag
20890 case $ac_tag in
20891 :[FHLC]) ac_mode=$ac_tag; continue;;
20892 esac
20893 case $ac_mode$ac_tag in
20894 :[FHL]*:*);;
20895 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20896 :[FH]-) ac_tag=-:-;;
20897 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20898 esac
20899 ac_save_IFS=$IFS
20900 IFS=:
20901 set x $ac_tag
20902 IFS=$ac_save_IFS
20903 shift
20904 ac_file=$1
20905 shift
20907 case $ac_mode in
20908 :L) ac_source=$1;;
20909 :[FH])
20910 ac_file_inputs=
20911 for ac_f
20913 case $ac_f in
20914 -) ac_f="$ac_tmp/stdin";;
20915 *) # Look for the file first in the build tree, then in the source tree
20916 # (if the path is not absolute). The absolute path cannot be DOS-style,
20917 # because $ac_f cannot contain `:'.
20918 test -f "$ac_f" ||
20919 case $ac_f in
20920 [\\/$]*) false;;
20921 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20922 esac ||
20923 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20924 esac
20925 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20926 as_fn_append ac_file_inputs " '$ac_f'"
20927 done
20929 # Let's still pretend it is `configure' which instantiates (i.e., don't
20930 # use $as_me), people would be surprised to read:
20931 # /* config.h. Generated by config.status. */
20932 configure_input='Generated from '`
20933 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20934 `' by configure.'
20935 if test x"$ac_file" != x-; then
20936 configure_input="$ac_file. $configure_input"
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20938 $as_echo "$as_me: creating $ac_file" >&6;}
20940 # Neutralize special characters interpreted by sed in replacement strings.
20941 case $configure_input in #(
20942 *\&* | *\|* | *\\* )
20943 ac_sed_conf_input=`$as_echo "$configure_input" |
20944 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20945 *) ac_sed_conf_input=$configure_input;;
20946 esac
20948 case $ac_tag in
20949 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20951 esac
20953 esac
20955 ac_dir=`$as_dirname -- "$ac_file" ||
20956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20957 X"$ac_file" : 'X\(//\)[^/]' \| \
20958 X"$ac_file" : 'X\(//\)$' \| \
20959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20960 $as_echo X"$ac_file" |
20961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20962 s//\1/
20965 /^X\(\/\/\)[^/].*/{
20966 s//\1/
20969 /^X\(\/\/\)$/{
20970 s//\1/
20973 /^X\(\/\).*/{
20974 s//\1/
20977 s/.*/./; q'`
20978 as_dir="$ac_dir"; as_fn_mkdir_p
20979 ac_builddir=.
20981 case "$ac_dir" in
20982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20984 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20985 # A ".." for each directory in $ac_dir_suffix.
20986 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20987 case $ac_top_builddir_sub in
20988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20990 esac ;;
20991 esac
20992 ac_abs_top_builddir=$ac_pwd
20993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20994 # for backward compatibility:
20995 ac_top_builddir=$ac_top_build_prefix
20997 case $srcdir in
20998 .) # We are building in place.
20999 ac_srcdir=.
21000 ac_top_srcdir=$ac_top_builddir_sub
21001 ac_abs_top_srcdir=$ac_pwd ;;
21002 [\\/]* | ?:[\\/]* ) # Absolute name.
21003 ac_srcdir=$srcdir$ac_dir_suffix;
21004 ac_top_srcdir=$srcdir
21005 ac_abs_top_srcdir=$srcdir ;;
21006 *) # Relative name.
21007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21008 ac_top_srcdir=$ac_top_build_prefix$srcdir
21009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21010 esac
21011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21014 case $ac_mode in
21017 # CONFIG_FILE
21020 case $INSTALL in
21021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21022 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21023 esac
21024 ac_MKDIR_P=$MKDIR_P
21025 case $MKDIR_P in
21026 [\\/$]* | ?:[\\/]* ) ;;
21027 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21028 esac
21029 _ACEOF
21031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21032 # If the template does not know about datarootdir, expand it.
21033 # FIXME: This hack should be removed a few years after 2.60.
21034 ac_datarootdir_hack=; ac_datarootdir_seen=
21035 ac_sed_dataroot='
21036 /datarootdir/ {
21040 /@datadir@/p
21041 /@docdir@/p
21042 /@infodir@/p
21043 /@localedir@/p
21044 /@mandir@/p'
21045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21046 *datarootdir*) ac_datarootdir_seen=yes;;
21047 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21050 _ACEOF
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_datarootdir_hack='
21053 s&@datadir@&$datadir&g
21054 s&@docdir@&$docdir&g
21055 s&@infodir@&$infodir&g
21056 s&@localedir@&$localedir&g
21057 s&@mandir@&$mandir&g
21058 s&\\\${datarootdir}&$datarootdir&g' ;;
21059 esac
21060 _ACEOF
21062 # Neutralize VPATH when `$srcdir' = `.'.
21063 # Shell code in configure.ac might set extrasub.
21064 # FIXME: do we really want to maintain this feature?
21065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066 ac_sed_extra="$ac_vpsub
21067 $extrasub
21068 _ACEOF
21069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21072 s|@configure_input@|$ac_sed_conf_input|;t t
21073 s&@top_builddir@&$ac_top_builddir_sub&;t t
21074 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21075 s&@srcdir@&$ac_srcdir&;t t
21076 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21077 s&@top_srcdir@&$ac_top_srcdir&;t t
21078 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21079 s&@builddir@&$ac_builddir&;t t
21080 s&@abs_builddir@&$ac_abs_builddir&;t t
21081 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21082 s&@INSTALL@&$ac_INSTALL&;t t
21083 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21084 $ac_datarootdir_hack
21086 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21087 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21089 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21090 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21092 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21094 which seems to be undefined. Please make sure it is defined" >&5
21095 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21096 which seems to be undefined. Please make sure it is defined" >&2;}
21098 rm -f "$ac_tmp/stdin"
21099 case $ac_file in
21100 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21101 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21102 esac \
21103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21107 # CONFIG_HEADER
21109 if test x"$ac_file" != x-; then
21111 $as_echo "/* $configure_input */" \
21112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21113 } >"$ac_tmp/config.h" \
21114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21115 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21117 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21118 else
21119 rm -f "$ac_file"
21120 mv "$ac_tmp/config.h" "$ac_file" \
21121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21123 else
21124 $as_echo "/* $configure_input */" \
21125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21126 || as_fn_error $? "could not create -" "$LINENO" 5
21128 # Compute "$ac_file"'s index in $config_headers.
21129 _am_arg="$ac_file"
21130 _am_stamp_count=1
21131 for _am_header in $config_headers :; do
21132 case $_am_header in
21133 $_am_arg | $_am_arg:* )
21134 break ;;
21136 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21137 esac
21138 done
21139 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21140 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21141 X"$_am_arg" : 'X\(//\)[^/]' \| \
21142 X"$_am_arg" : 'X\(//\)$' \| \
21143 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21144 $as_echo X"$_am_arg" |
21145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21146 s//\1/
21149 /^X\(\/\/\)[^/].*/{
21150 s//\1/
21153 /^X\(\/\/\)$/{
21154 s//\1/
21157 /^X\(\/\).*/{
21158 s//\1/
21161 s/.*/./; q'`/stamp-h$_am_stamp_count
21164 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21165 $as_echo "$as_me: executing $ac_file commands" >&6;}
21167 esac
21170 case $ac_file$ac_mode in
21171 "po-directories":C)
21172 for ac_file in $CONFIG_FILES; do
21173 # Support "outfile[:infile[:infile...]]"
21174 case "$ac_file" in
21175 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21176 esac
21177 # PO directories have a Makefile.in generated from Makefile.in.in.
21178 case "$ac_file" in */Makefile.in)
21179 # Adjust a relative srcdir.
21180 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21181 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21182 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21183 # In autoconf-2.13 it is called $ac_given_srcdir.
21184 # In autoconf-2.50 it is called $srcdir.
21185 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21186 case "$ac_given_srcdir" in
21187 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21188 /*) top_srcdir="$ac_given_srcdir" ;;
21189 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21190 esac
21191 # Treat a directory as a PO directory if and only if it has a
21192 # POTFILES.in file. This allows packages to have multiple PO
21193 # directories under different names or in different locations.
21194 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21195 rm -f "$ac_dir/POTFILES"
21196 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21197 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21198 POMAKEFILEDEPS="POTFILES.in"
21199 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21200 # on $ac_dir but don't depend on user-specified configuration
21201 # parameters.
21202 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21203 # The LINGUAS file contains the set of available languages.
21204 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21205 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21207 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21208 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21209 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21210 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21211 else
21212 # The set of available languages was given in configure.in.
21213 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21214 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21216 # Compute POFILES
21217 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21218 # Compute UPDATEPOFILES
21219 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21220 # Compute DUMMYPOFILES
21221 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21222 # Compute GMOFILES
21223 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21224 case "$ac_given_srcdir" in
21225 .) srcdirpre= ;;
21226 *) srcdirpre='$(srcdir)/' ;;
21227 esac
21228 POFILES=
21229 UPDATEPOFILES=
21230 DUMMYPOFILES=
21231 GMOFILES=
21232 for lang in $ALL_LINGUAS; do
21233 POFILES="$POFILES $srcdirpre$lang.po"
21234 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21235 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21236 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21237 done
21238 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21239 # environment variable.
21240 INST_LINGUAS=
21241 if test -n "$ALL_LINGUAS"; then
21242 for presentlang in $ALL_LINGUAS; do
21243 useit=no
21244 if test "%UNSET%" != "$LINGUAS"; then
21245 desiredlanguages="$LINGUAS"
21246 else
21247 desiredlanguages="$ALL_LINGUAS"
21249 for desiredlang in $desiredlanguages; do
21250 # Use the presentlang catalog if desiredlang is
21251 # a. equal to presentlang, or
21252 # b. a variant of presentlang (because in this case,
21253 # presentlang can be used as a fallback for messages
21254 # which are not translated in the desiredlang catalog).
21255 case "$desiredlang" in
21256 "$presentlang"*) useit=yes;;
21257 esac
21258 done
21259 if test $useit = yes; then
21260 INST_LINGUAS="$INST_LINGUAS $presentlang"
21262 done
21264 CATALOGS=
21265 if test -n "$INST_LINGUAS"; then
21266 for lang in $INST_LINGUAS; do
21267 CATALOGS="$CATALOGS $lang.gmo"
21268 done
21270 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21271 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21272 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21273 if test -f "$f"; then
21274 case "$f" in
21275 *.orig | *.bak | *~) ;;
21276 *) cat "$f" >> "$ac_dir/Makefile" ;;
21277 esac
21279 done
21282 esac
21283 done ;;
21284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21285 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21286 # are listed without --file. Let's play safe and only enable the eval
21287 # if we detect the quoting.
21288 case $CONFIG_FILES in
21289 *\'*) eval set x "$CONFIG_FILES" ;;
21290 *) set x $CONFIG_FILES ;;
21291 esac
21292 shift
21293 for mf
21295 # Strip MF so we end up with the name of the file.
21296 mf=`echo "$mf" | sed -e 's/:.*$//'`
21297 # Check whether this is an Automake generated Makefile or not.
21298 # We used to match only the files named `Makefile.in', but
21299 # some people rename them; so instead we look at the file content.
21300 # Grep'ing the first line is not enough: some people post-process
21301 # each Makefile.in and add a new line on top of each file to say so.
21302 # Grep'ing the whole file is not good either: AIX grep has a line
21303 # limit of 2048, but all sed's we know have understand at least 4000.
21304 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21305 dirpart=`$as_dirname -- "$mf" ||
21306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21307 X"$mf" : 'X\(//\)[^/]' \| \
21308 X"$mf" : 'X\(//\)$' \| \
21309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21310 $as_echo X"$mf" |
21311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21312 s//\1/
21315 /^X\(\/\/\)[^/].*/{
21316 s//\1/
21319 /^X\(\/\/\)$/{
21320 s//\1/
21323 /^X\(\/\).*/{
21324 s//\1/
21327 s/.*/./; q'`
21328 else
21329 continue
21331 # Extract the definition of DEPDIR, am__include, and am__quote
21332 # from the Makefile without running `make'.
21333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21334 test -z "$DEPDIR" && continue
21335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21336 test -z "am__include" && continue
21337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21338 # When using ansi2knr, U may be empty or an underscore; expand it
21339 U=`sed -n 's/^U = //p' < "$mf"`
21340 # Find all dependency output files, they are included files with
21341 # $(DEPDIR) in their names. We invoke sed twice because it is the
21342 # simplest approach to changing $(DEPDIR) to its actual value in the
21343 # expansion.
21344 for file in `sed -n "
21345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21347 # Make sure the directory exists.
21348 test -f "$dirpart/$file" && continue
21349 fdir=`$as_dirname -- "$file" ||
21350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351 X"$file" : 'X\(//\)[^/]' \| \
21352 X"$file" : 'X\(//\)$' \| \
21353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21354 $as_echo X"$file" |
21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21356 s//\1/
21359 /^X\(\/\/\)[^/].*/{
21360 s//\1/
21363 /^X\(\/\/\)$/{
21364 s//\1/
21367 /^X\(\/\).*/{
21368 s//\1/
21371 s/.*/./; q'`
21372 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21373 # echo "creating $dirpart/$file"
21374 echo '# dummy' > "$dirpart/$file"
21375 done
21376 done
21379 "libtool":C)
21381 # See if we are running on zsh, and set the options which allow our
21382 # commands through without removal of \ escapes.
21383 if test -n "${ZSH_VERSION+set}" ; then
21384 setopt NO_GLOB_SUBST
21387 cfgfile="${ofile}T"
21388 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21389 $RM "$cfgfile"
21391 cat <<_LT_EOF >> "$cfgfile"
21392 #! $SHELL
21394 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21395 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21400 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21401 # Foundation, Inc.
21402 # Written by Gordon Matzigkeit, 1996
21404 # This file is part of GNU Libtool.
21406 # GNU Libtool is free software; you can redistribute it and/or
21407 # modify it under the terms of the GNU General Public License as
21408 # published by the Free Software Foundation; either version 2 of
21409 # the License, or (at your option) any later version.
21411 # As a special exception to the GNU General Public License,
21412 # if you distribute this file as part of a program or library that
21413 # is built using GNU Libtool, you may include this file under the
21414 # same distribution terms that you use for the rest of that program.
21416 # GNU Libtool is distributed in the hope that it will be useful,
21417 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21419 # GNU General Public License for more details.
21421 # You should have received a copy of the GNU General Public License
21422 # along with GNU Libtool; see the file COPYING. If not, a copy
21423 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21424 # obtained by writing to the Free Software Foundation, Inc.,
21425 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21428 # The names of the tagged configurations supported by this script.
21429 available_tags="CXX "
21431 # ### BEGIN LIBTOOL CONFIG
21433 # Which release of libtool.m4 was used?
21434 macro_version=$macro_version
21435 macro_revision=$macro_revision
21437 # Whether or not to build shared libraries.
21438 build_libtool_libs=$enable_shared
21440 # Whether or not to build static libraries.
21441 build_old_libs=$enable_static
21443 # What type of objects to build.
21444 pic_mode=$pic_mode
21446 # Whether or not to optimize for fast installation.
21447 fast_install=$enable_fast_install
21449 # Shell to use when invoking shell scripts.
21450 SHELL=$lt_SHELL
21452 # An echo program that protects backslashes.
21453 ECHO=$lt_ECHO
21455 # The PATH separator for the build system.
21456 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21458 # The host system.
21459 host_alias=$host_alias
21460 host=$host
21461 host_os=$host_os
21463 # The build system.
21464 build_alias=$build_alias
21465 build=$build
21466 build_os=$build_os
21468 # A sed program that does not truncate output.
21469 SED=$lt_SED
21471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21472 Xsed="\$SED -e 1s/^X//"
21474 # A grep program that handles long lines.
21475 GREP=$lt_GREP
21477 # An ERE matcher.
21478 EGREP=$lt_EGREP
21480 # A literal string matcher.
21481 FGREP=$lt_FGREP
21483 # A BSD- or MS-compatible name lister.
21484 NM=$lt_NM
21486 # Whether we need soft or hard links.
21487 LN_S=$lt_LN_S
21489 # What is the maximum length of a command?
21490 max_cmd_len=$max_cmd_len
21492 # Object file suffix (normally "o").
21493 objext=$ac_objext
21495 # Executable file suffix (normally "").
21496 exeext=$exeext
21498 # whether the shell understands "unset".
21499 lt_unset=$lt_unset
21501 # turn spaces into newlines.
21502 SP2NL=$lt_lt_SP2NL
21504 # turn newlines into spaces.
21505 NL2SP=$lt_lt_NL2SP
21507 # convert \$build file names to \$host format.
21508 to_host_file_cmd=$lt_cv_to_host_file_cmd
21510 # convert \$build files to toolchain format.
21511 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21513 # An object symbol dumper.
21514 OBJDUMP=$lt_OBJDUMP
21516 # Method to check whether dependent libraries are shared objects.
21517 deplibs_check_method=$lt_deplibs_check_method
21519 # Command to use when deplibs_check_method = "file_magic".
21520 file_magic_cmd=$lt_file_magic_cmd
21522 # How to find potential files when deplibs_check_method = "file_magic".
21523 file_magic_glob=$lt_file_magic_glob
21525 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21526 want_nocaseglob=$lt_want_nocaseglob
21528 # DLL creation program.
21529 DLLTOOL=$lt_DLLTOOL
21531 # Command to associate shared and link libraries.
21532 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21534 # The archiver.
21535 AR=$lt_AR
21537 # Flags to create an archive.
21538 AR_FLAGS=$lt_AR_FLAGS
21540 # How to feed a file listing to the archiver.
21541 archiver_list_spec=$lt_archiver_list_spec
21543 # A symbol stripping program.
21544 STRIP=$lt_STRIP
21546 # Commands used to install an old-style archive.
21547 RANLIB=$lt_RANLIB
21548 old_postinstall_cmds=$lt_old_postinstall_cmds
21549 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21551 # Whether to use a lock for old archive extraction.
21552 lock_old_archive_extraction=$lock_old_archive_extraction
21554 # A C compiler.
21555 LTCC=$lt_CC
21557 # LTCC compiler flags.
21558 LTCFLAGS=$lt_CFLAGS
21560 # Take the output of nm and produce a listing of raw symbols and C names.
21561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21563 # Transform the output of nm in a proper C declaration.
21564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21566 # Transform the output of nm in a C name address pair.
21567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21569 # Transform the output of nm in a C name address pair when lib prefix is needed.
21570 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21572 # Specify filename containing input files for \$NM.
21573 nm_file_list_spec=$lt_nm_file_list_spec
21575 # The root where to search for dependent libraries,and in which our libraries should be installed.
21576 lt_sysroot=$lt_sysroot
21578 # The name of the directory that contains temporary libtool files.
21579 objdir=$objdir
21581 # Used to examine libraries when file_magic_cmd begins with "file".
21582 MAGIC_CMD=$MAGIC_CMD
21584 # Must we lock files when doing compilation?
21585 need_locks=$lt_need_locks
21587 # Manifest tool.
21588 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21590 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21591 DSYMUTIL=$lt_DSYMUTIL
21593 # Tool to change global to local symbols on Mac OS X.
21594 NMEDIT=$lt_NMEDIT
21596 # Tool to manipulate fat objects and archives on Mac OS X.
21597 LIPO=$lt_LIPO
21599 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21600 OTOOL=$lt_OTOOL
21602 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21603 OTOOL64=$lt_OTOOL64
21605 # Old archive suffix (normally "a").
21606 libext=$libext
21608 # Shared library suffix (normally ".so").
21609 shrext_cmds=$lt_shrext_cmds
21611 # The commands to extract the exported symbol list from a shared archive.
21612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21614 # Variables whose values should be saved in libtool wrapper scripts and
21615 # restored at link time.
21616 variables_saved_for_relink=$lt_variables_saved_for_relink
21618 # Do we need the "lib" prefix for modules?
21619 need_lib_prefix=$need_lib_prefix
21621 # Do we need a version for libraries?
21622 need_version=$need_version
21624 # Library versioning type.
21625 version_type=$version_type
21627 # Shared library runtime path variable.
21628 runpath_var=$runpath_var
21630 # Shared library path variable.
21631 shlibpath_var=$shlibpath_var
21633 # Is shlibpath searched before the hard-coded library search path?
21634 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21636 # Format of library name prefix.
21637 libname_spec=$lt_libname_spec
21639 # List of archive names. First name is the real one, the rest are links.
21640 # The last name is the one that the linker finds with -lNAME
21641 library_names_spec=$lt_library_names_spec
21643 # The coded name of the library, if different from the real name.
21644 soname_spec=$lt_soname_spec
21646 # Permission mode override for installation of shared libraries.
21647 install_override_mode=$lt_install_override_mode
21649 # Command to use after installation of a shared archive.
21650 postinstall_cmds=$lt_postinstall_cmds
21652 # Command to use after uninstallation of a shared archive.
21653 postuninstall_cmds=$lt_postuninstall_cmds
21655 # Commands used to finish a libtool library installation in a directory.
21656 finish_cmds=$lt_finish_cmds
21658 # As "finish_cmds", except a single script fragment to be evaled but
21659 # not shown.
21660 finish_eval=$lt_finish_eval
21662 # Whether we should hardcode library paths into libraries.
21663 hardcode_into_libs=$hardcode_into_libs
21665 # Compile-time system search path for libraries.
21666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21668 # Run-time system search path for libraries.
21669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21671 # Whether dlopen is supported.
21672 dlopen_support=$enable_dlopen
21674 # Whether dlopen of programs is supported.
21675 dlopen_self=$enable_dlopen_self
21677 # Whether dlopen of statically linked programs is supported.
21678 dlopen_self_static=$enable_dlopen_self_static
21680 # Commands to strip libraries.
21681 old_striplib=$lt_old_striplib
21682 striplib=$lt_striplib
21685 # The linker used to build libraries.
21686 LD=$lt_LD
21688 # How to create reloadable object files.
21689 reload_flag=$lt_reload_flag
21690 reload_cmds=$lt_reload_cmds
21692 # Commands used to build an old-style archive.
21693 old_archive_cmds=$lt_old_archive_cmds
21695 # A language specific compiler.
21696 CC=$lt_compiler
21698 # Is the compiler the GNU compiler?
21699 with_gcc=$GCC
21701 # Compiler flag to turn off builtin functions.
21702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21704 # Additional compiler flags for building library objects.
21705 pic_flag=$lt_lt_prog_compiler_pic
21707 # How to pass a linker flag through the compiler.
21708 wl=$lt_lt_prog_compiler_wl
21710 # Compiler flag to prevent dynamic linking.
21711 link_static_flag=$lt_lt_prog_compiler_static
21713 # Does compiler simultaneously support -c and -o options?
21714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21716 # Whether or not to add -lc for building shared libraries.
21717 build_libtool_need_lc=$archive_cmds_need_lc
21719 # Whether or not to disallow shared libs when runtime libs are static.
21720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21722 # Compiler flag to allow reflexive dlopens.
21723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21725 # Compiler flag to generate shared objects directly from archives.
21726 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21728 # Whether the compiler copes with passing no objects directly.
21729 compiler_needs_object=$lt_compiler_needs_object
21731 # Create an old-style archive from a shared archive.
21732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21734 # Create a temporary old-style archive to link instead of a shared archive.
21735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21737 # Commands used to build a shared archive.
21738 archive_cmds=$lt_archive_cmds
21739 archive_expsym_cmds=$lt_archive_expsym_cmds
21741 # Commands used to build a loadable module if different from building
21742 # a shared archive.
21743 module_cmds=$lt_module_cmds
21744 module_expsym_cmds=$lt_module_expsym_cmds
21746 # Whether we are building with GNU ld or not.
21747 with_gnu_ld=$lt_with_gnu_ld
21749 # Flag that allows shared libraries with undefined symbols to be built.
21750 allow_undefined_flag=$lt_allow_undefined_flag
21752 # Flag that enforces no undefined symbols.
21753 no_undefined_flag=$lt_no_undefined_flag
21755 # Flag to hardcode \$libdir into a binary during linking.
21756 # This must work even if \$libdir does not exist
21757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21759 # Whether we need a single "-rpath" flag with a separated argument.
21760 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21763 # DIR into the resulting binary.
21764 hardcode_direct=$hardcode_direct
21766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21767 # DIR into the resulting binary and the resulting library dependency is
21768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21769 # library is relocated.
21770 hardcode_direct_absolute=$hardcode_direct_absolute
21772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21773 # into the resulting binary.
21774 hardcode_minus_L=$hardcode_minus_L
21776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21777 # into the resulting binary.
21778 hardcode_shlibpath_var=$hardcode_shlibpath_var
21780 # Set to "yes" if building a shared library automatically hardcodes DIR
21781 # into the library and all subsequent libraries and executables linked
21782 # against it.
21783 hardcode_automatic=$hardcode_automatic
21785 # Set to yes if linker adds runtime paths of dependent libraries
21786 # to runtime path list.
21787 inherit_rpath=$inherit_rpath
21789 # Whether libtool must link a program against all its dependency libraries.
21790 link_all_deplibs=$link_all_deplibs
21792 # Set to "yes" if exported symbols are required.
21793 always_export_symbols=$always_export_symbols
21795 # The commands to list exported symbols.
21796 export_symbols_cmds=$lt_export_symbols_cmds
21798 # Symbols that should not be listed in the preloaded symbols.
21799 exclude_expsyms=$lt_exclude_expsyms
21801 # Symbols that must always be exported.
21802 include_expsyms=$lt_include_expsyms
21804 # Commands necessary for linking programs (against libraries) with templates.
21805 prelink_cmds=$lt_prelink_cmds
21807 # Commands necessary for finishing linking programs.
21808 postlink_cmds=$lt_postlink_cmds
21810 # Specify filename containing input files.
21811 file_list_spec=$lt_file_list_spec
21813 # How to hardcode a shared library path into an executable.
21814 hardcode_action=$hardcode_action
21816 # The directories searched by this compiler when creating a shared library.
21817 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21819 # Dependencies to place before and after the objects being linked to
21820 # create a shared library.
21821 predep_objects=$lt_predep_objects
21822 postdep_objects=$lt_postdep_objects
21823 predeps=$lt_predeps
21824 postdeps=$lt_postdeps
21826 # The library search path used internally by the compiler when linking
21827 # a shared library.
21828 compiler_lib_search_path=$lt_compiler_lib_search_path
21830 # ### END LIBTOOL CONFIG
21832 _LT_EOF
21834 case $host_os in
21835 aix3*)
21836 cat <<\_LT_EOF >> "$cfgfile"
21837 # AIX sometimes has problems with the GCC collect2 program. For some
21838 # reason, if we set the COLLECT_NAMES environment variable, the problems
21839 # vanish in a puff of smoke.
21840 if test "X${COLLECT_NAMES+set}" != Xset; then
21841 COLLECT_NAMES=
21842 export COLLECT_NAMES
21844 _LT_EOF
21846 esac
21849 ltmain="$ac_aux_dir/ltmain.sh"
21852 # We use sed instead of cat because bash on DJGPP gets confused if
21853 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21854 # text mode, it properly converts lines to CR/LF. This bash problem
21855 # is reportedly fixed, but why not run on old versions too?
21856 sed '$q' "$ltmain" >> "$cfgfile" \
21857 || (rm -f "$cfgfile"; exit 1)
21859 if test x"$xsi_shell" = xyes; then
21860 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21861 func_dirname ()\
21863 \ case ${1} in\
21864 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21865 \ * ) func_dirname_result="${3}" ;;\
21866 \ esac\
21867 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21868 && mv -f "$cfgfile.tmp" "$cfgfile" \
21869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21870 test 0 -eq $? || _lt_function_replace_fail=:
21873 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21874 func_basename ()\
21876 \ func_basename_result="${1##*/}"\
21877 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21878 && mv -f "$cfgfile.tmp" "$cfgfile" \
21879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21880 test 0 -eq $? || _lt_function_replace_fail=:
21883 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21884 func_dirname_and_basename ()\
21886 \ case ${1} in\
21887 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21888 \ * ) func_dirname_result="${3}" ;;\
21889 \ esac\
21890 \ func_basename_result="${1##*/}"\
21891 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21892 && mv -f "$cfgfile.tmp" "$cfgfile" \
21893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21894 test 0 -eq $? || _lt_function_replace_fail=:
21897 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21898 func_stripname ()\
21900 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21901 \ # positional parameters, so assign one to ordinary parameter first.\
21902 \ func_stripname_result=${3}\
21903 \ func_stripname_result=${func_stripname_result#"${1}"}\
21904 \ func_stripname_result=${func_stripname_result%"${2}"}\
21905 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21906 && mv -f "$cfgfile.tmp" "$cfgfile" \
21907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21908 test 0 -eq $? || _lt_function_replace_fail=:
21911 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21912 func_split_long_opt ()\
21914 \ func_split_long_opt_name=${1%%=*}\
21915 \ func_split_long_opt_arg=${1#*=}\
21916 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21917 && mv -f "$cfgfile.tmp" "$cfgfile" \
21918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21919 test 0 -eq $? || _lt_function_replace_fail=:
21922 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21923 func_split_short_opt ()\
21925 \ func_split_short_opt_arg=${1#??}\
21926 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21927 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21928 && mv -f "$cfgfile.tmp" "$cfgfile" \
21929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21930 test 0 -eq $? || _lt_function_replace_fail=:
21933 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21934 func_lo2o ()\
21936 \ case ${1} in\
21937 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21938 \ *) func_lo2o_result=${1} ;;\
21939 \ esac\
21940 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21941 && mv -f "$cfgfile.tmp" "$cfgfile" \
21942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21943 test 0 -eq $? || _lt_function_replace_fail=:
21946 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21947 func_xform ()\
21949 func_xform_result=${1%.*}.lo\
21950 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21951 && mv -f "$cfgfile.tmp" "$cfgfile" \
21952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21953 test 0 -eq $? || _lt_function_replace_fail=:
21956 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21957 func_arith ()\
21959 func_arith_result=$(( $* ))\
21960 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21961 && mv -f "$cfgfile.tmp" "$cfgfile" \
21962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21963 test 0 -eq $? || _lt_function_replace_fail=:
21966 sed -e '/^func_len ()$/,/^} # func_len /c\
21967 func_len ()\
21969 func_len_result=${#1}\
21970 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21971 && mv -f "$cfgfile.tmp" "$cfgfile" \
21972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21973 test 0 -eq $? || _lt_function_replace_fail=:
21977 if test x"$lt_shell_append" = xyes; then
21978 sed -e '/^func_append ()$/,/^} # func_append /c\
21979 func_append ()\
21981 eval "${1}+=\\${2}"\
21982 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21983 && mv -f "$cfgfile.tmp" "$cfgfile" \
21984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21985 test 0 -eq $? || _lt_function_replace_fail=:
21988 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21989 func_append_quoted ()\
21991 \ func_quote_for_eval "${2}"\
21992 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21993 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21994 && mv -f "$cfgfile.tmp" "$cfgfile" \
21995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21996 test 0 -eq $? || _lt_function_replace_fail=:
21999 # Save a `func_append' function call where possible by direct use of '+='
22000 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22001 && mv -f "$cfgfile.tmp" "$cfgfile" \
22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003 test 0 -eq $? || _lt_function_replace_fail=:
22004 else
22005 # Save a `func_append' function call even when '+=' is not available
22006 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22007 && mv -f "$cfgfile.tmp" "$cfgfile" \
22008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22009 test 0 -eq $? || _lt_function_replace_fail=:
22012 if test x"$_lt_function_replace_fail" = x":"; then
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22014 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22018 mv -f "$cfgfile" "$ofile" ||
22019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22020 chmod +x "$ofile"
22023 cat <<_LT_EOF >> "$ofile"
22025 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22027 # The linker used to build libraries.
22028 LD=$lt_LD_CXX
22030 # How to create reloadable object files.
22031 reload_flag=$lt_reload_flag_CXX
22032 reload_cmds=$lt_reload_cmds_CXX
22034 # Commands used to build an old-style archive.
22035 old_archive_cmds=$lt_old_archive_cmds_CXX
22037 # A language specific compiler.
22038 CC=$lt_compiler_CXX
22040 # Is the compiler the GNU compiler?
22041 with_gcc=$GCC_CXX
22043 # Compiler flag to turn off builtin functions.
22044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22046 # Additional compiler flags for building library objects.
22047 pic_flag=$lt_lt_prog_compiler_pic_CXX
22049 # How to pass a linker flag through the compiler.
22050 wl=$lt_lt_prog_compiler_wl_CXX
22052 # Compiler flag to prevent dynamic linking.
22053 link_static_flag=$lt_lt_prog_compiler_static_CXX
22055 # Does compiler simultaneously support -c and -o options?
22056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22058 # Whether or not to add -lc for building shared libraries.
22059 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22061 # Whether or not to disallow shared libs when runtime libs are static.
22062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22064 # Compiler flag to allow reflexive dlopens.
22065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22067 # Compiler flag to generate shared objects directly from archives.
22068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22070 # Whether the compiler copes with passing no objects directly.
22071 compiler_needs_object=$lt_compiler_needs_object_CXX
22073 # Create an old-style archive from a shared archive.
22074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22076 # Create a temporary old-style archive to link instead of a shared archive.
22077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22079 # Commands used to build a shared archive.
22080 archive_cmds=$lt_archive_cmds_CXX
22081 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22083 # Commands used to build a loadable module if different from building
22084 # a shared archive.
22085 module_cmds=$lt_module_cmds_CXX
22086 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22088 # Whether we are building with GNU ld or not.
22089 with_gnu_ld=$lt_with_gnu_ld_CXX
22091 # Flag that allows shared libraries with undefined symbols to be built.
22092 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22094 # Flag that enforces no undefined symbols.
22095 no_undefined_flag=$lt_no_undefined_flag_CXX
22097 # Flag to hardcode \$libdir into a binary during linking.
22098 # This must work even if \$libdir does not exist
22099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22101 # Whether we need a single "-rpath" flag with a separated argument.
22102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22105 # DIR into the resulting binary.
22106 hardcode_direct=$hardcode_direct_CXX
22108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22109 # DIR into the resulting binary and the resulting library dependency is
22110 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22111 # library is relocated.
22112 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22114 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22115 # into the resulting binary.
22116 hardcode_minus_L=$hardcode_minus_L_CXX
22118 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22119 # into the resulting binary.
22120 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22122 # Set to "yes" if building a shared library automatically hardcodes DIR
22123 # into the library and all subsequent libraries and executables linked
22124 # against it.
22125 hardcode_automatic=$hardcode_automatic_CXX
22127 # Set to yes if linker adds runtime paths of dependent libraries
22128 # to runtime path list.
22129 inherit_rpath=$inherit_rpath_CXX
22131 # Whether libtool must link a program against all its dependency libraries.
22132 link_all_deplibs=$link_all_deplibs_CXX
22134 # Set to "yes" if exported symbols are required.
22135 always_export_symbols=$always_export_symbols_CXX
22137 # The commands to list exported symbols.
22138 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22140 # Symbols that should not be listed in the preloaded symbols.
22141 exclude_expsyms=$lt_exclude_expsyms_CXX
22143 # Symbols that must always be exported.
22144 include_expsyms=$lt_include_expsyms_CXX
22146 # Commands necessary for linking programs (against libraries) with templates.
22147 prelink_cmds=$lt_prelink_cmds_CXX
22149 # Commands necessary for finishing linking programs.
22150 postlink_cmds=$lt_postlink_cmds_CXX
22152 # Specify filename containing input files.
22153 file_list_spec=$lt_file_list_spec_CXX
22155 # How to hardcode a shared library path into an executable.
22156 hardcode_action=$hardcode_action_CXX
22158 # The directories searched by this compiler when creating a shared library.
22159 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22161 # Dependencies to place before and after the objects being linked to
22162 # create a shared library.
22163 predep_objects=$lt_predep_objects_CXX
22164 postdep_objects=$lt_postdep_objects_CXX
22165 predeps=$lt_predeps_CXX
22166 postdeps=$lt_postdeps_CXX
22168 # The library search path used internally by the compiler when linking
22169 # a shared library.
22170 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22172 # ### END LIBTOOL TAG CONFIG: CXX
22173 _LT_EOF
22177 esac
22178 done # for ac_tag
22181 as_fn_exit 0
22182 _ACEOF
22183 ac_clean_files=$ac_clean_files_save
22185 test $ac_write_fail = 0 ||
22186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22189 # configure is writing to config.log, and then calls config.status.
22190 # config.status does its own redirection, appending to config.log.
22191 # Unfortunately, on DOS this fails, as config.log is still kept open
22192 # by configure, so config.status won't be able to write to it; its
22193 # output is simply discarded. So we exec the FD to /dev/null,
22194 # effectively closing config.log, so it can be properly (re)opened and
22195 # appended to by config.status. When coming back to configure, we
22196 # need to make the FD available again.
22197 if test "$no_create" != yes; then
22198 ac_cs_success=:
22199 ac_config_status_args=
22200 test "$silent" = yes &&
22201 ac_config_status_args="$ac_config_status_args --quiet"
22202 exec 5>/dev/null
22203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22204 exec 5>>config.log
22205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22206 # would make configure fail if this is the last instruction.
22207 $ac_cs_success || as_fn_exit 1
22209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}