miniupnpd 1.9 (20160113)
[tomato.git] / release / src / router / pcre / configure
blobb033c0c77234f482626a64124b575a9d843ca4be
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PCRE 8.35.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='PCRE'
589 PACKAGE_TARNAME='pcre'
590 PACKAGE_VERSION='8.35'
591 PACKAGE_STRING='PCRE 8.35'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="pcre.h.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WITH_GCOV_FALSE
637 WITH_GCOV_TRUE
638 GCOV_LIBS
639 GCOV_CXXFLAGS
640 GCOV_CFLAGS
641 GENHTML
642 LCOV
643 SHTOOL
644 VALGRIND_LIBS
645 VALGRIND_CFLAGS
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 LIBBZ2
650 LIBZ
651 DISTCHECK_CONFIGURE_FLAGS
652 EXTRA_LIBPCRECPP_LDFLAGS
653 EXTRA_LIBPCREPOSIX_LDFLAGS
654 EXTRA_LIBPCRE32_LDFLAGS
655 EXTRA_LIBPCRE16_LDFLAGS
656 EXTRA_LIBPCRE_LDFLAGS
657 PTHREAD_CFLAGS
658 PTHREAD_LIBS
659 PTHREAD_CC
660 ax_pthread_config
661 PCRE_STATIC_CFLAG
662 LIBREADLINE
663 WITH_VALGRIND_FALSE
664 WITH_VALGRIND_TRUE
665 WITH_UTF_FALSE
666 WITH_UTF_TRUE
667 WITH_JIT_FALSE
668 WITH_JIT_TRUE
669 WITH_REBUILD_CHARTABLES_FALSE
670 WITH_REBUILD_CHARTABLES_TRUE
671 WITH_PCRE_CPP_FALSE
672 WITH_PCRE_CPP_TRUE
673 WITH_PCRE32_FALSE
674 WITH_PCRE32_TRUE
675 WITH_PCRE16_FALSE
676 WITH_PCRE16_TRUE
677 WITH_PCRE8_FALSE
678 WITH_PCRE8_TRUE
679 pcre_have_bits_type_traits
680 pcre_have_type_traits
681 pcre_have_ulong_long
682 pcre_have_long_long
683 enable_cpp
684 enable_pcre32
685 enable_pcre16
686 enable_pcre8
687 PCRE_DATE
688 PCRE_PRERELEASE
689 PCRE_MINOR
690 PCRE_MAJOR
691 HAVE_VISIBILITY
692 VISIBILITY_CXXFLAGS
693 VISIBILITY_CFLAGS
694 CXXCPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 LN_S
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 OBJDUMP
711 DLLTOOL
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 EGREP
722 GREP
724 am__fastdepCXX_FALSE
725 am__fastdepCXX_TRUE
726 CXXDEPMODE
727 ac_ct_CXX
728 CXXFLAGS
730 am__fastdepCC_FALSE
731 am__fastdepCC_TRUE
732 CCDEPMODE
733 am__nodep
734 AMDEPBACKSLASH
735 AMDEP_FALSE
736 AMDEP_TRUE
737 am__quote
738 am__include
739 DEPDIR
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 ac_ct_AR
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_dependency_tracking
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_pcre8
827 enable_pcre16
828 enable_pcre32
829 enable_cpp
830 enable_jit
831 enable_pcregrep_jit
832 enable_rebuild_chartables
833 enable_utf8
834 enable_utf
835 enable_unicode_properties
836 enable_newline_is_cr
837 enable_newline_is_lf
838 enable_newline_is_crlf
839 enable_newline_is_anycrlf
840 enable_newline_is_any
841 enable_bsr_anycrlf
842 enable_ebcdic
843 enable_ebcdic_nl25
844 enable_stack_for_recursion
845 enable_pcregrep_libz
846 enable_pcregrep_libbz2
847 with_pcregrep_bufsize
848 enable_pcretest_libedit
849 enable_pcretest_libreadline
850 with_posix_malloc_threshold
851 with_link_size
852 with_parens_nest_limit
853 with_match_limit
854 with_match_limit_recursion
855 enable_valgrind
856 enable_coverage
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
867 CXXFLAGS
870 CXXCPP
871 PKG_CONFIG
872 PKG_CONFIG_PATH
873 PKG_CONFIG_LIBDIR
874 VALGRIND_CFLAGS
875 VALGRIND_LIBS
876 LCOV
877 GENHTML'
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
928 ac_prev=
929 ac_dashdash=
930 for ac_option
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
949 ac_dashdash=yes ;;
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
968 --config-cache | -C)
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 esac
1286 done
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1370 /^X\(\/\/\)$/{
1371 s//\1/
1374 /^X\(\/\).*/{
1375 s//\1/
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1383 else
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures PCRE 8.35 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1473 cat <<\_ACEOF
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of PCRE 8.35:";;
1489 esac
1490 cat <<\_ACEOF
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --disable-pcre8 disable 8 bit character support
1508 --enable-pcre16 enable 16 bit character support
1509 --enable-pcre32 enable 32 bit character support
1510 --disable-cpp disable C++ support
1511 --enable-jit enable Just-In-Time compiling support
1512 --disable-pcregrep-jit disable JIT support in pcregrep
1513 --enable-rebuild-chartables
1514 rebuild character tables in current locale
1515 --enable-utf8 another name for --enable-utf. Kept only for
1516 compatibility reasons
1517 --enable-utf enable UTF-8/16/32 support (incompatible with
1518 --enable-ebcdic)
1519 --enable-unicode-properties
1520 enable Unicode properties support (implies
1521 --enable-utf)
1522 --enable-newline-is-cr use CR as newline character
1523 --enable-newline-is-lf use LF as newline character (default)
1524 --enable-newline-is-crlf
1525 use CRLF as newline sequence
1526 --enable-newline-is-anycrlf
1527 use CR, LF, or CRLF as newline sequence
1528 --enable-newline-is-any use any valid Unicode newline sequence
1529 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1530 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1531 with --enable-utf; use only in (uncommon) EBCDIC
1532 environments; it implies --enable-rebuild-chartables
1533 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1534 implies --enable-ebcdic
1535 --disable-stack-for-recursion
1536 don't use stack recursion when matching
1537 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1538 --enable-pcregrep-libbz2
1539 link pcregrep with libbz2 to handle .bz2 files
1540 --enable-pcretest-libedit
1541 link pcretest with libedit
1542 --enable-pcretest-libreadline
1543 link pcretest with libreadline
1544 --enable-valgrind valgrind support
1545 --enable-coverage enable code coverage reports using gcov
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1551 both]
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-sysroot=DIR Search for dependent libraries within DIR
1554 (or the compiler's sysroot if not specified).
1555 --with-pcregrep-bufsize=N
1556 pcregrep buffer size (default=20480, minimum=8192)
1557 --with-posix-malloc-threshold=NBYTES
1558 threshold for POSIX malloc usage (default=10)
1559 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1560 --with-parens-nest-limit=N
1561 nested parentheses limit (default=250)
1562 --with-match-limit=N default limit on internal looping (default=10000000)
1563 --with-match-limit-recursion=N
1564 default limit on internal recursion
1565 (default=MATCH_LIMIT)
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1577 CPP C preprocessor
1578 CXXCPP C++ preprocessor
1579 PKG_CONFIG path to pkg-config utility
1580 PKG_CONFIG_PATH
1581 directories to add to pkg-config's search path
1582 PKG_CONFIG_LIBDIR
1583 path overriding pkg-config's built-in search path
1584 VALGRIND_CFLAGS
1585 C compiler flags for VALGRIND, overriding pkg-config
1586 VALGRIND_LIBS
1587 linker flags for VALGRIND, overriding pkg-config
1588 LCOV the ltp lcov program
1589 GENHTML the ltp genhtml program
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 PCRE configure 8.35
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_cxx_try_compile LINENO
1710 # ----------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_cxx_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_cxx_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_cxx_try_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_cpp ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_cpp
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1788 ac_fn_c_try_run ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_run
1826 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827 # -------------------------------------------------------
1828 # Tests whether HEADER exists and can be compiled using the include files in
1829 # INCLUDES, setting the cache variable VAR accordingly.
1830 ac_fn_c_check_header_compile ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 eval ac_res=\$$3
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_compile
1857 # ac_fn_c_find_intX_t LINENO BITS VAR
1858 # -----------------------------------
1859 # Finds a signed integer type with width BITS, setting cache variable VAR
1860 # accordingly.
1861 ac_fn_c_find_intX_t ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1865 $as_echo_n "checking for int$2_t... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 eval "$3=no"
1870 # Order is important - never check a type that is potentially smaller
1871 # than half of the expected target width.
1872 for ac_type in int$2_t 'int' 'long int' \
1873 'long long int' 'short int' 'signed char'; do
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $ac_includes_default
1877 enum { N = $2 / 2 - 1 };
1879 main ()
1881 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1882 test_array [0] = 0;
1883 return test_array [0];
1886 return 0;
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $ac_includes_default
1893 enum { N = $2 / 2 - 1 };
1895 main ()
1897 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1898 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1899 test_array [0] = 0;
1900 return test_array [0];
1903 return 0;
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1908 else
1909 case $ac_type in #(
1910 int$2_t) :
1911 eval "$3=yes" ;; #(
1912 *) :
1913 eval "$3=\$ac_type" ;;
1914 esac
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 if eval test \"x\$"$3"\" = x"no"; then :
1921 else
1922 break
1924 done
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_find_intX_t
1933 # ac_fn_c_try_link LINENO
1934 # -----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded.
1936 ac_fn_c_try_link ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 rm -f conftest.$ac_objext conftest$ac_exeext
1940 if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && {
1956 test -z "$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1958 } && test -s conftest$ac_exeext && {
1959 test "$cross_compiling" = yes ||
1960 test -x conftest$ac_exeext
1961 }; then :
1962 ac_retval=0
1963 else
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=1
1969 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971 # interfere with the next link command; also delete a directory that is
1972 # left behind by Apple's compiler. We do this before executing the actions.
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_link
1979 # ac_fn_c_check_func LINENO FUNC VAR
1980 # ----------------------------------
1981 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1982 ac_fn_c_check_func ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1994 #define $2 innocuous_$2
1996 /* System header to define __stub macros and hopefully few prototypes,
1997 which can conflict with char $2 (); below.
1998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1999 <limits.h> exists even on freestanding compilers. */
2001 #ifdef __STDC__
2002 # include <limits.h>
2003 #else
2004 # include <assert.h>
2005 #endif
2007 #undef $2
2009 /* Override any GCC internal prototype to avoid an error.
2010 Use char because int might match the return type of a GCC
2011 builtin and then its argument prototype would still apply. */
2012 #ifdef __cplusplus
2013 extern "C"
2014 #endif
2015 char $2 ();
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined __stub_$2 || defined __stub___$2
2020 choke me
2021 #endif
2024 main ()
2026 return $2 ();
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_link "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2036 rm -f core conftest.err conftest.$ac_objext \
2037 conftest$ac_exeext conftest.$ac_ext
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_func
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_cpp conftest.$ac_ext"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } > conftest.i && {
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 }; then :
2071 ac_retval=0
2072 else
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=1
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_cxx_try_cpp
2083 # ac_fn_cxx_try_link LINENO
2084 # -------------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_link ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 rm -f conftest.$ac_objext conftest$ac_exeext
2090 if { { ac_try="$ac_link"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_cxx_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest$ac_exeext && {
2109 test "$cross_compiling" = yes ||
2110 test -x conftest$ac_exeext
2111 }; then :
2112 ac_retval=0
2113 else
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2117 ac_retval=1
2119 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2120 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2121 # interfere with the next link command; also delete a directory that is
2122 # left behind by Apple's compiler. We do this before executing the actions.
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_cxx_try_link
2129 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2132 # the include files in INCLUDES and setting the cache variable VAR
2133 # accordingly.
2134 ac_fn_c_check_header_mongrel ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if eval \${$3+:} false; then :
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2143 eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 else
2147 # Is the header compilable?
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2149 $as_echo_n "checking $2 usability... " >&6; }
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_header_compiler=yes
2157 else
2158 ac_header_compiler=no
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2162 $as_echo "$ac_header_compiler" >&6; }
2164 # Is the header present?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2166 $as_echo_n "checking $2 presence... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 #include <$2>
2170 _ACEOF
2171 if ac_fn_c_try_cpp "$LINENO"; then :
2172 ac_header_preproc=yes
2173 else
2174 ac_header_preproc=no
2176 rm -f conftest.err conftest.i conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178 $as_echo "$ac_header_preproc" >&6; }
2180 # So? What about this header?
2181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2182 yes:no: )
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2184 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 no:yes:* )
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2190 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2192 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2194 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2196 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 esac
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 eval "$3=\$ac_header_compiler"
2208 eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_header_mongrel
2216 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2219 # the include files in INCLUDES and setting the cache variable VAR
2220 # accordingly.
2221 ac_fn_cxx_check_header_mongrel ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if eval \${$3+:} false; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2230 eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 else
2234 # Is the header compilable?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2236 $as_echo_n "checking $2 usability... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 ac_header_compiler=yes
2244 else
2245 ac_header_compiler=no
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2249 $as_echo "$ac_header_compiler" >&6; }
2251 # Is the header present?
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2253 $as_echo_n "checking $2 presence... " >&6; }
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 #include <$2>
2257 _ACEOF
2258 if ac_fn_cxx_try_cpp "$LINENO"; then :
2259 ac_header_preproc=yes
2260 else
2261 ac_header_preproc=no
2263 rm -f conftest.err conftest.i conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2265 $as_echo "$ac_header_preproc" >&6; }
2267 # So? What about this header?
2268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2269 yes:no: )
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2271 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2273 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275 no:yes:* )
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2277 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2279 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2281 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2283 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2285 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287 esac
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval \${$3+:} false; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 eval "$3=\$ac_header_compiler"
2295 eval ac_res=\$$3
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 } # ac_fn_cxx_check_header_mongrel
2303 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2304 # ---------------------------------------------
2305 # Tests whether TYPE exists after having included INCLUDES, setting cache
2306 # variable VAR accordingly.
2307 ac_fn_cxx_check_type ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 eval "$3=no"
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2320 main ()
2322 if (sizeof ($2))
2323 return 0;
2325 return 0;
2327 _ACEOF
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2333 main ()
2335 if (sizeof (($2)))
2336 return 0;
2338 return 0;
2340 _ACEOF
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 else
2344 eval "$3=yes"
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_cxx_check_type
2357 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358 # -------------------------------------------
2359 # Tests whether TYPE exists after having included INCLUDES, setting cache
2360 # variable VAR accordingly.
2361 ac_fn_c_check_type ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 eval "$3=no"
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 main ()
2376 if (sizeof ($2))
2377 return 0;
2379 return 0;
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2387 main ()
2389 if (sizeof (($2)))
2390 return 0;
2392 return 0;
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2397 else
2398 eval "$3=yes"
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 eval ac_res=\$$3
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_type
2410 cat >config.log <<_ACEOF
2411 This file contains any messages produced by compilers while
2412 running configure, to aid debugging if configure makes a mistake.
2414 It was created by PCRE $as_me 8.35, which was
2415 generated by GNU Autoconf 2.69. Invocation command line was
2417 $ $0 $@
2419 _ACEOF
2420 exec 5>>config.log
2422 cat <<_ASUNAME
2423 ## --------- ##
2424 ## Platform. ##
2425 ## --------- ##
2427 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2428 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2429 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2430 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2431 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2434 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2436 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2437 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2438 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2439 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2440 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2441 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2442 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444 _ASUNAME
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 $as_echo "PATH: $as_dir"
2452 done
2453 IFS=$as_save_IFS
2455 } >&5
2457 cat >&5 <<_ACEOF
2460 ## ----------- ##
2461 ## Core tests. ##
2462 ## ----------- ##
2464 _ACEOF
2467 # Keep a trace of the command line.
2468 # Strip out --no-create and --no-recursion so they do not pile up.
2469 # Strip out --silent because we don't want to record it for future runs.
2470 # Also quote any args containing shell meta-characters.
2471 # Make two passes to allow for proper duplicate-argument suppression.
2472 ac_configure_args=
2473 ac_configure_args0=
2474 ac_configure_args1=
2475 ac_must_keep_next=false
2476 for ac_pass in 1 2
2478 for ac_arg
2480 case $ac_arg in
2481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483 | -silent | --silent | --silen | --sile | --sil)
2484 continue ;;
2485 *\'*)
2486 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 esac
2488 case $ac_pass in
2489 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491 as_fn_append ac_configure_args1 " '$ac_arg'"
2492 if test $ac_must_keep_next = true; then
2493 ac_must_keep_next=false # Got value, back to normal.
2494 else
2495 case $ac_arg in
2496 *=* | --config-cache | -C | -disable-* | --disable-* \
2497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499 | -with-* | --with-* | -without-* | --without-* | --x)
2500 case "$ac_configure_args0 " in
2501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502 esac
2504 -* ) ac_must_keep_next=true ;;
2505 esac
2507 as_fn_append ac_configure_args " '$ac_arg'"
2509 esac
2510 done
2511 done
2512 { ac_configure_args0=; unset ac_configure_args0;}
2513 { ac_configure_args1=; unset ac_configure_args1;}
2515 # When interrupted or exit'd, cleanup temporary files, and complete
2516 # config.log. We remove comments because anyway the quotes in there
2517 # would cause problems or look ugly.
2518 # WARNING: Use '\'' to represent an apostrophe within the trap.
2519 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520 trap 'exit_status=$?
2521 # Save into config.log some information that might help in debugging.
2523 echo
2525 $as_echo "## ---------------- ##
2526 ## Cache variables. ##
2527 ## ---------------- ##"
2528 echo
2529 # The following way of writing the cache mishandles newlines in values,
2531 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2532 eval ac_val=\$$ac_var
2533 case $ac_val in #(
2534 *${as_nl}*)
2535 case $ac_var in #(
2536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 esac
2539 case $ac_var in #(
2540 _ | IFS | as_nl) ;; #(
2541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2542 *) { eval $ac_var=; unset $ac_var;} ;;
2543 esac ;;
2544 esac
2545 done
2546 (set) 2>&1 |
2547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2548 *${as_nl}ac_space=\ *)
2549 sed -n \
2550 "s/'\''/'\''\\\\'\'''\''/g;
2551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 ;; #(
2554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2556 esac |
2557 sort
2559 echo
2561 $as_echo "## ----------------- ##
2562 ## Output variables. ##
2563 ## ----------------- ##"
2564 echo
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2568 case $ac_val in
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2570 esac
2571 $as_echo "$ac_var='\''$ac_val'\''"
2572 done | sort
2573 echo
2575 if test -n "$ac_subst_files"; then
2576 $as_echo "## ------------------- ##
2577 ## File substitutions. ##
2578 ## ------------------- ##"
2579 echo
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2583 case $ac_val in
2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585 esac
2586 $as_echo "$ac_var='\''$ac_val'\''"
2587 done | sort
2588 echo
2591 if test -s confdefs.h; then
2592 $as_echo "## ----------- ##
2593 ## confdefs.h. ##
2594 ## ----------- ##"
2595 echo
2596 cat confdefs.h
2597 echo
2599 test "$ac_signal" != 0 &&
2600 $as_echo "$as_me: caught signal $ac_signal"
2601 $as_echo "$as_me: exit $exit_status"
2602 } >&5
2603 rm -f core *.core core.conftest.* &&
2604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2605 exit $exit_status
2607 for ac_signal in 1 2 13 15; do
2608 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2609 done
2610 ac_signal=0
2612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2613 rm -f -r conftest* confdefs.h
2615 $as_echo "/* confdefs.h */" > confdefs.h
2617 # Predefined preprocessor variables.
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_NAME "$PACKAGE_NAME"
2621 _ACEOF
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2625 _ACEOF
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2629 _ACEOF
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_STRING "$PACKAGE_STRING"
2633 _ACEOF
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2637 _ACEOF
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_URL "$PACKAGE_URL"
2641 _ACEOF
2644 # Let the site file select an alternate cache file if it wants to.
2645 # Prefer an explicitly selected file to automatically selected ones.
2646 ac_site_file1=NONE
2647 ac_site_file2=NONE
2648 if test -n "$CONFIG_SITE"; then
2649 # We do not want a PATH search for config.site.
2650 case $CONFIG_SITE in #((
2651 -*) ac_site_file1=./$CONFIG_SITE;;
2652 */*) ac_site_file1=$CONFIG_SITE;;
2653 *) ac_site_file1=./$CONFIG_SITE;;
2654 esac
2655 elif test "x$prefix" != xNONE; then
2656 ac_site_file1=$prefix/share/config.site
2657 ac_site_file2=$prefix/etc/config.site
2658 else
2659 ac_site_file1=$ac_default_prefix/share/config.site
2660 ac_site_file2=$ac_default_prefix/etc/config.site
2662 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664 test "x$ac_site_file" = xNONE && continue
2665 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668 sed 's/^/| /' "$ac_site_file" >&5
2669 . "$ac_site_file" \
2670 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 as_fn_error $? "failed to load site script $ac_site_file
2673 See \`config.log' for more details" "$LINENO" 5; }
2675 done
2677 if test -r "$cache_file"; then
2678 # Some versions of bash will fail to source /dev/null (special files
2679 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2680 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2682 $as_echo "$as_me: loading cache $cache_file" >&6;}
2683 case $cache_file in
2684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2685 *) . "./$cache_file";;
2686 esac
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2690 $as_echo "$as_me: creating cache $cache_file" >&6;}
2691 >$cache_file
2694 # Check that the precious variables saved in the cache have kept the same
2695 # value.
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2703 set,)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2707 ,set)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,);;
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2730 fi;;
2731 esac
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2734 case $ac_new_val in
2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2737 esac
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2741 esac
2743 done
2744 if $ac_cache_corrupted; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 am__api_version='1.14'
2765 ac_aux_dir=
2766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767 if test -f "$ac_dir/install-sh"; then
2768 ac_aux_dir=$ac_dir
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 break
2771 elif test -f "$ac_dir/install.sh"; then
2772 ac_aux_dir=$ac_dir
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 break
2775 elif test -f "$ac_dir/shtool"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2778 break
2780 done
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 # Find a good install program. We prefer a C program (faster),
2795 # so one script is as good as another. But avoid the broken or
2796 # incompatible versions:
2797 # SysV /etc/install, /usr/sbin/install
2798 # SunOS /usr/etc/install
2799 # IRIX /sbin/install
2800 # AIX /bin/install
2801 # AmigaOS /C/install, which installs bootblocks on floppy discs
2802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2805 # OS/2's system install, which has a completely different semantic
2806 # ./install, which can be erroneously created by make from ./install.sh.
2807 # Reject install programs that cannot install multiple files.
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2809 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2810 if test -z "$INSTALL"; then
2811 if ${ac_cv_path_install+:} false; then :
2812 $as_echo_n "(cached) " >&6
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 # Account for people who put trailing slashes in PATH elements.
2820 case $as_dir/ in #((
2821 ./ | .// | /[cC]/* | \
2822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2823 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2824 /usr/ucb/* ) ;;
2826 # OSF1 and SCO ODT 3.0 have their own names for install.
2827 # Don't use installbsd from OSF since it installs stuff as root
2828 # by default.
2829 for ac_prog in ginstall scoinst install; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2832 if test $ac_prog = install &&
2833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834 # AIX install. It has an incompatible calling convention.
2836 elif test $ac_prog = install &&
2837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838 # program-specific install script used by HP pwplus--don't use.
2840 else
2841 rm -rf conftest.one conftest.two conftest.dir
2842 echo one > conftest.one
2843 echo two > conftest.two
2844 mkdir conftest.dir
2845 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2846 test -s conftest.one && test -s conftest.two &&
2847 test -s conftest.dir/conftest.one &&
2848 test -s conftest.dir/conftest.two
2849 then
2850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2851 break 3
2855 done
2856 done
2858 esac
2860 done
2861 IFS=$as_save_IFS
2863 rm -rf conftest.one conftest.two conftest.dir
2866 if test "${ac_cv_path_install+set}" = set; then
2867 INSTALL=$ac_cv_path_install
2868 else
2869 # As a last resort, use the slow shell script. Don't cache a
2870 # value for INSTALL within a source directory, because that will
2871 # break other packages using the cache if that directory is
2872 # removed, or if the value is a relative name.
2873 INSTALL=$ac_install_sh
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2877 $as_echo "$INSTALL" >&6; }
2879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880 # It thinks the first close brace ends the variable substitution.
2881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2888 $as_echo_n "checking whether build environment is sane... " >&6; }
2889 # Reject unsafe characters in $srcdir or the absolute working directory
2890 # name. Accept space and tab only in the latter.
2891 am_lf='
2893 case `pwd` in
2894 *[\\\"\#\$\&\'\`$am_lf]*)
2895 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2896 esac
2897 case $srcdir in
2898 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2899 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2900 esac
2902 # Do 'set' in a subshell so we don't clobber the current shell's
2903 # arguments. Must try -L first in case configure is actually a
2904 # symlink; some systems play weird games with the mod time of symlinks
2905 # (eg FreeBSD returns the mod time of the symlink's containing
2906 # directory).
2907 if (
2908 am_has_slept=no
2909 for am_try in 1 2; do
2910 echo "timestamp, slept: $am_has_slept" > conftest.file
2911 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2912 if test "$*" = "X"; then
2913 # -L didn't work.
2914 set X `ls -t "$srcdir/configure" conftest.file`
2916 if test "$*" != "X $srcdir/configure conftest.file" \
2917 && test "$*" != "X conftest.file $srcdir/configure"; then
2919 # If neither matched, then we have a broken ls. This can happen
2920 # if, for instance, CONFIG_SHELL is bash and it inherits a
2921 # broken ls alias from the environment. This has actually
2922 # happened. Such a system could not be considered "sane".
2923 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2924 alias in your environment" "$LINENO" 5
2926 if test "$2" = conftest.file || test $am_try -eq 2; then
2927 break
2929 # Just in case.
2930 sleep 1
2931 am_has_slept=yes
2932 done
2933 test "$2" = conftest.file
2935 then
2936 # Ok.
2938 else
2939 as_fn_error $? "newly created file is older than distributed files!
2940 Check your system clock" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2944 # If we didn't sleep, we still need to ensure time stamps of config.status and
2945 # generated files are strictly newer.
2946 am_sleep_pid=
2947 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2948 ( sleep 1 ) &
2949 am_sleep_pid=$!
2952 rm -f conftest.file
2954 test "$program_prefix" != NONE &&
2955 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2956 # Use a double $ so make ignores it.
2957 test "$program_suffix" != NONE &&
2958 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2959 # Double any \ or $.
2960 # By default was `s,x,x', remove it if useless.
2961 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2962 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2964 # expand $ac_aux_dir to an absolute path
2965 am_aux_dir=`cd $ac_aux_dir && pwd`
2967 if test x"${MISSING+set}" != xset; then
2968 case $am_aux_dir in
2969 *\ * | *\ *)
2970 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2972 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2973 esac
2975 # Use eval to expand $SHELL
2976 if eval "$MISSING --is-lightweight"; then
2977 am_missing_run="$MISSING "
2978 else
2979 am_missing_run=
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2981 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2984 if test x"${install_sh}" != xset; then
2985 case $am_aux_dir in
2986 *\ * | *\ *)
2987 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2989 install_sh="\${SHELL} $am_aux_dir/install-sh"
2990 esac
2993 # Installed binaries are usually stripped using 'strip' when the user
2994 # run "make install-strip". However 'strip' might not be the right
2995 # tool to use in cross-compilation environments, therefore Automake
2996 # will honor the 'STRIP' environment variable to overrule this program.
2997 if test "$cross_compiling" != no; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_STRIP+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$STRIP"; then
3007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 STRIP=$ac_cv_prog_STRIP
3027 if test -n "$STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3029 $as_echo "$STRIP" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$ac_cv_prog_STRIP"; then
3038 ac_ct_STRIP=$STRIP
3039 # Extract the first word of "strip", so it can be a program name with args.
3040 set dummy strip; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$ac_ct_STRIP"; then
3047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_STRIP="strip"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3067 if test -n "$ac_ct_STRIP"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069 $as_echo "$ac_ct_STRIP" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3075 if test "x$ac_ct_STRIP" = x; then
3076 STRIP=":"
3077 else
3078 case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084 STRIP=$ac_ct_STRIP
3086 else
3087 STRIP="$ac_cv_prog_STRIP"
3091 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3094 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3095 if test -z "$MKDIR_P"; then
3096 if ${ac_cv_path_mkdir+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_prog in mkdir gmkdir; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3107 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108 'mkdir (GNU coreutils) '* | \
3109 'mkdir (coreutils) '* | \
3110 'mkdir (fileutils) '4.1*)
3111 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3112 break 3;;
3113 esac
3114 done
3115 done
3116 done
3117 IFS=$as_save_IFS
3121 test -d ./--version && rmdir ./--version
3122 if test "${ac_cv_path_mkdir+set}" = set; then
3123 MKDIR_P="$ac_cv_path_mkdir -p"
3124 else
3125 # As a last resort, use the slow shell script. Don't cache a
3126 # value for MKDIR_P within a source directory, because that will
3127 # break other packages using the cache if that directory is
3128 # removed, or if the value is a relative name.
3129 MKDIR_P="$ac_install_sh -d"
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3133 $as_echo "$MKDIR_P" >&6; }
3135 for ac_prog in gawk mawk nawk awk
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_AWK+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$AWK"; then
3145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_AWK="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167 $as_echo "$AWK" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$AWK" && break
3175 done
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3179 set x ${MAKE-make}
3180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 SHELL = /bin/sh
3186 all:
3187 @echo '@@@%%%=$(MAKE)=@@@%%%'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3191 *@@@%%%=?*=@@@%%%*)
3192 eval ac_cv_prog_make_${ac_make}_set=yes;;
3194 eval ac_cv_prog_make_${ac_make}_set=no;;
3195 esac
3196 rm -f conftest.make
3198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 SET_MAKE=
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 SET_MAKE="MAKE=${MAKE-make}"
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211 am__leading_dot=.
3212 else
3213 am__leading_dot=_
3215 rmdir .tst 2>/dev/null
3217 # Check whether --enable-silent-rules was given.
3218 if test "${enable_silent_rules+set}" = set; then :
3219 enableval=$enable_silent_rules;
3222 case $enable_silent_rules in # (((
3223 yes) AM_DEFAULT_VERBOSITY=0;;
3224 no) AM_DEFAULT_VERBOSITY=1;;
3225 *) AM_DEFAULT_VERBOSITY=1;;
3226 esac
3227 am_make=${MAKE-make}
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3229 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3230 if ${am_cv_make_support_nested_variables+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if $as_echo 'TRUE=$(BAR$(V))
3234 BAR0=false
3235 BAR1=true
3237 am__doit:
3238 @$(TRUE)
3239 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3240 am_cv_make_support_nested_variables=yes
3241 else
3242 am_cv_make_support_nested_variables=no
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3247 if test $am_cv_make_support_nested_variables = yes; then
3248 AM_V='$(V)'
3249 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3250 else
3251 AM_V=$AM_DEFAULT_VERBOSITY
3252 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3254 AM_BACKSLASH='\'
3256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258 # is not polluted with repeated "-I."
3259 am__isrc=' -I$(srcdir)'
3260 # test to see if srcdir already configured
3261 if test -f $srcdir/config.status; then
3262 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3266 # test whether we have cygpath
3267 if test -z "$CYGPATH_W"; then
3268 if (cygpath --version) >/dev/null 2>/dev/null; then
3269 CYGPATH_W='cygpath -w'
3270 else
3271 CYGPATH_W=echo
3276 # Define the identity of the package.
3277 PACKAGE='pcre'
3278 VERSION='8.35'
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE "$PACKAGE"
3283 _ACEOF
3286 cat >>confdefs.h <<_ACEOF
3287 #define VERSION "$VERSION"
3288 _ACEOF
3290 # Some tools Automake needs.
3292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3306 # For better backward compatibility. To be removed once Automake 1.9.x
3307 # dies out for good. For more background, see:
3308 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3309 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3310 mkdir_p='$(MKDIR_P)'
3312 # We need awk for the "check" target. The system "awk" is bad on
3313 # some platforms.
3314 # Always define AMTAR for backward compatibility. Yes, it's still used
3315 # in the wild :-( We should find a proper way to deprecate it ...
3316 AMTAR='$${TAR-tar}'
3319 # We'll loop over all known methods to create a tar archive until one works.
3320 _am_tools='gnutar pax cpio none'
3322 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3329 # POSIX will say in a future version that running "rm -f" with no argument
3330 # is OK; and we want to be able to make that assumption in our Makefile
3331 # recipes. So use an aggressive probe to check that the usage we want is
3332 # actually supported "in the wild" to an acceptable degree.
3333 # See automake bug#10828.
3334 # To make any issue more visible, cause the running configure to be aborted
3335 # by default if the 'rm' program in use doesn't match our expectations; the
3336 # user can still override this though.
3337 if rm -f && rm -fr && rm -rf; then : OK; else
3338 cat >&2 <<'END'
3339 Oops!
3341 Your 'rm' program seems unable to run without file operands specified
3342 on the command line, even when the '-f' option is present. This is contrary
3343 to the behaviour of most rm programs out there, and not conforming with
3344 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3346 Please tell bug-automake@gnu.org about your system, including the value
3347 of your $PATH and any error possibly output before this message. This
3348 can help us improve future automake versions.
3351 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3352 echo 'Configuration will proceed anyway, since you have set the' >&2
3353 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3354 echo >&2
3355 else
3356 cat >&2 <<'END'
3357 Aborting the configuration process, to ensure you take notice of the issue.
3359 You can download and install GNU coreutils to get an 'rm' implementation
3360 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3362 If you want to complete the configuration process using your problematic
3363 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3364 to "yes", and re-run configure.
3367 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372 enableval=$enable_silent_rules;
3375 case $enable_silent_rules in # (((
3376 yes) AM_DEFAULT_VERBOSITY=0;;
3377 no) AM_DEFAULT_VERBOSITY=1;;
3378 *) AM_DEFAULT_VERBOSITY=0;;
3379 esac
3380 am_make=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if $as_echo 'TRUE=$(BAR$(V))
3387 BAR0=false
3388 BAR1=true
3390 am__doit:
3391 @$(TRUE)
3392 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3393 am_cv_make_support_nested_variables=yes
3394 else
3395 am_cv_make_support_nested_variables=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3401 AM_V='$(V)'
3402 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3403 else
3404 AM_V=$AM_DEFAULT_VERBOSITY
3405 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3407 AM_BACKSLASH='\'
3409 ac_config_headers="$ac_config_headers config.h"
3412 # This is a new thing required to stop a warning from automake 1.12
3413 DEPDIR="${am__leading_dot}deps"
3415 ac_config_commands="$ac_config_commands depfiles"
3418 am_make=${MAKE-make}
3419 cat > confinc << 'END'
3420 am__doit:
3421 @echo this is the am__doit target
3422 .PHONY: am__doit
3424 # If we don't find an include directive, just comment out the code.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3427 am__include="#"
3428 am__quote=
3429 _am_result=none
3430 # First try GNU make style include.
3431 echo "include confinc" > confmf
3432 # Ignore all kinds of additional output from 'make'.
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3435 am__include=include
3436 am__quote=
3437 _am_result=GNU
3439 esac
3440 # Now try BSD make style include.
3441 if test "$am__include" = "#"; then
3442 echo '.include "confinc"' > confmf
3443 case `$am_make -s -f confmf 2> /dev/null` in #(
3444 *the\ am__doit\ target*)
3445 am__include=.include
3446 am__quote="\""
3447 _am_result=BSD
3449 esac
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3454 $as_echo "$_am_result" >&6; }
3455 rm -f confinc confmf
3457 # Check whether --enable-dependency-tracking was given.
3458 if test "${enable_dependency_tracking+set}" = set; then :
3459 enableval=$enable_dependency_tracking;
3462 if test "x$enable_dependency_tracking" != xno; then
3463 am_depcomp="$ac_aux_dir/depcomp"
3464 AMDEPBACKSLASH='\'
3465 am__nodep='_no'
3467 if test "x$enable_dependency_tracking" != xno; then
3468 AMDEP_TRUE=
3469 AMDEP_FALSE='#'
3470 else
3471 AMDEP_TRUE='#'
3472 AMDEP_FALSE=
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3513 else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3520 if test -z "$ac_cv_prog_CC"; then
3521 ac_ct_CC=$CC
3522 # Extract the first word of "gcc", so it can be a program name with args.
3523 set dummy gcc; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="gcc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3558 if test "x$ac_ct_CC" = x; then
3559 CC=""
3560 else
3561 case $cross_compiling:$ac_tool_warned in
3562 yes:)
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned=yes ;;
3566 esac
3567 CC=$ac_ct_CC
3569 else
3570 CC="$ac_cv_prog_CC"
3573 if test -z "$CC"; then
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}cc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}cc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3614 if test -z "$CC"; then
3615 # Extract the first word of "cc", so it can be a program name with args.
3616 set dummy cc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 ac_prog_rejected=no
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634 ac_prog_rejected=yes
3635 continue
3637 ac_cv_prog_CC="cc"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3641 done
3642 done
3643 IFS=$as_save_IFS
3645 if test $ac_prog_rejected = yes; then
3646 # We found a bogon in the path, so make sure we never use it.
3647 set dummy $ac_cv_prog_CC
3648 shift
3649 if test $# != 0; then
3650 # We chose a different compiler from the bogus one.
3651 # However, it has the same basename, so the bogon will be chosen
3652 # first if we set CC to just the basename; use the full file name.
3653 shift
3654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$CC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in cl.exe
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3695 done
3696 done
3697 IFS=$as_save_IFS
3701 CC=$ac_cv_prog_CC
3702 if test -n "$CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704 $as_echo "$CC" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CC" && break
3712 done
3714 if test -z "$CC"; then
3715 ac_ct_CC=$CC
3716 for ac_prog in cl.exe
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -n "$ac_ct_CC"; then
3726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_CC="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3741 IFS=$as_save_IFS
3745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746 if test -n "$ac_ct_CC"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3748 $as_echo "$ac_ct_CC" >&6; }
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CC" && break
3756 done
3758 if test "x$ac_ct_CC" = x; then
3759 CC=""
3760 else
3761 case $cross_compiling:$ac_tool_warned in
3762 yes:)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3766 esac
3767 CC=$ac_ct_CC
3774 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "no acceptable C compiler found in \$PATH
3777 See \`config.log' for more details" "$LINENO" 5; }
3779 # Provide some information about the compiler.
3780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3781 set X $ac_compile
3782 ac_compiler=$2
3783 for ac_option in --version -v -V -qversion; do
3784 { { ac_try="$ac_compiler $ac_option >&5"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3792 ac_status=$?
3793 if test -s conftest.err; then
3794 sed '10a\
3795 ... rest of stderr output deleted ...
3796 10q' conftest.err >conftest.er1
3797 cat conftest.er1 >&5
3799 rm -f conftest.er1 conftest.err
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }
3802 done
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 ac_clean_files_save=$ac_clean_files
3816 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3817 # Try to create an executable without -o first, disregard a.out.
3818 # It will help us diagnose broken compilers, and finding out an intuition
3819 # of exeext.
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821 $as_echo_n "checking whether the C compiler works... " >&6; }
3822 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3824 # The possible output files:
3825 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3827 ac_rmfiles=
3828 for ac_file in $ac_files
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3833 esac
3834 done
3835 rm -f $ac_rmfiles
3837 if { { ac_try="$ac_link_default"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_link_default") 2>&5
3845 ac_status=$?
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3850 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3851 # so that the user can short-circuit this test for compilers unknown to
3852 # Autoconf.
3853 for ac_file in $ac_files ''
3855 test -f "$ac_file" || continue
3856 case $ac_file in
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3859 [ab].out )
3860 # We found the default executable, but exeext='' is most
3861 # certainly right.
3862 break;;
3863 *.* )
3864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3865 then :; else
3866 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3868 # We set ac_cv_exeext here because the later test for it is not
3869 # safe: cross compilers may not add the suffix if given an `-o'
3870 # argument, so we may need to know it at that point already.
3871 # Even if this section looks crufty: it has the advantage of
3872 # actually working.
3873 break;;
3875 break;;
3876 esac
3877 done
3878 test "$ac_cv_exeext" = no && ac_cv_exeext=
3880 else
3881 ac_file=''
3883 if test -z "$ac_file"; then :
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error 77 "C compiler cannot create executables
3892 See \`config.log' for more details" "$LINENO" 5; }
3893 else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3895 $as_echo "yes" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3898 $as_echo_n "checking for C compiler default output file name... " >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 ac_exeext=$ac_cv_exeext
3903 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3904 ac_clean_files=$ac_clean_files_save
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3906 $as_echo_n "checking for suffix of executables... " >&6; }
3907 if { { ac_try="$ac_link"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_link") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3920 # work properly (i.e., refer to `conftest.exe'), while it won't with
3921 # `rm'.
3922 for ac_file in conftest.exe conftest conftest.*; do
3923 test -f "$ac_file" || continue
3924 case $ac_file in
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 break;;
3928 * ) break;;
3929 esac
3930 done
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3935 See \`config.log' for more details" "$LINENO" 5; }
3937 rm -f conftest conftest$ac_cv_exeext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3939 $as_echo "$ac_cv_exeext" >&6; }
3941 rm -f conftest.$ac_ext
3942 EXEEXT=$ac_cv_exeext
3943 ac_exeext=$EXEEXT
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <stdio.h>
3948 main ()
3950 FILE *f = fopen ("conftest.out", "w");
3951 return ferror (f) || fclose (f) != 0;
3954 return 0;
3956 _ACEOF
3957 ac_clean_files="$ac_clean_files conftest.out"
3958 # Check that the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961 $as_echo_n "checking whether we are cross compiling... " >&6; }
3962 if test "$cross_compiling" != yes; then
3963 { { ac_try="$ac_link"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 if { ac_try='./conftest$ac_cv_exeext'
3975 { { case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_try") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; }; then
3985 cross_compiling=no
3986 else
3987 if test "$cross_compiling" = maybe; then
3988 cross_compiling=yes
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "cannot run C compiled programs.
3993 If you meant to cross compile, use \`--host'.
3994 See \`config.log' for more details" "$LINENO" 5; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999 $as_echo "$cross_compiling" >&6; }
4001 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4002 ac_clean_files=$ac_clean_files_save
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4004 $as_echo_n "checking for suffix of object files... " >&6; }
4005 if ${ac_cv_objext+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4012 main ()
4016 return 0;
4018 _ACEOF
4019 rm -f conftest.o conftest.obj
4020 if { { ac_try="$ac_compile"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compile") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; then :
4031 for ac_file in conftest.o conftest.obj conftest.*; do
4032 test -f "$ac_file" || continue;
4033 case $ac_file in
4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 break;;
4037 esac
4038 done
4039 else
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot compute suffix of object files: cannot compile
4046 See \`config.log' for more details" "$LINENO" 5; }
4048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4051 $as_echo "$ac_cv_objext" >&6; }
4052 OBJEXT=$ac_cv_objext
4053 ac_objext=$OBJEXT
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4056 if ${ac_cv_c_compiler_gnu+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4063 main ()
4065 #ifndef __GNUC__
4066 choke me
4067 #endif
4070 return 0;
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_compiler_gnu=yes
4075 else
4076 ac_compiler_gnu=no
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084 if test $ac_compiler_gnu = yes; then
4085 GCC=yes
4086 else
4087 GCC=
4089 ac_test_CFLAGS=${CFLAGS+set}
4090 ac_save_CFLAGS=$CFLAGS
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4093 if ${ac_cv_prog_cc_g+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 ac_save_c_werror_flag=$ac_c_werror_flag
4097 ac_c_werror_flag=yes
4098 ac_cv_prog_cc_g=no
4099 CFLAGS="-g"
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_cv_prog_cc_g=yes
4113 else
4114 CFLAGS=""
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 main ()
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4128 else
4129 ac_c_werror_flag=$ac_save_c_werror_flag
4130 CFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4135 main ()
4139 return 0;
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_g=yes
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153 $as_echo "$ac_cv_prog_cc_g" >&6; }
4154 if test "$ac_test_CFLAGS" = set; then
4155 CFLAGS=$ac_save_CFLAGS
4156 elif test $ac_cv_prog_cc_g = yes; then
4157 if test "$GCC" = yes; then
4158 CFLAGS="-g -O2"
4159 else
4160 CFLAGS="-g"
4162 else
4163 if test "$GCC" = yes; then
4164 CFLAGS="-O2"
4165 else
4166 CFLAGS=
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4171 if ${ac_cv_prog_cc_c89+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_cv_prog_cc_c89=no
4175 ac_save_CC=$CC
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <stdarg.h>
4179 #include <stdio.h>
4180 struct stat;
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4185 char **p;
4186 int i;
4188 return p[i];
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4192 char *s;
4193 va_list v;
4194 va_start (v,p);
4195 s = g (p, va_arg (v,int));
4196 va_end (v);
4197 return s;
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4211 #define FOO(x) 'x'
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 int argc;
4219 char **argv;
4221 main ()
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 return 0;
4227 _ACEOF
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4237 done
4238 rm -f conftest.$ac_ext
4239 CC=$ac_save_CC
4242 # AC_CACHE_VAL
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4247 xno)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4254 esac
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4271 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4272 if ${am_cv_prog_cc_c_o+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4279 main ()
4283 return 0;
4285 _ACEOF
4286 # Make sure it works both with $CC and with simple cc.
4287 # Following AC_PROG_CC_C_O, we do the test twice because some
4288 # compilers refuse to overwrite an existing .o file with -o,
4289 # though they will create one.
4290 am_cv_prog_cc_c_o=yes
4291 for am_i in 1 2; do
4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } \
4297 && test -f conftest2.$ac_objext; then
4298 : OK
4299 else
4300 am_cv_prog_cc_c_o=no
4301 break
4303 done
4304 rm -f core conftest*
4305 unset am_i
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4309 if test "$am_cv_prog_cc_c_o" != yes; then
4310 # Losing compiler, so override with the script.
4311 # FIXME: It is wrong to rewrite CC.
4312 # But if we don't then we get into trouble of one sort or another.
4313 # A longer-term fix would be to have automake use am__CC in this case,
4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315 CC="$am_aux_dir/compile $CC"
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 depcc="$CC" am_compiler_list=
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327 $as_echo_n "checking dependency style of $depcc... " >&6; }
4328 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named 'D' -- because '-MD' means "put the output
4336 # in D".
4337 rm -rf conftest.dir
4338 mkdir conftest.dir
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4342 cd conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4348 # directory.
4349 mkdir sub
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 am__universal=false
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358 esac
4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4368 : > sub/conftest.c
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372 # Solaris 10 /bin/sh.
4373 echo '/* dummy */' > sub/conftst$i.h
4374 done
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4378 # mode. It turns out that the SunPro C++ compiler does not properly
4379 # handle '-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs.
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
4383 case $depmode in
4384 gcc)
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4388 nosideeffect)
4389 # After this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested.
4391 if test "x$enable_dependency_tracking" = xyes; then
4392 continue
4393 else
4394 break
4397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4398 # This compiler won't grok '-c -o', but also, the minuso test has
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4402 am__minus_obj=
4404 none) break ;;
4405 esac
4406 if depmode=$depmode \
4407 source=sub/conftest.c object=$am__obj \
4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410 >/dev/null 2>conftest.err &&
4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4425 break
4428 done
4430 cd ..
4431 rm -rf conftest.dir
4432 else
4433 am_cv_CC_dependencies_compiler_type=none
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_TRUE=
4445 am__fastdepCC_FALSE='#'
4446 else
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in ar lib "link -lib"
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_AR+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$AR"; then
4464 ac_cv_prog_AR="$AR" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 AR=$ac_cv_prog_AR
4484 if test -n "$AR"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4486 $as_echo "$AR" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$AR" && break
4494 done
4496 if test -z "$AR"; then
4497 ac_ct_AR=$AR
4498 for ac_prog in ar lib "link -lib"
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_AR="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4521 done
4522 done
4523 IFS=$as_save_IFS
4527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528 if test -n "$ac_ct_AR"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4530 $as_echo "$ac_ct_AR" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$ac_ct_AR" && break
4538 done
4540 if test "x$ac_ct_AR" = x; then
4541 AR="false"
4542 else
4543 case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4548 esac
4549 AR=$ac_ct_AR
4553 : ${AR=ar}
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4556 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4557 if ${am_cv_ar_interface+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_ext=c
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 am_cv_ar_interface=ar
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 int some_variable = 0;
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4574 (eval $am_ar_try) 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }
4578 if test "$ac_status" -eq 0; then
4579 am_cv_ar_interface=ar
4580 else
4581 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583 (eval $am_ar_try) 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if test "$ac_status" -eq 0; then
4588 am_cv_ar_interface=lib
4589 else
4590 am_cv_ar_interface=unknown
4593 rm -f conftest.lib libconftest.a
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4605 $as_echo "$am_cv_ar_interface" >&6; }
4607 case $am_cv_ar_interface in
4610 lib)
4611 # Microsoft lib, so override with the ar-lib wrapper script.
4612 # FIXME: It is wrong to rewrite AR.
4613 # But if we don't then we get into trouble of one sort or another.
4614 # A longer-term fix would be to have automake use am__AR in this case,
4615 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4616 # similar.
4617 AR="$am_aux_dir/ar-lib $AR"
4619 unknown)
4620 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4622 esac
4625 # This was added at the suggestion of libtoolize (03-Jan-10)
4628 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4629 # "-g" for any other compiler. There doesn't seem to be a standard way of
4630 # getting rid of the -g (which I don't think is needed for a production
4631 # library). This fudge seems to achieve the necessary. First, we remember the
4632 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4633 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4634 # set, they will be set to Autoconf's defaults. Afterwards, if the original
4635 # values were not set, remove the -g from the Autoconf defaults.
4636 # (PH 02-May-07)
4638 remember_set_CFLAGS="$CFLAGS"
4639 remember_set_CXXFLAGS="$CXXFLAGS"
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 CC=$ac_cv_prog_CC
4675 if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_CC"; then
4686 ac_ct_CC=$CC
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_CC="gcc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_CC" = x; then
4724 CC=""
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 CC=$ac_ct_CC
4734 else
4735 CC="$ac_cv_prog_CC"
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_CC="${ac_tool_prefix}cc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 CC=$ac_cv_prog_CC
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4779 if test -z "$CC"; then
4780 # Extract the first word of "cc", so it can be a program name with args.
4781 set dummy cc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$CC"; then
4788 ac_cv_prog_CC="$CC" # Let the user override the test.
4789 else
4790 ac_prog_rejected=no
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799 ac_prog_rejected=yes
4800 continue
4802 ac_cv_prog_CC="cc"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4808 IFS=$as_save_IFS
4810 if test $ac_prog_rejected = yes; then
4811 # We found a bogon in the path, so make sure we never use it.
4812 set dummy $ac_cv_prog_CC
4813 shift
4814 if test $# != 0; then
4815 # We chose a different compiler from the bogus one.
4816 # However, it has the same basename, so the bogon will be chosen
4817 # first if we set CC to just the basename; use the full file name.
4818 shift
4819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$CC"; then
4836 if test -n "$ac_tool_prefix"; then
4837 for ac_prog in cl.exe
4839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_CC+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4860 done
4861 done
4862 IFS=$as_save_IFS
4866 CC=$ac_cv_prog_CC
4867 if test -n "$CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 $as_echo "$CC" >&6; }
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4876 test -n "$CC" && break
4877 done
4879 if test -z "$CC"; then
4880 ac_ct_CC=$CC
4881 for ac_prog in cl.exe
4883 # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -n "$ac_ct_CC"; then
4891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_prog_ac_ct_CC="$ac_prog"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4906 IFS=$as_save_IFS
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 $as_echo "$ac_ct_CC" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4920 test -n "$ac_ct_CC" && break
4921 done
4923 if test "x$ac_ct_CC" = x; then
4924 CC=""
4925 else
4926 case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4931 esac
4932 CC=$ac_ct_CC
4939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941 as_fn_error $? "no acceptable C compiler found in \$PATH
4942 See \`config.log' for more details" "$LINENO" 5; }
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4946 set X $ac_compile
4947 ac_compiler=$2
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4957 ac_status=$?
4958 if test -s conftest.err; then
4959 sed '10a\
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err >conftest.er1
4962 cat conftest.er1 >&5
4964 rm -f conftest.er1 conftest.err
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4967 done
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971 if ${ac_cv_c_compiler_gnu+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4978 main ()
4980 #ifndef __GNUC__
4981 choke me
4982 #endif
4985 return 0;
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"; then :
4989 ac_compiler_gnu=yes
4990 else
4991 ac_compiler_gnu=no
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5000 GCC=yes
5001 else
5002 GCC=
5004 ac_test_CFLAGS=${CFLAGS+set}
5005 ac_save_CFLAGS=$CFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5008 if ${ac_cv_prog_cc_g+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_save_c_werror_flag=$ac_c_werror_flag
5012 ac_c_werror_flag=yes
5013 ac_cv_prog_cc_g=no
5014 CFLAGS="-g"
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 main ()
5023 return 0;
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_prog_cc_g=yes
5028 else
5029 CFLAGS=""
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5034 main ()
5038 return 0;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"; then :
5043 else
5044 ac_c_werror_flag=$ac_save_c_werror_flag
5045 CFLAGS="-g"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5050 main ()
5054 return 0;
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 ac_cv_prog_cc_g=yes
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068 $as_echo "$ac_cv_prog_cc_g" >&6; }
5069 if test "$ac_test_CFLAGS" = set; then
5070 CFLAGS=$ac_save_CFLAGS
5071 elif test $ac_cv_prog_cc_g = yes; then
5072 if test "$GCC" = yes; then
5073 CFLAGS="-g -O2"
5074 else
5075 CFLAGS="-g"
5077 else
5078 if test "$GCC" = yes; then
5079 CFLAGS="-O2"
5080 else
5081 CFLAGS=
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086 if ${ac_cv_prog_cc_c89+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 ac_cv_prog_cc_c89=no
5090 ac_save_CC=$CC
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 #include <stdarg.h>
5094 #include <stdio.h>
5095 struct stat;
5096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5097 struct buf { int x; };
5098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5099 static char *e (p, i)
5100 char **p;
5101 int i;
5103 return p[i];
5105 static char *f (char * (*g) (char **, int), char **p, ...)
5107 char *s;
5108 va_list v;
5109 va_start (v,p);
5110 s = g (p, va_arg (v,int));
5111 va_end (v);
5112 return s;
5115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5116 function prototypes and stuff, but not '\xHH' hex character constants.
5117 These don't provoke an error unfortunately, instead are silently treated
5118 as 'x'. The following induces an error, until -std is added to get
5119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5120 array size at least. It's necessary to write '\x00'==0 to get something
5121 that's true only with -std. */
5122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5125 inside strings and character constants. */
5126 #define FOO(x) 'x'
5127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129 int test (int i, double x);
5130 struct s1 {int (*f) (int a);};
5131 struct s2 {int (*f) (double a);};
5132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5133 int argc;
5134 char **argv;
5136 main ()
5138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5140 return 0;
5142 _ACEOF
5143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 CC="$ac_save_CC $ac_arg"
5147 if ac_fn_c_try_compile "$LINENO"; then :
5148 ac_cv_prog_cc_c89=$ac_arg
5150 rm -f core conftest.err conftest.$ac_objext
5151 test "x$ac_cv_prog_cc_c89" != "xno" && break
5152 done
5153 rm -f conftest.$ac_ext
5154 CC=$ac_save_CC
5157 # AC_CACHE_VAL
5158 case "x$ac_cv_prog_cc_c89" in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5161 $as_echo "none needed" >&6; } ;;
5162 xno)
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5164 $as_echo "unsupported" >&6; } ;;
5166 CC="$CC $ac_cv_prog_cc_c89"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5169 esac
5170 if test "x$ac_cv_prog_cc_c89" != xno; then :
5174 ac_ext=c
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180 ac_ext=c
5181 ac_cpp='$CPP $CPPFLAGS'
5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5186 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5187 if ${am_cv_prog_cc_c_o+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 main ()
5198 return 0;
5200 _ACEOF
5201 # Make sure it works both with $CC and with simple cc.
5202 # Following AC_PROG_CC_C_O, we do the test twice because some
5203 # compilers refuse to overwrite an existing .o file with -o,
5204 # though they will create one.
5205 am_cv_prog_cc_c_o=yes
5206 for am_i in 1 2; do
5207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5208 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } \
5212 && test -f conftest2.$ac_objext; then
5213 : OK
5214 else
5215 am_cv_prog_cc_c_o=no
5216 break
5218 done
5219 rm -f core conftest*
5220 unset am_i
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5223 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5224 if test "$am_cv_prog_cc_c_o" != yes; then
5225 # Losing compiler, so override with the script.
5226 # FIXME: It is wrong to rewrite CC.
5227 # But if we don't then we get into trouble of one sort or another.
5228 # A longer-term fix would be to have automake use am__CC in this case,
5229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5230 CC="$am_aux_dir/compile $CC"
5232 ac_ext=c
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 depcc="$CC" am_compiler_list=
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5242 $as_echo_n "checking dependency style of $depcc... " >&6; }
5243 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5247 # We make a subdir and do the tests there. Otherwise we can end up
5248 # making bogus files that we don't know about and never remove. For
5249 # instance it was reported that on HP-UX the gcc test will end up
5250 # making a dummy file named 'D' -- because '-MD' means "put the output
5251 # in D".
5252 rm -rf conftest.dir
5253 mkdir conftest.dir
5254 # Copy depcomp to subdir because otherwise we won't find it if we're
5255 # using a relative directory.
5256 cp "$am_depcomp" conftest.dir
5257 cd conftest.dir
5258 # We will build objects and dependencies in a subdirectory because
5259 # it helps to detect inapplicable dependency modes. For instance
5260 # both Tru64's cc and ICC support -MD to output dependencies as a
5261 # side effect of compilation, but ICC will put the dependencies in
5262 # the current directory while Tru64 will put them in the object
5263 # directory.
5264 mkdir sub
5266 am_cv_CC_dependencies_compiler_type=none
5267 if test "$am_compiler_list" = ""; then
5268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5270 am__universal=false
5271 case " $depcc " in #(
5272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5273 esac
5275 for depmode in $am_compiler_list; do
5276 # Setup a source with many dependencies, because some compilers
5277 # like to wrap large dependency lists on column 80 (with \), and
5278 # we should not choose a depcomp mode which is confused by this.
5280 # We need to recreate these files for each test, as the compiler may
5281 # overwrite some of them when testing with obscure command lines.
5282 # This happens at least with the AIX C compiler.
5283 : > sub/conftest.c
5284 for i in 1 2 3 4 5 6; do
5285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5287 # Solaris 10 /bin/sh.
5288 echo '/* dummy */' > sub/conftst$i.h
5289 done
5290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5293 # mode. It turns out that the SunPro C++ compiler does not properly
5294 # handle '-M -o', and we need to detect this. Also, some Intel
5295 # versions had trouble with output in subdirs.
5296 am__obj=sub/conftest.${OBJEXT-o}
5297 am__minus_obj="-o $am__obj"
5298 case $depmode in
5299 gcc)
5300 # This depmode causes a compiler race in universal mode.
5301 test "$am__universal" = false || continue
5303 nosideeffect)
5304 # After this tag, mechanisms are not by side-effect, so they'll
5305 # only be used when explicitly requested.
5306 if test "x$enable_dependency_tracking" = xyes; then
5307 continue
5308 else
5309 break
5312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5313 # This compiler won't grok '-c -o', but also, the minuso test has
5314 # not run yet. These depmodes are late enough in the game, and
5315 # so weak that their functioning should not be impacted.
5316 am__obj=conftest.${OBJEXT-o}
5317 am__minus_obj=
5319 none) break ;;
5320 esac
5321 if depmode=$depmode \
5322 source=sub/conftest.c object=$am__obj \
5323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5325 >/dev/null 2>conftest.err &&
5326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5330 # icc doesn't choke on unknown options, it will just issue warnings
5331 # or remarks (even with -Werror). So we grep stderr for any message
5332 # that says an option was ignored or not supported.
5333 # When given -MP, icc 7.0 and 7.1 complain thusly:
5334 # icc: Command line warning: ignoring option '-M'; no argument required
5335 # The diagnosis changed in icc 8.0:
5336 # icc: Command line remark: option '-MP' not supported
5337 if (grep 'ignoring option' conftest.err ||
5338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5339 am_cv_CC_dependencies_compiler_type=$depmode
5340 break
5343 done
5345 cd ..
5346 rm -rf conftest.dir
5347 else
5348 am_cv_CC_dependencies_compiler_type=none
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5353 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5354 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5357 test "x$enable_dependency_tracking" != xno \
5358 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5359 am__fastdepCC_TRUE=
5360 am__fastdepCC_FALSE='#'
5361 else
5362 am__fastdepCC_TRUE='#'
5363 am__fastdepCC_FALSE=
5367 ac_ext=cpp
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 if test -z "$CXX"; then
5373 if test -n "$CCC"; then
5374 CXX=$CCC
5375 else
5376 if test -n "$ac_tool_prefix"; then
5377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_CXX+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$CXX"; then
5387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 CXX=$ac_cv_prog_CXX
5407 if test -n "$CXX"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5409 $as_echo "$CXX" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$CXX" && break
5417 done
5419 if test -z "$CXX"; then
5420 ac_ct_CXX=$CXX
5421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$ac_ct_CXX"; then
5431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_CXX="$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5446 IFS=$as_save_IFS
5450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5451 if test -n "$ac_ct_CXX"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5453 $as_echo "$ac_ct_CXX" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$ac_ct_CXX" && break
5461 done
5463 if test "x$ac_ct_CXX" = x; then
5464 CXX="g++"
5465 else
5466 case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 CXX=$ac_ct_CXX
5478 # Provide some information about the compiler.
5479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5480 set X $ac_compile
5481 ac_compiler=$2
5482 for ac_option in --version -v -V -qversion; do
5483 { { ac_try="$ac_compiler $ac_option >&5"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5489 $as_echo "$ac_try_echo"; } >&5
5490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5491 ac_status=$?
5492 if test -s conftest.err; then
5493 sed '10a\
5494 ... rest of stderr output deleted ...
5495 10q' conftest.err >conftest.er1
5496 cat conftest.er1 >&5
5498 rm -f conftest.er1 conftest.err
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }
5501 done
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5512 main ()
5514 #ifndef __GNUC__
5515 choke me
5516 #endif
5519 return 0;
5521 _ACEOF
5522 if ac_fn_cxx_try_compile "$LINENO"; then :
5523 ac_compiler_gnu=yes
5524 else
5525 ac_compiler_gnu=no
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5533 if test $ac_compiler_gnu = yes; then
5534 GXX=yes
5535 else
5536 GXX=
5538 ac_test_CXXFLAGS=${CXXFLAGS+set}
5539 ac_save_CXXFLAGS=$CXXFLAGS
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5542 if ${ac_cv_prog_cxx_g+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5546 ac_cxx_werror_flag=yes
5547 ac_cv_prog_cxx_g=no
5548 CXXFLAGS="-g"
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5553 main ()
5557 return 0;
5559 _ACEOF
5560 if ac_fn_cxx_try_compile "$LINENO"; then :
5561 ac_cv_prog_cxx_g=yes
5562 else
5563 CXXFLAGS=""
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5568 main ()
5572 return 0;
5574 _ACEOF
5575 if ac_fn_cxx_try_compile "$LINENO"; then :
5577 else
5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5579 CXXFLAGS="-g"
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5584 main ()
5588 return 0;
5590 _ACEOF
5591 if ac_fn_cxx_try_compile "$LINENO"; then :
5592 ac_cv_prog_cxx_g=yes
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5603 if test "$ac_test_CXXFLAGS" = set; then
5604 CXXFLAGS=$ac_save_CXXFLAGS
5605 elif test $ac_cv_prog_cxx_g = yes; then
5606 if test "$GXX" = yes; then
5607 CXXFLAGS="-g -O2"
5608 else
5609 CXXFLAGS="-g"
5611 else
5612 if test "$GXX" = yes; then
5613 CXXFLAGS="-O2"
5614 else
5615 CXXFLAGS=
5618 ac_ext=c
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 depcc="$CXX" am_compiler_list=
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627 $as_echo_n "checking dependency style of $depcc... " >&6; }
5628 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632 # We make a subdir and do the tests there. Otherwise we can end up
5633 # making bogus files that we don't know about and never remove. For
5634 # instance it was reported that on HP-UX the gcc test will end up
5635 # making a dummy file named 'D' -- because '-MD' means "put the output
5636 # in D".
5637 rm -rf conftest.dir
5638 mkdir conftest.dir
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5642 cd conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5648 # directory.
5649 mkdir sub
5651 am_cv_CXX_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5655 am__universal=false
5656 case " $depcc " in #(
5657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5658 esac
5660 for depmode in $am_compiler_list; do
5661 # Setup a source with many dependencies, because some compilers
5662 # like to wrap large dependency lists on column 80 (with \), and
5663 # we should not choose a depcomp mode which is confused by this.
5665 # We need to recreate these files for each test, as the compiler may
5666 # overwrite some of them when testing with obscure command lines.
5667 # This happens at least with the AIX C compiler.
5668 : > sub/conftest.c
5669 for i in 1 2 3 4 5 6; do
5670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672 # Solaris 10 /bin/sh.
5673 echo '/* dummy */' > sub/conftst$i.h
5674 done
5675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle '-M -o', and we need to detect this. Also, some Intel
5680 # versions had trouble with output in subdirs.
5681 am__obj=sub/conftest.${OBJEXT-o}
5682 am__minus_obj="-o $am__obj"
5683 case $depmode in
5684 gcc)
5685 # This depmode causes a compiler race in universal mode.
5686 test "$am__universal" = false || continue
5688 nosideeffect)
5689 # After this tag, mechanisms are not by side-effect, so they'll
5690 # only be used when explicitly requested.
5691 if test "x$enable_dependency_tracking" = xyes; then
5692 continue
5693 else
5694 break
5697 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698 # This compiler won't grok '-c -o', but also, the minuso test has
5699 # not run yet. These depmodes are late enough in the game, and
5700 # so weak that their functioning should not be impacted.
5701 am__obj=conftest.${OBJEXT-o}
5702 am__minus_obj=
5704 none) break ;;
5705 esac
5706 if depmode=$depmode \
5707 source=sub/conftest.c object=$am__obj \
5708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710 >/dev/null 2>conftest.err &&
5711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715 # icc doesn't choke on unknown options, it will just issue warnings
5716 # or remarks (even with -Werror). So we grep stderr for any message
5717 # that says an option was ignored or not supported.
5718 # When given -MP, icc 7.0 and 7.1 complain thusly:
5719 # icc: Command line warning: ignoring option '-M'; no argument required
5720 # The diagnosis changed in icc 8.0:
5721 # icc: Command line remark: option '-MP' not supported
5722 if (grep 'ignoring option' conftest.err ||
5723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724 am_cv_CXX_dependencies_compiler_type=$depmode
5725 break
5728 done
5730 cd ..
5731 rm -rf conftest.dir
5732 else
5733 am_cv_CXX_dependencies_compiler_type=none
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5738 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5742 test "x$enable_dependency_tracking" != xno \
5743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5744 am__fastdepCXX_TRUE=
5745 am__fastdepCXX_FALSE='#'
5746 else
5747 am__fastdepCXX_TRUE='#'
5748 am__fastdepCXX_FALSE=
5754 if test "x$remember_set_CFLAGS" = "x"
5755 then
5756 if test "$CFLAGS" = "-g -O2"
5757 then
5758 CFLAGS="-O2"
5759 elif test "$CFLAGS" = "-g"
5760 then
5761 CFLAGS=""
5765 if test "x$remember_set_CXXFLAGS" = "x"
5766 then
5767 if test "$CXXFLAGS" = "-g -O2"
5768 then
5769 CXXFLAGS="-O2"
5770 elif test "$CXXFLAGS" = "-g"
5771 then
5772 CXXFLAGS=""
5776 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5777 # Check for that case, and just disable c++ code if g++ doesn't run.
5778 ac_ext=cpp
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5789 main ()
5793 return 0;
5795 _ACEOF
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5798 else
5799 CXX=""; CXXCP=""; CXXFLAGS=""
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 ac_ext=c
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809 # Check for a 64-bit integer type
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5816 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5817 # On Suns, sometimes $CPP names a directory.
5818 if test -n "$CPP" && test -d "$CPP"; then
5819 CPP=
5821 if test -z "$CPP"; then
5822 if ${ac_cv_prog_CPP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5828 ac_preproc_ok=false
5829 for ac_c_preproc_warn_flag in '' yes
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #ifdef __STDC__
5840 # include <limits.h>
5841 #else
5842 # include <assert.h>
5843 #endif
5844 Syntax error
5845 _ACEOF
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5848 else
5849 # Broken: fails on valid input.
5850 continue
5852 rm -f conftest.err conftest.i conftest.$ac_ext
5854 # OK, works on sane cases. Now check whether nonexistent headers
5855 # can be detected and how.
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <ac_nonexistent.h>
5859 _ACEOF
5860 if ac_fn_c_try_cpp "$LINENO"; then :
5861 # Broken: success on invalid input.
5862 continue
5863 else
5864 # Passes both tests.
5865 ac_preproc_ok=:
5866 break
5868 rm -f conftest.err conftest.i conftest.$ac_ext
5870 done
5871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872 rm -f conftest.i conftest.err conftest.$ac_ext
5873 if $ac_preproc_ok; then :
5874 break
5877 done
5878 ac_cv_prog_CPP=$CPP
5881 CPP=$ac_cv_prog_CPP
5882 else
5883 ac_cv_prog_CPP=$CPP
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5886 $as_echo "$CPP" >&6; }
5887 ac_preproc_ok=false
5888 for ac_c_preproc_warn_flag in '' yes
5890 # Use a header file that comes with gcc, so configuring glibc
5891 # with a fresh cross-compiler works.
5892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 # <limits.h> exists even on freestanding compilers.
5894 # On the NeXT, cc -E runs the code through the compiler's parser,
5895 # not just through cpp. "Syntax error" is here to catch this case.
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903 Syntax error
5904 _ACEOF
5905 if ac_fn_c_try_cpp "$LINENO"; then :
5907 else
5908 # Broken: fails on valid input.
5909 continue
5911 rm -f conftest.err conftest.i conftest.$ac_ext
5913 # OK, works on sane cases. Now check whether nonexistent headers
5914 # can be detected and how.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <ac_nonexistent.h>
5918 _ACEOF
5919 if ac_fn_c_try_cpp "$LINENO"; then :
5920 # Broken: success on invalid input.
5921 continue
5922 else
5923 # Passes both tests.
5924 ac_preproc_ok=:
5925 break
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5929 done
5930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5931 rm -f conftest.i conftest.err conftest.$ac_ext
5932 if $ac_preproc_ok; then :
5934 else
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5938 See \`config.log' for more details" "$LINENO" 5; }
5941 ac_ext=c
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5949 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5950 if ${ac_cv_path_GREP+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -z "$GREP"; then
5954 ac_path_GREP_found=false
5955 # Loop through the user's path and test for each of PROGNAME-LIST
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_prog in grep ggrep; do
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5964 as_fn_executable_p "$ac_path_GREP" || continue
5965 # Check for GNU ac_path_GREP and select it if it is found.
5966 # Check for GNU $ac_path_GREP
5967 case `"$ac_path_GREP" --version 2>&1` in
5968 *GNU*)
5969 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5971 ac_count=0
5972 $as_echo_n 0123456789 >"conftest.in"
5973 while :
5975 cat "conftest.in" "conftest.in" >"conftest.tmp"
5976 mv "conftest.tmp" "conftest.in"
5977 cp "conftest.in" "conftest.nl"
5978 $as_echo 'GREP' >> "conftest.nl"
5979 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5981 as_fn_arith $ac_count + 1 && ac_count=$as_val
5982 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5983 # Best one so far, save it but keep looking for a better one
5984 ac_cv_path_GREP="$ac_path_GREP"
5985 ac_path_GREP_max=$ac_count
5987 # 10*(2^10) chars as input seems more than enough
5988 test $ac_count -gt 10 && break
5989 done
5990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5991 esac
5993 $ac_path_GREP_found && break 3
5994 done
5995 done
5996 done
5997 IFS=$as_save_IFS
5998 if test -z "$ac_cv_path_GREP"; then
5999 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6001 else
6002 ac_cv_path_GREP=$GREP
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6007 $as_echo "$ac_cv_path_GREP" >&6; }
6008 GREP="$ac_cv_path_GREP"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6012 $as_echo_n "checking for egrep... " >&6; }
6013 if ${ac_cv_path_EGREP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6017 then ac_cv_path_EGREP="$GREP -E"
6018 else
6019 if test -z "$EGREP"; then
6020 ac_path_EGREP_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_prog in egrep; do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p "$ac_path_EGREP" || continue
6031 # Check for GNU ac_path_EGREP and select it if it is found.
6032 # Check for GNU $ac_path_EGREP
6033 case `"$ac_path_EGREP" --version 2>&1` in
6034 *GNU*)
6035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6037 ac_count=0
6038 $as_echo_n 0123456789 >"conftest.in"
6039 while :
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo 'EGREP' >> "conftest.nl"
6045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_EGREP="$ac_path_EGREP"
6051 ac_path_EGREP_max=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6055 done
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 esac
6059 $ac_path_EGREP_found && break 3
6060 done
6061 done
6062 done
6063 IFS=$as_save_IFS
6064 if test -z "$ac_cv_path_EGREP"; then
6065 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6067 else
6068 ac_cv_path_EGREP=$EGREP
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6074 $as_echo "$ac_cv_path_EGREP" >&6; }
6075 EGREP="$ac_cv_path_EGREP"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6079 $as_echo_n "checking for ANSI C header files... " >&6; }
6080 if ${ac_cv_header_stdc+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <stdlib.h>
6086 #include <stdarg.h>
6087 #include <string.h>
6088 #include <float.h>
6091 main ()
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_header_stdc=yes
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 if test $ac_cv_header_stdc = yes; then
6106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <string.h>
6111 _ACEOF
6112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "memchr" >/dev/null 2>&1; then :
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f conftest*
6122 if test $ac_cv_header_stdc = yes; then
6123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <stdlib.h>
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev/null 2>&1; then :
6132 else
6133 ac_cv_header_stdc=no
6135 rm -f conftest*
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then :
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include <ctype.h>
6147 #include <stdlib.h>
6148 #if ((' ' & 0x0FF) == 0x020)
6149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6151 #else
6152 # define ISLOWER(c) \
6153 (('a' <= (c) && (c) <= 'i') \
6154 || ('j' <= (c) && (c) <= 'r') \
6155 || ('s' <= (c) && (c) <= 'z'))
6156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6157 #endif
6159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6161 main ()
6163 int i;
6164 for (i = 0; i < 256; i++)
6165 if (XOR (islower (i), ISLOWER (i))
6166 || toupper (i) != TOUPPER (i))
6167 return 2;
6168 return 0;
6170 _ACEOF
6171 if ac_fn_c_try_run "$LINENO"; then :
6173 else
6174 ac_cv_header_stdc=no
6176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6177 conftest.$ac_objext conftest.beam conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6183 $as_echo "$ac_cv_header_stdc" >&6; }
6184 if test $ac_cv_header_stdc = yes; then
6186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6192 inttypes.h stdint.h unistd.h
6193 do :
6194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6200 _ACEOF
6204 done
6207 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6208 case $ac_cv_c_int64_t in #(
6209 no|yes) ;; #(
6212 cat >>confdefs.h <<_ACEOF
6213 #define int64_t $ac_cv_c_int64_t
6214 _ACEOF
6216 esac
6220 # Make sure we can run config.sub.
6221 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6222 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6225 $as_echo_n "checking build system type... " >&6; }
6226 if ${ac_cv_build+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 ac_build_alias=$build_alias
6230 test "x$ac_build_alias" = x &&
6231 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6232 test "x$ac_build_alias" = x &&
6233 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6234 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6239 $as_echo "$ac_cv_build" >&6; }
6240 case $ac_cv_build in
6241 *-*-*) ;;
6242 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6243 esac
6244 build=$ac_cv_build
6245 ac_save_IFS=$IFS; IFS='-'
6246 set x $ac_cv_build
6247 shift
6248 build_cpu=$1
6249 build_vendor=$2
6250 shift; shift
6251 # Remember, the first character of IFS is used to create $*,
6252 # except with old shells:
6253 build_os=$*
6254 IFS=$ac_save_IFS
6255 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6259 $as_echo_n "checking host system type... " >&6; }
6260 if ${ac_cv_host+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test "x$host_alias" = x; then
6264 ac_cv_host=$ac_cv_build
6265 else
6266 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6267 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6272 $as_echo "$ac_cv_host" >&6; }
6273 case $ac_cv_host in
6274 *-*-*) ;;
6275 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6276 esac
6277 host=$ac_cv_host
6278 ac_save_IFS=$IFS; IFS='-'
6279 set x $ac_cv_host
6280 shift
6281 host_cpu=$1
6282 host_vendor=$2
6283 shift; shift
6284 # Remember, the first character of IFS is used to create $*,
6285 # except with old shells:
6286 host_os=$*
6287 IFS=$ac_save_IFS
6288 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6291 enable_win32_dll=yes
6293 case $host in
6294 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}as; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_AS+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$AS"; then
6304 ac_cv_prog_AS="$AS" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_AS="${ac_tool_prefix}as"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6317 done
6318 done
6319 IFS=$as_save_IFS
6323 AS=$ac_cv_prog_AS
6324 if test -n "$AS"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6326 $as_echo "$AS" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_AS"; then
6335 ac_ct_AS=$AS
6336 # Extract the first word of "as", so it can be a program name with args.
6337 set dummy as; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$ac_ct_AS"; then
6344 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_AS="as"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6364 if test -n "$ac_ct_AS"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6366 $as_echo "$ac_ct_AS" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_AS" = x; then
6373 AS="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 AS=$ac_ct_AS
6383 else
6384 AS="$ac_cv_prog_AS"
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_DLLTOOL+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$DLLTOOL"; then
6396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6411 IFS=$as_save_IFS
6415 DLLTOOL=$ac_cv_prog_DLLTOOL
6416 if test -n "$DLLTOOL"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6418 $as_echo "$DLLTOOL" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_DLLTOOL"; then
6427 ac_ct_DLLTOOL=$DLLTOOL
6428 # Extract the first word of "dlltool", so it can be a program name with args.
6429 set dummy dlltool; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_DLLTOOL"; then
6436 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6456 if test -n "$ac_ct_DLLTOOL"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6458 $as_echo "$ac_ct_DLLTOOL" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_DLLTOOL" = x; then
6465 DLLTOOL="false"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 DLLTOOL=$ac_ct_DLLTOOL
6475 else
6476 DLLTOOL="$ac_cv_prog_DLLTOOL"
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_OBJDUMP+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test -n "$OBJDUMP"; then
6488 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6501 done
6502 done
6503 IFS=$as_save_IFS
6507 OBJDUMP=$ac_cv_prog_OBJDUMP
6508 if test -n "$OBJDUMP"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6510 $as_echo "$OBJDUMP" >&6; }
6511 else
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6518 if test -z "$ac_cv_prog_OBJDUMP"; then
6519 ac_ct_OBJDUMP=$OBJDUMP
6520 # Extract the first word of "objdump", so it can be a program name with args.
6521 set dummy objdump; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$ac_ct_OBJDUMP"; then
6528 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6541 done
6542 done
6543 IFS=$as_save_IFS
6547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6548 if test -n "$ac_ct_OBJDUMP"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6550 $as_echo "$ac_ct_OBJDUMP" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6556 if test "x$ac_ct_OBJDUMP" = x; then
6557 OBJDUMP="false"
6558 else
6559 case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565 OBJDUMP=$ac_ct_OBJDUMP
6567 else
6568 OBJDUMP="$ac_cv_prog_OBJDUMP"
6572 esac
6574 test -z "$AS" && AS=as
6580 test -z "$DLLTOOL" && DLLTOOL=dlltool
6586 test -z "$OBJDUMP" && OBJDUMP=objdump
6594 case `pwd` in
6595 *\ * | *\ *)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6598 esac
6602 macro_version='2.4.2'
6603 macro_revision='1.3337'
6617 ltmain="$ac_aux_dir/ltmain.sh"
6619 # Backslashify metacharacters that are still active within
6620 # double-quoted strings.
6621 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6623 # Same as above, but do not quote variable references.
6624 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6626 # Sed substitution to delay expansion of an escaped shell variable in a
6627 # double_quote_subst'ed string.
6628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6630 # Sed substitution to delay expansion of an escaped single quote.
6631 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6633 # Sed substitution to avoid accidental globbing in evaled expressions
6634 no_glob_subst='s/\*/\\\*/g'
6636 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6638 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6641 $as_echo_n "checking how to print strings... " >&6; }
6642 # Test print first, because it will be a builtin if present.
6643 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6645 ECHO='print -r --'
6646 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6647 ECHO='printf %s\n'
6648 else
6649 # Use this function as a fallback that always works.
6650 func_fallback_echo ()
6652 eval 'cat <<_LTECHO_EOF
6654 _LTECHO_EOF'
6656 ECHO='func_fallback_echo'
6659 # func_echo_all arg...
6660 # Invoke $ECHO with all args, space-separated.
6661 func_echo_all ()
6663 $ECHO ""
6666 case "$ECHO" in
6667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6668 $as_echo "printf" >&6; } ;;
6669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6670 $as_echo "print -r" >&6; } ;;
6671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6672 $as_echo "cat" >&6; } ;;
6673 esac
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6689 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6690 if ${ac_cv_path_SED+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6694 for ac_i in 1 2 3 4 5 6 7; do
6695 ac_script="$ac_script$as_nl$ac_script"
6696 done
6697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6698 { ac_script=; unset ac_script;}
6699 if test -z "$SED"; then
6700 ac_path_SED_found=false
6701 # Loop through the user's path and test for each of PROGNAME-LIST
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_prog in sed gsed; do
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6710 as_fn_executable_p "$ac_path_SED" || continue
6711 # Check for GNU ac_path_SED and select it if it is found.
6712 # Check for GNU $ac_path_SED
6713 case `"$ac_path_SED" --version 2>&1` in
6714 *GNU*)
6715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6717 ac_count=0
6718 $as_echo_n 0123456789 >"conftest.in"
6719 while :
6721 cat "conftest.in" "conftest.in" >"conftest.tmp"
6722 mv "conftest.tmp" "conftest.in"
6723 cp "conftest.in" "conftest.nl"
6724 $as_echo '' >> "conftest.nl"
6725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6727 as_fn_arith $ac_count + 1 && ac_count=$as_val
6728 if test $ac_count -gt ${ac_path_SED_max-0}; then
6729 # Best one so far, save it but keep looking for a better one
6730 ac_cv_path_SED="$ac_path_SED"
6731 ac_path_SED_max=$ac_count
6733 # 10*(2^10) chars as input seems more than enough
6734 test $ac_count -gt 10 && break
6735 done
6736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6737 esac
6739 $ac_path_SED_found && break 3
6740 done
6741 done
6742 done
6743 IFS=$as_save_IFS
6744 if test -z "$ac_cv_path_SED"; then
6745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6747 else
6748 ac_cv_path_SED=$SED
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6753 $as_echo "$ac_cv_path_SED" >&6; }
6754 SED="$ac_cv_path_SED"
6755 rm -f conftest.sed
6757 test -z "$SED" && SED=sed
6758 Xsed="$SED -e 1s/^X//"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6771 $as_echo_n "checking for fgrep... " >&6; }
6772 if ${ac_cv_path_FGREP+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6776 then ac_cv_path_FGREP="$GREP -F"
6777 else
6778 if test -z "$FGREP"; then
6779 ac_path_FGREP_found=false
6780 # Loop through the user's path and test for each of PROGNAME-LIST
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_prog in fgrep; do
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6789 as_fn_executable_p "$ac_path_FGREP" || continue
6790 # Check for GNU ac_path_FGREP and select it if it is found.
6791 # Check for GNU $ac_path_FGREP
6792 case `"$ac_path_FGREP" --version 2>&1` in
6793 *GNU*)
6794 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6796 ac_count=0
6797 $as_echo_n 0123456789 >"conftest.in"
6798 while :
6800 cat "conftest.in" "conftest.in" >"conftest.tmp"
6801 mv "conftest.tmp" "conftest.in"
6802 cp "conftest.in" "conftest.nl"
6803 $as_echo 'FGREP' >> "conftest.nl"
6804 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6806 as_fn_arith $ac_count + 1 && ac_count=$as_val
6807 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6808 # Best one so far, save it but keep looking for a better one
6809 ac_cv_path_FGREP="$ac_path_FGREP"
6810 ac_path_FGREP_max=$ac_count
6812 # 10*(2^10) chars as input seems more than enough
6813 test $ac_count -gt 10 && break
6814 done
6815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6816 esac
6818 $ac_path_FGREP_found && break 3
6819 done
6820 done
6821 done
6822 IFS=$as_save_IFS
6823 if test -z "$ac_cv_path_FGREP"; then
6824 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6826 else
6827 ac_cv_path_FGREP=$FGREP
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6833 $as_echo "$ac_cv_path_FGREP" >&6; }
6834 FGREP="$ac_cv_path_FGREP"
6837 test -z "$GREP" && GREP=grep
6857 # Check whether --with-gnu-ld was given.
6858 if test "${with_gnu_ld+set}" = set; then :
6859 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6860 else
6861 with_gnu_ld=no
6864 ac_prog=ld
6865 if test "$GCC" = yes; then
6866 # Check if gcc -print-prog-name=ld gives a path.
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6868 $as_echo_n "checking for ld used by $CC... " >&6; }
6869 case $host in
6870 *-*-mingw*)
6871 # gcc leaves a trailing carriage return which upsets mingw
6872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6875 esac
6876 case $ac_prog in
6877 # Accept absolute paths.
6878 [\\/]* | ?:[\\/]*)
6879 re_direlt='/[^/][^/]*/\.\./'
6880 # Canonicalize the pathname of ld
6881 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6882 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6883 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6884 done
6885 test -z "$LD" && LD="$ac_prog"
6888 # If it fails, then pretend we aren't using GCC.
6889 ac_prog=ld
6892 # If it is relative, then search for the first ld in PATH.
6893 with_gnu_ld=unknown
6895 esac
6896 elif test "$with_gnu_ld" = yes; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6898 $as_echo_n "checking for GNU ld... " >&6; }
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6901 $as_echo_n "checking for non-GNU ld... " >&6; }
6903 if ${lt_cv_path_LD+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -z "$LD"; then
6907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908 for ac_dir in $PATH; do
6909 IFS="$lt_save_ifs"
6910 test -z "$ac_dir" && ac_dir=.
6911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6912 lt_cv_path_LD="$ac_dir/$ac_prog"
6913 # Check to see if the program is GNU ld. I'd rather use --version,
6914 # but apparently some variants of GNU ld only accept -v.
6915 # Break only if it was the GNU/non-GNU ld that we prefer.
6916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6917 *GNU* | *'with BFD'*)
6918 test "$with_gnu_ld" != no && break
6921 test "$with_gnu_ld" != yes && break
6923 esac
6925 done
6926 IFS="$lt_save_ifs"
6927 else
6928 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6932 LD="$lt_cv_path_LD"
6933 if test -n "$LD"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6935 $as_echo "$LD" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6940 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6942 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6943 if ${lt_cv_prog_gnu_ld+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6947 case `$LD -v 2>&1 </dev/null` in
6948 *GNU* | *'with BFD'*)
6949 lt_cv_prog_gnu_ld=yes
6952 lt_cv_prog_gnu_ld=no
6954 esac
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6957 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6958 with_gnu_ld=$lt_cv_prog_gnu_ld
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6969 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6970 if ${lt_cv_path_NM+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$NM"; then
6974 # Let the user override the test.
6975 lt_cv_path_NM="$NM"
6976 else
6977 lt_nm_to_check="${ac_tool_prefix}nm"
6978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6979 lt_nm_to_check="$lt_nm_to_check nm"
6981 for lt_tmp_nm in $lt_nm_to_check; do
6982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6984 IFS="$lt_save_ifs"
6985 test -z "$ac_dir" && ac_dir=.
6986 tmp_nm="$ac_dir/$lt_tmp_nm"
6987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6988 # Check to see if the nm accepts a BSD-compat flag.
6989 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6990 # nm: unknown option "B" ignored
6991 # Tru64's nm complains that /dev/null is an invalid object file
6992 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6993 */dev/null* | *'Invalid file or object type'*)
6994 lt_cv_path_NM="$tmp_nm -B"
6995 break
6998 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6999 */dev/null*)
7000 lt_cv_path_NM="$tmp_nm -p"
7001 break
7004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7005 continue # so that we can try to find one that supports BSD flags
7007 esac
7009 esac
7011 done
7012 IFS="$lt_save_ifs"
7013 done
7014 : ${lt_cv_path_NM=no}
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7018 $as_echo "$lt_cv_path_NM" >&6; }
7019 if test "$lt_cv_path_NM" != "no"; then
7020 NM="$lt_cv_path_NM"
7021 else
7022 # Didn't find any BSD compatible name lister, look for dumpbin.
7023 if test -n "$DUMPBIN"; then :
7024 # Let the user override the test.
7025 else
7026 if test -n "$ac_tool_prefix"; then
7027 for ac_prog in dumpbin "link -dump"
7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DUMPBIN+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$DUMPBIN"; then
7037 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 DUMPBIN=$ac_cv_prog_DUMPBIN
7057 if test -n "$DUMPBIN"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7059 $as_echo "$DUMPBIN" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 test -n "$DUMPBIN" && break
7067 done
7069 if test -z "$DUMPBIN"; then
7070 ac_ct_DUMPBIN=$DUMPBIN
7071 for ac_prog in dumpbin "link -dump"
7073 # Extract the first word of "$ac_prog", so it can be a program name with args.
7074 set dummy $ac_prog; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$ac_ct_DUMPBIN"; then
7081 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7094 done
7095 done
7096 IFS=$as_save_IFS
7100 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7101 if test -n "$ac_ct_DUMPBIN"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7103 $as_echo "$ac_ct_DUMPBIN" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7110 test -n "$ac_ct_DUMPBIN" && break
7111 done
7113 if test "x$ac_ct_DUMPBIN" = x; then
7114 DUMPBIN=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 DUMPBIN=$ac_ct_DUMPBIN
7126 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7127 *COFF*)
7128 DUMPBIN="$DUMPBIN -symbols"
7131 DUMPBIN=:
7133 esac
7136 if test "$DUMPBIN" != ":"; then
7137 NM="$DUMPBIN"
7140 test -z "$NM" && NM=nm
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7148 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7149 if ${lt_cv_nm_interface+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 lt_cv_nm_interface="BSD nm"
7153 echo "int some_variable = 0;" > conftest.$ac_ext
7154 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7155 (eval "$ac_compile" 2>conftest.err)
7156 cat conftest.err >&5
7157 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7158 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7159 cat conftest.err >&5
7160 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7161 cat conftest.out >&5
7162 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7163 lt_cv_nm_interface="MS dumpbin"
7165 rm -f conftest*
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7168 $as_echo "$lt_cv_nm_interface" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171 $as_echo_n "checking whether ln -s works... " >&6; }
7172 LN_S=$as_ln_s
7173 if test "$LN_S" = "ln -s"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178 $as_echo "no, using $LN_S" >&6; }
7181 # find the maximum length of command line arguments
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7183 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7184 if ${lt_cv_sys_max_cmd_len+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7188 teststring="ABCD"
7190 case $build_os in
7191 msdosdjgpp*)
7192 # On DJGPP, this test can blow up pretty badly due to problems in libc
7193 # (any single argument exceeding 2000 bytes causes a buffer overrun
7194 # during glob expansion). Even if it were fixed, the result of this
7195 # check would be larger than it should be.
7196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7199 gnu*)
7200 # Under GNU Hurd, this test is not required because there is
7201 # no limit to the length of command line arguments.
7202 # Libtool will interpret -1 as no limit whatsoever
7203 lt_cv_sys_max_cmd_len=-1;
7206 cygwin* | mingw* | cegcc*)
7207 # On Win9x/ME, this test blows up -- it succeeds, but takes
7208 # about 5 minutes as the teststring grows exponentially.
7209 # Worse, since 9x/ME are not pre-emptively multitasking,
7210 # you end up with a "frozen" computer, even though with patience
7211 # the test eventually succeeds (with a max line length of 256k).
7212 # Instead, let's just punt: use the minimum linelength reported by
7213 # all of the supported platforms: 8192 (on NT/2K/XP).
7214 lt_cv_sys_max_cmd_len=8192;
7217 mint*)
7218 # On MiNT this can take a long time and run out of memory.
7219 lt_cv_sys_max_cmd_len=8192;
7222 amigaos*)
7223 # On AmigaOS with pdksh, this test takes hours, literally.
7224 # So we just punt and use a minimum line length of 8192.
7225 lt_cv_sys_max_cmd_len=8192;
7228 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7229 # This has been around since 386BSD, at least. Likely further.
7230 if test -x /sbin/sysctl; then
7231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7232 elif test -x /usr/sbin/sysctl; then
7233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7234 else
7235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7237 # And add a safety zone
7238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7242 interix*)
7243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7244 lt_cv_sys_max_cmd_len=196608
7247 os2*)
7248 # The test takes a long time on OS/2.
7249 lt_cv_sys_max_cmd_len=8192
7252 osf*)
7253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7255 # nice to cause kernel panics so lets avoid the loop below.
7256 # First set a reasonable default.
7257 lt_cv_sys_max_cmd_len=16384
7259 if test -x /sbin/sysconfig; then
7260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7261 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7262 esac
7265 sco3.2v5*)
7266 lt_cv_sys_max_cmd_len=102400
7268 sysv5* | sco5v6* | sysv4.2uw2*)
7269 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7270 if test -n "$kargmax"; then
7271 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7272 else
7273 lt_cv_sys_max_cmd_len=32768
7277 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7278 if test -n "$lt_cv_sys_max_cmd_len" && \
7279 test undefined != "$lt_cv_sys_max_cmd_len"; then
7280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7282 else
7283 # Make teststring a little bigger before we do anything with it.
7284 # a 1K string should be a reasonable start.
7285 for i in 1 2 3 4 5 6 7 8 ; do
7286 teststring=$teststring$teststring
7287 done
7288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7289 # If test is not a shell built-in, we'll probably end up computing a
7290 # maximum length that is only half of the actual maximum length, but
7291 # we can't tell.
7292 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7293 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7294 test $i != 17 # 1/2 MB should be enough
7296 i=`expr $i + 1`
7297 teststring=$teststring$teststring
7298 done
7299 # Only check the string length outside the loop.
7300 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7301 teststring=
7302 # Add a significant safety factor because C++ compilers can tack on
7303 # massive amounts of additional arguments before passing them to the
7304 # linker. It appears as though 1/2 is a usable value.
7305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7308 esac
7312 if test -n $lt_cv_sys_max_cmd_len ; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7317 $as_echo "none" >&6; }
7319 max_cmd_len=$lt_cv_sys_max_cmd_len
7326 : ${CP="cp -f"}
7327 : ${MV="mv -f"}
7328 : ${RM="rm -f"}
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7332 # Try some XSI features
7333 xsi_shell=no
7334 ( _lt_dummy="a/b/c"
7335 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7336 = c,a/b,b/c, \
7337 && eval 'test $(( 1 + 1 )) -eq 2 \
7338 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7339 && xsi_shell=yes
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7341 $as_echo "$xsi_shell" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7345 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7346 lt_shell_append=no
7347 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7348 >/dev/null 2>&1 \
7349 && lt_shell_append=yes
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7351 $as_echo "$lt_shell_append" >&6; }
7354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7355 lt_unset=unset
7356 else
7357 lt_unset=false
7364 # test EBCDIC or ASCII
7365 case `echo X|tr X '\101'` in
7366 A) # ASCII based system
7367 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7368 lt_SP2NL='tr \040 \012'
7369 lt_NL2SP='tr \015\012 \040\040'
7371 *) # EBCDIC based system
7372 lt_SP2NL='tr \100 \n'
7373 lt_NL2SP='tr \r\n \100\100'
7375 esac
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7386 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7387 if ${lt_cv_to_host_file_cmd+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 case $host in
7391 *-*-mingw* )
7392 case $build in
7393 *-*-mingw* ) # actually msys
7394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7396 *-*-cygwin* )
7397 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7399 * ) # otherwise, assume *nix
7400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7402 esac
7404 *-*-cygwin* )
7405 case $build in
7406 *-*-mingw* ) # actually msys
7407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7409 *-*-cygwin* )
7410 lt_cv_to_host_file_cmd=func_convert_file_noop
7412 * ) # otherwise, assume *nix
7413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7415 esac
7417 * ) # unhandled hosts (and "normal" native builds)
7418 lt_cv_to_host_file_cmd=func_convert_file_noop
7420 esac
7424 to_host_file_cmd=$lt_cv_to_host_file_cmd
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7426 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7433 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7434 if ${lt_cv_to_tool_file_cmd+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 #assume ordinary cross tools, or native build.
7438 lt_cv_to_tool_file_cmd=func_convert_file_noop
7439 case $host in
7440 *-*-mingw* )
7441 case $build in
7442 *-*-mingw* ) # actually msys
7443 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7445 esac
7447 esac
7451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7453 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7460 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7461 if ${lt_cv_ld_reload_flag+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 lt_cv_ld_reload_flag='-r'
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7468 reload_flag=$lt_cv_ld_reload_flag
7469 case $reload_flag in
7470 "" | " "*) ;;
7471 *) reload_flag=" $reload_flag" ;;
7472 esac
7473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7474 case $host_os in
7475 cygwin* | mingw* | pw32* | cegcc*)
7476 if test "$GCC" != yes; then
7477 reload_cmds=false
7480 darwin*)
7481 if test "$GCC" = yes; then
7482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7483 else
7484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7487 esac
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_OBJDUMP+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test -n "$OBJDUMP"; then
7506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7525 OBJDUMP=$ac_cv_prog_OBJDUMP
7526 if test -n "$OBJDUMP"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7528 $as_echo "$OBJDUMP" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7536 if test -z "$ac_cv_prog_OBJDUMP"; then
7537 ac_ct_OBJDUMP=$OBJDUMP
7538 # Extract the first word of "objdump", so it can be a program name with args.
7539 set dummy objdump; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$ac_ct_OBJDUMP"; then
7546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7559 done
7560 done
7561 IFS=$as_save_IFS
7565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7566 if test -n "$ac_ct_OBJDUMP"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7568 $as_echo "$ac_ct_OBJDUMP" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7574 if test "x$ac_ct_OBJDUMP" = x; then
7575 OBJDUMP="false"
7576 else
7577 case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583 OBJDUMP=$ac_ct_OBJDUMP
7585 else
7586 OBJDUMP="$ac_cv_prog_OBJDUMP"
7589 test -z "$OBJDUMP" && OBJDUMP=objdump
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7597 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7598 if ${lt_cv_deplibs_check_method+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 lt_cv_file_magic_cmd='$MAGIC_CMD'
7602 lt_cv_file_magic_test_file=
7603 lt_cv_deplibs_check_method='unknown'
7604 # Need to set the preceding variable on all platforms that support
7605 # interlibrary dependencies.
7606 # 'none' -- dependencies not supported.
7607 # `unknown' -- same as none, but documents that we really don't know.
7608 # 'pass_all' -- all dependencies passed with no checks.
7609 # 'test_compile' -- check by making test program.
7610 # 'file_magic [[regex]]' -- check by looking for files in library path
7611 # which responds to the $file_magic_cmd with a given extended regex.
7612 # If you have `file' or equivalent on your system and you're not sure
7613 # whether `pass_all' will *always* work, you probably want this one.
7615 case $host_os in
7616 aix[4-9]*)
7617 lt_cv_deplibs_check_method=pass_all
7620 beos*)
7621 lt_cv_deplibs_check_method=pass_all
7624 bsdi[45]*)
7625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7626 lt_cv_file_magic_cmd='/usr/bin/file -L'
7627 lt_cv_file_magic_test_file=/shlib/libc.so
7630 cygwin*)
7631 # func_win32_libid is a shell function defined in ltmain.sh
7632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7633 lt_cv_file_magic_cmd='func_win32_libid'
7636 mingw* | pw32*)
7637 # Base MSYS/MinGW do not provide the 'file' command needed by
7638 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7639 # unless we find 'file', for example because we are cross-compiling.
7640 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7641 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7643 lt_cv_file_magic_cmd='func_win32_libid'
7644 else
7645 # Keep this pattern in sync with the one in func_win32_libid.
7646 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7647 lt_cv_file_magic_cmd='$OBJDUMP -f'
7651 cegcc*)
7652 # use the weaker test based on 'objdump'. See mingw*.
7653 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7654 lt_cv_file_magic_cmd='$OBJDUMP -f'
7657 darwin* | rhapsody*)
7658 lt_cv_deplibs_check_method=pass_all
7661 freebsd* | dragonfly*)
7662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7663 case $host_cpu in
7664 i*86 )
7665 # Not sure whether the presence of OpenBSD here was a mistake.
7666 # Let's accept both of them until this is cleared up.
7667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7668 lt_cv_file_magic_cmd=/usr/bin/file
7669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7671 esac
7672 else
7673 lt_cv_deplibs_check_method=pass_all
7677 haiku*)
7678 lt_cv_deplibs_check_method=pass_all
7681 hpux10.20* | hpux11*)
7682 lt_cv_file_magic_cmd=/usr/bin/file
7683 case $host_cpu in
7684 ia64*)
7685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7688 hppa*64*)
7689 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]'
7690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7696 esac
7699 interix[3-9]*)
7700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7704 irix5* | irix6* | nonstopux*)
7705 case $LD in
7706 *-32|*"-32 ") libmagic=32-bit;;
7707 *-n32|*"-n32 ") libmagic=N32;;
7708 *-64|*"-64 ") libmagic=64-bit;;
7709 *) libmagic=never-match;;
7710 esac
7711 lt_cv_deplibs_check_method=pass_all
7714 # This must be glibc/ELF.
7715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7716 lt_cv_deplibs_check_method=pass_all
7719 netbsd* | netbsdelf*-gnu)
7720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7722 else
7723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7727 newos6*)
7728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7729 lt_cv_file_magic_cmd=/usr/bin/file
7730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7733 *nto* | *qnx*)
7734 lt_cv_deplibs_check_method=pass_all
7737 openbsd*)
7738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7740 else
7741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7745 osf3* | osf4* | osf5*)
7746 lt_cv_deplibs_check_method=pass_all
7749 rdos*)
7750 lt_cv_deplibs_check_method=pass_all
7753 solaris*)
7754 lt_cv_deplibs_check_method=pass_all
7757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7758 lt_cv_deplibs_check_method=pass_all
7761 sysv4 | sysv4.3*)
7762 case $host_vendor in
7763 motorola)
7764 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]'
7765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7767 ncr)
7768 lt_cv_deplibs_check_method=pass_all
7770 sequent)
7771 lt_cv_file_magic_cmd='/bin/file'
7772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7774 sni)
7775 lt_cv_file_magic_cmd='/bin/file'
7776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7777 lt_cv_file_magic_test_file=/lib/libc.so
7779 siemens)
7780 lt_cv_deplibs_check_method=pass_all
7783 lt_cv_deplibs_check_method=pass_all
7785 esac
7788 tpf*)
7789 lt_cv_deplibs_check_method=pass_all
7791 esac
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7795 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7797 file_magic_glob=
7798 want_nocaseglob=no
7799 if test "$build" = "$host"; then
7800 case $host_os in
7801 mingw* | pw32*)
7802 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7803 want_nocaseglob=yes
7804 else
7805 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7808 esac
7811 file_magic_cmd=$lt_cv_file_magic_cmd
7812 deplibs_check_method=$lt_cv_deplibs_check_method
7813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_DLLTOOL+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 if test -n "$DLLTOOL"; then
7845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7858 done
7859 done
7860 IFS=$as_save_IFS
7864 DLLTOOL=$ac_cv_prog_DLLTOOL
7865 if test -n "$DLLTOOL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7867 $as_echo "$DLLTOOL" >&6; }
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7875 if test -z "$ac_cv_prog_DLLTOOL"; then
7876 ac_ct_DLLTOOL=$DLLTOOL
7877 # Extract the first word of "dlltool", so it can be a program name with args.
7878 set dummy dlltool; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$ac_ct_DLLTOOL"; then
7885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7900 IFS=$as_save_IFS
7904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7905 if test -n "$ac_ct_DLLTOOL"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7907 $as_echo "$ac_ct_DLLTOOL" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7913 if test "x$ac_ct_DLLTOOL" = x; then
7914 DLLTOOL="false"
7915 else
7916 case $cross_compiling:$ac_tool_warned in
7917 yes:)
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920 ac_tool_warned=yes ;;
7921 esac
7922 DLLTOOL=$ac_ct_DLLTOOL
7924 else
7925 DLLTOOL="$ac_cv_prog_DLLTOOL"
7928 test -z "$DLLTOOL" && DLLTOOL=dlltool
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7937 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7938 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 lt_cv_sharedlib_from_linklib_cmd='unknown'
7943 case $host_os in
7944 cygwin* | mingw* | pw32* | cegcc*)
7945 # two different shell functions defined in ltmain.sh
7946 # decide which to use based on capabilities of $DLLTOOL
7947 case `$DLLTOOL --help 2>&1` in
7948 *--identify-strict*)
7949 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7952 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7954 esac
7957 # fallback: assume linklib IS sharedlib
7958 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7960 esac
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7964 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7965 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7966 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7974 if test -n "$ac_tool_prefix"; then
7975 for ac_prog in ar
7977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_AR+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$AR"; then
7985 ac_cv_prog_AR="$AR" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8004 AR=$ac_cv_prog_AR
8005 if test -n "$AR"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8007 $as_echo "$AR" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8014 test -n "$AR" && break
8015 done
8017 if test -z "$AR"; then
8018 ac_ct_AR=$AR
8019 for ac_prog in ar
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$ac_ct_AR"; then
8029 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_AR="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8042 done
8043 done
8044 IFS=$as_save_IFS
8048 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8049 if test -n "$ac_ct_AR"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8051 $as_echo "$ac_ct_AR" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8058 test -n "$ac_ct_AR" && break
8059 done
8061 if test "x$ac_ct_AR" = x; then
8062 AR="false"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 AR=$ac_ct_AR
8074 : ${AR=ar}
8075 : ${AR_FLAGS=cru}
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8088 $as_echo_n "checking for archiver @FILE support... " >&6; }
8089 if ${lt_cv_ar_at_file+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_ar_at_file=no
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8097 main ()
8101 return 0;
8103 _ACEOF
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 echo conftest.$ac_objext > conftest.lst
8106 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8108 (eval $lt_ar_try) 2>&5
8109 ac_status=$?
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }
8112 if test "$ac_status" -eq 0; then
8113 # Ensure the archiver fails upon bogus file names.
8114 rm -f conftest.$ac_objext libconftest.a
8115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8116 (eval $lt_ar_try) 2>&5
8117 ac_status=$?
8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119 test $ac_status = 0; }
8120 if test "$ac_status" -ne 0; then
8121 lt_cv_ar_at_file=@
8124 rm -f conftest.* libconftest.a
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8131 $as_echo "$lt_cv_ar_at_file" >&6; }
8133 if test "x$lt_cv_ar_at_file" = xno; then
8134 archiver_list_spec=
8135 else
8136 archiver_list_spec=$lt_cv_ar_at_file
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}strip; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_STRIP+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$STRIP"; then
8154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8169 IFS=$as_save_IFS
8173 STRIP=$ac_cv_prog_STRIP
8174 if test -n "$STRIP"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8176 $as_echo "$STRIP" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8184 if test -z "$ac_cv_prog_STRIP"; then
8185 ac_ct_STRIP=$STRIP
8186 # Extract the first word of "strip", so it can be a program name with args.
8187 set dummy strip; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 if test -n "$ac_ct_STRIP"; then
8194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 ac_cv_prog_ac_ct_STRIP="strip"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8214 if test -n "$ac_ct_STRIP"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8216 $as_echo "$ac_ct_STRIP" >&6; }
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8222 if test "x$ac_ct_STRIP" = x; then
8223 STRIP=":"
8224 else
8225 case $cross_compiling:$ac_tool_warned in
8226 yes:)
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8229 ac_tool_warned=yes ;;
8230 esac
8231 STRIP=$ac_ct_STRIP
8233 else
8234 STRIP="$ac_cv_prog_STRIP"
8237 test -z "$STRIP" && STRIP=:
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_RANLIB+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 if test -n "$RANLIB"; then
8253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8268 IFS=$as_save_IFS
8272 RANLIB=$ac_cv_prog_RANLIB
8273 if test -n "$RANLIB"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8275 $as_echo "$RANLIB" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 if test -z "$ac_cv_prog_RANLIB"; then
8284 ac_ct_RANLIB=$RANLIB
8285 # Extract the first word of "ranlib", so it can be a program name with args.
8286 set dummy ranlib; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$ac_ct_RANLIB"; then
8293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_ac_ct_RANLIB="ranlib"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8313 if test -n "$ac_ct_RANLIB"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8315 $as_echo "$ac_ct_RANLIB" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8321 if test "x$ac_ct_RANLIB" = x; then
8322 RANLIB=":"
8323 else
8324 case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330 RANLIB=$ac_ct_RANLIB
8332 else
8333 RANLIB="$ac_cv_prog_RANLIB"
8336 test -z "$RANLIB" && RANLIB=:
8343 # Determine commands to create old-style static archives.
8344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8345 old_postinstall_cmds='chmod 644 $oldlib'
8346 old_postuninstall_cmds=
8348 if test -n "$RANLIB"; then
8349 case $host_os in
8350 openbsd*)
8351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8356 esac
8357 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8360 case $host_os in
8361 darwin*)
8362 lock_old_archive_extraction=yes ;;
8364 lock_old_archive_extraction=no ;;
8365 esac
8405 # If no C compiler was specified, use CC.
8406 LTCC=${LTCC-"$CC"}
8408 # If no C compiler flags were specified, use CFLAGS.
8409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8411 # Allow CC to be a program name with arguments.
8412 compiler=$CC
8415 # Check for command to grab the raw symbol name followed by C symbol from nm.
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8418 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8422 # These are sane defaults that work on at least a few old systems.
8423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8425 # Character class describing NM global symbol codes.
8426 symcode='[BCDEGRST]'
8428 # Regexp to match symbols that can be accessed directly from C.
8429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8431 # Define system-specific variables.
8432 case $host_os in
8433 aix*)
8434 symcode='[BCDT]'
8436 cygwin* | mingw* | pw32* | cegcc*)
8437 symcode='[ABCDGISTW]'
8439 hpux*)
8440 if test "$host_cpu" = ia64; then
8441 symcode='[ABCDEGRST]'
8444 irix* | nonstopux*)
8445 symcode='[BCDEGRST]'
8447 osf*)
8448 symcode='[BCDEGQRST]'
8450 solaris*)
8451 symcode='[BDRT]'
8453 sco3.2v5*)
8454 symcode='[DT]'
8456 sysv4.2uw2*)
8457 symcode='[DT]'
8459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8460 symcode='[ABDT]'
8462 sysv4)
8463 symcode='[DFNSTU]'
8465 esac
8467 # If we're using GNU nm, then use its standard symbol codes.
8468 case `$NM -V 2>&1` in
8469 *GNU* | *'with BFD'*)
8470 symcode='[ABCDGIRSTW]' ;;
8471 esac
8473 # Transform an extracted symbol line into a proper C declaration.
8474 # Some systems (esp. on ia64) link data and code symbols differently,
8475 # so use this general approach.
8476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8478 # Transform an extracted symbol line into symbol name and symbol address
8479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8480 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'"
8482 # Handle CRLF in mingw tool chain
8483 opt_cr=
8484 case $build_os in
8485 mingw*)
8486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8488 esac
8490 # Try without a prefix underscore, then with it.
8491 for ac_symprfx in "" "_"; do
8493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8494 symxfrm="\\1 $ac_symprfx\\2 \\2"
8496 # Write the raw and C identifiers.
8497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8498 # Fake it for dumpbin and say T for any non-static function
8499 # and D for any global variable.
8500 # Also find C++ and __fastcall symbols from MSVC++,
8501 # which start with @ or ?.
8502 lt_cv_sys_global_symbol_pipe="$AWK '"\
8503 " {last_section=section; section=\$ 3};"\
8504 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8505 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8506 " \$ 0!~/External *\|/{next};"\
8507 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8508 " {if(hide[section]) next};"\
8509 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8510 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8511 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8512 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8513 " ' prfx=^$ac_symprfx"
8514 else
8515 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8517 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8519 # Check to see that the pipe works correctly.
8520 pipe_works=no
8522 rm -f conftest*
8523 cat > conftest.$ac_ext <<_LT_EOF
8524 #ifdef __cplusplus
8525 extern "C" {
8526 #endif
8527 char nm_test_var;
8528 void nm_test_func(void);
8529 void nm_test_func(void){}
8530 #ifdef __cplusplus
8532 #endif
8533 int main(){nm_test_var='a';nm_test_func();return(0);}
8534 _LT_EOF
8536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8537 (eval $ac_compile) 2>&5
8538 ac_status=$?
8539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8540 test $ac_status = 0; }; then
8541 # Now try to grab the symbols.
8542 nlist=conftest.nm
8543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8544 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8545 ac_status=$?
8546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8547 test $ac_status = 0; } && test -s "$nlist"; then
8548 # Try sorting and uniquifying the output.
8549 if sort "$nlist" | uniq > "$nlist"T; then
8550 mv -f "$nlist"T "$nlist"
8551 else
8552 rm -f "$nlist"T
8555 # Make sure that we snagged all the symbols we need.
8556 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8557 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8558 cat <<_LT_EOF > conftest.$ac_ext
8559 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8560 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8561 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8562 relocations are performed -- see ld's documentation on pseudo-relocs. */
8563 # define LT_DLSYM_CONST
8564 #elif defined(__osf__)
8565 /* This system does not cope well with relocations in const data. */
8566 # define LT_DLSYM_CONST
8567 #else
8568 # define LT_DLSYM_CONST const
8569 #endif
8571 #ifdef __cplusplus
8572 extern "C" {
8573 #endif
8575 _LT_EOF
8576 # Now generate the symbol file.
8577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8579 cat <<_LT_EOF >> conftest.$ac_ext
8581 /* The mapping between symbol names and symbols. */
8582 LT_DLSYM_CONST struct {
8583 const char *name;
8584 void *address;
8586 lt__PROGRAM__LTX_preloaded_symbols[] =
8588 { "@PROGRAM@", (void *) 0 },
8589 _LT_EOF
8590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8591 cat <<\_LT_EOF >> conftest.$ac_ext
8592 {0, (void *) 0}
8595 /* This works around a problem in FreeBSD linker */
8596 #ifdef FREEBSD_WORKAROUND
8597 static const void *lt_preloaded_setup() {
8598 return lt__PROGRAM__LTX_preloaded_symbols;
8600 #endif
8602 #ifdef __cplusplus
8604 #endif
8605 _LT_EOF
8606 # Now try linking the two files.
8607 mv conftest.$ac_objext conftstm.$ac_objext
8608 lt_globsym_save_LIBS=$LIBS
8609 lt_globsym_save_CFLAGS=$CFLAGS
8610 LIBS="conftstm.$ac_objext"
8611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8613 (eval $ac_link) 2>&5
8614 ac_status=$?
8615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8616 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8617 pipe_works=yes
8619 LIBS=$lt_globsym_save_LIBS
8620 CFLAGS=$lt_globsym_save_CFLAGS
8621 else
8622 echo "cannot find nm_test_func in $nlist" >&5
8624 else
8625 echo "cannot find nm_test_var in $nlist" >&5
8627 else
8628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8630 else
8631 echo "$progname: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 rm -rf conftest* conftst*
8636 # Do not use the global_symbol_pipe unless it works.
8637 if test "$pipe_works" = yes; then
8638 break
8639 else
8640 lt_cv_sys_global_symbol_pipe=
8642 done
8646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8647 lt_cv_sys_global_symbol_to_cdecl=
8649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8651 $as_echo "failed" >&6; }
8652 else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8654 $as_echo "ok" >&6; }
8657 # Response file support.
8658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8659 nm_file_list_spec='@'
8660 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8661 nm_file_list_spec='@'
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8691 $as_echo_n "checking for sysroot... " >&6; }
8693 # Check whether --with-sysroot was given.
8694 if test "${with_sysroot+set}" = set; then :
8695 withval=$with_sysroot;
8696 else
8697 with_sysroot=no
8701 lt_sysroot=
8702 case ${with_sysroot} in #(
8703 yes)
8704 if test "$GCC" = yes; then
8705 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8707 ;; #(
8709 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8710 ;; #(
8711 no|'')
8712 ;; #(
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8715 $as_echo "${with_sysroot}" >&6; }
8716 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8718 esac
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8721 $as_echo "${lt_sysroot:-no}" >&6; }
8727 # Check whether --enable-libtool-lock was given.
8728 if test "${enable_libtool_lock+set}" = set; then :
8729 enableval=$enable_libtool_lock;
8732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8734 # Some flags need to be propagated to the compiler or linker for good
8735 # libtool support.
8736 case $host in
8737 ia64-*-hpux*)
8738 # Find out which ABI we are using.
8739 echo 'int i;' > conftest.$ac_ext
8740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741 (eval $ac_compile) 2>&5
8742 ac_status=$?
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }; then
8745 case `/usr/bin/file conftest.$ac_objext` in
8746 *ELF-32*)
8747 HPUX_IA64_MODE="32"
8749 *ELF-64*)
8750 HPUX_IA64_MODE="64"
8752 esac
8754 rm -rf conftest*
8756 *-*-irix6*)
8757 # Find out which ABI we are using.
8758 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760 (eval $ac_compile) 2>&5
8761 ac_status=$?
8762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8763 test $ac_status = 0; }; then
8764 if test "$lt_cv_prog_gnu_ld" = yes; then
8765 case `/usr/bin/file conftest.$ac_objext` in
8766 *32-bit*)
8767 LD="${LD-ld} -melf32bsmip"
8769 *N32*)
8770 LD="${LD-ld} -melf32bmipn32"
8772 *64-bit*)
8773 LD="${LD-ld} -melf64bmip"
8775 esac
8776 else
8777 case `/usr/bin/file conftest.$ac_objext` in
8778 *32-bit*)
8779 LD="${LD-ld} -32"
8781 *N32*)
8782 LD="${LD-ld} -n32"
8784 *64-bit*)
8785 LD="${LD-ld} -64"
8787 esac
8790 rm -rf conftest*
8793 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8794 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8795 # Find out which ABI we are using.
8796 echo 'int i;' > conftest.$ac_ext
8797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8798 (eval $ac_compile) 2>&5
8799 ac_status=$?
8800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8801 test $ac_status = 0; }; then
8802 case `/usr/bin/file conftest.o` in
8803 *32-bit*)
8804 case $host in
8805 x86_64-*kfreebsd*-gnu)
8806 LD="${LD-ld} -m elf_i386_fbsd"
8808 x86_64-*linux*)
8809 case `/usr/bin/file conftest.o` in
8810 *x86-64*)
8811 LD="${LD-ld} -m elf32_x86_64"
8814 LD="${LD-ld} -m elf_i386"
8816 esac
8818 powerpc64le-*)
8819 LD="${LD-ld} -m elf32lppclinux"
8821 powerpc64-*)
8822 LD="${LD-ld} -m elf32ppclinux"
8824 s390x-*linux*)
8825 LD="${LD-ld} -m elf_s390"
8827 sparc64-*linux*)
8828 LD="${LD-ld} -m elf32_sparc"
8830 esac
8832 *64-bit*)
8833 case $host in
8834 x86_64-*kfreebsd*-gnu)
8835 LD="${LD-ld} -m elf_x86_64_fbsd"
8837 x86_64-*linux*)
8838 LD="${LD-ld} -m elf_x86_64"
8840 powerpcle-*)
8841 LD="${LD-ld} -m elf64lppc"
8843 powerpc-*)
8844 LD="${LD-ld} -m elf64ppc"
8846 s390*-*linux*|s390*-*tpf*)
8847 LD="${LD-ld} -m elf64_s390"
8849 sparc*-*linux*)
8850 LD="${LD-ld} -m elf64_sparc"
8852 esac
8854 esac
8856 rm -rf conftest*
8859 *-*-sco3.2v5*)
8860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8861 SAVE_CFLAGS="$CFLAGS"
8862 CFLAGS="$CFLAGS -belf"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8864 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8865 if ${lt_cv_cc_needs_belf+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8878 main ()
8882 return 0;
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 lt_cv_cc_needs_belf=yes
8887 else
8888 lt_cv_cc_needs_belf=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 ac_ext=c
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8903 CFLAGS="$SAVE_CFLAGS"
8906 *-*solaris*)
8907 # Find out which ABI we are using.
8908 echo 'int i;' > conftest.$ac_ext
8909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8910 (eval $ac_compile) 2>&5
8911 ac_status=$?
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 case `/usr/bin/file conftest.o` in
8915 *64-bit*)
8916 case $lt_cv_prog_gnu_ld in
8917 yes*)
8918 case $host in
8919 i?86-*-solaris*)
8920 LD="${LD-ld} -m elf_x86_64"
8922 sparc*-*-solaris*)
8923 LD="${LD-ld} -m elf64_sparc"
8925 esac
8926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8927 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8928 LD="${LD-ld}_sol2"
8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8933 LD="${LD-ld} -64"
8936 esac
8938 esac
8940 rm -rf conftest*
8942 esac
8944 need_locks="$enable_libtool_lock"
8946 if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8948 set dummy ${ac_tool_prefix}mt; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 if test -n "$MANIFEST_TOOL"; then
8955 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8968 done
8969 done
8970 IFS=$as_save_IFS
8974 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8975 if test -n "$MANIFEST_TOOL"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8977 $as_echo "$MANIFEST_TOOL" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8985 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8986 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8987 # Extract the first word of "mt", so it can be a program name with args.
8988 set dummy mt; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test -n "$ac_ct_MANIFEST_TOOL"; then
8995 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9014 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9015 if test -n "$ac_ct_MANIFEST_TOOL"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9017 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9023 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9024 MANIFEST_TOOL=":"
9025 else
9026 case $cross_compiling:$ac_tool_warned in
9027 yes:)
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9030 ac_tool_warned=yes ;;
9031 esac
9032 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9034 else
9035 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9038 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9040 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9041 if ${lt_cv_path_mainfest_tool+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 lt_cv_path_mainfest_tool=no
9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9047 cat conftest.err >&5
9048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9049 lt_cv_path_mainfest_tool=yes
9051 rm -f conftest*
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9054 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9055 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9056 MANIFEST_TOOL=:
9064 case $host_os in
9065 rhapsody* | darwin*)
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$DSYMUTIL"; then
9075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9095 if test -n "$DSYMUTIL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9097 $as_echo "$DSYMUTIL" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 if test -z "$ac_cv_prog_DSYMUTIL"; then
9106 ac_ct_DSYMUTIL=$DSYMUTIL
9107 # Extract the first word of "dsymutil", so it can be a program name with args.
9108 set dummy dsymutil; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$ac_ct_DSYMUTIL"; then
9115 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9128 done
9129 done
9130 IFS=$as_save_IFS
9134 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9135 if test -n "$ac_ct_DSYMUTIL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9137 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 if test "x$ac_ct_DSYMUTIL" = x; then
9144 DSYMUTIL=":"
9145 else
9146 case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152 DSYMUTIL=$ac_ct_DSYMUTIL
9154 else
9155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_NMEDIT+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$NMEDIT"; then
9167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9180 done
9181 done
9182 IFS=$as_save_IFS
9186 NMEDIT=$ac_cv_prog_NMEDIT
9187 if test -n "$NMEDIT"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9189 $as_echo "$NMEDIT" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 if test -z "$ac_cv_prog_NMEDIT"; then
9198 ac_ct_NMEDIT=$NMEDIT
9199 # Extract the first word of "nmedit", so it can be a program name with args.
9200 set dummy nmedit; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 if test -n "$ac_ct_NMEDIT"; then
9207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9220 done
9221 done
9222 IFS=$as_save_IFS
9226 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9227 if test -n "$ac_ct_NMEDIT"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9229 $as_echo "$ac_ct_NMEDIT" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9235 if test "x$ac_ct_NMEDIT" = x; then
9236 NMEDIT=":"
9237 else
9238 case $cross_compiling:$ac_tool_warned in
9239 yes:)
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned=yes ;;
9243 esac
9244 NMEDIT=$ac_ct_NMEDIT
9246 else
9247 NMEDIT="$ac_cv_prog_NMEDIT"
9250 if test -n "$ac_tool_prefix"; then
9251 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9252 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_LIPO+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 if test -n "$LIPO"; then
9259 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9272 done
9273 done
9274 IFS=$as_save_IFS
9278 LIPO=$ac_cv_prog_LIPO
9279 if test -n "$LIPO"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9281 $as_echo "$LIPO" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9289 if test -z "$ac_cv_prog_LIPO"; then
9290 ac_ct_LIPO=$LIPO
9291 # Extract the first word of "lipo", so it can be a program name with args.
9292 set dummy lipo; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 if test -n "$ac_ct_LIPO"; then
9299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_ac_ct_LIPO="lipo"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9318 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9319 if test -n "$ac_ct_LIPO"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9321 $as_echo "$ac_ct_LIPO" >&6; }
9322 else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9327 if test "x$ac_ct_LIPO" = x; then
9328 LIPO=":"
9329 else
9330 case $cross_compiling:$ac_tool_warned in
9331 yes:)
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9334 ac_tool_warned=yes ;;
9335 esac
9336 LIPO=$ac_ct_LIPO
9338 else
9339 LIPO="$ac_cv_prog_LIPO"
9342 if test -n "$ac_tool_prefix"; then
9343 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9344 set dummy ${ac_tool_prefix}otool; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_prog_OTOOL+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 if test -n "$OTOOL"; then
9351 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9364 done
9365 done
9366 IFS=$as_save_IFS
9370 OTOOL=$ac_cv_prog_OTOOL
9371 if test -n "$OTOOL"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9373 $as_echo "$OTOOL" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9381 if test -z "$ac_cv_prog_OTOOL"; then
9382 ac_ct_OTOOL=$OTOOL
9383 # Extract the first word of "otool", so it can be a program name with args.
9384 set dummy otool; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 if test -n "$ac_ct_OTOOL"; then
9391 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_OTOOL="otool"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9404 done
9405 done
9406 IFS=$as_save_IFS
9410 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9411 if test -n "$ac_ct_OTOOL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9413 $as_echo "$ac_ct_OTOOL" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9419 if test "x$ac_ct_OTOOL" = x; then
9420 OTOOL=":"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 OTOOL=$ac_ct_OTOOL
9430 else
9431 OTOOL="$ac_cv_prog_OTOOL"
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9436 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_prog_OTOOL64+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 if test -n "$OTOOL64"; then
9443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9444 else
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9456 done
9457 done
9458 IFS=$as_save_IFS
9462 OTOOL64=$ac_cv_prog_OTOOL64
9463 if test -n "$OTOOL64"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9465 $as_echo "$OTOOL64" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test -z "$ac_cv_prog_OTOOL64"; then
9474 ac_ct_OTOOL64=$OTOOL64
9475 # Extract the first word of "otool64", so it can be a program name with args.
9476 set dummy otool64; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 if test -n "$ac_ct_OTOOL64"; then
9483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9484 else
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_OTOOL64="otool64"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9496 done
9497 done
9498 IFS=$as_save_IFS
9502 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9503 if test -n "$ac_ct_OTOOL64"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9505 $as_echo "$ac_ct_OTOOL64" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9511 if test "x$ac_ct_OTOOL64" = x; then
9512 OTOOL64=":"
9513 else
9514 case $cross_compiling:$ac_tool_warned in
9515 yes:)
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned=yes ;;
9519 esac
9520 OTOOL64=$ac_ct_OTOOL64
9522 else
9523 OTOOL64="$ac_cv_prog_OTOOL64"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9553 $as_echo_n "checking for -single_module linker flag... " >&6; }
9554 if ${lt_cv_apple_cc_single_mod+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 lt_cv_apple_cc_single_mod=no
9558 if test -z "${LT_MULTI_MODULE}"; then
9559 # By default we will add the -single_module flag. You can override
9560 # by either setting the environment variable LT_MULTI_MODULE
9561 # non-empty at configure time, or by adding -multi_module to the
9562 # link flags.
9563 rm -rf libconftest.dylib*
9564 echo "int foo(void){return 1;}" > conftest.c
9565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9566 -dynamiclib -Wl,-single_module conftest.c" >&5
9567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9569 _lt_result=$?
9570 # If there is a non-empty error log, and "single_module"
9571 # appears in it, assume the flag caused a linker warning
9572 if test -s conftest.err && $GREP single_module conftest.err; then
9573 cat conftest.err >&5
9574 # Otherwise, if the output was created with a 0 exit code from
9575 # the compiler, it worked.
9576 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9577 lt_cv_apple_cc_single_mod=yes
9578 else
9579 cat conftest.err >&5
9581 rm -rf libconftest.dylib*
9582 rm -f conftest.*
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9590 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 lt_cv_ld_exported_symbols_list=no
9594 save_LDFLAGS=$LDFLAGS
9595 echo "_main" > conftest.sym
9596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9601 main ()
9605 return 0;
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9609 lt_cv_ld_exported_symbols_list=yes
9610 else
9611 lt_cv_ld_exported_symbols_list=no
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LDFLAGS="$save_LDFLAGS"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9622 $as_echo_n "checking for -force_load linker flag... " >&6; }
9623 if ${lt_cv_ld_force_load+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 lt_cv_ld_force_load=no
9627 cat > conftest.c << _LT_EOF
9628 int forced_loaded() { return 2;}
9629 _LT_EOF
9630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9632 echo "$AR cru libconftest.a conftest.o" >&5
9633 $AR cru libconftest.a conftest.o 2>&5
9634 echo "$RANLIB libconftest.a" >&5
9635 $RANLIB libconftest.a 2>&5
9636 cat > conftest.c << _LT_EOF
9637 int main() { return 0;}
9638 _LT_EOF
9639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9641 _lt_result=$?
9642 if test -s conftest.err && $GREP force_load conftest.err; then
9643 cat conftest.err >&5
9644 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9645 lt_cv_ld_force_load=yes
9646 else
9647 cat conftest.err >&5
9649 rm -f conftest.err libconftest.a conftest conftest.c
9650 rm -rf conftest.dSYM
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9654 $as_echo "$lt_cv_ld_force_load" >&6; }
9655 case $host_os in
9656 rhapsody* | darwin1.[012])
9657 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9658 darwin1.*)
9659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9660 darwin*) # darwin 5.x on
9661 # if running on 10.5 or later, the deployment target defaults
9662 # to the OS version, if on x86, and 10.4, the deployment
9663 # target defaults to 10.4. Don't you love it?
9664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9667 10.[012]*)
9668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9669 10.*)
9670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9671 esac
9673 esac
9674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9675 _lt_dar_single_mod='$single_module'
9677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9678 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9679 else
9680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9683 _lt_dsymutil='~$DSYMUTIL $lib || :'
9684 else
9685 _lt_dsymutil=
9688 esac
9690 for ac_header in dlfcn.h
9691 do :
9692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9694 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_DLFCN_H 1
9697 _ACEOF
9701 done
9705 func_stripname_cnf ()
9707 case ${2} in
9708 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9709 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9710 esac
9711 } # func_stripname_cnf
9717 # Set options
9721 enable_dlopen=no
9725 # Check whether --enable-shared was given.
9726 if test "${enable_shared+set}" = set; then :
9727 enableval=$enable_shared; p=${PACKAGE-default}
9728 case $enableval in
9729 yes) enable_shared=yes ;;
9730 no) enable_shared=no ;;
9732 enable_shared=no
9733 # Look at the argument we got. We use all the common list separators.
9734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9735 for pkg in $enableval; do
9736 IFS="$lt_save_ifs"
9737 if test "X$pkg" = "X$p"; then
9738 enable_shared=yes
9740 done
9741 IFS="$lt_save_ifs"
9743 esac
9744 else
9745 enable_shared=yes
9756 # Check whether --enable-static was given.
9757 if test "${enable_static+set}" = set; then :
9758 enableval=$enable_static; p=${PACKAGE-default}
9759 case $enableval in
9760 yes) enable_static=yes ;;
9761 no) enable_static=no ;;
9763 enable_static=no
9764 # Look at the argument we got. We use all the common list separators.
9765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9766 for pkg in $enableval; do
9767 IFS="$lt_save_ifs"
9768 if test "X$pkg" = "X$p"; then
9769 enable_static=yes
9771 done
9772 IFS="$lt_save_ifs"
9774 esac
9775 else
9776 enable_static=yes
9788 # Check whether --with-pic was given.
9789 if test "${with_pic+set}" = set; then :
9790 withval=$with_pic; lt_p=${PACKAGE-default}
9791 case $withval in
9792 yes|no) pic_mode=$withval ;;
9794 pic_mode=default
9795 # Look at the argument we got. We use all the common list separators.
9796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9797 for lt_pkg in $withval; do
9798 IFS="$lt_save_ifs"
9799 if test "X$lt_pkg" = "X$lt_p"; then
9800 pic_mode=yes
9802 done
9803 IFS="$lt_save_ifs"
9805 esac
9806 else
9807 pic_mode=default
9811 test -z "$pic_mode" && pic_mode=default
9819 # Check whether --enable-fast-install was given.
9820 if test "${enable_fast_install+set}" = set; then :
9821 enableval=$enable_fast_install; p=${PACKAGE-default}
9822 case $enableval in
9823 yes) enable_fast_install=yes ;;
9824 no) enable_fast_install=no ;;
9826 enable_fast_install=no
9827 # Look at the argument we got. We use all the common list separators.
9828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9829 for pkg in $enableval; do
9830 IFS="$lt_save_ifs"
9831 if test "X$pkg" = "X$p"; then
9832 enable_fast_install=yes
9834 done
9835 IFS="$lt_save_ifs"
9837 esac
9838 else
9839 enable_fast_install=yes
9852 # This can be used to rebuild libtool when needed
9853 LIBTOOL_DEPS="$ltmain"
9855 # Always use our own libtool.
9856 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9887 test -z "$LN_S" && LN_S="ln -s"
9902 if test -n "${ZSH_VERSION+set}" ; then
9903 setopt NO_GLOB_SUBST
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9907 $as_echo_n "checking for objdir... " >&6; }
9908 if ${lt_cv_objdir+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 rm -f .libs 2>/dev/null
9912 mkdir .libs 2>/dev/null
9913 if test -d .libs; then
9914 lt_cv_objdir=.libs
9915 else
9916 # MS-DOS does not allow filenames that begin with a dot.
9917 lt_cv_objdir=_libs
9919 rmdir .libs 2>/dev/null
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9922 $as_echo "$lt_cv_objdir" >&6; }
9923 objdir=$lt_cv_objdir
9929 cat >>confdefs.h <<_ACEOF
9930 #define LT_OBJDIR "$lt_cv_objdir/"
9931 _ACEOF
9936 case $host_os in
9937 aix3*)
9938 # AIX sometimes has problems with the GCC collect2 program. For some
9939 # reason, if we set the COLLECT_NAMES environment variable, the problems
9940 # vanish in a puff of smoke.
9941 if test "X${COLLECT_NAMES+set}" != Xset; then
9942 COLLECT_NAMES=
9943 export COLLECT_NAMES
9946 esac
9948 # Global variables:
9949 ofile=libtool
9950 can_build_shared=yes
9952 # All known linkers require a `.a' archive for static linking (except MSVC,
9953 # which needs '.lib').
9954 libext=a
9956 with_gnu_ld="$lt_cv_prog_gnu_ld"
9958 old_CC="$CC"
9959 old_CFLAGS="$CFLAGS"
9961 # Set sane defaults for various variables
9962 test -z "$CC" && CC=cc
9963 test -z "$LTCC" && LTCC=$CC
9964 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9965 test -z "$LD" && LD=ld
9966 test -z "$ac_objext" && ac_objext=o
9968 for cc_temp in $compiler""; do
9969 case $cc_temp in
9970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9972 \-*) ;;
9973 *) break;;
9974 esac
9975 done
9976 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9979 # Only perform the check for file, if the check method requires it
9980 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9981 case $deplibs_check_method in
9982 file_magic*)
9983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9985 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9986 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $MAGIC_CMD in
9990 [\\/*] | ?:[\\/]*)
9991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9994 lt_save_MAGIC_CMD="$MAGIC_CMD"
9995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9997 for ac_dir in $ac_dummy; do
9998 IFS="$lt_save_ifs"
9999 test -z "$ac_dir" && ac_dir=.
10000 if test -f $ac_dir/${ac_tool_prefix}file; then
10001 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10002 if test -n "$file_magic_test_file"; then
10003 case $deplibs_check_method in
10004 "file_magic "*)
10005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10008 $EGREP "$file_magic_regex" > /dev/null; then
10010 else
10011 cat <<_LT_EOF 1>&2
10013 *** Warning: the command libtool uses to detect shared libraries,
10014 *** $file_magic_cmd, produces output that libtool cannot recognize.
10015 *** The result is that libtool may fail to recognize shared libraries
10016 *** as such. This will affect the creation of libtool libraries that
10017 *** depend on shared libraries, but programs linked with such libtool
10018 *** libraries will work regardless of this problem. Nevertheless, you
10019 *** may want to report the problem to your system manager and/or to
10020 *** bug-libtool@gnu.org
10022 _LT_EOF
10023 fi ;;
10024 esac
10026 break
10028 done
10029 IFS="$lt_save_ifs"
10030 MAGIC_CMD="$lt_save_MAGIC_CMD"
10032 esac
10035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10036 if test -n "$MAGIC_CMD"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10038 $as_echo "$MAGIC_CMD" >&6; }
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10048 if test -z "$lt_cv_path_MAGIC_CMD"; then
10049 if test -n "$ac_tool_prefix"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10051 $as_echo_n "checking for file... " >&6; }
10052 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 case $MAGIC_CMD in
10056 [\\/*] | ?:[\\/]*)
10057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10060 lt_save_MAGIC_CMD="$MAGIC_CMD"
10061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10062 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10063 for ac_dir in $ac_dummy; do
10064 IFS="$lt_save_ifs"
10065 test -z "$ac_dir" && ac_dir=.
10066 if test -f $ac_dir/file; then
10067 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10068 if test -n "$file_magic_test_file"; then
10069 case $deplibs_check_method in
10070 "file_magic "*)
10071 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10074 $EGREP "$file_magic_regex" > /dev/null; then
10076 else
10077 cat <<_LT_EOF 1>&2
10079 *** Warning: the command libtool uses to detect shared libraries,
10080 *** $file_magic_cmd, produces output that libtool cannot recognize.
10081 *** The result is that libtool may fail to recognize shared libraries
10082 *** as such. This will affect the creation of libtool libraries that
10083 *** depend on shared libraries, but programs linked with such libtool
10084 *** libraries will work regardless of this problem. Nevertheless, you
10085 *** may want to report the problem to your system manager and/or to
10086 *** bug-libtool@gnu.org
10088 _LT_EOF
10089 fi ;;
10090 esac
10092 break
10094 done
10095 IFS="$lt_save_ifs"
10096 MAGIC_CMD="$lt_save_MAGIC_CMD"
10098 esac
10101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10102 if test -n "$MAGIC_CMD"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10104 $as_echo "$MAGIC_CMD" >&6; }
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10111 else
10112 MAGIC_CMD=:
10118 esac
10120 # Use C for the default configuration in the libtool script
10122 lt_save_CC="$CC"
10123 ac_ext=c
10124 ac_cpp='$CPP $CPPFLAGS'
10125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130 # Source file extension for C test sources.
10131 ac_ext=c
10133 # Object file extension for compiled C test sources.
10134 objext=o
10135 objext=$objext
10137 # Code to be used in simple compile tests
10138 lt_simple_compile_test_code="int some_variable = 0;"
10140 # Code to be used in simple link tests
10141 lt_simple_link_test_code='int main(){return(0);}'
10149 # If no C compiler was specified, use CC.
10150 LTCC=${LTCC-"$CC"}
10152 # If no C compiler flags were specified, use CFLAGS.
10153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10155 # Allow CC to be a program name with arguments.
10156 compiler=$CC
10158 # Save the default compiler, since it gets overwritten when the other
10159 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10160 compiler_DEFAULT=$CC
10162 # save warnings/boilerplate of simple test code
10163 ac_outfile=conftest.$ac_objext
10164 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10166 _lt_compiler_boilerplate=`cat conftest.err`
10167 $RM conftest*
10169 ac_outfile=conftest.$ac_objext
10170 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10172 _lt_linker_boilerplate=`cat conftest.err`
10173 $RM -r conftest*
10176 ## CAVEAT EMPTOR:
10177 ## There is no encapsulation within the following macros, do not change
10178 ## the running order or otherwise move them around unless you know exactly
10179 ## what you are doing...
10180 if test -n "$compiler"; then
10182 lt_prog_compiler_no_builtin_flag=
10184 if test "$GCC" = yes; then
10185 case $cc_basename in
10186 nvcc*)
10187 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10189 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10190 esac
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10193 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10194 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 lt_cv_prog_compiler_rtti_exceptions=no
10198 ac_outfile=conftest.$ac_objext
10199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200 lt_compiler_flag="-fno-rtti -fno-exceptions"
10201 # Insert the option either (1) after the last *FLAGS variable, or
10202 # (2) before a word containing "conftest.", or (3) at the end.
10203 # Note that $ac_compile itself does not contain backslashes and begins
10204 # with a dollar sign (not a hyphen), so the echo should work correctly.
10205 # The option is referenced via a variable to avoid confusing sed.
10206 lt_compile=`echo "$ac_compile" | $SED \
10207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10209 -e 's:$: $lt_compiler_flag:'`
10210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10211 (eval "$lt_compile" 2>conftest.err)
10212 ac_status=$?
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 if (exit $ac_status) && test -s "$ac_outfile"; then
10216 # The compiler can only warn and ignore the option if not recognized
10217 # So say no if there are warnings other than the usual output.
10218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10221 lt_cv_prog_compiler_rtti_exceptions=yes
10224 $RM conftest*
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10228 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10230 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10231 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10232 else
10243 lt_prog_compiler_wl=
10244 lt_prog_compiler_pic=
10245 lt_prog_compiler_static=
10248 if test "$GCC" = yes; then
10249 lt_prog_compiler_wl='-Wl,'
10250 lt_prog_compiler_static='-static'
10252 case $host_os in
10253 aix*)
10254 # All AIX code is PIC.
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static='-Bstatic'
10261 amigaos*)
10262 case $host_cpu in
10263 powerpc)
10264 # see comment about AmigaOS4 .so support
10265 lt_prog_compiler_pic='-fPIC'
10267 m68k)
10268 # FIXME: we need at least 68020 code to build shared libraries, but
10269 # adding the `-m68020' flag to GCC prevents building anything better,
10270 # like `-m68040'.
10271 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10273 esac
10276 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10277 # PIC is the default for these OSes.
10280 mingw* | cygwin* | pw32* | os2* | cegcc*)
10281 # This hack is so that the source file can tell whether it is being
10282 # built for inclusion in a dll (and should export symbols for example).
10283 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10284 # (--disable-auto-import) libraries
10285 lt_prog_compiler_pic='-DDLL_EXPORT'
10288 darwin* | rhapsody*)
10289 # PIC is the default on this platform
10290 # Common symbols not allowed in MH_DYLIB files
10291 lt_prog_compiler_pic='-fno-common'
10294 haiku*)
10295 # PIC is the default for Haiku.
10296 # The "-static" flag exists, but is broken.
10297 lt_prog_compiler_static=
10300 hpux*)
10301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10303 # sets the default TLS model and affects inlining.
10304 case $host_cpu in
10305 hppa*64*)
10306 # +Z the default
10309 lt_prog_compiler_pic='-fPIC'
10311 esac
10314 interix[3-9]*)
10315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10316 # Instead, we relocate shared libraries at runtime.
10319 msdosdjgpp*)
10320 # Just because we use GCC doesn't mean we suddenly get shared libraries
10321 # on systems that don't support them.
10322 lt_prog_compiler_can_build_shared=no
10323 enable_shared=no
10326 *nto* | *qnx*)
10327 # QNX uses GNU C++, but need to define -shared option too, otherwise
10328 # it will coredump.
10329 lt_prog_compiler_pic='-fPIC -shared'
10332 sysv4*MP*)
10333 if test -d /usr/nec; then
10334 lt_prog_compiler_pic=-Kconform_pic
10339 lt_prog_compiler_pic='-fPIC'
10341 esac
10343 case $cc_basename in
10344 nvcc*) # Cuda Compiler Driver 2.2
10345 lt_prog_compiler_wl='-Xlinker '
10346 if test -n "$lt_prog_compiler_pic"; then
10347 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10350 esac
10351 else
10352 # PORTME Check for flag to pass linker flags through the system compiler.
10353 case $host_os in
10354 aix*)
10355 lt_prog_compiler_wl='-Wl,'
10356 if test "$host_cpu" = ia64; then
10357 # AIX 5 now supports IA64 processor
10358 lt_prog_compiler_static='-Bstatic'
10359 else
10360 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10364 mingw* | cygwin* | pw32* | os2* | cegcc*)
10365 # This hack is so that the source file can tell whether it is being
10366 # built for inclusion in a dll (and should export symbols for example).
10367 lt_prog_compiler_pic='-DDLL_EXPORT'
10370 hpux9* | hpux10* | hpux11*)
10371 lt_prog_compiler_wl='-Wl,'
10372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10373 # not for PA HP-UX.
10374 case $host_cpu in
10375 hppa*64*|ia64*)
10376 # +Z the default
10379 lt_prog_compiler_pic='+Z'
10381 esac
10382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10383 lt_prog_compiler_static='${wl}-a ${wl}archive'
10386 irix5* | irix6* | nonstopux*)
10387 lt_prog_compiler_wl='-Wl,'
10388 # PIC (with -KPIC) is the default.
10389 lt_prog_compiler_static='-non_shared'
10392 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10393 case $cc_basename in
10394 # old Intel for x86_64 which still supported -KPIC.
10395 ecc*)
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_pic='-KPIC'
10398 lt_prog_compiler_static='-static'
10400 # icc used to be incompatible with GCC.
10401 # ICC 10 doesn't accept -KPIC any more.
10402 icc* | ifort*)
10403 lt_prog_compiler_wl='-Wl,'
10404 lt_prog_compiler_pic='-fPIC'
10405 lt_prog_compiler_static='-static'
10407 # Lahey Fortran 8.1.
10408 lf95*)
10409 lt_prog_compiler_wl='-Wl,'
10410 lt_prog_compiler_pic='--shared'
10411 lt_prog_compiler_static='--static'
10413 nagfor*)
10414 # NAG Fortran compiler
10415 lt_prog_compiler_wl='-Wl,-Wl,,'
10416 lt_prog_compiler_pic='-PIC'
10417 lt_prog_compiler_static='-Bstatic'
10419 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10420 # Portland Group compilers (*not* the Pentium gcc compiler,
10421 # which looks to be a dead project)
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='-fpic'
10424 lt_prog_compiler_static='-Bstatic'
10426 ccc*)
10427 lt_prog_compiler_wl='-Wl,'
10428 # All Alpha code is PIC.
10429 lt_prog_compiler_static='-non_shared'
10431 xl* | bgxl* | bgf* | mpixl*)
10432 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10433 lt_prog_compiler_wl='-Wl,'
10434 lt_prog_compiler_pic='-qpic'
10435 lt_prog_compiler_static='-qstaticlink'
10438 case `$CC -V 2>&1 | sed 5q` in
10439 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10440 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10441 lt_prog_compiler_pic='-KPIC'
10442 lt_prog_compiler_static='-Bstatic'
10443 lt_prog_compiler_wl=''
10445 *Sun\ F* | *Sun*Fortran*)
10446 lt_prog_compiler_pic='-KPIC'
10447 lt_prog_compiler_static='-Bstatic'
10448 lt_prog_compiler_wl='-Qoption ld '
10450 *Sun\ C*)
10451 # Sun C 5.9
10452 lt_prog_compiler_pic='-KPIC'
10453 lt_prog_compiler_static='-Bstatic'
10454 lt_prog_compiler_wl='-Wl,'
10456 *Intel*\ [CF]*Compiler*)
10457 lt_prog_compiler_wl='-Wl,'
10458 lt_prog_compiler_pic='-fPIC'
10459 lt_prog_compiler_static='-static'
10461 *Portland\ Group*)
10462 lt_prog_compiler_wl='-Wl,'
10463 lt_prog_compiler_pic='-fpic'
10464 lt_prog_compiler_static='-Bstatic'
10466 esac
10468 esac
10471 newsos6)
10472 lt_prog_compiler_pic='-KPIC'
10473 lt_prog_compiler_static='-Bstatic'
10476 *nto* | *qnx*)
10477 # QNX uses GNU C++, but need to define -shared option too, otherwise
10478 # it will coredump.
10479 lt_prog_compiler_pic='-fPIC -shared'
10482 osf3* | osf4* | osf5*)
10483 lt_prog_compiler_wl='-Wl,'
10484 # All OSF/1 code is PIC.
10485 lt_prog_compiler_static='-non_shared'
10488 rdos*)
10489 lt_prog_compiler_static='-non_shared'
10492 solaris*)
10493 lt_prog_compiler_pic='-KPIC'
10494 lt_prog_compiler_static='-Bstatic'
10495 case $cc_basename in
10496 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10497 lt_prog_compiler_wl='-Qoption ld ';;
10499 lt_prog_compiler_wl='-Wl,';;
10500 esac
10503 sunos4*)
10504 lt_prog_compiler_wl='-Qoption ld '
10505 lt_prog_compiler_pic='-PIC'
10506 lt_prog_compiler_static='-Bstatic'
10509 sysv4 | sysv4.2uw2* | sysv4.3*)
10510 lt_prog_compiler_wl='-Wl,'
10511 lt_prog_compiler_pic='-KPIC'
10512 lt_prog_compiler_static='-Bstatic'
10515 sysv4*MP*)
10516 if test -d /usr/nec ;then
10517 lt_prog_compiler_pic='-Kconform_pic'
10518 lt_prog_compiler_static='-Bstatic'
10522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10523 lt_prog_compiler_wl='-Wl,'
10524 lt_prog_compiler_pic='-KPIC'
10525 lt_prog_compiler_static='-Bstatic'
10528 unicos*)
10529 lt_prog_compiler_wl='-Wl,'
10530 lt_prog_compiler_can_build_shared=no
10533 uts4*)
10534 lt_prog_compiler_pic='-pic'
10535 lt_prog_compiler_static='-Bstatic'
10539 lt_prog_compiler_can_build_shared=no
10541 esac
10544 case $host_os in
10545 # For platforms which do not support PIC, -DPIC is meaningless:
10546 *djgpp*)
10547 lt_prog_compiler_pic=
10550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10552 esac
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10555 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10556 if ${lt_cv_prog_compiler_pic+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10562 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10563 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10566 # Check to make sure the PIC flag actually works.
10568 if test -n "$lt_prog_compiler_pic"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10570 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10571 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 lt_cv_prog_compiler_pic_works=no
10575 ac_outfile=conftest.$ac_objext
10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10577 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10578 # Insert the option either (1) after the last *FLAGS variable, or
10579 # (2) before a word containing "conftest.", or (3) at the end.
10580 # Note that $ac_compile itself does not contain backslashes and begins
10581 # with a dollar sign (not a hyphen), so the echo should work correctly.
10582 # The option is referenced via a variable to avoid confusing sed.
10583 lt_compile=`echo "$ac_compile" | $SED \
10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10586 -e 's:$: $lt_compiler_flag:'`
10587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10588 (eval "$lt_compile" 2>conftest.err)
10589 ac_status=$?
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 if (exit $ac_status) && test -s "$ac_outfile"; then
10593 # The compiler can only warn and ignore the option if not recognized
10594 # So say no if there are warnings other than the usual output.
10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10598 lt_cv_prog_compiler_pic_works=yes
10601 $RM conftest*
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10605 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10607 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10608 case $lt_prog_compiler_pic in
10609 "" | " "*) ;;
10610 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10611 esac
10612 else
10613 lt_prog_compiler_pic=
10614 lt_prog_compiler_can_build_shared=no
10630 # Check to make sure the static flag actually works.
10632 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10634 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10635 if ${lt_cv_prog_compiler_static_works+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 lt_cv_prog_compiler_static_works=no
10639 save_LDFLAGS="$LDFLAGS"
10640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10643 # The linker can only warn and ignore the option if not recognized
10644 # So say no if there are warnings
10645 if test -s conftest.err; then
10646 # Append any errors to the config.log.
10647 cat conftest.err 1>&5
10648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10650 if diff conftest.exp conftest.er2 >/dev/null; then
10651 lt_cv_prog_compiler_static_works=yes
10653 else
10654 lt_cv_prog_compiler_static_works=yes
10657 $RM -r conftest*
10658 LDFLAGS="$save_LDFLAGS"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10662 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10664 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10666 else
10667 lt_prog_compiler_static=
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10678 if ${lt_cv_prog_compiler_c_o+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 lt_cv_prog_compiler_c_o=no
10682 $RM -r conftest 2>/dev/null
10683 mkdir conftest
10684 cd conftest
10685 mkdir out
10686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10688 lt_compiler_flag="-o out/conftest2.$ac_objext"
10689 # Insert the option either (1) after the last *FLAGS variable, or
10690 # (2) before a word containing "conftest.", or (3) at the end.
10691 # Note that $ac_compile itself does not contain backslashes and begins
10692 # with a dollar sign (not a hyphen), so the echo should work correctly.
10693 lt_compile=`echo "$ac_compile" | $SED \
10694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10696 -e 's:$: $lt_compiler_flag:'`
10697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10698 (eval "$lt_compile" 2>out/conftest.err)
10699 ac_status=$?
10700 cat out/conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10703 then
10704 # The compiler can only warn and ignore the option if not recognized
10705 # So say no if there are warnings
10706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10709 lt_cv_prog_compiler_c_o=yes
10712 chmod u+w . 2>&5
10713 $RM conftest*
10714 # SGI C++ compiler will create directory out/ii_files/ for
10715 # template instantiation
10716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10717 $RM out/* && rmdir out
10718 cd ..
10719 $RM -r conftest
10720 $RM conftest*
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10733 if ${lt_cv_prog_compiler_c_o+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 lt_cv_prog_compiler_c_o=no
10737 $RM -r conftest 2>/dev/null
10738 mkdir conftest
10739 cd conftest
10740 mkdir out
10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10743 lt_compiler_flag="-o out/conftest2.$ac_objext"
10744 # Insert the option either (1) after the last *FLAGS variable, or
10745 # (2) before a word containing "conftest.", or (3) at the end.
10746 # Note that $ac_compile itself does not contain backslashes and begins
10747 # with a dollar sign (not a hyphen), so the echo should work correctly.
10748 lt_compile=`echo "$ac_compile" | $SED \
10749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10751 -e 's:$: $lt_compiler_flag:'`
10752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10753 (eval "$lt_compile" 2>out/conftest.err)
10754 ac_status=$?
10755 cat out/conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10758 then
10759 # The compiler can only warn and ignore the option if not recognized
10760 # So say no if there are warnings
10761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10764 lt_cv_prog_compiler_c_o=yes
10767 chmod u+w . 2>&5
10768 $RM conftest*
10769 # SGI C++ compiler will create directory out/ii_files/ for
10770 # template instantiation
10771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10772 $RM out/* && rmdir out
10773 cd ..
10774 $RM -r conftest
10775 $RM conftest*
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10779 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10784 hard_links="nottested"
10785 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10786 # do not overwrite the value of need_locks provided by the user
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10788 $as_echo_n "checking if we can lock with hard links... " >&6; }
10789 hard_links=yes
10790 $RM conftest*
10791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10792 touch conftest.a
10793 ln conftest.a conftest.b 2>&5 || hard_links=no
10794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10796 $as_echo "$hard_links" >&6; }
10797 if test "$hard_links" = no; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10799 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10800 need_locks=warn
10802 else
10803 need_locks=no
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10814 runpath_var=
10815 allow_undefined_flag=
10816 always_export_symbols=no
10817 archive_cmds=
10818 archive_expsym_cmds=
10819 compiler_needs_object=no
10820 enable_shared_with_static_runtimes=no
10821 export_dynamic_flag_spec=
10822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10823 hardcode_automatic=no
10824 hardcode_direct=no
10825 hardcode_direct_absolute=no
10826 hardcode_libdir_flag_spec=
10827 hardcode_libdir_separator=
10828 hardcode_minus_L=no
10829 hardcode_shlibpath_var=unsupported
10830 inherit_rpath=no
10831 link_all_deplibs=unknown
10832 module_cmds=
10833 module_expsym_cmds=
10834 old_archive_from_new_cmds=
10835 old_archive_from_expsyms_cmds=
10836 thread_safe_flag_spec=
10837 whole_archive_flag_spec=
10838 # include_expsyms should be a list of space-separated symbols to be *always*
10839 # included in the symbol list
10840 include_expsyms=
10841 # exclude_expsyms can be an extended regexp of symbols to exclude
10842 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10844 # as well as any symbol that contains `d'.
10845 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10847 # platforms (ab)use it in PIC code, but their linkers get confused if
10848 # the symbol is explicitly referenced. Since portable code cannot
10849 # rely on this symbol name, it's probably fine to never include it in
10850 # preloaded symbol tables.
10851 # Exclude shared library initialization/finalization symbols.
10852 extract_expsyms_cmds=
10854 case $host_os in
10855 cygwin* | mingw* | pw32* | cegcc*)
10856 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10857 # When not using gcc, we currently assume that we are using
10858 # Microsoft Visual C++.
10859 if test "$GCC" != yes; then
10860 with_gnu_ld=no
10863 interix*)
10864 # we just hope/assume this is gcc and not c89 (= MSVC++)
10865 with_gnu_ld=yes
10867 openbsd*)
10868 with_gnu_ld=no
10870 linux* | k*bsd*-gnu | gnu*)
10871 link_all_deplibs=no
10873 esac
10875 ld_shlibs=yes
10877 # On some targets, GNU ld is compatible enough with the native linker
10878 # that we're better off using the native interface for both.
10879 lt_use_gnu_ld_interface=no
10880 if test "$with_gnu_ld" = yes; then
10881 case $host_os in
10882 aix*)
10883 # The AIX port of GNU ld has always aspired to compatibility
10884 # with the native linker. However, as the warning in the GNU ld
10885 # block says, versions before 2.19.5* couldn't really create working
10886 # shared libraries, regardless of the interface used.
10887 case `$LD -v 2>&1` in
10888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10890 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10892 lt_use_gnu_ld_interface=yes
10894 esac
10897 lt_use_gnu_ld_interface=yes
10899 esac
10902 if test "$lt_use_gnu_ld_interface" = yes; then
10903 # If archive_cmds runs LD, not CC, wlarc should be empty
10904 wlarc='${wl}'
10906 # Set some defaults for GNU ld with shared library support. These
10907 # are reset later if shared libraries are not supported. Putting them
10908 # here allows them to be overridden if necessary.
10909 runpath_var=LD_RUN_PATH
10910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10911 export_dynamic_flag_spec='${wl}--export-dynamic'
10912 # ancient GNU ld didn't support --whole-archive et. al.
10913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10915 else
10916 whole_archive_flag_spec=
10918 supports_anon_versioning=no
10919 case `$LD -v 2>&1` in
10920 *GNU\ gold*) supports_anon_versioning=yes ;;
10921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10924 *\ 2.11.*) ;; # other 2.11 versions
10925 *) supports_anon_versioning=yes ;;
10926 esac
10928 # See if GNU ld supports shared libraries.
10929 case $host_os in
10930 aix[3-9]*)
10931 # On AIX/PPC, the GNU linker is very broken
10932 if test "$host_cpu" != ia64; then
10933 ld_shlibs=no
10934 cat <<_LT_EOF 1>&2
10936 *** Warning: the GNU linker, at least up to release 2.19, is reported
10937 *** to be unable to reliably create shared libraries on AIX.
10938 *** Therefore, libtool is disabling shared libraries support. If you
10939 *** really care for shared libraries, you may want to install binutils
10940 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10941 *** You will then need to restart the configuration process.
10943 _LT_EOF
10947 amigaos*)
10948 case $host_cpu in
10949 powerpc)
10950 # see comment about AmigaOS4 .so support
10951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10952 archive_expsym_cmds=''
10954 m68k)
10955 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)'
10956 hardcode_libdir_flag_spec='-L$libdir'
10957 hardcode_minus_L=yes
10959 esac
10962 beos*)
10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964 allow_undefined_flag=unsupported
10965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10966 # support --undefined. This deserves some investigation. FIXME
10967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968 else
10969 ld_shlibs=no
10973 cygwin* | mingw* | pw32* | cegcc*)
10974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10975 # as there is no search path for DLLs.
10976 hardcode_libdir_flag_spec='-L$libdir'
10977 export_dynamic_flag_spec='${wl}--export-all-symbols'
10978 allow_undefined_flag=unsupported
10979 always_export_symbols=no
10980 enable_shared_with_static_runtimes=yes
10981 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'
10982 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10986 # If the export-symbols file already is a .def file (1st line
10987 # is EXPORTS), use it as is; otherwise, prepend...
10988 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10989 cp $export_symbols $output_objdir/$soname.def;
10990 else
10991 echo EXPORTS > $output_objdir/$soname.def;
10992 cat $export_symbols >> $output_objdir/$soname.def;
10994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10995 else
10996 ld_shlibs=no
11000 haiku*)
11001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11002 link_all_deplibs=yes
11005 interix[3-9]*)
11006 hardcode_direct=no
11007 hardcode_shlibpath_var=no
11008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11009 export_dynamic_flag_spec='${wl}-E'
11010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11011 # Instead, shared libraries are loaded at an image base (0x10000000 by
11012 # default) and relocated if they conflict, which is a slow very memory
11013 # consuming and fragmenting process. To avoid this, we pick a random,
11014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11017 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'
11020 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11021 tmp_diet=no
11022 if test "$host_os" = linux-dietlibc; then
11023 case $cc_basename in
11024 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11025 esac
11027 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11028 && test "$tmp_diet" = no
11029 then
11030 tmp_addflag=' $pic_flag'
11031 tmp_sharedflag='-shared'
11032 case $cc_basename,$host_cpu in
11033 pgcc*) # Portland Group C compiler
11034 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'
11035 tmp_addflag=' $pic_flag'
11037 pgf77* | pgf90* | pgf95* | pgfortran*)
11038 # Portland Group f77 and f90 compilers
11039 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'
11040 tmp_addflag=' $pic_flag -Mnomain' ;;
11041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11042 tmp_addflag=' -i_dynamic' ;;
11043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11044 tmp_addflag=' -i_dynamic -nofor_main' ;;
11045 ifc* | ifort*) # Intel Fortran compiler
11046 tmp_addflag=' -nofor_main' ;;
11047 lf95*) # Lahey Fortran 8.1
11048 whole_archive_flag_spec=
11049 tmp_sharedflag='--shared' ;;
11050 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11051 tmp_sharedflag='-qmkshrobj'
11052 tmp_addflag= ;;
11053 nvcc*) # Cuda Compiler Driver 2.2
11054 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'
11055 compiler_needs_object=yes
11057 esac
11058 case `$CC -V 2>&1 | sed 5q` in
11059 *Sun\ C*) # Sun C 5.9
11060 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'
11061 compiler_needs_object=yes
11062 tmp_sharedflag='-G' ;;
11063 *Sun\ F*) # Sun Fortran 8.3
11064 tmp_sharedflag='-G' ;;
11065 esac
11066 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 if test "x$supports_anon_versioning" = xyes; then
11069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071 echo "local: *; };" >> $output_objdir/$libname.ver~
11072 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11075 case $cc_basename in
11076 xlf* | bgf* | bgxlf* | mpixlf*)
11077 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11078 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11080 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11081 if test "x$supports_anon_versioning" = xyes; then
11082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11084 echo "local: *; };" >> $output_objdir/$libname.ver~
11085 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11088 esac
11089 else
11090 ld_shlibs=no
11094 netbsd* | netbsdelf*-gnu)
11095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11096 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11097 wlarc=
11098 else
11099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11100 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11104 solaris*)
11105 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11106 ld_shlibs=no
11107 cat <<_LT_EOF 1>&2
11109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11110 *** create shared libraries on Solaris systems. Therefore, libtool
11111 *** is disabling shared libraries support. We urge you to upgrade GNU
11112 *** binutils to release 2.9.1 or newer. Another option is to modify
11113 *** your PATH or compiler configuration so that the native linker is
11114 *** used, and then restart.
11116 _LT_EOF
11117 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11120 else
11121 ld_shlibs=no
11125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11126 case `$LD -v 2>&1` in
11127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11128 ld_shlibs=no
11129 cat <<_LT_EOF 1>&2
11131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11132 *** reliably create shared libraries on SCO systems. Therefore, libtool
11133 *** is disabling shared libraries support. We urge you to upgrade GNU
11134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11135 *** your PATH or compiler configuration so that the native linker is
11136 *** used, and then restart.
11138 _LT_EOF
11141 # For security reasons, it is highly recommended that you always
11142 # use absolute paths for naming shared libraries, and exclude the
11143 # DT_RUNPATH tag from executables and libraries. But doing so
11144 # requires that you compile everything twice, which is a pain.
11145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11149 else
11150 ld_shlibs=no
11153 esac
11156 sunos4*)
11157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11158 wlarc=
11159 hardcode_direct=yes
11160 hardcode_shlibpath_var=no
11164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11167 else
11168 ld_shlibs=no
11171 esac
11173 if test "$ld_shlibs" = no; then
11174 runpath_var=
11175 hardcode_libdir_flag_spec=
11176 export_dynamic_flag_spec=
11177 whole_archive_flag_spec=
11179 else
11180 # PORTME fill in a description of your system's linker (not GNU ld)
11181 case $host_os in
11182 aix3*)
11183 allow_undefined_flag=unsupported
11184 always_export_symbols=yes
11185 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'
11186 # Note: this linker hardcodes the directories in LIBPATH if there
11187 # are no directories specified by -L.
11188 hardcode_minus_L=yes
11189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11190 # Neither direct hardcoding nor static linking is supported with a
11191 # broken collect2.
11192 hardcode_direct=unsupported
11196 aix[4-9]*)
11197 if test "$host_cpu" = ia64; then
11198 # On IA64, the linker does run time linking by default, so we don't
11199 # have to do anything special.
11200 aix_use_runtimelinking=no
11201 exp_sym_flag='-Bexport'
11202 no_entry_flag=""
11203 else
11204 # If we're using GNU nm, then we don't want the "-C" option.
11205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11206 # Also, AIX nm treats weak defined symbols like other global
11207 # defined symbols, whereas GNU nm marks them as "W".
11208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11209 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'
11210 else
11211 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'
11213 aix_use_runtimelinking=no
11215 # Test if we are trying to use run time linking or normal
11216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11217 # need to do runtime linking.
11218 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11219 for ld_flag in $LDFLAGS; do
11220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11221 aix_use_runtimelinking=yes
11222 break
11224 done
11226 esac
11228 exp_sym_flag='-bexport'
11229 no_entry_flag='-bnoentry'
11232 # When large executables or shared objects are built, AIX ld can
11233 # have problems creating the table of contents. If linking a library
11234 # or program results in "error TOC overflow" add -mminimal-toc to
11235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11238 archive_cmds=''
11239 hardcode_direct=yes
11240 hardcode_direct_absolute=yes
11241 hardcode_libdir_separator=':'
11242 link_all_deplibs=yes
11243 file_list_spec='${wl}-f,'
11245 if test "$GCC" = yes; then
11246 case $host_os in aix4.[012]|aix4.[012].*)
11247 # We only want to do this on AIX 4.2 and lower, the check
11248 # below for broken collect2 doesn't work under 4.3+
11249 collect2name=`${CC} -print-prog-name=collect2`
11250 if test -f "$collect2name" &&
11251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11252 then
11253 # We have reworked collect2
11255 else
11256 # We have old collect2
11257 hardcode_direct=unsupported
11258 # It fails to find uninstalled libraries when the uninstalled
11259 # path is not listed in the libpath. Setting hardcode_minus_L
11260 # to unsupported forces relinking
11261 hardcode_minus_L=yes
11262 hardcode_libdir_flag_spec='-L$libdir'
11263 hardcode_libdir_separator=
11266 esac
11267 shared_flag='-shared'
11268 if test "$aix_use_runtimelinking" = yes; then
11269 shared_flag="$shared_flag "'${wl}-G'
11271 link_all_deplibs=no
11272 else
11273 # not using gcc
11274 if test "$host_cpu" = ia64; then
11275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11276 # chokes on -Wl,-G. The following line is correct:
11277 shared_flag='-G'
11278 else
11279 if test "$aix_use_runtimelinking" = yes; then
11280 shared_flag='${wl}-G'
11281 else
11282 shared_flag='${wl}-bM:SRE'
11287 export_dynamic_flag_spec='${wl}-bexpall'
11288 # It seems that -bexpall does not export symbols beginning with
11289 # underscore (_), so it is better to generate a list of symbols to export.
11290 always_export_symbols=yes
11291 if test "$aix_use_runtimelinking" = yes; then
11292 # Warning - without using the other runtime loading flags (-brtl),
11293 # -berok will link without error, but may produce a broken library.
11294 allow_undefined_flag='-berok'
11295 # Determine the default libpath from the value encoded in an
11296 # empty executable.
11297 if test "${lt_cv_aix_libpath+set}" = set; then
11298 aix_libpath=$lt_cv_aix_libpath
11299 else
11300 if ${lt_cv_aix_libpath_+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11307 main ()
11311 return 0;
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11316 lt_aix_libpath_sed='
11317 /Import File Strings/,/^$/ {
11318 /^0/ {
11319 s/^0 *\([^ ]*\) *$/\1/
11323 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11324 # Check for a 64-bit object if we didn't find anything.
11325 if test -z "$lt_cv_aix_libpath_"; then
11326 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 if test -z "$lt_cv_aix_libpath_"; then
11332 lt_cv_aix_libpath_="/usr/lib:/lib"
11337 aix_libpath=$lt_cv_aix_libpath_
11340 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11341 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"
11342 else
11343 if test "$host_cpu" = ia64; then
11344 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11345 allow_undefined_flag="-z nodefs"
11346 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"
11347 else
11348 # Determine the default libpath from the value encoded in an
11349 # empty executable.
11350 if test "${lt_cv_aix_libpath+set}" = set; then
11351 aix_libpath=$lt_cv_aix_libpath
11352 else
11353 if ${lt_cv_aix_libpath_+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11360 main ()
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11369 lt_aix_libpath_sed='
11370 /Import File Strings/,/^$/ {
11371 /^0/ {
11372 s/^0 *\([^ ]*\) *$/\1/
11376 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11377 # Check for a 64-bit object if we didn't find anything.
11378 if test -z "$lt_cv_aix_libpath_"; then
11379 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11382 rm -f core conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 if test -z "$lt_cv_aix_libpath_"; then
11385 lt_cv_aix_libpath_="/usr/lib:/lib"
11390 aix_libpath=$lt_cv_aix_libpath_
11393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11394 # Warning - without using the other run time loading flags,
11395 # -berok will link without error, but may produce a broken library.
11396 no_undefined_flag=' ${wl}-bernotok'
11397 allow_undefined_flag=' ${wl}-berok'
11398 if test "$with_gnu_ld" = yes; then
11399 # We only use this code for GNU lds that support --whole-archive.
11400 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11401 else
11402 # Exported symbols can be pulled into shared objects from archives
11403 whole_archive_flag_spec='$convenience'
11405 archive_cmds_need_lc=yes
11406 # This is similar to how AIX traditionally builds its shared libraries.
11407 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'
11412 amigaos*)
11413 case $host_cpu in
11414 powerpc)
11415 # see comment about AmigaOS4 .so support
11416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417 archive_expsym_cmds=''
11419 m68k)
11420 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)'
11421 hardcode_libdir_flag_spec='-L$libdir'
11422 hardcode_minus_L=yes
11424 esac
11427 bsdi[45]*)
11428 export_dynamic_flag_spec=-rdynamic
11431 cygwin* | mingw* | pw32* | cegcc*)
11432 # When not using gcc, we currently assume that we are using
11433 # Microsoft Visual C++.
11434 # hardcode_libdir_flag_spec is actually meaningless, as there is
11435 # no search path for DLLs.
11436 case $cc_basename in
11437 cl*)
11438 # Native MSVC
11439 hardcode_libdir_flag_spec=' '
11440 allow_undefined_flag=unsupported
11441 always_export_symbols=yes
11442 file_list_spec='@'
11443 # Tell ltmain to make .lib files, not .a files.
11444 libext=lib
11445 # Tell ltmain to make .dll files, not .so files.
11446 shrext_cmds=".dll"
11447 # FIXME: Setting linknames here is a bad hack.
11448 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11449 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11450 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11451 else
11452 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11454 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11455 linknames='
11456 # The linker will not automatically build a static lib if we build a DLL.
11457 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11458 enable_shared_with_static_runtimes=yes
11459 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11461 # Don't use ranlib
11462 old_postinstall_cmds='chmod 644 $oldlib'
11463 postlink_cmds='lt_outputfile="@OUTPUT@"~
11464 lt_tool_outputfile="@TOOL_OUTPUT@"~
11465 case $lt_outputfile in
11466 *.exe|*.EXE) ;;
11468 lt_outputfile="$lt_outputfile.exe"
11469 lt_tool_outputfile="$lt_tool_outputfile.exe"
11471 esac~
11472 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11473 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11474 $RM "$lt_outputfile.manifest";
11478 # Assume MSVC wrapper
11479 hardcode_libdir_flag_spec=' '
11480 allow_undefined_flag=unsupported
11481 # Tell ltmain to make .lib files, not .a files.
11482 libext=lib
11483 # Tell ltmain to make .dll files, not .so files.
11484 shrext_cmds=".dll"
11485 # FIXME: Setting linknames here is a bad hack.
11486 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11487 # The linker will automatically build a .lib file if we build a DLL.
11488 old_archive_from_new_cmds='true'
11489 # FIXME: Should let the user specify the lib program.
11490 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11491 enable_shared_with_static_runtimes=yes
11493 esac
11496 darwin* | rhapsody*)
11499 archive_cmds_need_lc=no
11500 hardcode_direct=no
11501 hardcode_automatic=yes
11502 hardcode_shlibpath_var=unsupported
11503 if test "$lt_cv_ld_force_load" = "yes"; then
11504 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\"`'
11506 else
11507 whole_archive_flag_spec=''
11509 link_all_deplibs=yes
11510 allow_undefined_flag="$_lt_dar_allow_undefined"
11511 case $cc_basename in
11512 ifort*) _lt_dar_can_shared=yes ;;
11513 *) _lt_dar_can_shared=$GCC ;;
11514 esac
11515 if test "$_lt_dar_can_shared" = "yes"; then
11516 output_verbose_link_cmd=func_echo_all
11517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11519 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}"
11520 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}"
11522 else
11523 ld_shlibs=no
11528 dgux*)
11529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11530 hardcode_libdir_flag_spec='-L$libdir'
11531 hardcode_shlibpath_var=no
11534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11535 # support. Future versions do this automatically, but an explicit c++rt0.o
11536 # does not break anything, and helps significantly (at the cost of a little
11537 # extra space).
11538 freebsd2.2*)
11539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11540 hardcode_libdir_flag_spec='-R$libdir'
11541 hardcode_direct=yes
11542 hardcode_shlibpath_var=no
11545 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11546 freebsd2.*)
11547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11548 hardcode_direct=yes
11549 hardcode_minus_L=yes
11550 hardcode_shlibpath_var=no
11553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11554 freebsd* | dragonfly*)
11555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11556 hardcode_libdir_flag_spec='-R$libdir'
11557 hardcode_direct=yes
11558 hardcode_shlibpath_var=no
11561 hpux9*)
11562 if test "$GCC" = yes; then
11563 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'
11564 else
11565 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'
11567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11568 hardcode_libdir_separator=:
11569 hardcode_direct=yes
11571 # hardcode_minus_L: Not really in the search PATH,
11572 # but as the default location of the library.
11573 hardcode_minus_L=yes
11574 export_dynamic_flag_spec='${wl}-E'
11577 hpux10*)
11578 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11579 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11580 else
11581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11583 if test "$with_gnu_ld" = no; then
11584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator=:
11586 hardcode_direct=yes
11587 hardcode_direct_absolute=yes
11588 export_dynamic_flag_spec='${wl}-E'
11589 # hardcode_minus_L: Not really in the search PATH,
11590 # but as the default location of the library.
11591 hardcode_minus_L=yes
11595 hpux11*)
11596 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11597 case $host_cpu in
11598 hppa*64*)
11599 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 ia64*)
11602 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11607 esac
11608 else
11609 case $host_cpu in
11610 hppa*64*)
11611 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11613 ia64*)
11614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11618 # Older versions of the 11.00 compiler do not understand -b yet
11619 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11621 $as_echo_n "checking if $CC understands -b... " >&6; }
11622 if ${lt_cv_prog_compiler__b+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 lt_cv_prog_compiler__b=no
11626 save_LDFLAGS="$LDFLAGS"
11627 LDFLAGS="$LDFLAGS -b"
11628 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11630 # The linker can only warn and ignore the option if not recognized
11631 # So say no if there are warnings
11632 if test -s conftest.err; then
11633 # Append any errors to the config.log.
11634 cat conftest.err 1>&5
11635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11637 if diff conftest.exp conftest.er2 >/dev/null; then
11638 lt_cv_prog_compiler__b=yes
11640 else
11641 lt_cv_prog_compiler__b=yes
11644 $RM -r conftest*
11645 LDFLAGS="$save_LDFLAGS"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11649 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11651 if test x"$lt_cv_prog_compiler__b" = xyes; then
11652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11653 else
11654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11658 esac
11660 if test "$with_gnu_ld" = no; then
11661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11662 hardcode_libdir_separator=:
11664 case $host_cpu in
11665 hppa*64*|ia64*)
11666 hardcode_direct=no
11667 hardcode_shlibpath_var=no
11670 hardcode_direct=yes
11671 hardcode_direct_absolute=yes
11672 export_dynamic_flag_spec='${wl}-E'
11674 # hardcode_minus_L: Not really in the search PATH,
11675 # but as the default location of the library.
11676 hardcode_minus_L=yes
11678 esac
11682 irix5* | irix6* | nonstopux*)
11683 if test "$GCC" = yes; then
11684 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'
11685 # Try to use the -exported_symbol ld option, if it does not
11686 # work, assume that -exports_file does not work either and
11687 # implicitly export all symbols.
11688 # This should be the same for all languages, so no per-tag cache variable.
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11690 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11691 if ${lt_cv_irix_exported_symbol+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 save_LDFLAGS="$LDFLAGS"
11695 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 int foo (void) { return 0; }
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 lt_cv_irix_exported_symbol=yes
11702 else
11703 lt_cv_irix_exported_symbol=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LDFLAGS="$save_LDFLAGS"
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11710 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11711 if test "$lt_cv_irix_exported_symbol" = yes; then
11712 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'
11714 else
11715 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'
11716 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'
11718 archive_cmds_need_lc='no'
11719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11720 hardcode_libdir_separator=:
11721 inherit_rpath=yes
11722 link_all_deplibs=yes
11725 netbsd* | netbsdelf*-gnu)
11726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11728 else
11729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11731 hardcode_libdir_flag_spec='-R$libdir'
11732 hardcode_direct=yes
11733 hardcode_shlibpath_var=no
11736 newsos6)
11737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11738 hardcode_direct=yes
11739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11740 hardcode_libdir_separator=:
11741 hardcode_shlibpath_var=no
11744 *nto* | *qnx*)
11747 openbsd*)
11748 if test -f /usr/libexec/ld.so; then
11749 hardcode_direct=yes
11750 hardcode_shlibpath_var=no
11751 hardcode_direct_absolute=yes
11752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11754 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11756 export_dynamic_flag_spec='${wl}-E'
11757 else
11758 case $host_os in
11759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_libdir_flag_spec='-R$libdir'
11764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11767 esac
11769 else
11770 ld_shlibs=no
11774 os2*)
11775 hardcode_libdir_flag_spec='-L$libdir'
11776 hardcode_minus_L=yes
11777 allow_undefined_flag=unsupported
11778 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'
11779 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11782 osf3*)
11783 if test "$GCC" = yes; then
11784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11785 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'
11786 else
11787 allow_undefined_flag=' -expect_unresolved \*'
11788 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'
11790 archive_cmds_need_lc='no'
11791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11792 hardcode_libdir_separator=:
11795 osf4* | osf5*) # as osf3* with the addition of -msym flag
11796 if test "$GCC" = yes; then
11797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11798 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'
11799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11800 else
11801 allow_undefined_flag=' -expect_unresolved \*'
11802 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'
11803 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~
11804 $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'
11806 # Both c and cxx compiler support -rpath directly
11807 hardcode_libdir_flag_spec='-rpath $libdir'
11809 archive_cmds_need_lc='no'
11810 hardcode_libdir_separator=:
11813 solaris*)
11814 no_undefined_flag=' -z defs'
11815 if test "$GCC" = yes; then
11816 wlarc='${wl}'
11817 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11819 $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'
11820 else
11821 case `$CC -V 2>&1` in
11822 *"Compilers 5.0"*)
11823 wlarc=''
11824 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11829 wlarc='${wl}'
11830 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11834 esac
11836 hardcode_libdir_flag_spec='-R$libdir'
11837 hardcode_shlibpath_var=no
11838 case $host_os in
11839 solaris2.[0-5] | solaris2.[0-5].*) ;;
11841 # The compiler driver will combine and reorder linker options,
11842 # but understands `-z linker_flag'. GCC discards it without `$wl',
11843 # but is careful enough not to reorder.
11844 # Supported since Solaris 2.6 (maybe 2.5.1?)
11845 if test "$GCC" = yes; then
11846 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11847 else
11848 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11851 esac
11852 link_all_deplibs=yes
11855 sunos4*)
11856 if test "x$host_vendor" = xsequent; then
11857 # Use $CC to link under sequent, because it throws in some extra .o
11858 # files that make .init and .fini sections work.
11859 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11860 else
11861 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11863 hardcode_libdir_flag_spec='-L$libdir'
11864 hardcode_direct=yes
11865 hardcode_minus_L=yes
11866 hardcode_shlibpath_var=no
11869 sysv4)
11870 case $host_vendor in
11871 sni)
11872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11873 hardcode_direct=yes # is this really true???
11875 siemens)
11876 ## LD is ld it makes a PLAMLIB
11877 ## CC just makes a GrossModule.
11878 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11879 reload_cmds='$CC -r -o $output$reload_objs'
11880 hardcode_direct=no
11882 motorola)
11883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11884 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11886 esac
11887 runpath_var='LD_RUN_PATH'
11888 hardcode_shlibpath_var=no
11891 sysv4.3*)
11892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11893 hardcode_shlibpath_var=no
11894 export_dynamic_flag_spec='-Bexport'
11897 sysv4*MP*)
11898 if test -d /usr/nec; then
11899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 hardcode_shlibpath_var=no
11901 runpath_var=LD_RUN_PATH
11902 hardcode_runpath_var=yes
11903 ld_shlibs=yes
11907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11908 no_undefined_flag='${wl}-z,text'
11909 archive_cmds_need_lc=no
11910 hardcode_shlibpath_var=no
11911 runpath_var='LD_RUN_PATH'
11913 if test "$GCC" = yes; then
11914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916 else
11917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 sysv5* | sco3.2v5* | sco5v6*)
11923 # Note: We can NOT use -z defs as we might desire, because we do not
11924 # link with -lc, and that would cause any symbols used from libc to
11925 # always be unresolved, which means just about no library would
11926 # ever link correctly. If we're not using GNU ld we use -z text
11927 # though, which does catch some bad symbols but isn't as heavy-handed
11928 # as -z defs.
11929 no_undefined_flag='${wl}-z,text'
11930 allow_undefined_flag='${wl}-z,nodefs'
11931 archive_cmds_need_lc=no
11932 hardcode_shlibpath_var=no
11933 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11934 hardcode_libdir_separator=':'
11935 link_all_deplibs=yes
11936 export_dynamic_flag_spec='${wl}-Bexport'
11937 runpath_var='LD_RUN_PATH'
11939 if test "$GCC" = yes; then
11940 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 else
11943 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 uts4*)
11949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11950 hardcode_libdir_flag_spec='-L$libdir'
11951 hardcode_shlibpath_var=no
11955 ld_shlibs=no
11957 esac
11959 if test x$host_vendor = xsni; then
11960 case $host in
11961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11962 export_dynamic_flag_spec='${wl}-Blargedynsym'
11964 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11969 $as_echo "$ld_shlibs" >&6; }
11970 test "$ld_shlibs" = no && can_build_shared=no
11972 with_gnu_ld=$with_gnu_ld
11989 # Do we need to explicitly link libc?
11991 case "x$archive_cmds_need_lc" in
11992 x|xyes)
11993 # Assume -lc should be added
11994 archive_cmds_need_lc=yes
11996 if test "$enable_shared" = yes && test "$GCC" = yes; then
11997 case $archive_cmds in
11998 *'~'*)
11999 # FIXME: we may have to deal with multi-command sequences.
12001 '$CC '*)
12002 # Test whether the compiler implicitly links with -lc since on some
12003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12004 # to ld, don't add -lc before -lgcc.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12006 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12007 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 $RM conftest*
12011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12014 (eval $ac_compile) 2>&5
12015 ac_status=$?
12016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017 test $ac_status = 0; } 2>conftest.err; then
12018 soname=conftest
12019 lib=conftest
12020 libobjs=conftest.$ac_objext
12021 deplibs=
12022 wl=$lt_prog_compiler_wl
12023 pic_flag=$lt_prog_compiler_pic
12024 compiler_flags=-v
12025 linker_flags=-v
12026 verstring=
12027 output_objdir=.
12028 libname=conftest
12029 lt_save_allow_undefined_flag=$allow_undefined_flag
12030 allow_undefined_flag=
12031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12032 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12033 ac_status=$?
12034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12035 test $ac_status = 0; }
12036 then
12037 lt_cv_archive_cmds_need_lc=no
12038 else
12039 lt_cv_archive_cmds_need_lc=yes
12041 allow_undefined_flag=$lt_save_allow_undefined_flag
12042 else
12043 cat conftest.err 1>&5
12045 $RM conftest*
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12049 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12050 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12052 esac
12055 esac
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12211 if test "$GCC" = yes; then
12212 case $host_os in
12213 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12214 *) lt_awk_arg="/^libraries:/" ;;
12215 esac
12216 case $host_os in
12217 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12218 *) lt_sed_strip_eq="s,=/,/,g" ;;
12219 esac
12220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12221 case $lt_search_path_spec in
12222 *\;*)
12223 # if the path contains ";" then we assume it to be the separator
12224 # otherwise default to the standard path separator (i.e. ":") - it is
12225 # assumed that no part of a normal pathname contains ";" but that should
12226 # okay in the real world where ";" in dirpaths is itself problematic.
12227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12232 esac
12233 # Ok, now we have the path, separated by spaces, we can step through it
12234 # and add multilib dir if necessary.
12235 lt_tmp_lt_search_path_spec=
12236 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12237 for lt_sys_path in $lt_search_path_spec; do
12238 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12240 else
12241 test -d "$lt_sys_path" && \
12242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12244 done
12245 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12246 BEGIN {RS=" "; FS="/|\n";} {
12247 lt_foo="";
12248 lt_count=0;
12249 for (lt_i = NF; lt_i > 0; lt_i--) {
12250 if ($lt_i != "" && $lt_i != ".") {
12251 if ($lt_i == "..") {
12252 lt_count++;
12253 } else {
12254 if (lt_count == 0) {
12255 lt_foo="/" $lt_i lt_foo;
12256 } else {
12257 lt_count--;
12262 if (lt_foo != "") { lt_freq[lt_foo]++; }
12263 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12265 # AWK program above erroneously prepends '/' to C:/dos/paths
12266 # for these hosts.
12267 case $host_os in
12268 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12269 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12270 esac
12271 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12272 else
12273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12275 library_names_spec=
12276 libname_spec='lib$name'
12277 soname_spec=
12278 shrext_cmds=".so"
12279 postinstall_cmds=
12280 postuninstall_cmds=
12281 finish_cmds=
12282 finish_eval=
12283 shlibpath_var=
12284 shlibpath_overrides_runpath=unknown
12285 version_type=none
12286 dynamic_linker="$host_os ld.so"
12287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12288 need_lib_prefix=unknown
12289 hardcode_into_libs=no
12291 # when you set need_version to no, make sure it does not cause -set_version
12292 # flags to be left without arguments
12293 need_version=unknown
12295 case $host_os in
12296 aix3*)
12297 version_type=linux # correct to gnu/linux during the next big refactor
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12299 shlibpath_var=LIBPATH
12301 # AIX 3 has no versioning support, so we append a major version to the name.
12302 soname_spec='${libname}${release}${shared_ext}$major'
12305 aix[4-9]*)
12306 version_type=linux # correct to gnu/linux during the next big refactor
12307 need_lib_prefix=no
12308 need_version=no
12309 hardcode_into_libs=yes
12310 if test "$host_cpu" = ia64; then
12311 # AIX 5 supports IA64
12312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 else
12315 # With GCC up to 2.95.x, collect2 would create an import file
12316 # for dependence libraries. The import file would start with
12317 # the line `#! .'. This would cause the generated library to
12318 # depend on `.', always an invalid library. This was fixed in
12319 # development snapshots of GCC prior to 3.0.
12320 case $host_os in
12321 aix4 | aix4.[01] | aix4.[01].*)
12322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12323 echo ' yes '
12324 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12326 else
12327 can_build_shared=no
12330 esac
12331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12332 # soname into executable. Probably we can add versioning support to
12333 # collect2, so additional links can be useful in future.
12334 if test "$aix_use_runtimelinking" = yes; then
12335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12336 # instead of lib<name>.a to let people know that these are not
12337 # typical AIX shared libraries.
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 else
12340 # We preserve .a as extension for shared libraries through AIX4.2
12341 # and later when we are not doing run time linking.
12342 library_names_spec='${libname}${release}.a $libname.a'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LIBPATH
12349 amigaos*)
12350 case $host_cpu in
12351 powerpc)
12352 # Since July 2007 AmigaOS4 officially supports .so libraries.
12353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 m68k)
12357 library_names_spec='$libname.ixlibrary $libname.a'
12358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12359 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'
12361 esac
12364 beos*)
12365 library_names_spec='${libname}${shared_ext}'
12366 dynamic_linker="$host_os ld.so"
12367 shlibpath_var=LIBRARY_PATH
12370 bsdi[45]*)
12371 version_type=linux # correct to gnu/linux during the next big refactor
12372 need_version=no
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12379 # the default ld.so.conf also contains /usr/contrib/lib and
12380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12381 # libtool to hard-code these into programs
12384 cygwin* | mingw* | pw32* | cegcc*)
12385 version_type=windows
12386 shrext_cmds=".dll"
12387 need_version=no
12388 need_lib_prefix=no
12390 case $GCC,$cc_basename in
12391 yes,*)
12392 # gcc
12393 library_names_spec='$libname.dll.a'
12394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12395 postinstall_cmds='base_file=`basename \${file}`~
12396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12397 dldir=$destdir/`dirname \$dlpath`~
12398 test -d \$dldir || mkdir -p \$dldir~
12399 $install_prog $dir/$dlname \$dldir/$dlname~
12400 chmod a+x \$dldir/$dlname~
12401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12405 dlpath=$dir/\$dldll~
12406 $RM \$dlpath'
12407 shlibpath_overrides_runpath=yes
12409 case $host_os in
12410 cygwin*)
12411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12416 mingw* | cegcc*)
12417 # MinGW DLLs use traditional 'lib' prefix
12418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12420 pw32*)
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12424 esac
12425 dynamic_linker='Win32 ld.exe'
12428 *,cl*)
12429 # Native MSVC
12430 libname_spec='$name'
12431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12432 library_names_spec='${libname}.dll.lib'
12434 case $build_os in
12435 mingw*)
12436 sys_lib_search_path_spec=
12437 lt_save_ifs=$IFS
12438 IFS=';'
12439 for lt_path in $LIB
12441 IFS=$lt_save_ifs
12442 # Let DOS variable expansion print the short 8.3 style file name.
12443 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12444 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12445 done
12446 IFS=$lt_save_ifs
12447 # Convert to MSYS style.
12448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12450 cygwin*)
12451 # Convert to unix form, then to dos form, then back to unix form
12452 # but this time dos style (no spaces!) so that the unix form looks
12453 # like /cygdrive/c/PROGRA~1:/cygdr...
12454 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12455 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12456 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12459 sys_lib_search_path_spec="$LIB"
12460 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12461 # It is most probably a Windows format PATH.
12462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12463 else
12464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12466 # FIXME: find the short name or the path components, as spaces are
12467 # common. (e.g. "Program Files" -> "PROGRA~1")
12469 esac
12471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12472 postinstall_cmds='base_file=`basename \${file}`~
12473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12474 dldir=$destdir/`dirname \$dlpath`~
12475 test -d \$dldir || mkdir -p \$dldir~
12476 $install_prog $dir/$dlname \$dldir/$dlname'
12477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12478 dlpath=$dir/\$dldll~
12479 $RM \$dlpath'
12480 shlibpath_overrides_runpath=yes
12481 dynamic_linker='Win32 link.exe'
12485 # Assume MSVC wrapper
12486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12487 dynamic_linker='Win32 ld.exe'
12489 esac
12490 # FIXME: first we should search . and the directory the executable is in
12491 shlibpath_var=PATH
12494 darwin* | rhapsody*)
12495 dynamic_linker="$host_os dyld"
12496 version_type=darwin
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12500 soname_spec='${libname}${release}${major}$shared_ext'
12501 shlibpath_overrides_runpath=yes
12502 shlibpath_var=DYLD_LIBRARY_PATH
12503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12509 dgux*)
12510 version_type=linux # correct to gnu/linux during the next big refactor
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12514 soname_spec='${libname}${release}${shared_ext}$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12518 freebsd* | dragonfly*)
12519 # DragonFly does not have aout. When/if they implement a new
12520 # versioning mechanism, adjust this.
12521 if test -x /usr/bin/objformat; then
12522 objformat=`/usr/bin/objformat`
12523 else
12524 case $host_os in
12525 freebsd[23].*) objformat=aout ;;
12526 *) objformat=elf ;;
12527 esac
12529 version_type=freebsd-$objformat
12530 case $version_type in
12531 freebsd-elf*)
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12533 need_version=no
12534 need_lib_prefix=no
12536 freebsd-*)
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12538 need_version=yes
12540 esac
12541 shlibpath_var=LD_LIBRARY_PATH
12542 case $host_os in
12543 freebsd2.*)
12544 shlibpath_overrides_runpath=yes
12546 freebsd3.[01]* | freebsdelf3.[01]*)
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12552 shlibpath_overrides_runpath=no
12553 hardcode_into_libs=yes
12555 *) # from 4.6 on, and DragonFly
12556 shlibpath_overrides_runpath=yes
12557 hardcode_into_libs=yes
12559 esac
12562 haiku*)
12563 version_type=linux # correct to gnu/linux during the next big refactor
12564 need_lib_prefix=no
12565 need_version=no
12566 dynamic_linker="$host_os runtime_loader"
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 shlibpath_var=LIBRARY_PATH
12570 shlibpath_overrides_runpath=yes
12571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12572 hardcode_into_libs=yes
12575 hpux9* | hpux10* | hpux11*)
12576 # Give a soname corresponding to the major version so that dld.sl refuses to
12577 # link against other versions.
12578 version_type=sunos
12579 need_lib_prefix=no
12580 need_version=no
12581 case $host_cpu in
12582 ia64*)
12583 shrext_cmds='.so'
12584 hardcode_into_libs=yes
12585 dynamic_linker="$host_os dld.so"
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 if test "X$HPUX_IA64_MODE" = X32; then
12591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12592 else
12593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12597 hppa*64*)
12598 shrext_cmds='.sl'
12599 hardcode_into_libs=yes
12600 dynamic_linker="$host_os dld.sl"
12601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12609 shrext_cmds='.sl'
12610 dynamic_linker="$host_os dld.sl"
12611 shlibpath_var=SHLIB_PATH
12612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614 soname_spec='${libname}${release}${shared_ext}$major'
12616 esac
12617 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12618 postinstall_cmds='chmod 555 $lib'
12619 # or fails outright, so override atomically:
12620 install_override_mode=555
12623 interix[3-9]*)
12624 version_type=linux # correct to gnu/linux during the next big refactor
12625 need_lib_prefix=no
12626 need_version=no
12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12628 soname_spec='${libname}${release}${shared_ext}$major'
12629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=no
12632 hardcode_into_libs=yes
12635 irix5* | irix6* | nonstopux*)
12636 case $host_os in
12637 nonstopux*) version_type=nonstopux ;;
12639 if test "$lt_cv_prog_gnu_ld" = yes; then
12640 version_type=linux # correct to gnu/linux during the next big refactor
12641 else
12642 version_type=irix
12643 fi ;;
12644 esac
12645 need_lib_prefix=no
12646 need_version=no
12647 soname_spec='${libname}${release}${shared_ext}$major'
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12649 case $host_os in
12650 irix5* | nonstopux*)
12651 libsuff= shlibsuff=
12654 case $LD in # libtool.m4 will add one of these switches to LD
12655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12656 libsuff= shlibsuff= libmagic=32-bit;;
12657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12658 libsuff=32 shlibsuff=N32 libmagic=N32;;
12659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12661 *) libsuff= shlibsuff= libmagic=never-match;;
12662 esac
12664 esac
12665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12666 shlibpath_overrides_runpath=no
12667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12669 hardcode_into_libs=yes
12672 # No shared lib support for Linux oldld, aout, or coff.
12673 linux*oldld* | linux*aout* | linux*coff*)
12674 dynamic_linker=no
12677 # This must be glibc/ELF.
12678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12679 version_type=linux # correct to gnu/linux during the next big refactor
12680 need_lib_prefix=no
12681 need_version=no
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=no
12688 # Some binutils ld are patched to set DT_RUNPATH
12689 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 lt_cv_shlibpath_overrides_runpath=no
12693 save_LDFLAGS=$LDFLAGS
12694 save_libdir=$libdir
12695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12701 main ()
12705 return 0;
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"; then :
12709 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12710 lt_cv_shlibpath_overrides_runpath=yes
12713 rm -f core conftest.err conftest.$ac_objext \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LDFLAGS=$save_LDFLAGS
12716 libdir=$save_libdir
12720 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12722 # This implies no fast_install, which is unacceptable.
12723 # Some rework will be needed to allow for fast_install
12724 # before this can be enabled.
12725 hardcode_into_libs=yes
12727 # Append ld.so.conf contents to the search path
12728 if test -f /etc/ld.so.conf; then
12729 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' ' '`
12730 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12733 # We used to test for /lib/ld.so.1 and disable shared libraries on
12734 # powerpc, because MkLinux only supported shared libraries with the
12735 # GNU dynamic linker. Since this was broken with cross compilers,
12736 # most powerpc-linux boxes support dynamic linking these days and
12737 # people can always --disable-shared, the test was removed, and we
12738 # assume the GNU/Linux dynamic linker is in use.
12739 dynamic_linker='GNU/Linux ld.so'
12742 netbsdelf*-gnu)
12743 version_type=linux
12744 need_lib_prefix=no
12745 need_version=no
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=no
12750 hardcode_into_libs=yes
12751 dynamic_linker='NetBSD ld.elf_so'
12754 netbsd*)
12755 version_type=sunos
12756 need_lib_prefix=no
12757 need_version=no
12758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12761 dynamic_linker='NetBSD (a.out) ld.so'
12762 else
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 dynamic_linker='NetBSD ld.elf_so'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=yes
12769 hardcode_into_libs=yes
12772 newsos6)
12773 version_type=linux # correct to gnu/linux during the next big refactor
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 shlibpath_overrides_runpath=yes
12779 *nto* | *qnx*)
12780 version_type=qnx
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784 soname_spec='${libname}${release}${shared_ext}$major'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath=no
12787 hardcode_into_libs=yes
12788 dynamic_linker='ldqnx.so'
12791 openbsd*)
12792 version_type=sunos
12793 sys_lib_dlsearch_path_spec="/usr/lib"
12794 need_lib_prefix=no
12795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12796 case $host_os in
12797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12798 *) need_version=no ;;
12799 esac
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12804 case $host_os in
12805 openbsd2.[89] | openbsd2.[89].*)
12806 shlibpath_overrides_runpath=no
12809 shlibpath_overrides_runpath=yes
12811 esac
12812 else
12813 shlibpath_overrides_runpath=yes
12817 os2*)
12818 libname_spec='$name'
12819 shrext_cmds=".dll"
12820 need_lib_prefix=no
12821 library_names_spec='$libname${shared_ext} $libname.a'
12822 dynamic_linker='OS/2 ld.exe'
12823 shlibpath_var=LIBPATH
12826 osf3* | osf4* | osf5*)
12827 version_type=osf
12828 need_lib_prefix=no
12829 need_version=no
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12837 rdos*)
12838 dynamic_linker=no
12841 solaris*)
12842 version_type=linux # correct to gnu/linux during the next big refactor
12843 need_lib_prefix=no
12844 need_version=no
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec='${libname}${release}${shared_ext}$major'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12849 hardcode_into_libs=yes
12850 # ldd complains unless libraries are executable
12851 postinstall_cmds='chmod +x $lib'
12854 sunos4*)
12855 version_type=sunos
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=yes
12860 if test "$with_gnu_ld" = yes; then
12861 need_lib_prefix=no
12863 need_version=yes
12866 sysv4 | sysv4.3*)
12867 version_type=linux # correct to gnu/linux during the next big refactor
12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869 soname_spec='${libname}${release}${shared_ext}$major'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 case $host_vendor in
12872 sni)
12873 shlibpath_overrides_runpath=no
12874 need_lib_prefix=no
12875 runpath_var=LD_RUN_PATH
12877 siemens)
12878 need_lib_prefix=no
12880 motorola)
12881 need_lib_prefix=no
12882 need_version=no
12883 shlibpath_overrides_runpath=no
12884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12886 esac
12889 sysv4*MP*)
12890 if test -d /usr/nec ;then
12891 version_type=linux # correct to gnu/linux during the next big refactor
12892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12893 soname_spec='$libname${shared_ext}.$major'
12894 shlibpath_var=LD_LIBRARY_PATH
12898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12899 version_type=freebsd-elf
12900 need_lib_prefix=no
12901 need_version=no
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes
12906 hardcode_into_libs=yes
12907 if test "$with_gnu_ld" = yes; then
12908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12909 else
12910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12911 case $host_os in
12912 sco3.2v5*)
12913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12915 esac
12917 sys_lib_dlsearch_path_spec='/usr/lib'
12920 tpf*)
12921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12922 version_type=linux # correct to gnu/linux during the next big refactor
12923 need_lib_prefix=no
12924 need_version=no
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=no
12928 hardcode_into_libs=yes
12931 uts4*)
12932 version_type=linux # correct to gnu/linux during the next big refactor
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 shlibpath_var=LD_LIBRARY_PATH
12939 dynamic_linker=no
12941 esac
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12943 $as_echo "$dynamic_linker" >&6; }
12944 test "$dynamic_linker" = no && can_build_shared=no
12946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12947 if test "$GCC" = yes; then
12948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12952 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12954 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12955 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13050 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13051 hardcode_action=
13052 if test -n "$hardcode_libdir_flag_spec" ||
13053 test -n "$runpath_var" ||
13054 test "X$hardcode_automatic" = "Xyes" ; then
13056 # We can hardcode non-existent directories.
13057 if test "$hardcode_direct" != no &&
13058 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13059 # have to relink, otherwise we might link with an installed library
13060 # when we should be linking with a yet-to-be-installed one
13061 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13062 test "$hardcode_minus_L" != no; then
13063 # Linking always hardcodes the temporary library directory.
13064 hardcode_action=relink
13065 else
13066 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13067 hardcode_action=immediate
13069 else
13070 # We cannot hardcode anything, or else we can only hardcode existing
13071 # directories.
13072 hardcode_action=unsupported
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13075 $as_echo "$hardcode_action" >&6; }
13077 if test "$hardcode_action" = relink ||
13078 test "$inherit_rpath" = yes; then
13079 # Fast installation is not supported
13080 enable_fast_install=no
13081 elif test "$shlibpath_overrides_runpath" = yes ||
13082 test "$enable_shared" = no; then
13083 # Fast installation is not necessary
13084 enable_fast_install=needless
13092 if test "x$enable_dlopen" != xyes; then
13093 enable_dlopen=unknown
13094 enable_dlopen_self=unknown
13095 enable_dlopen_self_static=unknown
13096 else
13097 lt_cv_dlopen=no
13098 lt_cv_dlopen_libs=
13100 case $host_os in
13101 beos*)
13102 lt_cv_dlopen="load_add_on"
13103 lt_cv_dlopen_libs=
13104 lt_cv_dlopen_self=yes
13107 mingw* | pw32* | cegcc*)
13108 lt_cv_dlopen="LoadLibrary"
13109 lt_cv_dlopen_libs=
13112 cygwin*)
13113 lt_cv_dlopen="dlopen"
13114 lt_cv_dlopen_libs=
13117 darwin*)
13118 # if libdl is installed we need to link against it
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13121 if ${ac_cv_lib_dl_dlopen+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 ac_check_lib_save_LIBS=$LIBS
13125 LIBS="-ldl $LIBS"
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13129 /* Override any GCC internal prototype to avoid an error.
13130 Use char because int might match the return type of a GCC
13131 builtin and then its argument prototype would still apply. */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 char dlopen ();
13137 main ()
13139 return dlopen ();
13141 return 0;
13143 _ACEOF
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 ac_cv_lib_dl_dlopen=yes
13146 else
13147 ac_cv_lib_dl_dlopen=no
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13155 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13157 else
13159 lt_cv_dlopen="dyld"
13160 lt_cv_dlopen_libs=
13161 lt_cv_dlopen_self=yes
13168 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13169 if test "x$ac_cv_func_shl_load" = xyes; then :
13170 lt_cv_dlopen="shl_load"
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13173 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13174 if ${ac_cv_lib_dld_shl_load+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 ac_check_lib_save_LIBS=$LIBS
13178 LIBS="-ldld $LIBS"
13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13182 /* Override any GCC internal prototype to avoid an error.
13183 Use char because int might match the return type of a GCC
13184 builtin and then its argument prototype would still apply. */
13185 #ifdef __cplusplus
13186 extern "C"
13187 #endif
13188 char shl_load ();
13190 main ()
13192 return shl_load ();
13194 return 0;
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 ac_cv_lib_dld_shl_load=yes
13199 else
13200 ac_cv_lib_dld_shl_load=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13207 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13208 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13209 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13210 else
13211 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13212 if test "x$ac_cv_func_dlopen" = xyes; then :
13213 lt_cv_dlopen="dlopen"
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13217 if ${ac_cv_lib_dl_dlopen+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-ldl $LIBS"
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 char dlopen ();
13233 main ()
13235 return dlopen ();
13237 return 0;
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"; then :
13241 ac_cv_lib_dl_dlopen=yes
13242 else
13243 ac_cv_lib_dl_dlopen=no
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13251 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13255 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13256 if ${ac_cv_lib_svld_dlopen+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lsvld $LIBS"
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 char dlopen ();
13272 main ()
13274 return dlopen ();
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_lib_svld_dlopen=yes
13281 else
13282 ac_cv_lib_svld_dlopen=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13289 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13290 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13294 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13295 if ${ac_cv_lib_dld_dld_link+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-ldld $LIBS"
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13306 #ifdef __cplusplus
13307 extern "C"
13308 #endif
13309 char dld_link ();
13311 main ()
13313 return dld_link ();
13315 return 0;
13317 _ACEOF
13318 if ac_fn_c_try_link "$LINENO"; then :
13319 ac_cv_lib_dld_dld_link=yes
13320 else
13321 ac_cv_lib_dld_dld_link=no
13323 rm -f core conftest.err conftest.$ac_objext \
13324 conftest$ac_exeext conftest.$ac_ext
13325 LIBS=$ac_check_lib_save_LIBS
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13328 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13329 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13330 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13349 esac
13351 if test "x$lt_cv_dlopen" != xno; then
13352 enable_dlopen=yes
13353 else
13354 enable_dlopen=no
13357 case $lt_cv_dlopen in
13358 dlopen)
13359 save_CPPFLAGS="$CPPFLAGS"
13360 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13362 save_LDFLAGS="$LDFLAGS"
13363 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13365 save_LIBS="$LIBS"
13366 LIBS="$lt_cv_dlopen_libs $LIBS"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13369 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13370 if ${lt_cv_dlopen_self+:} false; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 if test "$cross_compiling" = yes; then :
13374 lt_cv_dlopen_self=cross
13375 else
13376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13377 lt_status=$lt_dlunknown
13378 cat > conftest.$ac_ext <<_LT_EOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13382 #if HAVE_DLFCN_H
13383 #include <dlfcn.h>
13384 #endif
13386 #include <stdio.h>
13388 #ifdef RTLD_GLOBAL
13389 # define LT_DLGLOBAL RTLD_GLOBAL
13390 #else
13391 # ifdef DL_GLOBAL
13392 # define LT_DLGLOBAL DL_GLOBAL
13393 # else
13394 # define LT_DLGLOBAL 0
13395 # endif
13396 #endif
13398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399 find out it does not work in some platform. */
13400 #ifndef LT_DLLAZY_OR_NOW
13401 # ifdef RTLD_LAZY
13402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13403 # else
13404 # ifdef DL_LAZY
13405 # define LT_DLLAZY_OR_NOW DL_LAZY
13406 # else
13407 # ifdef RTLD_NOW
13408 # define LT_DLLAZY_OR_NOW RTLD_NOW
13409 # else
13410 # ifdef DL_NOW
13411 # define LT_DLLAZY_OR_NOW DL_NOW
13412 # else
13413 # define LT_DLLAZY_OR_NOW 0
13414 # endif
13415 # endif
13416 # endif
13417 # endif
13418 #endif
13420 /* When -fvisbility=hidden is used, assume the code has been annotated
13421 correspondingly for the symbols needed. */
13422 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13423 int fnord () __attribute__((visibility("default")));
13424 #endif
13426 int fnord () { return 42; }
13427 int main ()
13429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430 int status = $lt_dlunknown;
13432 if (self)
13434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13435 else
13437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13438 else puts (dlerror ());
13440 /* dlclose (self); */
13442 else
13443 puts (dlerror ());
13445 return status;
13447 _LT_EOF
13448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13449 (eval $ac_link) 2>&5
13450 ac_status=$?
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13453 (./conftest; exit; ) >&5 2>/dev/null
13454 lt_status=$?
13455 case x$lt_status in
13456 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13457 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13458 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13459 esac
13460 else :
13461 # compilation failed
13462 lt_cv_dlopen_self=no
13465 rm -fr conftest*
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13470 $as_echo "$lt_cv_dlopen_self" >&6; }
13472 if test "x$lt_cv_dlopen_self" = xyes; then
13473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13475 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13476 if ${lt_cv_dlopen_self_static+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 if test "$cross_compiling" = yes; then :
13480 lt_cv_dlopen_self_static=cross
13481 else
13482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13483 lt_status=$lt_dlunknown
13484 cat > conftest.$ac_ext <<_LT_EOF
13485 #line $LINENO "configure"
13486 #include "confdefs.h"
13488 #if HAVE_DLFCN_H
13489 #include <dlfcn.h>
13490 #endif
13492 #include <stdio.h>
13494 #ifdef RTLD_GLOBAL
13495 # define LT_DLGLOBAL RTLD_GLOBAL
13496 #else
13497 # ifdef DL_GLOBAL
13498 # define LT_DLGLOBAL DL_GLOBAL
13499 # else
13500 # define LT_DLGLOBAL 0
13501 # endif
13502 #endif
13504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13505 find out it does not work in some platform. */
13506 #ifndef LT_DLLAZY_OR_NOW
13507 # ifdef RTLD_LAZY
13508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13509 # else
13510 # ifdef DL_LAZY
13511 # define LT_DLLAZY_OR_NOW DL_LAZY
13512 # else
13513 # ifdef RTLD_NOW
13514 # define LT_DLLAZY_OR_NOW RTLD_NOW
13515 # else
13516 # ifdef DL_NOW
13517 # define LT_DLLAZY_OR_NOW DL_NOW
13518 # else
13519 # define LT_DLLAZY_OR_NOW 0
13520 # endif
13521 # endif
13522 # endif
13523 # endif
13524 #endif
13526 /* When -fvisbility=hidden is used, assume the code has been annotated
13527 correspondingly for the symbols needed. */
13528 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13529 int fnord () __attribute__((visibility("default")));
13530 #endif
13532 int fnord () { return 42; }
13533 int main ()
13535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13536 int status = $lt_dlunknown;
13538 if (self)
13540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13541 else
13543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13544 else puts (dlerror ());
13546 /* dlclose (self); */
13548 else
13549 puts (dlerror ());
13551 return status;
13553 _LT_EOF
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13559 (./conftest; exit; ) >&5 2>/dev/null
13560 lt_status=$?
13561 case x$lt_status in
13562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13565 esac
13566 else :
13567 # compilation failed
13568 lt_cv_dlopen_self_static=no
13571 rm -fr conftest*
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13576 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13579 CPPFLAGS="$save_CPPFLAGS"
13580 LDFLAGS="$save_LDFLAGS"
13581 LIBS="$save_LIBS"
13583 esac
13585 case $lt_cv_dlopen_self in
13586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13587 *) enable_dlopen_self=unknown ;;
13588 esac
13590 case $lt_cv_dlopen_self_static in
13591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13592 *) enable_dlopen_self_static=unknown ;;
13593 esac
13612 striplib=
13613 old_striplib=
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13615 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13616 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13620 $as_echo "yes" >&6; }
13621 else
13622 # FIXME - insert some real tests, host_os isn't really good enough
13623 case $host_os in
13624 darwin*)
13625 if test -n "$STRIP" ; then
13626 striplib="$STRIP -x"
13627 old_striplib="$STRIP -S"
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13639 esac
13653 # Report which library types will actually be built
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13655 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13657 $as_echo "$can_build_shared" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13660 $as_echo_n "checking whether to build shared libraries... " >&6; }
13661 test "$can_build_shared" = "no" && enable_shared=no
13663 # On AIX, shared libraries and static libraries use the same namespace, and
13664 # are all built from PIC.
13665 case $host_os in
13666 aix3*)
13667 test "$enable_shared" = yes && enable_static=no
13668 if test -n "$RANLIB"; then
13669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13670 postinstall_cmds='$RANLIB $lib'
13674 aix[4-9]*)
13675 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13676 test "$enable_shared" = yes && enable_static=no
13679 esac
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13681 $as_echo "$enable_shared" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13684 $as_echo_n "checking whether to build static libraries... " >&6; }
13685 # Make sure either enable_shared or enable_static is yes.
13686 test "$enable_shared" = yes || enable_static=yes
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13688 $as_echo "$enable_static" >&6; }
13694 ac_ext=c
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13700 CC="$lt_save_CC"
13702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13703 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13704 (test "X$CXX" != "Xg++"))) ; then
13705 ac_ext=cpp
13706 ac_cpp='$CXXCPP $CPPFLAGS'
13707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13711 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13712 if test -z "$CXXCPP"; then
13713 if ${ac_cv_prog_CXXCPP+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 # Double quotes because CXXCPP needs to be expanded
13717 for CXXCPP in "$CXX -E" "/lib/cpp"
13719 ac_preproc_ok=false
13720 for ac_cxx_preproc_warn_flag in '' yes
13722 # Use a header file that comes with gcc, so configuring glibc
13723 # with a fresh cross-compiler works.
13724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 # <limits.h> exists even on freestanding compilers.
13726 # On the NeXT, cc -E runs the code through the compiler's parser,
13727 # not just through cpp. "Syntax error" is here to catch this case.
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #ifdef __STDC__
13731 # include <limits.h>
13732 #else
13733 # include <assert.h>
13734 #endif
13735 Syntax error
13736 _ACEOF
13737 if ac_fn_cxx_try_cpp "$LINENO"; then :
13739 else
13740 # Broken: fails on valid input.
13741 continue
13743 rm -f conftest.err conftest.i conftest.$ac_ext
13745 # OK, works on sane cases. Now check whether nonexistent headers
13746 # can be detected and how.
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #include <ac_nonexistent.h>
13750 _ACEOF
13751 if ac_fn_cxx_try_cpp "$LINENO"; then :
13752 # Broken: success on invalid input.
13753 continue
13754 else
13755 # Passes both tests.
13756 ac_preproc_ok=:
13757 break
13759 rm -f conftest.err conftest.i conftest.$ac_ext
13761 done
13762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13763 rm -f conftest.i conftest.err conftest.$ac_ext
13764 if $ac_preproc_ok; then :
13765 break
13768 done
13769 ac_cv_prog_CXXCPP=$CXXCPP
13772 CXXCPP=$ac_cv_prog_CXXCPP
13773 else
13774 ac_cv_prog_CXXCPP=$CXXCPP
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13777 $as_echo "$CXXCPP" >&6; }
13778 ac_preproc_ok=false
13779 for ac_cxx_preproc_warn_flag in '' yes
13781 # Use a header file that comes with gcc, so configuring glibc
13782 # with a fresh cross-compiler works.
13783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13784 # <limits.h> exists even on freestanding compilers.
13785 # On the NeXT, cc -E runs the code through the compiler's parser,
13786 # not just through cpp. "Syntax error" is here to catch this case.
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 #ifdef __STDC__
13790 # include <limits.h>
13791 #else
13792 # include <assert.h>
13793 #endif
13794 Syntax error
13795 _ACEOF
13796 if ac_fn_cxx_try_cpp "$LINENO"; then :
13798 else
13799 # Broken: fails on valid input.
13800 continue
13802 rm -f conftest.err conftest.i conftest.$ac_ext
13804 # OK, works on sane cases. Now check whether nonexistent headers
13805 # can be detected and how.
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 #include <ac_nonexistent.h>
13809 _ACEOF
13810 if ac_fn_cxx_try_cpp "$LINENO"; then :
13811 # Broken: success on invalid input.
13812 continue
13813 else
13814 # Passes both tests.
13815 ac_preproc_ok=:
13816 break
13818 rm -f conftest.err conftest.i conftest.$ac_ext
13820 done
13821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13822 rm -f conftest.i conftest.err conftest.$ac_ext
13823 if $ac_preproc_ok; then :
13825 else
13826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13828 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13829 See \`config.log' for more details" "$LINENO" 5; }
13832 ac_ext=c
13833 ac_cpp='$CPP $CPPFLAGS'
13834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13838 else
13839 _lt_caught_CXX_error=yes
13842 ac_ext=cpp
13843 ac_cpp='$CXXCPP $CPPFLAGS'
13844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13848 archive_cmds_need_lc_CXX=no
13849 allow_undefined_flag_CXX=
13850 always_export_symbols_CXX=no
13851 archive_expsym_cmds_CXX=
13852 compiler_needs_object_CXX=no
13853 export_dynamic_flag_spec_CXX=
13854 hardcode_direct_CXX=no
13855 hardcode_direct_absolute_CXX=no
13856 hardcode_libdir_flag_spec_CXX=
13857 hardcode_libdir_separator_CXX=
13858 hardcode_minus_L_CXX=no
13859 hardcode_shlibpath_var_CXX=unsupported
13860 hardcode_automatic_CXX=no
13861 inherit_rpath_CXX=no
13862 module_cmds_CXX=
13863 module_expsym_cmds_CXX=
13864 link_all_deplibs_CXX=unknown
13865 old_archive_cmds_CXX=$old_archive_cmds
13866 reload_flag_CXX=$reload_flag
13867 reload_cmds_CXX=$reload_cmds
13868 no_undefined_flag_CXX=
13869 whole_archive_flag_spec_CXX=
13870 enable_shared_with_static_runtimes_CXX=no
13872 # Source file extension for C++ test sources.
13873 ac_ext=cpp
13875 # Object file extension for compiled C++ test sources.
13876 objext=o
13877 objext_CXX=$objext
13879 # No sense in running all these tests if we already determined that
13880 # the CXX compiler isn't working. Some variables (like enable_shared)
13881 # are currently assumed to apply to all compilers on this platform,
13882 # and will be corrupted by setting them based on a non-working compiler.
13883 if test "$_lt_caught_CXX_error" != yes; then
13884 # Code to be used in simple compile tests
13885 lt_simple_compile_test_code="int some_variable = 0;"
13887 # Code to be used in simple link tests
13888 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13897 # If no C compiler was specified, use CC.
13898 LTCC=${LTCC-"$CC"}
13900 # If no C compiler flags were specified, use CFLAGS.
13901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13903 # Allow CC to be a program name with arguments.
13904 compiler=$CC
13907 # save warnings/boilerplate of simple test code
13908 ac_outfile=conftest.$ac_objext
13909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13911 _lt_compiler_boilerplate=`cat conftest.err`
13912 $RM conftest*
13914 ac_outfile=conftest.$ac_objext
13915 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13917 _lt_linker_boilerplate=`cat conftest.err`
13918 $RM -r conftest*
13921 # Allow CC to be a program name with arguments.
13922 lt_save_CC=$CC
13923 lt_save_CFLAGS=$CFLAGS
13924 lt_save_LD=$LD
13925 lt_save_GCC=$GCC
13926 GCC=$GXX
13927 lt_save_with_gnu_ld=$with_gnu_ld
13928 lt_save_path_LD=$lt_cv_path_LD
13929 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13930 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13931 else
13932 $as_unset lt_cv_prog_gnu_ld
13934 if test -n "${lt_cv_path_LDCXX+set}"; then
13935 lt_cv_path_LD=$lt_cv_path_LDCXX
13936 else
13937 $as_unset lt_cv_path_LD
13939 test -z "${LDCXX+set}" || LD=$LDCXX
13940 CC=${CXX-"c++"}
13941 CFLAGS=$CXXFLAGS
13942 compiler=$CC
13943 compiler_CXX=$CC
13944 for cc_temp in $compiler""; do
13945 case $cc_temp in
13946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13948 \-*) ;;
13949 *) break;;
13950 esac
13951 done
13952 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13955 if test -n "$compiler"; then
13956 # We don't want -fno-exception when compiling C++ code, so set the
13957 # no_builtin_flag separately
13958 if test "$GXX" = yes; then
13959 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13960 else
13961 lt_prog_compiler_no_builtin_flag_CXX=
13964 if test "$GXX" = yes; then
13965 # Set up default GNU C++ configuration
13969 # Check whether --with-gnu-ld was given.
13970 if test "${with_gnu_ld+set}" = set; then :
13971 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13972 else
13973 with_gnu_ld=no
13976 ac_prog=ld
13977 if test "$GCC" = yes; then
13978 # Check if gcc -print-prog-name=ld gives a path.
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13980 $as_echo_n "checking for ld used by $CC... " >&6; }
13981 case $host in
13982 *-*-mingw*)
13983 # gcc leaves a trailing carriage return which upsets mingw
13984 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13986 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13987 esac
13988 case $ac_prog in
13989 # Accept absolute paths.
13990 [\\/]* | ?:[\\/]*)
13991 re_direlt='/[^/][^/]*/\.\./'
13992 # Canonicalize the pathname of ld
13993 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13994 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13995 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13996 done
13997 test -z "$LD" && LD="$ac_prog"
14000 # If it fails, then pretend we aren't using GCC.
14001 ac_prog=ld
14004 # If it is relative, then search for the first ld in PATH.
14005 with_gnu_ld=unknown
14007 esac
14008 elif test "$with_gnu_ld" = yes; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14010 $as_echo_n "checking for GNU ld... " >&6; }
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14013 $as_echo_n "checking for non-GNU ld... " >&6; }
14015 if ${lt_cv_path_LD+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 if test -z "$LD"; then
14019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14020 for ac_dir in $PATH; do
14021 IFS="$lt_save_ifs"
14022 test -z "$ac_dir" && ac_dir=.
14023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14024 lt_cv_path_LD="$ac_dir/$ac_prog"
14025 # Check to see if the program is GNU ld. I'd rather use --version,
14026 # but apparently some variants of GNU ld only accept -v.
14027 # Break only if it was the GNU/non-GNU ld that we prefer.
14028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14029 *GNU* | *'with BFD'*)
14030 test "$with_gnu_ld" != no && break
14033 test "$with_gnu_ld" != yes && break
14035 esac
14037 done
14038 IFS="$lt_save_ifs"
14039 else
14040 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14044 LD="$lt_cv_path_LD"
14045 if test -n "$LD"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14047 $as_echo "$LD" >&6; }
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14052 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14054 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14055 if ${lt_cv_prog_gnu_ld+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14059 case `$LD -v 2>&1 </dev/null` in
14060 *GNU* | *'with BFD'*)
14061 lt_cv_prog_gnu_ld=yes
14064 lt_cv_prog_gnu_ld=no
14066 esac
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14069 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14070 with_gnu_ld=$lt_cv_prog_gnu_ld
14078 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14079 # archiving commands below assume that GNU ld is being used.
14080 if test "$with_gnu_ld" = yes; then
14081 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 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'
14084 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14085 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14087 # If archive_cmds runs LD, not CC, wlarc should be empty
14088 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14089 # investigate it a little bit more. (MM)
14090 wlarc='${wl}'
14092 # ancient GNU ld didn't support --whole-archive et. al.
14093 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14094 $GREP 'no-whole-archive' > /dev/null; then
14095 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14096 else
14097 whole_archive_flag_spec_CXX=
14099 else
14100 with_gnu_ld=no
14101 wlarc=
14103 # A generic and very simple default shared library creation
14104 # command for GNU C++ for the case where it uses the native
14105 # linker, instead of GNU ld. If possible, this setting should
14106 # overridden to take advantage of the native linker features on
14107 # the platform it is being used on.
14108 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14111 # Commands to make compiler produce verbose output that lists
14112 # what "hidden" libraries, object files and flags are used when
14113 # linking a shared library.
14114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14116 else
14117 GXX=no
14118 with_gnu_ld=no
14119 wlarc=
14122 # PORTME: fill in a description of your system's C++ link characteristics
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14124 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14125 ld_shlibs_CXX=yes
14126 case $host_os in
14127 aix3*)
14128 # FIXME: insert proper C++ library support
14129 ld_shlibs_CXX=no
14131 aix[4-9]*)
14132 if test "$host_cpu" = ia64; then
14133 # On IA64, the linker does run time linking by default, so we don't
14134 # have to do anything special.
14135 aix_use_runtimelinking=no
14136 exp_sym_flag='-Bexport'
14137 no_entry_flag=""
14138 else
14139 aix_use_runtimelinking=no
14141 # Test if we are trying to use run time linking or normal
14142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14143 # need to do runtime linking.
14144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14145 for ld_flag in $LDFLAGS; do
14146 case $ld_flag in
14147 *-brtl*)
14148 aix_use_runtimelinking=yes
14149 break
14151 esac
14152 done
14154 esac
14156 exp_sym_flag='-bexport'
14157 no_entry_flag='-bnoentry'
14160 # When large executables or shared objects are built, AIX ld can
14161 # have problems creating the table of contents. If linking a library
14162 # or program results in "error TOC overflow" add -mminimal-toc to
14163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14166 archive_cmds_CXX=''
14167 hardcode_direct_CXX=yes
14168 hardcode_direct_absolute_CXX=yes
14169 hardcode_libdir_separator_CXX=':'
14170 link_all_deplibs_CXX=yes
14171 file_list_spec_CXX='${wl}-f,'
14173 if test "$GXX" = yes; then
14174 case $host_os in aix4.[012]|aix4.[012].*)
14175 # We only want to do this on AIX 4.2 and lower, the check
14176 # below for broken collect2 doesn't work under 4.3+
14177 collect2name=`${CC} -print-prog-name=collect2`
14178 if test -f "$collect2name" &&
14179 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14180 then
14181 # We have reworked collect2
14183 else
14184 # We have old collect2
14185 hardcode_direct_CXX=unsupported
14186 # It fails to find uninstalled libraries when the uninstalled
14187 # path is not listed in the libpath. Setting hardcode_minus_L
14188 # to unsupported forces relinking
14189 hardcode_minus_L_CXX=yes
14190 hardcode_libdir_flag_spec_CXX='-L$libdir'
14191 hardcode_libdir_separator_CXX=
14193 esac
14194 shared_flag='-shared'
14195 if test "$aix_use_runtimelinking" = yes; then
14196 shared_flag="$shared_flag "'${wl}-G'
14198 else
14199 # not using gcc
14200 if test "$host_cpu" = ia64; then
14201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14202 # chokes on -Wl,-G. The following line is correct:
14203 shared_flag='-G'
14204 else
14205 if test "$aix_use_runtimelinking" = yes; then
14206 shared_flag='${wl}-G'
14207 else
14208 shared_flag='${wl}-bM:SRE'
14213 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14214 # It seems that -bexpall does not export symbols beginning with
14215 # underscore (_), so it is better to generate a list of symbols to
14216 # export.
14217 always_export_symbols_CXX=yes
14218 if test "$aix_use_runtimelinking" = yes; then
14219 # Warning - without using the other runtime loading flags (-brtl),
14220 # -berok will link without error, but may produce a broken library.
14221 allow_undefined_flag_CXX='-berok'
14222 # Determine the default libpath from the value encoded in an empty
14223 # executable.
14224 if test "${lt_cv_aix_libpath+set}" = set; then
14225 aix_libpath=$lt_cv_aix_libpath
14226 else
14227 if ${lt_cv_aix_libpath__CXX+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14234 main ()
14238 return 0;
14240 _ACEOF
14241 if ac_fn_cxx_try_link "$LINENO"; then :
14243 lt_aix_libpath_sed='
14244 /Import File Strings/,/^$/ {
14245 /^0/ {
14246 s/^0 *\([^ ]*\) *$/\1/
14250 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14251 # Check for a 64-bit object if we didn't find anything.
14252 if test -z "$lt_cv_aix_libpath__CXX"; then
14253 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 if test -z "$lt_cv_aix_libpath__CXX"; then
14259 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14264 aix_libpath=$lt_cv_aix_libpath__CXX
14267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14269 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"
14270 else
14271 if test "$host_cpu" = ia64; then
14272 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14273 allow_undefined_flag_CXX="-z nodefs"
14274 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"
14275 else
14276 # Determine the default libpath from the value encoded in an
14277 # empty executable.
14278 if test "${lt_cv_aix_libpath+set}" = set; then
14279 aix_libpath=$lt_cv_aix_libpath
14280 else
14281 if ${lt_cv_aix_libpath__CXX+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14288 main ()
14292 return 0;
14294 _ACEOF
14295 if ac_fn_cxx_try_link "$LINENO"; then :
14297 lt_aix_libpath_sed='
14298 /Import File Strings/,/^$/ {
14299 /^0/ {
14300 s/^0 *\([^ ]*\) *$/\1/
14304 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14305 # Check for a 64-bit object if we didn't find anything.
14306 if test -z "$lt_cv_aix_libpath__CXX"; then
14307 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312 if test -z "$lt_cv_aix_libpath__CXX"; then
14313 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14318 aix_libpath=$lt_cv_aix_libpath__CXX
14321 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14322 # Warning - without using the other run time loading flags,
14323 # -berok will link without error, but may produce a broken library.
14324 no_undefined_flag_CXX=' ${wl}-bernotok'
14325 allow_undefined_flag_CXX=' ${wl}-berok'
14326 if test "$with_gnu_ld" = yes; then
14327 # We only use this code for GNU lds that support --whole-archive.
14328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14329 else
14330 # Exported symbols can be pulled into shared objects from archives
14331 whole_archive_flag_spec_CXX='$convenience'
14333 archive_cmds_need_lc_CXX=yes
14334 # This is similar to how AIX traditionally builds its shared
14335 # libraries.
14336 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'
14341 beos*)
14342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14343 allow_undefined_flag_CXX=unsupported
14344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14345 # support --undefined. This deserves some investigation. FIXME
14346 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347 else
14348 ld_shlibs_CXX=no
14352 chorus*)
14353 case $cc_basename in
14355 # FIXME: insert proper C++ library support
14356 ld_shlibs_CXX=no
14358 esac
14361 cygwin* | mingw* | pw32* | cegcc*)
14362 case $GXX,$cc_basename in
14363 ,cl* | no,cl*)
14364 # Native MSVC
14365 # hardcode_libdir_flag_spec is actually meaningless, as there is
14366 # no search path for DLLs.
14367 hardcode_libdir_flag_spec_CXX=' '
14368 allow_undefined_flag_CXX=unsupported
14369 always_export_symbols_CXX=yes
14370 file_list_spec_CXX='@'
14371 # Tell ltmain to make .lib files, not .a files.
14372 libext=lib
14373 # Tell ltmain to make .dll files, not .so files.
14374 shrext_cmds=".dll"
14375 # FIXME: Setting linknames here is a bad hack.
14376 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14377 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14378 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14379 else
14380 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14382 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14383 linknames='
14384 # The linker will not automatically build a static lib if we build a DLL.
14385 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14386 enable_shared_with_static_runtimes_CXX=yes
14387 # Don't use ranlib
14388 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14389 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14390 lt_tool_outputfile="@TOOL_OUTPUT@"~
14391 case $lt_outputfile in
14392 *.exe|*.EXE) ;;
14394 lt_outputfile="$lt_outputfile.exe"
14395 lt_tool_outputfile="$lt_tool_outputfile.exe"
14397 esac~
14398 func_to_tool_file "$lt_outputfile"~
14399 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14401 $RM "$lt_outputfile.manifest";
14405 # g++
14406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14407 # as there is no search path for DLLs.
14408 hardcode_libdir_flag_spec_CXX='-L$libdir'
14409 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14410 allow_undefined_flag_CXX=unsupported
14411 always_export_symbols_CXX=no
14412 enable_shared_with_static_runtimes_CXX=yes
14414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14415 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'
14416 # If the export-symbols file already is a .def file (1st line
14417 # is EXPORTS), use it as is; otherwise, prepend...
14418 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14419 cp $export_symbols $output_objdir/$soname.def;
14420 else
14421 echo EXPORTS > $output_objdir/$soname.def;
14422 cat $export_symbols >> $output_objdir/$soname.def;
14424 $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'
14425 else
14426 ld_shlibs_CXX=no
14429 esac
14431 darwin* | rhapsody*)
14434 archive_cmds_need_lc_CXX=no
14435 hardcode_direct_CXX=no
14436 hardcode_automatic_CXX=yes
14437 hardcode_shlibpath_var_CXX=unsupported
14438 if test "$lt_cv_ld_force_load" = "yes"; then
14439 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\"`'
14441 else
14442 whole_archive_flag_spec_CXX=''
14444 link_all_deplibs_CXX=yes
14445 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14446 case $cc_basename in
14447 ifort*) _lt_dar_can_shared=yes ;;
14448 *) _lt_dar_can_shared=$GCC ;;
14449 esac
14450 if test "$_lt_dar_can_shared" = "yes"; then
14451 output_verbose_link_cmd=func_echo_all
14452 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}"
14453 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14454 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}"
14455 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}"
14456 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14457 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}"
14458 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}"
14461 else
14462 ld_shlibs_CXX=no
14467 dgux*)
14468 case $cc_basename in
14469 ec++*)
14470 # FIXME: insert proper C++ library support
14471 ld_shlibs_CXX=no
14473 ghcx*)
14474 # Green Hills C++ Compiler
14475 # FIXME: insert proper C++ library support
14476 ld_shlibs_CXX=no
14479 # FIXME: insert proper C++ library support
14480 ld_shlibs_CXX=no
14482 esac
14485 freebsd2.*)
14486 # C++ shared libraries reported to be fairly broken before
14487 # switch to ELF
14488 ld_shlibs_CXX=no
14491 freebsd-elf*)
14492 archive_cmds_need_lc_CXX=no
14495 freebsd* | dragonfly*)
14496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14497 # conventions
14498 ld_shlibs_CXX=yes
14501 haiku*)
14502 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503 link_all_deplibs_CXX=yes
14506 hpux9*)
14507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14508 hardcode_libdir_separator_CXX=:
14509 export_dynamic_flag_spec_CXX='${wl}-E'
14510 hardcode_direct_CXX=yes
14511 hardcode_minus_L_CXX=yes # Not in the search PATH,
14512 # but as the default
14513 # location of the library.
14515 case $cc_basename in
14516 CC*)
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14520 aCC*)
14521 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'
14522 # Commands to make compiler produce verbose output that lists
14523 # what "hidden" libraries, object files and flags are used when
14524 # linking a shared library.
14526 # There doesn't appear to be a way to prevent this compiler from
14527 # explicitly linking system object files so we need to strip them
14528 # from the output so that they don't get included in the library
14529 # dependencies.
14530 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"'
14533 if test "$GXX" = yes; then
14534 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'
14535 else
14536 # FIXME: insert proper C++ library support
14537 ld_shlibs_CXX=no
14540 esac
14543 hpux10*|hpux11*)
14544 if test $with_gnu_ld = no; then
14545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14546 hardcode_libdir_separator_CXX=:
14548 case $host_cpu in
14549 hppa*64*|ia64*)
14552 export_dynamic_flag_spec_CXX='${wl}-E'
14554 esac
14556 case $host_cpu in
14557 hppa*64*|ia64*)
14558 hardcode_direct_CXX=no
14559 hardcode_shlibpath_var_CXX=no
14562 hardcode_direct_CXX=yes
14563 hardcode_direct_absolute_CXX=yes
14564 hardcode_minus_L_CXX=yes # Not in the search PATH,
14565 # but as the default
14566 # location of the library.
14568 esac
14570 case $cc_basename in
14571 CC*)
14572 # FIXME: insert proper C++ library support
14573 ld_shlibs_CXX=no
14575 aCC*)
14576 case $host_cpu in
14577 hppa*64*)
14578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14580 ia64*)
14581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14586 esac
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
14591 # There doesn't appear to be a way to prevent this compiler from
14592 # explicitly linking system object files so we need to strip them
14593 # from the output so that they don't get included in the library
14594 # dependencies.
14595 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"'
14598 if test "$GXX" = yes; then
14599 if test $with_gnu_ld = no; then
14600 case $host_cpu in
14601 hppa*64*)
14602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14604 ia64*)
14605 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14608 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'
14610 esac
14612 else
14613 # FIXME: insert proper C++ library support
14614 ld_shlibs_CXX=no
14617 esac
14620 interix[3-9]*)
14621 hardcode_direct_CXX=no
14622 hardcode_shlibpath_var_CXX=no
14623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14624 export_dynamic_flag_spec_CXX='${wl}-E'
14625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14626 # Instead, shared libraries are loaded at an image base (0x10000000 by
14627 # default) and relocated if they conflict, which is a slow very memory
14628 # consuming and fragmenting process. To avoid this, we pick a random,
14629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14631 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'
14632 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'
14634 irix5* | irix6*)
14635 case $cc_basename in
14636 CC*)
14637 # SGI C++
14638 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'
14640 # Archives containing C++ object files must be created using
14641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14642 # necessary to make sure instantiated templates are included
14643 # in the archive.
14644 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14647 if test "$GXX" = yes; then
14648 if test "$with_gnu_ld" = no; then
14649 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'
14650 else
14651 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'
14654 link_all_deplibs_CXX=yes
14656 esac
14657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14658 hardcode_libdir_separator_CXX=:
14659 inherit_rpath_CXX=yes
14662 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14663 case $cc_basename in
14664 KCC*)
14665 # Kuck and Associates, Inc. (KAI) C++ Compiler
14667 # KCC will only create a shared library if the output file
14668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14669 # to its proper name (with version) after linking.
14670 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'
14671 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'
14672 # Commands to make compiler produce verbose output that lists
14673 # what "hidden" libraries, object files and flags are used when
14674 # linking a shared library.
14676 # There doesn't appear to be a way to prevent this compiler from
14677 # explicitly linking system object files so we need to strip them
14678 # from the output so that they don't get included in the library
14679 # dependencies.
14680 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"'
14682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14685 # Archives containing C++ object files must be created using
14686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14689 icpc* | ecpc* )
14690 # Intel C++
14691 with_gnu_ld=yes
14692 # version 8.0 and above of icpc choke on multiply defined symbols
14693 # if we add $predep_objects and $postdep_objects, however 7.1 and
14694 # earlier do not add the objects themselves.
14695 case `$CC -V 2>&1` in
14696 *"Version 7."*)
14697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698 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'
14700 *) # Version 8.0 or newer
14701 tmp_idyn=
14702 case $host_cpu in
14703 ia64*) tmp_idyn=' -i_dynamic';;
14704 esac
14705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14706 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'
14708 esac
14709 archive_cmds_need_lc_CXX=no
14710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14714 pgCC* | pgcpp*)
14715 # Portland Group C++ compiler
14716 case `$CC -V` in
14717 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14718 prelink_cmds_CXX='tpldir=Template.dir~
14719 rm -rf $tpldir~
14720 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14721 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14722 old_archive_cmds_CXX='tpldir=Template.dir~
14723 rm -rf $tpldir~
14724 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14725 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14726 $RANLIB $oldlib'
14727 archive_cmds_CXX='tpldir=Template.dir~
14728 rm -rf $tpldir~
14729 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14730 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14731 archive_expsym_cmds_CXX='tpldir=Template.dir~
14732 rm -rf $tpldir~
14733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14734 $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'
14736 *) # Version 6 and above use weak symbols
14737 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14738 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'
14740 esac
14742 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14744 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'
14746 cxx*)
14747 # Compaq C++
14748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14749 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'
14751 runpath_var=LD_RUN_PATH
14752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14753 hardcode_libdir_separator_CXX=:
14755 # Commands to make compiler produce verbose output that lists
14756 # what "hidden" libraries, object files and flags are used when
14757 # linking a shared library.
14759 # There doesn't appear to be a way to prevent this compiler from
14760 # explicitly linking system object files so we need to strip them
14761 # from the output so that they don't get included in the library
14762 # dependencies.
14763 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'
14765 xl* | mpixl* | bgxl*)
14766 # IBM XL 8.0 on PPC, with GNU ld
14767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14769 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770 if test "x$supports_anon_versioning" = xyes; then
14771 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14773 echo "local: *; };" >> $output_objdir/$libname.ver~
14774 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14778 case `$CC -V 2>&1 | sed 5q` in
14779 *Sun\ C*)
14780 # Sun C++ 5.9
14781 no_undefined_flag_CXX=' -zdefs'
14782 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14783 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'
14784 hardcode_libdir_flag_spec_CXX='-R$libdir'
14785 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'
14786 compiler_needs_object_CXX=yes
14788 # Not sure whether something based on
14789 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14790 # would be better.
14791 output_verbose_link_cmd='func_echo_all'
14793 # Archives containing C++ object files must be created using
14794 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14795 # necessary to make sure instantiated templates are included
14796 # in the archive.
14797 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14799 esac
14801 esac
14804 lynxos*)
14805 # FIXME: insert proper C++ library support
14806 ld_shlibs_CXX=no
14809 m88k*)
14810 # FIXME: insert proper C++ library support
14811 ld_shlibs_CXX=no
14814 mvs*)
14815 case $cc_basename in
14816 cxx*)
14817 # FIXME: insert proper C++ library support
14818 ld_shlibs_CXX=no
14821 # FIXME: insert proper C++ library support
14822 ld_shlibs_CXX=no
14824 esac
14827 netbsd*)
14828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14829 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14830 wlarc=
14831 hardcode_libdir_flag_spec_CXX='-R$libdir'
14832 hardcode_direct_CXX=yes
14833 hardcode_shlibpath_var_CXX=no
14835 # Workaround some broken pre-1.5 toolchains
14836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14839 *nto* | *qnx*)
14840 ld_shlibs_CXX=yes
14843 openbsd2*)
14844 # C++ shared libraries are fairly broken
14845 ld_shlibs_CXX=no
14848 openbsd*)
14849 if test -f /usr/libexec/ld.so; then
14850 hardcode_direct_CXX=yes
14851 hardcode_shlibpath_var_CXX=no
14852 hardcode_direct_absolute_CXX=yes
14853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14857 export_dynamic_flag_spec_CXX='${wl}-E'
14858 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14860 output_verbose_link_cmd=func_echo_all
14861 else
14862 ld_shlibs_CXX=no
14866 osf3* | osf4* | osf5*)
14867 case $cc_basename in
14868 KCC*)
14869 # Kuck and Associates, Inc. (KAI) C++ Compiler
14871 # KCC will only create a shared library if the output file
14872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14873 # to its proper name (with version) after linking.
14874 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'
14876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14877 hardcode_libdir_separator_CXX=:
14879 # Archives containing C++ object files must be created using
14880 # the KAI C++ compiler.
14881 case $host in
14882 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14883 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14884 esac
14886 RCC*)
14887 # Rational C++ 2.4.1
14888 # FIXME: insert proper C++ library support
14889 ld_shlibs_CXX=no
14891 cxx*)
14892 case $host in
14893 osf3*)
14894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14895 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'
14896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14899 allow_undefined_flag_CXX=' -expect_unresolved \*'
14900 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'
14901 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14902 echo "-hidden">> $lib.exp~
14903 $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~
14904 $RM $lib.exp'
14905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14907 esac
14909 hardcode_libdir_separator_CXX=:
14911 # Commands to make compiler produce verbose output that lists
14912 # what "hidden" libraries, object files and flags are used when
14913 # linking a shared library.
14915 # There doesn't appear to be a way to prevent this compiler from
14916 # explicitly linking system object files so we need to strip them
14917 # from the output so that they don't get included in the library
14918 # dependencies.
14919 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"'
14922 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14924 case $host in
14925 osf3*)
14926 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'
14929 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'
14931 esac
14933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14934 hardcode_libdir_separator_CXX=:
14936 # Commands to make compiler produce verbose output that lists
14937 # what "hidden" libraries, object files and flags are used when
14938 # linking a shared library.
14939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14941 else
14942 # FIXME: insert proper C++ library support
14943 ld_shlibs_CXX=no
14946 esac
14949 psos*)
14950 # FIXME: insert proper C++ library support
14951 ld_shlibs_CXX=no
14954 sunos4*)
14955 case $cc_basename in
14956 CC*)
14957 # Sun C++ 4.x
14958 # FIXME: insert proper C++ library support
14959 ld_shlibs_CXX=no
14961 lcc*)
14962 # Lucid
14963 # FIXME: insert proper C++ library support
14964 ld_shlibs_CXX=no
14967 # FIXME: insert proper C++ library support
14968 ld_shlibs_CXX=no
14970 esac
14973 solaris*)
14974 case $cc_basename in
14975 CC* | sunCC*)
14976 # Sun C++ 4.2, 5.x and Centerline C++
14977 archive_cmds_need_lc_CXX=yes
14978 no_undefined_flag_CXX=' -zdefs'
14979 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14980 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14981 $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'
14983 hardcode_libdir_flag_spec_CXX='-R$libdir'
14984 hardcode_shlibpath_var_CXX=no
14985 case $host_os in
14986 solaris2.[0-5] | solaris2.[0-5].*) ;;
14988 # The compiler driver will combine and reorder linker options,
14989 # but understands `-z linker_flag'.
14990 # Supported since Solaris 2.6 (maybe 2.5.1?)
14991 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14993 esac
14994 link_all_deplibs_CXX=yes
14996 output_verbose_link_cmd='func_echo_all'
14998 # Archives containing C++ object files must be created using
14999 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15000 # necessary to make sure instantiated templates are included
15001 # in the archive.
15002 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15004 gcx*)
15005 # Green Hills C++ Compiler
15006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15008 # The C++ compiler must be used to create the archive.
15009 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15012 # GNU C++ compiler with Solaris linker
15013 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15014 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15015 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15016 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15017 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15018 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15020 # Commands to make compiler produce verbose output that lists
15021 # what "hidden" libraries, object files and flags are used when
15022 # linking a shared library.
15023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15024 else
15025 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15026 # platform.
15027 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15028 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15029 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15031 # Commands to make compiler produce verbose output that lists
15032 # what "hidden" libraries, object files and flags are used when
15033 # linking a shared library.
15034 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15037 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15038 case $host_os in
15039 solaris2.[0-5] | solaris2.[0-5].*) ;;
15041 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15043 esac
15046 esac
15049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15050 no_undefined_flag_CXX='${wl}-z,text'
15051 archive_cmds_need_lc_CXX=no
15052 hardcode_shlibpath_var_CXX=no
15053 runpath_var='LD_RUN_PATH'
15055 case $cc_basename in
15056 CC*)
15057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 esac
15067 sysv5* | sco3.2v5* | sco5v6*)
15068 # Note: We can NOT use -z defs as we might desire, because we do not
15069 # link with -lc, and that would cause any symbols used from libc to
15070 # always be unresolved, which means just about no library would
15071 # ever link correctly. If we're not using GNU ld we use -z text
15072 # though, which does catch some bad symbols but isn't as heavy-handed
15073 # as -z defs.
15074 no_undefined_flag_CXX='${wl}-z,text'
15075 allow_undefined_flag_CXX='${wl}-z,nodefs'
15076 archive_cmds_need_lc_CXX=no
15077 hardcode_shlibpath_var_CXX=no
15078 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15079 hardcode_libdir_separator_CXX=':'
15080 link_all_deplibs_CXX=yes
15081 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15082 runpath_var='LD_RUN_PATH'
15084 case $cc_basename in
15085 CC*)
15086 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15089 '"$old_archive_cmds_CXX"
15090 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15091 '"$reload_cmds_CXX"
15094 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 esac
15100 tandem*)
15101 case $cc_basename in
15102 NCC*)
15103 # NonStop-UX NCC 3.20
15104 # FIXME: insert proper C++ library support
15105 ld_shlibs_CXX=no
15108 # FIXME: insert proper C++ library support
15109 ld_shlibs_CXX=no
15111 esac
15114 vxworks*)
15115 # FIXME: insert proper C++ library support
15116 ld_shlibs_CXX=no
15120 # FIXME: insert proper C++ library support
15121 ld_shlibs_CXX=no
15123 esac
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15126 $as_echo "$ld_shlibs_CXX" >&6; }
15127 test "$ld_shlibs_CXX" = no && can_build_shared=no
15129 GCC_CXX="$GXX"
15130 LD_CXX="$LD"
15132 ## CAVEAT EMPTOR:
15133 ## There is no encapsulation within the following macros, do not change
15134 ## the running order or otherwise move them around unless you know exactly
15135 ## what you are doing...
15136 # Dependencies to place before and after the object being linked:
15137 predep_objects_CXX=
15138 postdep_objects_CXX=
15139 predeps_CXX=
15140 postdeps_CXX=
15141 compiler_lib_search_path_CXX=
15143 cat > conftest.$ac_ext <<_LT_EOF
15144 class Foo
15146 public:
15147 Foo (void) { a = 0; }
15148 private:
15149 int a;
15151 _LT_EOF
15154 _lt_libdeps_save_CFLAGS=$CFLAGS
15155 case "$CC $CFLAGS " in #(
15156 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15157 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15158 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15159 esac
15161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15162 (eval $ac_compile) 2>&5
15163 ac_status=$?
15164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15165 test $ac_status = 0; }; then
15166 # Parse the compiler output and extract the necessary
15167 # objects, libraries and library flags.
15169 # Sentinel used to keep track of whether or not we are before
15170 # the conftest object file.
15171 pre_test_object_deps_done=no
15173 for p in `eval "$output_verbose_link_cmd"`; do
15174 case ${prev}${p} in
15176 -L* | -R* | -l*)
15177 # Some compilers place space between "-{L,R}" and the path.
15178 # Remove the space.
15179 if test $p = "-L" ||
15180 test $p = "-R"; then
15181 prev=$p
15182 continue
15185 # Expand the sysroot to ease extracting the directories later.
15186 if test -z "$prev"; then
15187 case $p in
15188 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15189 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15190 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15191 esac
15193 case $p in
15194 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15195 esac
15196 if test "$pre_test_object_deps_done" = no; then
15197 case ${prev} in
15198 -L | -R)
15199 # Internal compiler library paths should come after those
15200 # provided the user. The postdeps already come after the
15201 # user supplied libs so there is no need to process them.
15202 if test -z "$compiler_lib_search_path_CXX"; then
15203 compiler_lib_search_path_CXX="${prev}${p}"
15204 else
15205 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15208 # The "-l" case would never come before the object being
15209 # linked, so don't bother handling this case.
15210 esac
15211 else
15212 if test -z "$postdeps_CXX"; then
15213 postdeps_CXX="${prev}${p}"
15214 else
15215 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15218 prev=
15221 *.lto.$objext) ;; # Ignore GCC LTO objects
15222 *.$objext)
15223 # This assumes that the test object file only shows up
15224 # once in the compiler output.
15225 if test "$p" = "conftest.$objext"; then
15226 pre_test_object_deps_done=yes
15227 continue
15230 if test "$pre_test_object_deps_done" = no; then
15231 if test -z "$predep_objects_CXX"; then
15232 predep_objects_CXX="$p"
15233 else
15234 predep_objects_CXX="$predep_objects_CXX $p"
15236 else
15237 if test -z "$postdep_objects_CXX"; then
15238 postdep_objects_CXX="$p"
15239 else
15240 postdep_objects_CXX="$postdep_objects_CXX $p"
15245 *) ;; # Ignore the rest.
15247 esac
15248 done
15250 # Clean up.
15251 rm -f a.out a.exe
15252 else
15253 echo "libtool.m4: error: problem compiling CXX test program"
15256 $RM -f confest.$objext
15257 CFLAGS=$_lt_libdeps_save_CFLAGS
15259 # PORTME: override above test on systems where it is broken
15260 case $host_os in
15261 interix[3-9]*)
15262 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15263 # hack all around it, let's just trust "g++" to DTRT.
15264 predep_objects_CXX=
15265 postdep_objects_CXX=
15266 postdeps_CXX=
15269 linux*)
15270 case `$CC -V 2>&1 | sed 5q` in
15271 *Sun\ C*)
15272 # Sun C++ 5.9
15274 # The more standards-conforming stlport4 library is
15275 # incompatible with the Cstd library. Avoid specifying
15276 # it if it's in CXXFLAGS. Ignore libCrun as
15277 # -library=stlport4 depends on it.
15278 case " $CXX $CXXFLAGS " in
15279 *" -library=stlport4 "*)
15280 solaris_use_stlport4=yes
15282 esac
15284 if test "$solaris_use_stlport4" != yes; then
15285 postdeps_CXX='-library=Cstd -library=Crun'
15288 esac
15291 solaris*)
15292 case $cc_basename in
15293 CC* | sunCC*)
15294 # The more standards-conforming stlport4 library is
15295 # incompatible with the Cstd library. Avoid specifying
15296 # it if it's in CXXFLAGS. Ignore libCrun as
15297 # -library=stlport4 depends on it.
15298 case " $CXX $CXXFLAGS " in
15299 *" -library=stlport4 "*)
15300 solaris_use_stlport4=yes
15302 esac
15304 # Adding this requires a known-good setup of shared libraries for
15305 # Sun compiler versions before 5.6, else PIC objects from an old
15306 # archive will be linked into the output, leading to subtle bugs.
15307 if test "$solaris_use_stlport4" != yes; then
15308 postdeps_CXX='-library=Cstd -library=Crun'
15311 esac
15313 esac
15316 case " $postdeps_CXX " in
15317 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15318 esac
15319 compiler_lib_search_dirs_CXX=
15320 if test -n "${compiler_lib_search_path_CXX}"; then
15321 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15354 lt_prog_compiler_wl_CXX=
15355 lt_prog_compiler_pic_CXX=
15356 lt_prog_compiler_static_CXX=
15359 # C++ specific cases for pic, static, wl, etc.
15360 if test "$GXX" = yes; then
15361 lt_prog_compiler_wl_CXX='-Wl,'
15362 lt_prog_compiler_static_CXX='-static'
15364 case $host_os in
15365 aix*)
15366 # All AIX code is PIC.
15367 if test "$host_cpu" = ia64; then
15368 # AIX 5 now supports IA64 processor
15369 lt_prog_compiler_static_CXX='-Bstatic'
15373 amigaos*)
15374 case $host_cpu in
15375 powerpc)
15376 # see comment about AmigaOS4 .so support
15377 lt_prog_compiler_pic_CXX='-fPIC'
15379 m68k)
15380 # FIXME: we need at least 68020 code to build shared libraries, but
15381 # adding the `-m68020' flag to GCC prevents building anything better,
15382 # like `-m68040'.
15383 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15385 esac
15388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15389 # PIC is the default for these OSes.
15391 mingw* | cygwin* | os2* | pw32* | cegcc*)
15392 # This hack is so that the source file can tell whether it is being
15393 # built for inclusion in a dll (and should export symbols for example).
15394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15395 # (--disable-auto-import) libraries
15396 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15398 darwin* | rhapsody*)
15399 # PIC is the default on this platform
15400 # Common symbols not allowed in MH_DYLIB files
15401 lt_prog_compiler_pic_CXX='-fno-common'
15403 *djgpp*)
15404 # DJGPP does not support shared libraries at all
15405 lt_prog_compiler_pic_CXX=
15407 haiku*)
15408 # PIC is the default for Haiku.
15409 # The "-static" flag exists, but is broken.
15410 lt_prog_compiler_static_CXX=
15412 interix[3-9]*)
15413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15414 # Instead, we relocate shared libraries at runtime.
15416 sysv4*MP*)
15417 if test -d /usr/nec; then
15418 lt_prog_compiler_pic_CXX=-Kconform_pic
15421 hpux*)
15422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15424 # sets the default TLS model and affects inlining.
15425 case $host_cpu in
15426 hppa*64*)
15429 lt_prog_compiler_pic_CXX='-fPIC'
15431 esac
15433 *qnx* | *nto*)
15434 # QNX uses GNU C++, but need to define -shared option too, otherwise
15435 # it will coredump.
15436 lt_prog_compiler_pic_CXX='-fPIC -shared'
15439 lt_prog_compiler_pic_CXX='-fPIC'
15441 esac
15442 else
15443 case $host_os in
15444 aix[4-9]*)
15445 # All AIX code is PIC.
15446 if test "$host_cpu" = ia64; then
15447 # AIX 5 now supports IA64 processor
15448 lt_prog_compiler_static_CXX='-Bstatic'
15449 else
15450 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15453 chorus*)
15454 case $cc_basename in
15455 cxch68*)
15456 # Green Hills C++ Compiler
15457 # _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"
15459 esac
15461 mingw* | cygwin* | os2* | pw32* | cegcc*)
15462 # This hack is so that the source file can tell whether it is being
15463 # built for inclusion in a dll (and should export symbols for example).
15464 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15466 dgux*)
15467 case $cc_basename in
15468 ec++*)
15469 lt_prog_compiler_pic_CXX='-KPIC'
15471 ghcx*)
15472 # Green Hills C++ Compiler
15473 lt_prog_compiler_pic_CXX='-pic'
15477 esac
15479 freebsd* | dragonfly*)
15480 # FreeBSD uses GNU C++
15482 hpux9* | hpux10* | hpux11*)
15483 case $cc_basename in
15484 CC*)
15485 lt_prog_compiler_wl_CXX='-Wl,'
15486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15487 if test "$host_cpu" != ia64; then
15488 lt_prog_compiler_pic_CXX='+Z'
15491 aCC*)
15492 lt_prog_compiler_wl_CXX='-Wl,'
15493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15494 case $host_cpu in
15495 hppa*64*|ia64*)
15496 # +Z the default
15499 lt_prog_compiler_pic_CXX='+Z'
15501 esac
15505 esac
15507 interix*)
15508 # This is c89, which is MS Visual C++ (no shared libs)
15509 # Anyone wants to do a port?
15511 irix5* | irix6* | nonstopux*)
15512 case $cc_basename in
15513 CC*)
15514 lt_prog_compiler_wl_CXX='-Wl,'
15515 lt_prog_compiler_static_CXX='-non_shared'
15516 # CC pic flag -KPIC is the default.
15520 esac
15522 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15523 case $cc_basename in
15524 KCC*)
15525 # KAI C++ Compiler
15526 lt_prog_compiler_wl_CXX='--backend -Wl,'
15527 lt_prog_compiler_pic_CXX='-fPIC'
15529 ecpc* )
15530 # old Intel C++ for x86_64 which still supported -KPIC.
15531 lt_prog_compiler_wl_CXX='-Wl,'
15532 lt_prog_compiler_pic_CXX='-KPIC'
15533 lt_prog_compiler_static_CXX='-static'
15535 icpc* )
15536 # Intel C++, used to be incompatible with GCC.
15537 # ICC 10 doesn't accept -KPIC any more.
15538 lt_prog_compiler_wl_CXX='-Wl,'
15539 lt_prog_compiler_pic_CXX='-fPIC'
15540 lt_prog_compiler_static_CXX='-static'
15542 pgCC* | pgcpp*)
15543 # Portland Group C++ compiler
15544 lt_prog_compiler_wl_CXX='-Wl,'
15545 lt_prog_compiler_pic_CXX='-fpic'
15546 lt_prog_compiler_static_CXX='-Bstatic'
15548 cxx*)
15549 # Compaq C++
15550 # Make sure the PIC flag is empty. It appears that all Alpha
15551 # Linux and Compaq Tru64 Unix objects are PIC.
15552 lt_prog_compiler_pic_CXX=
15553 lt_prog_compiler_static_CXX='-non_shared'
15555 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15556 # IBM XL 8.0, 9.0 on PPC and BlueGene
15557 lt_prog_compiler_wl_CXX='-Wl,'
15558 lt_prog_compiler_pic_CXX='-qpic'
15559 lt_prog_compiler_static_CXX='-qstaticlink'
15562 case `$CC -V 2>&1 | sed 5q` in
15563 *Sun\ C*)
15564 # Sun C++ 5.9
15565 lt_prog_compiler_pic_CXX='-KPIC'
15566 lt_prog_compiler_static_CXX='-Bstatic'
15567 lt_prog_compiler_wl_CXX='-Qoption ld '
15569 esac
15571 esac
15573 lynxos*)
15575 m88k*)
15577 mvs*)
15578 case $cc_basename in
15579 cxx*)
15580 lt_prog_compiler_pic_CXX='-W c,exportall'
15584 esac
15586 netbsd* | netbsdelf*-gnu)
15588 *qnx* | *nto*)
15589 # QNX uses GNU C++, but need to define -shared option too, otherwise
15590 # it will coredump.
15591 lt_prog_compiler_pic_CXX='-fPIC -shared'
15593 osf3* | osf4* | osf5*)
15594 case $cc_basename in
15595 KCC*)
15596 lt_prog_compiler_wl_CXX='--backend -Wl,'
15598 RCC*)
15599 # Rational C++ 2.4.1
15600 lt_prog_compiler_pic_CXX='-pic'
15602 cxx*)
15603 # Digital/Compaq C++
15604 lt_prog_compiler_wl_CXX='-Wl,'
15605 # Make sure the PIC flag is empty. It appears that all Alpha
15606 # Linux and Compaq Tru64 Unix objects are PIC.
15607 lt_prog_compiler_pic_CXX=
15608 lt_prog_compiler_static_CXX='-non_shared'
15612 esac
15614 psos*)
15616 solaris*)
15617 case $cc_basename in
15618 CC* | sunCC*)
15619 # Sun C++ 4.2, 5.x and Centerline C++
15620 lt_prog_compiler_pic_CXX='-KPIC'
15621 lt_prog_compiler_static_CXX='-Bstatic'
15622 lt_prog_compiler_wl_CXX='-Qoption ld '
15624 gcx*)
15625 # Green Hills C++ Compiler
15626 lt_prog_compiler_pic_CXX='-PIC'
15630 esac
15632 sunos4*)
15633 case $cc_basename in
15634 CC*)
15635 # Sun C++ 4.x
15636 lt_prog_compiler_pic_CXX='-pic'
15637 lt_prog_compiler_static_CXX='-Bstatic'
15639 lcc*)
15640 # Lucid
15641 lt_prog_compiler_pic_CXX='-pic'
15645 esac
15647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15648 case $cc_basename in
15649 CC*)
15650 lt_prog_compiler_wl_CXX='-Wl,'
15651 lt_prog_compiler_pic_CXX='-KPIC'
15652 lt_prog_compiler_static_CXX='-Bstatic'
15654 esac
15656 tandem*)
15657 case $cc_basename in
15658 NCC*)
15659 # NonStop-UX NCC 3.20
15660 lt_prog_compiler_pic_CXX='-KPIC'
15664 esac
15666 vxworks*)
15669 lt_prog_compiler_can_build_shared_CXX=no
15671 esac
15674 case $host_os in
15675 # For platforms which do not support PIC, -DPIC is meaningless:
15676 *djgpp*)
15677 lt_prog_compiler_pic_CXX=
15680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15682 esac
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15686 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15692 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15693 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15696 # Check to make sure the PIC flag actually works.
15698 if test -n "$lt_prog_compiler_pic_CXX"; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15700 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15701 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 lt_cv_prog_compiler_pic_works_CXX=no
15705 ac_outfile=conftest.$ac_objext
15706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15707 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15708 # Insert the option either (1) after the last *FLAGS variable, or
15709 # (2) before a word containing "conftest.", or (3) at the end.
15710 # Note that $ac_compile itself does not contain backslashes and begins
15711 # with a dollar sign (not a hyphen), so the echo should work correctly.
15712 # The option is referenced via a variable to avoid confusing sed.
15713 lt_compile=`echo "$ac_compile" | $SED \
15714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15716 -e 's:$: $lt_compiler_flag:'`
15717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15718 (eval "$lt_compile" 2>conftest.err)
15719 ac_status=$?
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 if (exit $ac_status) && test -s "$ac_outfile"; then
15723 # The compiler can only warn and ignore the option if not recognized
15724 # So say no if there are warnings other than the usual output.
15725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15728 lt_cv_prog_compiler_pic_works_CXX=yes
15731 $RM conftest*
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15735 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15737 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15738 case $lt_prog_compiler_pic_CXX in
15739 "" | " "*) ;;
15740 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15741 esac
15742 else
15743 lt_prog_compiler_pic_CXX=
15744 lt_prog_compiler_can_build_shared_CXX=no
15754 # Check to make sure the static flag actually works.
15756 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15758 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15759 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 lt_cv_prog_compiler_static_works_CXX=no
15763 save_LDFLAGS="$LDFLAGS"
15764 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15767 # The linker can only warn and ignore the option if not recognized
15768 # So say no if there are warnings
15769 if test -s conftest.err; then
15770 # Append any errors to the config.log.
15771 cat conftest.err 1>&5
15772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15774 if diff conftest.exp conftest.er2 >/dev/null; then
15775 lt_cv_prog_compiler_static_works_CXX=yes
15777 else
15778 lt_cv_prog_compiler_static_works_CXX=yes
15781 $RM -r conftest*
15782 LDFLAGS="$save_LDFLAGS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15786 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15788 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15790 else
15791 lt_prog_compiler_static_CXX=
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15799 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801 else
15802 lt_cv_prog_compiler_c_o_CXX=no
15803 $RM -r conftest 2>/dev/null
15804 mkdir conftest
15805 cd conftest
15806 mkdir out
15807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15809 lt_compiler_flag="-o out/conftest2.$ac_objext"
15810 # Insert the option either (1) after the last *FLAGS variable, or
15811 # (2) before a word containing "conftest.", or (3) at the end.
15812 # Note that $ac_compile itself does not contain backslashes and begins
15813 # with a dollar sign (not a hyphen), so the echo should work correctly.
15814 lt_compile=`echo "$ac_compile" | $SED \
15815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817 -e 's:$: $lt_compiler_flag:'`
15818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15819 (eval "$lt_compile" 2>out/conftest.err)
15820 ac_status=$?
15821 cat out/conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15824 then
15825 # The compiler can only warn and ignore the option if not recognized
15826 # So say no if there are warnings
15827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15830 lt_cv_prog_compiler_c_o_CXX=yes
15833 chmod u+w . 2>&5
15834 $RM conftest*
15835 # SGI C++ compiler will create directory out/ii_files/ for
15836 # template instantiation
15837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15838 $RM out/* && rmdir out
15839 cd ..
15840 $RM -r conftest
15841 $RM conftest*
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15845 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15851 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 lt_cv_prog_compiler_c_o_CXX=no
15855 $RM -r conftest 2>/dev/null
15856 mkdir conftest
15857 cd conftest
15858 mkdir out
15859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15861 lt_compiler_flag="-o out/conftest2.$ac_objext"
15862 # Insert the option either (1) after the last *FLAGS variable, or
15863 # (2) before a word containing "conftest.", or (3) at the end.
15864 # Note that $ac_compile itself does not contain backslashes and begins
15865 # with a dollar sign (not a hyphen), so the echo should work correctly.
15866 lt_compile=`echo "$ac_compile" | $SED \
15867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15869 -e 's:$: $lt_compiler_flag:'`
15870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15871 (eval "$lt_compile" 2>out/conftest.err)
15872 ac_status=$?
15873 cat out/conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15876 then
15877 # The compiler can only warn and ignore the option if not recognized
15878 # So say no if there are warnings
15879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15882 lt_cv_prog_compiler_c_o_CXX=yes
15885 chmod u+w . 2>&5
15886 $RM conftest*
15887 # SGI C++ compiler will create directory out/ii_files/ for
15888 # template instantiation
15889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15890 $RM out/* && rmdir out
15891 cd ..
15892 $RM -r conftest
15893 $RM conftest*
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15897 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15902 hard_links="nottested"
15903 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15904 # do not overwrite the value of need_locks provided by the user
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15906 $as_echo_n "checking if we can lock with hard links... " >&6; }
15907 hard_links=yes
15908 $RM conftest*
15909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15910 touch conftest.a
15911 ln conftest.a conftest.b 2>&5 || hard_links=no
15912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15914 $as_echo "$hard_links" >&6; }
15915 if test "$hard_links" = no; then
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15918 need_locks=warn
15920 else
15921 need_locks=no
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15929 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15930 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15931 case $host_os in
15932 aix[4-9]*)
15933 # If we're using GNU nm, then we don't want the "-C" option.
15934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15935 # Also, AIX nm treats weak defined symbols like other global defined
15936 # symbols, whereas GNU nm marks them as "W".
15937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15938 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'
15939 else
15940 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'
15943 pw32*)
15944 export_symbols_cmds_CXX="$ltdll_cmds"
15946 cygwin* | mingw* | cegcc*)
15947 case $cc_basename in
15948 cl*)
15949 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15952 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'
15953 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15955 esac
15957 linux* | k*bsd*-gnu | gnu*)
15958 link_all_deplibs_CXX=no
15961 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15963 esac
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15966 $as_echo "$ld_shlibs_CXX" >&6; }
15967 test "$ld_shlibs_CXX" = no && can_build_shared=no
15969 with_gnu_ld_CXX=$with_gnu_ld
15977 # Do we need to explicitly link libc?
15979 case "x$archive_cmds_need_lc_CXX" in
15980 x|xyes)
15981 # Assume -lc should be added
15982 archive_cmds_need_lc_CXX=yes
15984 if test "$enable_shared" = yes && test "$GCC" = yes; then
15985 case $archive_cmds_CXX in
15986 *'~'*)
15987 # FIXME: we may have to deal with multi-command sequences.
15989 '$CC '*)
15990 # Test whether the compiler implicitly links with -lc since on some
15991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15992 # to ld, don't add -lc before -lgcc.
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15995 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15998 $RM conftest*
15999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16002 (eval $ac_compile) 2>&5
16003 ac_status=$?
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; } 2>conftest.err; then
16006 soname=conftest
16007 lib=conftest
16008 libobjs=conftest.$ac_objext
16009 deplibs=
16010 wl=$lt_prog_compiler_wl_CXX
16011 pic_flag=$lt_prog_compiler_pic_CXX
16012 compiler_flags=-v
16013 linker_flags=-v
16014 verstring=
16015 output_objdir=.
16016 libname=conftest
16017 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16018 allow_undefined_flag_CXX=
16019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16020 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16021 ac_status=$?
16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16023 test $ac_status = 0; }
16024 then
16025 lt_cv_archive_cmds_need_lc_CXX=no
16026 else
16027 lt_cv_archive_cmds_need_lc_CXX=yes
16029 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16030 else
16031 cat conftest.err 1>&5
16033 $RM conftest*
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16037 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16038 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16040 esac
16043 esac
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16107 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16109 library_names_spec=
16110 libname_spec='lib$name'
16111 soname_spec=
16112 shrext_cmds=".so"
16113 postinstall_cmds=
16114 postuninstall_cmds=
16115 finish_cmds=
16116 finish_eval=
16117 shlibpath_var=
16118 shlibpath_overrides_runpath=unknown
16119 version_type=none
16120 dynamic_linker="$host_os ld.so"
16121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16122 need_lib_prefix=unknown
16123 hardcode_into_libs=no
16125 # when you set need_version to no, make sure it does not cause -set_version
16126 # flags to be left without arguments
16127 need_version=unknown
16129 case $host_os in
16130 aix3*)
16131 version_type=linux # correct to gnu/linux during the next big refactor
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16133 shlibpath_var=LIBPATH
16135 # AIX 3 has no versioning support, so we append a major version to the name.
16136 soname_spec='${libname}${release}${shared_ext}$major'
16139 aix[4-9]*)
16140 version_type=linux # correct to gnu/linux during the next big refactor
16141 need_lib_prefix=no
16142 need_version=no
16143 hardcode_into_libs=yes
16144 if test "$host_cpu" = ia64; then
16145 # AIX 5 supports IA64
16146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 else
16149 # With GCC up to 2.95.x, collect2 would create an import file
16150 # for dependence libraries. The import file would start with
16151 # the line `#! .'. This would cause the generated library to
16152 # depend on `.', always an invalid library. This was fixed in
16153 # development snapshots of GCC prior to 3.0.
16154 case $host_os in
16155 aix4 | aix4.[01] | aix4.[01].*)
16156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16157 echo ' yes '
16158 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16160 else
16161 can_build_shared=no
16164 esac
16165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16166 # soname into executable. Probably we can add versioning support to
16167 # collect2, so additional links can be useful in future.
16168 if test "$aix_use_runtimelinking" = yes; then
16169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16170 # instead of lib<name>.a to let people know that these are not
16171 # typical AIX shared libraries.
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 else
16174 # We preserve .a as extension for shared libraries through AIX4.2
16175 # and later when we are not doing run time linking.
16176 library_names_spec='${libname}${release}.a $libname.a'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LIBPATH
16183 amigaos*)
16184 case $host_cpu in
16185 powerpc)
16186 # Since July 2007 AmigaOS4 officially supports .so libraries.
16187 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 m68k)
16191 library_names_spec='$libname.ixlibrary $libname.a'
16192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16193 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'
16195 esac
16198 beos*)
16199 library_names_spec='${libname}${shared_ext}'
16200 dynamic_linker="$host_os ld.so"
16201 shlibpath_var=LIBRARY_PATH
16204 bsdi[45]*)
16205 version_type=linux # correct to gnu/linux during the next big refactor
16206 need_version=no
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16213 # the default ld.so.conf also contains /usr/contrib/lib and
16214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16215 # libtool to hard-code these into programs
16218 cygwin* | mingw* | pw32* | cegcc*)
16219 version_type=windows
16220 shrext_cmds=".dll"
16221 need_version=no
16222 need_lib_prefix=no
16224 case $GCC,$cc_basename in
16225 yes,*)
16226 # gcc
16227 library_names_spec='$libname.dll.a'
16228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16229 postinstall_cmds='base_file=`basename \${file}`~
16230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16231 dldir=$destdir/`dirname \$dlpath`~
16232 test -d \$dldir || mkdir -p \$dldir~
16233 $install_prog $dir/$dlname \$dldir/$dlname~
16234 chmod a+x \$dldir/$dlname~
16235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16239 dlpath=$dir/\$dldll~
16240 $RM \$dlpath'
16241 shlibpath_overrides_runpath=yes
16243 case $host_os in
16244 cygwin*)
16245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16249 mingw* | cegcc*)
16250 # MinGW DLLs use traditional 'lib' prefix
16251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16253 pw32*)
16254 # pw32 DLLs use 'pw' prefix rather than 'lib'
16255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16257 esac
16258 dynamic_linker='Win32 ld.exe'
16261 *,cl*)
16262 # Native MSVC
16263 libname_spec='$name'
16264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265 library_names_spec='${libname}.dll.lib'
16267 case $build_os in
16268 mingw*)
16269 sys_lib_search_path_spec=
16270 lt_save_ifs=$IFS
16271 IFS=';'
16272 for lt_path in $LIB
16274 IFS=$lt_save_ifs
16275 # Let DOS variable expansion print the short 8.3 style file name.
16276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16278 done
16279 IFS=$lt_save_ifs
16280 # Convert to MSYS style.
16281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16283 cygwin*)
16284 # Convert to unix form, then to dos form, then back to unix form
16285 # but this time dos style (no spaces!) so that the unix form looks
16286 # like /cygdrive/c/PROGRA~1:/cygdr...
16287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16292 sys_lib_search_path_spec="$LIB"
16293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16294 # It is most probably a Windows format PATH.
16295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16296 else
16297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16299 # FIXME: find the short name or the path components, as spaces are
16300 # common. (e.g. "Program Files" -> "PROGRA~1")
16302 esac
16304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16305 postinstall_cmds='base_file=`basename \${file}`~
16306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16307 dldir=$destdir/`dirname \$dlpath`~
16308 test -d \$dldir || mkdir -p \$dldir~
16309 $install_prog $dir/$dlname \$dldir/$dlname'
16310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16311 dlpath=$dir/\$dldll~
16312 $RM \$dlpath'
16313 shlibpath_overrides_runpath=yes
16314 dynamic_linker='Win32 link.exe'
16318 # Assume MSVC wrapper
16319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16320 dynamic_linker='Win32 ld.exe'
16322 esac
16323 # FIXME: first we should search . and the directory the executable is in
16324 shlibpath_var=PATH
16327 darwin* | rhapsody*)
16328 dynamic_linker="$host_os dyld"
16329 version_type=darwin
16330 need_lib_prefix=no
16331 need_version=no
16332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16333 soname_spec='${libname}${release}${major}$shared_ext'
16334 shlibpath_overrides_runpath=yes
16335 shlibpath_var=DYLD_LIBRARY_PATH
16336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16341 dgux*)
16342 version_type=linux # correct to gnu/linux during the next big refactor
16343 need_lib_prefix=no
16344 need_version=no
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 shlibpath_var=LD_LIBRARY_PATH
16350 freebsd* | dragonfly*)
16351 # DragonFly does not have aout. When/if they implement a new
16352 # versioning mechanism, adjust this.
16353 if test -x /usr/bin/objformat; then
16354 objformat=`/usr/bin/objformat`
16355 else
16356 case $host_os in
16357 freebsd[23].*) objformat=aout ;;
16358 *) objformat=elf ;;
16359 esac
16361 version_type=freebsd-$objformat
16362 case $version_type in
16363 freebsd-elf*)
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16365 need_version=no
16366 need_lib_prefix=no
16368 freebsd-*)
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16370 need_version=yes
16372 esac
16373 shlibpath_var=LD_LIBRARY_PATH
16374 case $host_os in
16375 freebsd2.*)
16376 shlibpath_overrides_runpath=yes
16378 freebsd3.[01]* | freebsdelf3.[01]*)
16379 shlibpath_overrides_runpath=yes
16380 hardcode_into_libs=yes
16382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16384 shlibpath_overrides_runpath=no
16385 hardcode_into_libs=yes
16387 *) # from 4.6 on, and DragonFly
16388 shlibpath_overrides_runpath=yes
16389 hardcode_into_libs=yes
16391 esac
16394 haiku*)
16395 version_type=linux # correct to gnu/linux during the next big refactor
16396 need_lib_prefix=no
16397 need_version=no
16398 dynamic_linker="$host_os runtime_loader"
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16404 hardcode_into_libs=yes
16407 hpux9* | hpux10* | hpux11*)
16408 # Give a soname corresponding to the major version so that dld.sl refuses to
16409 # link against other versions.
16410 version_type=sunos
16411 need_lib_prefix=no
16412 need_version=no
16413 case $host_cpu in
16414 ia64*)
16415 shrext_cmds='.so'
16416 hardcode_into_libs=yes
16417 dynamic_linker="$host_os dld.so"
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 if test "X$HPUX_IA64_MODE" = X32; then
16423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16424 else
16425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16429 hppa*64*)
16430 shrext_cmds='.sl'
16431 hardcode_into_libs=yes
16432 dynamic_linker="$host_os dld.sl"
16433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16441 shrext_cmds='.sl'
16442 dynamic_linker="$host_os dld.sl"
16443 shlibpath_var=SHLIB_PATH
16444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16448 esac
16449 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16450 postinstall_cmds='chmod 555 $lib'
16451 # or fails outright, so override atomically:
16452 install_override_mode=555
16455 interix[3-9]*)
16456 version_type=linux # correct to gnu/linux during the next big refactor
16457 need_lib_prefix=no
16458 need_version=no
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=no
16464 hardcode_into_libs=yes
16467 irix5* | irix6* | nonstopux*)
16468 case $host_os in
16469 nonstopux*) version_type=nonstopux ;;
16471 if test "$lt_cv_prog_gnu_ld" = yes; then
16472 version_type=linux # correct to gnu/linux during the next big refactor
16473 else
16474 version_type=irix
16475 fi ;;
16476 esac
16477 need_lib_prefix=no
16478 need_version=no
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16481 case $host_os in
16482 irix5* | nonstopux*)
16483 libsuff= shlibsuff=
16486 case $LD in # libtool.m4 will add one of these switches to LD
16487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16488 libsuff= shlibsuff= libmagic=32-bit;;
16489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16490 libsuff=32 shlibsuff=N32 libmagic=N32;;
16491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16493 *) libsuff= shlibsuff= libmagic=never-match;;
16494 esac
16496 esac
16497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16498 shlibpath_overrides_runpath=no
16499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16501 hardcode_into_libs=yes
16504 # No shared lib support for Linux oldld, aout, or coff.
16505 linux*oldld* | linux*aout* | linux*coff*)
16506 dynamic_linker=no
16509 # This must be glibc/ELF.
16510 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16511 version_type=linux # correct to gnu/linux during the next big refactor
16512 need_lib_prefix=no
16513 need_version=no
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 shlibpath_overrides_runpath=no
16520 # Some binutils ld are patched to set DT_RUNPATH
16521 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 lt_cv_shlibpath_overrides_runpath=no
16525 save_LDFLAGS=$LDFLAGS
16526 save_libdir=$libdir
16527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16533 main ()
16537 return 0;
16539 _ACEOF
16540 if ac_fn_cxx_try_link "$LINENO"; then :
16541 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16542 lt_cv_shlibpath_overrides_runpath=yes
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 LDFLAGS=$save_LDFLAGS
16548 libdir=$save_libdir
16552 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16554 # This implies no fast_install, which is unacceptable.
16555 # Some rework will be needed to allow for fast_install
16556 # before this can be enabled.
16557 hardcode_into_libs=yes
16559 # Append ld.so.conf contents to the search path
16560 if test -f /etc/ld.so.conf; then
16561 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' ' '`
16562 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16565 # We used to test for /lib/ld.so.1 and disable shared libraries on
16566 # powerpc, because MkLinux only supported shared libraries with the
16567 # GNU dynamic linker. Since this was broken with cross compilers,
16568 # most powerpc-linux boxes support dynamic linking these days and
16569 # people can always --disable-shared, the test was removed, and we
16570 # assume the GNU/Linux dynamic linker is in use.
16571 dynamic_linker='GNU/Linux ld.so'
16574 netbsdelf*-gnu)
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath=no
16582 hardcode_into_libs=yes
16583 dynamic_linker='NetBSD ld.elf_so'
16586 netbsd*)
16587 version_type=sunos
16588 need_lib_prefix=no
16589 need_version=no
16590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16593 dynamic_linker='NetBSD (a.out) ld.so'
16594 else
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 dynamic_linker='NetBSD ld.elf_so'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16604 newsos6)
16605 version_type=linux # correct to gnu/linux during the next big refactor
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=yes
16611 *nto* | *qnx*)
16612 version_type=qnx
16613 need_lib_prefix=no
16614 need_version=no
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 shlibpath_var=LD_LIBRARY_PATH
16618 shlibpath_overrides_runpath=no
16619 hardcode_into_libs=yes
16620 dynamic_linker='ldqnx.so'
16623 openbsd*)
16624 version_type=sunos
16625 sys_lib_dlsearch_path_spec="/usr/lib"
16626 need_lib_prefix=no
16627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16628 case $host_os in
16629 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16630 *) need_version=no ;;
16631 esac
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16634 shlibpath_var=LD_LIBRARY_PATH
16635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16636 case $host_os in
16637 openbsd2.[89] | openbsd2.[89].*)
16638 shlibpath_overrides_runpath=no
16641 shlibpath_overrides_runpath=yes
16643 esac
16644 else
16645 shlibpath_overrides_runpath=yes
16649 os2*)
16650 libname_spec='$name'
16651 shrext_cmds=".dll"
16652 need_lib_prefix=no
16653 library_names_spec='$libname${shared_ext} $libname.a'
16654 dynamic_linker='OS/2 ld.exe'
16655 shlibpath_var=LIBPATH
16658 osf3* | osf4* | osf5*)
16659 version_type=osf
16660 need_lib_prefix=no
16661 need_version=no
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16669 rdos*)
16670 dynamic_linker=no
16673 solaris*)
16674 version_type=linux # correct to gnu/linux during the next big refactor
16675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes
16681 hardcode_into_libs=yes
16682 # ldd complains unless libraries are executable
16683 postinstall_cmds='chmod +x $lib'
16686 sunos4*)
16687 version_type=sunos
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 if test "$with_gnu_ld" = yes; then
16693 need_lib_prefix=no
16695 need_version=yes
16698 sysv4 | sysv4.3*)
16699 version_type=linux # correct to gnu/linux during the next big refactor
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 case $host_vendor in
16704 sni)
16705 shlibpath_overrides_runpath=no
16706 need_lib_prefix=no
16707 runpath_var=LD_RUN_PATH
16709 siemens)
16710 need_lib_prefix=no
16712 motorola)
16713 need_lib_prefix=no
16714 need_version=no
16715 shlibpath_overrides_runpath=no
16716 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16718 esac
16721 sysv4*MP*)
16722 if test -d /usr/nec ;then
16723 version_type=linux # correct to gnu/linux during the next big refactor
16724 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16725 soname_spec='$libname${shared_ext}.$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16730 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16731 version_type=freebsd-elf
16732 need_lib_prefix=no
16733 need_version=no
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16735 soname_spec='${libname}${release}${shared_ext}$major'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 shlibpath_overrides_runpath=yes
16738 hardcode_into_libs=yes
16739 if test "$with_gnu_ld" = yes; then
16740 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16741 else
16742 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16743 case $host_os in
16744 sco3.2v5*)
16745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16747 esac
16749 sys_lib_dlsearch_path_spec='/usr/lib'
16752 tpf*)
16753 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16754 version_type=linux # correct to gnu/linux during the next big refactor
16755 need_lib_prefix=no
16756 need_version=no
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=no
16760 hardcode_into_libs=yes
16763 uts4*)
16764 version_type=linux # correct to gnu/linux during the next big refactor
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 shlibpath_var=LD_LIBRARY_PATH
16771 dynamic_linker=no
16773 esac
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16775 $as_echo "$dynamic_linker" >&6; }
16776 test "$dynamic_linker" = no && can_build_shared=no
16778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16779 if test "$GCC" = yes; then
16780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16783 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16784 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16786 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16787 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16828 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16829 hardcode_action_CXX=
16830 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16831 test -n "$runpath_var_CXX" ||
16832 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16834 # We can hardcode non-existent directories.
16835 if test "$hardcode_direct_CXX" != no &&
16836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16837 # have to relink, otherwise we might link with an installed library
16838 # when we should be linking with a yet-to-be-installed one
16839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16840 test "$hardcode_minus_L_CXX" != no; then
16841 # Linking always hardcodes the temporary library directory.
16842 hardcode_action_CXX=relink
16843 else
16844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16845 hardcode_action_CXX=immediate
16847 else
16848 # We cannot hardcode anything, or else we can only hardcode existing
16849 # directories.
16850 hardcode_action_CXX=unsupported
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16853 $as_echo "$hardcode_action_CXX" >&6; }
16855 if test "$hardcode_action_CXX" = relink ||
16856 test "$inherit_rpath_CXX" = yes; then
16857 # Fast installation is not supported
16858 enable_fast_install=no
16859 elif test "$shlibpath_overrides_runpath" = yes ||
16860 test "$enable_shared" = no; then
16861 # Fast installation is not necessary
16862 enable_fast_install=needless
16871 fi # test -n "$compiler"
16873 CC=$lt_save_CC
16874 CFLAGS=$lt_save_CFLAGS
16875 LDCXX=$LD
16876 LD=$lt_save_LD
16877 GCC=$lt_save_GCC
16878 with_gnu_ld=$lt_save_with_gnu_ld
16879 lt_cv_path_LDCXX=$lt_cv_path_LD
16880 lt_cv_path_LD=$lt_save_path_LD
16881 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16882 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16883 fi # test "$_lt_caught_CXX_error" != yes
16885 ac_ext=c
16886 ac_cpp='$CPP $CPPFLAGS'
16887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16905 ac_config_commands="$ac_config_commands libtool"
16910 # Only expand once:
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16914 $as_echo_n "checking whether ln -s works... " >&6; }
16915 LN_S=$as_ln_s
16916 if test "$LN_S" = "ln -s"; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16918 $as_echo "yes" >&6; }
16919 else
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16921 $as_echo "no, using $LN_S" >&6; }
16925 # Check for GCC visibility feature
16929 VISIBILITY_CFLAGS=
16930 VISIBILITY_CXXFLAGS=
16931 HAVE_VISIBILITY=0
16932 if test -n "$GCC"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
16934 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
16935 if ${pcre_cv_cc_vis_werror+:} false; then :
16936 $as_echo_n "(cached) " >&6
16937 else
16939 pcre_save_CFLAGS="$CFLAGS"
16940 CFLAGS="$CFLAGS -Werror"
16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16945 main ()
16949 return 0;
16951 _ACEOF
16952 if ac_fn_c_try_compile "$LINENO"; then :
16953 pcre_cv_cc_vis_werror=yes
16954 else
16955 pcre_cv_cc_vis_werror=no
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 CFLAGS="$pcre_save_CFLAGS"
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
16962 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16964 $as_echo_n "checking for simple visibility declarations... " >&6; }
16965 if ${pcre_cv_cc_visibility+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16969 pcre_save_CFLAGS="$CFLAGS"
16970 CFLAGS="$CFLAGS -fvisibility=hidden"
16971 if test $pcre_cv_cc_vis_werror = yes; then
16972 CFLAGS="$CFLAGS -Werror"
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16977 extern __attribute__((__visibility__("default"))) int exportedvar;
16978 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16979 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16980 void dummyfunc (void) {}
16983 main ()
16987 return 0;
16989 _ACEOF
16990 if ac_fn_c_try_compile "$LINENO"; then :
16991 pcre_cv_cc_visibility=yes
16992 else
16993 pcre_cv_cc_visibility=no
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 CFLAGS="$pcre_save_CFLAGS"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
17000 $as_echo "$pcre_cv_cc_visibility" >&6; }
17001 if test $pcre_cv_cc_visibility = yes; then
17002 VISIBILITY_CFLAGS="-fvisibility=hidden"
17003 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
17004 HAVE_VISIBILITY=1
17006 $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17009 $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17012 $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17015 $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17018 $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17021 $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17024 $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17032 cat >>confdefs.h <<_ACEOF
17033 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17034 _ACEOF
17038 # Versioning
17040 PCRE_MAJOR="8"
17041 PCRE_MINOR="35"
17042 PCRE_PRERELEASE=""
17043 PCRE_DATE="2014-04-04"
17045 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17046 then
17047 echo "***"
17048 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17049 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17050 echo "***"
17051 exit 1
17059 # Set a more sensible default value for $(htmldir).
17060 if test "x$htmldir" = 'x${docdir}'
17061 then
17062 htmldir='${docdir}/html'
17065 # Handle --disable-pcre8 (enabled by default)
17066 # Check whether --enable-pcre8 was given.
17067 if test "${enable_pcre8+set}" = set; then :
17068 enableval=$enable_pcre8;
17069 else
17070 enable_pcre8=unset
17075 # Handle --enable-pcre16 (disabled by default)
17076 # Check whether --enable-pcre16 was given.
17077 if test "${enable_pcre16+set}" = set; then :
17078 enableval=$enable_pcre16;
17079 else
17080 enable_pcre16=unset
17085 # Handle --enable-pcre32 (disabled by default)
17086 # Check whether --enable-pcre32 was given.
17087 if test "${enable_pcre32+set}" = set; then :
17088 enableval=$enable_pcre32;
17089 else
17090 enable_pcre32=unset
17095 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17096 # pcre-config.
17097 # Check whether --enable-cpp was given.
17098 if test "${enable_cpp+set}" = set; then :
17099 enableval=$enable_cpp;
17100 else
17101 enable_cpp=unset
17106 # Handle --enable-jit (disabled by default)
17107 # Check whether --enable-jit was given.
17108 if test "${enable_jit+set}" = set; then :
17109 enableval=$enable_jit;
17110 else
17111 enable_jit=no
17115 # Handle --disable-pcregrep-jit (enabled by default)
17116 # Check whether --enable-pcregrep-jit was given.
17117 if test "${enable_pcregrep_jit+set}" = set; then :
17118 enableval=$enable_pcregrep_jit;
17119 else
17120 enable_pcregrep_jit=yes
17124 # Handle --enable-rebuild-chartables
17125 # Check whether --enable-rebuild-chartables was given.
17126 if test "${enable_rebuild_chartables+set}" = set; then :
17127 enableval=$enable_rebuild_chartables;
17128 else
17129 enable_rebuild_chartables=no
17133 # Handle --enable-utf8 (disabled by default)
17134 # Check whether --enable-utf8 was given.
17135 if test "${enable_utf8+set}" = set; then :
17136 enableval=$enable_utf8;
17137 else
17138 enable_utf8=unset
17142 # Handle --enable-utf (disabled by default)
17143 # Check whether --enable-utf was given.
17144 if test "${enable_utf+set}" = set; then :
17145 enableval=$enable_utf;
17146 else
17147 enable_utf=unset
17151 # Handle --enable-unicode-properties
17152 # Check whether --enable-unicode-properties was given.
17153 if test "${enable_unicode_properties+set}" = set; then :
17154 enableval=$enable_unicode_properties;
17155 else
17156 enable_unicode_properties=no
17160 # Handle newline options
17161 ac_pcre_newline=lf
17162 # Check whether --enable-newline-is-cr was given.
17163 if test "${enable_newline_is_cr+set}" = set; then :
17164 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17167 # Check whether --enable-newline-is-lf was given.
17168 if test "${enable_newline_is_lf+set}" = set; then :
17169 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17172 # Check whether --enable-newline-is-crlf was given.
17173 if test "${enable_newline_is_crlf+set}" = set; then :
17174 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17177 # Check whether --enable-newline-is-anycrlf was given.
17178 if test "${enable_newline_is_anycrlf+set}" = set; then :
17179 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17182 # Check whether --enable-newline-is-any was given.
17183 if test "${enable_newline_is_any+set}" = set; then :
17184 enableval=$enable_newline_is_any; ac_pcre_newline=any
17187 enable_newline="$ac_pcre_newline"
17189 # Handle --enable-bsr-anycrlf
17190 # Check whether --enable-bsr-anycrlf was given.
17191 if test "${enable_bsr_anycrlf+set}" = set; then :
17192 enableval=$enable_bsr_anycrlf;
17193 else
17194 enable_bsr_anycrlf=no
17198 # Handle --enable-ebcdic
17199 # Check whether --enable-ebcdic was given.
17200 if test "${enable_ebcdic+set}" = set; then :
17201 enableval=$enable_ebcdic;
17202 else
17203 enable_ebcdic=no
17207 # Handle --enable-ebcdic-nl25
17208 # Check whether --enable-ebcdic-nl25 was given.
17209 if test "${enable_ebcdic_nl25+set}" = set; then :
17210 enableval=$enable_ebcdic_nl25;
17211 else
17212 enable_ebcdic_nl25=no
17216 # Handle --disable-stack-for-recursion
17217 # Check whether --enable-stack-for-recursion was given.
17218 if test "${enable_stack_for_recursion+set}" = set; then :
17219 enableval=$enable_stack_for_recursion;
17220 else
17221 enable_stack_for_recursion=yes
17225 # Handle --enable-pcregrep-libz
17226 # Check whether --enable-pcregrep-libz was given.
17227 if test "${enable_pcregrep_libz+set}" = set; then :
17228 enableval=$enable_pcregrep_libz;
17229 else
17230 enable_pcregrep_libz=no
17234 # Handle --enable-pcregrep-libbz2
17235 # Check whether --enable-pcregrep-libbz2 was given.
17236 if test "${enable_pcregrep_libbz2+set}" = set; then :
17237 enableval=$enable_pcregrep_libbz2;
17238 else
17239 enable_pcregrep_libbz2=no
17243 # Handle --with-pcregrep-bufsize=N
17245 # Check whether --with-pcregrep-bufsize was given.
17246 if test "${with_pcregrep_bufsize+set}" = set; then :
17247 withval=$with_pcregrep_bufsize;
17248 else
17249 with_pcregrep_bufsize=20480
17253 # Handle --enable-pcretest-libedit
17254 # Check whether --enable-pcretest-libedit was given.
17255 if test "${enable_pcretest_libedit+set}" = set; then :
17256 enableval=$enable_pcretest_libedit;
17257 else
17258 enable_pcretest_libedit=no
17262 # Handle --enable-pcretest-libreadline
17263 # Check whether --enable-pcretest-libreadline was given.
17264 if test "${enable_pcretest_libreadline+set}" = set; then :
17265 enableval=$enable_pcretest_libreadline;
17266 else
17267 enable_pcretest_libreadline=no
17271 # Handle --with-posix-malloc-threshold=NBYTES
17273 # Check whether --with-posix-malloc-threshold was given.
17274 if test "${with_posix_malloc_threshold+set}" = set; then :
17275 withval=$with_posix_malloc_threshold;
17276 else
17277 with_posix_malloc_threshold=10
17281 # Handle --with-link-size=N
17283 # Check whether --with-link-size was given.
17284 if test "${with_link_size+set}" = set; then :
17285 withval=$with_link_size;
17286 else
17287 with_link_size=2
17291 # Handle --with-parens-nest-limit=N
17293 # Check whether --with-parens-nest-limit was given.
17294 if test "${with_parens_nest_limit+set}" = set; then :
17295 withval=$with_parens_nest_limit;
17296 else
17297 with_parens_nest_limit=250
17301 # Handle --with-match-limit=N
17303 # Check whether --with-match-limit was given.
17304 if test "${with_match_limit+set}" = set; then :
17305 withval=$with_match_limit;
17306 else
17307 with_match_limit=10000000
17311 # Handle --with-match-limit_recursion=N
17313 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17314 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17315 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17316 # different numeric value (or even the same numeric value as MATCH_LIMIT,
17317 # though no longer defined in terms of the latter).
17320 # Check whether --with-match-limit-recursion was given.
17321 if test "${with_match_limit_recursion+set}" = set; then :
17322 withval=$with_match_limit_recursion;
17323 else
17324 with_match_limit_recursion=MATCH_LIMIT
17328 # Handle --enable-valgrind
17329 # Check whether --enable-valgrind was given.
17330 if test "${enable_valgrind+set}" = set; then :
17331 enableval=$enable_valgrind;
17332 else
17333 enable_valgrind=no
17337 # Enable code coverage reports using gcov
17338 # Check whether --enable-coverage was given.
17339 if test "${enable_coverage+set}" = set; then :
17340 enableval=$enable_coverage;
17341 else
17342 enable_coverage=no
17346 # Copy enable_utf8 value to enable_utf for compatibility reasons
17347 if test "x$enable_utf8" != "xunset"
17348 then
17349 if test "x$enable_utf" != "xunset"
17350 then
17351 as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
17353 enable_utf=$enable_utf8
17356 # Set the default value for pcre8
17357 if test "x$enable_pcre8" = "xunset"
17358 then
17359 enable_pcre8=yes
17362 # Set the default value for pcre16
17363 if test "x$enable_pcre16" = "xunset"
17364 then
17365 enable_pcre16=no
17368 # Set the default value for pcre32
17369 if test "x$enable_pcre32" = "xunset"
17370 then
17371 enable_pcre32=no
17374 # Make sure enable_pcre8 or enable_pcre16 was set
17375 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17376 then
17377 as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17380 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17381 if test "x$enable_unicode_properties" = "xyes"
17382 then
17383 if test "x$enable_utf" = "xno"
17384 then
17385 as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17387 enable_utf=yes
17390 # enable_utf is disabled by default.
17391 if test "x$enable_utf" = "xunset"
17392 then
17393 enable_utf=no
17396 # enable_cpp copies the value of enable_pcre8 by default
17397 if test "x$enable_cpp" = "xunset"
17398 then
17399 enable_cpp=$enable_pcre8
17402 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17403 if test "x$enable_cpp" = "xyes"
17404 then
17405 if test "x$enable_pcre8" = "xno"
17406 then
17407 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
17411 # Convert the newline identifier into the appropriate integer value. The first
17412 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
17413 # are changed below.
17415 case "$enable_newline" in
17416 lf) ac_pcre_newline_value=10 ;;
17417 cr) ac_pcre_newline_value=13 ;;
17418 crlf) ac_pcre_newline_value=3338 ;;
17419 anycrlf) ac_pcre_newline_value=-2 ;;
17420 any) ac_pcre_newline_value=-1 ;;
17422 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
17424 esac
17426 # --enable-ebcdic-nl25 implies --enable-ebcdic
17427 if test "x$enable_ebcdic_nl25" = "xyes"; then
17428 enable_ebcdic=yes
17431 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
17432 # and the newline value is adjusted appropriately (CR is still 13, but LF is
17433 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
17434 # handle EBCDIC and UTF in the same build. To do so it would need to use
17435 # different character constants depending on the mode.
17437 if test "x$enable_ebcdic" = "xyes"; then
17438 enable_rebuild_chartables=yes
17440 if test "x$enable_utf" = "xyes"; then
17441 as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
17444 if test "x$enable_ebcdic_nl25" = "xno"; then
17445 case "$ac_pcre_newline_value" in
17446 10) ac_pcre_newline_value=21 ;;
17447 3338) ac_pcre_newline_value=3349 ;;
17448 esac
17449 else
17450 case "$ac_pcre_newline_value" in
17451 10) ac_pcre_newline_value=37 ;;
17452 3338) ac_pcre_newline_value=3365 ;;
17453 esac
17457 # Check argument to --with-link-size
17458 case "$with_link_size" in
17459 2|3|4) ;;
17461 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
17463 esac
17467 # Checks for header files.
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17469 $as_echo_n "checking for ANSI C header files... " >&6; }
17470 if ${ac_cv_header_stdc+:} false; then :
17471 $as_echo_n "(cached) " >&6
17472 else
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 #include <stdlib.h>
17476 #include <stdarg.h>
17477 #include <string.h>
17478 #include <float.h>
17481 main ()
17485 return 0;
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489 ac_cv_header_stdc=yes
17490 else
17491 ac_cv_header_stdc=no
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495 if test $ac_cv_header_stdc = yes; then
17496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499 #include <string.h>
17501 _ACEOF
17502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17503 $EGREP "memchr" >/dev/null 2>&1; then :
17505 else
17506 ac_cv_header_stdc=no
17508 rm -f conftest*
17512 if test $ac_cv_header_stdc = yes; then
17513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 #include <stdlib.h>
17518 _ACEOF
17519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17520 $EGREP "free" >/dev/null 2>&1; then :
17522 else
17523 ac_cv_header_stdc=no
17525 rm -f conftest*
17529 if test $ac_cv_header_stdc = yes; then
17530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17531 if test "$cross_compiling" = yes; then :
17533 else
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #include <ctype.h>
17537 #include <stdlib.h>
17538 #if ((' ' & 0x0FF) == 0x020)
17539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17541 #else
17542 # define ISLOWER(c) \
17543 (('a' <= (c) && (c) <= 'i') \
17544 || ('j' <= (c) && (c) <= 'r') \
17545 || ('s' <= (c) && (c) <= 'z'))
17546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17547 #endif
17549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17551 main ()
17553 int i;
17554 for (i = 0; i < 256; i++)
17555 if (XOR (islower (i), ISLOWER (i))
17556 || toupper (i) != TOUPPER (i))
17557 return 2;
17558 return 0;
17560 _ACEOF
17561 if ac_fn_c_try_run "$LINENO"; then :
17563 else
17564 ac_cv_header_stdc=no
17566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17567 conftest.$ac_objext conftest.beam conftest.$ac_ext
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17573 $as_echo "$ac_cv_header_stdc" >&6; }
17574 if test $ac_cv_header_stdc = yes; then
17576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17580 for ac_header in limits.h sys/types.h sys/stat.h dirent.h
17581 do :
17582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17585 cat >>confdefs.h <<_ACEOF
17586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17587 _ACEOF
17591 done
17593 for ac_header in windows.h
17594 do :
17595 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17596 if test "x$ac_cv_header_windows_h" = xyes; then :
17597 cat >>confdefs.h <<_ACEOF
17598 #define HAVE_WINDOWS_H 1
17599 _ACEOF
17600 HAVE_WINDOWS_H=1
17603 done
17606 # The files below are C++ header files.
17607 pcre_have_type_traits="0"
17608 pcre_have_bits_type_traits="0"
17610 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
17611 as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
17614 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
17615 then
17616 ac_ext=cpp
17617 ac_cpp='$CXXCPP $CPPFLAGS'
17618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17623 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
17624 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
17625 # we want to make one an alias for the other. Different systems do
17626 # this in different ways. Some systems, for instance, can do it via
17627 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
17628 OLD_LDFLAGS="$LDFLAGS"
17629 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
17630 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
17632 $as_echo_n "checking for alias support in the linker... " >&6; }
17633 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
17634 # We try to run the linker with this new ld flag. If the link fails,
17635 # we give up and remove the new flag from LDFLAGS.
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 namespace pcrecpp {
17639 class RE { static int no_arg; };
17640 int RE::no_arg;
17643 main ()
17647 return 0;
17649 _ACEOF
17650 if ac_fn_cxx_try_link "$LINENO"; then :
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17652 $as_echo "yes" >&6; };
17653 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
17654 break;
17655 else
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657 $as_echo "no" >&6; }
17659 rm -f core conftest.err conftest.$ac_objext \
17660 conftest$ac_exeext conftest.$ac_ext
17661 done
17662 LDFLAGS="$OLD_LDFLAGS"
17664 # We could be more clever here, given we're doing AC_SUBST with this
17665 # (eg set a var to be the name of the include file we want). But we're not
17666 # so it's easy to change back to 'regular' autoconf vars if we needed to.
17668 for ac_header in string
17669 do :
17670 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17671 if test "x$ac_cv_header_string" = xyes; then :
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_STRING 1
17674 _ACEOF
17675 pcre_have_cpp_headers="1"
17676 else
17677 pcre_have_cpp_headers="0"
17680 done
17682 for ac_header in bits/type_traits.h
17683 do :
17684 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
17685 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
17686 cat >>confdefs.h <<_ACEOF
17687 #define HAVE_BITS_TYPE_TRAITS_H 1
17688 _ACEOF
17689 pcre_have_bits_type_traits="1"
17690 else
17691 pcre_have_bits_type_traits="0"
17694 done
17696 for ac_header in type_traits.h
17697 do :
17698 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
17699 if test "x$ac_cv_header_type_traits_h" = xyes; then :
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_TYPE_TRAITS_H 1
17702 _ACEOF
17703 pcre_have_type_traits="1"
17704 else
17705 pcre_have_type_traits="0"
17708 done
17711 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17712 # in a c++ context. This matters becuase strtoimax is C99 and may not
17713 # be supported by the C++ compiler.)
17714 # Figure out how to create a longlong from a string: strtoll and
17715 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
17716 # strtoll, for instance, but it only takes 2 args instead of 3!
17717 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17722 have_strto_fn=0
17723 for fn in strtoq strtoll _strtoi64 strtoimax; do
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
17725 $as_echo_n "checking for $fn... " >&6; }
17726 if test "$fn" = strtoimax; then
17727 include=stdint.h
17728 else
17729 include=stdlib.h
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <$include>
17735 main ()
17737 char* e; return $fn("100", &e, 10)
17739 return 0;
17741 _ACEOF
17742 if ac_fn_cxx_try_compile "$LINENO"; then :
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17744 $as_echo "yes" >&6; }
17746 cat >>confdefs.h <<_ACEOF
17747 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17748 _ACEOF
17750 have_strto_fn=1
17751 break
17752 else
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17754 $as_echo "no" >&6; }
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757 done
17759 if test "$have_strto_fn" = 1; then
17760 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17761 if test "x$ac_cv_type_long_long" = xyes; then :
17763 cat >>confdefs.h <<_ACEOF
17764 #define HAVE_LONG_LONG 1
17765 _ACEOF
17767 pcre_have_long_long="1"
17768 else
17769 pcre_have_long_long="0"
17772 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17773 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
17775 cat >>confdefs.h <<_ACEOF
17776 #define HAVE_UNSIGNED_LONG_LONG 1
17777 _ACEOF
17779 pcre_have_ulong_long="1"
17780 else
17781 pcre_have_ulong_long="0"
17784 else
17785 pcre_have_long_long="0"
17786 pcre_have_ulong_long="0"
17791 ac_ext=c
17792 ac_cpp='$CPP $CPPFLAGS'
17793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798 # Using AC_SUBST eliminates the need to include config.h in a public .h file
17802 # Conditional compilation
17803 if test "x$enable_pcre8" = "xyes"; then
17804 WITH_PCRE8_TRUE=
17805 WITH_PCRE8_FALSE='#'
17806 else
17807 WITH_PCRE8_TRUE='#'
17808 WITH_PCRE8_FALSE=
17811 if test "x$enable_pcre16" = "xyes"; then
17812 WITH_PCRE16_TRUE=
17813 WITH_PCRE16_FALSE='#'
17814 else
17815 WITH_PCRE16_TRUE='#'
17816 WITH_PCRE16_FALSE=
17819 if test "x$enable_pcre32" = "xyes"; then
17820 WITH_PCRE32_TRUE=
17821 WITH_PCRE32_FALSE='#'
17822 else
17823 WITH_PCRE32_TRUE='#'
17824 WITH_PCRE32_FALSE=
17827 if test "x$enable_cpp" = "xyes"; then
17828 WITH_PCRE_CPP_TRUE=
17829 WITH_PCRE_CPP_FALSE='#'
17830 else
17831 WITH_PCRE_CPP_TRUE='#'
17832 WITH_PCRE_CPP_FALSE=
17835 if test "x$enable_rebuild_chartables" = "xyes"; then
17836 WITH_REBUILD_CHARTABLES_TRUE=
17837 WITH_REBUILD_CHARTABLES_FALSE='#'
17838 else
17839 WITH_REBUILD_CHARTABLES_TRUE='#'
17840 WITH_REBUILD_CHARTABLES_FALSE=
17843 if test "x$enable_jit" = "xyes"; then
17844 WITH_JIT_TRUE=
17845 WITH_JIT_FALSE='#'
17846 else
17847 WITH_JIT_TRUE='#'
17848 WITH_JIT_FALSE=
17851 if test "x$enable_utf" = "xyes"; then
17852 WITH_UTF_TRUE=
17853 WITH_UTF_FALSE='#'
17854 else
17855 WITH_UTF_TRUE='#'
17856 WITH_UTF_FALSE=
17859 if test "x$enable_valgrind" = "xyes"; then
17860 WITH_VALGRIND_TRUE=
17861 WITH_VALGRIND_FALSE='#'
17862 else
17863 WITH_VALGRIND_TRUE='#'
17864 WITH_VALGRIND_FALSE=
17868 # Checks for typedefs, structures, and compiler characteristics.
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17871 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17872 if ${ac_cv_c_const+:} false; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17879 main ()
17882 #ifndef __cplusplus
17883 /* Ultrix mips cc rejects this sort of thing. */
17884 typedef int charset[2];
17885 const charset cs = { 0, 0 };
17886 /* SunOS 4.1.1 cc rejects this. */
17887 char const *const *pcpcc;
17888 char **ppc;
17889 /* NEC SVR4.0.2 mips cc rejects this. */
17890 struct point {int x, y;};
17891 static struct point const zero = {0,0};
17892 /* AIX XL C 1.02.0.0 rejects this.
17893 It does not let you subtract one const X* pointer from another in
17894 an arm of an if-expression whose if-part is not a constant
17895 expression */
17896 const char *g = "string";
17897 pcpcc = &g + (g ? g-g : 0);
17898 /* HPUX 7.0 cc rejects these. */
17899 ++pcpcc;
17900 ppc = (char**) pcpcc;
17901 pcpcc = (char const *const *) ppc;
17902 { /* SCO 3.2v4 cc rejects this sort of thing. */
17903 char tx;
17904 char *t = &tx;
17905 char const *s = 0 ? (char *) 0 : (char const *) 0;
17907 *t++ = 0;
17908 if (s) return 0;
17910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17911 int x[] = {25, 17};
17912 const int *foo = &x[0];
17913 ++foo;
17915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17916 typedef const int *iptr;
17917 iptr p = 0;
17918 ++p;
17920 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17922 struct s { int j; const int *ap[3]; } bx;
17923 struct s *b = &bx; b->j = 5;
17925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17926 const int foo = 10;
17927 if (!foo) return 0;
17929 return !cs[0] && !zero.x;
17930 #endif
17933 return 0;
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937 ac_cv_c_const=yes
17938 else
17939 ac_cv_c_const=no
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17944 $as_echo "$ac_cv_c_const" >&6; }
17945 if test $ac_cv_c_const = no; then
17947 $as_echo "#define const /**/" >>confdefs.h
17951 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17952 if test "x$ac_cv_type_size_t" = xyes; then :
17954 else
17956 cat >>confdefs.h <<_ACEOF
17957 #define size_t unsigned int
17958 _ACEOF
17963 # Checks for library functions.
17965 for ac_func in bcopy memmove strerror
17966 do :
17967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17970 cat >>confdefs.h <<_ACEOF
17971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17972 _ACEOF
17975 done
17978 # Check for the availability of libz (aka zlib)
17980 for ac_header in zlib.h
17981 do :
17982 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17983 if test "x$ac_cv_header_zlib_h" = xyes; then :
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_ZLIB_H 1
17986 _ACEOF
17987 HAVE_ZLIB_H=1
17990 done
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17993 $as_echo_n "checking for gzopen in -lz... " >&6; }
17994 if ${ac_cv_lib_z_gzopen+:} false; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-lz $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char gzopen ();
18010 main ()
18012 return gzopen ();
18014 return 0;
18016 _ACEOF
18017 if ac_fn_c_try_link "$LINENO"; then :
18018 ac_cv_lib_z_gzopen=yes
18019 else
18020 ac_cv_lib_z_gzopen=no
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18027 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18028 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18029 HAVE_LIBZ=1
18033 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18034 # as for libz. However, this had the following problem, diagnosed and fixed by
18035 # a user:
18037 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18038 # under Win32.
18039 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18040 # therefore missing the function definition.
18041 # - The compiler thus generates a "C" signature for the test function.
18042 # - The linker fails to find the "C" function.
18043 # - PCRE fails to configure if asked to do so against libbz2.
18045 # Solution:
18047 # - Replace the AC_CHECK_LIB test with a custom test.
18049 for ac_header in bzlib.h
18050 do :
18051 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18052 if test "x$ac_cv_header_bzlib_h" = xyes; then :
18053 cat >>confdefs.h <<_ACEOF
18054 #define HAVE_BZLIB_H 1
18055 _ACEOF
18056 HAVE_BZLIB_H=1
18059 done
18061 # Original test
18062 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18064 # Custom test follows
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18067 $as_echo_n "checking for libbz2... " >&6; }
18068 OLD_LIBS="$LIBS"
18069 LIBS="$LIBS -lbz2"
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 #ifdef HAVE_BZLIB_H
18074 #include <bzlib.h>
18075 #endif
18077 main ()
18079 return (int)BZ2_bzopen("conftest", "rb");
18081 return 0;
18083 _ACEOF
18084 if ac_fn_c_try_link "$LINENO"; then :
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18086 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18087 else
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18091 rm -f core conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
18093 LIBS="$OLD_LIBS"
18095 # Check for the availabiity of libreadline
18097 if test "$enable_pcretest_libreadline" = "yes"; then
18098 for ac_header in readline/readline.h
18099 do :
18100 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18101 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18102 cat >>confdefs.h <<_ACEOF
18103 #define HAVE_READLINE_READLINE_H 1
18104 _ACEOF
18105 HAVE_READLINE_H=1
18108 done
18110 for ac_header in readline/history.h
18111 do :
18112 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18113 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18114 cat >>confdefs.h <<_ACEOF
18115 #define HAVE_READLINE_HISTORY_H 1
18116 _ACEOF
18117 HAVE_HISTORY_H=1
18120 done
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18123 $as_echo_n "checking for readline in -lreadline... " >&6; }
18124 if ${ac_cv_lib_readline_readline+:} false; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18127 ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lreadline $LIBS"
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char readline ();
18140 main ()
18142 return readline ();
18144 return 0;
18146 _ACEOF
18147 if ac_fn_c_try_link "$LINENO"; then :
18148 ac_cv_lib_readline_readline=yes
18149 else
18150 ac_cv_lib_readline_readline=no
18152 rm -f core conftest.err conftest.$ac_objext \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18157 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18158 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18159 LIBREADLINE="-lreadline"
18160 else
18161 unset ac_cv_lib_readline_readline;
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18163 $as_echo_n "checking for readline in -lreadline... " >&6; }
18164 if ${ac_cv_lib_readline_readline+:} false; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 ac_check_lib_save_LIBS=$LIBS
18168 LIBS="-lreadline -ltinfo $LIBS"
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char readline ();
18180 main ()
18182 return readline ();
18184 return 0;
18186 _ACEOF
18187 if ac_fn_c_try_link "$LINENO"; then :
18188 ac_cv_lib_readline_readline=yes
18189 else
18190 ac_cv_lib_readline_readline=no
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18197 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18198 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18199 LIBREADLINE="-ltinfo"
18200 else
18201 unset ac_cv_lib_readline_readline;
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18203 $as_echo_n "checking for readline in -lreadline... " >&6; }
18204 if ${ac_cv_lib_readline_readline+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lreadline -lcurses $LIBS"
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 char readline ();
18220 main ()
18222 return readline ();
18224 return 0;
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_lib_readline_readline=yes
18229 else
18230 ac_cv_lib_readline_readline=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18237 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18238 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18239 LIBREADLINE="-lcurses"
18240 else
18241 unset ac_cv_lib_readline_readline;
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18243 $as_echo_n "checking for readline in -lreadline... " >&6; }
18244 if ${ac_cv_lib_readline_readline+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-lreadline -lncurses $LIBS"
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 char readline ();
18260 main ()
18262 return readline ();
18264 return 0;
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"; then :
18268 ac_cv_lib_readline_readline=yes
18269 else
18270 ac_cv_lib_readline_readline=no
18272 rm -f core conftest.err conftest.$ac_objext \
18273 conftest$ac_exeext conftest.$ac_ext
18274 LIBS=$ac_check_lib_save_LIBS
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18277 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18278 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18279 LIBREADLINE="-lncurses"
18280 else
18281 unset ac_cv_lib_readline_readline;
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18283 $as_echo_n "checking for readline in -lreadline... " >&6; }
18284 if ${ac_cv_lib_readline_readline+:} false; then :
18285 $as_echo_n "(cached) " >&6
18286 else
18287 ac_check_lib_save_LIBS=$LIBS
18288 LIBS="-lreadline -lncursesw $LIBS"
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 char readline ();
18300 main ()
18302 return readline ();
18304 return 0;
18306 _ACEOF
18307 if ac_fn_c_try_link "$LINENO"; then :
18308 ac_cv_lib_readline_readline=yes
18309 else
18310 ac_cv_lib_readline_readline=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18317 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18318 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18319 LIBREADLINE="-lncursesw"
18320 else
18321 unset ac_cv_lib_readline_readline;
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18323 $as_echo_n "checking for readline in -lreadline... " >&6; }
18324 if ${ac_cv_lib_readline_readline+:} false; then :
18325 $as_echo_n "(cached) " >&6
18326 else
18327 ac_check_lib_save_LIBS=$LIBS
18328 LIBS="-lreadline -ltermcap $LIBS"
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 /* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18335 #ifdef __cplusplus
18336 extern "C"
18337 #endif
18338 char readline ();
18340 main ()
18342 return readline ();
18344 return 0;
18346 _ACEOF
18347 if ac_fn_c_try_link "$LINENO"; then :
18348 ac_cv_lib_readline_readline=yes
18349 else
18350 ac_cv_lib_readline_readline=no
18352 rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18357 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18358 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18359 LIBREADLINE="-ltermcap"
18360 else
18361 LIBREADLINE=""
18375 if test -n "$LIBREADLINE"; then
18376 if test "$LIBREADLINE" != "-lreadline"; then
18377 echo "-lreadline needs $LIBREADLINE"
18378 LIBREADLINE="-lreadline $LIBREADLINE"
18384 # Check for the availability of libedit. Different distributions put its
18385 # headers in different places. Try to cover the most common ones.
18387 if test "$enable_pcretest_libedit" = "yes"; then
18388 for ac_header in editline/readline.h
18389 do :
18390 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18391 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18392 cat >>confdefs.h <<_ACEOF
18393 #define HAVE_EDITLINE_READLINE_H 1
18394 _ACEOF
18395 HAVE_EDITLINE_READLINE_H=1
18396 else
18397 for ac_header in edit/readline/readline.h
18398 do :
18399 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18400 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_EDIT_READLINE_READLINE_H 1
18403 _ACEOF
18404 HAVE_READLINE_READLINE_H=1
18405 else
18406 for ac_header in readline/readline.h
18407 do :
18408 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18409 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_READLINE_READLINE_H 1
18412 _ACEOF
18413 HAVE_READLINE_READLINE_H=1
18416 done
18420 done
18424 done
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
18427 $as_echo_n "checking for readline in -ledit... " >&6; }
18428 if ${ac_cv_lib_edit_readline+:} false; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 ac_check_lib_save_LIBS=$LIBS
18432 LIBS="-ledit $LIBS"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char readline ();
18444 main ()
18446 return readline ();
18448 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 ac_cv_lib_edit_readline=yes
18453 else
18454 ac_cv_lib_edit_readline=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
18461 $as_echo "$ac_cv_lib_edit_readline" >&6; }
18462 if test "x$ac_cv_lib_edit_readline" = xyes; then :
18463 LIBEDIT="-ledit"
18468 # This facilitates -ansi builds under Linux
18470 PCRE_STATIC_CFLAG=""
18471 if test "x$enable_shared" = "xno" ; then
18473 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
18475 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
18479 # Here is where pcre specific defines are handled
18481 if test "$enable_pcre8" = "yes"; then
18483 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
18487 if test "$enable_pcre16" = "yes"; then
18489 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
18493 if test "$enable_pcre32" = "yes"; then
18495 $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
18499 # Unless running under Windows, JIT support requires pthreads.
18501 if test "$enable_jit" = "yes"; then
18502 if test "$HAVE_WINDOWS_H" != "1"; then
18505 ac_ext=c
18506 ac_cpp='$CPP $CPPFLAGS'
18507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18511 ax_pthread_ok=no
18513 # We used to check for pthread.h first, but this fails if pthread.h
18514 # requires special compiler flags (e.g. on True64 or Sequent).
18515 # It gets checked for in the link test anyway.
18517 # First of all, check if the user has set any of the PTHREAD_LIBS,
18518 # etcetera environment variables, and if threads linking works using
18519 # them:
18520 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18521 save_CFLAGS="$CFLAGS"
18522 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18523 save_LIBS="$LIBS"
18524 LIBS="$PTHREAD_LIBS $LIBS"
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18526 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char pthread_join ();
18538 main ()
18540 return pthread_join ();
18542 return 0;
18544 _ACEOF
18545 if ac_fn_c_try_link "$LINENO"; then :
18546 ax_pthread_ok=yes
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18551 $as_echo "$ax_pthread_ok" >&6; }
18552 if test x"$ax_pthread_ok" = xno; then
18553 PTHREAD_LIBS=""
18554 PTHREAD_CFLAGS=""
18556 LIBS="$save_LIBS"
18557 CFLAGS="$save_CFLAGS"
18560 # We must check for the threads library under a number of different
18561 # names; the ordering is very important because some systems
18562 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18563 # libraries is broken (non-POSIX).
18565 # Create a list of thread flags to try. Items starting with a "-" are
18566 # C compiler flags, and other items are library names, except for "none"
18567 # which indicates that we try without any flags at all, and "pthread-config"
18568 # which is a program returning the flags for the Pth emulation library.
18570 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18572 # The ordering *is* (sometimes) important. Some notes on the
18573 # individual items follow:
18575 # pthreads: AIX (must check this before -lpthread)
18576 # none: in case threads are in libc; should be tried before -Kthread and
18577 # other compiler flags to prevent continual compiler warnings
18578 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18579 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18580 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18581 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18582 # -pthreads: Solaris/gcc
18583 # -mthreads: Mingw32/gcc, Lynx/gcc
18584 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18585 # doesn't hurt to check since this sometimes defines pthreads too;
18586 # also defines -D_REENTRANT)
18587 # ... -mt is also the pthreads flag for HP/aCC
18588 # pthread: Linux, etcetera
18589 # --thread-safe: KAI C++
18590 # pthread-config: use pthread-config program (for GNU Pth library)
18592 case ${host_os} in
18593 solaris*)
18595 # On Solaris (at least, for some versions), libc contains stubbed
18596 # (non-functional) versions of the pthreads routines, so link-based
18597 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18598 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18599 # a function called by this macro, so we could check for that, but
18600 # who knows whether they'll stub that too in a future libc.) So,
18601 # we'll just look for -pthreads and -lpthread first:
18603 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18606 darwin*)
18607 ax_pthread_flags="-pthread $ax_pthread_flags"
18609 esac
18611 if test x"$ax_pthread_ok" = xno; then
18612 for flag in $ax_pthread_flags; do
18614 case $flag in
18615 none)
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18617 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18622 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18623 PTHREAD_CFLAGS="$flag"
18626 pthread-config)
18627 # Extract the first word of "pthread-config", so it can be a program name with args.
18628 set dummy pthread-config; ac_word=$2
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18630 $as_echo_n "checking for $ac_word... " >&6; }
18631 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18632 $as_echo_n "(cached) " >&6
18633 else
18634 if test -n "$ax_pthread_config"; then
18635 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18636 else
18637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638 for as_dir in $PATH
18640 IFS=$as_save_IFS
18641 test -z "$as_dir" && as_dir=.
18642 for ac_exec_ext in '' $ac_executable_extensions; do
18643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18644 ac_cv_prog_ax_pthread_config="yes"
18645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18646 break 2
18648 done
18649 done
18650 IFS=$as_save_IFS
18652 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18655 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18656 if test -n "$ax_pthread_config"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18658 $as_echo "$ax_pthread_config" >&6; }
18659 else
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18665 if test x"$ax_pthread_config" = xno; then continue; fi
18666 PTHREAD_CFLAGS="`pthread-config --cflags`"
18667 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18672 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18673 PTHREAD_LIBS="-l$flag"
18675 esac
18677 save_LIBS="$LIBS"
18678 save_CFLAGS="$CFLAGS"
18679 LIBS="$PTHREAD_LIBS $LIBS"
18680 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18682 # Check for various functions. We must include pthread.h,
18683 # since some functions may be macros. (On the Sequent, we
18684 # need a special flag -Kthread to make this header compile.)
18685 # We check for pthread_join because it is in -lpthread on IRIX
18686 # while pthread_create is in libc. We check for pthread_attr_init
18687 # due to DEC craziness with -lpthreads. We check for
18688 # pthread_cleanup_push because it is one of the few pthread
18689 # functions on Solaris that doesn't have a non-functional libc stub.
18690 # We try pthread_create on general principles.
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 #include <pthread.h>
18694 static void routine(void *a) { a = 0; }
18695 static void *start_routine(void *a) { return a; }
18697 main ()
18699 pthread_t th; pthread_attr_t attr;
18700 pthread_create(&th, 0, start_routine, 0);
18701 pthread_join(th, 0);
18702 pthread_attr_init(&attr);
18703 pthread_cleanup_push(routine, 0);
18704 pthread_cleanup_pop(0) /* ; */
18706 return 0;
18708 _ACEOF
18709 if ac_fn_c_try_link "$LINENO"; then :
18710 ax_pthread_ok=yes
18712 rm -f core conftest.err conftest.$ac_objext \
18713 conftest$ac_exeext conftest.$ac_ext
18715 LIBS="$save_LIBS"
18716 CFLAGS="$save_CFLAGS"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18719 $as_echo "$ax_pthread_ok" >&6; }
18720 if test "x$ax_pthread_ok" = xyes; then
18721 break;
18724 PTHREAD_LIBS=""
18725 PTHREAD_CFLAGS=""
18726 done
18729 # Various other checks:
18730 if test "x$ax_pthread_ok" = xyes; then
18731 save_LIBS="$LIBS"
18732 LIBS="$PTHREAD_LIBS $LIBS"
18733 save_CFLAGS="$CFLAGS"
18734 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18736 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18738 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18739 attr_name=unknown
18740 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743 #include <pthread.h>
18745 main ()
18747 int attr = $attr; return attr /* ; */
18749 return 0;
18751 _ACEOF
18752 if ac_fn_c_try_link "$LINENO"; then :
18753 attr_name=$attr; break
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757 done
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18759 $as_echo "$attr_name" >&6; }
18760 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define PTHREAD_CREATE_JOINABLE $attr_name
18764 _ACEOF
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18769 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18770 flag=no
18771 case ${host_os} in
18772 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18773 osf* | hpux*) flag="-D_REENTRANT";;
18774 solaris*)
18775 if test "$GCC" = "yes"; then
18776 flag="-D_REENTRANT"
18777 else
18778 flag="-mt -D_REENTRANT"
18781 esac
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18783 $as_echo "${flag}" >&6; }
18784 if test "x$flag" != xno; then
18785 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18789 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18790 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18791 $as_echo_n "(cached) " >&6
18792 else
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18797 #include <pthread.h>
18799 main ()
18801 int i = PTHREAD_PRIO_INHERIT;
18803 return 0;
18805 _ACEOF
18806 if ac_fn_c_try_link "$LINENO"; then :
18807 ax_cv_PTHREAD_PRIO_INHERIT=yes
18808 else
18809 ax_cv_PTHREAD_PRIO_INHERIT=no
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18816 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18817 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18819 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18823 LIBS="$save_LIBS"
18824 CFLAGS="$save_CFLAGS"
18826 # More AIX lossage: must compile with xlc_r or cc_r
18827 if test x"$GCC" != xyes; then
18828 for ac_prog in xlc_r cc_r
18830 # Extract the first word of "$ac_prog", so it can be a program name with args.
18831 set dummy $ac_prog; ac_word=$2
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18833 $as_echo_n "checking for $ac_word... " >&6; }
18834 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18835 $as_echo_n "(cached) " >&6
18836 else
18837 if test -n "$PTHREAD_CC"; then
18838 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18839 else
18840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18843 IFS=$as_save_IFS
18844 test -z "$as_dir" && as_dir=.
18845 for ac_exec_ext in '' $ac_executable_extensions; do
18846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847 ac_cv_prog_PTHREAD_CC="$ac_prog"
18848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18849 break 2
18851 done
18852 done
18853 IFS=$as_save_IFS
18857 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18858 if test -n "$PTHREAD_CC"; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18860 $as_echo "$PTHREAD_CC" >&6; }
18861 else
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18867 test -n "$PTHREAD_CC" && break
18868 done
18869 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18871 else
18872 PTHREAD_CC=$CC
18874 else
18875 PTHREAD_CC="$CC"
18882 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18883 if test x"$ax_pthread_ok" = xyes; then
18885 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18888 else
18889 ax_pthread_ok=no
18890 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
18892 ac_ext=c
18893 ac_cpp='$CPP $CPPFLAGS'
18894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899 CC="$PTHREAD_CC"
18900 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18901 LIBS="$PTHREAD_LIBS $LIBS"
18904 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
18906 else
18907 enable_pcregrep_jit="no"
18910 if test "$enable_pcregrep_jit" = "yes"; then
18912 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
18916 if test "$enable_utf" = "yes"; then
18918 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
18922 if test "$enable_unicode_properties" = "yes"; then
18924 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
18928 if test "$enable_stack_for_recursion" = "no"; then
18930 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
18934 if test "$enable_pcregrep_libz" = "yes"; then
18936 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
18940 if test "$enable_pcregrep_libbz2" = "yes"; then
18942 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
18946 if test $with_pcregrep_bufsize -lt 8192 ; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
18948 $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
18949 with_pcregrep_bufsize="8192"
18950 else
18951 if test $? -gt 1 ; then
18952 as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
18957 cat >>confdefs.h <<_ACEOF
18958 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
18959 _ACEOF
18962 if test "$enable_pcretest_libedit" = "yes"; then
18964 $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
18966 LIBREADLINE="$LIBEDIT"
18967 elif test "$enable_pcretest_libreadline" = "yes"; then
18969 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
18974 cat >>confdefs.h <<_ACEOF
18975 #define NEWLINE $ac_pcre_newline_value
18976 _ACEOF
18979 if test "$enable_bsr_anycrlf" = "yes"; then
18981 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
18986 cat >>confdefs.h <<_ACEOF
18987 #define LINK_SIZE $with_link_size
18988 _ACEOF
18992 cat >>confdefs.h <<_ACEOF
18993 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18994 _ACEOF
18998 cat >>confdefs.h <<_ACEOF
18999 #define PARENS_NEST_LIMIT $with_parens_nest_limit
19000 _ACEOF
19004 cat >>confdefs.h <<_ACEOF
19005 #define MATCH_LIMIT $with_match_limit
19006 _ACEOF
19010 cat >>confdefs.h <<_ACEOF
19011 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19012 _ACEOF
19016 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19020 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19025 if test "$enable_ebcdic" = "yes"; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define EBCDIC /**/
19029 _ACEOF
19033 if test "$enable_ebcdic_nl25" = "yes"; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define EBCDIC_NL25 /**/
19037 _ACEOF
19041 if test "$enable_valgrind" = "yes"; then
19043 cat >>confdefs.h <<_ACEOF
19044 #define SUPPORT_VALGRIND /**/
19045 _ACEOF
19049 # Platform specific issues
19050 NO_UNDEFINED=
19051 EXPORT_ALL_SYMBOLS=
19052 case $host_os in
19053 cygwin* | mingw* )
19054 if test X"$enable_shared" = Xyes; then
19055 NO_UNDEFINED="-no-undefined"
19056 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19059 esac
19061 # The extra LDFLAGS for each particular library
19062 # (Note: The libpcre*_version bits are m4 variables, assigned above)
19064 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
19065 $NO_UNDEFINED -version-info 3:3:2"
19067 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
19068 $NO_UNDEFINED -version-info 2:3:2"
19070 EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
19071 $NO_UNDEFINED -version-info 0:3:0"
19073 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19074 $NO_UNDEFINED -version-info 0:2:0"
19076 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19077 $NO_UNDEFINED -version-info 0:0:0 \
19078 $EXPORT_ALL_SYMBOLS"
19086 # When we run 'make distcheck', use these arguments. Turning off compiler
19087 # optimization makes it run faster.
19088 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19091 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19092 # specified, the relevant library is available.
19094 if test "$enable_pcregrep_libz" = "yes"; then
19095 if test "$HAVE_ZLIB_H" != "1"; then
19096 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19097 exit 1
19099 if test "$HAVE_LIBZ" != "1"; then
19100 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19101 exit 1
19103 LIBZ="-lz"
19107 if test "$enable_pcregrep_libbz2" = "yes"; then
19108 if test "$HAVE_BZLIB_H" != "1"; then
19109 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19110 exit 1
19112 if test "$HAVE_LIBBZ2" != "1"; then
19113 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19114 exit 1
19116 LIBBZ2="-lbz2"
19120 # Similarly for --enable-pcretest-readline
19122 if test "$enable_pcretest_libedit" = "yes"; then
19123 if test "$enable_pcretest_libreadline" = "yes"; then
19124 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19125 exit 1
19127 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19128 "$HAVE_READLINE_READLINE_H" != "1"; then
19129 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19130 echo "** nor readline/readline.h was found."
19131 exit 1
19133 if test -z "$LIBEDIT"; then
19134 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19135 exit 1
19139 if test "$enable_pcretest_libreadline" = "yes"; then
19140 if test "$HAVE_READLINE_H" != "1"; then
19141 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19142 exit 1
19144 if test "$HAVE_HISTORY_H" != "1"; then
19145 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19146 exit 1
19148 if test -z "$LIBREADLINE"; then
19149 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19150 exit 1
19154 # Handle valgrind support
19156 if test "$enable_valgrind" = "yes"; then
19164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19165 if test -n "$ac_tool_prefix"; then
19166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19167 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19169 $as_echo_n "checking for $ac_word... " >&6; }
19170 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19171 $as_echo_n "(cached) " >&6
19172 else
19173 case $PKG_CONFIG in
19174 [\\/]* | ?:[\\/]*)
19175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19179 for as_dir in $PATH
19181 IFS=$as_save_IFS
19182 test -z "$as_dir" && as_dir=.
19183 for ac_exec_ext in '' $ac_executable_extensions; do
19184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19187 break 2
19189 done
19190 done
19191 IFS=$as_save_IFS
19194 esac
19196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19197 if test -n "$PKG_CONFIG"; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19199 $as_echo "$PKG_CONFIG" >&6; }
19200 else
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19207 if test -z "$ac_cv_path_PKG_CONFIG"; then
19208 ac_pt_PKG_CONFIG=$PKG_CONFIG
19209 # Extract the first word of "pkg-config", so it can be a program name with args.
19210 set dummy pkg-config; ac_word=$2
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19212 $as_echo_n "checking for $ac_word... " >&6; }
19213 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19214 $as_echo_n "(cached) " >&6
19215 else
19216 case $ac_pt_PKG_CONFIG in
19217 [\\/]* | ?:[\\/]*)
19218 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19224 IFS=$as_save_IFS
19225 test -z "$as_dir" && as_dir=.
19226 for ac_exec_ext in '' $ac_executable_extensions; do
19227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19230 break 2
19232 done
19233 done
19234 IFS=$as_save_IFS
19237 esac
19239 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19240 if test -n "$ac_pt_PKG_CONFIG"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19242 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19243 else
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19248 if test "x$ac_pt_PKG_CONFIG" = x; then
19249 PKG_CONFIG=""
19250 else
19251 case $cross_compiling:$ac_tool_warned in
19252 yes:)
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19255 ac_tool_warned=yes ;;
19256 esac
19257 PKG_CONFIG=$ac_pt_PKG_CONFIG
19259 else
19260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19264 if test -n "$PKG_CONFIG"; then
19265 _pkg_min_version=0.9.0
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19267 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271 else
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19274 PKG_CONFIG=""
19278 pkg_failed=no
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19280 $as_echo_n "checking for VALGRIND... " >&6; }
19282 if test -n "$VALGRIND_CFLAGS"; then
19283 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19284 elif test -n "$PKG_CONFIG"; then
19285 if test -n "$PKG_CONFIG" && \
19286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19287 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19288 ac_status=$?
19289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19290 test $ac_status = 0; }; then
19291 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19292 test "x$?" != "x0" && pkg_failed=yes
19293 else
19294 pkg_failed=yes
19296 else
19297 pkg_failed=untried
19299 if test -n "$VALGRIND_LIBS"; then
19300 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19301 elif test -n "$PKG_CONFIG"; then
19302 if test -n "$PKG_CONFIG" && \
19303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19304 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19305 ac_status=$?
19306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19307 test $ac_status = 0; }; then
19308 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19309 test "x$?" != "x0" && pkg_failed=yes
19310 else
19311 pkg_failed=yes
19313 else
19314 pkg_failed=untried
19319 if test $pkg_failed = yes; then
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19324 _pkg_short_errors_supported=yes
19325 else
19326 _pkg_short_errors_supported=no
19328 if test $_pkg_short_errors_supported = yes; then
19329 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19330 else
19331 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19333 # Put the nasty error message in config.log where it belongs
19334 echo "$VALGRIND_PKG_ERRORS" >&5
19336 as_fn_error $? "Package requirements (valgrind) were not met:
19338 $VALGRIND_PKG_ERRORS
19340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19341 installed software in a non-standard prefix.
19343 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19344 and VALGRIND_LIBS to avoid the need to call pkg-config.
19345 See the pkg-config man page for more details." "$LINENO" 5
19346 elif test $pkg_failed = untried; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19348 $as_echo "no" >&6; }
19349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19351 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19352 is in your PATH or set the PKG_CONFIG environment variable to the full
19353 path to pkg-config.
19355 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19356 and VALGRIND_LIBS to avoid the need to call pkg-config.
19357 See the pkg-config man page for more details.
19359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19360 See \`config.log' for more details" "$LINENO" 5; }
19361 else
19362 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19363 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365 $as_echo "yes" >&6; }
19370 # Handle code coverage reporting support
19371 if test "$enable_coverage" = "yes"; then
19372 if test "x$GCC" != "xyes"; then
19373 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
19376 # ccache is incompatible with gcov
19377 # Extract the first word of "shtool", so it can be a program name with args.
19378 set dummy shtool; ac_word=$2
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19380 $as_echo_n "checking for $ac_word... " >&6; }
19381 if ${ac_cv_path_SHTOOL+:} false; then :
19382 $as_echo_n "(cached) " >&6
19383 else
19384 case $SHTOOL in
19385 [\\/]* | ?:[\\/]*)
19386 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
19389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19390 for as_dir in $PATH
19392 IFS=$as_save_IFS
19393 test -z "$as_dir" && as_dir=.
19394 for ac_exec_ext in '' $ac_executable_extensions; do
19395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19396 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
19397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19398 break 2
19400 done
19401 done
19402 IFS=$as_save_IFS
19404 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
19406 esac
19408 SHTOOL=$ac_cv_path_SHTOOL
19409 if test -n "$SHTOOL"; then
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
19411 $as_echo "$SHTOOL" >&6; }
19412 else
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19414 $as_echo "no" >&6; }
19418 case `$SHTOOL path $CC` in
19419 *ccache*) cc_ccache=yes;;
19420 *) cc_ccache=no;;
19421 esac
19423 if test "$cc_ccache" = "yes"; then
19424 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
19425 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
19430 # Extract the first word of "lcov", so it can be a program name with args.
19431 set dummy lcov; ac_word=$2
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19433 $as_echo_n "checking for $ac_word... " >&6; }
19434 if ${ac_cv_path_LCOV+:} false; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 case $LCOV in
19438 [\\/]* | ?:[\\/]*)
19439 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
19442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH
19445 IFS=$as_save_IFS
19446 test -z "$as_dir" && as_dir=.
19447 for ac_exec_ext in '' $ac_executable_extensions; do
19448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19449 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 break 2
19453 done
19454 done
19455 IFS=$as_save_IFS
19457 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
19459 esac
19461 LCOV=$ac_cv_path_LCOV
19462 if test -n "$LCOV"; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
19464 $as_echo "$LCOV" >&6; }
19465 else
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19471 if test "x$LCOV" = "xfalse"; then
19472 as_fn_error $? "lcov not found" "$LINENO" 5
19476 # Extract the first word of "genhtml", so it can be a program name with args.
19477 set dummy genhtml; ac_word=$2
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19479 $as_echo_n "checking for $ac_word... " >&6; }
19480 if ${ac_cv_path_GENHTML+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 case $GENHTML in
19484 [\\/]* | ?:[\\/]*)
19485 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
19488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19489 for as_dir in $PATH
19491 IFS=$as_save_IFS
19492 test -z "$as_dir" && as_dir=.
19493 for ac_exec_ext in '' $ac_executable_extensions; do
19494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19495 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
19496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19497 break 2
19499 done
19500 done
19501 IFS=$as_save_IFS
19503 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
19505 esac
19507 GENHTML=$ac_cv_path_GENHTML
19508 if test -n "$GENHTML"; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
19510 $as_echo "$GENHTML" >&6; }
19511 else
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 $as_echo "no" >&6; }
19517 if test "x$GENHTML" = "xfalse"; then
19518 as_fn_error $? "genhtml not found" "$LINENO" 5
19521 # Set flags needed for gcov
19522 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19523 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19524 GCOV_LIBS="-lgcov"
19528 fi # enable_coverage
19530 if test "x$enable_coverage" = "xyes"; then
19531 WITH_GCOV_TRUE=
19532 WITH_GCOV_FALSE='#'
19533 else
19534 WITH_GCOV_TRUE='#'
19535 WITH_GCOV_FALSE=
19539 # Produce these files, in addition to config.h.
19540 ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
19543 # Make the generated script files executable.
19544 ac_config_commands="$ac_config_commands script-chmod"
19547 # Make sure that pcre_chartables.c is removed in case the method for
19548 # creating it was changed by reconfiguration.
19549 ac_config_commands="$ac_config_commands delete-old-chartables"
19552 cat >confcache <<\_ACEOF
19553 # This file is a shell script that caches the results of configure
19554 # tests run on this system so they can be shared between configure
19555 # scripts and configure runs, see configure's option --config-cache.
19556 # It is not useful on other systems. If it contains results you don't
19557 # want to keep, you may remove or edit it.
19559 # config.status only pays attention to the cache file if you give it
19560 # the --recheck option to rerun configure.
19562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19564 # following values.
19566 _ACEOF
19568 # The following way of writing the cache mishandles newlines in values,
19569 # but we know of no workaround that is simple, portable, and efficient.
19570 # So, we kill variables containing newlines.
19571 # Ultrix sh set writes to stderr and can't be redirected directly,
19572 # and sets the high bit in the cache file unless we assign to the vars.
19574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19575 eval ac_val=\$$ac_var
19576 case $ac_val in #(
19577 *${as_nl}*)
19578 case $ac_var in #(
19579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19581 esac
19582 case $ac_var in #(
19583 _ | IFS | as_nl) ;; #(
19584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19585 *) { eval $ac_var=; unset $ac_var;} ;;
19586 esac ;;
19587 esac
19588 done
19590 (set) 2>&1 |
19591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19592 *${as_nl}ac_space=\ *)
19593 # `set' does not quote correctly, so add quotes: double-quote
19594 # substitution turns \\\\ into \\, and sed turns \\ into \.
19595 sed -n \
19596 "s/'/'\\\\''/g;
19597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19598 ;; #(
19600 # `set' quotes correctly as required by POSIX, so do not add quotes.
19601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19603 esac |
19604 sort
19606 sed '
19607 /^ac_cv_env_/b end
19608 t clear
19609 :clear
19610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19611 t end
19612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19613 :end' >>confcache
19614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19615 if test -w "$cache_file"; then
19616 if test "x$cache_file" != "x/dev/null"; then
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19618 $as_echo "$as_me: updating cache $cache_file" >&6;}
19619 if test ! -f "$cache_file" || test -h "$cache_file"; then
19620 cat confcache >"$cache_file"
19621 else
19622 case $cache_file in #(
19623 */* | ?:*)
19624 mv -f confcache "$cache_file"$$ &&
19625 mv -f "$cache_file"$$ "$cache_file" ;; #(
19627 mv -f confcache "$cache_file" ;;
19628 esac
19631 else
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19636 rm -f confcache
19638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19639 # Let make expand exec_prefix.
19640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19642 DEFS=-DHAVE_CONFIG_H
19644 ac_libobjs=
19645 ac_ltlibobjs=
19647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19648 # 1. Remove the extension, and $U if already installed.
19649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19652 # will be set to the directory where LIBOBJS objects are built.
19653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19655 done
19656 LIBOBJS=$ac_libobjs
19658 LTLIBOBJS=$ac_ltlibobjs
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19662 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19663 if test -n "$am_sleep_pid"; then
19664 # Hide warnings about reused PIDs.
19665 wait $am_sleep_pid 2>/dev/null
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19668 $as_echo "done" >&6; }
19669 if test -n "$EXEEXT"; then
19670 am__EXEEXT_TRUE=
19671 am__EXEEXT_FALSE='#'
19672 else
19673 am__EXEEXT_TRUE='#'
19674 am__EXEEXT_FALSE=
19677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19678 as_fn_error $? "conditional \"AMDEP\" was never defined.
19679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19686 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19690 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
19694 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
19695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19697 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
19698 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
19702 as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
19706 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
19710 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
19714 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
19718 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
19719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19721 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
19722 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
19723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19725 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
19726 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
19727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730 : "${CONFIG_STATUS=./config.status}"
19731 ac_write_fail=0
19732 ac_clean_files_save=$ac_clean_files
19733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19736 as_write_fail=0
19737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19738 #! $SHELL
19739 # Generated by $as_me.
19740 # Run this file to recreate the current configuration.
19741 # Compiler output produced by configure, useful for debugging
19742 # configure, is in config.log if it exists.
19744 debug=false
19745 ac_cs_recheck=false
19746 ac_cs_silent=false
19748 SHELL=\${CONFIG_SHELL-$SHELL}
19749 export SHELL
19750 _ASEOF
19751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19752 ## -------------------- ##
19753 ## M4sh Initialization. ##
19754 ## -------------------- ##
19756 # Be more Bourne compatible
19757 DUALCASE=1; export DUALCASE # for MKS sh
19758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19759 emulate sh
19760 NULLCMD=:
19761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19762 # is contrary to our usage. Disable this feature.
19763 alias -g '${1+"$@"}'='"$@"'
19764 setopt NO_GLOB_SUBST
19765 else
19766 case `(set -o) 2>/dev/null` in #(
19767 *posix*) :
19768 set -o posix ;; #(
19769 *) :
19771 esac
19775 as_nl='
19777 export as_nl
19778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19782 # Prefer a ksh shell builtin over an external printf program on Solaris,
19783 # but without wasting forks for bash or zsh.
19784 if test -z "$BASH_VERSION$ZSH_VERSION" \
19785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19786 as_echo='print -r --'
19787 as_echo_n='print -rn --'
19788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19789 as_echo='printf %s\n'
19790 as_echo_n='printf %s'
19791 else
19792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19794 as_echo_n='/usr/ucb/echo -n'
19795 else
19796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19797 as_echo_n_body='eval
19798 arg=$1;
19799 case $arg in #(
19800 *"$as_nl"*)
19801 expr "X$arg" : "X\\(.*\\)$as_nl";
19802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19803 esac;
19804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19806 export as_echo_n_body
19807 as_echo_n='sh -c $as_echo_n_body as_echo'
19809 export as_echo_body
19810 as_echo='sh -c $as_echo_body as_echo'
19813 # The user is always right.
19814 if test "${PATH_SEPARATOR+set}" != set; then
19815 PATH_SEPARATOR=:
19816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19818 PATH_SEPARATOR=';'
19823 # IFS
19824 # We need space, tab and new line, in precisely that order. Quoting is
19825 # there to prevent editors from complaining about space-tab.
19826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19827 # splitting by setting IFS to empty value.)
19828 IFS=" "" $as_nl"
19830 # Find who we are. Look in the path if we contain no directory separator.
19831 as_myself=
19832 case $0 in #((
19833 *[\\/]* ) as_myself=$0 ;;
19834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19837 IFS=$as_save_IFS
19838 test -z "$as_dir" && as_dir=.
19839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19840 done
19841 IFS=$as_save_IFS
19844 esac
19845 # We did not find ourselves, most probably we were run as `sh COMMAND'
19846 # in which case we are not to be found in the path.
19847 if test "x$as_myself" = x; then
19848 as_myself=$0
19850 if test ! -f "$as_myself"; then
19851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19852 exit 1
19855 # Unset variables that we do not need and which cause bugs (e.g. in
19856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19857 # suppresses any "Segmentation fault" message there. '((' could
19858 # trigger a bug in pdksh 5.2.14.
19859 for as_var in BASH_ENV ENV MAIL MAILPATH
19860 do eval test x\${$as_var+set} = xset \
19861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19862 done
19863 PS1='$ '
19864 PS2='> '
19865 PS4='+ '
19867 # NLS nuisances.
19868 LC_ALL=C
19869 export LC_ALL
19870 LANGUAGE=C
19871 export LANGUAGE
19873 # CDPATH.
19874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19878 # ----------------------------------------
19879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19881 # script with STATUS, using 1 if that was 0.
19882 as_fn_error ()
19884 as_status=$1; test $as_status -eq 0 && as_status=1
19885 if test "$4"; then
19886 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19889 $as_echo "$as_me: error: $2" >&2
19890 as_fn_exit $as_status
19891 } # as_fn_error
19894 # as_fn_set_status STATUS
19895 # -----------------------
19896 # Set $? to STATUS, without forking.
19897 as_fn_set_status ()
19899 return $1
19900 } # as_fn_set_status
19902 # as_fn_exit STATUS
19903 # -----------------
19904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19905 as_fn_exit ()
19907 set +e
19908 as_fn_set_status $1
19909 exit $1
19910 } # as_fn_exit
19912 # as_fn_unset VAR
19913 # ---------------
19914 # Portably unset VAR.
19915 as_fn_unset ()
19917 { eval $1=; unset $1;}
19919 as_unset=as_fn_unset
19920 # as_fn_append VAR VALUE
19921 # ----------------------
19922 # Append the text in VALUE to the end of the definition contained in VAR. Take
19923 # advantage of any shell optimizations that allow amortized linear growth over
19924 # repeated appends, instead of the typical quadratic growth present in naive
19925 # implementations.
19926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19927 eval 'as_fn_append ()
19929 eval $1+=\$2
19931 else
19932 as_fn_append ()
19934 eval $1=\$$1\$2
19936 fi # as_fn_append
19938 # as_fn_arith ARG...
19939 # ------------------
19940 # Perform arithmetic evaluation on the ARGs, and store the result in the
19941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19942 # must be portable across $(()) and expr.
19943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19944 eval 'as_fn_arith ()
19946 as_val=$(( $* ))
19948 else
19949 as_fn_arith ()
19951 as_val=`expr "$@" || test $? -eq 1`
19953 fi # as_fn_arith
19956 if expr a : '\(a\)' >/dev/null 2>&1 &&
19957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19958 as_expr=expr
19959 else
19960 as_expr=false
19963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19964 as_basename=basename
19965 else
19966 as_basename=false
19969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19970 as_dirname=dirname
19971 else
19972 as_dirname=false
19975 as_me=`$as_basename -- "$0" ||
19976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19977 X"$0" : 'X\(//\)$' \| \
19978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19979 $as_echo X/"$0" |
19980 sed '/^.*\/\([^/][^/]*\)\/*$/{
19981 s//\1/
19984 /^X\/\(\/\/\)$/{
19985 s//\1/
19988 /^X\/\(\/\).*/{
19989 s//\1/
19992 s/.*/./; q'`
19994 # Avoid depending upon Character Ranges.
19995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19998 as_cr_digits='0123456789'
19999 as_cr_alnum=$as_cr_Letters$as_cr_digits
20001 ECHO_C= ECHO_N= ECHO_T=
20002 case `echo -n x` in #(((((
20003 -n*)
20004 case `echo 'xy\c'` in
20005 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20006 xy) ECHO_C='\c';;
20007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20008 ECHO_T=' ';;
20009 esac;;
20011 ECHO_N='-n';;
20012 esac
20014 rm -f conf$$ conf$$.exe conf$$.file
20015 if test -d conf$$.dir; then
20016 rm -f conf$$.dir/conf$$.file
20017 else
20018 rm -f conf$$.dir
20019 mkdir conf$$.dir 2>/dev/null
20021 if (echo >conf$$.file) 2>/dev/null; then
20022 if ln -s conf$$.file conf$$ 2>/dev/null; then
20023 as_ln_s='ln -s'
20024 # ... but there are two gotchas:
20025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20027 # In both cases, we have to default to `cp -pR'.
20028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20029 as_ln_s='cp -pR'
20030 elif ln conf$$.file conf$$ 2>/dev/null; then
20031 as_ln_s=ln
20032 else
20033 as_ln_s='cp -pR'
20035 else
20036 as_ln_s='cp -pR'
20038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20039 rmdir conf$$.dir 2>/dev/null
20042 # as_fn_mkdir_p
20043 # -------------
20044 # Create "$as_dir" as a directory, including parents if necessary.
20045 as_fn_mkdir_p ()
20048 case $as_dir in #(
20049 -*) as_dir=./$as_dir;;
20050 esac
20051 test -d "$as_dir" || eval $as_mkdir_p || {
20052 as_dirs=
20053 while :; do
20054 case $as_dir in #(
20055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20056 *) as_qdir=$as_dir;;
20057 esac
20058 as_dirs="'$as_qdir' $as_dirs"
20059 as_dir=`$as_dirname -- "$as_dir" ||
20060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20061 X"$as_dir" : 'X\(//\)[^/]' \| \
20062 X"$as_dir" : 'X\(//\)$' \| \
20063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20064 $as_echo X"$as_dir" |
20065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20066 s//\1/
20069 /^X\(\/\/\)[^/].*/{
20070 s//\1/
20073 /^X\(\/\/\)$/{
20074 s//\1/
20077 /^X\(\/\).*/{
20078 s//\1/
20081 s/.*/./; q'`
20082 test -d "$as_dir" && break
20083 done
20084 test -z "$as_dirs" || eval "mkdir $as_dirs"
20085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20088 } # as_fn_mkdir_p
20089 if mkdir -p . 2>/dev/null; then
20090 as_mkdir_p='mkdir -p "$as_dir"'
20091 else
20092 test -d ./-p && rmdir ./-p
20093 as_mkdir_p=false
20097 # as_fn_executable_p FILE
20098 # -----------------------
20099 # Test if FILE is an executable regular file.
20100 as_fn_executable_p ()
20102 test -f "$1" && test -x "$1"
20103 } # as_fn_executable_p
20104 as_test_x='test -x'
20105 as_executable_p=as_fn_executable_p
20107 # Sed expression to map a string onto a valid CPP name.
20108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20110 # Sed expression to map a string onto a valid variable name.
20111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20114 exec 6>&1
20115 ## ----------------------------------- ##
20116 ## Main body of $CONFIG_STATUS script. ##
20117 ## ----------------------------------- ##
20118 _ASEOF
20119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122 # Save the log message, to keep $0 and so on meaningful, and to
20123 # report actual input values of CONFIG_FILES etc. instead of their
20124 # values after options handling.
20125 ac_log="
20126 This file was extended by PCRE $as_me 8.35, which was
20127 generated by GNU Autoconf 2.69. Invocation command line was
20129 CONFIG_FILES = $CONFIG_FILES
20130 CONFIG_HEADERS = $CONFIG_HEADERS
20131 CONFIG_LINKS = $CONFIG_LINKS
20132 CONFIG_COMMANDS = $CONFIG_COMMANDS
20133 $ $0 $@
20135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20138 _ACEOF
20140 case $ac_config_files in *"
20141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20142 esac
20144 case $ac_config_headers in *"
20145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20146 esac
20149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20150 # Files that config.status was made for.
20151 config_files="$ac_config_files"
20152 config_headers="$ac_config_headers"
20153 config_commands="$ac_config_commands"
20155 _ACEOF
20157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20158 ac_cs_usage="\
20159 \`$as_me' instantiates files and other configuration actions
20160 from templates according to the current configuration. Unless the files
20161 and actions are specified as TAGs, all are instantiated by default.
20163 Usage: $0 [OPTION]... [TAG]...
20165 -h, --help print this help, then exit
20166 -V, --version print version number and configuration settings, then exit
20167 --config print configuration, then exit
20168 -q, --quiet, --silent
20169 do not print progress messages
20170 -d, --debug don't remove temporary files
20171 --recheck update $as_me by reconfiguring in the same conditions
20172 --file=FILE[:TEMPLATE]
20173 instantiate the configuration file FILE
20174 --header=FILE[:TEMPLATE]
20175 instantiate the configuration header FILE
20177 Configuration files:
20178 $config_files
20180 Configuration headers:
20181 $config_headers
20183 Configuration commands:
20184 $config_commands
20186 Report bugs to the package provider."
20188 _ACEOF
20189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20190 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20191 ac_cs_version="\\
20192 PCRE config.status 8.35
20193 configured by $0, generated by GNU Autoconf 2.69,
20194 with options \\"\$ac_cs_config\\"
20196 Copyright (C) 2012 Free Software Foundation, Inc.
20197 This config.status script is free software; the Free Software Foundation
20198 gives unlimited permission to copy, distribute and modify it."
20200 ac_pwd='$ac_pwd'
20201 srcdir='$srcdir'
20202 INSTALL='$INSTALL'
20203 MKDIR_P='$MKDIR_P'
20204 AWK='$AWK'
20205 test -n "\$AWK" || AWK=awk
20206 _ACEOF
20208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20209 # The default lists apply if the user does not specify any file.
20210 ac_need_defaults=:
20211 while test $# != 0
20213 case $1 in
20214 --*=?*)
20215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20217 ac_shift=:
20219 --*=)
20220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20221 ac_optarg=
20222 ac_shift=:
20225 ac_option=$1
20226 ac_optarg=$2
20227 ac_shift=shift
20229 esac
20231 case $ac_option in
20232 # Handling of the options.
20233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20234 ac_cs_recheck=: ;;
20235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20236 $as_echo "$ac_cs_version"; exit ;;
20237 --config | --confi | --conf | --con | --co | --c )
20238 $as_echo "$ac_cs_config"; exit ;;
20239 --debug | --debu | --deb | --de | --d | -d )
20240 debug=: ;;
20241 --file | --fil | --fi | --f )
20242 $ac_shift
20243 case $ac_optarg in
20244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20245 '') as_fn_error $? "missing file argument" ;;
20246 esac
20247 as_fn_append CONFIG_FILES " '$ac_optarg'"
20248 ac_need_defaults=false;;
20249 --header | --heade | --head | --hea )
20250 $ac_shift
20251 case $ac_optarg in
20252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20253 esac
20254 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20255 ac_need_defaults=false;;
20256 --he | --h)
20257 # Conflict between --help and --header
20258 as_fn_error $? "ambiguous option: \`$1'
20259 Try \`$0 --help' for more information.";;
20260 --help | --hel | -h )
20261 $as_echo "$ac_cs_usage"; exit ;;
20262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20264 ac_cs_silent=: ;;
20266 # This is an error.
20267 -*) as_fn_error $? "unrecognized option: \`$1'
20268 Try \`$0 --help' for more information." ;;
20270 *) as_fn_append ac_config_targets " $1"
20271 ac_need_defaults=false ;;
20273 esac
20274 shift
20275 done
20277 ac_configure_extra_args=
20279 if $ac_cs_silent; then
20280 exec 6>/dev/null
20281 ac_configure_extra_args="$ac_configure_extra_args --silent"
20284 _ACEOF
20285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20286 if \$ac_cs_recheck; then
20287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20288 shift
20289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20290 CONFIG_SHELL='$SHELL'
20291 export CONFIG_SHELL
20292 exec "\$@"
20295 _ACEOF
20296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20297 exec 5>>config.log
20299 echo
20300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20301 ## Running $as_me. ##
20302 _ASBOX
20303 $as_echo "$ac_log"
20304 } >&5
20306 _ACEOF
20307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20309 # INIT-COMMANDS
20311 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20314 # The HP-UX ksh and POSIX shell print the target directory to stdout
20315 # if CDPATH is set.
20316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20318 sed_quote_subst='$sed_quote_subst'
20319 double_quote_subst='$double_quote_subst'
20320 delay_variable_subst='$delay_variable_subst'
20321 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20322 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20324 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20325 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20326 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20327 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20328 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20329 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20330 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20331 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20332 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20333 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20334 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20335 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20336 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20337 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20338 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20339 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20340 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20341 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20342 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20343 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20344 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20345 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20346 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20347 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20348 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20349 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20350 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20351 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20352 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20353 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20354 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20355 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20356 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20361 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20364 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20365 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20366 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20367 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20368 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20369 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20370 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20371 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20372 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20373 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20374 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20375 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20376 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20377 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20378 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"`'
20379 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20380 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20384 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20385 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20389 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20390 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20391 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20392 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20393 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20394 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20395 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20396 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20397 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20398 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20399 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20400 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20401 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20402 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20403 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20404 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20405 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20406 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20407 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20408 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20409 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20410 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20411 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20412 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20421 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20422 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20423 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20424 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20425 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20426 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20445 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20452 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20453 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20454 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20455 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20456 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20457 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20458 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20459 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20460 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20463 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20464 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20465 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20466 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20467 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20468 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20469 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20470 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20471 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20472 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20473 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20474 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20475 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20476 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20477 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20479 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20480 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20481 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20482 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20483 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20484 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20485 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20486 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20487 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20488 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20489 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20490 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20491 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20492 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20493 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20494 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20495 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20496 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20499 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20500 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20501 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20502 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20503 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20504 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20505 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20507 LTCC='$LTCC'
20508 LTCFLAGS='$LTCFLAGS'
20509 compiler='$compiler_DEFAULT'
20511 # A function that is used when there is no print builtin or printf.
20512 func_fallback_echo ()
20514 eval 'cat <<_LTECHO_EOF
20516 _LTECHO_EOF'
20519 # Quote evaled strings.
20520 for var in AS \
20521 DLLTOOL \
20522 OBJDUMP \
20523 SHELL \
20524 ECHO \
20525 PATH_SEPARATOR \
20526 SED \
20527 GREP \
20528 EGREP \
20529 FGREP \
20530 LD \
20531 NM \
20532 LN_S \
20533 lt_SP2NL \
20534 lt_NL2SP \
20535 reload_flag \
20536 deplibs_check_method \
20537 file_magic_cmd \
20538 file_magic_glob \
20539 want_nocaseglob \
20540 sharedlib_from_linklib_cmd \
20541 AR \
20542 AR_FLAGS \
20543 archiver_list_spec \
20544 STRIP \
20545 RANLIB \
20546 CC \
20547 CFLAGS \
20548 compiler \
20549 lt_cv_sys_global_symbol_pipe \
20550 lt_cv_sys_global_symbol_to_cdecl \
20551 lt_cv_sys_global_symbol_to_c_name_address \
20552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20553 nm_file_list_spec \
20554 lt_prog_compiler_no_builtin_flag \
20555 lt_prog_compiler_pic \
20556 lt_prog_compiler_wl \
20557 lt_prog_compiler_static \
20558 lt_cv_prog_compiler_c_o \
20559 need_locks \
20560 MANIFEST_TOOL \
20561 DSYMUTIL \
20562 NMEDIT \
20563 LIPO \
20564 OTOOL \
20565 OTOOL64 \
20566 shrext_cmds \
20567 export_dynamic_flag_spec \
20568 whole_archive_flag_spec \
20569 compiler_needs_object \
20570 with_gnu_ld \
20571 allow_undefined_flag \
20572 no_undefined_flag \
20573 hardcode_libdir_flag_spec \
20574 hardcode_libdir_separator \
20575 exclude_expsyms \
20576 include_expsyms \
20577 file_list_spec \
20578 variables_saved_for_relink \
20579 libname_spec \
20580 library_names_spec \
20581 soname_spec \
20582 install_override_mode \
20583 finish_eval \
20584 old_striplib \
20585 striplib \
20586 compiler_lib_search_dirs \
20587 predep_objects \
20588 postdep_objects \
20589 predeps \
20590 postdeps \
20591 compiler_lib_search_path \
20592 LD_CXX \
20593 reload_flag_CXX \
20594 compiler_CXX \
20595 lt_prog_compiler_no_builtin_flag_CXX \
20596 lt_prog_compiler_pic_CXX \
20597 lt_prog_compiler_wl_CXX \
20598 lt_prog_compiler_static_CXX \
20599 lt_cv_prog_compiler_c_o_CXX \
20600 export_dynamic_flag_spec_CXX \
20601 whole_archive_flag_spec_CXX \
20602 compiler_needs_object_CXX \
20603 with_gnu_ld_CXX \
20604 allow_undefined_flag_CXX \
20605 no_undefined_flag_CXX \
20606 hardcode_libdir_flag_spec_CXX \
20607 hardcode_libdir_separator_CXX \
20608 exclude_expsyms_CXX \
20609 include_expsyms_CXX \
20610 file_list_spec_CXX \
20611 compiler_lib_search_dirs_CXX \
20612 predep_objects_CXX \
20613 postdep_objects_CXX \
20614 predeps_CXX \
20615 postdeps_CXX \
20616 compiler_lib_search_path_CXX; do
20617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20618 *[\\\\\\\`\\"\\\$]*)
20619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20624 esac
20625 done
20627 # Double-quote double-evaled strings.
20628 for var in reload_cmds \
20629 old_postinstall_cmds \
20630 old_postuninstall_cmds \
20631 old_archive_cmds \
20632 extract_expsyms_cmds \
20633 old_archive_from_new_cmds \
20634 old_archive_from_expsyms_cmds \
20635 archive_cmds \
20636 archive_expsym_cmds \
20637 module_cmds \
20638 module_expsym_cmds \
20639 export_symbols_cmds \
20640 prelink_cmds \
20641 postlink_cmds \
20642 postinstall_cmds \
20643 postuninstall_cmds \
20644 finish_cmds \
20645 sys_lib_search_path_spec \
20646 sys_lib_dlsearch_path_spec \
20647 reload_cmds_CXX \
20648 old_archive_cmds_CXX \
20649 old_archive_from_new_cmds_CXX \
20650 old_archive_from_expsyms_cmds_CXX \
20651 archive_cmds_CXX \
20652 archive_expsym_cmds_CXX \
20653 module_cmds_CXX \
20654 module_expsym_cmds_CXX \
20655 export_symbols_cmds_CXX \
20656 prelink_cmds_CXX \
20657 postlink_cmds_CXX; do
20658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20659 *[\\\\\\\`\\"\\\$]*)
20660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20665 esac
20666 done
20668 ac_aux_dir='$ac_aux_dir'
20669 xsi_shell='$xsi_shell'
20670 lt_shell_append='$lt_shell_append'
20672 # See if we are running on zsh, and set the options which allow our
20673 # commands through without removal of \ escapes INIT.
20674 if test -n "\${ZSH_VERSION+set}" ; then
20675 setopt NO_GLOB_SUBST
20679 PACKAGE='$PACKAGE'
20680 VERSION='$VERSION'
20681 TIMESTAMP='$TIMESTAMP'
20682 RM='$RM'
20683 ofile='$ofile'
20690 _ACEOF
20692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20694 # Handling of arguments.
20695 for ac_config_target in $ac_config_targets
20697 case $ac_config_target in
20698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20699 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20700 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20702 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
20703 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
20704 "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
20705 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
20706 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
20707 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
20708 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
20709 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
20710 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
20711 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
20712 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
20714 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20715 esac
20716 done
20719 # If the user did not use the arguments to specify the items to instantiate,
20720 # then the envvar interface is used. Set only those that are not.
20721 # We use the long form for the default assignment because of an extremely
20722 # bizarre bug on SunOS 4.1.3.
20723 if $ac_need_defaults; then
20724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20729 # Have a temporary directory for convenience. Make it in the build tree
20730 # simply because there is no reason against having it here, and in addition,
20731 # creating and moving files from /tmp can sometimes cause problems.
20732 # Hook for its removal unless debugging.
20733 # Note that there is a small window in which the directory will not be cleaned:
20734 # after its creation but before its name has been assigned to `$tmp'.
20735 $debug ||
20737 tmp= ac_tmp=
20738 trap 'exit_status=$?
20739 : "${ac_tmp:=$tmp}"
20740 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20742 trap 'as_fn_exit 1' 1 2 13 15
20744 # Create a (secure) tmp directory for tmp files.
20747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20748 test -d "$tmp"
20749 } ||
20751 tmp=./conf$$-$RANDOM
20752 (umask 077 && mkdir "$tmp")
20753 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20754 ac_tmp=$tmp
20756 # Set up the scripts for CONFIG_FILES section.
20757 # No need to generate them if there are no CONFIG_FILES.
20758 # This happens for instance with `./config.status config.h'.
20759 if test -n "$CONFIG_FILES"; then
20762 ac_cr=`echo X | tr X '\015'`
20763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20764 # But we know of no other shell where ac_cr would be empty at this
20765 # point, so we can use a bashism as a fallback.
20766 if test "x$ac_cr" = x; then
20767 eval ac_cr=\$\'\\r\'
20769 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20771 ac_cs_awk_cr='\\r'
20772 else
20773 ac_cs_awk_cr=$ac_cr
20776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20777 _ACEOF
20781 echo "cat >conf$$subs.awk <<_ACEOF" &&
20782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20783 echo "_ACEOF"
20784 } >conf$$subs.sh ||
20785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20787 ac_delim='%!_!# '
20788 for ac_last_try in false false false false false :; do
20789 . ./conf$$subs.sh ||
20790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20793 if test $ac_delim_n = $ac_delim_num; then
20794 break
20795 elif $ac_last_try; then
20796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20797 else
20798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20800 done
20801 rm -f conf$$subs.sh
20803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20805 _ACEOF
20806 sed -n '
20808 s/^/S["/; s/!.*/"]=/
20811 s/^[^!]*!//
20812 :repl
20813 t repl
20814 s/'"$ac_delim"'$//
20815 t delim
20818 s/\(.\{148\}\)..*/\1/
20819 t more1
20820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20823 b repl
20824 :more1
20825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20828 s/.\{148\}//
20829 t nl
20830 :delim
20832 s/\(.\{148\}\)..*/\1/
20833 t more2
20834 s/["\\]/\\&/g; s/^/"/; s/$/"/
20837 :more2
20838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20841 s/.\{148\}//
20842 t delim
20843 ' <conf$$subs.awk | sed '
20844 /^[^""]/{
20846 s/\n//
20848 ' >>$CONFIG_STATUS || ac_write_fail=1
20849 rm -f conf$$subs.awk
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 _ACAWK
20852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20853 for (key in S) S_is_set[key] = 1
20854 FS = "\a"
20858 line = $ 0
20859 nfields = split(line, field, "@")
20860 substed = 0
20861 len = length(field[1])
20862 for (i = 2; i < nfields; i++) {
20863 key = field[i]
20864 keylen = length(key)
20865 if (S_is_set[key]) {
20866 value = S[key]
20867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20868 len += length(value) + length(field[++i])
20869 substed = 1
20870 } else
20871 len += 1 + keylen
20874 print line
20877 _ACAWK
20878 _ACEOF
20879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20880 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20882 else
20884 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20885 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20886 _ACEOF
20888 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20889 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20890 # trailing colons and then remove the whole line if VPATH becomes empty
20891 # (actually we leave an empty line to preserve line numbers).
20892 if test "x$srcdir" = x.; then
20893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20895 s///
20896 s/^/:/
20897 s/[ ]*$/:/
20898 s/:\$(srcdir):/:/g
20899 s/:\${srcdir}:/:/g
20900 s/:@srcdir@:/:/g
20901 s/^:*//
20902 s/:*$//
20904 s/\(=[ ]*\).*/\1/
20906 s/\n//
20907 s/^[^=]*=[ ]*$//
20911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20912 fi # test -n "$CONFIG_FILES"
20914 # Set up the scripts for CONFIG_HEADERS section.
20915 # No need to generate them if there are no CONFIG_HEADERS.
20916 # This happens for instance with `./config.status Makefile'.
20917 if test -n "$CONFIG_HEADERS"; then
20918 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20919 BEGIN {
20920 _ACEOF
20922 # Transform confdefs.h into an awk script `defines.awk', embedded as
20923 # here-document in config.status, that substitutes the proper values into
20924 # config.h.in to produce config.h.
20926 # Create a delimiter string that does not exist in confdefs.h, to ease
20927 # handling of long lines.
20928 ac_delim='%!_!# '
20929 for ac_last_try in false false :; do
20930 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20931 if test -z "$ac_tt"; then
20932 break
20933 elif $ac_last_try; then
20934 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20935 else
20936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20938 done
20940 # For the awk script, D is an array of macro values keyed by name,
20941 # likewise P contains macro parameters if any. Preserve backslash
20942 # newline sequences.
20944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20945 sed -n '
20946 s/.\{148\}/&'"$ac_delim"'/g
20947 t rset
20948 :rset
20949 s/^[ ]*#[ ]*define[ ][ ]*/ /
20950 t def
20952 :def
20953 s/\\$//
20954 t bsnl
20955 s/["\\]/\\&/g
20956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20957 D["\1"]=" \3"/p
20958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20960 :bsnl
20961 s/["\\]/\\&/g
20962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20963 D["\1"]=" \3\\\\\\n"\\/p
20964 t cont
20965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20966 t cont
20968 :cont
20970 s/.\{148\}/&'"$ac_delim"'/g
20971 t clear
20972 :clear
20973 s/\\$//
20974 t bsnlc
20975 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20977 :bsnlc
20978 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20979 b cont
20980 ' <confdefs.h | sed '
20981 s/'"$ac_delim"'/"\\\
20982 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20985 for (key in D) D_is_set[key] = 1
20986 FS = "\a"
20988 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20989 line = \$ 0
20990 split(line, arg, " ")
20991 if (arg[1] == "#") {
20992 defundef = arg[2]
20993 mac1 = arg[3]
20994 } else {
20995 defundef = substr(arg[1], 2)
20996 mac1 = arg[2]
20998 split(mac1, mac2, "(") #)
20999 macro = mac2[1]
21000 prefix = substr(line, 1, index(line, defundef) - 1)
21001 if (D_is_set[macro]) {
21002 # Preserve the white space surrounding the "#".
21003 print prefix "define", macro P[macro] D[macro]
21004 next
21005 } else {
21006 # Replace #undef with comments. This is necessary, for example,
21007 # in the case of _POSIX_SOURCE, which is predefined and required
21008 # on some systems where configure will not decide to define it.
21009 if (defundef == "undef") {
21010 print "/*", prefix defundef, macro, "*/"
21011 next
21015 { print }
21016 _ACAWK
21017 _ACEOF
21018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21019 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21020 fi # test -n "$CONFIG_HEADERS"
21023 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21024 shift
21025 for ac_tag
21027 case $ac_tag in
21028 :[FHLC]) ac_mode=$ac_tag; continue;;
21029 esac
21030 case $ac_mode$ac_tag in
21031 :[FHL]*:*);;
21032 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21033 :[FH]-) ac_tag=-:-;;
21034 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21035 esac
21036 ac_save_IFS=$IFS
21037 IFS=:
21038 set x $ac_tag
21039 IFS=$ac_save_IFS
21040 shift
21041 ac_file=$1
21042 shift
21044 case $ac_mode in
21045 :L) ac_source=$1;;
21046 :[FH])
21047 ac_file_inputs=
21048 for ac_f
21050 case $ac_f in
21051 -) ac_f="$ac_tmp/stdin";;
21052 *) # Look for the file first in the build tree, then in the source tree
21053 # (if the path is not absolute). The absolute path cannot be DOS-style,
21054 # because $ac_f cannot contain `:'.
21055 test -f "$ac_f" ||
21056 case $ac_f in
21057 [\\/$]*) false;;
21058 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21059 esac ||
21060 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21061 esac
21062 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21063 as_fn_append ac_file_inputs " '$ac_f'"
21064 done
21066 # Let's still pretend it is `configure' which instantiates (i.e., don't
21067 # use $as_me), people would be surprised to read:
21068 # /* config.h. Generated by config.status. */
21069 configure_input='Generated from '`
21070 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21071 `' by configure.'
21072 if test x"$ac_file" != x-; then
21073 configure_input="$ac_file. $configure_input"
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21075 $as_echo "$as_me: creating $ac_file" >&6;}
21077 # Neutralize special characters interpreted by sed in replacement strings.
21078 case $configure_input in #(
21079 *\&* | *\|* | *\\* )
21080 ac_sed_conf_input=`$as_echo "$configure_input" |
21081 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21082 *) ac_sed_conf_input=$configure_input;;
21083 esac
21085 case $ac_tag in
21086 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21088 esac
21090 esac
21092 ac_dir=`$as_dirname -- "$ac_file" ||
21093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$ac_file" : 'X\(//\)[^/]' \| \
21095 X"$ac_file" : 'X\(//\)$' \| \
21096 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21097 $as_echo X"$ac_file" |
21098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21099 s//\1/
21102 /^X\(\/\/\)[^/].*/{
21103 s//\1/
21106 /^X\(\/\/\)$/{
21107 s//\1/
21110 /^X\(\/\).*/{
21111 s//\1/
21114 s/.*/./; q'`
21115 as_dir="$ac_dir"; as_fn_mkdir_p
21116 ac_builddir=.
21118 case "$ac_dir" in
21119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21122 # A ".." for each directory in $ac_dir_suffix.
21123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21124 case $ac_top_builddir_sub in
21125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21127 esac ;;
21128 esac
21129 ac_abs_top_builddir=$ac_pwd
21130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21131 # for backward compatibility:
21132 ac_top_builddir=$ac_top_build_prefix
21134 case $srcdir in
21135 .) # We are building in place.
21136 ac_srcdir=.
21137 ac_top_srcdir=$ac_top_builddir_sub
21138 ac_abs_top_srcdir=$ac_pwd ;;
21139 [\\/]* | ?:[\\/]* ) # Absolute name.
21140 ac_srcdir=$srcdir$ac_dir_suffix;
21141 ac_top_srcdir=$srcdir
21142 ac_abs_top_srcdir=$srcdir ;;
21143 *) # Relative name.
21144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21145 ac_top_srcdir=$ac_top_build_prefix$srcdir
21146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21147 esac
21148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21151 case $ac_mode in
21154 # CONFIG_FILE
21157 case $INSTALL in
21158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21160 esac
21161 ac_MKDIR_P=$MKDIR_P
21162 case $MKDIR_P in
21163 [\\/$]* | ?:[\\/]* ) ;;
21164 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21165 esac
21166 _ACEOF
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169 # If the template does not know about datarootdir, expand it.
21170 # FIXME: This hack should be removed a few years after 2.60.
21171 ac_datarootdir_hack=; ac_datarootdir_seen=
21172 ac_sed_dataroot='
21173 /datarootdir/ {
21177 /@datadir@/p
21178 /@docdir@/p
21179 /@infodir@/p
21180 /@localedir@/p
21181 /@mandir@/p'
21182 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21183 *datarootdir*) ac_datarootdir_seen=yes;;
21184 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21186 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21187 _ACEOF
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 ac_datarootdir_hack='
21190 s&@datadir@&$datadir&g
21191 s&@docdir@&$docdir&g
21192 s&@infodir@&$infodir&g
21193 s&@localedir@&$localedir&g
21194 s&@mandir@&$mandir&g
21195 s&\\\${datarootdir}&$datarootdir&g' ;;
21196 esac
21197 _ACEOF
21199 # Neutralize VPATH when `$srcdir' = `.'.
21200 # Shell code in configure.ac might set extrasub.
21201 # FIXME: do we really want to maintain this feature?
21202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21203 ac_sed_extra="$ac_vpsub
21204 $extrasub
21205 _ACEOF
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21209 s|@configure_input@|$ac_sed_conf_input|;t t
21210 s&@top_builddir@&$ac_top_builddir_sub&;t t
21211 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21212 s&@srcdir@&$ac_srcdir&;t t
21213 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21214 s&@top_srcdir@&$ac_top_srcdir&;t t
21215 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21216 s&@builddir@&$ac_builddir&;t t
21217 s&@abs_builddir@&$ac_abs_builddir&;t t
21218 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21219 s&@INSTALL@&$ac_INSTALL&;t t
21220 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21221 $ac_datarootdir_hack
21223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21224 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21226 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21229 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21231 which seems to be undefined. Please make sure it is defined" >&5
21232 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21233 which seems to be undefined. Please make sure it is defined" >&2;}
21235 rm -f "$ac_tmp/stdin"
21236 case $ac_file in
21237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21239 esac \
21240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21244 # CONFIG_HEADER
21246 if test x"$ac_file" != x-; then
21248 $as_echo "/* $configure_input */" \
21249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21250 } >"$ac_tmp/config.h" \
21251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21252 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21254 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21255 else
21256 rm -f "$ac_file"
21257 mv "$ac_tmp/config.h" "$ac_file" \
21258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21260 else
21261 $as_echo "/* $configure_input */" \
21262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21263 || as_fn_error $? "could not create -" "$LINENO" 5
21265 # Compute "$ac_file"'s index in $config_headers.
21266 _am_arg="$ac_file"
21267 _am_stamp_count=1
21268 for _am_header in $config_headers :; do
21269 case $_am_header in
21270 $_am_arg | $_am_arg:* )
21271 break ;;
21273 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21274 esac
21275 done
21276 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21277 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278 X"$_am_arg" : 'X\(//\)[^/]' \| \
21279 X"$_am_arg" : 'X\(//\)$' \| \
21280 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21281 $as_echo X"$_am_arg" |
21282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21283 s//\1/
21286 /^X\(\/\/\)[^/].*/{
21287 s//\1/
21290 /^X\(\/\/\)$/{
21291 s//\1/
21294 /^X\(\/\).*/{
21295 s//\1/
21298 s/.*/./; q'`/stamp-h$_am_stamp_count
21301 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21302 $as_echo "$as_me: executing $ac_file commands" >&6;}
21304 esac
21307 case $ac_file$ac_mode in
21308 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21309 # Older Autoconf quotes --file arguments for eval, but not when files
21310 # are listed without --file. Let's play safe and only enable the eval
21311 # if we detect the quoting.
21312 case $CONFIG_FILES in
21313 *\'*) eval set x "$CONFIG_FILES" ;;
21314 *) set x $CONFIG_FILES ;;
21315 esac
21316 shift
21317 for mf
21319 # Strip MF so we end up with the name of the file.
21320 mf=`echo "$mf" | sed -e 's/:.*$//'`
21321 # Check whether this is an Automake generated Makefile or not.
21322 # We used to match only the files named 'Makefile.in', but
21323 # some people rename them; so instead we look at the file content.
21324 # Grep'ing the first line is not enough: some people post-process
21325 # each Makefile.in and add a new line on top of each file to say so.
21326 # Grep'ing the whole file is not good either: AIX grep has a line
21327 # limit of 2048, but all sed's we know have understand at least 4000.
21328 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21329 dirpart=`$as_dirname -- "$mf" ||
21330 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21331 X"$mf" : 'X\(//\)[^/]' \| \
21332 X"$mf" : 'X\(//\)$' \| \
21333 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21334 $as_echo X"$mf" |
21335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21336 s//\1/
21339 /^X\(\/\/\)[^/].*/{
21340 s//\1/
21343 /^X\(\/\/\)$/{
21344 s//\1/
21347 /^X\(\/\).*/{
21348 s//\1/
21351 s/.*/./; q'`
21352 else
21353 continue
21355 # Extract the definition of DEPDIR, am__include, and am__quote
21356 # from the Makefile without running 'make'.
21357 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21358 test -z "$DEPDIR" && continue
21359 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21360 test -z "$am__include" && continue
21361 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21362 # Find all dependency output files, they are included files with
21363 # $(DEPDIR) in their names. We invoke sed twice because it is the
21364 # simplest approach to changing $(DEPDIR) to its actual value in the
21365 # expansion.
21366 for file in `sed -n "
21367 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21368 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21369 # Make sure the directory exists.
21370 test -f "$dirpart/$file" && continue
21371 fdir=`$as_dirname -- "$file" ||
21372 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21373 X"$file" : 'X\(//\)[^/]' \| \
21374 X"$file" : 'X\(//\)$' \| \
21375 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21376 $as_echo X"$file" |
21377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21378 s//\1/
21381 /^X\(\/\/\)[^/].*/{
21382 s//\1/
21385 /^X\(\/\/\)$/{
21386 s//\1/
21389 /^X\(\/\).*/{
21390 s//\1/
21393 s/.*/./; q'`
21394 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21395 # echo "creating $dirpart/$file"
21396 echo '# dummy' > "$dirpart/$file"
21397 done
21398 done
21401 "libtool":C)
21403 # See if we are running on zsh, and set the options which allow our
21404 # commands through without removal of \ escapes.
21405 if test -n "${ZSH_VERSION+set}" ; then
21406 setopt NO_GLOB_SUBST
21409 cfgfile="${ofile}T"
21410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21411 $RM "$cfgfile"
21413 cat <<_LT_EOF >> "$cfgfile"
21414 #! $SHELL
21416 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21417 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21419 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21422 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21423 # Foundation, Inc.
21424 # Written by Gordon Matzigkeit, 1996
21426 # This file is part of GNU Libtool.
21428 # GNU Libtool is free software; you can redistribute it and/or
21429 # modify it under the terms of the GNU General Public License as
21430 # published by the Free Software Foundation; either version 2 of
21431 # the License, or (at your option) any later version.
21433 # As a special exception to the GNU General Public License,
21434 # if you distribute this file as part of a program or library that
21435 # is built using GNU Libtool, you may include this file under the
21436 # same distribution terms that you use for the rest of that program.
21438 # GNU Libtool is distributed in the hope that it will be useful,
21439 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21440 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21441 # GNU General Public License for more details.
21443 # You should have received a copy of the GNU General Public License
21444 # along with GNU Libtool; see the file COPYING. If not, a copy
21445 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21446 # obtained by writing to the Free Software Foundation, Inc.,
21447 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21450 # The names of the tagged configurations supported by this script.
21451 available_tags="CXX "
21453 # ### BEGIN LIBTOOL CONFIG
21455 # Assembler program.
21456 AS=$lt_AS
21458 # DLL creation program.
21459 DLLTOOL=$lt_DLLTOOL
21461 # Object dumper program.
21462 OBJDUMP=$lt_OBJDUMP
21464 # Which release of libtool.m4 was used?
21465 macro_version=$macro_version
21466 macro_revision=$macro_revision
21468 # Whether or not to build shared libraries.
21469 build_libtool_libs=$enable_shared
21471 # Whether or not to build static libraries.
21472 build_old_libs=$enable_static
21474 # What type of objects to build.
21475 pic_mode=$pic_mode
21477 # Whether or not to optimize for fast installation.
21478 fast_install=$enable_fast_install
21480 # Shell to use when invoking shell scripts.
21481 SHELL=$lt_SHELL
21483 # An echo program that protects backslashes.
21484 ECHO=$lt_ECHO
21486 # The PATH separator for the build system.
21487 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21489 # The host system.
21490 host_alias=$host_alias
21491 host=$host
21492 host_os=$host_os
21494 # The build system.
21495 build_alias=$build_alias
21496 build=$build
21497 build_os=$build_os
21499 # A sed program that does not truncate output.
21500 SED=$lt_SED
21502 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21503 Xsed="\$SED -e 1s/^X//"
21505 # A grep program that handles long lines.
21506 GREP=$lt_GREP
21508 # An ERE matcher.
21509 EGREP=$lt_EGREP
21511 # A literal string matcher.
21512 FGREP=$lt_FGREP
21514 # A BSD- or MS-compatible name lister.
21515 NM=$lt_NM
21517 # Whether we need soft or hard links.
21518 LN_S=$lt_LN_S
21520 # What is the maximum length of a command?
21521 max_cmd_len=$max_cmd_len
21523 # Object file suffix (normally "o").
21524 objext=$ac_objext
21526 # Executable file suffix (normally "").
21527 exeext=$exeext
21529 # whether the shell understands "unset".
21530 lt_unset=$lt_unset
21532 # turn spaces into newlines.
21533 SP2NL=$lt_lt_SP2NL
21535 # turn newlines into spaces.
21536 NL2SP=$lt_lt_NL2SP
21538 # convert \$build file names to \$host format.
21539 to_host_file_cmd=$lt_cv_to_host_file_cmd
21541 # convert \$build files to toolchain format.
21542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21544 # Method to check whether dependent libraries are shared objects.
21545 deplibs_check_method=$lt_deplibs_check_method
21547 # Command to use when deplibs_check_method = "file_magic".
21548 file_magic_cmd=$lt_file_magic_cmd
21550 # How to find potential files when deplibs_check_method = "file_magic".
21551 file_magic_glob=$lt_file_magic_glob
21553 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21554 want_nocaseglob=$lt_want_nocaseglob
21556 # Command to associate shared and link libraries.
21557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21559 # The archiver.
21560 AR=$lt_AR
21562 # Flags to create an archive.
21563 AR_FLAGS=$lt_AR_FLAGS
21565 # How to feed a file listing to the archiver.
21566 archiver_list_spec=$lt_archiver_list_spec
21568 # A symbol stripping program.
21569 STRIP=$lt_STRIP
21571 # Commands used to install an old-style archive.
21572 RANLIB=$lt_RANLIB
21573 old_postinstall_cmds=$lt_old_postinstall_cmds
21574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21576 # Whether to use a lock for old archive extraction.
21577 lock_old_archive_extraction=$lock_old_archive_extraction
21579 # A C compiler.
21580 LTCC=$lt_CC
21582 # LTCC compiler flags.
21583 LTCFLAGS=$lt_CFLAGS
21585 # Take the output of nm and produce a listing of raw symbols and C names.
21586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21588 # Transform the output of nm in a proper C declaration.
21589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21591 # Transform the output of nm in a C name address pair.
21592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21594 # Transform the output of nm in a C name address pair when lib prefix is needed.
21595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21597 # Specify filename containing input files for \$NM.
21598 nm_file_list_spec=$lt_nm_file_list_spec
21600 # The root where to search for dependent libraries,and in which our libraries should be installed.
21601 lt_sysroot=$lt_sysroot
21603 # The name of the directory that contains temporary libtool files.
21604 objdir=$objdir
21606 # Used to examine libraries when file_magic_cmd begins with "file".
21607 MAGIC_CMD=$MAGIC_CMD
21609 # Must we lock files when doing compilation?
21610 need_locks=$lt_need_locks
21612 # Manifest tool.
21613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21616 DSYMUTIL=$lt_DSYMUTIL
21618 # Tool to change global to local symbols on Mac OS X.
21619 NMEDIT=$lt_NMEDIT
21621 # Tool to manipulate fat objects and archives on Mac OS X.
21622 LIPO=$lt_LIPO
21624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21625 OTOOL=$lt_OTOOL
21627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21628 OTOOL64=$lt_OTOOL64
21630 # Old archive suffix (normally "a").
21631 libext=$libext
21633 # Shared library suffix (normally ".so").
21634 shrext_cmds=$lt_shrext_cmds
21636 # The commands to extract the exported symbol list from a shared archive.
21637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21639 # Variables whose values should be saved in libtool wrapper scripts and
21640 # restored at link time.
21641 variables_saved_for_relink=$lt_variables_saved_for_relink
21643 # Do we need the "lib" prefix for modules?
21644 need_lib_prefix=$need_lib_prefix
21646 # Do we need a version for libraries?
21647 need_version=$need_version
21649 # Library versioning type.
21650 version_type=$version_type
21652 # Shared library runtime path variable.
21653 runpath_var=$runpath_var
21655 # Shared library path variable.
21656 shlibpath_var=$shlibpath_var
21658 # Is shlibpath searched before the hard-coded library search path?
21659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21661 # Format of library name prefix.
21662 libname_spec=$lt_libname_spec
21664 # List of archive names. First name is the real one, the rest are links.
21665 # The last name is the one that the linker finds with -lNAME
21666 library_names_spec=$lt_library_names_spec
21668 # The coded name of the library, if different from the real name.
21669 soname_spec=$lt_soname_spec
21671 # Permission mode override for installation of shared libraries.
21672 install_override_mode=$lt_install_override_mode
21674 # Command to use after installation of a shared archive.
21675 postinstall_cmds=$lt_postinstall_cmds
21677 # Command to use after uninstallation of a shared archive.
21678 postuninstall_cmds=$lt_postuninstall_cmds
21680 # Commands used to finish a libtool library installation in a directory.
21681 finish_cmds=$lt_finish_cmds
21683 # As "finish_cmds", except a single script fragment to be evaled but
21684 # not shown.
21685 finish_eval=$lt_finish_eval
21687 # Whether we should hardcode library paths into libraries.
21688 hardcode_into_libs=$hardcode_into_libs
21690 # Compile-time system search path for libraries.
21691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21693 # Run-time system search path for libraries.
21694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21696 # Whether dlopen is supported.
21697 dlopen_support=$enable_dlopen
21699 # Whether dlopen of programs is supported.
21700 dlopen_self=$enable_dlopen_self
21702 # Whether dlopen of statically linked programs is supported.
21703 dlopen_self_static=$enable_dlopen_self_static
21705 # Commands to strip libraries.
21706 old_striplib=$lt_old_striplib
21707 striplib=$lt_striplib
21710 # The linker used to build libraries.
21711 LD=$lt_LD
21713 # How to create reloadable object files.
21714 reload_flag=$lt_reload_flag
21715 reload_cmds=$lt_reload_cmds
21717 # Commands used to build an old-style archive.
21718 old_archive_cmds=$lt_old_archive_cmds
21720 # A language specific compiler.
21721 CC=$lt_compiler
21723 # Is the compiler the GNU compiler?
21724 with_gcc=$GCC
21726 # Compiler flag to turn off builtin functions.
21727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21729 # Additional compiler flags for building library objects.
21730 pic_flag=$lt_lt_prog_compiler_pic
21732 # How to pass a linker flag through the compiler.
21733 wl=$lt_lt_prog_compiler_wl
21735 # Compiler flag to prevent dynamic linking.
21736 link_static_flag=$lt_lt_prog_compiler_static
21738 # Does compiler simultaneously support -c and -o options?
21739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21741 # Whether or not to add -lc for building shared libraries.
21742 build_libtool_need_lc=$archive_cmds_need_lc
21744 # Whether or not to disallow shared libs when runtime libs are static.
21745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21747 # Compiler flag to allow reflexive dlopens.
21748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21750 # Compiler flag to generate shared objects directly from archives.
21751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21753 # Whether the compiler copes with passing no objects directly.
21754 compiler_needs_object=$lt_compiler_needs_object
21756 # Create an old-style archive from a shared archive.
21757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21759 # Create a temporary old-style archive to link instead of a shared archive.
21760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21762 # Commands used to build a shared archive.
21763 archive_cmds=$lt_archive_cmds
21764 archive_expsym_cmds=$lt_archive_expsym_cmds
21766 # Commands used to build a loadable module if different from building
21767 # a shared archive.
21768 module_cmds=$lt_module_cmds
21769 module_expsym_cmds=$lt_module_expsym_cmds
21771 # Whether we are building with GNU ld or not.
21772 with_gnu_ld=$lt_with_gnu_ld
21774 # Flag that allows shared libraries with undefined symbols to be built.
21775 allow_undefined_flag=$lt_allow_undefined_flag
21777 # Flag that enforces no undefined symbols.
21778 no_undefined_flag=$lt_no_undefined_flag
21780 # Flag to hardcode \$libdir into a binary during linking.
21781 # This must work even if \$libdir does not exist
21782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21784 # Whether we need a single "-rpath" flag with a separated argument.
21785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21788 # DIR into the resulting binary.
21789 hardcode_direct=$hardcode_direct
21791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21792 # DIR into the resulting binary and the resulting library dependency is
21793 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21794 # library is relocated.
21795 hardcode_direct_absolute=$hardcode_direct_absolute
21797 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21798 # into the resulting binary.
21799 hardcode_minus_L=$hardcode_minus_L
21801 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21802 # into the resulting binary.
21803 hardcode_shlibpath_var=$hardcode_shlibpath_var
21805 # Set to "yes" if building a shared library automatically hardcodes DIR
21806 # into the library and all subsequent libraries and executables linked
21807 # against it.
21808 hardcode_automatic=$hardcode_automatic
21810 # Set to yes if linker adds runtime paths of dependent libraries
21811 # to runtime path list.
21812 inherit_rpath=$inherit_rpath
21814 # Whether libtool must link a program against all its dependency libraries.
21815 link_all_deplibs=$link_all_deplibs
21817 # Set to "yes" if exported symbols are required.
21818 always_export_symbols=$always_export_symbols
21820 # The commands to list exported symbols.
21821 export_symbols_cmds=$lt_export_symbols_cmds
21823 # Symbols that should not be listed in the preloaded symbols.
21824 exclude_expsyms=$lt_exclude_expsyms
21826 # Symbols that must always be exported.
21827 include_expsyms=$lt_include_expsyms
21829 # Commands necessary for linking programs (against libraries) with templates.
21830 prelink_cmds=$lt_prelink_cmds
21832 # Commands necessary for finishing linking programs.
21833 postlink_cmds=$lt_postlink_cmds
21835 # Specify filename containing input files.
21836 file_list_spec=$lt_file_list_spec
21838 # How to hardcode a shared library path into an executable.
21839 hardcode_action=$hardcode_action
21841 # The directories searched by this compiler when creating a shared library.
21842 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21844 # Dependencies to place before and after the objects being linked to
21845 # create a shared library.
21846 predep_objects=$lt_predep_objects
21847 postdep_objects=$lt_postdep_objects
21848 predeps=$lt_predeps
21849 postdeps=$lt_postdeps
21851 # The library search path used internally by the compiler when linking
21852 # a shared library.
21853 compiler_lib_search_path=$lt_compiler_lib_search_path
21855 # ### END LIBTOOL CONFIG
21857 _LT_EOF
21859 case $host_os in
21860 aix3*)
21861 cat <<\_LT_EOF >> "$cfgfile"
21862 # AIX sometimes has problems with the GCC collect2 program. For some
21863 # reason, if we set the COLLECT_NAMES environment variable, the problems
21864 # vanish in a puff of smoke.
21865 if test "X${COLLECT_NAMES+set}" != Xset; then
21866 COLLECT_NAMES=
21867 export COLLECT_NAMES
21869 _LT_EOF
21871 esac
21874 ltmain="$ac_aux_dir/ltmain.sh"
21877 # We use sed instead of cat because bash on DJGPP gets confused if
21878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21879 # text mode, it properly converts lines to CR/LF. This bash problem
21880 # is reportedly fixed, but why not run on old versions too?
21881 sed '$q' "$ltmain" >> "$cfgfile" \
21882 || (rm -f "$cfgfile"; exit 1)
21884 if test x"$xsi_shell" = xyes; then
21885 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21886 func_dirname ()\
21888 \ case ${1} in\
21889 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21890 \ * ) func_dirname_result="${3}" ;;\
21891 \ esac\
21892 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21893 && mv -f "$cfgfile.tmp" "$cfgfile" \
21894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21895 test 0 -eq $? || _lt_function_replace_fail=:
21898 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21899 func_basename ()\
21901 \ func_basename_result="${1##*/}"\
21902 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21903 && mv -f "$cfgfile.tmp" "$cfgfile" \
21904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21905 test 0 -eq $? || _lt_function_replace_fail=:
21908 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21909 func_dirname_and_basename ()\
21911 \ case ${1} in\
21912 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21913 \ * ) func_dirname_result="${3}" ;;\
21914 \ esac\
21915 \ func_basename_result="${1##*/}"\
21916 } # Extended-shell func_dirname_and_basename 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_stripname ()$/,/^} # func_stripname /c\
21923 func_stripname ()\
21925 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21926 \ # positional parameters, so assign one to ordinary parameter first.\
21927 \ func_stripname_result=${3}\
21928 \ func_stripname_result=${func_stripname_result#"${1}"}\
21929 \ func_stripname_result=${func_stripname_result%"${2}"}\
21930 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21931 && mv -f "$cfgfile.tmp" "$cfgfile" \
21932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21933 test 0 -eq $? || _lt_function_replace_fail=:
21936 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21937 func_split_long_opt ()\
21939 \ func_split_long_opt_name=${1%%=*}\
21940 \ func_split_long_opt_arg=${1#*=}\
21941 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21942 && mv -f "$cfgfile.tmp" "$cfgfile" \
21943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21944 test 0 -eq $? || _lt_function_replace_fail=:
21947 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21948 func_split_short_opt ()\
21950 \ func_split_short_opt_arg=${1#??}\
21951 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21952 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21953 && mv -f "$cfgfile.tmp" "$cfgfile" \
21954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21955 test 0 -eq $? || _lt_function_replace_fail=:
21958 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21959 func_lo2o ()\
21961 \ case ${1} in\
21962 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21963 \ *) func_lo2o_result=${1} ;;\
21964 \ esac\
21965 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21966 && mv -f "$cfgfile.tmp" "$cfgfile" \
21967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21968 test 0 -eq $? || _lt_function_replace_fail=:
21971 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21972 func_xform ()\
21974 func_xform_result=${1%.*}.lo\
21975 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21976 && mv -f "$cfgfile.tmp" "$cfgfile" \
21977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21978 test 0 -eq $? || _lt_function_replace_fail=:
21981 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21982 func_arith ()\
21984 func_arith_result=$(( $* ))\
21985 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21986 && mv -f "$cfgfile.tmp" "$cfgfile" \
21987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21988 test 0 -eq $? || _lt_function_replace_fail=:
21991 sed -e '/^func_len ()$/,/^} # func_len /c\
21992 func_len ()\
21994 func_len_result=${#1}\
21995 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21996 && mv -f "$cfgfile.tmp" "$cfgfile" \
21997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21998 test 0 -eq $? || _lt_function_replace_fail=:
22002 if test x"$lt_shell_append" = xyes; then
22003 sed -e '/^func_append ()$/,/^} # func_append /c\
22004 func_append ()\
22006 eval "${1}+=\\${2}"\
22007 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22008 && mv -f "$cfgfile.tmp" "$cfgfile" \
22009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22010 test 0 -eq $? || _lt_function_replace_fail=:
22013 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22014 func_append_quoted ()\
22016 \ func_quote_for_eval "${2}"\
22017 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22018 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22019 && mv -f "$cfgfile.tmp" "$cfgfile" \
22020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22021 test 0 -eq $? || _lt_function_replace_fail=:
22024 # Save a `func_append' function call where possible by direct use of '+='
22025 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22026 && mv -f "$cfgfile.tmp" "$cfgfile" \
22027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22028 test 0 -eq $? || _lt_function_replace_fail=:
22029 else
22030 # Save a `func_append' function call even when '+=' is not available
22031 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22032 && mv -f "$cfgfile.tmp" "$cfgfile" \
22033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22034 test 0 -eq $? || _lt_function_replace_fail=:
22037 if test x"$_lt_function_replace_fail" = x":"; then
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22039 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22043 mv -f "$cfgfile" "$ofile" ||
22044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22045 chmod +x "$ofile"
22048 cat <<_LT_EOF >> "$ofile"
22050 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22052 # The linker used to build libraries.
22053 LD=$lt_LD_CXX
22055 # How to create reloadable object files.
22056 reload_flag=$lt_reload_flag_CXX
22057 reload_cmds=$lt_reload_cmds_CXX
22059 # Commands used to build an old-style archive.
22060 old_archive_cmds=$lt_old_archive_cmds_CXX
22062 # A language specific compiler.
22063 CC=$lt_compiler_CXX
22065 # Is the compiler the GNU compiler?
22066 with_gcc=$GCC_CXX
22068 # Compiler flag to turn off builtin functions.
22069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22071 # Additional compiler flags for building library objects.
22072 pic_flag=$lt_lt_prog_compiler_pic_CXX
22074 # How to pass a linker flag through the compiler.
22075 wl=$lt_lt_prog_compiler_wl_CXX
22077 # Compiler flag to prevent dynamic linking.
22078 link_static_flag=$lt_lt_prog_compiler_static_CXX
22080 # Does compiler simultaneously support -c and -o options?
22081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22083 # Whether or not to add -lc for building shared libraries.
22084 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22086 # Whether or not to disallow shared libs when runtime libs are static.
22087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22089 # Compiler flag to allow reflexive dlopens.
22090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22092 # Compiler flag to generate shared objects directly from archives.
22093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22095 # Whether the compiler copes with passing no objects directly.
22096 compiler_needs_object=$lt_compiler_needs_object_CXX
22098 # Create an old-style archive from a shared archive.
22099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22101 # Create a temporary old-style archive to link instead of a shared archive.
22102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22104 # Commands used to build a shared archive.
22105 archive_cmds=$lt_archive_cmds_CXX
22106 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22108 # Commands used to build a loadable module if different from building
22109 # a shared archive.
22110 module_cmds=$lt_module_cmds_CXX
22111 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22113 # Whether we are building with GNU ld or not.
22114 with_gnu_ld=$lt_with_gnu_ld_CXX
22116 # Flag that allows shared libraries with undefined symbols to be built.
22117 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22119 # Flag that enforces no undefined symbols.
22120 no_undefined_flag=$lt_no_undefined_flag_CXX
22122 # Flag to hardcode \$libdir into a binary during linking.
22123 # This must work even if \$libdir does not exist
22124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22126 # Whether we need a single "-rpath" flag with a separated argument.
22127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22129 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22130 # DIR into the resulting binary.
22131 hardcode_direct=$hardcode_direct_CXX
22133 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22134 # DIR into the resulting binary and the resulting library dependency is
22135 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22136 # library is relocated.
22137 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22139 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22140 # into the resulting binary.
22141 hardcode_minus_L=$hardcode_minus_L_CXX
22143 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22144 # into the resulting binary.
22145 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22147 # Set to "yes" if building a shared library automatically hardcodes DIR
22148 # into the library and all subsequent libraries and executables linked
22149 # against it.
22150 hardcode_automatic=$hardcode_automatic_CXX
22152 # Set to yes if linker adds runtime paths of dependent libraries
22153 # to runtime path list.
22154 inherit_rpath=$inherit_rpath_CXX
22156 # Whether libtool must link a program against all its dependency libraries.
22157 link_all_deplibs=$link_all_deplibs_CXX
22159 # Set to "yes" if exported symbols are required.
22160 always_export_symbols=$always_export_symbols_CXX
22162 # The commands to list exported symbols.
22163 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22165 # Symbols that should not be listed in the preloaded symbols.
22166 exclude_expsyms=$lt_exclude_expsyms_CXX
22168 # Symbols that must always be exported.
22169 include_expsyms=$lt_include_expsyms_CXX
22171 # Commands necessary for linking programs (against libraries) with templates.
22172 prelink_cmds=$lt_prelink_cmds_CXX
22174 # Commands necessary for finishing linking programs.
22175 postlink_cmds=$lt_postlink_cmds_CXX
22177 # Specify filename containing input files.
22178 file_list_spec=$lt_file_list_spec_CXX
22180 # How to hardcode a shared library path into an executable.
22181 hardcode_action=$hardcode_action_CXX
22183 # The directories searched by this compiler when creating a shared library.
22184 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22186 # Dependencies to place before and after the objects being linked to
22187 # create a shared library.
22188 predep_objects=$lt_predep_objects_CXX
22189 postdep_objects=$lt_postdep_objects_CXX
22190 predeps=$lt_predeps_CXX
22191 postdeps=$lt_postdeps_CXX
22193 # The library search path used internally by the compiler when linking
22194 # a shared library.
22195 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22197 # ### END LIBTOOL TAG CONFIG: CXX
22198 _LT_EOF
22201 "script-chmod":C) chmod a+x pcre-config ;;
22202 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22204 esac
22205 done # for ac_tag
22208 as_fn_exit 0
22209 _ACEOF
22210 ac_clean_files=$ac_clean_files_save
22212 test $ac_write_fail = 0 ||
22213 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22216 # configure is writing to config.log, and then calls config.status.
22217 # config.status does its own redirection, appending to config.log.
22218 # Unfortunately, on DOS this fails, as config.log is still kept open
22219 # by configure, so config.status won't be able to write to it; its
22220 # output is simply discarded. So we exec the FD to /dev/null,
22221 # effectively closing config.log, so it can be properly (re)opened and
22222 # appended to by config.status. When coming back to configure, we
22223 # need to make the FD available again.
22224 if test "$no_create" != yes; then
22225 ac_cs_success=:
22226 ac_config_status_args=
22227 test "$silent" = yes &&
22228 ac_config_status_args="$ac_config_status_args --quiet"
22229 exec 5>/dev/null
22230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22231 exec 5>>config.log
22232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22233 # would make configure fail if this is the last instruction.
22234 $ac_cs_success || as_fn_exit 1
22236 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22238 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22242 # Print out a nice little message after configure is run displaying the
22243 # chosen options.
22245 ebcdic_nl_code=n/a
22246 if test "$enable_ebcdic_nl25" = "yes"; then
22247 ebcdic_nl_code=0x25
22248 elif test "$enable_ebcdic" = "yes"; then
22249 ebcdic_nl_code=0x15
22252 cat <<EOF
22254 $PACKAGE-$VERSION configuration summary:
22256 Install prefix .................. : ${prefix}
22257 C preprocessor .................. : ${CPP}
22258 C compiler ...................... : ${CC}
22259 C++ preprocessor ................ : ${CXXCPP}
22260 C++ compiler .................... : ${CXX}
22261 Linker .......................... : ${LD}
22262 C preprocessor flags ............ : ${CPPFLAGS}
22263 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22264 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22265 Linker flags .................... : ${LDFLAGS}
22266 Extra libraries ................. : ${LIBS}
22268 Build 8 bit pcre library ........ : ${enable_pcre8}
22269 Build 16 bit pcre library ....... : ${enable_pcre16}
22270 Build 32 bit pcre library ....... : ${enable_pcre32}
22271 Build C++ library ............... : ${enable_cpp}
22272 Enable JIT compiling support .... : ${enable_jit}
22273 Enable UTF-8/16/32 support ...... : ${enable_utf}
22274 Unicode properties .............. : ${enable_unicode_properties}
22275 Newline char/sequence ........... : ${enable_newline}
22276 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22277 EBCDIC coding ................... : ${enable_ebcdic}
22278 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22279 Rebuild char tables ............. : ${enable_rebuild_chartables}
22280 Use stack recursion ............. : ${enable_stack_for_recursion}
22281 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22282 Internal link size .............. : ${with_link_size}
22283 Nested parentheses limit ........ : ${with_parens_nest_limit}
22284 Match limit ..................... : ${with_match_limit}
22285 Match limit recursion ........... : ${with_match_limit_recursion}
22286 Build shared libs ............... : ${enable_shared}
22287 Build static libs ............... : ${enable_static}
22288 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22289 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22290 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22291 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22292 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22293 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22294 Valgrind support ................ : ${enable_valgrind}
22295 Code coverage ................... : ${enable_coverage}