blob: 9f55f6dbe870e1a95eec1ab89194728937566f02 [file] [log] [blame]
Elliott Hughes5b808042021-10-01 10:56:10 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for PCRE2 10.38.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
45as_nl='
46'
47export as_nl
48IFS=" "" $as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84
85# Find who we are. Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114
115# Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156esac
157fi
158"
159 as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175fi
176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194then :
195 as_have_required=yes
196else $as_nop
197 as_have_required=no
198fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200then :
201
202else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204as_found=false
205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232IFS=$as_save_IFS
233if $as_found
234then :
235
236else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241fi
242fi
243
244
245 if test "x$CONFIG_SHELL" != x
246then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno
269then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277$0: including any error possibly output before this
278$0: message. Then install a modern shell, or manually run
279$0: the script under such a shell if you do have one."
280 fi
281 exit 1
282fi
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299 { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321# as_fn_nop
322# ---------
323# Do nothing but, unlike ":", preserve the value of $?.
324as_fn_nop ()
325{
326 return $?
327}
328as_nop=as_fn_nop
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383 test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402fi # as_fn_append
403
404# as_fn_arith ARG...
405# ------------------
406# Perform arithmetic evaluation on the ARGs, and store the result in the
407# global $as_val. Take advantage of shells that can avoid forks. The arguments
408# must be portable across $(()) and expr.
409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420fi # as_fn_arith
421
422# as_fn_nop
423# ---------
424# Do nothing but, unlike ":", preserve the value of $?.
425as_fn_nop ()
426{
427 return $?
428}
429as_nop=as_fn_nop
430
431# as_fn_error STATUS ERROR [LINENO LOG_FD]
432# ----------------------------------------
433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435# script with STATUS, using 1 if that was 0.
436as_fn_error ()
437{
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445} # as_fn_error
446
447if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450else
451 as_expr=false
452fi
453
454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456else
457 as_basename=false
458fi
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466as_me=`$as_basename -- "$0" ||
467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485# Avoid depending upon Character Ranges.
486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489as_cr_digits='0123456789'
490as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526}
527
528
529# Determine whether it's possible to make 'echo' print without a newline.
530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531# for compatibility with existing Makefiles.
532ECHO_C= ECHO_N= ECHO_T=
533case `echo -n x` in #(((((
534-n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541*)
542 ECHO_N='-n';;
543esac
544
545# For backward compatibility with old third-party macros, we provide
546# the shell variables $as_echo and $as_echo_n. New code should use
547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548as_echo='printf %s\n'
549as_echo_n='printf %s'
550
551
552rm -f conf$$ conf$$.exe conf$$.file
553if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558fi
559if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573else
574 as_ln_s='cp -pR'
575fi
576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577rmdir conf$$.dir 2>/dev/null
578
579if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584fi
585
586as_test_x='test -x'
587as_executable_p=as_fn_executable_p
588
589# Sed expression to map a string onto a valid CPP name.
590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592# Sed expression to map a string onto a valid variable name.
593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598test -n "$DJDIR" || exec 7<&0 </dev/null
599exec 6>&1
600
601# Name of the host.
602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603# so uname gets run too.
604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606#
607# Initializations.
608#
609ac_default_prefix=/usr/local
610ac_clean_files=
611ac_config_libobj_dir=.
612LIBOBJS=
613cross_compiling=no
614subdirs=
615MFLAGS=
616MAKEFLAGS=
617
618# Identity of this package.
619PACKAGE_NAME='PCRE2'
620PACKAGE_TARNAME='pcre2'
621PACKAGE_VERSION='10.38'
622PACKAGE_STRING='PCRE2 10.38'
623PACKAGE_BUGREPORT=''
624PACKAGE_URL=''
625
626ac_unique_file="src/pcre2.h.in"
627# Factoring default headers for most tests.
628ac_includes_default="\
629#include <stddef.h>
630#ifdef HAVE_STDIO_H
631# include <stdio.h>
632#endif
633#ifdef HAVE_STDLIB_H
634# include <stdlib.h>
635#endif
636#ifdef HAVE_STRING_H
637# include <string.h>
638#endif
639#ifdef HAVE_INTTYPES_H
640# include <inttypes.h>
641#endif
642#ifdef HAVE_STDINT_H
643# include <stdint.h>
644#endif
645#ifdef HAVE_STRINGS_H
646# include <strings.h>
647#endif
648#ifdef HAVE_SYS_TYPES_H
649# include <sys/types.h>
650#endif
651#ifdef HAVE_SYS_STAT_H
652# include <sys/stat.h>
653#endif
654#ifdef HAVE_UNISTD_H
655# include <unistd.h>
656#endif"
657
658ac_header_c_list=
659ac_subst_vars='am__EXEEXT_FALSE
660am__EXEEXT_TRUE
661LTLIBOBJS
662LIBOBJS
663LIB_POSTFIX
664CET_CFLAGS
665WITH_GCOV_FALSE
666WITH_GCOV_TRUE
667GCOV_LIBS
668GCOV_CXXFLAGS
669GCOV_CFLAGS
670GENHTML
671LCOV
672SHTOOL
673VALGRIND_LIBS
674VALGRIND_CFLAGS
675PKG_CONFIG_LIBDIR
676PKG_CONFIG_PATH
677PKG_CONFIG
678LIBBZ2
679LIBZ
680DISTCHECK_CONFIGURE_FLAGS
681EXTRA_LIBPCRE2_POSIX_LDFLAGS
682EXTRA_LIBPCRE2_32_LDFLAGS
683EXTRA_LIBPCRE2_16_LDFLAGS
684EXTRA_LIBPCRE2_8_LDFLAGS
685PTHREAD_CFLAGS
686PTHREAD_LIBS
687PTHREAD_CC
688ax_pthread_config
689PCRE2_STATIC_CFLAG
690LIBREADLINE
691WITH_FUZZ_SUPPORT_FALSE
692WITH_FUZZ_SUPPORT_TRUE
693WITH_VALGRIND_FALSE
694WITH_VALGRIND_TRUE
695WITH_UNICODE_FALSE
696WITH_UNICODE_TRUE
697WITH_JIT_FALSE
698WITH_JIT_TRUE
699WITH_REBUILD_CHARTABLES_FALSE
700WITH_REBUILD_CHARTABLES_TRUE
701WITH_DEBUG_FALSE
702WITH_DEBUG_TRUE
703WITH_PCRE2_32_FALSE
704WITH_PCRE2_32_TRUE
705WITH_PCRE2_16_FALSE
706WITH_PCRE2_16_TRUE
707WITH_PCRE2_8_FALSE
708WITH_PCRE2_8_TRUE
709enable_pcre2_32
710enable_pcre2_16
711enable_pcre2_8
712PCRE2_DATE
713PCRE2_PRERELEASE
714PCRE2_MINOR
715PCRE2_MAJOR
716HAVE_VISIBILITY
717VISIBILITY_CXXFLAGS
718VISIBILITY_CFLAGS
719LT_SYS_LIBRARY_PATH
720OTOOL64
721OTOOL
722LIPO
723NMEDIT
724DSYMUTIL
725MANIFEST_TOOL
726RANLIB
727LN_S
728NM
729ac_ct_DUMPBIN
730DUMPBIN
731LD
732FGREP
733EGREP
734GREP
735SED
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744LIBTOOL
745OBJDUMP
746DLLTOOL
747AS
748ac_ct_AR
749AR
750am__fastdepCC_FALSE
751am__fastdepCC_TRUE
752CCDEPMODE
753am__nodep
754AMDEPBACKSLASH
755AMDEP_FALSE
756AMDEP_TRUE
757am__include
758DEPDIR
759OBJEXT
760EXEEXT
761ac_ct_CC
762CPPFLAGS
763LDFLAGS
764CFLAGS
765CC
766AM_BACKSLASH
767AM_DEFAULT_VERBOSITY
768AM_DEFAULT_V
769AM_V
770CSCOPE
771ETAGS
772CTAGS
773am__untar
774am__tar
775AMTAR
776am__leading_dot
777SET_MAKE
778AWK
779mkdir_p
780MKDIR_P
781INSTALL_STRIP_PROGRAM
782STRIP
783install_sh
784MAKEINFO
785AUTOHEADER
786AUTOMAKE
787AUTOCONF
788ACLOCAL
789VERSION
790PACKAGE
791CYGPATH_W
792am__isrc
793INSTALL_DATA
794INSTALL_SCRIPT
795INSTALL_PROGRAM
796target_alias
797host_alias
798build_alias
799LIBS
800ECHO_T
801ECHO_N
802ECHO_C
803DEFS
804mandir
805localedir
806libdir
807psdir
808pdfdir
809dvidir
810htmldir
811infodir
812docdir
813oldincludedir
814includedir
815runstatedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
827PACKAGE_URL
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL
835am__quote'
836ac_subst_files=''
837ac_user_opts='
838enable_option_checking
839enable_silent_rules
840enable_dependency_tracking
841enable_shared
842enable_static
843with_pic
844enable_fast_install
845with_aix_soname
846with_gnu_ld
847with_sysroot
848enable_libtool_lock
849enable_pcre8
850enable_pcre16
851enable_pcre32
852enable_pcre2_8
853enable_pcre2_16
854enable_pcre2_32
855enable_debug
856enable_jit
857enable_jit_sealloc
858enable_pcre2grep_jit
859enable_pcre2grep_callout
860enable_pcre2grep_callout_fork
861enable_rebuild_chartables
862enable_unicode
863enable_newline_is_cr
864enable_newline_is_lf
865enable_newline_is_crlf
866enable_newline_is_anycrlf
867enable_newline_is_any
868enable_newline_is_nul
869enable_bsr_anycrlf
870enable_never_backslash_C
871enable_ebcdic
872enable_ebcdic_nl25
873enable_pcre2grep_libz
874enable_pcre2grep_libbz2
875with_pcre2grep_bufsize
876with_pcre2grep_max_bufsize
877enable_pcre2test_libedit
878enable_pcre2test_libreadline
879with_link_size
880with_parens_nest_limit
881with_heap_limit
882with_match_limit
883with_match_limit_depth
884with_match_limit_recursion
885enable_valgrind
886enable_coverage
887enable_fuzz_support
888enable_stack_for_recursion
889enable_percent_zt
890'
891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899LT_SYS_LIBRARY_PATH
900PKG_CONFIG
901PKG_CONFIG_PATH
902PKG_CONFIG_LIBDIR
903VALGRIND_CFLAGS
904VALGRIND_LIBS
905LCOV
906GENHTML'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912ac_unrecognized_opts=
913ac_unrecognized_sep=
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945runstatedir='${localstatedir}/run'
946includedir='${prefix}/include'
947oldincludedir='/usr/include'
948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
957
958ac_prev=
959ac_dashdash=
960for ac_option
961do
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
965 ac_prev=
966 continue
967 fi
968
969 case $ac_option in
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: \`$ac_useropt'"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=\$ac_optarg ;;
1265
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: \`$ac_useropt'"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310 esac
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1343do
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1346 case $ac_val in
1347 */ )
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1350 esac
1351 # Be sure to have absolute directory names.
1352 case $ac_val in
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 esac
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398printf "%s\n" X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420else
1421 ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455\`configure' configures PCRE2 10.38 to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre2]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of PCRE2 10.38:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-silent-rules less verbose build output (undo: "make V=1")
1535 --disable-silent-rules verbose build output (undo: "make V=0")
1536 --enable-dependency-tracking
1537 do not reject slow dependency extractors
1538 --disable-dependency-tracking
1539 speeds up one-time build
1540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-static[=PKGS] build static libraries [default=yes]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1545
1546 --disable-pcre2-8 disable 8 bit character support
1547 --enable-pcre2-16 enable 16 bit character support
1548 --enable-pcre2-32 enable 32 bit character support
1549 --enable-debug enable debugging code
1550 --enable-jit enable Just-In-Time compiling support
1551 --enable-jit-sealloc enable SELinux compatible execmem allocator in JIT
1552 (experimental)
1553 --disable-pcre2grep-jit disable JIT support in pcre2grep
1554 --disable-pcre2grep-callout
1555 disable callout script support in pcre2grep
1556 --disable-pcre2grep-callout-fork
1557 disable callout script fork support in pcre2grep
1558 --enable-rebuild-chartables
1559 rebuild character tables in current locale
1560 --disable-unicode disable Unicode support
1561 --enable-newline-is-cr use CR as newline character
1562 --enable-newline-is-lf use LF as newline character (default)
1563 --enable-newline-is-crlf
1564 use CRLF as newline sequence
1565 --enable-newline-is-anycrlf
1566 use CR, LF, or CRLF as newline sequence
1567 --enable-newline-is-any use any valid Unicode newline sequence
1568 --enable-newline-is-nul use NUL (binary zero) as newline character
1569 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1570 --enable-never-backslash-C
1571 use of \C causes an error
1572 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1573 with --enable-utf; use only in (uncommon) EBCDIC
1574 environments; it implies --enable-rebuild-chartables
1575 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1576 implies --enable-ebcdic
1577 --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
1578 --enable-pcre2grep-libbz2
1579 link pcre2grep with libbz2 to handle .bz2 files
1580 --enable-pcre2test-libedit
1581 link pcre2test with libedit
1582 --enable-pcre2test-libreadline
1583 link pcre2test with libreadline
1584 --enable-valgrind enable valgrind support
1585 --enable-coverage enable code coverage reports using gcov
1586 --enable-fuzz-support enable fuzzer support
1587 --disable-percent-zt disable the use of z and t formatting modifiers
1588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1593 both]
1594 --with-aix-soname=aix|svr4|both
1595 shared library versioning (aka "SONAME") variant to
1596 provide on AIX, [default=aix].
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1599 compiler's sysroot if not specified).
1600 --with-pcre2grep-bufsize=N
1601 pcre2grep initial buffer size (default=20480,
1602 minimum=8192)
1603 --with-pcre2grep-max-bufsize=N
1604 pcre2grep maximum buffer size (default=1048576,
1605 minimum=8192)
1606 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1607 --with-parens-nest-limit=N
1608 nested parentheses limit (default=250)
1609 --with-heap-limit=N default limit on heap memory (kibibytes,
1610 default=20000000)
1611 --with-match-limit=N default limit on internal looping (default=10000000)
1612 --with-match-limit-depth=N
1613 default limit on match tree depth
1614 (default=MATCH_LIMIT)
1615
1616
1617Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 LT_SYS_LIBRARY_PATH
1626 User-defined run-time library search path.
1627 PKG_CONFIG path to pkg-config utility
1628 PKG_CONFIG_PATH
1629 directories to add to pkg-config's search path
1630 PKG_CONFIG_LIBDIR
1631 path overriding pkg-config's built-in search path
1632 VALGRIND_CFLAGS
1633 C compiler flags for VALGRIND, overriding pkg-config
1634 VALGRIND_LIBS
1635 linker flags for VALGRIND, overriding pkg-config
1636 LCOV the ltp lcov program
1637 GENHTML the ltp genhtml program
1638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
1642Report bugs to the package provider.
1643_ACEOF
1644ac_status=$?
1645fi
1646
1647if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652 continue
1653 ac_builddir=.
1654
1655case "$ac_dir" in
1656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657*)
1658 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 esac ;;
1665esac
1666ac_abs_top_builddir=$ac_pwd
1667ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668# for backward compatibility:
1669ac_top_builddir=$ac_top_build_prefix
1670
1671case $srcdir in
1672 .) # We are building in place.
1673 ac_srcdir=.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1680 *) # Relative name.
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684esac
1685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for configure.gnu first; this name is used for a wrapper for
1689 # Metaconfig's "Configure" on case-insensitive file systems.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1701fi
1702
1703test -n "$ac_init_help" && exit $ac_status
1704if $ac_init_version; then
1705 cat <<\_ACEOF
1706PCRE2 configure 10.38
1707generated by GNU Autoconf 2.71
1708
1709Copyright (C) 2021 Free Software Foundation, Inc.
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
1713 exit
1714fi
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest.beam
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733printf "%s\n" "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext
1746then :
1747 ac_retval=0
1748else $as_nop
1749 printf "%s\n" "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1
1753fi
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_compile
1758
1759# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760# -------------------------------------------------------
1761# Tests whether HEADER exists and can be compiled using the include files in
1762# INCLUDES, setting the cache variable VAR accordingly.
1763ac_fn_c_check_header_compile ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767printf %s "checking for $2... " >&6; }
1768if eval test \${$3+y}
1769then :
1770 printf %s "(cached) " >&6
1771else $as_nop
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"
1778then :
1779 eval "$3=yes"
1780else $as_nop
1781 eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787printf "%s\n" "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_find_intX_t LINENO BITS VAR
1793# -----------------------------------
1794# Finds a signed integer type with width BITS, setting cache variable VAR
1795# accordingly.
1796ac_fn_c_find_intX_t ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1800printf %s "checking for int$2_t... " >&6; }
1801if eval test \${$3+y}
1802then :
1803 printf %s "(cached) " >&6
1804else $as_nop
1805 eval "$3=no"
1806 # Order is important - never check a type that is potentially smaller
1807 # than half of the expected target width.
1808 for ac_type in int$2_t 'int' 'long int' \
1809 'long long int' 'short int' 'signed char'; do
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812$ac_includes_default
1813 enum { N = $2 / 2 - 1 };
1814int
1815main (void)
1816{
1817static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1818test_array [0] = 0;
1819return test_array [0];
1820
1821 ;
1822 return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"
1826then :
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829$ac_includes_default
1830 enum { N = $2 / 2 - 1 };
1831int
1832main (void)
1833{
1834static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1835 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1836test_array [0] = 0;
1837return test_array [0];
1838
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"
1844then :
1845
1846else $as_nop
1847 case $ac_type in #(
1848 int$2_t) :
1849 eval "$3=yes" ;; #(
1850 *) :
1851 eval "$3=\$ac_type" ;;
1852esac
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 if eval test \"x\$"$3"\" = x"no"
1858then :
1859
1860else $as_nop
1861 break
1862fi
1863 done
1864fi
1865eval ac_res=\$$3
1866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867printf "%s\n" "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_find_intX_t
1871
1872# ac_fn_c_try_link LINENO
1873# -----------------------
1874# Try to link conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_c_try_link ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885printf "%s\n" "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 test -x conftest$ac_exeext
1900 }
1901then :
1902 ac_retval=0
1903else $as_nop
1904 printf "%s\n" "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907 ac_retval=1
1908fi
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_link
1918
1919# ac_fn_c_check_func LINENO FUNC VAR
1920# ----------------------------------
1921# Tests whether FUNC exists, setting the cache variable VAR accordingly
1922ac_fn_c_check_func ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926printf %s "checking for $2... " >&6; }
1927if eval test \${$3+y}
1928then :
1929 printf %s "(cached) " >&6
1930else $as_nop
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1935#define $2 innocuous_$2
1936
1937/* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char $2 (); below. */
1939
1940#include <limits.h>
1941#undef $2
1942
1943/* Override any GCC internal prototype to avoid an error.
1944 Use char because int might match the return type of a GCC
1945 builtin and then its argument prototype would still apply. */
1946#ifdef __cplusplus
1947extern "C"
1948#endif
1949char $2 ();
1950/* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953#if defined __stub_$2 || defined __stub___$2
1954choke me
1955#endif
1956
1957int
1958main (void)
1959{
1960return $2 ();
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_link "$LINENO"
1966then :
1967 eval "$3=yes"
1968else $as_nop
1969 eval "$3=no"
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.beam \
1972 conftest$ac_exeext conftest.$ac_ext
1973fi
1974eval ac_res=\$$3
1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976printf "%s\n" "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979} # ac_fn_c_check_func
1980
1981# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1982# -------------------------------------------
1983# Tests whether TYPE exists after having included INCLUDES, setting cache
1984# variable VAR accordingly.
1985ac_fn_c_check_type ()
1986{
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989printf %s "checking for $2... " >&6; }
1990if eval test \${$3+y}
1991then :
1992 printf %s "(cached) " >&6
1993else $as_nop
1994 eval "$3=no"
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h. */
1997$4
1998int
1999main (void)
2000{
2001if (sizeof ($2))
2002 return 0;
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"
2008then :
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011$4
2012int
2013main (void)
2014{
2015if (sizeof (($2)))
2016 return 0;
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"
2022then :
2023
2024else $as_nop
2025 eval "$3=yes"
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033printf "%s\n" "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_type
2037ac_configure_args_raw=
2038for ac_arg
2039do
2040 case $ac_arg in
2041 *\'*)
2042 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 esac
2044 as_fn_append ac_configure_args_raw " '$ac_arg'"
2045done
2046
2047case $ac_configure_args_raw in
2048 *$as_nl*)
2049 ac_safe_unquote= ;;
2050 *)
2051 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2052 ac_unsafe_a="$ac_unsafe_z#~"
2053 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2054 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2055esac
2056
2057cat >config.log <<_ACEOF
2058This file contains any messages produced by compilers while
2059running configure, to aid debugging if configure makes a mistake.
2060
2061It was created by PCRE2 $as_me 10.38, which was
2062generated by GNU Autoconf 2.71. Invocation command line was
2063
2064 $ $0$ac_configure_args_raw
2065
2066_ACEOF
2067exec 5>>config.log
2068{
2069cat <<_ASUNAME
2070## --------- ##
2071## Platform. ##
2072## --------- ##
2073
2074hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2082
2083/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2090
2091_ASUNAME
2092
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096 IFS=$as_save_IFS
2097 case $as_dir in #(((
2098 '') as_dir=./ ;;
2099 */) ;;
2100 *) as_dir=$as_dir/ ;;
2101 esac
2102 printf "%s\n" "PATH: $as_dir"
2103 done
2104IFS=$as_save_IFS
2105
2106} >&5
2107
2108cat >&5 <<_ACEOF
2109
2110
2111## ----------- ##
2112## Core tests. ##
2113## ----------- ##
2114
2115_ACEOF
2116
2117
2118# Keep a trace of the command line.
2119# Strip out --no-create and --no-recursion so they do not pile up.
2120# Strip out --silent because we don't want to record it for future runs.
2121# Also quote any args containing shell meta-characters.
2122# Make two passes to allow for proper duplicate-argument suppression.
2123ac_configure_args=
2124ac_configure_args0=
2125ac_configure_args1=
2126ac_must_keep_next=false
2127for ac_pass in 1 2
2128do
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 2)
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2157 fi
2158 as_fn_append ac_configure_args " '$ac_arg'"
2159 ;;
2160 esac
2161 done
2162done
2163{ ac_configure_args0=; unset ac_configure_args0;}
2164{ ac_configure_args1=; unset ac_configure_args1;}
2165
2166# When interrupted or exit'd, cleanup temporary files, and complete
2167# config.log. We remove comments because anyway the quotes in there
2168# would cause problems or look ugly.
2169# WARNING: Use '\'' to represent an apostrophe within the trap.
2170# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171trap 'exit_status=$?
2172 # Sanitize IFS.
2173 IFS=" "" $as_nl"
2174 # Save into config.log some information that might help in debugging.
2175 {
2176 echo
2177
2178 printf "%s\n" "## ---------------- ##
2179## Cache variables. ##
2180## ---------------- ##"
2181 echo
2182 # The following way of writing the cache mishandles newlines in values,
2183(
2184 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185 eval ac_val=\$$ac_var
2186 case $ac_val in #(
2187 *${as_nl}*)
2188 case $ac_var in #(
2189 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2191 esac
2192 case $ac_var in #(
2193 _ | IFS | as_nl) ;; #(
2194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195 *) { eval $ac_var=; unset $ac_var;} ;;
2196 esac ;;
2197 esac
2198 done
2199 (set) 2>&1 |
2200 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201 *${as_nl}ac_space=\ *)
2202 sed -n \
2203 "s/'\''/'\''\\\\'\'''\''/g;
2204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2205 ;; #(
2206 *)
2207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208 ;;
2209 esac |
2210 sort
2211)
2212 echo
2213
2214 printf "%s\n" "## ----------------- ##
2215## Output variables. ##
2216## ----------------- ##"
2217 echo
2218 for ac_var in $ac_subst_vars
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 printf "%s\n" "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227
2228 if test -n "$ac_subst_files"; then
2229 printf "%s\n" "## ------------------- ##
2230## File substitutions. ##
2231## ------------------- ##"
2232 echo
2233 for ac_var in $ac_subst_files
2234 do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 printf "%s\n" "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2242 fi
2243
2244 if test -s confdefs.h; then
2245 printf "%s\n" "## ----------- ##
2246## confdefs.h. ##
2247## ----------- ##"
2248 echo
2249 cat confdefs.h
2250 echo
2251 fi
2252 test "$ac_signal" != 0 &&
2253 printf "%s\n" "$as_me: caught signal $ac_signal"
2254 printf "%s\n" "$as_me: exit $exit_status"
2255 } >&5
2256 rm -f core *.core core.conftest.* &&
2257 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2258 exit $exit_status
2259' 0
2260for ac_signal in 1 2 13 15; do
2261 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2262done
2263ac_signal=0
2264
2265# confdefs.h avoids OS command line length limits that DEFS can exceed.
2266rm -f -r conftest* confdefs.h
2267
2268printf "%s\n" "/* confdefs.h */" > confdefs.h
2269
2270# Predefined preprocessor variables.
2271
2272printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2273
2274printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2275
2276printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2277
2278printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2279
2280printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2281
2282printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2283
2284
2285# Let the site file select an alternate cache file if it wants to.
2286# Prefer an explicitly selected file to automatically selected ones.
2287if test -n "$CONFIG_SITE"; then
2288 ac_site_files="$CONFIG_SITE"
2289elif test "x$prefix" != xNONE; then
2290 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2291else
2292 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2293fi
2294
2295for ac_site_file in $ac_site_files
2296do
2297 case $ac_site_file in #(
2298 */*) :
2299 ;; #(
2300 *) :
2301 ac_site_file=./$ac_site_file ;;
2302esac
2303 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2305printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2306 sed 's/^/| /' "$ac_site_file" >&5
2307 . "$ac_site_file" \
2308 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2310as_fn_error $? "failed to load site script $ac_site_file
2311See \`config.log' for more details" "$LINENO" 5; }
2312 fi
2313done
2314
2315if test -r "$cache_file"; then
2316 # Some versions of bash will fail to source /dev/null (special files
2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2321 case $cache_file in
2322 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323 *) . "./$cache_file";;
2324 esac
2325 fi
2326else
2327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2329 >$cache_file
2330fi
2331
2332# Test code for whether the C compiler supports C89 (global declarations)
2333ac_c_conftest_c89_globals='
2334/* Does the compiler advertise C89 conformance?
2335 Do not test the value of __STDC__, because some compilers set it to 0
2336 while being otherwise adequately conformant. */
2337#if !defined __STDC__
2338# error "Compiler does not advertise C89 conformance"
2339#endif
2340
2341#include <stddef.h>
2342#include <stdarg.h>
2343struct stat;
2344/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2345struct buf { int x; };
2346struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2347static char *e (p, i)
2348 char **p;
2349 int i;
2350{
2351 return p[i];
2352}
2353static char *f (char * (*g) (char **, int), char **p, ...)
2354{
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2361}
2362
2363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not \xHH hex character constants.
2365 These do not provoke an error unfortunately, instead are silently treated
2366 as an "x". The following induces an error, until -std is added to get
2367 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2368 array size at least. It is necessary to write \x00 == 0 to get something
2369 that is true only with -std. */
2370int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2371
2372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2373 inside strings and character constants. */
2374#define FOO(x) '\''x'\''
2375int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2376
2377int test (int i, double x);
2378struct s1 {int (*f) (int a);};
2379struct s2 {int (*f) (double a);};
2380int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2381 int, int);'
2382
2383# Test code for whether the C compiler supports C89 (body of main).
2384ac_c_conftest_c89_main='
2385ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2386'
2387
2388# Test code for whether the C compiler supports C99 (global declarations)
2389ac_c_conftest_c99_globals='
2390// Does the compiler advertise C99 conformance?
2391#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2392# error "Compiler does not advertise C99 conformance"
2393#endif
2394
2395#include <stdbool.h>
2396extern int puts (const char *);
2397extern int printf (const char *, ...);
2398extern int dprintf (int, const char *, ...);
2399extern void *malloc (size_t);
2400
2401// Check varargs macros. These examples are taken from C99 6.10.3.5.
2402// dprintf is used instead of fprintf to avoid needing to declare
2403// FILE and stderr.
2404#define debug(...) dprintf (2, __VA_ARGS__)
2405#define showlist(...) puts (#__VA_ARGS__)
2406#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2407static void
2408test_varargs_macros (void)
2409{
2410 int x = 1234;
2411 int y = 5678;
2412 debug ("Flag");
2413 debug ("X = %d\n", x);
2414 showlist (The first, second, and third items.);
2415 report (x>y, "x is %d but y is %d", x, y);
2416}
2417
2418// Check long long types.
2419#define BIG64 18446744073709551615ull
2420#define BIG32 4294967295ul
2421#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2422#if !BIG_OK
2423 #error "your preprocessor is broken"
2424#endif
2425#if BIG_OK
2426#else
2427 #error "your preprocessor is broken"
2428#endif
2429static long long int bignum = -9223372036854775807LL;
2430static unsigned long long int ubignum = BIG64;
2431
2432struct incomplete_array
2433{
2434 int datasize;
2435 double data[];
2436};
2437
2438struct named_init {
2439 int number;
2440 const wchar_t *name;
2441 double average;
2442};
2443
2444typedef const char *ccp;
2445
2446static inline int
2447test_restrict (ccp restrict text)
2448{
2449 // See if C++-style comments work.
2450 // Iterate through items via the restricted pointer.
2451 // Also check for declarations in for loops.
2452 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2453 continue;
2454 return 0;
2455}
2456
2457// Check varargs and va_copy.
2458static bool
2459test_varargs (const char *format, ...)
2460{
2461 va_list args;
2462 va_start (args, format);
2463 va_list args_copy;
2464 va_copy (args_copy, args);
2465
2466 const char *str = "";
2467 int number = 0;
2468 float fnumber = 0;
2469
2470 while (*format)
2471 {
2472 switch (*format++)
2473 {
2474 case '\''s'\'': // string
2475 str = va_arg (args_copy, const char *);
2476 break;
2477 case '\''d'\'': // int
2478 number = va_arg (args_copy, int);
2479 break;
2480 case '\''f'\'': // float
2481 fnumber = va_arg (args_copy, double);
2482 break;
2483 default:
2484 break;
2485 }
2486 }
2487 va_end (args_copy);
2488 va_end (args);
2489
2490 return *str && number && fnumber;
2491}
2492'
2493
2494# Test code for whether the C compiler supports C99 (body of main).
2495ac_c_conftest_c99_main='
2496 // Check bool.
2497 _Bool success = false;
2498 success |= (argc != 0);
2499
2500 // Check restrict.
2501 if (test_restrict ("String literal") == 0)
2502 success = true;
2503 char *restrict newvar = "Another string";
2504
2505 // Check varargs.
2506 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2507 test_varargs_macros ();
2508
2509 // Check flexible array members.
2510 struct incomplete_array *ia =
2511 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2512 ia->datasize = 10;
2513 for (int i = 0; i < ia->datasize; ++i)
2514 ia->data[i] = i * 1.234;
2515
2516 // Check named initializers.
2517 struct named_init ni = {
2518 .number = 34,
2519 .name = L"Test wide string",
2520 .average = 543.34343,
2521 };
2522
2523 ni.number = 58;
2524
2525 int dynamic_array[ni.number];
2526 dynamic_array[0] = argv[0][0];
2527 dynamic_array[ni.number - 1] = 543;
2528
2529 // work around unused variable warnings
2530 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2531 || dynamic_array[ni.number - 1] != 543);
2532'
2533
2534# Test code for whether the C compiler supports C11 (global declarations)
2535ac_c_conftest_c11_globals='
2536// Does the compiler advertise C11 conformance?
2537#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2538# error "Compiler does not advertise C11 conformance"
2539#endif
2540
2541// Check _Alignas.
2542char _Alignas (double) aligned_as_double;
2543char _Alignas (0) no_special_alignment;
2544extern char aligned_as_int;
2545char _Alignas (0) _Alignas (int) aligned_as_int;
2546
2547// Check _Alignof.
2548enum
2549{
2550 int_alignment = _Alignof (int),
2551 int_array_alignment = _Alignof (int[100]),
2552 char_alignment = _Alignof (char)
2553};
2554_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2555
2556// Check _Noreturn.
2557int _Noreturn does_not_return (void) { for (;;) continue; }
2558
2559// Check _Static_assert.
2560struct test_static_assert
2561{
2562 int x;
2563 _Static_assert (sizeof (int) <= sizeof (long int),
2564 "_Static_assert does not work in struct");
2565 long int y;
2566};
2567
2568// Check UTF-8 literals.
2569#define u8 syntax error!
2570char const utf8_literal[] = u8"happens to be ASCII" "another string";
2571
2572// Check duplicate typedefs.
2573typedef long *long_ptr;
2574typedef long int *long_ptr;
2575typedef long_ptr long_ptr;
2576
2577// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2578struct anonymous
2579{
2580 union {
2581 struct { int i; int j; };
2582 struct { int k; long int l; } w;
2583 };
2584 int m;
2585} v1;
2586'
2587
2588# Test code for whether the C compiler supports C11 (body of main).
2589ac_c_conftest_c11_main='
2590 _Static_assert ((offsetof (struct anonymous, i)
2591 == offsetof (struct anonymous, w.k)),
2592 "Anonymous union alignment botch");
2593 v1.i = 2;
2594 v1.w.k = 5;
2595 ok |= v1.i != 5;
2596'
2597
2598# Test code for whether the C compiler supports C11 (complete).
2599ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2600${ac_c_conftest_c99_globals}
2601${ac_c_conftest_c11_globals}
2602
2603int
2604main (int argc, char **argv)
2605{
2606 int ok = 0;
2607 ${ac_c_conftest_c89_main}
2608 ${ac_c_conftest_c99_main}
2609 ${ac_c_conftest_c11_main}
2610 return ok;
2611}
2612"
2613
2614# Test code for whether the C compiler supports C99 (complete).
2615ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2616${ac_c_conftest_c99_globals}
2617
2618int
2619main (int argc, char **argv)
2620{
2621 int ok = 0;
2622 ${ac_c_conftest_c89_main}
2623 ${ac_c_conftest_c99_main}
2624 return ok;
2625}
2626"
2627
2628# Test code for whether the C compiler supports C89 (complete).
2629ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2630
2631int
2632main (int argc, char **argv)
2633{
2634 int ok = 0;
2635 ${ac_c_conftest_c89_main}
2636 return ok;
2637}
2638"
2639
2640as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2641as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2642as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2643as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2644as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2645as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2646as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2647as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2648as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2649as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2650as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2651
2652# Auxiliary files required by this configure script.
2653ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2654
2655# Locations in which to look for auxiliary files.
2656ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2657
2658# Search for a directory containing all of the required auxiliary files,
2659# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2660# If we don't find one directory that contains all the files we need,
2661# we report the set of missing files from the *first* directory in
2662# $ac_aux_dir_candidates and give up.
2663ac_missing_aux_files=""
2664ac_first_candidate=:
2665printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667as_found=false
2668for as_dir in $ac_aux_dir_candidates
2669do
2670 IFS=$as_save_IFS
2671 case $as_dir in #(((
2672 '') as_dir=./ ;;
2673 */) ;;
2674 *) as_dir=$as_dir/ ;;
2675 esac
2676 as_found=:
2677
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2679 ac_aux_dir_found=yes
2680 ac_install_sh=
2681 for ac_aux in $ac_aux_files
2682 do
2683 # As a special case, if "install-sh" is required, that requirement
2684 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2685 # and $ac_install_sh is set appropriately for whichever one is found.
2686 if test x"$ac_aux" = x"install-sh"
2687 then
2688 if test -f "${as_dir}install-sh"; then
2689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2690 ac_install_sh="${as_dir}install-sh -c"
2691 elif test -f "${as_dir}install.sh"; then
2692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2693 ac_install_sh="${as_dir}install.sh -c"
2694 elif test -f "${as_dir}shtool"; then
2695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2696 ac_install_sh="${as_dir}shtool install -c"
2697 else
2698 ac_aux_dir_found=no
2699 if $ac_first_candidate; then
2700 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2701 else
2702 break
2703 fi
2704 fi
2705 else
2706 if test -f "${as_dir}${ac_aux}"; then
2707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2708 else
2709 ac_aux_dir_found=no
2710 if $ac_first_candidate; then
2711 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2712 else
2713 break
2714 fi
2715 fi
2716 fi
2717 done
2718 if test "$ac_aux_dir_found" = yes; then
2719 ac_aux_dir="$as_dir"
2720 break
2721 fi
2722 ac_first_candidate=false
2723
2724 as_found=false
2725done
2726IFS=$as_save_IFS
2727if $as_found
2728then :
2729
2730else $as_nop
2731 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2732fi
2733
2734
2735# These three variables are undocumented and unsupported,
2736# and are intended to be withdrawn in a future Autoconf release.
2737# They can cause serious problems if a builder's source tree is in a directory
2738# whose full name contains unusual characters.
2739if test -f "${ac_aux_dir}config.guess"; then
2740 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2741fi
2742if test -f "${ac_aux_dir}config.sub"; then
2743 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2744fi
2745if test -f "$ac_aux_dir/configure"; then
2746 ac_configure="$SHELL ${ac_aux_dir}configure"
2747fi
2748
2749# Check that the precious variables saved in the cache have kept the same
2750# value.
2751ac_cache_corrupted=false
2752for ac_var in $ac_precious_vars; do
2753 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754 eval ac_new_set=\$ac_env_${ac_var}_set
2755 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756 eval ac_new_val=\$ac_env_${ac_var}_value
2757 case $ac_old_set,$ac_new_set in
2758 set,)
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2762 ,set)
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2764printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2766 ,);;
2767 *)
2768 if test "x$ac_old_val" != "x$ac_new_val"; then
2769 # differences in whitespace do not lead to failure.
2770 ac_old_val_w=`echo x $ac_old_val`
2771 ac_new_val_w=`echo x $ac_new_val`
2772 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775 ac_cache_corrupted=:
2776 else
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779 eval $ac_var=\$ac_old_val
2780 fi
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2782printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2784printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2785 fi;;
2786 esac
2787 # Pass precious variables to config.status.
2788 if test "$ac_new_set" = set; then
2789 case $ac_new_val in
2790 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791 *) ac_arg=$ac_var=$ac_new_val ;;
2792 esac
2793 case " $ac_configure_args " in
2794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2795 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2796 esac
2797 fi
2798done
2799if $ac_cache_corrupted; then
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2804 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2805 and start over" "$LINENO" 5
2806fi
2807## -------------------- ##
2808## Main body of script. ##
2809## -------------------- ##
2810
2811ac_ext=c
2812ac_cpp='$CPP $CPPFLAGS'
2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817
2818
2819am__api_version='1.16'
2820
2821
2822
2823 # Find a good install program. We prefer a C program (faster),
2824# so one script is as good as another. But avoid the broken or
2825# incompatible versions:
2826# SysV /etc/install, /usr/sbin/install
2827# SunOS /usr/etc/install
2828# IRIX /sbin/install
2829# AIX /bin/install
2830# AmigaOS /C/install, which installs bootblocks on floppy discs
2831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834# OS/2's system install, which has a completely different semantic
2835# ./install, which can be erroneously created by make from ./install.sh.
2836# Reject install programs that cannot install multiple files.
2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2838printf %s "checking for a BSD-compatible install... " >&6; }
2839if test -z "$INSTALL"; then
2840if test ${ac_cv_path_install+y}
2841then :
2842 printf %s "(cached) " >&6
2843else $as_nop
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 case $as_dir in #(((
2849 '') as_dir=./ ;;
2850 */) ;;
2851 *) as_dir=$as_dir/ ;;
2852 esac
2853 # Account for fact that we put trailing slashes in our PATH walk.
2854case $as_dir in #((
2855 ./ | /[cC]/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2858 /usr/ucb/* ) ;;
2859 *)
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2862 # by default.
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2869 :
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2873 :
2874 else
2875 rm -rf conftest.one conftest.two conftest.dir
2876 echo one > conftest.one
2877 echo two > conftest.two
2878 mkdir conftest.dir
2879 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2880 test -s conftest.one && test -s conftest.two &&
2881 test -s conftest.dir/conftest.one &&
2882 test -s conftest.dir/conftest.two
2883 then
2884 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2885 break 3
2886 fi
2887 fi
2888 fi
2889 done
2890 done
2891 ;;
2892esac
2893
2894 done
2895IFS=$as_save_IFS
2896
2897rm -rf conftest.one conftest.two conftest.dir
2898
2899fi
2900 if test ${ac_cv_path_install+y}; then
2901 INSTALL=$ac_cv_path_install
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for INSTALL within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 INSTALL=$ac_install_sh
2908 fi
2909fi
2910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2911printf "%s\n" "$INSTALL" >&6; }
2912
2913# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2914# It thinks the first close brace ends the variable substitution.
2915test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2916
2917test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2918
2919test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2920
2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2922printf %s "checking whether build environment is sane... " >&6; }
2923# Reject unsafe characters in $srcdir or the absolute working directory
2924# name. Accept space and tab only in the latter.
2925am_lf='
2926'
2927case `pwd` in
2928 *[\\\"\#\$\&\'\`$am_lf]*)
2929 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2930esac
2931case $srcdir in
2932 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2933 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2934esac
2935
2936# Do 'set' in a subshell so we don't clobber the current shell's
2937# arguments. Must try -L first in case configure is actually a
2938# symlink; some systems play weird games with the mod time of symlinks
2939# (eg FreeBSD returns the mod time of the symlink's containing
2940# directory).
2941if (
2942 am_has_slept=no
2943 for am_try in 1 2; do
2944 echo "timestamp, slept: $am_has_slept" > conftest.file
2945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2946 if test "$*" = "X"; then
2947 # -L didn't work.
2948 set X `ls -t "$srcdir/configure" conftest.file`
2949 fi
2950 if test "$*" != "X $srcdir/configure conftest.file" \
2951 && test "$*" != "X conftest.file $srcdir/configure"; then
2952
2953 # If neither matched, then we have a broken ls. This can happen
2954 # if, for instance, CONFIG_SHELL is bash and it inherits a
2955 # broken ls alias from the environment. This has actually
2956 # happened. Such a system could not be considered "sane".
2957 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2958 alias in your environment" "$LINENO" 5
2959 fi
2960 if test "$2" = conftest.file || test $am_try -eq 2; then
2961 break
2962 fi
2963 # Just in case.
2964 sleep 1
2965 am_has_slept=yes
2966 done
2967 test "$2" = conftest.file
2968 )
2969then
2970 # Ok.
2971 :
2972else
2973 as_fn_error $? "newly created file is older than distributed files!
2974Check your system clock" "$LINENO" 5
2975fi
2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977printf "%s\n" "yes" >&6; }
2978# If we didn't sleep, we still need to ensure time stamps of config.status and
2979# generated files are strictly newer.
2980am_sleep_pid=
2981if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2982 ( sleep 1 ) &
2983 am_sleep_pid=$!
2984fi
2985
2986rm -f conftest.file
2987
2988test "$program_prefix" != NONE &&
2989 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2990# Use a double $ so make ignores it.
2991test "$program_suffix" != NONE &&
2992 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2993# Double any \ or $.
2994# By default was `s,x,x', remove it if useless.
2995ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2996program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2997
2998
2999# Expand $ac_aux_dir to an absolute path.
3000am_aux_dir=`cd "$ac_aux_dir" && pwd`
3001
3002
3003 if test x"${MISSING+set}" != xset; then
3004 MISSING="\${SHELL} '$am_aux_dir/missing'"
3005fi
3006# Use eval to expand $SHELL
3007if eval "$MISSING --is-lightweight"; then
3008 am_missing_run="$MISSING "
3009else
3010 am_missing_run=
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3012printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3013fi
3014
3015if test x"${install_sh+set}" != xset; then
3016 case $am_aux_dir in
3017 *\ * | *\ *)
3018 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3019 *)
3020 install_sh="\${SHELL} $am_aux_dir/install-sh"
3021 esac
3022fi
3023
3024# Installed binaries are usually stripped using 'strip' when the user
3025# run "make install-strip". However 'strip' might not be the right
3026# tool to use in cross-compilation environments, therefore Automake
3027# will honor the 'STRIP' environment variable to overrule this program.
3028if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}strip; ac_word=$2
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033printf %s "checking for $ac_word... " >&6; }
3034if test ${ac_cv_prog_STRIP+y}
3035then :
3036 printf %s "(cached) " >&6
3037else $as_nop
3038 if test -n "$STRIP"; then
3039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044 IFS=$as_save_IFS
3045 case $as_dir in #(((
3046 '') as_dir=./ ;;
3047 */) ;;
3048 *) as_dir=$as_dir/ ;;
3049 esac
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056done
3057 done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062STRIP=$ac_cv_prog_STRIP
3063if test -n "$STRIP"; then
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065printf "%s\n" "$STRIP" >&6; }
3066else
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068printf "%s\n" "no" >&6; }
3069fi
3070
3071
3072fi
3073if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076set dummy strip; ac_word=$2
3077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078printf %s "checking for $ac_word... " >&6; }
3079if test ${ac_cv_prog_ac_ct_STRIP+y}
3080then :
3081 printf %s "(cached) " >&6
3082else $as_nop
3083 if test -n "$ac_ct_STRIP"; then
3084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 case $as_dir in #(((
3091 '') as_dir=./ ;;
3092 */) ;;
3093 *) as_dir=$as_dir/ ;;
3094 esac
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP="strip"
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102 done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108if test -n "$ac_ct_STRIP"; then
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110printf "%s\n" "$ac_ct_STRIP" >&6; }
3111else
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113printf "%s\n" "no" >&6; }
3114fi
3115
3116 if test "x$ac_ct_STRIP" = x; then
3117 STRIP=":"
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120yes:)
3121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123ac_tool_warned=yes ;;
3124esac
3125 STRIP=$ac_ct_STRIP
3126 fi
3127else
3128 STRIP="$ac_cv_prog_STRIP"
3129fi
3130
3131fi
3132INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3133
3134
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3136printf %s "checking for a race-free mkdir -p... " >&6; }
3137if test -z "$MKDIR_P"; then
3138 if test ${ac_cv_path_mkdir+y}
3139then :
3140 printf %s "(cached) " >&6
3141else $as_nop
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3144do
3145 IFS=$as_save_IFS
3146 case $as_dir in #(((
3147 '') as_dir=./ ;;
3148 */) ;;
3149 *) as_dir=$as_dir/ ;;
3150 esac
3151 for ac_prog in mkdir gmkdir; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3154 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3155 'mkdir ('*'coreutils) '* | \
3156 'BusyBox '* | \
3157 'mkdir (fileutils) '4.1*)
3158 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3159 break 3;;
3160 esac
3161 done
3162 done
3163 done
3164IFS=$as_save_IFS
3165
3166fi
3167
3168 test -d ./--version && rmdir ./--version
3169 if test ${ac_cv_path_mkdir+y}; then
3170 MKDIR_P="$ac_cv_path_mkdir -p"
3171 else
3172 # As a last resort, use the slow shell script. Don't cache a
3173 # value for MKDIR_P within a source directory, because that will
3174 # break other packages using the cache if that directory is
3175 # removed, or if the value is a relative name.
3176 MKDIR_P="$ac_install_sh -d"
3177 fi
3178fi
3179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3180printf "%s\n" "$MKDIR_P" >&6; }
3181
3182for ac_prog in gawk mawk nawk awk
3183do
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185set dummy $ac_prog; ac_word=$2
3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187printf %s "checking for $ac_word... " >&6; }
3188if test ${ac_cv_prog_AWK+y}
3189then :
3190 printf %s "(cached) " >&6
3191else $as_nop
3192 if test -n "$AWK"; then
3193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198 IFS=$as_save_IFS
3199 case $as_dir in #(((
3200 '') as_dir=./ ;;
3201 */) ;;
3202 *) as_dir=$as_dir/ ;;
3203 esac
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210done
3211 done
3212IFS=$as_save_IFS
3213
3214fi
3215fi
3216AWK=$ac_cv_prog_AWK
3217if test -n "$AWK"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219printf "%s\n" "$AWK" >&6; }
3220else
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222printf "%s\n" "no" >&6; }
3223fi
3224
3225
3226 test -n "$AWK" && break
3227done
3228
3229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231set x ${MAKE-make}
3232ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3234then :
3235 printf %s "(cached) " >&6
3236else $as_nop
3237 cat >conftest.make <<\_ACEOF
3238SHELL = /bin/sh
3239all:
3240 @echo '@@@%%%=$(MAKE)=@@@%%%'
3241_ACEOF
3242# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3243case `${MAKE-make} -f conftest.make 2>/dev/null` in
3244 *@@@%%%=?*=@@@%%%*)
3245 eval ac_cv_prog_make_${ac_make}_set=yes;;
3246 *)
3247 eval ac_cv_prog_make_${ac_make}_set=no;;
3248esac
3249rm -f conftest.make
3250fi
3251if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253printf "%s\n" "yes" >&6; }
3254 SET_MAKE=
3255else
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257printf "%s\n" "no" >&6; }
3258 SET_MAKE="MAKE=${MAKE-make}"
3259fi
3260
3261rm -rf .tst 2>/dev/null
3262mkdir .tst 2>/dev/null
3263if test -d .tst; then
3264 am__leading_dot=.
3265else
3266 am__leading_dot=_
3267fi
3268rmdir .tst 2>/dev/null
3269
3270# Check whether --enable-silent-rules was given.
3271if test ${enable_silent_rules+y}
3272then :
3273 enableval=$enable_silent_rules;
3274fi
3275
3276case $enable_silent_rules in # (((
3277 yes) AM_DEFAULT_VERBOSITY=0;;
3278 no) AM_DEFAULT_VERBOSITY=1;;
3279 *) AM_DEFAULT_VERBOSITY=1;;
3280esac
3281am_make=${MAKE-make}
3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3283printf %s "checking whether $am_make supports nested variables... " >&6; }
3284if test ${am_cv_make_support_nested_variables+y}
3285then :
3286 printf %s "(cached) " >&6
3287else $as_nop
3288 if printf "%s\n" 'TRUE=$(BAR$(V))
3289BAR0=false
3290BAR1=true
3291V=1
3292am__doit:
3293 @$(TRUE)
3294.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3295 am_cv_make_support_nested_variables=yes
3296else
3297 am_cv_make_support_nested_variables=no
3298fi
3299fi
3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3301printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3302if test $am_cv_make_support_nested_variables = yes; then
3303 AM_V='$(V)'
3304 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3305else
3306 AM_V=$AM_DEFAULT_VERBOSITY
3307 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3308fi
3309AM_BACKSLASH='\'
3310
3311if test "`cd $srcdir && pwd`" != "`pwd`"; then
3312 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3313 # is not polluted with repeated "-I."
3314 am__isrc=' -I$(srcdir)'
3315 # test to see if srcdir already configured
3316 if test -f $srcdir/config.status; then
3317 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3318 fi
3319fi
3320
3321# test whether we have cygpath
3322if test -z "$CYGPATH_W"; then
3323 if (cygpath --version) >/dev/null 2>/dev/null; then
3324 CYGPATH_W='cygpath -w'
3325 else
3326 CYGPATH_W=echo
3327 fi
3328fi
3329
3330
3331# Define the identity of the package.
3332 PACKAGE='pcre2'
3333 VERSION='10.38'
3334
3335
3336printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3337
3338
3339printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3340
3341# Some tools Automake needs.
3342
3343ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3344
3345
3346AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3347
3348
3349AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3350
3351
3352AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3353
3354
3355MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3356
3357# For better backward compatibility. To be removed once Automake 1.9.x
3358# dies out for good. For more background, see:
3359# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3360# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3361mkdir_p='$(MKDIR_P)'
3362
3363# We need awk for the "check" target (and possibly the TAP driver). The
3364# system "awk" is bad on some platforms.
3365# Always define AMTAR for backward compatibility. Yes, it's still used
3366# in the wild :-( We should find a proper way to deprecate it ...
3367AMTAR='$${TAR-tar}'
3368
3369
3370# We'll loop over all known methods to create a tar archive until one works.
3371_am_tools='gnutar pax cpio none'
3372
3373am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3374
3375
3376
3377
3378
3379# Variables for tags utilities; see am/tags.am
3380if test -z "$CTAGS"; then
3381 CTAGS=ctags
3382fi
3383
3384if test -z "$ETAGS"; then
3385 ETAGS=etags
3386fi
3387
3388if test -z "$CSCOPE"; then
3389 CSCOPE=cscope
3390fi
3391
3392
3393
3394# POSIX will say in a future version that running "rm -f" with no argument
3395# is OK; and we want to be able to make that assumption in our Makefile
3396# recipes. So use an aggressive probe to check that the usage we want is
3397# actually supported "in the wild" to an acceptable degree.
3398# See automake bug#10828.
3399# To make any issue more visible, cause the running configure to be aborted
3400# by default if the 'rm' program in use doesn't match our expectations; the
3401# user can still override this though.
3402if rm -f && rm -fr && rm -rf; then : OK; else
3403 cat >&2 <<'END'
3404Oops!
3405
3406Your 'rm' program seems unable to run without file operands specified
3407on the command line, even when the '-f' option is present. This is contrary
3408to the behaviour of most rm programs out there, and not conforming with
3409the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3410
3411Please tell bug-automake@gnu.org about your system, including the value
3412of your $PATH and any error possibly output before this message. This
3413can help us improve future automake versions.
3414
3415END
3416 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3417 echo 'Configuration will proceed anyway, since you have set the' >&2
3418 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3419 echo >&2
3420 else
3421 cat >&2 <<'END'
3422Aborting the configuration process, to ensure you take notice of the issue.
3423
3424You can download and install GNU coreutils to get an 'rm' implementation
3425that behaves properly: <https://www.gnu.org/software/coreutils/>.
3426
3427If you want to complete the configuration process using your problematic
3428'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3429to "yes", and re-run configure.
3430
3431END
3432 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3433 fi
3434fi
3435
3436# Check whether --enable-silent-rules was given.
3437if test ${enable_silent_rules+y}
3438then :
3439 enableval=$enable_silent_rules;
3440fi
3441
3442case $enable_silent_rules in # (((
3443 yes) AM_DEFAULT_VERBOSITY=0;;
3444 no) AM_DEFAULT_VERBOSITY=1;;
3445 *) AM_DEFAULT_VERBOSITY=0;;
3446esac
3447am_make=${MAKE-make}
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3449printf %s "checking whether $am_make supports nested variables... " >&6; }
3450if test ${am_cv_make_support_nested_variables+y}
3451then :
3452 printf %s "(cached) " >&6
3453else $as_nop
3454 if printf "%s\n" 'TRUE=$(BAR$(V))
3455BAR0=false
3456BAR1=true
3457V=1
3458am__doit:
3459 @$(TRUE)
3460.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3461 am_cv_make_support_nested_variables=yes
3462else
3463 am_cv_make_support_nested_variables=no
3464fi
3465fi
3466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3467printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3468if test $am_cv_make_support_nested_variables = yes; then
3469 AM_V='$(V)'
3470 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3471else
3472 AM_V=$AM_DEFAULT_VERBOSITY
3473 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3474fi
3475AM_BACKSLASH='\'
3476
3477ac_config_headers="$ac_config_headers src/config.h"
3478
3479
3480# This was added at the suggestion of libtoolize (03-Jan-10)
3481
3482
3483# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
3484# other compiler. There doesn't seem to be a standard way of getting rid of the
3485# -g (which I don't think is needed for a production library). This fudge seems
3486# to achieve the necessary. First, we remember the externally set values of
3487# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
3488# not set, it will be set to Autoconf's defaults. Afterwards, if the original
3489# values were not set, remove the -g from the Autoconf defaults.
3490
3491remember_set_CFLAGS="$CFLAGS"
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511printf %s "checking for $ac_word... " >&6; }
3512if test ${ac_cv_prog_CC+y}
3513then :
3514 printf %s "(cached) " >&6
3515else $as_nop
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518else
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 case $as_dir in #(((
3524 '') as_dir=./ ;;
3525 */) ;;
3526 *) as_dir=$as_dir/ ;;
3527 esac
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535 done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540CC=$ac_cv_prog_CC
3541if test -n "$CC"; then
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543printf "%s\n" "$CC" >&6; }
3544else
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546printf "%s\n" "no" >&6; }
3547fi
3548
3549
3550fi
3551if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "gcc", so it can be a program name with args.
3554set dummy gcc; ac_word=$2
3555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556printf %s "checking for $ac_word... " >&6; }
3557if test ${ac_cv_prog_ac_ct_CC+y}
3558then :
3559 printf %s "(cached) " >&6
3560else $as_nop
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 case $as_dir in #(((
3569 '') as_dir=./ ;;
3570 */) ;;
3571 *) as_dir=$as_dir/ ;;
3572 esac
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579done
3580 done
3581IFS=$as_save_IFS
3582
3583fi
3584fi
3585ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586if test -n "$ac_ct_CC"; then
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588printf "%s\n" "$ac_ct_CC" >&6; }
3589else
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591printf "%s\n" "no" >&6; }
3592fi
3593
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598yes:)
3599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601ac_tool_warned=yes ;;
3602esac
3603 CC=$ac_ct_CC
3604 fi
3605else
3606 CC="$ac_cv_prog_CC"
3607fi
3608
3609if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612set dummy ${ac_tool_prefix}cc; ac_word=$2
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614printf %s "checking for $ac_word... " >&6; }
3615if test ${ac_cv_prog_CC+y}
3616then :
3617 printf %s "(cached) " >&6
3618else $as_nop
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625 IFS=$as_save_IFS
3626 case $as_dir in #(((
3627 '') as_dir=./ ;;
3628 */) ;;
3629 *) as_dir=$as_dir/ ;;
3630 esac
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637done
3638 done
3639IFS=$as_save_IFS
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646printf "%s\n" "$CC" >&6; }
3647else
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649printf "%s\n" "no" >&6; }
3650fi
3651
3652
3653 fi
3654fi
3655if test -z "$CC"; then
3656 # Extract the first word of "cc", so it can be a program name with args.
3657set dummy cc; ac_word=$2
3658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659printf %s "checking for $ac_word... " >&6; }
3660if test ${ac_cv_prog_CC+y}
3661then :
3662 printf %s "(cached) " >&6
3663else $as_nop
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667 ac_prog_rejected=no
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 case $as_dir in #(((
3673 '') as_dir=./ ;;
3674 */) ;;
3675 *) as_dir=$as_dir/ ;;
3676 esac
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected=yes
3681 continue
3682 fi
3683 ac_cv_prog_CC="cc"
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687done
3688 done
3689IFS=$as_save_IFS
3690
3691if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy $ac_cv_prog_CC
3694 shift
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3699 shift
3700 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3701 fi
3702fi
3703fi
3704fi
3705CC=$ac_cv_prog_CC
3706if test -n "$CC"; then
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708printf "%s\n" "$CC" >&6; }
3709else
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711printf "%s\n" "no" >&6; }
3712fi
3713
3714
3715fi
3716if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog in cl.exe
3719 do
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723printf %s "checking for $ac_word... " >&6; }
3724if test ${ac_cv_prog_CC+y}
3725then :
3726 printf %s "(cached) " >&6
3727else $as_nop
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730else
3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734 IFS=$as_save_IFS
3735 case $as_dir in #(((
3736 '') as_dir=./ ;;
3737 */) ;;
3738 *) as_dir=$as_dir/ ;;
3739 esac
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747 done
3748IFS=$as_save_IFS
3749
3750fi
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755printf "%s\n" "$CC" >&6; }
3756else
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758printf "%s\n" "no" >&6; }
3759fi
3760
3761
3762 test -n "$CC" && break
3763 done
3764fi
3765if test -z "$CC"; then
3766 ac_ct_CC=$CC
3767 for ac_prog in cl.exe
3768do
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770set dummy $ac_prog; ac_word=$2
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772printf %s "checking for $ac_word... " >&6; }
3773if test ${ac_cv_prog_ac_ct_CC+y}
3774then :
3775 printf %s "(cached) " >&6
3776else $as_nop
3777 if test -n "$ac_ct_CC"; then
3778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 case $as_dir in #(((
3785 '') as_dir=./ ;;
3786 */) ;;
3787 *) as_dir=$as_dir/ ;;
3788 esac
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CC="$ac_prog"
3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796 done
3797IFS=$as_save_IFS
3798
3799fi
3800fi
3801ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802if test -n "$ac_ct_CC"; then
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804printf "%s\n" "$ac_ct_CC" >&6; }
3805else
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807printf "%s\n" "no" >&6; }
3808fi
3809
3810
3811 test -n "$ac_ct_CC" && break
3812done
3813
3814 if test "x$ac_ct_CC" = x; then
3815 CC=""
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818yes:)
3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821ac_tool_warned=yes ;;
3822esac
3823 CC=$ac_ct_CC
3824 fi
3825fi
3826
3827fi
3828if test -z "$CC"; then
3829 if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3831set dummy ${ac_tool_prefix}clang; ac_word=$2
3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833printf %s "checking for $ac_word... " >&6; }
3834if test ${ac_cv_prog_CC+y}
3835then :
3836 printf %s "(cached) " >&6
3837else $as_nop
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 case $as_dir in #(((
3846 '') as_dir=./ ;;
3847 */) ;;
3848 *) as_dir=$as_dir/ ;;
3849 esac
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_CC="${ac_tool_prefix}clang"
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856done
3857 done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862CC=$ac_cv_prog_CC
3863if test -n "$CC"; then
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865printf "%s\n" "$CC" >&6; }
3866else
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868printf "%s\n" "no" >&6; }
3869fi
3870
3871
3872fi
3873if test -z "$ac_cv_prog_CC"; then
3874 ac_ct_CC=$CC
3875 # Extract the first word of "clang", so it can be a program name with args.
3876set dummy clang; ac_word=$2
3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878printf %s "checking for $ac_word... " >&6; }
3879if test ${ac_cv_prog_ac_ct_CC+y}
3880then :
3881 printf %s "(cached) " >&6
3882else $as_nop
3883 if test -n "$ac_ct_CC"; then
3884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_CC="clang"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902 done
3903IFS=$as_save_IFS
3904
3905fi
3906fi
3907ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908if test -n "$ac_ct_CC"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910printf "%s\n" "$ac_ct_CC" >&6; }
3911else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913printf "%s\n" "no" >&6; }
3914fi
3915
3916 if test "x$ac_ct_CC" = x; then
3917 CC=""
3918 else
3919 case $cross_compiling:$ac_tool_warned in
3920yes:)
3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3923ac_tool_warned=yes ;;
3924esac
3925 CC=$ac_ct_CC
3926 fi
3927else
3928 CC="$ac_cv_prog_CC"
3929fi
3930
3931fi
3932
3933
3934test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3936as_fn_error $? "no acceptable C compiler found in \$PATH
3937See \`config.log' for more details" "$LINENO" 5; }
3938
3939# Provide some information about the compiler.
3940printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3941set X $ac_compile
3942ac_compiler=$2
3943for ac_option in --version -v -V -qversion -version; do
3944 { { ac_try="$ac_compiler $ac_option >&5"
3945case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948esac
3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950printf "%s\n" "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3952 ac_status=$?
3953 if test -s conftest.err; then
3954 sed '10a\
3955... rest of stderr output deleted ...
3956 10q' conftest.err >conftest.er1
3957 cat conftest.er1 >&5
3958 fi
3959 rm -f conftest.er1 conftest.err
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962done
3963
3964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966
3967int
3968main (void)
3969{
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975ac_clean_files_save=$ac_clean_files
3976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977# Try to create an executable without -o first, disregard a.out.
3978# It will help us diagnose broken compilers, and finding out an intuition
3979# of exeext.
3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981printf %s "checking whether the C compiler works... " >&6; }
3982ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3983
3984# The possible output files:
3985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3986
3987ac_rmfiles=
3988for ac_file in $ac_files
3989do
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3993 esac
3994done
3995rm -f $ac_rmfiles
3996
3997if { { ac_try="$ac_link_default"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003printf "%s\n" "$ac_try_echo"; } >&5
4004 (eval "$ac_link_default") 2>&5
4005 ac_status=$?
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008then :
4009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4010# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4011# in a Makefile. We should not override ac_cv_exeext if it was cached,
4012# so that the user can short-circuit this test for compilers unknown to
4013# Autoconf.
4014for ac_file in $ac_files ''
4015do
4016 test -f "$ac_file" || continue
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4019 ;;
4020 [ab].out )
4021 # We found the default executable, but exeext='' is most
4022 # certainly right.
4023 break;;
4024 *.* )
4025 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4026 then :; else
4027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4028 fi
4029 # We set ac_cv_exeext here because the later test for it is not
4030 # safe: cross compilers may not add the suffix if given an `-o'
4031 # argument, so we may need to know it at that point already.
4032 # Even if this section looks crufty: it has the advantage of
4033 # actually working.
4034 break;;
4035 * )
4036 break;;
4037 esac
4038done
4039test "$ac_cv_exeext" = no && ac_cv_exeext=
4040
4041else $as_nop
4042 ac_file=''
4043fi
4044if test -z "$ac_file"
4045then :
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047printf "%s\n" "no" >&6; }
4048printf "%s\n" "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4053as_fn_error 77 "C compiler cannot create executables
4054See \`config.log' for more details" "$LINENO" 5; }
4055else $as_nop
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057printf "%s\n" "yes" >&6; }
4058fi
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4060printf %s "checking for C compiler default output file name... " >&6; }
4061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4062printf "%s\n" "$ac_file" >&6; }
4063ac_exeext=$ac_cv_exeext
4064
4065rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4066ac_clean_files=$ac_clean_files_save
4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4068printf %s "checking for suffix of executables... " >&6; }
4069if { { ac_try="$ac_link"
4070case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075printf "%s\n" "$ac_try_echo"; } >&5
4076 (eval "$ac_link") 2>&5
4077 ac_status=$?
4078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }
4080then :
4081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4082# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4083# work properly (i.e., refer to `conftest.exe'), while it won't with
4084# `rm'.
4085for ac_file in conftest.exe conftest conftest.*; do
4086 test -f "$ac_file" || continue
4087 case $ac_file in
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4090 break;;
4091 * ) break;;
4092 esac
4093done
4094else $as_nop
4095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4096printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4097as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4098See \`config.log' for more details" "$LINENO" 5; }
4099fi
4100rm -f conftest conftest$ac_cv_exeext
4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4102printf "%s\n" "$ac_cv_exeext" >&6; }
4103
4104rm -f conftest.$ac_ext
4105EXEEXT=$ac_cv_exeext
4106ac_exeext=$EXEEXT
4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h. */
4109#include <stdio.h>
4110int
4111main (void)
4112{
4113FILE *f = fopen ("conftest.out", "w");
4114 return ferror (f) || fclose (f) != 0;
4115
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120ac_clean_files="$ac_clean_files conftest.out"
4121# Check that the compiler produces executables we can run. If not, either
4122# the compiler is broken, or we cross compile.
4123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4124printf %s "checking whether we are cross compiling... " >&6; }
4125if test "$cross_compiling" != yes; then
4126 { { ac_try="$ac_link"
4127case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132printf "%s\n" "$ac_try_echo"; } >&5
4133 (eval "$ac_link") 2>&5
4134 ac_status=$?
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137 if { ac_try='./conftest$ac_cv_exeext'
4138 { { case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143printf "%s\n" "$ac_try_echo"; } >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; }; then
4148 cross_compiling=no
4149 else
4150 if test "$cross_compiling" = maybe; then
4151 cross_compiling=yes
4152 else
4153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4155as_fn_error 77 "cannot run C compiled programs.
4156If you meant to cross compile, use \`--host'.
4157See \`config.log' for more details" "$LINENO" 5; }
4158 fi
4159 fi
4160fi
4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4162printf "%s\n" "$cross_compiling" >&6; }
4163
4164rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4165ac_clean_files=$ac_clean_files_save
4166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4167printf %s "checking for suffix of object files... " >&6; }
4168if test ${ac_cv_objext+y}
4169then :
4170 printf %s "(cached) " >&6
4171else $as_nop
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */
4174
4175int
4176main (void)
4177{
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.o conftest.obj
4184if { { ac_try="$ac_compile"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190printf "%s\n" "$ac_try_echo"; } >&5
4191 (eval "$ac_compile") 2>&5
4192 ac_status=$?
4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }
4195then :
4196 for ac_file in conftest.o conftest.obj conftest.*; do
4197 test -f "$ac_file" || continue;
4198 case $ac_file in
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4201 break;;
4202 esac
4203done
4204else $as_nop
4205 printf "%s\n" "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4209printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4210as_fn_error $? "cannot compute suffix of object files: cannot compile
4211See \`config.log' for more details" "$LINENO" 5; }
4212fi
4213rm -f conftest.$ac_cv_objext conftest.$ac_ext
4214fi
4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4216printf "%s\n" "$ac_cv_objext" >&6; }
4217OBJEXT=$ac_cv_objext
4218ac_objext=$OBJEXT
4219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4220printf %s "checking whether the compiler supports GNU C... " >&6; }
4221if test ${ac_cv_c_compiler_gnu+y}
4222then :
4223 printf %s "(cached) " >&6
4224else $as_nop
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h. */
4227
4228int
4229main (void)
4230{
4231#ifndef __GNUC__
4232 choke me
4233#endif
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_compile "$LINENO"
4240then :
4241 ac_compiler_gnu=yes
4242else $as_nop
4243 ac_compiler_gnu=no
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4246ac_cv_c_compiler_gnu=$ac_compiler_gnu
4247
4248fi
4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4250printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4251ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253if test $ac_compiler_gnu = yes; then
4254 GCC=yes
4255else
4256 GCC=
4257fi
4258ac_test_CFLAGS=${CFLAGS+y}
4259ac_save_CFLAGS=$CFLAGS
4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4261printf %s "checking whether $CC accepts -g... " >&6; }
4262if test ${ac_cv_prog_cc_g+y}
4263then :
4264 printf %s "(cached) " >&6
4265else $as_nop
4266 ac_save_c_werror_flag=$ac_c_werror_flag
4267 ac_c_werror_flag=yes
4268 ac_cv_prog_cc_g=no
4269 CFLAGS="-g"
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h. */
4272
4273int
4274main (void)
4275{
4276
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_compile "$LINENO"
4282then :
4283 ac_cv_prog_cc_g=yes
4284else $as_nop
4285 CFLAGS=""
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h. */
4288
4289int
4290main (void)
4291{
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297if ac_fn_c_try_compile "$LINENO"
4298then :
4299
4300else $as_nop
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305
4306int
4307main (void)
4308{
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"
4315then :
4316 ac_cv_prog_cc_g=yes
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4319fi
4320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4321fi
4322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4324fi
4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4326printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4327if test $ac_test_CFLAGS; then
4328 CFLAGS=$ac_save_CFLAGS
4329elif test $ac_cv_prog_cc_g = yes; then
4330 if test "$GCC" = yes; then
4331 CFLAGS="-g -O2"
4332 else
4333 CFLAGS="-g"
4334 fi
4335else
4336 if test "$GCC" = yes; then
4337 CFLAGS="-O2"
4338 else
4339 CFLAGS=
4340 fi
4341fi
4342ac_prog_cc_stdc=no
4343if test x$ac_prog_cc_stdc = xno
4344then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4346printf %s "checking for $CC option to enable C11 features... " >&6; }
4347if test ${ac_cv_prog_cc_c11+y}
4348then :
4349 printf %s "(cached) " >&6
4350else $as_nop
4351 ac_cv_prog_cc_c11=no
4352ac_save_CC=$CC
4353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h. */
4355$ac_c_conftest_c11_program
4356_ACEOF
4357for ac_arg in '' -std=gnu11
4358do
4359 CC="$ac_save_CC $ac_arg"
4360 if ac_fn_c_try_compile "$LINENO"
4361then :
4362 ac_cv_prog_cc_c11=$ac_arg
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.beam
4365 test "x$ac_cv_prog_cc_c11" != "xno" && break
4366done
4367rm -f conftest.$ac_ext
4368CC=$ac_save_CC
4369fi
4370
4371if test "x$ac_cv_prog_cc_c11" = xno
4372then :
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374printf "%s\n" "unsupported" >&6; }
4375else $as_nop
4376 if test "x$ac_cv_prog_cc_c11" = x
4377then :
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4379printf "%s\n" "none needed" >&6; }
4380else $as_nop
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4382printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4383 CC="$CC $ac_cv_prog_cc_c11"
4384fi
4385 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4386 ac_prog_cc_stdc=c11
4387fi
4388fi
4389if test x$ac_prog_cc_stdc = xno
4390then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4392printf %s "checking for $CC option to enable C99 features... " >&6; }
4393if test ${ac_cv_prog_cc_c99+y}
4394then :
4395 printf %s "(cached) " >&6
4396else $as_nop
4397 ac_cv_prog_cc_c99=no
4398ac_save_CC=$CC
4399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
4401$ac_c_conftest_c99_program
4402_ACEOF
4403for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4404do
4405 CC="$ac_save_CC $ac_arg"
4406 if ac_fn_c_try_compile "$LINENO"
4407then :
4408 ac_cv_prog_cc_c99=$ac_arg
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.beam
4411 test "x$ac_cv_prog_cc_c99" != "xno" && break
4412done
4413rm -f conftest.$ac_ext
4414CC=$ac_save_CC
4415fi
4416
4417if test "x$ac_cv_prog_cc_c99" = xno
4418then :
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420printf "%s\n" "unsupported" >&6; }
4421else $as_nop
4422 if test "x$ac_cv_prog_cc_c99" = x
4423then :
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4425printf "%s\n" "none needed" >&6; }
4426else $as_nop
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4428printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4429 CC="$CC $ac_cv_prog_cc_c99"
4430fi
4431 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4432 ac_prog_cc_stdc=c99
4433fi
4434fi
4435if test x$ac_prog_cc_stdc = xno
4436then :
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4438printf %s "checking for $CC option to enable C89 features... " >&6; }
4439if test ${ac_cv_prog_cc_c89+y}
4440then :
4441 printf %s "(cached) " >&6
4442else $as_nop
4443 ac_cv_prog_cc_c89=no
4444ac_save_CC=$CC
4445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h. */
4447$ac_c_conftest_c89_program
4448_ACEOF
4449for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4450do
4451 CC="$ac_save_CC $ac_arg"
4452 if ac_fn_c_try_compile "$LINENO"
4453then :
4454 ac_cv_prog_cc_c89=$ac_arg
4455fi
4456rm -f core conftest.err conftest.$ac_objext conftest.beam
4457 test "x$ac_cv_prog_cc_c89" != "xno" && break
4458done
4459rm -f conftest.$ac_ext
4460CC=$ac_save_CC
4461fi
4462
4463if test "x$ac_cv_prog_cc_c89" = xno
4464then :
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4466printf "%s\n" "unsupported" >&6; }
4467else $as_nop
4468 if test "x$ac_cv_prog_cc_c89" = x
4469then :
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471printf "%s\n" "none needed" >&6; }
4472else $as_nop
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4474printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4475 CC="$CC $ac_cv_prog_cc_c89"
4476fi
4477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4478 ac_prog_cc_stdc=c89
4479fi
4480fi
4481
4482ac_ext=c
4483ac_cpp='$CPP $CPPFLAGS'
4484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4495printf %s "checking whether $CC understands -c and -o together... " >&6; }
4496if test ${am_cv_prog_cc_c_o+y}
4497then :
4498 printf %s "(cached) " >&6
4499else $as_nop
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
4502
4503int
4504main (void)
4505{
4506
4507 ;
4508 return 0;
4509}
4510_ACEOF
4511 # Make sure it works both with $CC and with simple cc.
4512 # Following AC_PROG_CC_C_O, we do the test twice because some
4513 # compilers refuse to overwrite an existing .o file with -o,
4514 # though they will create one.
4515 am_cv_prog_cc_c_o=yes
4516 for am_i in 1 2; do
4517 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4518 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } \
4522 && test -f conftest2.$ac_objext; then
4523 : OK
4524 else
4525 am_cv_prog_cc_c_o=no
4526 break
4527 fi
4528 done
4529 rm -f core conftest*
4530 unset am_i
4531fi
4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4533printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4534if test "$am_cv_prog_cc_c_o" != yes; then
4535 # Losing compiler, so override with the script.
4536 # FIXME: It is wrong to rewrite CC.
4537 # But if we don't then we get into trouble of one sort or another.
4538 # A longer-term fix would be to have automake use am__CC in this case,
4539 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4540 CC="$am_aux_dir/compile $CC"
4541fi
4542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548DEPDIR="${am__leading_dot}deps"
4549
4550ac_config_commands="$ac_config_commands depfiles"
4551
4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4553printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4554cat > confinc.mk << 'END'
4555am__doit:
4556 @echo this is the am__doit target >confinc.out
4557.PHONY: am__doit
4558END
4559am__include="#"
4560am__quote=
4561# BSD make does it like this.
4562echo '.include "confinc.mk" # ignored' > confmf.BSD
4563# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4564echo 'include confinc.mk # ignored' > confmf.GNU
4565_am_result=no
4566for s in GNU BSD; do
4567 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4568 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }
4572 case $?:`cat confinc.out 2>/dev/null` in #(
4573 '0:this is the am__doit target') :
4574 case $s in #(
4575 BSD) :
4576 am__include='.include' am__quote='"' ;; #(
4577 *) :
4578 am__include='include' am__quote='' ;;
4579esac ;; #(
4580 *) :
4581 ;;
4582esac
4583 if test "$am__include" != "#"; then
4584 _am_result="yes ($s style)"
4585 break
4586 fi
4587done
4588rm -f confinc.* confmf.*
4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4590printf "%s\n" "${_am_result}" >&6; }
4591
4592# Check whether --enable-dependency-tracking was given.
4593if test ${enable_dependency_tracking+y}
4594then :
4595 enableval=$enable_dependency_tracking;
4596fi
4597
4598if test "x$enable_dependency_tracking" != xno; then
4599 am_depcomp="$ac_aux_dir/depcomp"
4600 AMDEPBACKSLASH='\'
4601 am__nodep='_no'
4602fi
4603 if test "x$enable_dependency_tracking" != xno; then
4604 AMDEP_TRUE=
4605 AMDEP_FALSE='#'
4606else
4607 AMDEP_TRUE='#'
4608 AMDEP_FALSE=
4609fi
4610
4611
4612
4613depcc="$CC" am_compiler_list=
4614
4615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4616printf %s "checking dependency style of $depcc... " >&6; }
4617if test ${am_cv_CC_dependencies_compiler_type+y}
4618then :
4619 printf %s "(cached) " >&6
4620else $as_nop
4621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4622 # We make a subdir and do the tests there. Otherwise we can end up
4623 # making bogus files that we don't know about and never remove. For
4624 # instance it was reported that on HP-UX the gcc test will end up
4625 # making a dummy file named 'D' -- because '-MD' means "put the output
4626 # in D".
4627 rm -rf conftest.dir
4628 mkdir conftest.dir
4629 # Copy depcomp to subdir because otherwise we won't find it if we're
4630 # using a relative directory.
4631 cp "$am_depcomp" conftest.dir
4632 cd conftest.dir
4633 # We will build objects and dependencies in a subdirectory because
4634 # it helps to detect inapplicable dependency modes. For instance
4635 # both Tru64's cc and ICC support -MD to output dependencies as a
4636 # side effect of compilation, but ICC will put the dependencies in
4637 # the current directory while Tru64 will put them in the object
4638 # directory.
4639 mkdir sub
4640
4641 am_cv_CC_dependencies_compiler_type=none
4642 if test "$am_compiler_list" = ""; then
4643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4644 fi
4645 am__universal=false
4646 case " $depcc " in #(
4647 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4648 esac
4649
4650 for depmode in $am_compiler_list; do
4651 # Setup a source with many dependencies, because some compilers
4652 # like to wrap large dependency lists on column 80 (with \), and
4653 # we should not choose a depcomp mode which is confused by this.
4654 #
4655 # We need to recreate these files for each test, as the compiler may
4656 # overwrite some of them when testing with obscure command lines.
4657 # This happens at least with the AIX C compiler.
4658 : > sub/conftest.c
4659 for i in 1 2 3 4 5 6; do
4660 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4661 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4662 # Solaris 10 /bin/sh.
4663 echo '/* dummy */' > sub/conftst$i.h
4664 done
4665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4666
4667 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4668 # mode. It turns out that the SunPro C++ compiler does not properly
4669 # handle '-M -o', and we need to detect this. Also, some Intel
4670 # versions had trouble with output in subdirs.
4671 am__obj=sub/conftest.${OBJEXT-o}
4672 am__minus_obj="-o $am__obj"
4673 case $depmode in
4674 gcc)
4675 # This depmode causes a compiler race in universal mode.
4676 test "$am__universal" = false || continue
4677 ;;
4678 nosideeffect)
4679 # After this tag, mechanisms are not by side-effect, so they'll
4680 # only be used when explicitly requested.
4681 if test "x$enable_dependency_tracking" = xyes; then
4682 continue
4683 else
4684 break
4685 fi
4686 ;;
4687 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4688 # This compiler won't grok '-c -o', but also, the minuso test has
4689 # not run yet. These depmodes are late enough in the game, and
4690 # so weak that their functioning should not be impacted.
4691 am__obj=conftest.${OBJEXT-o}
4692 am__minus_obj=
4693 ;;
4694 none) break ;;
4695 esac
4696 if depmode=$depmode \
4697 source=sub/conftest.c object=$am__obj \
4698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4699 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4700 >/dev/null 2>conftest.err &&
4701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4703 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4705 # icc doesn't choke on unknown options, it will just issue warnings
4706 # or remarks (even with -Werror). So we grep stderr for any message
4707 # that says an option was ignored or not supported.
4708 # When given -MP, icc 7.0 and 7.1 complain thusly:
4709 # icc: Command line warning: ignoring option '-M'; no argument required
4710 # The diagnosis changed in icc 8.0:
4711 # icc: Command line remark: option '-MP' not supported
4712 if (grep 'ignoring option' conftest.err ||
4713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4714 am_cv_CC_dependencies_compiler_type=$depmode
4715 break
4716 fi
4717 fi
4718 done
4719
4720 cd ..
4721 rm -rf conftest.dir
4722else
4723 am_cv_CC_dependencies_compiler_type=none
4724fi
4725
4726fi
4727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4728printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4729CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4730
4731 if
4732 test "x$enable_dependency_tracking" != xno \
4733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4734 am__fastdepCC_TRUE=
4735 am__fastdepCC_FALSE='#'
4736else
4737 am__fastdepCC_TRUE='#'
4738 am__fastdepCC_FALSE=
4739fi
4740
4741
4742
4743
4744ac_header= ac_cache=
4745for ac_item in $ac_header_c_list
4746do
4747 if test $ac_cache; then
4748 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4749 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4750 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4751 fi
4752 ac_header= ac_cache=
4753 elif test $ac_header; then
4754 ac_cache=$ac_item
4755 else
4756 ac_header=$ac_item
4757 fi
4758done
4759
4760
4761
4762
4763
4764
4765
4766
4767if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4768then :
4769
4770printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4771
4772fi
4773
4774
4775
4776
4777
4778
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4780printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4781if test ${ac_cv_safe_to_define___extensions__+y}
4782then :
4783 printf %s "(cached) " >&6
4784else $as_nop
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787
4788# define __EXTENSIONS__ 1
4789 $ac_includes_default
4790int
4791main (void)
4792{
4793
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"
4799then :
4800 ac_cv_safe_to_define___extensions__=yes
4801else $as_nop
4802 ac_cv_safe_to_define___extensions__=no
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4805fi
4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4807printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4808
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4810printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4811if test ${ac_cv_should_define__xopen_source+y}
4812then :
4813 printf %s "(cached) " >&6
4814else $as_nop
4815 ac_cv_should_define__xopen_source=no
4816 if test $ac_cv_header_wchar_h = yes
4817then :
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820
4821 #include <wchar.h>
4822 mbstate_t x;
4823int
4824main (void)
4825{
4826
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"
4832then :
4833
4834else $as_nop
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837
4838 #define _XOPEN_SOURCE 500
4839 #include <wchar.h>
4840 mbstate_t x;
4841int
4842main (void)
4843{
4844
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"
4850then :
4851 ac_cv_should_define__xopen_source=yes
4852fi
4853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4856fi
4857fi
4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4859printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4860
4861 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4862
4863 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4864
4865 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4866
4867 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4868
4869 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4870
4871 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4872
4873 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4874
4875 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4876
4877 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4878
4879 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4880
4881 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4882
4883 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4884
4885 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4886
4887 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4888
4889 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4890
4891 if test $ac_cv_header_minix_config_h = yes
4892then :
4893 MINIX=yes
4894 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4895
4896 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4897
4898 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4899
4900else $as_nop
4901 MINIX=
4902fi
4903 if test $ac_cv_safe_to_define___extensions__ = yes
4904then :
4905 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4906
4907fi
4908 if test $ac_cv_should_define__xopen_source = yes
4909then :
4910 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4911
4912fi
4913
4914
4915if test "x$remember_set_CFLAGS" = "x"
4916then
4917 if test "$CFLAGS" = "-g -O2"
4918 then
4919 CFLAGS="-O2"
4920 elif test "$CFLAGS" = "-g"
4921 then
4922 CFLAGS=""
4923 fi
4924fi
4925
4926# This is a new thing required to stop a warning from automake 1.12
4927
4928 if test -n "$ac_tool_prefix"; then
4929 for ac_prog in ar lib "link -lib"
4930 do
4931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934printf %s "checking for $ac_word... " >&6; }
4935if test ${ac_cv_prog_AR+y}
4936then :
4937 printf %s "(cached) " >&6
4938else $as_nop
4939 if test -n "$AR"; then
4940 ac_cv_prog_AR="$AR" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 case $as_dir in #(((
4947 '') as_dir=./ ;;
4948 */) ;;
4949 *) as_dir=$as_dir/ ;;
4950 esac
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957done
4958 done
4959IFS=$as_save_IFS
4960
4961fi
4962fi
4963AR=$ac_cv_prog_AR
4964if test -n "$AR"; then
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4966printf "%s\n" "$AR" >&6; }
4967else
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969printf "%s\n" "no" >&6; }
4970fi
4971
4972
4973 test -n "$AR" && break
4974 done
4975fi
4976if test -z "$AR"; then
4977 ac_ct_AR=$AR
4978 for ac_prog in ar lib "link -lib"
4979do
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981set dummy $ac_prog; ac_word=$2
4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983printf %s "checking for $ac_word... " >&6; }
4984if test ${ac_cv_prog_ac_ct_AR+y}
4985then :
4986 printf %s "(cached) " >&6
4987else $as_nop
4988 if test -n "$ac_ct_AR"; then
4989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 case $as_dir in #(((
4996 '') as_dir=./ ;;
4997 */) ;;
4998 *) as_dir=$as_dir/ ;;
4999 esac
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_ac_ct_AR="$ac_prog"
5003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007 done
5008IFS=$as_save_IFS
5009
5010fi
5011fi
5012ac_ct_AR=$ac_cv_prog_ac_ct_AR
5013if test -n "$ac_ct_AR"; then
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5015printf "%s\n" "$ac_ct_AR" >&6; }
5016else
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018printf "%s\n" "no" >&6; }
5019fi
5020
5021
5022 test -n "$ac_ct_AR" && break
5023done
5024
5025 if test "x$ac_ct_AR" = x; then
5026 AR="false"
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029yes:)
5030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034 AR=$ac_ct_AR
5035 fi
5036fi
5037
5038: ${AR=ar}
5039
5040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5041printf %s "checking the archiver ($AR) interface... " >&6; }
5042if test ${am_cv_ar_interface+y}
5043then :
5044 printf %s "(cached) " >&6
5045else $as_nop
5046 ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052 am_cv_ar_interface=ar
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h. */
5055int some_variable = 0;
5056_ACEOF
5057if ac_fn_c_try_compile "$LINENO"
5058then :
5059 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5061 (eval $am_ar_try) 2>&5
5062 ac_status=$?
5063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }
5065 if test "$ac_status" -eq 0; then
5066 am_cv_ar_interface=ar
5067 else
5068 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5070 (eval $am_ar_try) 2>&5
5071 ac_status=$?
5072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5073 test $ac_status = 0; }
5074 if test "$ac_status" -eq 0; then
5075 am_cv_ar_interface=lib
5076 else
5077 am_cv_ar_interface=unknown
5078 fi
5079 fi
5080 rm -f conftest.lib libconftest.a
5081
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090fi
5091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5092printf "%s\n" "$am_cv_ar_interface" >&6; }
5093
5094case $am_cv_ar_interface in
5095ar)
5096 ;;
5097lib)
5098 # Microsoft lib, so override with the ar-lib wrapper script.
5099 # FIXME: It is wrong to rewrite AR.
5100 # But if we don't then we get into trouble of one sort or another.
5101 # A longer-term fix would be to have automake use am__AR in this case,
5102 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5103 # similar.
5104 AR="$am_aux_dir/ar-lib $AR"
5105 ;;
5106unknown)
5107 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5108 ;;
5109esac
5110
5111
5112# Check for a 64-bit integer type
5113ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5114case $ac_cv_c_int64_t in #(
5115 no|yes) ;; #(
5116 *)
5117
5118printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5119;;
5120esac
5121
5122
5123
5124case `pwd` in
5125 *\ * | *\ *)
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5127printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5128esac
5129
5130
5131
5132macro_version='2.4.6.42-b88ce-dirty'
5133macro_revision='2.4.6.42'
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148ltmain=$ac_aux_dir/ltmain.sh
5149
5150
5151
5152 # Make sure we can run config.sub.
5153$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5154 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5155
5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5157printf %s "checking build system type... " >&6; }
5158if test ${ac_cv_build+y}
5159then :
5160 printf %s "(cached) " >&6
5161else $as_nop
5162 ac_build_alias=$build_alias
5163test "x$ac_build_alias" = x &&
5164 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5165test "x$ac_build_alias" = x &&
5166 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5167ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5168 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5169
5170fi
5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5172printf "%s\n" "$ac_cv_build" >&6; }
5173case $ac_cv_build in
5174*-*-*) ;;
5175*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5176esac
5177build=$ac_cv_build
5178ac_save_IFS=$IFS; IFS='-'
5179set x $ac_cv_build
5180shift
5181build_cpu=$1
5182build_vendor=$2
5183shift; shift
5184# Remember, the first character of IFS is used to create $*,
5185# except with old shells:
5186build_os=$*
5187IFS=$ac_save_IFS
5188case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5189
5190
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5192printf %s "checking host system type... " >&6; }
5193if test ${ac_cv_host+y}
5194then :
5195 printf %s "(cached) " >&6
5196else $as_nop
5197 if test "x$host_alias" = x; then
5198 ac_cv_host=$ac_cv_build
5199else
5200 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5201 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5202fi
5203
5204fi
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5206printf "%s\n" "$ac_cv_host" >&6; }
5207case $ac_cv_host in
5208*-*-*) ;;
5209*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5210esac
5211host=$ac_cv_host
5212ac_save_IFS=$IFS; IFS='-'
5213set x $ac_cv_host
5214shift
5215host_cpu=$1
5216host_vendor=$2
5217shift; shift
5218# Remember, the first character of IFS is used to create $*,
5219# except with old shells:
5220host_os=$*
5221IFS=$ac_save_IFS
5222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5223
5224
5225# Backslashify metacharacters that are still active within
5226# double-quoted strings.
5227sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5228
5229# Same as above, but do not quote variable references.
5230double_quote_subst='s/\(["`\\]\)/\\\1/g'
5231
5232# Sed substitution to delay expansion of an escaped shell variable in a
5233# double_quote_subst'ed string.
5234delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5235
5236# Sed substitution to delay expansion of an escaped single quote.
5237delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5238
5239# Sed substitution to avoid accidental globbing in evaled expressions
5240no_glob_subst='s/\*/\\\*/g'
5241
5242ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5243ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5244ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5245
5246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5247printf %s "checking how to print strings... " >&6; }
5248# Test print first, because it will be a builtin if present.
5249if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5250 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5251 ECHO='print -r --'
5252elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5253 ECHO='printf %s\n'
5254else
5255 # Use this function as a fallback that always works.
5256 func_fallback_echo ()
5257 {
5258 eval 'cat <<_LTECHO_EOF
5259$1
5260_LTECHO_EOF'
5261 }
5262 ECHO='func_fallback_echo'
5263fi
5264
5265# func_echo_all arg...
5266# Invoke $ECHO with all args, space-separated.
5267func_echo_all ()
5268{
5269 $ECHO ""
5270}
5271
5272case $ECHO in
5273 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5274printf "%s\n" "printf" >&6; } ;;
5275 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5276printf "%s\n" "print -r" >&6; } ;;
5277 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5278printf "%s\n" "cat" >&6; } ;;
5279esac
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5295printf %s "checking for a sed that does not truncate output... " >&6; }
5296if test ${ac_cv_path_SED+y}
5297then :
5298 printf %s "(cached) " >&6
5299else $as_nop
5300 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5301 for ac_i in 1 2 3 4 5 6 7; do
5302 ac_script="$ac_script$as_nl$ac_script"
5303 done
5304 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5305 { ac_script=; unset ac_script;}
5306 if test -z "$SED"; then
5307 ac_path_SED_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 case $as_dir in #(((
5314 '') as_dir=./ ;;
5315 */) ;;
5316 *) as_dir=$as_dir/ ;;
5317 esac
5318 for ac_prog in sed gsed
5319 do
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5322 as_fn_executable_p "$ac_path_SED" || continue
5323# Check for GNU ac_path_SED and select it if it is found.
5324 # Check for GNU $ac_path_SED
5325case `"$ac_path_SED" --version 2>&1` in
5326*GNU*)
5327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5328*)
5329 ac_count=0
5330 printf %s 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 printf "%s\n" '' >> "conftest.nl"
5337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_SED_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_SED="$ac_path_SED"
5343 ac_path_SED_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
5347 done
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
5350
5351 $ac_path_SED_found && break 3
5352 done
5353 done
5354 done
5355IFS=$as_save_IFS
5356 if test -z "$ac_cv_path_SED"; then
5357 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5358 fi
5359else
5360 ac_cv_path_SED=$SED
5361fi
5362
5363fi
5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5365printf "%s\n" "$ac_cv_path_SED" >&6; }
5366 SED="$ac_cv_path_SED"
5367 rm -f conftest.sed
5368
5369test -z "$SED" && SED=sed
5370Xsed="$SED -e 1s/^X//"
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5383printf %s "checking for grep that handles long lines and -e... " >&6; }
5384if test ${ac_cv_path_GREP+y}
5385then :
5386 printf %s "(cached) " >&6
5387else $as_nop
5388 if test -z "$GREP"; then
5389 ac_path_GREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393do
5394 IFS=$as_save_IFS
5395 case $as_dir in #(((
5396 '') as_dir=./ ;;
5397 */) ;;
5398 *) as_dir=$as_dir/ ;;
5399 esac
5400 for ac_prog in grep ggrep
5401 do
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5404 as_fn_executable_p "$ac_path_GREP" || continue
5405# Check for GNU ac_path_GREP and select it if it is found.
5406 # Check for GNU $ac_path_GREP
5407case `"$ac_path_GREP" --version 2>&1` in
5408*GNU*)
5409 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5410*)
5411 ac_count=0
5412 printf %s 0123456789 >"conftest.in"
5413 while :
5414 do
5415 cat "conftest.in" "conftest.in" >"conftest.tmp"
5416 mv "conftest.tmp" "conftest.in"
5417 cp "conftest.in" "conftest.nl"
5418 printf "%s\n" 'GREP' >> "conftest.nl"
5419 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421 as_fn_arith $ac_count + 1 && ac_count=$as_val
5422 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5423 # Best one so far, save it but keep looking for a better one
5424 ac_cv_path_GREP="$ac_path_GREP"
5425 ac_path_GREP_max=$ac_count
5426 fi
5427 # 10*(2^10) chars as input seems more than enough
5428 test $ac_count -gt 10 && break
5429 done
5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431esac
5432
5433 $ac_path_GREP_found && break 3
5434 done
5435 done
5436 done
5437IFS=$as_save_IFS
5438 if test -z "$ac_cv_path_GREP"; then
5439 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440 fi
5441else
5442 ac_cv_path_GREP=$GREP
5443fi
5444
5445fi
5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5447printf "%s\n" "$ac_cv_path_GREP" >&6; }
5448 GREP="$ac_cv_path_GREP"
5449
5450
5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5452printf %s "checking for egrep... " >&6; }
5453if test ${ac_cv_path_EGREP+y}
5454then :
5455 printf %s "(cached) " >&6
5456else $as_nop
5457 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5458 then ac_cv_path_EGREP="$GREP -E"
5459 else
5460 if test -z "$EGREP"; then
5461 ac_path_EGREP_found=false
5462 # Loop through the user's path and test for each of PROGNAME-LIST
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5465do
5466 IFS=$as_save_IFS
5467 case $as_dir in #(((
5468 '') as_dir=./ ;;
5469 */) ;;
5470 *) as_dir=$as_dir/ ;;
5471 esac
5472 for ac_prog in egrep
5473 do
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5476 as_fn_executable_p "$ac_path_EGREP" || continue
5477# Check for GNU ac_path_EGREP and select it if it is found.
5478 # Check for GNU $ac_path_EGREP
5479case `"$ac_path_EGREP" --version 2>&1` in
5480*GNU*)
5481 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5482*)
5483 ac_count=0
5484 printf %s 0123456789 >"conftest.in"
5485 while :
5486 do
5487 cat "conftest.in" "conftest.in" >"conftest.tmp"
5488 mv "conftest.tmp" "conftest.in"
5489 cp "conftest.in" "conftest.nl"
5490 printf "%s\n" 'EGREP' >> "conftest.nl"
5491 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5493 as_fn_arith $ac_count + 1 && ac_count=$as_val
5494 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5495 # Best one so far, save it but keep looking for a better one
5496 ac_cv_path_EGREP="$ac_path_EGREP"
5497 ac_path_EGREP_max=$ac_count
5498 fi
5499 # 10*(2^10) chars as input seems more than enough
5500 test $ac_count -gt 10 && break
5501 done
5502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5503esac
5504
5505 $ac_path_EGREP_found && break 3
5506 done
5507 done
5508 done
5509IFS=$as_save_IFS
5510 if test -z "$ac_cv_path_EGREP"; then
5511 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 fi
5513else
5514 ac_cv_path_EGREP=$EGREP
5515fi
5516
5517 fi
5518fi
5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5520printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5521 EGREP="$ac_cv_path_EGREP"
5522
5523
5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5525printf %s "checking for fgrep... " >&6; }
5526if test ${ac_cv_path_FGREP+y}
5527then :
5528 printf %s "(cached) " >&6
5529else $as_nop
5530 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5531 then ac_cv_path_FGREP="$GREP -F"
5532 else
5533 if test -z "$FGREP"; then
5534 ac_path_FGREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5538do
5539 IFS=$as_save_IFS
5540 case $as_dir in #(((
5541 '') as_dir=./ ;;
5542 */) ;;
5543 *) as_dir=$as_dir/ ;;
5544 esac
5545 for ac_prog in fgrep
5546 do
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5549 as_fn_executable_p "$ac_path_FGREP" || continue
5550# Check for GNU ac_path_FGREP and select it if it is found.
5551 # Check for GNU $ac_path_FGREP
5552case `"$ac_path_FGREP" --version 2>&1` in
5553*GNU*)
5554 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5555*)
5556 ac_count=0
5557 printf %s 0123456789 >"conftest.in"
5558 while :
5559 do
5560 cat "conftest.in" "conftest.in" >"conftest.tmp"
5561 mv "conftest.tmp" "conftest.in"
5562 cp "conftest.in" "conftest.nl"
5563 printf "%s\n" 'FGREP' >> "conftest.nl"
5564 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566 as_fn_arith $ac_count + 1 && ac_count=$as_val
5567 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5568 # Best one so far, save it but keep looking for a better one
5569 ac_cv_path_FGREP="$ac_path_FGREP"
5570 ac_path_FGREP_max=$ac_count
5571 fi
5572 # 10*(2^10) chars as input seems more than enough
5573 test $ac_count -gt 10 && break
5574 done
5575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576esac
5577
5578 $ac_path_FGREP_found && break 3
5579 done
5580 done
5581 done
5582IFS=$as_save_IFS
5583 if test -z "$ac_cv_path_FGREP"; then
5584 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5585 fi
5586else
5587 ac_cv_path_FGREP=$FGREP
5588fi
5589
5590 fi
5591fi
5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5593printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5594 FGREP="$ac_cv_path_FGREP"
5595
5596
5597test -z "$GREP" && GREP=grep
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617# Check whether --with-gnu-ld was given.
5618if test ${with_gnu_ld+y}
5619then :
5620 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5621else $as_nop
5622 with_gnu_ld=no
5623fi
5624
5625ac_prog=ld
5626if test yes = "$GCC"; then
5627 # Check if gcc -print-prog-name=ld gives a path.
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5629printf %s "checking for ld used by $CC... " >&6; }
5630 case $host in
5631 *-*-mingw*)
5632 # gcc leaves a trailing carriage return, which upsets mingw
5633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5634 *)
5635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5636 esac
5637 case $ac_prog in
5638 # Accept absolute paths.
5639 [\\/]* | ?:[\\/]*)
5640 re_direlt='/[^/][^/]*/\.\./'
5641 # Canonicalize the pathname of ld
5642 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5643 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5644 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5645 done
5646 test -z "$LD" && LD=$ac_prog
5647 ;;
5648 "")
5649 # If it fails, then pretend we aren't using GCC.
5650 ac_prog=ld
5651 ;;
5652 *)
5653 # If it is relative, then search for the first ld in PATH.
5654 with_gnu_ld=unknown
5655 ;;
5656 esac
5657elif test yes = "$with_gnu_ld"; then
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5659printf %s "checking for GNU ld... " >&6; }
5660else
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5662printf %s "checking for non-GNU ld... " >&6; }
5663fi
5664if test ${lt_cv_path_LD+y}
5665then :
5666 printf %s "(cached) " >&6
5667else $as_nop
5668 if test -z "$LD"; then
5669 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5670 for ac_dir in $PATH; do
5671 IFS=$lt_save_ifs
5672 test -z "$ac_dir" && ac_dir=.
5673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5674 lt_cv_path_LD=$ac_dir/$ac_prog
5675 # Check to see if the program is GNU ld. I'd rather use --version,
5676 # but apparently some variants of GNU ld only accept -v.
5677 # Break only if it was the GNU/non-GNU ld that we prefer.
5678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5679 *GNU* | *'with BFD'*)
5680 test no != "$with_gnu_ld" && break
5681 ;;
5682 *)
5683 test yes != "$with_gnu_ld" && break
5684 ;;
5685 esac
5686 fi
5687 done
5688 IFS=$lt_save_ifs
5689else
5690 lt_cv_path_LD=$LD # Let the user override the test with a path.
5691fi
5692fi
5693
5694LD=$lt_cv_path_LD
5695if test -n "$LD"; then
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5697printf "%s\n" "$LD" >&6; }
5698else
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700printf "%s\n" "no" >&6; }
5701fi
5702test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5704printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5705if test ${lt_cv_prog_gnu_ld+y}
5706then :
5707 printf %s "(cached) " >&6
5708else $as_nop
5709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5710case `$LD -v 2>&1 </dev/null` in
5711*GNU* | *'with BFD'*)
5712 lt_cv_prog_gnu_ld=yes
5713 ;;
5714*)
5715 lt_cv_prog_gnu_ld=no
5716 ;;
5717esac
5718fi
5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5720printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5721with_gnu_ld=$lt_cv_prog_gnu_ld
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5732printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5733if test ${lt_cv_path_NM+y}
5734then :
5735 printf %s "(cached) " >&6
5736else $as_nop
5737 if test -n "$NM"; then
5738 # Let the user override the test.
5739 lt_cv_path_NM=$NM
5740else
5741 lt_nm_to_check=${ac_tool_prefix}nm
5742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5743 lt_nm_to_check="$lt_nm_to_check nm"
5744 fi
5745 for lt_tmp_nm in $lt_nm_to_check; do
5746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5748 IFS=$lt_save_ifs
5749 test -z "$ac_dir" && ac_dir=.
5750 tmp_nm=$ac_dir/$lt_tmp_nm
5751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5752 # Check to see if the nm accepts a BSD-compat flag.
5753 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5754 # nm: unknown option "B" ignored
5755 # Tru64's nm complains that /dev/null is an invalid object file
5756 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5757 case $build_os in
5758 mingw*) lt_bad_file=conftest.nm/nofile ;;
5759 *) lt_bad_file=/dev/null ;;
5760 esac
5761 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5762 *$lt_bad_file* | *'Invalid file or object type'*)
5763 lt_cv_path_NM="$tmp_nm -B"
5764 break 2
5765 ;;
5766 *)
5767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5768 */dev/null*)
5769 lt_cv_path_NM="$tmp_nm -p"
5770 break 2
5771 ;;
5772 *)
5773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5774 continue # so that we can try to find one that supports BSD flags
5775 ;;
5776 esac
5777 ;;
5778 esac
5779 fi
5780 done
5781 IFS=$lt_save_ifs
5782 done
5783 : ${lt_cv_path_NM=no}
5784fi
5785fi
5786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5787printf "%s\n" "$lt_cv_path_NM" >&6; }
5788if test no != "$lt_cv_path_NM"; then
5789 NM=$lt_cv_path_NM
5790else
5791 # Didn't find any BSD compatible name lister, look for dumpbin.
5792 if test -n "$DUMPBIN"; then :
5793 # Let the user override the test.
5794 else
5795 if test -n "$ac_tool_prefix"; then
5796 for ac_prog in dumpbin "link -dump"
5797 do
5798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801printf %s "checking for $ac_word... " >&6; }
5802if test ${ac_cv_prog_DUMPBIN+y}
5803then :
5804 printf %s "(cached) " >&6
5805else $as_nop
5806 if test -n "$DUMPBIN"; then
5807 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 case $as_dir in #(((
5814 '') as_dir=./ ;;
5815 */) ;;
5816 *) as_dir=$as_dir/ ;;
5817 esac
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824done
5825 done
5826IFS=$as_save_IFS
5827
5828fi
5829fi
5830DUMPBIN=$ac_cv_prog_DUMPBIN
5831if test -n "$DUMPBIN"; then
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5833printf "%s\n" "$DUMPBIN" >&6; }
5834else
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836printf "%s\n" "no" >&6; }
5837fi
5838
5839
5840 test -n "$DUMPBIN" && break
5841 done
5842fi
5843if test -z "$DUMPBIN"; then
5844 ac_ct_DUMPBIN=$DUMPBIN
5845 for ac_prog in dumpbin "link -dump"
5846do
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848set dummy $ac_prog; ac_word=$2
5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850printf %s "checking for $ac_word... " >&6; }
5851if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5852then :
5853 printf %s "(cached) " >&6
5854else $as_nop
5855 if test -n "$ac_ct_DUMPBIN"; then
5856 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 case $as_dir in #(((
5863 '') as_dir=./ ;;
5864 */) ;;
5865 *) as_dir=$as_dir/ ;;
5866 esac
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874 done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5880if test -n "$ac_ct_DUMPBIN"; then
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5882printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5883else
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885printf "%s\n" "no" >&6; }
5886fi
5887
5888
5889 test -n "$ac_ct_DUMPBIN" && break
5890done
5891
5892 if test "x$ac_ct_DUMPBIN" = x; then
5893 DUMPBIN=":"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896yes:)
5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899ac_tool_warned=yes ;;
5900esac
5901 DUMPBIN=$ac_ct_DUMPBIN
5902 fi
5903fi
5904
5905 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5906 *COFF*)
5907 DUMPBIN="$DUMPBIN -symbols -headers"
5908 ;;
5909 *)
5910 DUMPBIN=:
5911 ;;
5912 esac
5913 fi
5914
5915 if test : != "$DUMPBIN"; then
5916 NM=$DUMPBIN
5917 fi
5918fi
5919test -z "$NM" && NM=nm
5920
5921
5922
5923
5924
5925
5926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5927printf %s "checking the name lister ($NM) interface... " >&6; }
5928if test ${lt_cv_nm_interface+y}
5929then :
5930 printf %s "(cached) " >&6
5931else $as_nop
5932 lt_cv_nm_interface="BSD nm"
5933 echo "int some_variable = 0;" > conftest.$ac_ext
5934 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5935 (eval "$ac_compile" 2>conftest.err)
5936 cat conftest.err >&5
5937 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939 cat conftest.err >&5
5940 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5941 cat conftest.out >&5
5942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943 lt_cv_nm_interface="MS dumpbin"
5944 fi
5945 rm -f conftest*
5946fi
5947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5948printf "%s\n" "$lt_cv_nm_interface" >&6; }
5949
5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5951printf %s "checking whether ln -s works... " >&6; }
5952LN_S=$as_ln_s
5953if test "$LN_S" = "ln -s"; then
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5955printf "%s\n" "yes" >&6; }
5956else
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5958printf "%s\n" "no, using $LN_S" >&6; }
5959fi
5960
5961# find the maximum length of command line arguments
5962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5963printf %s "checking the maximum length of command line arguments... " >&6; }
5964if test ${lt_cv_sys_max_cmd_len+y}
5965then :
5966 printf %s "(cached) " >&6
5967else $as_nop
5968 i=0
5969 teststring=ABCD
5970
5971 case $build_os in
5972 msdosdjgpp*)
5973 # On DJGPP, this test can blow up pretty badly due to problems in libc
5974 # (any single argument exceeding 2000 bytes causes a buffer overrun
5975 # during glob expansion). Even if it were fixed, the result of this
5976 # check would be larger than it should be.
5977 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5978 ;;
5979
5980 gnu*)
5981 # Under GNU Hurd, this test is not required because there is
5982 # no limit to the length of command line arguments.
5983 # Libtool will interpret -1 as no limit whatsoever
5984 lt_cv_sys_max_cmd_len=-1;
5985 ;;
5986
5987 cygwin* | mingw* | cegcc*)
5988 # On Win9x/ME, this test blows up -- it succeeds, but takes
5989 # about 5 minutes as the teststring grows exponentially.
5990 # Worse, since 9x/ME are not pre-emptively multitasking,
5991 # you end up with a "frozen" computer, even though with patience
5992 # the test eventually succeeds (with a max line length of 256k).
5993 # Instead, let's just punt: use the minimum linelength reported by
5994 # all of the supported platforms: 8192 (on NT/2K/XP).
5995 lt_cv_sys_max_cmd_len=8192;
5996 ;;
5997
5998 mint*)
5999 # On MiNT this can take a long time and run out of memory.
6000 lt_cv_sys_max_cmd_len=8192;
6001 ;;
6002
6003 amigaos*)
6004 # On AmigaOS with pdksh, this test takes hours, literally.
6005 # So we just punt and use a minimum line length of 8192.
6006 lt_cv_sys_max_cmd_len=8192;
6007 ;;
6008
6009 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6010 # This has been around since 386BSD, at least. Likely further.
6011 if test -x /sbin/sysctl; then
6012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6013 elif test -x /usr/sbin/sysctl; then
6014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6015 else
6016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6017 fi
6018 # And add a safety zone
6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6021 ;;
6022
6023 interix*)
6024 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6025 lt_cv_sys_max_cmd_len=196608
6026 ;;
6027
6028 os2*)
6029 # The test takes a long time on OS/2.
6030 lt_cv_sys_max_cmd_len=8192
6031 ;;
6032
6033 osf*)
6034 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6035 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6036 # nice to cause kernel panics so lets avoid the loop below.
6037 # First set a reasonable default.
6038 lt_cv_sys_max_cmd_len=16384
6039 #
6040 if test -x /sbin/sysconfig; then
6041 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6042 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6043 esac
6044 fi
6045 ;;
6046 sco3.2v5*)
6047 lt_cv_sys_max_cmd_len=102400
6048 ;;
6049 sysv5* | sco5v6* | sysv4.2uw2*)
6050 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6051 if test -n "$kargmax"; then
6052 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6053 else
6054 lt_cv_sys_max_cmd_len=32768
6055 fi
6056 ;;
6057 *)
6058 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6059 if test -n "$lt_cv_sys_max_cmd_len" && \
6060 test undefined != "$lt_cv_sys_max_cmd_len"; then
6061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6063 else
6064 # Make teststring a little bigger before we do anything with it.
6065 # a 1K string should be a reasonable start.
6066 for i in 1 2 3 4 5 6 7 8; do
6067 teststring=$teststring$teststring
6068 done
6069 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6070 # If test is not a shell built-in, we'll probably end up computing a
6071 # maximum length that is only half of the actual maximum length, but
6072 # we can't tell.
6073 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6074 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6075 test 17 != "$i" # 1/2 MB should be enough
6076 do
6077 i=`expr $i + 1`
6078 teststring=$teststring$teststring
6079 done
6080 # Only check the string length outside the loop.
6081 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6082 teststring=
6083 # Add a significant safety factor because C++ compilers can tack on
6084 # massive amounts of additional arguments before passing them to the
6085 # linker. It appears as though 1/2 is a usable value.
6086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6087 fi
6088 ;;
6089 esac
6090
6091fi
6092
6093if test -n "$lt_cv_sys_max_cmd_len"; then
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6095printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6096else
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6098printf "%s\n" "none" >&6; }
6099fi
6100max_cmd_len=$lt_cv_sys_max_cmd_len
6101
6102
6103
6104
6105
6106
6107: ${CP="cp -f"}
6108: ${MV="mv -f"}
6109: ${RM="rm -f"}
6110
6111if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6112 lt_unset=unset
6113else
6114 lt_unset=false
6115fi
6116
6117
6118
6119
6120
6121# test EBCDIC or ASCII
6122case `echo X|tr X '\101'` in
6123 A) # ASCII based system
6124 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6125 lt_SP2NL='tr \040 \012'
6126 lt_NL2SP='tr \015\012 \040\040'
6127 ;;
6128 *) # EBCDIC based system
6129 lt_SP2NL='tr \100 \n'
6130 lt_NL2SP='tr \r\n \100\100'
6131 ;;
6132esac
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6143printf %s "checking how to convert $build file names to $host format... " >&6; }
6144if test ${lt_cv_to_host_file_cmd+y}
6145then :
6146 printf %s "(cached) " >&6
6147else $as_nop
6148 case $host in
6149 *-*-mingw* )
6150 case $build in
6151 *-*-mingw* ) # actually msys
6152 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6153 ;;
6154 *-*-cygwin* )
6155 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6156 ;;
6157 * ) # otherwise, assume *nix
6158 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6159 ;;
6160 esac
6161 ;;
6162 *-*-cygwin* )
6163 case $build in
6164 *-*-mingw* ) # actually msys
6165 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6166 ;;
6167 *-*-cygwin* )
6168 lt_cv_to_host_file_cmd=func_convert_file_noop
6169 ;;
6170 * ) # otherwise, assume *nix
6171 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6172 ;;
6173 esac
6174 ;;
6175 * ) # unhandled hosts (and "normal" native builds)
6176 lt_cv_to_host_file_cmd=func_convert_file_noop
6177 ;;
6178esac
6179
6180fi
6181
6182to_host_file_cmd=$lt_cv_to_host_file_cmd
6183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6184printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6185
6186
6187
6188
6189
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6191printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6192if test ${lt_cv_to_tool_file_cmd+y}
6193then :
6194 printf %s "(cached) " >&6
6195else $as_nop
6196 #assume ordinary cross tools, or native build.
6197lt_cv_to_tool_file_cmd=func_convert_file_noop
6198case $host in
6199 *-*-mingw* )
6200 case $build in
6201 *-*-mingw* ) # actually msys
6202 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6203 ;;
6204 esac
6205 ;;
6206esac
6207
6208fi
6209
6210to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6212printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6213
6214
6215
6216
6217
6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6219printf %s "checking for $LD option to reload object files... " >&6; }
6220if test ${lt_cv_ld_reload_flag+y}
6221then :
6222 printf %s "(cached) " >&6
6223else $as_nop
6224 lt_cv_ld_reload_flag='-r'
6225fi
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6227printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6228reload_flag=$lt_cv_ld_reload_flag
6229case $reload_flag in
6230"" | " "*) ;;
6231*) reload_flag=" $reload_flag" ;;
6232esac
6233reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234case $host_os in
6235 cygwin* | mingw* | pw32* | cegcc*)
6236 if test yes != "$GCC"; then
6237 reload_cmds=false
6238 fi
6239 ;;
6240 darwin*)
6241 if test yes = "$GCC"; then
6242 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6243 else
6244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6245 fi
6246 ;;
6247esac
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6259set dummy ${ac_tool_prefix}objdump; ac_word=$2
6260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261printf %s "checking for $ac_word... " >&6; }
6262if test ${ac_cv_prog_OBJDUMP+y}
6263then :
6264 printf %s "(cached) " >&6
6265else $as_nop
6266 if test -n "$OBJDUMP"; then
6267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 case $as_dir in #(((
6274 '') as_dir=./ ;;
6275 */) ;;
6276 *) as_dir=$as_dir/ ;;
6277 esac
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284done
6285 done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290OBJDUMP=$ac_cv_prog_OBJDUMP
6291if test -n "$OBJDUMP"; then
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6293printf "%s\n" "$OBJDUMP" >&6; }
6294else
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296printf "%s\n" "no" >&6; }
6297fi
6298
6299
6300fi
6301if test -z "$ac_cv_prog_OBJDUMP"; then
6302 ac_ct_OBJDUMP=$OBJDUMP
6303 # Extract the first word of "objdump", so it can be a program name with args.
6304set dummy objdump; ac_word=$2
6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306printf %s "checking for $ac_word... " >&6; }
6307if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6308then :
6309 printf %s "(cached) " >&6
6310else $as_nop
6311 if test -n "$ac_ct_OBJDUMP"; then
6312 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329done
6330 done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
6335ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336if test -n "$ac_ct_OBJDUMP"; then
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6339else
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341printf "%s\n" "no" >&6; }
6342fi
6343
6344 if test "x$ac_ct_OBJDUMP" = x; then
6345 OBJDUMP="false"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348yes:)
6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351ac_tool_warned=yes ;;
6352esac
6353 OBJDUMP=$ac_ct_OBJDUMP
6354 fi
6355else
6356 OBJDUMP="$ac_cv_prog_OBJDUMP"
6357fi
6358
6359test -z "$OBJDUMP" && OBJDUMP=objdump
6360
6361
6362
6363
6364
6365
6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6367printf %s "checking how to recognize dependent libraries... " >&6; }
6368if test ${lt_cv_deplibs_check_method+y}
6369then :
6370 printf %s "(cached) " >&6
6371else $as_nop
6372 lt_cv_file_magic_cmd='$MAGIC_CMD'
6373lt_cv_file_magic_test_file=
6374lt_cv_deplibs_check_method='unknown'
6375# Need to set the preceding variable on all platforms that support
6376# interlibrary dependencies.
6377# 'none' -- dependencies not supported.
6378# 'unknown' -- same as none, but documents that we really don't know.
6379# 'pass_all' -- all dependencies passed with no checks.
6380# 'test_compile' -- check by making test program.
6381# 'file_magic [[regex]]' -- check by looking for files in library path
6382# that responds to the $file_magic_cmd with a given extended regex.
6383# If you have 'file' or equivalent on your system and you're not sure
6384# whether 'pass_all' will *always* work, you probably want this one.
6385
6386case $host_os in
6387aix[4-9]*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391beos*)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394
6395bsdi[45]*)
6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6397 lt_cv_file_magic_cmd='/usr/bin/file -L'
6398 lt_cv_file_magic_test_file=/shlib/libc.so
6399 ;;
6400
6401cygwin*)
6402 # func_win32_libid is a shell function defined in ltmain.sh
6403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6404 lt_cv_file_magic_cmd='func_win32_libid'
6405 ;;
6406
6407mingw* | pw32*)
6408 # Base MSYS/MinGW do not provide the 'file' command needed by
6409 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6410 # unless we find 'file', for example because we are cross-compiling.
6411 if ( file / ) >/dev/null 2>&1; then
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6414 else
6415 # Keep this pattern in sync with the one in func_win32_libid.
6416 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 fi
6419 ;;
6420
6421cegcc*)
6422 # use the weaker test based on 'objdump'. See mingw*.
6423 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6425 ;;
6426
6427darwin* | rhapsody*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431freebsd* | dragonfly*)
6432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6433 case $host_cpu in
6434 i*86 )
6435 # Not sure whether the presence of OpenBSD here was a mistake.
6436 # Let's accept both of them until this is cleared up.
6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6440 ;;
6441 esac
6442 else
6443 lt_cv_deplibs_check_method=pass_all
6444 fi
6445 ;;
6446
6447haiku*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451hpux10.20* | hpux11*)
6452 lt_cv_file_magic_cmd=/usr/bin/file
6453 case $host_cpu in
6454 ia64*)
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6457 ;;
6458 hppa*64*)
6459 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]'
6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6461 ;;
6462 *)
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6465 ;;
6466 esac
6467 ;;
6468
6469interix[3-9]*)
6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6472 ;;
6473
6474irix5* | irix6* | nonstopux*)
6475 case $LD in
6476 *-32|*"-32 ") libmagic=32-bit;;
6477 *-n32|*"-n32 ") libmagic=N32;;
6478 *-64|*"-64 ") libmagic=64-bit;;
6479 *) libmagic=never-match;;
6480 esac
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484# This must be glibc/ELF.
6485linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489netbsd*)
6490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6494 fi
6495 ;;
6496
6497newos6*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499 lt_cv_file_magic_cmd=/usr/bin/file
6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6501 ;;
6502
6503*nto* | *qnx*)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507openbsd* | bitrig*)
6508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 else
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512 fi
6513 ;;
6514
6515osf3* | osf4* | osf5*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519rdos*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523solaris*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531sysv4 | sysv4.3*)
6532 case $host_vendor in
6533 motorola)
6534 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]'
6535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536 ;;
6537 ncr)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540 sequent)
6541 lt_cv_file_magic_cmd='/bin/file'
6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543 ;;
6544 sni)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547 lt_cv_file_magic_test_file=/lib/libc.so
6548 ;;
6549 siemens)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552 pc)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555 esac
6556 ;;
6557
6558tpf*)
6559 lt_cv_deplibs_check_method=pass_all
6560 ;;
6561os2*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564esac
6565
6566fi
6567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6568printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6569
6570file_magic_glob=
6571want_nocaseglob=no
6572if test "$build" = "$host"; then
6573 case $host_os in
6574 mingw* | pw32*)
6575 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6576 want_nocaseglob=yes
6577 else
6578 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6579 fi
6580 ;;
6581 esac
6582fi
6583
6584file_magic_cmd=$lt_cv_file_magic_cmd
6585deplibs_check_method=$lt_cv_deplibs_check_method
6586test -z "$deplibs_check_method" && deplibs_check_method=unknown
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6611set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613printf %s "checking for $ac_word... " >&6; }
6614if test ${ac_cv_prog_DLLTOOL+y}
6615then :
6616 printf %s "(cached) " >&6
6617else $as_nop
6618 if test -n "$DLLTOOL"; then
6619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 case $as_dir in #(((
6626 '') as_dir=./ ;;
6627 */) ;;
6628 *) as_dir=$as_dir/ ;;
6629 esac
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637 done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642DLLTOOL=$ac_cv_prog_DLLTOOL
6643if test -n "$DLLTOOL"; then
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6645printf "%s\n" "$DLLTOOL" >&6; }
6646else
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648printf "%s\n" "no" >&6; }
6649fi
6650
6651
6652fi
6653if test -z "$ac_cv_prog_DLLTOOL"; then
6654 ac_ct_DLLTOOL=$DLLTOOL
6655 # Extract the first word of "dlltool", so it can be a program name with args.
6656set dummy dlltool; ac_word=$2
6657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658printf %s "checking for $ac_word... " >&6; }
6659if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6660then :
6661 printf %s "(cached) " >&6
6662else $as_nop
6663 if test -n "$ac_ct_DLLTOOL"; then
6664 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 case $as_dir in #(((
6671 '') as_dir=./ ;;
6672 */) ;;
6673 *) as_dir=$as_dir/ ;;
6674 esac
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682 done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6688if test -n "$ac_ct_DLLTOOL"; then
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6690printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6691else
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693printf "%s\n" "no" >&6; }
6694fi
6695
6696 if test "x$ac_ct_DLLTOOL" = x; then
6697 DLLTOOL="false"
6698 else
6699 case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703ac_tool_warned=yes ;;
6704esac
6705 DLLTOOL=$ac_ct_DLLTOOL
6706 fi
6707else
6708 DLLTOOL="$ac_cv_prog_DLLTOOL"
6709fi
6710
6711test -z "$DLLTOOL" && DLLTOOL=dlltool
6712
6713
6714
6715
6716
6717
6718
6719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6720printf %s "checking how to associate runtime and link libraries... " >&6; }
6721if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6722then :
6723 printf %s "(cached) " >&6
6724else $as_nop
6725 lt_cv_sharedlib_from_linklib_cmd='unknown'
6726
6727case $host_os in
6728cygwin* | mingw* | pw32* | cegcc*)
6729 # two different shell functions defined in ltmain.sh;
6730 # decide which one to use based on capabilities of $DLLTOOL
6731 case `$DLLTOOL --help 2>&1` in
6732 *--identify-strict*)
6733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6734 ;;
6735 *)
6736 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6737 ;;
6738 esac
6739 ;;
6740*)
6741 # fallback: assume linklib IS sharedlib
6742 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6743 ;;
6744esac
6745
6746fi
6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6748printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6749sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6750test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6751
6752
6753
6754
6755
6756
6757
6758if test -n "$ac_tool_prefix"; then
6759 for ac_prog in ar
6760 do
6761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764printf %s "checking for $ac_word... " >&6; }
6765if test ${ac_cv_prog_AR+y}
6766then :
6767 printf %s "(cached) " >&6
6768else $as_nop
6769 if test -n "$AR"; then
6770 ac_cv_prog_AR="$AR" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 case $as_dir in #(((
6777 '') as_dir=./ ;;
6778 */) ;;
6779 *) as_dir=$as_dir/ ;;
6780 esac
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793AR=$ac_cv_prog_AR
6794if test -n "$AR"; then
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6796printf "%s\n" "$AR" >&6; }
6797else
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799printf "%s\n" "no" >&6; }
6800fi
6801
6802
6803 test -n "$AR" && break
6804 done
6805fi
6806if test -z "$AR"; then
6807 ac_ct_AR=$AR
6808 for ac_prog in ar
6809do
6810 # Extract the first word of "$ac_prog", so it can be a program name with args.
6811set dummy $ac_prog; ac_word=$2
6812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813printf %s "checking for $ac_word... " >&6; }
6814if test ${ac_cv_prog_ac_ct_AR+y}
6815then :
6816 printf %s "(cached) " >&6
6817else $as_nop
6818 if test -n "$ac_ct_AR"; then
6819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 case $as_dir in #(((
6826 '') as_dir=./ ;;
6827 */) ;;
6828 *) as_dir=$as_dir/ ;;
6829 esac
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_ac_ct_AR="$ac_prog"
6833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837 done
6838IFS=$as_save_IFS
6839
6840fi
6841fi
6842ac_ct_AR=$ac_cv_prog_ac_ct_AR
6843if test -n "$ac_ct_AR"; then
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6845printf "%s\n" "$ac_ct_AR" >&6; }
6846else
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848printf "%s\n" "no" >&6; }
6849fi
6850
6851
6852 test -n "$ac_ct_AR" && break
6853done
6854
6855 if test "x$ac_ct_AR" = x; then
6856 AR="false"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862ac_tool_warned=yes ;;
6863esac
6864 AR=$ac_ct_AR
6865 fi
6866fi
6867
6868: ${AR=ar}
6869
6870
6871
6872
6873
6874
6875# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6876# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6877# higher priority because thats what people were doing historically (setting
6878# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6879# variable obsoleted/removed.
6880
6881test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6882lt_ar_flags=$AR_FLAGS
6883
6884
6885
6886
6887
6888
6889# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6890# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6891
6892
6893
6894
6895
6896
6897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6898printf %s "checking for archiver @FILE support... " >&6; }
6899if test ${lt_cv_ar_at_file+y}
6900then :
6901 printf %s "(cached) " >&6
6902else $as_nop
6903 lt_cv_ar_at_file=no
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905/* end confdefs.h. */
6906
6907int
6908main (void)
6909{
6910
6911 ;
6912 return 0;
6913}
6914_ACEOF
6915if ac_fn_c_try_compile "$LINENO"
6916then :
6917 echo conftest.$ac_objext > conftest.lst
6918 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6920 (eval $lt_ar_try) 2>&5
6921 ac_status=$?
6922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923 test $ac_status = 0; }
6924 if test 0 -eq "$ac_status"; then
6925 # Ensure the archiver fails upon bogus file names.
6926 rm -f conftest.$ac_objext libconftest.a
6927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6928 (eval $lt_ar_try) 2>&5
6929 ac_status=$?
6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }
6932 if test 0 -ne "$ac_status"; then
6933 lt_cv_ar_at_file=@
6934 fi
6935 fi
6936 rm -f conftest.* libconftest.a
6937
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940
6941fi
6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6943printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6944
6945if test no = "$lt_cv_ar_at_file"; then
6946 archiver_list_spec=
6947else
6948 archiver_list_spec=$lt_cv_ar_at_file
6949fi
6950
6951
6952
6953
6954
6955
6956
6957if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6959set dummy ${ac_tool_prefix}strip; ac_word=$2
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961printf %s "checking for $ac_word... " >&6; }
6962if test ${ac_cv_prog_STRIP+y}
6963then :
6964 printf %s "(cached) " >&6
6965else $as_nop
6966 if test -n "$STRIP"; then
6967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972 IFS=$as_save_IFS
6973 case $as_dir in #(((
6974 '') as_dir=./ ;;
6975 */) ;;
6976 *) as_dir=$as_dir/ ;;
6977 esac
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984done
6985 done
6986IFS=$as_save_IFS
6987
6988fi
6989fi
6990STRIP=$ac_cv_prog_STRIP
6991if test -n "$STRIP"; then
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6993printf "%s\n" "$STRIP" >&6; }
6994else
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996printf "%s\n" "no" >&6; }
6997fi
6998
6999
7000fi
7001if test -z "$ac_cv_prog_STRIP"; then
7002 ac_ct_STRIP=$STRIP
7003 # Extract the first word of "strip", so it can be a program name with args.
7004set dummy strip; ac_word=$2
7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006printf %s "checking for $ac_word... " >&6; }
7007if test ${ac_cv_prog_ac_ct_STRIP+y}
7008then :
7009 printf %s "(cached) " >&6
7010else $as_nop
7011 if test -n "$ac_ct_STRIP"; then
7012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 case $as_dir in #(((
7019 '') as_dir=./ ;;
7020 */) ;;
7021 *) as_dir=$as_dir/ ;;
7022 esac
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_ac_ct_STRIP="strip"
7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030 done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7036if test -n "$ac_ct_STRIP"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7038printf "%s\n" "$ac_ct_STRIP" >&6; }
7039else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041printf "%s\n" "no" >&6; }
7042fi
7043
7044 if test "x$ac_ct_STRIP" = x; then
7045 STRIP=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053 STRIP=$ac_ct_STRIP
7054 fi
7055else
7056 STRIP="$ac_cv_prog_STRIP"
7057fi
7058
7059test -z "$STRIP" && STRIP=:
7060
7061
7062
7063
7064
7065
7066if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070printf %s "checking for $ac_word... " >&6; }
7071if test ${ac_cv_prog_RANLIB+y}
7072then :
7073 printf %s "(cached) " >&6
7074else $as_nop
7075 if test -n "$RANLIB"; then
7076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 case $as_dir in #(((
7083 '') as_dir=./ ;;
7084 */) ;;
7085 *) as_dir=$as_dir/ ;;
7086 esac
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094 done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099RANLIB=$ac_cv_prog_RANLIB
7100if test -n "$RANLIB"; then
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7102printf "%s\n" "$RANLIB" >&6; }
7103else
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105printf "%s\n" "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_RANLIB"; then
7111 ac_ct_RANLIB=$RANLIB
7112 # Extract the first word of "ranlib", so it can be a program name with args.
7113set dummy ranlib; ac_word=$2
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115printf %s "checking for $ac_word... " >&6; }
7116if test ${ac_cv_prog_ac_ct_RANLIB+y}
7117then :
7118 printf %s "(cached) " >&6
7119else $as_nop
7120 if test -n "$ac_ct_RANLIB"; then
7121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 case $as_dir in #(((
7128 '') as_dir=./ ;;
7129 */) ;;
7130 *) as_dir=$as_dir/ ;;
7131 esac
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_RANLIB="ranlib"
7135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139 done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7145if test -n "$ac_ct_RANLIB"; then
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7147printf "%s\n" "$ac_ct_RANLIB" >&6; }
7148else
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150printf "%s\n" "no" >&6; }
7151fi
7152
7153 if test "x$ac_ct_RANLIB" = x; then
7154 RANLIB=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157yes:)
7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160ac_tool_warned=yes ;;
7161esac
7162 RANLIB=$ac_ct_RANLIB
7163 fi
7164else
7165 RANLIB="$ac_cv_prog_RANLIB"
7166fi
7167
7168test -z "$RANLIB" && RANLIB=:
7169
7170
7171
7172
7173
7174
7175# Determine commands to create old-style static archives.
7176old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7177old_postinstall_cmds='chmod 644 $oldlib'
7178old_postuninstall_cmds=
7179
7180if test -n "$RANLIB"; then
7181 case $host_os in
7182 bitrig* | openbsd*)
7183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7184 ;;
7185 *)
7186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7187 ;;
7188 esac
7189 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7190fi
7191
7192case $host_os in
7193 darwin*)
7194 lock_old_archive_extraction=yes ;;
7195 *)
7196 lock_old_archive_extraction=no ;;
7197esac
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237# If no C compiler was specified, use CC.
7238LTCC=${LTCC-"$CC"}
7239
7240# If no C compiler flags were specified, use CFLAGS.
7241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7242
7243# Allow CC to be a program name with arguments.
7244compiler=$CC
7245
7246
7247# Check for command to grab the raw symbol name followed by C symbol from nm.
7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7249printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7250if test ${lt_cv_sys_global_symbol_pipe+y}
7251then :
7252 printf %s "(cached) " >&6
7253else $as_nop
7254
7255# These are sane defaults that work on at least a few old systems.
7256# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7257
7258# Character class describing NM global symbol codes.
7259symcode='[BCDEGRST]'
7260
7261# Regexp to match symbols that can be accessed directly from C.
7262sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7263
7264# Define system-specific variables.
7265case $host_os in
7266aix*)
7267 symcode='[BCDT]'
7268 ;;
7269cygwin* | mingw* | pw32* | cegcc*)
7270 symcode='[ABCDGISTW]'
7271 ;;
7272hpux*)
7273 if test ia64 = "$host_cpu"; then
7274 symcode='[ABCDEGRST]'
7275 fi
7276 ;;
7277irix* | nonstopux*)
7278 symcode='[BCDEGRST]'
7279 ;;
7280osf*)
7281 symcode='[BCDEGQRST]'
7282 ;;
7283solaris*)
7284 symcode='[BDRT]'
7285 ;;
7286sco3.2v5*)
7287 symcode='[DT]'
7288 ;;
7289sysv4.2uw2*)
7290 symcode='[DT]'
7291 ;;
7292sysv5* | sco5v6* | unixware* | OpenUNIX*)
7293 symcode='[ABDT]'
7294 ;;
7295sysv4)
7296 symcode='[DFNSTU]'
7297 ;;
7298esac
7299
7300# If we're using GNU nm, then use its standard symbol codes.
7301case `$NM -V 2>&1` in
7302*GNU* | *'with BFD'*)
7303 symcode='[ABCDGIRSTW]' ;;
7304esac
7305
7306if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7307 # Gets list of data symbols to import.
7308 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7309 # Adjust the below global symbol transforms to fixup imported variables.
7310 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7311 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7312 lt_c_name_lib_hook="\
7313 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7314 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7315else
7316 # Disable hooks by default.
7317 lt_cv_sys_global_symbol_to_import=
7318 lt_cdecl_hook=
7319 lt_c_name_hook=
7320 lt_c_name_lib_hook=
7321fi
7322
7323# Transform an extracted symbol line into a proper C declaration.
7324# Some systems (esp. on ia64) link data and code symbols differently,
7325# so use this general approach.
7326lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7327$lt_cdecl_hook\
7328" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7329" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7330
7331# Transform an extracted symbol line into symbol name and symbol address
7332lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7333$lt_c_name_hook\
7334" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7335" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7336
7337# Transform an extracted symbol line into symbol name with lib prefix and
7338# symbol address.
7339lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7340$lt_c_name_lib_hook\
7341" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7342" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7343" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7344
7345# Handle CRLF in mingw tool chain
7346opt_cr=
7347case $build_os in
7348mingw*)
7349 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7350 ;;
7351esac
7352
7353# Try without a prefix underscore, then with it.
7354for ac_symprfx in "" "_"; do
7355
7356 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7357 symxfrm="\\1 $ac_symprfx\\2 \\2"
7358
7359 # Write the raw and C identifiers.
7360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7361 # Fake it for dumpbin and say T for any non-static function,
7362 # D for any global variable and I for any imported variable.
7363 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7364 # which start with @ or ?.
7365 lt_cv_sys_global_symbol_pipe="$AWK '"\
7366" {last_section=section; section=\$ 3};"\
7367" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7368" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7369" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7370" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7371" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7372" \$ 0!~/External *\|/{next};"\
7373" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7374" {if(hide[section]) next};"\
7375" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7376" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7377" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7378" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7379" ' prfx=^$ac_symprfx"
7380 else
7381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7382 fi
7383 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7384
7385 # Check to see that the pipe works correctly.
7386 pipe_works=no
7387
7388 rm -f conftest*
7389 cat > conftest.$ac_ext <<_LT_EOF
7390#ifdef __cplusplus
7391extern "C" {
7392#endif
7393char nm_test_var;
7394void nm_test_func(void);
7395void nm_test_func(void){}
7396#ifdef __cplusplus
7397}
7398#endif
7399int main(){nm_test_var='a';nm_test_func();return(0);}
7400_LT_EOF
7401
7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403 (eval $ac_compile) 2>&5
7404 ac_status=$?
7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }; then
7407 # Now try to grab the symbols.
7408 nlist=conftest.nm
7409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7410 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7411 ac_status=$?
7412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7413 test $ac_status = 0; } && test -s "$nlist"; then
7414 # Try sorting and uniquifying the output.
7415 if sort "$nlist" | uniq > "$nlist"T; then
7416 mv -f "$nlist"T "$nlist"
7417 else
7418 rm -f "$nlist"T
7419 fi
7420
7421 # Make sure that we snagged all the symbols we need.
7422 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7423 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7424 cat <<_LT_EOF > conftest.$ac_ext
7425/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7426#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7427/* DATA imports from DLLs on WIN32 can't be const, because runtime
7428 relocations are performed -- see ld's documentation on pseudo-relocs. */
7429# define LT_DLSYM_CONST
7430#elif defined __osf__
7431/* This system does not cope well with relocations in const data. */
7432# define LT_DLSYM_CONST
7433#else
7434# define LT_DLSYM_CONST const
7435#endif
7436
7437#ifdef __cplusplus
7438extern "C" {
7439#endif
7440
7441_LT_EOF
7442 # Now generate the symbol file.
7443 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7444
7445 cat <<_LT_EOF >> conftest.$ac_ext
7446
7447/* The mapping between symbol names and symbols. */
7448LT_DLSYM_CONST struct {
7449 const char *name;
7450 void *address;
7451}
7452lt__PROGRAM__LTX_preloaded_symbols[] =
7453{
7454 { "@PROGRAM@", (void *) 0 },
7455_LT_EOF
7456 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7457 cat <<\_LT_EOF >> conftest.$ac_ext
7458 {0, (void *) 0}
7459};
7460
7461/* This works around a problem in FreeBSD linker */
7462#ifdef FREEBSD_WORKAROUND
7463static const void *lt_preloaded_setup() {
7464 return lt__PROGRAM__LTX_preloaded_symbols;
7465}
7466#endif
7467
7468#ifdef __cplusplus
7469}
7470#endif
7471_LT_EOF
7472 # Now try linking the two files.
7473 mv conftest.$ac_objext conftstm.$ac_objext
7474 lt_globsym_save_LIBS=$LIBS
7475 lt_globsym_save_CFLAGS=$CFLAGS
7476 LIBS=conftstm.$ac_objext
7477 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7479 (eval $ac_link) 2>&5
7480 ac_status=$?
7481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7483 pipe_works=yes
7484 fi
7485 LIBS=$lt_globsym_save_LIBS
7486 CFLAGS=$lt_globsym_save_CFLAGS
7487 else
7488 echo "cannot find nm_test_func in $nlist" >&5
7489 fi
7490 else
7491 echo "cannot find nm_test_var in $nlist" >&5
7492 fi
7493 else
7494 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7495 fi
7496 else
7497 echo "$progname: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7499 fi
7500 rm -rf conftest* conftst*
7501
7502 # Do not use the global_symbol_pipe unless it works.
7503 if test yes = "$pipe_works"; then
7504 break
7505 else
7506 lt_cv_sys_global_symbol_pipe=
7507 fi
7508done
7509
7510fi
7511
7512if test -z "$lt_cv_sys_global_symbol_pipe"; then
7513 lt_cv_sys_global_symbol_to_cdecl=
7514fi
7515if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7517printf "%s\n" "failed" >&6; }
7518else
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7520printf "%s\n" "ok" >&6; }
7521fi
7522
7523# Response file support.
7524if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7525 nm_file_list_spec='@'
7526elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7527 nm_file_list_spec='@'
7528fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7567printf %s "checking for sysroot... " >&6; }
7568
7569# Check whether --with-sysroot was given.
7570if test ${with_sysroot+y}
7571then :
7572 withval=$with_sysroot;
7573else $as_nop
7574 with_sysroot=no
7575fi
7576
7577
7578lt_sysroot=
7579case $with_sysroot in #(
7580 yes)
7581 if test yes = "$GCC"; then
7582 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7583 fi
7584 ;; #(
7585 /*)
7586 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7587 ;; #(
7588 no|'')
7589 ;; #(
7590 *)
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7592printf "%s\n" "$with_sysroot" >&6; }
7593 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7594 ;;
7595esac
7596
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7598printf "%s\n" "${lt_sysroot:-no}" >&6; }
7599
7600
7601
7602
7603
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7605printf %s "checking for a working dd... " >&6; }
7606if test ${ac_cv_path_lt_DD+y}
7607then :
7608 printf %s "(cached) " >&6
7609else $as_nop
7610 printf 0123456789abcdef0123456789abcdef >conftest.i
7611cat conftest.i conftest.i >conftest2.i
7612: ${lt_DD:=$DD}
7613if test -z "$lt_DD"; then
7614 ac_path_lt_DD_found=false
7615 # Loop through the user's path and test for each of PROGNAME-LIST
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 case $as_dir in #(((
7621 '') as_dir=./ ;;
7622 */) ;;
7623 *) as_dir=$as_dir/ ;;
7624 esac
7625 for ac_prog in dd
7626 do
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7629 as_fn_executable_p "$ac_path_lt_DD" || continue
7630if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7631 cmp -s conftest.i conftest.out \
7632 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7633fi
7634 $ac_path_lt_DD_found && break 3
7635 done
7636 done
7637 done
7638IFS=$as_save_IFS
7639 if test -z "$ac_cv_path_lt_DD"; then
7640 :
7641 fi
7642else
7643 ac_cv_path_lt_DD=$lt_DD
7644fi
7645
7646rm -f conftest.i conftest2.i conftest.out
7647fi
7648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7649printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7650
7651
7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7653printf %s "checking how to truncate binary pipes... " >&6; }
7654if test ${lt_cv_truncate_bin+y}
7655then :
7656 printf %s "(cached) " >&6
7657else $as_nop
7658 printf 0123456789abcdef0123456789abcdef >conftest.i
7659cat conftest.i conftest.i >conftest2.i
7660lt_cv_truncate_bin=
7661if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7662 cmp -s conftest.i conftest.out \
7663 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7664fi
7665rm -f conftest.i conftest2.i conftest.out
7666test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7667fi
7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7669printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7670
7671
7672
7673
7674
7675
7676
7677# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7678func_cc_basename ()
7679{
7680 for cc_temp in $*""; do
7681 case $cc_temp in
7682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7684 \-*) ;;
7685 *) break;;
7686 esac
7687 done
7688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7689}
7690
7691# Check whether --enable-libtool-lock was given.
7692if test ${enable_libtool_lock+y}
7693then :
7694 enableval=$enable_libtool_lock;
7695fi
7696
7697test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7698
7699# Some flags need to be propagated to the compiler or linker for good
7700# libtool support.
7701case $host in
7702ia64-*-hpux*)
7703 # Find out what ABI is being produced by ac_compile, and set mode
7704 # options accordingly.
7705 echo 'int i;' > conftest.$ac_ext
7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7707 (eval $ac_compile) 2>&5
7708 ac_status=$?
7709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710 test $ac_status = 0; }; then
7711 case `/usr/bin/file conftest.$ac_objext` in
7712 *ELF-32*)
7713 HPUX_IA64_MODE=32
7714 ;;
7715 *ELF-64*)
7716 HPUX_IA64_MODE=64
7717 ;;
7718 esac
7719 fi
7720 rm -rf conftest*
7721 ;;
7722*-*-irix6*)
7723 # Find out what ABI is being produced by ac_compile, and set linker
7724 # options accordingly.
7725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 if test yes = "$lt_cv_prog_gnu_ld"; then
7732 case `/usr/bin/file conftest.$ac_objext` in
7733 *32-bit*)
7734 LD="${LD-ld} -melf32bsmip"
7735 ;;
7736 *N32*)
7737 LD="${LD-ld} -melf32bmipn32"
7738 ;;
7739 *64-bit*)
7740 LD="${LD-ld} -melf64bmip"
7741 ;;
7742 esac
7743 else
7744 case `/usr/bin/file conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -32"
7747 ;;
7748 *N32*)
7749 LD="${LD-ld} -n32"
7750 ;;
7751 *64-bit*)
7752 LD="${LD-ld} -64"
7753 ;;
7754 esac
7755 fi
7756 fi
7757 rm -rf conftest*
7758 ;;
7759
7760mips64*-*linux*)
7761 # Find out what ABI is being produced by ac_compile, and set linker
7762 # options accordingly.
7763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7765 (eval $ac_compile) 2>&5
7766 ac_status=$?
7767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; }; then
7769 emul=elf
7770 case `/usr/bin/file conftest.$ac_objext` in
7771 *32-bit*)
7772 emul="${emul}32"
7773 ;;
7774 *64-bit*)
7775 emul="${emul}64"
7776 ;;
7777 esac
7778 case `/usr/bin/file conftest.$ac_objext` in
7779 *MSB*)
7780 emul="${emul}btsmip"
7781 ;;
7782 *LSB*)
7783 emul="${emul}ltsmip"
7784 ;;
7785 esac
7786 case `/usr/bin/file conftest.$ac_objext` in
7787 *N32*)
7788 emul="${emul}n32"
7789 ;;
7790 esac
7791 LD="${LD-ld} -m $emul"
7792 fi
7793 rm -rf conftest*
7794 ;;
7795
7796x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7797s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7798 # Find out what ABI is being produced by ac_compile, and set linker
7799 # options accordingly. Note that the listed cases only cover the
7800 # situations where additional linker options are needed (such as when
7801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7802 # vice versa); the common cases where no linker options are needed do
7803 # not appear in the list.
7804 echo 'int i;' > conftest.$ac_ext
7805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7806 (eval $ac_compile) 2>&5
7807 ac_status=$?
7808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; }; then
7810 case `/usr/bin/file conftest.o` in
7811 *32-bit*)
7812 case $host in
7813 x86_64-*kfreebsd*-gnu)
7814 LD="${LD-ld} -m elf_i386_fbsd"
7815 ;;
7816 x86_64-*linux*)
7817 case `/usr/bin/file conftest.o` in
7818 *x86-64*)
7819 LD="${LD-ld} -m elf32_x86_64"
7820 ;;
7821 *)
7822 LD="${LD-ld} -m elf_i386"
7823 ;;
7824 esac
7825 ;;
7826 powerpc64le-*linux*)
7827 LD="${LD-ld} -m elf32lppclinux"
7828 ;;
7829 powerpc64-*linux*)
7830 LD="${LD-ld} -m elf32ppclinux"
7831 ;;
7832 s390x-*linux*)
7833 LD="${LD-ld} -m elf_s390"
7834 ;;
7835 sparc64-*linux*)
7836 LD="${LD-ld} -m elf32_sparc"
7837 ;;
7838 esac
7839 ;;
7840 *64-bit*)
7841 case $host in
7842 x86_64-*kfreebsd*-gnu)
7843 LD="${LD-ld} -m elf_x86_64_fbsd"
7844 ;;
7845 x86_64-*linux*)
7846 LD="${LD-ld} -m elf_x86_64"
7847 ;;
7848 powerpcle-*linux*)
7849 LD="${LD-ld} -m elf64lppc"
7850 ;;
7851 powerpc-*linux*)
7852 LD="${LD-ld} -m elf64ppc"
7853 ;;
7854 s390*-*linux*|s390*-*tpf*)
7855 LD="${LD-ld} -m elf64_s390"
7856 ;;
7857 sparc*-*linux*)
7858 LD="${LD-ld} -m elf64_sparc"
7859 ;;
7860 esac
7861 ;;
7862 esac
7863 fi
7864 rm -rf conftest*
7865 ;;
7866
7867*-*-sco3.2v5*)
7868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7869 SAVE_CFLAGS=$CFLAGS
7870 CFLAGS="$CFLAGS -belf"
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7872printf %s "checking whether the C compiler needs -belf... " >&6; }
7873if test ${lt_cv_cc_needs_belf+y}
7874then :
7875 printf %s "(cached) " >&6
7876else $as_nop
7877 ac_ext=c
7878ac_cpp='$CPP $CPPFLAGS'
7879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h. */
7885
7886int
7887main (void)
7888{
7889
7890 ;
7891 return 0;
7892}
7893_ACEOF
7894if ac_fn_c_try_link "$LINENO"
7895then :
7896 lt_cv_cc_needs_belf=yes
7897else $as_nop
7898 lt_cv_cc_needs_belf=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.beam \
7901 conftest$ac_exeext conftest.$ac_ext
7902 ac_ext=c
7903ac_cpp='$CPP $CPPFLAGS'
7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908fi
7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7910printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7911 if test yes != "$lt_cv_cc_needs_belf"; then
7912 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7913 CFLAGS=$SAVE_CFLAGS
7914 fi
7915 ;;
7916*-*solaris*)
7917 # Find out what ABI is being produced by ac_compile, and set linker
7918 # options accordingly.
7919 echo 'int i;' > conftest.$ac_ext
7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7921 (eval $ac_compile) 2>&5
7922 ac_status=$?
7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924 test $ac_status = 0; }; then
7925 case `/usr/bin/file conftest.o` in
7926 *64-bit*)
7927 case $lt_cv_prog_gnu_ld in
7928 yes*)
7929 case $host in
7930 i?86-*-solaris*|x86_64-*-solaris*)
7931 LD="${LD-ld} -m elf_x86_64"
7932 ;;
7933 sparc*-*-solaris*)
7934 LD="${LD-ld} -m elf64_sparc"
7935 ;;
7936 esac
7937 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7938 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7939 LD=${LD-ld}_sol2
7940 fi
7941 ;;
7942 *)
7943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7944 LD="${LD-ld} -64"
7945 fi
7946 ;;
7947 esac
7948 ;;
7949 esac
7950 fi
7951 rm -rf conftest*
7952 ;;
7953esac
7954
7955need_locks=$enable_libtool_lock
7956
7957if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7959set dummy ${ac_tool_prefix}mt; ac_word=$2
7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961printf %s "checking for $ac_word... " >&6; }
7962if test ${ac_cv_prog_MANIFEST_TOOL+y}
7963then :
7964 printf %s "(cached) " >&6
7965else $as_nop
7966 if test -n "$MANIFEST_TOOL"; then
7967 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7968else
7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970for as_dir in $PATH
7971do
7972 IFS=$as_save_IFS
7973 case $as_dir in #(((
7974 '') as_dir=./ ;;
7975 */) ;;
7976 *) as_dir=$as_dir/ ;;
7977 esac
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984done
7985 done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7991if test -n "$MANIFEST_TOOL"; then
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7993printf "%s\n" "$MANIFEST_TOOL" >&6; }
7994else
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996printf "%s\n" "no" >&6; }
7997fi
7998
7999
8000fi
8001if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8002 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8003 # Extract the first word of "mt", so it can be a program name with args.
8004set dummy mt; ac_word=$2
8005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006printf %s "checking for $ac_word... " >&6; }
8007if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8008then :
8009 printf %s "(cached) " >&6
8010else $as_nop
8011 if test -n "$ac_ct_MANIFEST_TOOL"; then
8012 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 case $as_dir in #(((
8019 '') as_dir=./ ;;
8020 */) ;;
8021 *) as_dir=$as_dir/ ;;
8022 esac
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030 done
8031IFS=$as_save_IFS
8032
8033fi
8034fi
8035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8036if test -n "$ac_ct_MANIFEST_TOOL"; then
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8038printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8039else
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041printf "%s\n" "no" >&6; }
8042fi
8043
8044 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8045 MANIFEST_TOOL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048yes:)
8049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051ac_tool_warned=yes ;;
8052esac
8053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8054 fi
8055else
8056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8057fi
8058
8059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8061printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8062if test ${lt_cv_path_mainfest_tool+y}
8063then :
8064 printf %s "(cached) " >&6
8065else $as_nop
8066 lt_cv_path_mainfest_tool=no
8067 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8068 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8069 cat conftest.err >&5
8070 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8071 lt_cv_path_mainfest_tool=yes
8072 fi
8073 rm -f conftest*
8074fi
8075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8076printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8077if test yes != "$lt_cv_path_mainfest_tool"; then
8078 MANIFEST_TOOL=:
8079fi
8080
8081
8082
8083
8084
8085
8086 case $host_os in
8087 rhapsody* | darwin*)
8088 if test -n "$ac_tool_prefix"; then
8089 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8090set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092printf %s "checking for $ac_word... " >&6; }
8093if test ${ac_cv_prog_DSYMUTIL+y}
8094then :
8095 printf %s "(cached) " >&6
8096else $as_nop
8097 if test -n "$DSYMUTIL"; then
8098 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 case $as_dir in #(((
8105 '') as_dir=./ ;;
8106 */) ;;
8107 *) as_dir=$as_dir/ ;;
8108 esac
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116 done
8117IFS=$as_save_IFS
8118
8119fi
8120fi
8121DSYMUTIL=$ac_cv_prog_DSYMUTIL
8122if test -n "$DSYMUTIL"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8124printf "%s\n" "$DSYMUTIL" >&6; }
8125else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127printf "%s\n" "no" >&6; }
8128fi
8129
8130
8131fi
8132if test -z "$ac_cv_prog_DSYMUTIL"; then
8133 ac_ct_DSYMUTIL=$DSYMUTIL
8134 # Extract the first word of "dsymutil", so it can be a program name with args.
8135set dummy dsymutil; ac_word=$2
8136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137printf %s "checking for $ac_word... " >&6; }
8138if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8139then :
8140 printf %s "(cached) " >&6
8141else $as_nop
8142 if test -n "$ac_ct_DSYMUTIL"; then
8143 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8144else
8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 case $as_dir in #(((
8150 '') as_dir=./ ;;
8151 */) ;;
8152 *) as_dir=$as_dir/ ;;
8153 esac
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161 done
8162IFS=$as_save_IFS
8163
8164fi
8165fi
8166ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8167if test -n "$ac_ct_DSYMUTIL"; then
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8169printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8170else
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172printf "%s\n" "no" >&6; }
8173fi
8174
8175 if test "x$ac_ct_DSYMUTIL" = x; then
8176 DSYMUTIL=":"
8177 else
8178 case $cross_compiling:$ac_tool_warned in
8179yes:)
8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8182ac_tool_warned=yes ;;
8183esac
8184 DSYMUTIL=$ac_ct_DSYMUTIL
8185 fi
8186else
8187 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8188fi
8189
8190 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8192set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194printf %s "checking for $ac_word... " >&6; }
8195if test ${ac_cv_prog_NMEDIT+y}
8196then :
8197 printf %s "(cached) " >&6
8198else $as_nop
8199 if test -n "$NMEDIT"; then
8200 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8201else
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 case $as_dir in #(((
8207 '') as_dir=./ ;;
8208 */) ;;
8209 *) as_dir=$as_dir/ ;;
8210 esac
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218 done
8219IFS=$as_save_IFS
8220
8221fi
8222fi
8223NMEDIT=$ac_cv_prog_NMEDIT
8224if test -n "$NMEDIT"; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8226printf "%s\n" "$NMEDIT" >&6; }
8227else
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229printf "%s\n" "no" >&6; }
8230fi
8231
8232
8233fi
8234if test -z "$ac_cv_prog_NMEDIT"; then
8235 ac_ct_NMEDIT=$NMEDIT
8236 # Extract the first word of "nmedit", so it can be a program name with args.
8237set dummy nmedit; ac_word=$2
8238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239printf %s "checking for $ac_word... " >&6; }
8240if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8241then :
8242 printf %s "(cached) " >&6
8243else $as_nop
8244 if test -n "$ac_ct_NMEDIT"; then
8245 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8246else
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 case $as_dir in #(((
8252 '') as_dir=./ ;;
8253 */) ;;
8254 *) as_dir=$as_dir/ ;;
8255 esac
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262done
8263 done
8264IFS=$as_save_IFS
8265
8266fi
8267fi
8268ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8269if test -n "$ac_ct_NMEDIT"; then
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8271printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8272else
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274printf "%s\n" "no" >&6; }
8275fi
8276
8277 if test "x$ac_ct_NMEDIT" = x; then
8278 NMEDIT=":"
8279 else
8280 case $cross_compiling:$ac_tool_warned in
8281yes:)
8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284ac_tool_warned=yes ;;
8285esac
8286 NMEDIT=$ac_ct_NMEDIT
8287 fi
8288else
8289 NMEDIT="$ac_cv_prog_NMEDIT"
8290fi
8291
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8294set dummy ${ac_tool_prefix}lipo; ac_word=$2
8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296printf %s "checking for $ac_word... " >&6; }
8297if test ${ac_cv_prog_LIPO+y}
8298then :
8299 printf %s "(cached) " >&6
8300else $as_nop
8301 if test -n "$LIPO"; then
8302 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 case $as_dir in #(((
8309 '') as_dir=./ ;;
8310 */) ;;
8311 *) as_dir=$as_dir/ ;;
8312 esac
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319done
8320 done
8321IFS=$as_save_IFS
8322
8323fi
8324fi
8325LIPO=$ac_cv_prog_LIPO
8326if test -n "$LIPO"; then
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8328printf "%s\n" "$LIPO" >&6; }
8329else
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331printf "%s\n" "no" >&6; }
8332fi
8333
8334
8335fi
8336if test -z "$ac_cv_prog_LIPO"; then
8337 ac_ct_LIPO=$LIPO
8338 # Extract the first word of "lipo", so it can be a program name with args.
8339set dummy lipo; ac_word=$2
8340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341printf %s "checking for $ac_word... " >&6; }
8342if test ${ac_cv_prog_ac_ct_LIPO+y}
8343then :
8344 printf %s "(cached) " >&6
8345else $as_nop
8346 if test -n "$ac_ct_LIPO"; then
8347 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8348else
8349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_LIPO="lipo"
8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364done
8365 done
8366IFS=$as_save_IFS
8367
8368fi
8369fi
8370ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8371if test -n "$ac_ct_LIPO"; then
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8373printf "%s\n" "$ac_ct_LIPO" >&6; }
8374else
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376printf "%s\n" "no" >&6; }
8377fi
8378
8379 if test "x$ac_ct_LIPO" = x; then
8380 LIPO=":"
8381 else
8382 case $cross_compiling:$ac_tool_warned in
8383yes:)
8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386ac_tool_warned=yes ;;
8387esac
8388 LIPO=$ac_ct_LIPO
8389 fi
8390else
8391 LIPO="$ac_cv_prog_LIPO"
8392fi
8393
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8396set dummy ${ac_tool_prefix}otool; ac_word=$2
8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398printf %s "checking for $ac_word... " >&6; }
8399if test ${ac_cv_prog_OTOOL+y}
8400then :
8401 printf %s "(cached) " >&6
8402else $as_nop
8403 if test -n "$OTOOL"; then
8404 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8405else
8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 case $as_dir in #(((
8411 '') as_dir=./ ;;
8412 */) ;;
8413 *) as_dir=$as_dir/ ;;
8414 esac
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421done
8422 done
8423IFS=$as_save_IFS
8424
8425fi
8426fi
8427OTOOL=$ac_cv_prog_OTOOL
8428if test -n "$OTOOL"; then
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8430printf "%s\n" "$OTOOL" >&6; }
8431else
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433printf "%s\n" "no" >&6; }
8434fi
8435
8436
8437fi
8438if test -z "$ac_cv_prog_OTOOL"; then
8439 ac_ct_OTOOL=$OTOOL
8440 # Extract the first word of "otool", so it can be a program name with args.
8441set dummy otool; ac_word=$2
8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443printf %s "checking for $ac_word... " >&6; }
8444if test ${ac_cv_prog_ac_ct_OTOOL+y}
8445then :
8446 printf %s "(cached) " >&6
8447else $as_nop
8448 if test -n "$ac_ct_OTOOL"; then
8449 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8450else
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 case $as_dir in #(((
8456 '') as_dir=./ ;;
8457 */) ;;
8458 *) as_dir=$as_dir/ ;;
8459 esac
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_OTOOL="otool"
8463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466done
8467 done
8468IFS=$as_save_IFS
8469
8470fi
8471fi
8472ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8473if test -n "$ac_ct_OTOOL"; then
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8475printf "%s\n" "$ac_ct_OTOOL" >&6; }
8476else
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478printf "%s\n" "no" >&6; }
8479fi
8480
8481 if test "x$ac_ct_OTOOL" = x; then
8482 OTOOL=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485yes:)
8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488ac_tool_warned=yes ;;
8489esac
8490 OTOOL=$ac_ct_OTOOL
8491 fi
8492else
8493 OTOOL="$ac_cv_prog_OTOOL"
8494fi
8495
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8498set dummy ${ac_tool_prefix}otool64; ac_word=$2
8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500printf %s "checking for $ac_word... " >&6; }
8501if test ${ac_cv_prog_OTOOL64+y}
8502then :
8503 printf %s "(cached) " >&6
8504else $as_nop
8505 if test -n "$OTOOL64"; then
8506 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8507else
8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511 IFS=$as_save_IFS
8512 case $as_dir in #(((
8513 '') as_dir=./ ;;
8514 */) ;;
8515 *) as_dir=$as_dir/ ;;
8516 esac
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523done
8524 done
8525IFS=$as_save_IFS
8526
8527fi
8528fi
8529OTOOL64=$ac_cv_prog_OTOOL64
8530if test -n "$OTOOL64"; then
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8532printf "%s\n" "$OTOOL64" >&6; }
8533else
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535printf "%s\n" "no" >&6; }
8536fi
8537
8538
8539fi
8540if test -z "$ac_cv_prog_OTOOL64"; then
8541 ac_ct_OTOOL64=$OTOOL64
8542 # Extract the first word of "otool64", so it can be a program name with args.
8543set dummy otool64; ac_word=$2
8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545printf %s "checking for $ac_word... " >&6; }
8546if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8547then :
8548 printf %s "(cached) " >&6
8549else $as_nop
8550 if test -n "$ac_ct_OTOOL64"; then
8551 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8552else
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 case $as_dir in #(((
8558 '') as_dir=./ ;;
8559 */) ;;
8560 *) as_dir=$as_dir/ ;;
8561 esac
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_ac_ct_OTOOL64="otool64"
8565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569 done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8575if test -n "$ac_ct_OTOOL64"; then
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8577printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8578else
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580printf "%s\n" "no" >&6; }
8581fi
8582
8583 if test "x$ac_ct_OTOOL64" = x; then
8584 OTOOL64=":"
8585 else
8586 case $cross_compiling:$ac_tool_warned in
8587yes:)
8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590ac_tool_warned=yes ;;
8591esac
8592 OTOOL64=$ac_ct_OTOOL64
8593 fi
8594else
8595 OTOOL64="$ac_cv_prog_OTOOL64"
8596fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8625printf %s "checking for -single_module linker flag... " >&6; }
8626if test ${lt_cv_apple_cc_single_mod+y}
8627then :
8628 printf %s "(cached) " >&6
8629else $as_nop
8630 lt_cv_apple_cc_single_mod=no
8631 if test -z "$LT_MULTI_MODULE"; then
8632 # By default we will add the -single_module flag. You can override
8633 # by either setting the environment variable LT_MULTI_MODULE
8634 # non-empty at configure time, or by adding -multi_module to the
8635 # link flags.
8636 rm -rf libconftest.dylib*
8637 echo "int foo(void){return 1;}" > conftest.c
8638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8639-dynamiclib -Wl,-single_module conftest.c" >&5
8640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8642 _lt_result=$?
8643 # If there is a non-empty error log, and "single_module"
8644 # appears in it, assume the flag caused a linker warning
8645 if test -s conftest.err && $GREP single_module conftest.err; then
8646 cat conftest.err >&5
8647 # Otherwise, if the output was created with a 0 exit code from
8648 # the compiler, it worked.
8649 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8650 lt_cv_apple_cc_single_mod=yes
8651 else
8652 cat conftest.err >&5
8653 fi
8654 rm -rf libconftest.dylib*
8655 rm -f conftest.*
8656 fi
8657fi
8658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8659printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8660
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8662printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8663if test ${lt_cv_ld_exported_symbols_list+y}
8664then :
8665 printf %s "(cached) " >&6
8666else $as_nop
8667 lt_cv_ld_exported_symbols_list=no
8668 save_LDFLAGS=$LDFLAGS
8669 echo "_main" > conftest.sym
8670 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h. */
8673
8674int
8675main (void)
8676{
8677
8678 ;
8679 return 0;
8680}
8681_ACEOF
8682if ac_fn_c_try_link "$LINENO"
8683then :
8684 lt_cv_ld_exported_symbols_list=yes
8685else $as_nop
8686 lt_cv_ld_exported_symbols_list=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.beam \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LDFLAGS=$save_LDFLAGS
8691
8692fi
8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8694printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8695
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8697printf %s "checking for -force_load linker flag... " >&6; }
8698if test ${lt_cv_ld_force_load+y}
8699then :
8700 printf %s "(cached) " >&6
8701else $as_nop
8702 lt_cv_ld_force_load=no
8703 cat > conftest.c << _LT_EOF
8704int forced_loaded() { return 2;}
8705_LT_EOF
8706 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8707 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8708 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8709 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8710 echo "$RANLIB libconftest.a" >&5
8711 $RANLIB libconftest.a 2>&5
8712 cat > conftest.c << _LT_EOF
8713int main() { return 0;}
8714_LT_EOF
8715 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8716 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8717 _lt_result=$?
8718 if test -s conftest.err && $GREP force_load conftest.err; then
8719 cat conftest.err >&5
8720 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8721 lt_cv_ld_force_load=yes
8722 else
8723 cat conftest.err >&5
8724 fi
8725 rm -f conftest.err libconftest.a conftest conftest.c
8726 rm -rf conftest.dSYM
8727
8728fi
8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8730printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8731 case $host_os in
8732 rhapsody* | darwin1.[012])
8733 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8734 darwin1.*)
8735 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8736 darwin*) # darwin 5.x on
8737 # if running on 10.5 or later, the deployment target defaults
8738 # to the OS version, if on x86, and 10.4, the deployment
8739 # target defaults to 10.4. Don't you love it?
8740 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8741 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8742 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8743 10.[012][,.]*)
8744 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8745 10.*)
8746 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8747 esac
8748 ;;
8749 esac
8750 if test yes = "$lt_cv_apple_cc_single_mod"; then
8751 _lt_dar_single_mod='$single_module'
8752 fi
8753 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8754 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8755 else
8756 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8757 fi
8758 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8759 _lt_dsymutil='~$DSYMUTIL $lib || :'
8760 else
8761 _lt_dsymutil=
8762 fi
8763 ;;
8764 esac
8765
8766# func_munge_path_list VARIABLE PATH
8767# -----------------------------------
8768# VARIABLE is name of variable containing _space_ separated list of
8769# directories to be munged by the contents of PATH, which is string
8770# having a format:
8771# "DIR[:DIR]:"
8772# string "DIR[ DIR]" will be prepended to VARIABLE
8773# ":DIR[:DIR]"
8774# string "DIR[ DIR]" will be appended to VARIABLE
8775# "DIRP[:DIRP]::[DIRA:]DIRA"
8776# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8777# "DIRA[ DIRA]" will be appended to VARIABLE
8778# "DIR[:DIR]"
8779# VARIABLE will be replaced by "DIR[ DIR]"
8780func_munge_path_list ()
8781{
8782 case x$2 in
8783 x)
8784 ;;
8785 *:)
8786 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8787 ;;
8788 x:*)
8789 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8790 ;;
8791 *::*)
8792 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8793 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8794 ;;
8795 *)
8796 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8797 ;;
8798 esac
8799}
8800
8801ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8802"
8803if test "x$ac_cv_header_dlfcn_h" = xyes
8804then :
8805 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8806
8807fi
8808
8809
8810
8811
8812
8813# Set options
8814enable_win32_dll=yes
8815
8816case $host in
8817*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8818 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8820set dummy ${ac_tool_prefix}as; ac_word=$2
8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822printf %s "checking for $ac_word... " >&6; }
8823if test ${ac_cv_prog_AS+y}
8824then :
8825 printf %s "(cached) " >&6
8826else $as_nop
8827 if test -n "$AS"; then
8828 ac_cv_prog_AS="$AS" # Let the user override the test.
8829else
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 case $as_dir in #(((
8835 '') as_dir=./ ;;
8836 */) ;;
8837 *) as_dir=$as_dir/ ;;
8838 esac
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_AS="${ac_tool_prefix}as"
8842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845done
8846 done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851AS=$ac_cv_prog_AS
8852if test -n "$AS"; then
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8854printf "%s\n" "$AS" >&6; }
8855else
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857printf "%s\n" "no" >&6; }
8858fi
8859
8860
8861fi
8862if test -z "$ac_cv_prog_AS"; then
8863 ac_ct_AS=$AS
8864 # Extract the first word of "as", so it can be a program name with args.
8865set dummy as; ac_word=$2
8866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867printf %s "checking for $ac_word... " >&6; }
8868if test ${ac_cv_prog_ac_ct_AS+y}
8869then :
8870 printf %s "(cached) " >&6
8871else $as_nop
8872 if test -n "$ac_ct_AS"; then
8873 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8874else
8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878 IFS=$as_save_IFS
8879 case $as_dir in #(((
8880 '') as_dir=./ ;;
8881 */) ;;
8882 *) as_dir=$as_dir/ ;;
8883 esac
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_ac_ct_AS="as"
8887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8888 break 2
8889 fi
8890done
8891 done
8892IFS=$as_save_IFS
8893
8894fi
8895fi
8896ac_ct_AS=$ac_cv_prog_ac_ct_AS
8897if test -n "$ac_ct_AS"; then
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8899printf "%s\n" "$ac_ct_AS" >&6; }
8900else
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902printf "%s\n" "no" >&6; }
8903fi
8904
8905 if test "x$ac_ct_AS" = x; then
8906 AS="false"
8907 else
8908 case $cross_compiling:$ac_tool_warned in
8909yes:)
8910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8912ac_tool_warned=yes ;;
8913esac
8914 AS=$ac_ct_AS
8915 fi
8916else
8917 AS="$ac_cv_prog_AS"
8918fi
8919
8920 if test -n "$ac_tool_prefix"; then
8921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8922set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924printf %s "checking for $ac_word... " >&6; }
8925if test ${ac_cv_prog_DLLTOOL+y}
8926then :
8927 printf %s "(cached) " >&6
8928else $as_nop
8929 if test -n "$DLLTOOL"; then
8930 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8931else
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 case $as_dir in #(((
8937 '') as_dir=./ ;;
8938 */) ;;
8939 *) as_dir=$as_dir/ ;;
8940 esac
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948 done
8949IFS=$as_save_IFS
8950
8951fi
8952fi
8953DLLTOOL=$ac_cv_prog_DLLTOOL
8954if test -n "$DLLTOOL"; then
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8956printf "%s\n" "$DLLTOOL" >&6; }
8957else
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959printf "%s\n" "no" >&6; }
8960fi
8961
8962
8963fi
8964if test -z "$ac_cv_prog_DLLTOOL"; then
8965 ac_ct_DLLTOOL=$DLLTOOL
8966 # Extract the first word of "dlltool", so it can be a program name with args.
8967set dummy dlltool; ac_word=$2
8968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969printf %s "checking for $ac_word... " >&6; }
8970if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8971then :
8972 printf %s "(cached) " >&6
8973else $as_nop
8974 if test -n "$ac_ct_DLLTOOL"; then
8975 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 case $as_dir in #(((
8982 '') as_dir=./ ;;
8983 */) ;;
8984 *) as_dir=$as_dir/ ;;
8985 esac
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8988 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8990 break 2
8991 fi
8992done
8993 done
8994IFS=$as_save_IFS
8995
8996fi
8997fi
8998ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8999if test -n "$ac_ct_DLLTOOL"; then
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9001printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9002else
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004printf "%s\n" "no" >&6; }
9005fi
9006
9007 if test "x$ac_ct_DLLTOOL" = x; then
9008 DLLTOOL="false"
9009 else
9010 case $cross_compiling:$ac_tool_warned in
9011yes:)
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9013printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9014ac_tool_warned=yes ;;
9015esac
9016 DLLTOOL=$ac_ct_DLLTOOL
9017 fi
9018else
9019 DLLTOOL="$ac_cv_prog_DLLTOOL"
9020fi
9021
9022 if test -n "$ac_tool_prefix"; then
9023 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9024set dummy ${ac_tool_prefix}objdump; ac_word=$2
9025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026printf %s "checking for $ac_word... " >&6; }
9027if test ${ac_cv_prog_OBJDUMP+y}
9028then :
9029 printf %s "(cached) " >&6
9030else $as_nop
9031 if test -n "$OBJDUMP"; then
9032 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9033else
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 case $as_dir in #(((
9039 '') as_dir=./ ;;
9040 */) ;;
9041 *) as_dir=$as_dir/ ;;
9042 esac
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9047 break 2
9048 fi
9049done
9050 done
9051IFS=$as_save_IFS
9052
9053fi
9054fi
9055OBJDUMP=$ac_cv_prog_OBJDUMP
9056if test -n "$OBJDUMP"; then
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9058printf "%s\n" "$OBJDUMP" >&6; }
9059else
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061printf "%s\n" "no" >&6; }
9062fi
9063
9064
9065fi
9066if test -z "$ac_cv_prog_OBJDUMP"; then
9067 ac_ct_OBJDUMP=$OBJDUMP
9068 # Extract the first word of "objdump", so it can be a program name with args.
9069set dummy objdump; ac_word=$2
9070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071printf %s "checking for $ac_word... " >&6; }
9072if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9073then :
9074 printf %s "(cached) " >&6
9075else $as_nop
9076 if test -n "$ac_ct_OBJDUMP"; then
9077 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9078else
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 case $as_dir in #(((
9084 '') as_dir=./ ;;
9085 */) ;;
9086 *) as_dir=$as_dir/ ;;
9087 esac
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9090 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9092 break 2
9093 fi
9094done
9095 done
9096IFS=$as_save_IFS
9097
9098fi
9099fi
9100ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9101if test -n "$ac_ct_OBJDUMP"; then
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9103printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9104else
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106printf "%s\n" "no" >&6; }
9107fi
9108
9109 if test "x$ac_ct_OBJDUMP" = x; then
9110 OBJDUMP="false"
9111 else
9112 case $cross_compiling:$ac_tool_warned in
9113yes:)
9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9115printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9116ac_tool_warned=yes ;;
9117esac
9118 OBJDUMP=$ac_ct_OBJDUMP
9119 fi
9120else
9121 OBJDUMP="$ac_cv_prog_OBJDUMP"
9122fi
9123
9124 ;;
9125esac
9126
9127test -z "$AS" && AS=as
9128
9129
9130
9131
9132
9133test -z "$DLLTOOL" && DLLTOOL=dlltool
9134
9135
9136
9137
9138
9139test -z "$OBJDUMP" && OBJDUMP=objdump
9140
9141
9142
9143
9144
9145
9146
9147 enable_dlopen=no
9148
9149
9150
9151 # Check whether --enable-shared was given.
9152if test ${enable_shared+y}
9153then :
9154 enableval=$enable_shared; p=${PACKAGE-default}
9155 case $enableval in
9156 yes) enable_shared=yes ;;
9157 no) enable_shared=no ;;
9158 *)
9159 enable_shared=no
9160 # Look at the argument we got. We use all the common list separators.
9161 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9162 for pkg in $enableval; do
9163 IFS=$lt_save_ifs
9164 if test "X$pkg" = "X$p"; then
9165 enable_shared=yes
9166 fi
9167 done
9168 IFS=$lt_save_ifs
9169 ;;
9170 esac
9171else $as_nop
9172 enable_shared=yes
9173fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 # Check whether --enable-static was given.
9184if test ${enable_static+y}
9185then :
9186 enableval=$enable_static; p=${PACKAGE-default}
9187 case $enableval in
9188 yes) enable_static=yes ;;
9189 no) enable_static=no ;;
9190 *)
9191 enable_static=no
9192 # Look at the argument we got. We use all the common list separators.
9193 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9194 for pkg in $enableval; do
9195 IFS=$lt_save_ifs
9196 if test "X$pkg" = "X$p"; then
9197 enable_static=yes
9198 fi
9199 done
9200 IFS=$lt_save_ifs
9201 ;;
9202 esac
9203else $as_nop
9204 enable_static=yes
9205fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216# Check whether --with-pic was given.
9217if test ${with_pic+y}
9218then :
9219 withval=$with_pic; lt_p=${PACKAGE-default}
9220 case $withval in
9221 yes|no) pic_mode=$withval ;;
9222 *)
9223 pic_mode=default
9224 # Look at the argument we got. We use all the common list separators.
9225 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9226 for lt_pkg in $withval; do
9227 IFS=$lt_save_ifs
9228 if test "X$lt_pkg" = "X$lt_p"; then
9229 pic_mode=yes
9230 fi
9231 done
9232 IFS=$lt_save_ifs
9233 ;;
9234 esac
9235else $as_nop
9236 pic_mode=default
9237fi
9238
9239
9240
9241
9242
9243
9244
9245
9246 # Check whether --enable-fast-install was given.
9247if test ${enable_fast_install+y}
9248then :
9249 enableval=$enable_fast_install; p=${PACKAGE-default}
9250 case $enableval in
9251 yes) enable_fast_install=yes ;;
9252 no) enable_fast_install=no ;;
9253 *)
9254 enable_fast_install=no
9255 # Look at the argument we got. We use all the common list separators.
9256 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9257 for pkg in $enableval; do
9258 IFS=$lt_save_ifs
9259 if test "X$pkg" = "X$p"; then
9260 enable_fast_install=yes
9261 fi
9262 done
9263 IFS=$lt_save_ifs
9264 ;;
9265 esac
9266else $as_nop
9267 enable_fast_install=yes
9268fi
9269
9270
9271
9272
9273
9274
9275
9276
9277 shared_archive_member_spec=
9278case $host,$enable_shared in
9279power*-*-aix[5-9]*,yes)
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9281printf %s "checking which variant of shared library versioning to provide... " >&6; }
9282
9283# Check whether --with-aix-soname was given.
9284if test ${with_aix_soname+y}
9285then :
9286 withval=$with_aix_soname; case $withval in
9287 aix|svr4|both)
9288 ;;
9289 *)
9290 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9291 ;;
9292 esac
9293 lt_cv_with_aix_soname=$with_aix_soname
9294else $as_nop
9295 if test ${lt_cv_with_aix_soname+y}
9296then :
9297 printf %s "(cached) " >&6
9298else $as_nop
9299 lt_cv_with_aix_soname=aix
9300fi
9301
9302 with_aix_soname=$lt_cv_with_aix_soname
9303fi
9304
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9306printf "%s\n" "$with_aix_soname" >&6; }
9307 if test aix != "$with_aix_soname"; then
9308 # For the AIX way of multilib, we name the shared archive member
9309 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9310 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9311 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9312 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9313 if test 64 = "${OBJECT_MODE-32}"; then
9314 shared_archive_member_spec=shr_64
9315 else
9316 shared_archive_member_spec=shr
9317 fi
9318 fi
9319 ;;
9320*)
9321 with_aix_soname=aix
9322 ;;
9323esac
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334# This can be used to rebuild libtool when needed
9335LIBTOOL_DEPS=$ltmain
9336
9337# Always use our own libtool.
9338LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369test -z "$LN_S" && LN_S="ln -s"
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384if test -n "${ZSH_VERSION+set}"; then
9385 setopt NO_GLOB_SUBST
9386fi
9387
9388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9389printf %s "checking for objdir... " >&6; }
9390if test ${lt_cv_objdir+y}
9391then :
9392 printf %s "(cached) " >&6
9393else $as_nop
9394 rm -f .libs 2>/dev/null
9395mkdir .libs 2>/dev/null
9396if test -d .libs; then
9397 lt_cv_objdir=.libs
9398else
9399 # MS-DOS does not allow filenames that begin with a dot.
9400 lt_cv_objdir=_libs
9401fi
9402rmdir .libs 2>/dev/null
9403fi
9404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9405printf "%s\n" "$lt_cv_objdir" >&6; }
9406objdir=$lt_cv_objdir
9407
9408
9409
9410
9411
9412printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9413
9414
9415
9416
9417case $host_os in
9418aix3*)
9419 # AIX sometimes has problems with the GCC collect2 program. For some
9420 # reason, if we set the COLLECT_NAMES environment variable, the problems
9421 # vanish in a puff of smoke.
9422 if test set != "${COLLECT_NAMES+set}"; then
9423 COLLECT_NAMES=
9424 export COLLECT_NAMES
9425 fi
9426 ;;
9427esac
9428
9429# Global variables:
9430ofile=libtool
9431can_build_shared=yes
9432
9433# All known linkers require a '.a' archive for static linking (except MSVC and
9434# ICC, which need '.lib').
9435libext=a
9436
9437with_gnu_ld=$lt_cv_prog_gnu_ld
9438
9439old_CC=$CC
9440old_CFLAGS=$CFLAGS
9441
9442# Set sane defaults for various variables
9443test -z "$CC" && CC=cc
9444test -z "$LTCC" && LTCC=$CC
9445test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9446test -z "$LD" && LD=ld
9447test -z "$ac_objext" && ac_objext=o
9448
9449func_cc_basename $compiler
9450cc_basename=$func_cc_basename_result
9451
9452
9453# Only perform the check for file, if the check method requires it
9454test -z "$MAGIC_CMD" && MAGIC_CMD=file
9455case $deplibs_check_method in
9456file_magic*)
9457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9459printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9460if test ${lt_cv_path_MAGIC_CMD+y}
9461then :
9462 printf %s "(cached) " >&6
9463else $as_nop
9464 case $MAGIC_CMD in
9465[\\/*] | ?:[\\/]*)
9466 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9467 ;;
9468*)
9469 lt_save_MAGIC_CMD=$MAGIC_CMD
9470 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9472 for ac_dir in $ac_dummy; do
9473 IFS=$lt_save_ifs
9474 test -z "$ac_dir" && ac_dir=.
9475 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9476 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9477 if test -n "$file_magic_test_file"; then
9478 case $deplibs_check_method in
9479 "file_magic "*)
9480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9481 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9483 $EGREP "$file_magic_regex" > /dev/null; then
9484 :
9485 else
9486 cat <<_LT_EOF 1>&2
9487
9488*** Warning: the command libtool uses to detect shared libraries,
9489*** $file_magic_cmd, produces output that libtool cannot recognize.
9490*** The result is that libtool may fail to recognize shared libraries
9491*** as such. This will affect the creation of libtool libraries that
9492*** depend on shared libraries, but programs linked with such libtool
9493*** libraries will work regardless of this problem. Nevertheless, you
9494*** may want to report the problem to your system manager and/or to
9495*** bug-libtool@gnu.org
9496
9497_LT_EOF
9498 fi ;;
9499 esac
9500 fi
9501 break
9502 fi
9503 done
9504 IFS=$lt_save_ifs
9505 MAGIC_CMD=$lt_save_MAGIC_CMD
9506 ;;
9507esac
9508fi
9509
9510MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511if test -n "$MAGIC_CMD"; then
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9513printf "%s\n" "$MAGIC_CMD" >&6; }
9514else
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516printf "%s\n" "no" >&6; }
9517fi
9518
9519
9520
9521
9522
9523if test -z "$lt_cv_path_MAGIC_CMD"; then
9524 if test -n "$ac_tool_prefix"; then
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9526printf %s "checking for file... " >&6; }
9527if test ${lt_cv_path_MAGIC_CMD+y}
9528then :
9529 printf %s "(cached) " >&6
9530else $as_nop
9531 case $MAGIC_CMD in
9532[\\/*] | ?:[\\/]*)
9533 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9534 ;;
9535*)
9536 lt_save_MAGIC_CMD=$MAGIC_CMD
9537 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9539 for ac_dir in $ac_dummy; do
9540 IFS=$lt_save_ifs
9541 test -z "$ac_dir" && ac_dir=.
9542 if test -f "$ac_dir/file"; then
9543 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9544 if test -n "$file_magic_test_file"; then
9545 case $deplibs_check_method in
9546 "file_magic "*)
9547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9548 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9550 $EGREP "$file_magic_regex" > /dev/null; then
9551 :
9552 else
9553 cat <<_LT_EOF 1>&2
9554
9555*** Warning: the command libtool uses to detect shared libraries,
9556*** $file_magic_cmd, produces output that libtool cannot recognize.
9557*** The result is that libtool may fail to recognize shared libraries
9558*** as such. This will affect the creation of libtool libraries that
9559*** depend on shared libraries, but programs linked with such libtool
9560*** libraries will work regardless of this problem. Nevertheless, you
9561*** may want to report the problem to your system manager and/or to
9562*** bug-libtool@gnu.org
9563
9564_LT_EOF
9565 fi ;;
9566 esac
9567 fi
9568 break
9569 fi
9570 done
9571 IFS=$lt_save_ifs
9572 MAGIC_CMD=$lt_save_MAGIC_CMD
9573 ;;
9574esac
9575fi
9576
9577MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9578if test -n "$MAGIC_CMD"; then
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9580printf "%s\n" "$MAGIC_CMD" >&6; }
9581else
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583printf "%s\n" "no" >&6; }
9584fi
9585
9586
9587 else
9588 MAGIC_CMD=:
9589 fi
9590fi
9591
9592 fi
9593 ;;
9594esac
9595
9596# Use C for the default configuration in the libtool script
9597
9598lt_save_CC=$CC
9599ac_ext=c
9600ac_cpp='$CPP $CPPFLAGS'
9601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603ac_compiler_gnu=$ac_cv_c_compiler_gnu
9604
9605
9606# Source file extension for C test sources.
9607ac_ext=c
9608
9609# Object file extension for compiled C test sources.
9610objext=o
9611objext=$objext
9612
9613# Code to be used in simple compile tests
9614lt_simple_compile_test_code="int some_variable = 0;"
9615
9616# Code to be used in simple link tests
9617lt_simple_link_test_code='int main(){return(0);}'
9618
9619
9620
9621
9622
9623
9624
9625# If no C compiler was specified, use CC.
9626LTCC=${LTCC-"$CC"}
9627
9628# If no C compiler flags were specified, use CFLAGS.
9629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9630
9631# Allow CC to be a program name with arguments.
9632compiler=$CC
9633
9634# Save the default compiler, since it gets overwritten when the other
9635# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9636compiler_DEFAULT=$CC
9637
9638# save warnings/boilerplate of simple test code
9639ac_outfile=conftest.$ac_objext
9640echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9642_lt_compiler_boilerplate=`cat conftest.err`
9643$RM conftest*
9644
9645ac_outfile=conftest.$ac_objext
9646echo "$lt_simple_link_test_code" >conftest.$ac_ext
9647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9648_lt_linker_boilerplate=`cat conftest.err`
9649$RM -r conftest*
9650
9651
9652## CAVEAT EMPTOR:
9653## There is no encapsulation within the following macros, do not change
9654## the running order or otherwise move them around unless you know exactly
9655## what you are doing...
9656if test -n "$compiler"; then
9657
9658lt_prog_compiler_no_builtin_flag=
9659
9660if test yes = "$GCC"; then
9661 case $cc_basename in
9662 nvcc*)
9663 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9664 *)
9665 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9666 esac
9667
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9669printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9670if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9671then :
9672 printf %s "(cached) " >&6
9673else $as_nop
9674 lt_cv_prog_compiler_rtti_exceptions=no
9675 ac_outfile=conftest.$ac_objext
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9678 # Insert the option either (1) after the last *FLAGS variable, or
9679 # (2) before a word containing "conftest.", or (3) at the end.
9680 # Note that $ac_compile itself does not contain backslashes and begins
9681 # with a dollar sign (not a hyphen), so the echo should work correctly.
9682 # The option is referenced via a variable to avoid confusing sed.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>conftest.err)
9689 ac_status=$?
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s "$ac_outfile"; then
9693 # The compiler can only warn and ignore the option if not recognized
9694 # So say no if there are warnings other than the usual output.
9695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698 lt_cv_prog_compiler_rtti_exceptions=yes
9699 fi
9700 fi
9701 $RM conftest*
9702
9703fi
9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9705printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9706
9707if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9708 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9709else
9710 :
9711fi
9712
9713fi
9714
9715
9716
9717
9718
9719
9720 lt_prog_compiler_wl=
9721lt_prog_compiler_pic=
9722lt_prog_compiler_static=
9723
9724
9725 if test yes = "$GCC"; then
9726 lt_prog_compiler_wl='-Wl,'
9727 lt_prog_compiler_static='-static'
9728
9729 case $host_os in
9730 aix*)
9731 # All AIX code is PIC.
9732 if test ia64 = "$host_cpu"; then
9733 # AIX 5 now supports IA64 processor
9734 lt_prog_compiler_static='-Bstatic'
9735 fi
9736 lt_prog_compiler_pic='-fPIC'
9737 ;;
9738
9739 amigaos*)
9740 case $host_cpu in
9741 powerpc)
9742 # see comment about AmigaOS4 .so support
9743 lt_prog_compiler_pic='-fPIC'
9744 ;;
9745 m68k)
9746 # FIXME: we need at least 68020 code to build shared libraries, but
9747 # adding the '-m68020' flag to GCC prevents building anything better,
9748 # like '-m68040'.
9749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9750 ;;
9751 esac
9752 ;;
9753
9754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9755 # PIC is the default for these OSes.
9756 ;;
9757
9758 mingw* | cygwin* | pw32* | os2* | cegcc*)
9759 # This hack is so that the source file can tell whether it is being
9760 # built for inclusion in a dll (and should export symbols for example).
9761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9762 # (--disable-auto-import) libraries
9763 lt_prog_compiler_pic='-DDLL_EXPORT'
9764 case $host_os in
9765 os2*)
9766 lt_prog_compiler_static='$wl-static'
9767 ;;
9768 esac
9769 ;;
9770
9771 darwin* | rhapsody*)
9772 # PIC is the default on this platform
9773 # Common symbols not allowed in MH_DYLIB files
9774 lt_prog_compiler_pic='-fno-common'
9775 ;;
9776
9777 haiku*)
9778 # PIC is the default for Haiku.
9779 # The "-static" flag exists, but is broken.
9780 lt_prog_compiler_static=
9781 ;;
9782
9783 hpux*)
9784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9786 # sets the default TLS model and affects inlining.
9787 case $host_cpu in
9788 hppa*64*)
9789 # +Z the default
9790 ;;
9791 *)
9792 lt_prog_compiler_pic='-fPIC'
9793 ;;
9794 esac
9795 ;;
9796
9797 interix[3-9]*)
9798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9799 # Instead, we relocate shared libraries at runtime.
9800 ;;
9801
9802 msdosdjgpp*)
9803 # Just because we use GCC doesn't mean we suddenly get shared libraries
9804 # on systems that don't support them.
9805 lt_prog_compiler_can_build_shared=no
9806 enable_shared=no
9807 ;;
9808
9809 *nto* | *qnx*)
9810 # QNX uses GNU C++, but need to define -shared option too, otherwise
9811 # it will coredump.
9812 lt_prog_compiler_pic='-fPIC -shared'
9813 ;;
9814
9815 sysv4*MP*)
9816 if test -d /usr/nec; then
9817 lt_prog_compiler_pic=-Kconform_pic
9818 fi
9819 ;;
9820
9821 *)
9822 lt_prog_compiler_pic='-fPIC'
9823 ;;
9824 esac
9825
9826 case $cc_basename in
9827 nvcc*) # Cuda Compiler Driver 2.2
9828 lt_prog_compiler_wl='-Xlinker '
9829 if test -n "$lt_prog_compiler_pic"; then
9830 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9831 fi
9832 ;;
9833 esac
9834 else
9835 # PORTME Check for flag to pass linker flags through the system compiler.
9836 case $host_os in
9837 aix*)
9838 lt_prog_compiler_wl='-Wl,'
9839 if test ia64 = "$host_cpu"; then
9840 # AIX 5 now supports IA64 processor
9841 lt_prog_compiler_static='-Bstatic'
9842 else
9843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9844 fi
9845 ;;
9846
9847 darwin* | rhapsody*)
9848 # PIC is the default on this platform
9849 # Common symbols not allowed in MH_DYLIB files
9850 lt_prog_compiler_pic='-fno-common'
9851 case $cc_basename in
9852 nagfor*)
9853 # NAG Fortran compiler
9854 lt_prog_compiler_wl='-Wl,-Wl,,'
9855 lt_prog_compiler_pic='-PIC'
9856 lt_prog_compiler_static='-Bstatic'
9857 ;;
9858 esac
9859 ;;
9860
9861 mingw* | cygwin* | pw32* | os2* | cegcc*)
9862 # This hack is so that the source file can tell whether it is being
9863 # built for inclusion in a dll (and should export symbols for example).
9864 lt_prog_compiler_pic='-DDLL_EXPORT'
9865 case $host_os in
9866 os2*)
9867 lt_prog_compiler_static='$wl-static'
9868 ;;
9869 esac
9870 ;;
9871
9872 hpux9* | hpux10* | hpux11*)
9873 lt_prog_compiler_wl='-Wl,'
9874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9875 # not for PA HP-UX.
9876 case $host_cpu in
9877 hppa*64*|ia64*)
9878 # +Z the default
9879 ;;
9880 *)
9881 lt_prog_compiler_pic='+Z'
9882 ;;
9883 esac
9884 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9885 lt_prog_compiler_static='$wl-a ${wl}archive'
9886 ;;
9887
9888 irix5* | irix6* | nonstopux*)
9889 lt_prog_compiler_wl='-Wl,'
9890 # PIC (with -KPIC) is the default.
9891 lt_prog_compiler_static='-non_shared'
9892 ;;
9893
9894 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9895 case $cc_basename in
9896 # old Intel for x86_64, which still supported -KPIC.
9897 ecc*)
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-KPIC'
9900 lt_prog_compiler_static='-static'
9901 ;;
9902 # icc used to be incompatible with GCC.
9903 # ICC 10 doesn't accept -KPIC any more.
9904 icc* | ifort*)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-fPIC'
9907 lt_prog_compiler_static='-static'
9908 ;;
9909 # Lahey Fortran 8.1.
9910 lf95*)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='--shared'
9913 lt_prog_compiler_static='--static'
9914 ;;
9915 nagfor*)
9916 # NAG Fortran compiler
9917 lt_prog_compiler_wl='-Wl,-Wl,,'
9918 lt_prog_compiler_pic='-PIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 ;;
9921 tcc*)
9922 # Fabrice Bellard et al's Tiny C Compiler
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fPIC'
9925 lt_prog_compiler_static='-static'
9926 ;;
9927 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9928 # Portland Group compilers (*not* the Pentium gcc compiler,
9929 # which looks to be a dead project)
9930 lt_prog_compiler_wl='-Wl,'
9931 lt_prog_compiler_pic='-fpic'
9932 lt_prog_compiler_static='-Bstatic'
9933 ;;
9934 ccc*)
9935 lt_prog_compiler_wl='-Wl,'
9936 # All Alpha code is PIC.
9937 lt_prog_compiler_static='-non_shared'
9938 ;;
9939 xl* | bgxl* | bgf* | mpixl*)
9940 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9941 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-qpic'
9943 lt_prog_compiler_static='-qstaticlink'
9944 ;;
9945 *)
9946 case `$CC -V 2>&1 | sed 5q` in
9947 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9948 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9949 lt_prog_compiler_pic='-KPIC'
9950 lt_prog_compiler_static='-Bstatic'
9951 lt_prog_compiler_wl=''
9952 ;;
9953 *Sun\ F* | *Sun*Fortran*)
9954 lt_prog_compiler_pic='-KPIC'
9955 lt_prog_compiler_static='-Bstatic'
9956 lt_prog_compiler_wl='-Qoption ld '
9957 ;;
9958 *Sun\ C*)
9959 # Sun C 5.9
9960 lt_prog_compiler_pic='-KPIC'
9961 lt_prog_compiler_static='-Bstatic'
9962 lt_prog_compiler_wl='-Wl,'
9963 ;;
9964 *Intel*\ [CF]*Compiler*)
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_pic='-fPIC'
9967 lt_prog_compiler_static='-static'
9968 ;;
9969 *Portland\ Group*)
9970 lt_prog_compiler_wl='-Wl,'
9971 lt_prog_compiler_pic='-fpic'
9972 lt_prog_compiler_static='-Bstatic'
9973 ;;
9974 esac
9975 ;;
9976 esac
9977 ;;
9978
9979 newsos6)
9980 lt_prog_compiler_pic='-KPIC'
9981 lt_prog_compiler_static='-Bstatic'
9982 ;;
9983
9984 *nto* | *qnx*)
9985 # QNX uses GNU C++, but need to define -shared option too, otherwise
9986 # it will coredump.
9987 lt_prog_compiler_pic='-fPIC -shared'
9988 ;;
9989
9990 osf3* | osf4* | osf5*)
9991 lt_prog_compiler_wl='-Wl,'
9992 # All OSF/1 code is PIC.
9993 lt_prog_compiler_static='-non_shared'
9994 ;;
9995
9996 rdos*)
9997 lt_prog_compiler_static='-non_shared'
9998 ;;
9999
10000 solaris*)
10001 lt_prog_compiler_pic='-KPIC'
10002 lt_prog_compiler_static='-Bstatic'
10003 case $cc_basename in
10004 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10005 lt_prog_compiler_wl='-Qoption ld ';;
10006 *)
10007 lt_prog_compiler_wl='-Wl,';;
10008 esac
10009 ;;
10010
10011 sunos4*)
10012 lt_prog_compiler_wl='-Qoption ld '
10013 lt_prog_compiler_pic='-PIC'
10014 lt_prog_compiler_static='-Bstatic'
10015 ;;
10016
10017 sysv4 | sysv4.2uw2* | sysv4.3*)
10018 lt_prog_compiler_wl='-Wl,'
10019 lt_prog_compiler_pic='-KPIC'
10020 lt_prog_compiler_static='-Bstatic'
10021 ;;
10022
10023 sysv4*MP*)
10024 if test -d /usr/nec; then
10025 lt_prog_compiler_pic='-Kconform_pic'
10026 lt_prog_compiler_static='-Bstatic'
10027 fi
10028 ;;
10029
10030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10031 lt_prog_compiler_wl='-Wl,'
10032 lt_prog_compiler_pic='-KPIC'
10033 lt_prog_compiler_static='-Bstatic'
10034 ;;
10035
10036 unicos*)
10037 lt_prog_compiler_wl='-Wl,'
10038 lt_prog_compiler_can_build_shared=no
10039 ;;
10040
10041 uts4*)
10042 lt_prog_compiler_pic='-pic'
10043 lt_prog_compiler_static='-Bstatic'
10044 ;;
10045
10046 *)
10047 lt_prog_compiler_can_build_shared=no
10048 ;;
10049 esac
10050 fi
10051
10052case $host_os in
10053 # For platforms that do not support PIC, -DPIC is meaningless:
10054 *djgpp*)
10055 lt_prog_compiler_pic=
10056 ;;
10057 *)
10058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10059 ;;
10060esac
10061
10062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10063printf %s "checking for $compiler option to produce PIC... " >&6; }
10064if test ${lt_cv_prog_compiler_pic+y}
10065then :
10066 printf %s "(cached) " >&6
10067else $as_nop
10068 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10069fi
10070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10071printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10072lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10073
10074#
10075# Check to make sure the PIC flag actually works.
10076#
10077if test -n "$lt_prog_compiler_pic"; then
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10079printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10080if test ${lt_cv_prog_compiler_pic_works+y}
10081then :
10082 printf %s "(cached) " >&6
10083else $as_nop
10084 lt_cv_prog_compiler_pic_works=no
10085 ac_outfile=conftest.$ac_objext
10086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10087 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10088 # Insert the option either (1) after the last *FLAGS variable, or
10089 # (2) before a word containing "conftest.", or (3) at the end.
10090 # Note that $ac_compile itself does not contain backslashes and begins
10091 # with a dollar sign (not a hyphen), so the echo should work correctly.
10092 # The option is referenced via a variable to avoid confusing sed.
10093 lt_compile=`echo "$ac_compile" | $SED \
10094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10096 -e 's:$: $lt_compiler_flag:'`
10097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10098 (eval "$lt_compile" 2>conftest.err)
10099 ac_status=$?
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 if (exit $ac_status) && test -s "$ac_outfile"; then
10103 # The compiler can only warn and ignore the option if not recognized
10104 # So say no if there are warnings other than the usual output.
10105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10108 lt_cv_prog_compiler_pic_works=yes
10109 fi
10110 fi
10111 $RM conftest*
10112
10113fi
10114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10115printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10116
10117if test yes = "$lt_cv_prog_compiler_pic_works"; then
10118 case $lt_prog_compiler_pic in
10119 "" | " "*) ;;
10120 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10121 esac
10122else
10123 lt_prog_compiler_pic=
10124 lt_prog_compiler_can_build_shared=no
10125fi
10126
10127fi
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139#
10140# Check to make sure the static flag actually works.
10141#
10142wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10144printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10145if test ${lt_cv_prog_compiler_static_works+y}
10146then :
10147 printf %s "(cached) " >&6
10148else $as_nop
10149 lt_cv_prog_compiler_static_works=no
10150 save_LDFLAGS=$LDFLAGS
10151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10154 # The linker can only warn and ignore the option if not recognized
10155 # So say no if there are warnings
10156 if test -s conftest.err; then
10157 # Append any errors to the config.log.
10158 cat conftest.err 1>&5
10159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161 if diff conftest.exp conftest.er2 >/dev/null; then
10162 lt_cv_prog_compiler_static_works=yes
10163 fi
10164 else
10165 lt_cv_prog_compiler_static_works=yes
10166 fi
10167 fi
10168 $RM -r conftest*
10169 LDFLAGS=$save_LDFLAGS
10170
10171fi
10172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10173printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10174
10175if test yes = "$lt_cv_prog_compiler_static_works"; then
10176 :
10177else
10178 lt_prog_compiler_static=
10179fi
10180
10181
10182
10183
10184
10185
10186
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189if test ${lt_cv_prog_compiler_c_o+y}
10190then :
10191 printf %s "(cached) " >&6
10192else $as_nop
10193 lt_cv_prog_compiler_c_o=no
10194 $RM -r conftest 2>/dev/null
10195 mkdir conftest
10196 cd conftest
10197 mkdir out
10198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199
10200 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
10206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10208 -e 's:$: $lt_compiler_flag:'`
10209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10210 (eval "$lt_compile" 2>out/conftest.err)
10211 ac_status=$?
10212 cat out/conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10215 then
10216 # The compiler can only warn and ignore the option if not recognized
10217 # So say no if there are warnings
10218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10221 lt_cv_prog_compiler_c_o=yes
10222 fi
10223 fi
10224 chmod u+w . 2>&5
10225 $RM conftest*
10226 # SGI C++ compiler will create directory out/ii_files/ for
10227 # template instantiation
10228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10229 $RM out/* && rmdir out
10230 cd ..
10231 $RM -r conftest
10232 $RM conftest*
10233
10234fi
10235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10236printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10237
10238
10239
10240
10241
10242
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10244printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10245if test ${lt_cv_prog_compiler_c_o+y}
10246then :
10247 printf %s "(cached) " >&6
10248else $as_nop
10249 lt_cv_prog_compiler_c_o=no
10250 $RM -r conftest 2>/dev/null
10251 mkdir conftest
10252 cd conftest
10253 mkdir out
10254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255
10256 lt_compiler_flag="-o out/conftest2.$ac_objext"
10257 # Insert the option either (1) after the last *FLAGS variable, or
10258 # (2) before a word containing "conftest.", or (3) at the end.
10259 # Note that $ac_compile itself does not contain backslashes and begins
10260 # with a dollar sign (not a hyphen), so the echo should work correctly.
10261 lt_compile=`echo "$ac_compile" | $SED \
10262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10264 -e 's:$: $lt_compiler_flag:'`
10265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10266 (eval "$lt_compile" 2>out/conftest.err)
10267 ac_status=$?
10268 cat out/conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10271 then
10272 # The compiler can only warn and ignore the option if not recognized
10273 # So say no if there are warnings
10274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10277 lt_cv_prog_compiler_c_o=yes
10278 fi
10279 fi
10280 chmod u+w . 2>&5
10281 $RM conftest*
10282 # SGI C++ compiler will create directory out/ii_files/ for
10283 # template instantiation
10284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10285 $RM out/* && rmdir out
10286 cd ..
10287 $RM -r conftest
10288 $RM conftest*
10289
10290fi
10291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10292printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10293
10294
10295
10296
10297hard_links=nottested
10298if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10299 # do not overwrite the value of need_locks provided by the user
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10301printf %s "checking if we can lock with hard links... " >&6; }
10302 hard_links=yes
10303 $RM conftest*
10304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10305 touch conftest.a
10306 ln conftest.a conftest.b 2>&5 || hard_links=no
10307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10309printf "%s\n" "$hard_links" >&6; }
10310 if test no = "$hard_links"; then
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10312printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10313 need_locks=warn
10314 fi
10315else
10316 need_locks=no
10317fi
10318
10319
10320
10321
10322
10323
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10325printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10326
10327 runpath_var=
10328 allow_undefined_flag=
10329 always_export_symbols=no
10330 archive_cmds=
10331 archive_expsym_cmds=
10332 compiler_needs_object=no
10333 enable_shared_with_static_runtimes=no
10334 export_dynamic_flag_spec=
10335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10336 hardcode_automatic=no
10337 hardcode_direct=no
10338 hardcode_direct_absolute=no
10339 hardcode_libdir_flag_spec=
10340 hardcode_libdir_separator=
10341 hardcode_minus_L=no
10342 hardcode_shlibpath_var=unsupported
10343 inherit_rpath=no
10344 link_all_deplibs=unknown
10345 module_cmds=
10346 module_expsym_cmds=
10347 old_archive_from_new_cmds=
10348 old_archive_from_expsyms_cmds=
10349 thread_safe_flag_spec=
10350 whole_archive_flag_spec=
10351 # include_expsyms should be a list of space-separated symbols to be *always*
10352 # included in the symbol list
10353 include_expsyms=
10354 # exclude_expsyms can be an extended regexp of symbols to exclude
10355 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10356 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10357 # as well as any symbol that contains 'd'.
10358 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10359 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10360 # platforms (ab)use it in PIC code, but their linkers get confused if
10361 # the symbol is explicitly referenced. Since portable code cannot
10362 # rely on this symbol name, it's probably fine to never include it in
10363 # preloaded symbol tables.
10364 # Exclude shared library initialization/finalization symbols.
10365 extract_expsyms_cmds=
10366
10367 case $host_os in
10368 cygwin* | mingw* | pw32* | cegcc*)
10369 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10370 # When not using gcc, we currently assume that we are using
10371 # Microsoft Visual C++ or Intel C++ Compiler.
10372 if test yes != "$GCC"; then
10373 with_gnu_ld=no
10374 fi
10375 ;;
10376 interix*)
10377 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10378 with_gnu_ld=yes
10379 ;;
10380 openbsd* | bitrig*)
10381 with_gnu_ld=no
10382 ;;
10383 esac
10384
10385 ld_shlibs=yes
10386
10387 # On some targets, GNU ld is compatible enough with the native linker
10388 # that we're better off using the native interface for both.
10389 lt_use_gnu_ld_interface=no
10390 if test yes = "$with_gnu_ld"; then
10391 case $host_os in
10392 aix*)
10393 # The AIX port of GNU ld has always aspired to compatibility
10394 # with the native linker. However, as the warning in the GNU ld
10395 # block says, versions before 2.19.5* couldn't really create working
10396 # shared libraries, regardless of the interface used.
10397 case `$LD -v 2>&1` in
10398 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10399 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10400 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10401 *)
10402 lt_use_gnu_ld_interface=yes
10403 ;;
10404 esac
10405 ;;
10406 *)
10407 lt_use_gnu_ld_interface=yes
10408 ;;
10409 esac
10410 fi
10411
10412 if test yes = "$lt_use_gnu_ld_interface"; then
10413 # If archive_cmds runs LD, not CC, wlarc should be empty
10414 wlarc='$wl'
10415
10416 # Set some defaults for GNU ld with shared library support. These
10417 # are reset later if shared libraries are not supported. Putting them
10418 # here allows them to be overridden if necessary.
10419 runpath_var=LD_RUN_PATH
10420 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10421 export_dynamic_flag_spec='$wl--export-dynamic'
10422 # ancient GNU ld didn't support --whole-archive et. al.
10423 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10424 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10425 else
10426 whole_archive_flag_spec=
10427 fi
10428 supports_anon_versioning=no
10429 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10430 *GNU\ gold*) supports_anon_versioning=yes ;;
10431 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10432 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10433 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10434 *\ 2.11.*) ;; # other 2.11 versions
10435 *) supports_anon_versioning=yes ;;
10436 esac
10437
10438 # See if GNU ld supports shared libraries.
10439 case $host_os in
10440 aix[3-9]*)
10441 # On AIX/PPC, the GNU linker is very broken
10442 if test ia64 != "$host_cpu"; then
10443 ld_shlibs=no
10444 cat <<_LT_EOF 1>&2
10445
10446*** Warning: the GNU linker, at least up to release 2.19, is reported
10447*** to be unable to reliably create shared libraries on AIX.
10448*** Therefore, libtool is disabling shared libraries support. If you
10449*** really care for shared libraries, you may want to install binutils
10450*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10451*** You will then need to restart the configuration process.
10452
10453_LT_EOF
10454 fi
10455 ;;
10456
10457 amigaos*)
10458 case $host_cpu in
10459 powerpc)
10460 # see comment about AmigaOS4 .so support
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10462 archive_expsym_cmds=''
10463 ;;
10464 m68k)
10465 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)'
10466 hardcode_libdir_flag_spec='-L$libdir'
10467 hardcode_minus_L=yes
10468 ;;
10469 esac
10470 ;;
10471
10472 beos*)
10473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10474 allow_undefined_flag=unsupported
10475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10476 # support --undefined. This deserves some investigation. FIXME
10477 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10478 else
10479 ld_shlibs=no
10480 fi
10481 ;;
10482
10483 cygwin* | mingw* | pw32* | cegcc*)
10484 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10485 # as there is no search path for DLLs.
10486 hardcode_libdir_flag_spec='-L$libdir'
10487 export_dynamic_flag_spec='$wl--export-all-symbols'
10488 allow_undefined_flag=unsupported
10489 always_export_symbols=no
10490 enable_shared_with_static_runtimes=yes
10491 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'
10492 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10493
10494 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10496 # If the export-symbols file already is a .def file, use it as
10497 # is; otherwise, prepend EXPORTS...
10498 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10499 cp $export_symbols $output_objdir/$soname.def;
10500 else
10501 echo EXPORTS > $output_objdir/$soname.def;
10502 cat $export_symbols >> $output_objdir/$soname.def;
10503 fi~
10504 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10505 else
10506 ld_shlibs=no
10507 fi
10508 ;;
10509
10510 haiku*)
10511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10512 link_all_deplibs=yes
10513 ;;
10514
10515 os2*)
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_minus_L=yes
10518 allow_undefined_flag=unsupported
10519 shrext_cmds=.dll
10520 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10521 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10522 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10523 $ECHO EXPORTS >> $output_objdir/$libname.def~
10524 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10526 emximp -o $lib $output_objdir/$libname.def'
10527 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10528 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10529 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10530 $ECHO EXPORTS >> $output_objdir/$libname.def~
10531 prefix_cmds="$SED"~
10532 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10533 prefix_cmds="$prefix_cmds -e 1d";
10534 fi~
10535 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10536 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10537 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10538 emximp -o $lib $output_objdir/$libname.def'
10539 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10540 enable_shared_with_static_runtimes=yes
10541 file_list_spec='@'
10542 ;;
10543
10544 interix[3-9]*)
10545 hardcode_direct=no
10546 hardcode_shlibpath_var=no
10547 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10548 export_dynamic_flag_spec='$wl-E'
10549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10550 # Instead, shared libraries are loaded at an image base (0x10000000 by
10551 # default) and relocated if they conflict, which is a slow very memory
10552 # consuming and fragmenting process. To avoid this, we pick a random,
10553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10556 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'
10557 ;;
10558
10559 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10560 tmp_diet=no
10561 if test linux-dietlibc = "$host_os"; then
10562 case $cc_basename in
10563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10564 esac
10565 fi
10566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10567 && test no = "$tmp_diet"
10568 then
10569 tmp_addflag=' $pic_flag'
10570 tmp_sharedflag='-shared'
10571 case $cc_basename,$host_cpu in
10572 pgcc*) # Portland Group C compiler
10573 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'
10574 tmp_addflag=' $pic_flag'
10575 ;;
10576 pgf77* | pgf90* | pgf95* | pgfortran*)
10577 # Portland Group f77 and f90 compilers
10578 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'
10579 tmp_addflag=' $pic_flag -Mnomain' ;;
10580 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10581 tmp_addflag=' -i_dynamic' ;;
10582 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10583 tmp_addflag=' -i_dynamic -nofor_main' ;;
10584 ifc* | ifort*) # Intel Fortran compiler
10585 tmp_addflag=' -nofor_main' ;;
10586 lf95*) # Lahey Fortran 8.1
10587 whole_archive_flag_spec=
10588 tmp_sharedflag='--shared' ;;
10589 nagfor*) # NAGFOR 5.3
10590 tmp_sharedflag='-Wl,-shared' ;;
10591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10592 tmp_sharedflag='-qmkshrobj'
10593 tmp_addflag= ;;
10594 nvcc*) # Cuda Compiler Driver 2.2
10595 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'
10596 compiler_needs_object=yes
10597 ;;
10598 esac
10599 case `$CC -V 2>&1 | sed 5q` in
10600 *Sun\ C*) # Sun C 5.9
10601 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'
10602 compiler_needs_object=yes
10603 tmp_sharedflag='-G' ;;
10604 *Sun\ F*) # Sun Fortran 8.3
10605 tmp_sharedflag='-G' ;;
10606 esac
10607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10608
10609 if test yes = "$supports_anon_versioning"; then
10610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10612 echo "local: *; };" >> $output_objdir/$libname.ver~
10613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10614 fi
10615
10616 case $cc_basename in
10617 tcc*)
10618 export_dynamic_flag_spec='-rdynamic'
10619 ;;
10620 xlf* | bgf* | bgxlf* | mpixlf*)
10621 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10622 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10624 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10625 if test yes = "$supports_anon_versioning"; then
10626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10628 echo "local: *; };" >> $output_objdir/$libname.ver~
10629 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10630 fi
10631 ;;
10632 esac
10633 else
10634 ld_shlibs=no
10635 fi
10636 ;;
10637
10638 netbsd*)
10639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10641 wlarc=
10642 else
10643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10645 fi
10646 ;;
10647
10648 solaris*)
10649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10650 ld_shlibs=no
10651 cat <<_LT_EOF 1>&2
10652
10653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10654*** create shared libraries on Solaris systems. Therefore, libtool
10655*** is disabling shared libraries support. We urge you to upgrade GNU
10656*** binutils to release 2.9.1 or newer. Another option is to modify
10657*** your PATH or compiler configuration so that the native linker is
10658*** used, and then restart.
10659
10660_LT_EOF
10661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10664 else
10665 ld_shlibs=no
10666 fi
10667 ;;
10668
10669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10670 case `$LD -v 2>&1` in
10671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10672 ld_shlibs=no
10673 cat <<_LT_EOF 1>&2
10674
10675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10676*** reliably create shared libraries on SCO systems. Therefore, libtool
10677*** is disabling shared libraries support. We urge you to upgrade GNU
10678*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10679*** your PATH or compiler configuration so that the native linker is
10680*** used, and then restart.
10681
10682_LT_EOF
10683 ;;
10684 *)
10685 # For security reasons, it is highly recommended that you always
10686 # use absolute paths for naming shared libraries, and exclude the
10687 # DT_RUNPATH tag from executables and libraries. But doing so
10688 # requires that you compile everything twice, which is a pain.
10689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10693 else
10694 ld_shlibs=no
10695 fi
10696 ;;
10697 esac
10698 ;;
10699
10700 sunos4*)
10701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10702 wlarc=
10703 hardcode_direct=yes
10704 hardcode_shlibpath_var=no
10705 ;;
10706
10707 *)
10708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10710 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10711 else
10712 ld_shlibs=no
10713 fi
10714 ;;
10715 esac
10716
10717 if test no = "$ld_shlibs"; then
10718 runpath_var=
10719 hardcode_libdir_flag_spec=
10720 export_dynamic_flag_spec=
10721 whole_archive_flag_spec=
10722 fi
10723 else
10724 # PORTME fill in a description of your system's linker (not GNU ld)
10725 case $host_os in
10726 aix3*)
10727 allow_undefined_flag=unsupported
10728 always_export_symbols=yes
10729 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'
10730 # Note: this linker hardcodes the directories in LIBPATH if there
10731 # are no directories specified by -L.
10732 hardcode_minus_L=yes
10733 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10734 # Neither direct hardcoding nor static linking is supported with a
10735 # broken collect2.
10736 hardcode_direct=unsupported
10737 fi
10738 ;;
10739
10740 aix[4-9]*)
10741 if test ia64 = "$host_cpu"; then
10742 # On IA64, the linker does run time linking by default, so we don't
10743 # have to do anything special.
10744 aix_use_runtimelinking=no
10745 exp_sym_flag='-Bexport'
10746 no_entry_flag=
10747 else
10748 # If we're using GNU nm, then we don't want the "-C" option.
10749 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10750 # Without the "-l" option, or with the "-B" option, AIX nm treats
10751 # weak defined symbols like other global defined symbols, whereas
10752 # GNU nm marks them as "W".
10753 # While the 'weak' keyword is ignored in the Export File, we need
10754 # it in the Import File for the 'aix-soname' feature, so we have
10755 # to replace the "-B" option with "-P" for AIX nm.
10756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10757 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10758 else
10759 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10760 fi
10761 aix_use_runtimelinking=no
10762
10763 # Test if we are trying to use run time linking or normal
10764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10765 # have runtime linking enabled, and use it for executables.
10766 # For shared libraries, we enable/disable runtime linking
10767 # depending on the kind of the shared library created -
10768 # when "with_aix_soname,aix_use_runtimelinking" is:
10769 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10770 # "aix,yes" lib.so shared, rtl:yes, for executables
10771 # lib.a static archive
10772 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10773 # lib.a(lib.so.V) shared, rtl:no, for executables
10774 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10775 # lib.a(lib.so.V) shared, rtl:no
10776 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10777 # lib.a static archive
10778 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10779 for ld_flag in $LDFLAGS; do
10780 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10781 aix_use_runtimelinking=yes
10782 break
10783 fi
10784 done
10785 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10786 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10787 # so we don't have lib.a shared libs to link our executables.
10788 # We have to force runtime linking in this case.
10789 aix_use_runtimelinking=yes
10790 LDFLAGS="$LDFLAGS -Wl,-brtl"
10791 fi
10792 ;;
10793 esac
10794
10795 exp_sym_flag='-bexport'
10796 no_entry_flag='-bnoentry'
10797 fi
10798
10799 # When large executables or shared objects are built, AIX ld can
10800 # have problems creating the table of contents. If linking a library
10801 # or program results in "error TOC overflow" add -mminimal-toc to
10802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10804
10805 archive_cmds=''
10806 hardcode_direct=yes
10807 hardcode_direct_absolute=yes
10808 hardcode_libdir_separator=':'
10809 link_all_deplibs=yes
10810 file_list_spec='$wl-f,'
10811 case $with_aix_soname,$aix_use_runtimelinking in
10812 aix,*) ;; # traditional, no import file
10813 svr4,* | *,yes) # use import file
10814 # The Import File defines what to hardcode.
10815 hardcode_direct=no
10816 hardcode_direct_absolute=no
10817 ;;
10818 esac
10819
10820 if test yes = "$GCC"; then
10821 case $host_os in aix4.[012]|aix4.[012].*)
10822 # We only want to do this on AIX 4.2 and lower, the check
10823 # below for broken collect2 doesn't work under 4.3+
10824 collect2name=`$CC -print-prog-name=collect2`
10825 if test -f "$collect2name" &&
10826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10827 then
10828 # We have reworked collect2
10829 :
10830 else
10831 # We have old collect2
10832 hardcode_direct=unsupported
10833 # It fails to find uninstalled libraries when the uninstalled
10834 # path is not listed in the libpath. Setting hardcode_minus_L
10835 # to unsupported forces relinking
10836 hardcode_minus_L=yes
10837 hardcode_libdir_flag_spec='-L$libdir'
10838 hardcode_libdir_separator=
10839 fi
10840 ;;
10841 esac
10842 shared_flag='-shared'
10843 if test yes = "$aix_use_runtimelinking"; then
10844 shared_flag="$shared_flag "'$wl-G'
10845 fi
10846 # Need to ensure runtime linking is disabled for the traditional
10847 # shared library, or the linker may eventually find shared libraries
10848 # /with/ Import File - we do not want to mix them.
10849 shared_flag_aix='-shared'
10850 shared_flag_svr4='-shared $wl-G'
10851 else
10852 # not using gcc
10853 if test ia64 = "$host_cpu"; then
10854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10855 # chokes on -Wl,-G. The following line is correct:
10856 shared_flag='-G'
10857 else
10858 if test yes = "$aix_use_runtimelinking"; then
10859 shared_flag='$wl-G'
10860 else
10861 shared_flag='$wl-bM:SRE'
10862 fi
10863 shared_flag_aix='$wl-bM:SRE'
10864 shared_flag_svr4='$wl-G'
10865 fi
10866 fi
10867
10868 export_dynamic_flag_spec='$wl-bexpall'
10869 # It seems that -bexpall does not export symbols beginning with
10870 # underscore (_), so it is better to generate a list of symbols to export.
10871 always_export_symbols=yes
10872 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10873 # Warning - without using the other runtime loading flags (-brtl),
10874 # -berok will link without error, but may produce a broken library.
10875 allow_undefined_flag='-berok'
10876 # Determine the default libpath from the value encoded in an
10877 # empty executable.
10878 if test set = "${lt_cv_aix_libpath+set}"; then
10879 aix_libpath=$lt_cv_aix_libpath
10880else
10881 if test ${lt_cv_aix_libpath_+y}
10882then :
10883 printf %s "(cached) " >&6
10884else $as_nop
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h. */
10887
10888int
10889main (void)
10890{
10891
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896if ac_fn_c_try_link "$LINENO"
10897then :
10898
10899 lt_aix_libpath_sed='
10900 /Import File Strings/,/^$/ {
10901 /^0/ {
10902 s/^0 *\([^ ]*\) *$/\1/
10903 p
10904 }
10905 }'
10906 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10907 # Check for a 64-bit object if we didn't find anything.
10908 if test -z "$lt_cv_aix_libpath_"; then
10909 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10910 fi
10911fi
10912rm -f core conftest.err conftest.$ac_objext conftest.beam \
10913 conftest$ac_exeext conftest.$ac_ext
10914 if test -z "$lt_cv_aix_libpath_"; then
10915 lt_cv_aix_libpath_=/usr/lib:/lib
10916 fi
10917
10918fi
10919
10920 aix_libpath=$lt_cv_aix_libpath_
10921fi
10922
10923 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10924 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10925 else
10926 if test ia64 = "$host_cpu"; then
10927 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10928 allow_undefined_flag="-z nodefs"
10929 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"
10930 else
10931 # Determine the default libpath from the value encoded in an
10932 # empty executable.
10933 if test set = "${lt_cv_aix_libpath+set}"; then
10934 aix_libpath=$lt_cv_aix_libpath
10935else
10936 if test ${lt_cv_aix_libpath_+y}
10937then :
10938 printf %s "(cached) " >&6
10939else $as_nop
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h. */
10942
10943int
10944main (void)
10945{
10946
10947 ;
10948 return 0;
10949}
10950_ACEOF
10951if ac_fn_c_try_link "$LINENO"
10952then :
10953
10954 lt_aix_libpath_sed='
10955 /Import File Strings/,/^$/ {
10956 /^0/ {
10957 s/^0 *\([^ ]*\) *$/\1/
10958 p
10959 }
10960 }'
10961 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10962 # Check for a 64-bit object if we didn't find anything.
10963 if test -z "$lt_cv_aix_libpath_"; then
10964 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10965 fi
10966fi
10967rm -f core conftest.err conftest.$ac_objext conftest.beam \
10968 conftest$ac_exeext conftest.$ac_ext
10969 if test -z "$lt_cv_aix_libpath_"; then
10970 lt_cv_aix_libpath_=/usr/lib:/lib
10971 fi
10972
10973fi
10974
10975 aix_libpath=$lt_cv_aix_libpath_
10976fi
10977
10978 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10979 # Warning - without using the other run time loading flags,
10980 # -berok will link without error, but may produce a broken library.
10981 no_undefined_flag=' $wl-bernotok'
10982 allow_undefined_flag=' $wl-berok'
10983 if test yes = "$with_gnu_ld"; then
10984 # We only use this code for GNU lds that support --whole-archive.
10985 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10986 else
10987 # Exported symbols can be pulled into shared objects from archives
10988 whole_archive_flag_spec='$convenience'
10989 fi
10990 archive_cmds_need_lc=yes
10991 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10992 # -brtl affects multiple linker settings, -berok does not and is overridden later
10993 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10994 if test svr4 != "$with_aix_soname"; then
10995 # This is similar to how AIX traditionally builds its shared libraries.
10996 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10997 fi
10998 if test aix != "$with_aix_soname"; then
10999 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11000 else
11001 # used by -dlpreopen to get the symbols
11002 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11003 fi
11004 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11005 fi
11006 fi
11007 ;;
11008
11009 amigaos*)
11010 case $host_cpu in
11011 powerpc)
11012 # see comment about AmigaOS4 .so support
11013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11014 archive_expsym_cmds=''
11015 ;;
11016 m68k)
11017 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)'
11018 hardcode_libdir_flag_spec='-L$libdir'
11019 hardcode_minus_L=yes
11020 ;;
11021 esac
11022 ;;
11023
11024 bsdi[45]*)
11025 export_dynamic_flag_spec=-rdynamic
11026 ;;
11027
11028 cygwin* | mingw* | pw32* | cegcc*)
11029 # When not using gcc, we currently assume that we are using
11030 # Microsoft Visual C++ or Intel C++ Compiler.
11031 # hardcode_libdir_flag_spec is actually meaningless, as there is
11032 # no search path for DLLs.
11033 case $cc_basename in
11034 cl* | icl*)
11035 # Native MSVC or ICC
11036 hardcode_libdir_flag_spec=' '
11037 allow_undefined_flag=unsupported
11038 always_export_symbols=yes
11039 file_list_spec='@'
11040 # Tell ltmain to make .lib files, not .a files.
11041 libext=lib
11042 # Tell ltmain to make .dll files, not .so files.
11043 shrext_cmds=.dll
11044 # FIXME: Setting linknames here is a bad hack.
11045 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11046 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11047 cp "$export_symbols" "$output_objdir/$soname.def";
11048 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11049 else
11050 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11051 fi~
11052 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11053 linknames='
11054 # The linker will not automatically build a static lib if we build a DLL.
11055 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11056 enable_shared_with_static_runtimes=yes
11057 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11058 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11059 # Don't use ranlib
11060 old_postinstall_cmds='chmod 644 $oldlib'
11061 postlink_cmds='lt_outputfile="@OUTPUT@"~
11062 lt_tool_outputfile="@TOOL_OUTPUT@"~
11063 case $lt_outputfile in
11064 *.exe|*.EXE) ;;
11065 *)
11066 lt_outputfile=$lt_outputfile.exe
11067 lt_tool_outputfile=$lt_tool_outputfile.exe
11068 ;;
11069 esac~
11070 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11071 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11072 $RM "$lt_outputfile.manifest";
11073 fi'
11074 ;;
11075 *)
11076 # Assume MSVC and ICC wrapper
11077 hardcode_libdir_flag_spec=' '
11078 allow_undefined_flag=unsupported
11079 # Tell ltmain to make .lib files, not .a files.
11080 libext=lib
11081 # Tell ltmain to make .dll files, not .so files.
11082 shrext_cmds=.dll
11083 # FIXME: Setting linknames here is a bad hack.
11084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11085 # The linker will automatically build a .lib file if we build a DLL.
11086 old_archive_from_new_cmds='true'
11087 # FIXME: Should let the user specify the lib program.
11088 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11089 enable_shared_with_static_runtimes=yes
11090 ;;
11091 esac
11092 ;;
11093
11094 darwin* | rhapsody*)
11095
11096
11097 archive_cmds_need_lc=no
11098 hardcode_direct=no
11099 hardcode_automatic=yes
11100 hardcode_shlibpath_var=unsupported
11101 if test yes = "$lt_cv_ld_force_load"; then
11102 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\"`'
11103
11104 else
11105 whole_archive_flag_spec=''
11106 fi
11107 link_all_deplibs=yes
11108 allow_undefined_flag=$_lt_dar_allow_undefined
11109 case $cc_basename in
11110 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11111 *) _lt_dar_can_shared=$GCC ;;
11112 esac
11113 if test yes = "$_lt_dar_can_shared"; then
11114 output_verbose_link_cmd=func_echo_all
11115 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11116 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11117 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"
11118 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"
11119
11120 else
11121 ld_shlibs=no
11122 fi
11123
11124 ;;
11125
11126 dgux*)
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_libdir_flag_spec='-L$libdir'
11129 hardcode_shlibpath_var=no
11130 ;;
11131
11132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11133 # support. Future versions do this automatically, but an explicit c++rt0.o
11134 # does not break anything, and helps significantly (at the cost of a little
11135 # extra space).
11136 freebsd2.2*)
11137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11138 hardcode_libdir_flag_spec='-R$libdir'
11139 hardcode_direct=yes
11140 hardcode_shlibpath_var=no
11141 ;;
11142
11143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11144 freebsd2.*)
11145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11146 hardcode_direct=yes
11147 hardcode_minus_L=yes
11148 hardcode_shlibpath_var=no
11149 ;;
11150
11151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11152 freebsd* | dragonfly*)
11153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11154 hardcode_libdir_flag_spec='-R$libdir'
11155 hardcode_direct=yes
11156 hardcode_shlibpath_var=no
11157 ;;
11158
11159 hpux9*)
11160 if test yes = "$GCC"; then
11161 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11162 else
11163 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11164 fi
11165 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11166 hardcode_libdir_separator=:
11167 hardcode_direct=yes
11168
11169 # hardcode_minus_L: Not really in the search PATH,
11170 # but as the default location of the library.
11171 hardcode_minus_L=yes
11172 export_dynamic_flag_spec='$wl-E'
11173 ;;
11174
11175 hpux10*)
11176 if test yes,no = "$GCC,$with_gnu_ld"; then
11177 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11178 else
11179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11180 fi
11181 if test no = "$with_gnu_ld"; then
11182 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11183 hardcode_libdir_separator=:
11184 hardcode_direct=yes
11185 hardcode_direct_absolute=yes
11186 export_dynamic_flag_spec='$wl-E'
11187 # hardcode_minus_L: Not really in the search PATH,
11188 # but as the default location of the library.
11189 hardcode_minus_L=yes
11190 fi
11191 ;;
11192
11193 hpux11*)
11194 if test yes,no = "$GCC,$with_gnu_ld"; then
11195 case $host_cpu in
11196 hppa*64*)
11197 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11198 ;;
11199 ia64*)
11200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11201 ;;
11202 *)
11203 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11204 ;;
11205 esac
11206 else
11207 case $host_cpu in
11208 hppa*64*)
11209 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 ;;
11211 ia64*)
11212 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11213 ;;
11214 *)
11215
11216 # Older versions of the 11.00 compiler do not understand -b yet
11217 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11219printf %s "checking if $CC understands -b... " >&6; }
11220if test ${lt_cv_prog_compiler__b+y}
11221then :
11222 printf %s "(cached) " >&6
11223else $as_nop
11224 lt_cv_prog_compiler__b=no
11225 save_LDFLAGS=$LDFLAGS
11226 LDFLAGS="$LDFLAGS -b"
11227 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11229 # The linker can only warn and ignore the option if not recognized
11230 # So say no if there are warnings
11231 if test -s conftest.err; then
11232 # Append any errors to the config.log.
11233 cat conftest.err 1>&5
11234 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11236 if diff conftest.exp conftest.er2 >/dev/null; then
11237 lt_cv_prog_compiler__b=yes
11238 fi
11239 else
11240 lt_cv_prog_compiler__b=yes
11241 fi
11242 fi
11243 $RM -r conftest*
11244 LDFLAGS=$save_LDFLAGS
11245
11246fi
11247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11248printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11249
11250if test yes = "$lt_cv_prog_compiler__b"; then
11251 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11252else
11253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11254fi
11255
11256 ;;
11257 esac
11258 fi
11259 if test no = "$with_gnu_ld"; then
11260 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11261 hardcode_libdir_separator=:
11262
11263 case $host_cpu in
11264 hppa*64*|ia64*)
11265 hardcode_direct=no
11266 hardcode_shlibpath_var=no
11267 ;;
11268 *)
11269 hardcode_direct=yes
11270 hardcode_direct_absolute=yes
11271 export_dynamic_flag_spec='$wl-E'
11272
11273 # hardcode_minus_L: Not really in the search PATH,
11274 # but as the default location of the library.
11275 hardcode_minus_L=yes
11276 ;;
11277 esac
11278 fi
11279 ;;
11280
11281 irix5* | irix6* | nonstopux*)
11282 if test yes = "$GCC"; then
11283 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'
11284 # Try to use the -exported_symbol ld option, if it does not
11285 # work, assume that -exports_file does not work either and
11286 # implicitly export all symbols.
11287 # This should be the same for all languages, so no per-tag cache variable.
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11289printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11290if test ${lt_cv_irix_exported_symbol+y}
11291then :
11292 printf %s "(cached) " >&6
11293else $as_nop
11294 save_LDFLAGS=$LDFLAGS
11295 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h. */
11298int foo (void) { return 0; }
11299_ACEOF
11300if ac_fn_c_try_link "$LINENO"
11301then :
11302 lt_cv_irix_exported_symbol=yes
11303else $as_nop
11304 lt_cv_irix_exported_symbol=no
11305fi
11306rm -f core conftest.err conftest.$ac_objext conftest.beam \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LDFLAGS=$save_LDFLAGS
11309fi
11310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11311printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11312 if test yes = "$lt_cv_irix_exported_symbol"; then
11313 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'
11314 fi
11315 else
11316 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'
11317 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'
11318 fi
11319 archive_cmds_need_lc='no'
11320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11321 hardcode_libdir_separator=:
11322 inherit_rpath=yes
11323 link_all_deplibs=yes
11324 ;;
11325
11326 linux*)
11327 case $cc_basename in
11328 tcc*)
11329 # Fabrice Bellard et al's Tiny C Compiler
11330 ld_shlibs=yes
11331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11332 ;;
11333 esac
11334 ;;
11335
11336 netbsd*)
11337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11339 else
11340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11341 fi
11342 hardcode_libdir_flag_spec='-R$libdir'
11343 hardcode_direct=yes
11344 hardcode_shlibpath_var=no
11345 ;;
11346
11347 newsos6)
11348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_direct=yes
11350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11351 hardcode_libdir_separator=:
11352 hardcode_shlibpath_var=no
11353 ;;
11354
11355 *nto* | *qnx*)
11356 ;;
11357
11358 openbsd* | bitrig*)
11359 if test -f /usr/libexec/ld.so; then
11360 hardcode_direct=yes
11361 hardcode_shlibpath_var=no
11362 hardcode_direct_absolute=yes
11363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11366 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11367 export_dynamic_flag_spec='$wl-E'
11368 else
11369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11371 fi
11372 else
11373 ld_shlibs=no
11374 fi
11375 ;;
11376
11377 os2*)
11378 hardcode_libdir_flag_spec='-L$libdir'
11379 hardcode_minus_L=yes
11380 allow_undefined_flag=unsupported
11381 shrext_cmds=.dll
11382 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11383 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11384 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11385 $ECHO EXPORTS >> $output_objdir/$libname.def~
11386 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11387 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11388 emximp -o $lib $output_objdir/$libname.def'
11389 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11392 $ECHO EXPORTS >> $output_objdir/$libname.def~
11393 prefix_cmds="$SED"~
11394 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11395 prefix_cmds="$prefix_cmds -e 1d";
11396 fi~
11397 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11398 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11400 emximp -o $lib $output_objdir/$libname.def'
11401 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11402 enable_shared_with_static_runtimes=yes
11403 file_list_spec='@'
11404 ;;
11405
11406 osf3*)
11407 if test yes = "$GCC"; then
11408 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11409 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'
11410 else
11411 allow_undefined_flag=' -expect_unresolved \*'
11412 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'
11413 fi
11414 archive_cmds_need_lc='no'
11415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11416 hardcode_libdir_separator=:
11417 ;;
11418
11419 osf4* | osf5*) # as osf3* with the addition of -msym flag
11420 if test yes = "$GCC"; then
11421 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11422 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'
11423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11424 else
11425 allow_undefined_flag=' -expect_unresolved \*'
11426 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'
11427 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~
11428 $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'
11429
11430 # Both c and cxx compiler support -rpath directly
11431 hardcode_libdir_flag_spec='-rpath $libdir'
11432 fi
11433 archive_cmds_need_lc='no'
11434 hardcode_libdir_separator=:
11435 ;;
11436
11437 solaris*)
11438 no_undefined_flag=' -z defs'
11439 if test yes = "$GCC"; then
11440 wlarc='$wl'
11441 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11443 $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'
11444 else
11445 case `$CC -V 2>&1` in
11446 *"Compilers 5.0"*)
11447 wlarc=''
11448 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11450 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11451 ;;
11452 *)
11453 wlarc='$wl'
11454 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11456 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11457 ;;
11458 esac
11459 fi
11460 hardcode_libdir_flag_spec='-R$libdir'
11461 hardcode_shlibpath_var=no
11462 case $host_os in
11463 solaris2.[0-5] | solaris2.[0-5].*) ;;
11464 *)
11465 # The compiler driver will combine and reorder linker options,
11466 # but understands '-z linker_flag'. GCC discards it without '$wl',
11467 # but is careful enough not to reorder.
11468 # Supported since Solaris 2.6 (maybe 2.5.1?)
11469 if test yes = "$GCC"; then
11470 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11471 else
11472 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11473 fi
11474 ;;
11475 esac
11476 link_all_deplibs=yes
11477 ;;
11478
11479 sunos4*)
11480 if test sequent = "$host_vendor"; then
11481 # Use $CC to link under sequent, because it throws in some extra .o
11482 # files that make .init and .fini sections work.
11483 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11484 else
11485 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11486 fi
11487 hardcode_libdir_flag_spec='-L$libdir'
11488 hardcode_direct=yes
11489 hardcode_minus_L=yes
11490 hardcode_shlibpath_var=no
11491 ;;
11492
11493 sysv4)
11494 case $host_vendor in
11495 sni)
11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497 hardcode_direct=yes # is this really true???
11498 ;;
11499 siemens)
11500 ## LD is ld it makes a PLAMLIB
11501 ## CC just makes a GrossModule.
11502 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11503 reload_cmds='$CC -r -o $output$reload_objs'
11504 hardcode_direct=no
11505 ;;
11506 motorola)
11507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11509 ;;
11510 esac
11511 runpath_var='LD_RUN_PATH'
11512 hardcode_shlibpath_var=no
11513 ;;
11514
11515 sysv4.3*)
11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517 hardcode_shlibpath_var=no
11518 export_dynamic_flag_spec='-Bexport'
11519 ;;
11520
11521 sysv4*MP*)
11522 if test -d /usr/nec; then
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_shlibpath_var=no
11525 runpath_var=LD_RUN_PATH
11526 hardcode_runpath_var=yes
11527 ld_shlibs=yes
11528 fi
11529 ;;
11530
11531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11532 no_undefined_flag='$wl-z,text'
11533 archive_cmds_need_lc=no
11534 hardcode_shlibpath_var=no
11535 runpath_var='LD_RUN_PATH'
11536
11537 if test yes = "$GCC"; then
11538 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11539 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11540 else
11541 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11542 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 fi
11544 ;;
11545
11546 sysv5* | sco3.2v5* | sco5v6*)
11547 # Note: We CANNOT use -z defs as we might desire, because we do not
11548 # link with -lc, and that would cause any symbols used from libc to
11549 # always be unresolved, which means just about no library would
11550 # ever link correctly. If we're not using GNU ld we use -z text
11551 # though, which does catch some bad symbols but isn't as heavy-handed
11552 # as -z defs.
11553 no_undefined_flag='$wl-z,text'
11554 allow_undefined_flag='$wl-z,nodefs'
11555 archive_cmds_need_lc=no
11556 hardcode_shlibpath_var=no
11557 hardcode_libdir_flag_spec='$wl-R,$libdir'
11558 hardcode_libdir_separator=':'
11559 link_all_deplibs=yes
11560 export_dynamic_flag_spec='$wl-Bexport'
11561 runpath_var='LD_RUN_PATH'
11562
11563 if test yes = "$GCC"; then
11564 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11565 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 else
11567 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11568 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 fi
11570 ;;
11571
11572 uts4*)
11573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11574 hardcode_libdir_flag_spec='-L$libdir'
11575 hardcode_shlibpath_var=no
11576 ;;
11577
11578 *)
11579 ld_shlibs=no
11580 ;;
11581 esac
11582
11583 if test sni = "$host_vendor"; then
11584 case $host in
11585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11586 export_dynamic_flag_spec='$wl-Blargedynsym'
11587 ;;
11588 esac
11589 fi
11590 fi
11591
11592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11593printf "%s\n" "$ld_shlibs" >&6; }
11594test no = "$ld_shlibs" && can_build_shared=no
11595
11596with_gnu_ld=$with_gnu_ld
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612#
11613# Do we need to explicitly link libc?
11614#
11615case "x$archive_cmds_need_lc" in
11616x|xyes)
11617 # Assume -lc should be added
11618 archive_cmds_need_lc=yes
11619
11620 if test yes,yes = "$GCC,$enable_shared"; then
11621 case $archive_cmds in
11622 *'~'*)
11623 # FIXME: we may have to deal with multi-command sequences.
11624 ;;
11625 '$CC '*)
11626 # Test whether the compiler implicitly links with -lc since on some
11627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11628 # to ld, don't add -lc before -lgcc.
11629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11630printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11631if test ${lt_cv_archive_cmds_need_lc+y}
11632then :
11633 printf %s "(cached) " >&6
11634else $as_nop
11635 $RM conftest*
11636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11637
11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11639 (eval $ac_compile) 2>&5
11640 ac_status=$?
11641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; } 2>conftest.err; then
11643 soname=conftest
11644 lib=conftest
11645 libobjs=conftest.$ac_objext
11646 deplibs=
11647 wl=$lt_prog_compiler_wl
11648 pic_flag=$lt_prog_compiler_pic
11649 compiler_flags=-v
11650 linker_flags=-v
11651 verstring=
11652 output_objdir=.
11653 libname=conftest
11654 lt_save_allow_undefined_flag=$allow_undefined_flag
11655 allow_undefined_flag=
11656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11657 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11658 ac_status=$?
11659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; }
11661 then
11662 lt_cv_archive_cmds_need_lc=no
11663 else
11664 lt_cv_archive_cmds_need_lc=yes
11665 fi
11666 allow_undefined_flag=$lt_save_allow_undefined_flag
11667 else
11668 cat conftest.err 1>&5
11669 fi
11670 $RM conftest*
11671
11672fi
11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11674printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11675 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11676 ;;
11677 esac
11678 fi
11679 ;;
11680esac
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11834printf %s "checking dynamic linker characteristics... " >&6; }
11835
11836if test yes = "$GCC"; then
11837 case $host_os in
11838 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11839 *) lt_awk_arg='/^libraries:/' ;;
11840 esac
11841 case $host_os in
11842 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11843 *) lt_sed_strip_eq='s|=/|/|g' ;;
11844 esac
11845 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11846 case $lt_search_path_spec in
11847 *\;*)
11848 # if the path contains ";" then we assume it to be the separator
11849 # otherwise default to the standard path separator (i.e. ":") - it is
11850 # assumed that no part of a normal pathname contains ";" but that should
11851 # okay in the real world where ";" in dirpaths is itself problematic.
11852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11853 ;;
11854 *)
11855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11856 ;;
11857 esac
11858 # Ok, now we have the path, separated by spaces, we can step through it
11859 # and add multilib dir if necessary...
11860 lt_tmp_lt_search_path_spec=
11861 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11862 # ...but if some path component already ends with the multilib dir we assume
11863 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11864 case "$lt_multi_os_dir; $lt_search_path_spec " in
11865 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11866 lt_multi_os_dir=
11867 ;;
11868 esac
11869 for lt_sys_path in $lt_search_path_spec; do
11870 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11872 elif test -n "$lt_multi_os_dir"; then
11873 test -d "$lt_sys_path" && \
11874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11875 fi
11876 done
11877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11878BEGIN {RS = " "; FS = "/|\n";} {
11879 lt_foo = "";
11880 lt_count = 0;
11881 for (lt_i = NF; lt_i > 0; lt_i--) {
11882 if ($lt_i != "" && $lt_i != ".") {
11883 if ($lt_i == "..") {
11884 lt_count++;
11885 } else {
11886 if (lt_count == 0) {
11887 lt_foo = "/" $lt_i lt_foo;
11888 } else {
11889 lt_count--;
11890 }
11891 }
11892 }
11893 }
11894 if (lt_foo != "") { lt_freq[lt_foo]++; }
11895 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11896}'`
11897 # AWK program above erroneously prepends '/' to C:/dos/paths
11898 # for these hosts.
11899 case $host_os in
11900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11901 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11902 esac
11903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11904else
11905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11906fi
11907library_names_spec=
11908libname_spec='lib$name'
11909soname_spec=
11910shrext_cmds=.so
11911postinstall_cmds=
11912postuninstall_cmds=
11913finish_cmds=
11914finish_eval=
11915shlibpath_var=
11916shlibpath_overrides_runpath=unknown
11917version_type=none
11918dynamic_linker="$host_os ld.so"
11919sys_lib_dlsearch_path_spec="/lib /usr/lib"
11920need_lib_prefix=unknown
11921hardcode_into_libs=no
11922
11923# when you set need_version to no, make sure it does not cause -set_version
11924# flags to be left without arguments
11925need_version=unknown
11926
11927
11928
11929case $host_os in
11930aix3*)
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11933 shlibpath_var=LIBPATH
11934
11935 # AIX 3 has no versioning support, so we append a major version to the name.
11936 soname_spec='$libname$release$shared_ext$major'
11937 ;;
11938
11939aix[4-9]*)
11940 version_type=linux # correct to gnu/linux during the next big refactor
11941 need_lib_prefix=no
11942 need_version=no
11943 hardcode_into_libs=yes
11944 if test ia64 = "$host_cpu"; then
11945 # AIX 5 supports IA64
11946 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 else
11949 # With GCC up to 2.95.x, collect2 would create an import file
11950 # for dependence libraries. The import file would start with
11951 # the line '#! .'. This would cause the generated library to
11952 # depend on '.', always an invalid library. This was fixed in
11953 # development snapshots of GCC prior to 3.0.
11954 case $host_os in
11955 aix4 | aix4.[01] | aix4.[01].*)
11956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11957 echo ' yes '
11958 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11959 :
11960 else
11961 can_build_shared=no
11962 fi
11963 ;;
11964 esac
11965 # Using Import Files as archive members, it is possible to support
11966 # filename-based versioning of shared library archives on AIX. While
11967 # this would work for both with and without runtime linking, it will
11968 # prevent static linking of such archives. So we do filename-based
11969 # shared library versioning with .so extension only, which is used
11970 # when both runtime linking and shared linking is enabled.
11971 # Unfortunately, runtime linking may impact performance, so we do
11972 # not want this to be the default eventually. Also, we use the
11973 # versioned .so libs for executables only if there is the -brtl
11974 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11975 # To allow for filename-based versioning support, we need to create
11976 # libNAME.so.V as an archive file, containing:
11977 # *) an Import File, referring to the versioned filename of the
11978 # archive as well as the shared archive member, telling the
11979 # bitwidth (32 or 64) of that shared object, and providing the
11980 # list of exported symbols of that shared object, eventually
11981 # decorated with the 'weak' keyword
11982 # *) the shared object with the F_LOADONLY flag set, to really avoid
11983 # it being seen by the linker.
11984 # At run time we better use the real file rather than another symlink,
11985 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11986
11987 case $with_aix_soname,$aix_use_runtimelinking in
11988 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11989 # soname into executable. Probably we can add versioning support to
11990 # collect2, so additional links can be useful in future.
11991 aix,yes) # traditional libtool
11992 dynamic_linker='AIX unversionable lib.so'
11993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11994 # instead of lib<name>.a to let people know that these are not
11995 # typical AIX shared libraries.
11996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11997 ;;
11998 aix,no) # traditional AIX only
11999 dynamic_linker='AIX lib.a(lib.so.V)'
12000 # We preserve .a as extension for shared libraries through AIX4.2
12001 # and later when we are not doing run time linking.
12002 library_names_spec='$libname$release.a $libname.a'
12003 soname_spec='$libname$release$shared_ext$major'
12004 ;;
12005 svr4,*) # full svr4 only
12006 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12007 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12008 # We do not specify a path in Import Files, so LIBPATH fires.
12009 shlibpath_overrides_runpath=yes
12010 ;;
12011 *,yes) # both, prefer svr4
12012 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12013 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12014 # unpreferred sharedlib libNAME.a needs extra handling
12015 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12016 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12017 # We do not specify a path in Import Files, so LIBPATH fires.
12018 shlibpath_overrides_runpath=yes
12019 ;;
12020 *,no) # both, prefer aix
12021 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12022 library_names_spec='$libname$release.a $libname.a'
12023 soname_spec='$libname$release$shared_ext$major'
12024 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12025 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12026 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12027 ;;
12028 esac
12029 shlibpath_var=LIBPATH
12030 fi
12031 ;;
12032
12033amigaos*)
12034 case $host_cpu in
12035 powerpc)
12036 # Since July 2007 AmigaOS4 officially supports .so libraries.
12037 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039 ;;
12040 m68k)
12041 library_names_spec='$libname.ixlibrary $libname.a'
12042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12043 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12044 ;;
12045 esac
12046 ;;
12047
12048beos*)
12049 library_names_spec='$libname$shared_ext'
12050 dynamic_linker="$host_os ld.so"
12051 shlibpath_var=LIBRARY_PATH
12052 ;;
12053
12054bsdi[45]*)
12055 version_type=linux # correct to gnu/linux during the next big refactor
12056 need_version=no
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058 soname_spec='$libname$release$shared_ext$major'
12059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12063 # the default ld.so.conf also contains /usr/contrib/lib and
12064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12065 # libtool to hard-code these into programs
12066 ;;
12067
12068cygwin* | mingw* | pw32* | cegcc*)
12069 version_type=windows
12070 shrext_cmds=.dll
12071 need_version=no
12072 need_lib_prefix=no
12073
12074 case $GCC,$cc_basename in
12075 yes,*)
12076 # gcc
12077 library_names_spec='$libname.dll.a'
12078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12079 postinstall_cmds='base_file=`basename \$file`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname~
12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12087 fi'
12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12089 dlpath=$dir/\$dldll~
12090 $RM \$dlpath'
12091 shlibpath_overrides_runpath=yes
12092
12093 case $host_os in
12094 cygwin*)
12095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12096 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12097
12098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12099 ;;
12100 mingw* | cegcc*)
12101 # MinGW DLLs use traditional 'lib' prefix
12102 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12103 ;;
12104 pw32*)
12105 # pw32 DLLs use 'pw' prefix rather than 'lib'
12106 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12107 ;;
12108 esac
12109 dynamic_linker='Win32 ld.exe'
12110 ;;
12111
12112 *,cl* | *,icl*)
12113 # Native MSVC or ICC
12114 libname_spec='$name'
12115 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12116 library_names_spec='$libname.dll.lib'
12117
12118 case $build_os in
12119 mingw*)
12120 sys_lib_search_path_spec=
12121 lt_save_ifs=$IFS
12122 IFS=';'
12123 for lt_path in $LIB
12124 do
12125 IFS=$lt_save_ifs
12126 # Let DOS variable expansion print the short 8.3 style file name.
12127 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12128 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12129 done
12130 IFS=$lt_save_ifs
12131 # Convert to MSYS style.
12132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12133 ;;
12134 cygwin*)
12135 # Convert to unix form, then to dos form, then back to unix form
12136 # but this time dos style (no spaces!) so that the unix form looks
12137 # like /cygdrive/c/PROGRA~1:/cygdr...
12138 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12139 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12140 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12141 ;;
12142 *)
12143 sys_lib_search_path_spec=$LIB
12144 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12145 # It is most probably a Windows format PATH.
12146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12147 else
12148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12149 fi
12150 # FIXME: find the short name or the path components, as spaces are
12151 # common. (e.g. "Program Files" -> "PROGRA~1")
12152 ;;
12153 esac
12154
12155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12156 postinstall_cmds='base_file=`basename \$file`~
12157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12158 dldir=$destdir/`dirname \$dlpath`~
12159 test -d \$dldir || mkdir -p \$dldir~
12160 $install_prog $dir/$dlname \$dldir/$dlname'
12161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12162 dlpath=$dir/\$dldll~
12163 $RM \$dlpath'
12164 shlibpath_overrides_runpath=yes
12165 dynamic_linker='Win32 link.exe'
12166 ;;
12167
12168 *)
12169 # Assume MSVC and ICC wrapper
12170 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12171 dynamic_linker='Win32 ld.exe'
12172 ;;
12173 esac
12174 # FIXME: first we should search . and the directory the executable is in
12175 shlibpath_var=PATH
12176 ;;
12177
12178darwin* | rhapsody*)
12179 dynamic_linker="$host_os dyld"
12180 version_type=darwin
12181 need_lib_prefix=no
12182 need_version=no
12183 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12184 soname_spec='$libname$release$major$shared_ext'
12185 shlibpath_overrides_runpath=yes
12186 shlibpath_var=DYLD_LIBRARY_PATH
12187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12188
12189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12191 ;;
12192
12193dgux*)
12194 version_type=linux # correct to gnu/linux during the next big refactor
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 ;;
12201
12202freebsd* | dragonfly*)
12203 # DragonFly does not have aout. When/if they implement a new
12204 # versioning mechanism, adjust this.
12205 if test -x /usr/bin/objformat; then
12206 objformat=`/usr/bin/objformat`
12207 else
12208 case $host_os in
12209 freebsd[23].*) objformat=aout ;;
12210 *) objformat=elf ;;
12211 esac
12212 fi
12213 version_type=freebsd-$objformat
12214 case $version_type in
12215 freebsd-elf*)
12216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12217 soname_spec='$libname$release$shared_ext$major'
12218 need_version=no
12219 need_lib_prefix=no
12220 ;;
12221 freebsd-*)
12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12223 need_version=yes
12224 ;;
12225 esac
12226 shlibpath_var=LD_LIBRARY_PATH
12227 case $host_os in
12228 freebsd2.*)
12229 shlibpath_overrides_runpath=yes
12230 ;;
12231 freebsd3.[01]* | freebsdelf3.[01]*)
12232 shlibpath_overrides_runpath=yes
12233 hardcode_into_libs=yes
12234 ;;
12235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12237 shlibpath_overrides_runpath=no
12238 hardcode_into_libs=yes
12239 ;;
12240 *) # from 4.6 on, and DragonFly
12241 shlibpath_overrides_runpath=yes
12242 hardcode_into_libs=yes
12243 ;;
12244 esac
12245 ;;
12246
12247haiku*)
12248 version_type=linux # correct to gnu/linux during the next big refactor
12249 need_lib_prefix=no
12250 need_version=no
12251 dynamic_linker="$host_os runtime_loader"
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 soname_spec='$libname$release$shared_ext$major'
12254 shlibpath_var=LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12257 hardcode_into_libs=yes
12258 ;;
12259
12260hpux9* | hpux10* | hpux11*)
12261 # Give a soname corresponding to the major version so that dld.sl refuses to
12262 # link against other versions.
12263 version_type=sunos
12264 need_lib_prefix=no
12265 need_version=no
12266 case $host_cpu in
12267 ia64*)
12268 shrext_cmds='.so'
12269 hardcode_into_libs=yes
12270 dynamic_linker="$host_os dld.so"
12271 shlibpath_var=LD_LIBRARY_PATH
12272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 if test 32 = "$HPUX_IA64_MODE"; then
12276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12277 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12278 else
12279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12280 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12281 fi
12282 ;;
12283 hppa*64*)
12284 shrext_cmds='.sl'
12285 hardcode_into_libs=yes
12286 dynamic_linker="$host_os dld.sl"
12287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290 soname_spec='$libname$release$shared_ext$major'
12291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12293 ;;
12294 *)
12295 shrext_cmds='.sl'
12296 dynamic_linker="$host_os dld.sl"
12297 shlibpath_var=SHLIB_PATH
12298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300 soname_spec='$libname$release$shared_ext$major'
12301 ;;
12302 esac
12303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12304 postinstall_cmds='chmod 555 $lib'
12305 # or fails outright, so override atomically:
12306 install_override_mode=555
12307 ;;
12308
12309interix[3-9]*)
12310 version_type=linux # correct to gnu/linux during the next big refactor
12311 need_lib_prefix=no
12312 need_version=no
12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12314 soname_spec='$libname$release$shared_ext$major'
12315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=no
12318 hardcode_into_libs=yes
12319 ;;
12320
12321irix5* | irix6* | nonstopux*)
12322 case $host_os in
12323 nonstopux*) version_type=nonstopux ;;
12324 *)
12325 if test yes = "$lt_cv_prog_gnu_ld"; then
12326 version_type=linux # correct to gnu/linux during the next big refactor
12327 else
12328 version_type=irix
12329 fi ;;
12330 esac
12331 need_lib_prefix=no
12332 need_version=no
12333 soname_spec='$libname$release$shared_ext$major'
12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12335 case $host_os in
12336 irix5* | nonstopux*)
12337 libsuff= shlibsuff=
12338 ;;
12339 *)
12340 case $LD in # libtool.m4 will add one of these switches to LD
12341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12342 libsuff= shlibsuff= libmagic=32-bit;;
12343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12344 libsuff=32 shlibsuff=N32 libmagic=N32;;
12345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12347 *) libsuff= shlibsuff= libmagic=never-match;;
12348 esac
12349 ;;
12350 esac
12351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12352 shlibpath_overrides_runpath=no
12353 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12354 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12355 hardcode_into_libs=yes
12356 ;;
12357
12358# No shared lib support for Linux oldld, aout, or coff.
12359linux*oldld* | linux*aout* | linux*coff*)
12360 dynamic_linker=no
12361 ;;
12362
12363linux*android*)
12364 version_type=none # Android doesn't support versioned libraries.
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='$libname$release$shared_ext'
12368 soname_spec='$libname$release$shared_ext'
12369 finish_cmds=
12370 shlibpath_var=LD_LIBRARY_PATH
12371 shlibpath_overrides_runpath=yes
12372
12373 # This implies no fast_install, which is unacceptable.
12374 # Some rework will be needed to allow for fast_install
12375 # before this can be enabled.
12376 hardcode_into_libs=yes
12377
12378 dynamic_linker='Android linker'
12379 # Don't embed -rpath directories since the linker doesn't support them.
12380 hardcode_libdir_flag_spec='-L$libdir'
12381 ;;
12382
12383# This must be glibc/ELF.
12384linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 shlibpath_overrides_runpath=no
12393
12394 # Some binutils ld are patched to set DT_RUNPATH
12395 if test ${lt_cv_shlibpath_overrides_runpath+y}
12396then :
12397 printf %s "(cached) " >&6
12398else $as_nop
12399 lt_cv_shlibpath_overrides_runpath=no
12400 save_LDFLAGS=$LDFLAGS
12401 save_libdir=$libdir
12402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405/* end confdefs.h. */
12406
12407int
12408main (void)
12409{
12410
12411 ;
12412 return 0;
12413}
12414_ACEOF
12415if ac_fn_c_try_link "$LINENO"
12416then :
12417 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12418then :
12419 lt_cv_shlibpath_overrides_runpath=yes
12420fi
12421fi
12422rm -f core conftest.err conftest.$ac_objext conftest.beam \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LDFLAGS=$save_LDFLAGS
12425 libdir=$save_libdir
12426
12427fi
12428
12429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12430
12431 # This implies no fast_install, which is unacceptable.
12432 # Some rework will be needed to allow for fast_install
12433 # before this can be enabled.
12434 hardcode_into_libs=yes
12435
12436 # Ideally, we could use ldconfig to report *all* directores which are
12437 # searched for libraries, however this is still not possible. Aside from not
12438 # being certain /sbin/ldconfig is available, command
12439 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12440 # even though it is searched at run-time. Try to do the best guess by
12441 # appending ld.so.conf contents (and includes) to the search path.
12442 if test -f /etc/ld.so.conf; then
12443 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' ' '`
12444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12445 fi
12446
12447 # We used to test for /lib/ld.so.1 and disable shared libraries on
12448 # powerpc, because MkLinux only supported shared libraries with the
12449 # GNU dynamic linker. Since this was broken with cross compilers,
12450 # most powerpc-linux boxes support dynamic linking these days and
12451 # people can always --disable-shared, the test was removed, and we
12452 # assume the GNU/Linux dynamic linker is in use.
12453 dynamic_linker='GNU/Linux ld.so'
12454 ;;
12455
12456netbsd*)
12457 version_type=sunos
12458 need_lib_prefix=no
12459 need_version=no
12460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12463 dynamic_linker='NetBSD (a.out) ld.so'
12464 else
12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12466 soname_spec='$libname$release$shared_ext$major'
12467 dynamic_linker='NetBSD ld.elf_so'
12468 fi
12469 shlibpath_var=LD_LIBRARY_PATH
12470 shlibpath_overrides_runpath=yes
12471 hardcode_into_libs=yes
12472 ;;
12473
12474newsos6)
12475 version_type=linux # correct to gnu/linux during the next big refactor
12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12477 shlibpath_var=LD_LIBRARY_PATH
12478 shlibpath_overrides_runpath=yes
12479 ;;
12480
12481*nto* | *qnx*)
12482 version_type=qnx
12483 need_lib_prefix=no
12484 need_version=no
12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486 soname_spec='$libname$release$shared_ext$major'
12487 shlibpath_var=LD_LIBRARY_PATH
12488 shlibpath_overrides_runpath=no
12489 hardcode_into_libs=yes
12490 dynamic_linker='ldqnx.so'
12491 ;;
12492
12493openbsd* | bitrig*)
12494 version_type=sunos
12495 sys_lib_dlsearch_path_spec=/usr/lib
12496 need_lib_prefix=no
12497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12498 need_version=no
12499 else
12500 need_version=yes
12501 fi
12502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=yes
12506 ;;
12507
12508os2*)
12509 libname_spec='$name'
12510 version_type=windows
12511 shrext_cmds=.dll
12512 need_version=no
12513 need_lib_prefix=no
12514 # OS/2 can only load a DLL with a base name of 8 characters or less.
12515 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12516 v=$($ECHO $release$versuffix | tr -d .-);
12517 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12518 $ECHO $n$v`$shared_ext'
12519 library_names_spec='${libname}_dll.$libext'
12520 dynamic_linker='OS/2 ld.exe'
12521 shlibpath_var=BEGINLIBPATH
12522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12524 postinstall_cmds='base_file=`basename \$file`~
12525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12526 dldir=$destdir/`dirname \$dlpath`~
12527 test -d \$dldir || mkdir -p \$dldir~
12528 $install_prog $dir/$dlname \$dldir/$dlname~
12529 chmod a+x \$dldir/$dlname~
12530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12532 fi'
12533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12534 dlpath=$dir/\$dldll~
12535 $RM \$dlpath'
12536 ;;
12537
12538osf3* | osf4* | osf5*)
12539 version_type=osf
12540 need_lib_prefix=no
12541 need_version=no
12542 soname_spec='$libname$release$shared_ext$major'
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12547 ;;
12548
12549rdos*)
12550 dynamic_linker=no
12551 ;;
12552
12553solaris*)
12554 version_type=linux # correct to gnu/linux during the next big refactor
12555 need_lib_prefix=no
12556 need_version=no
12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12558 soname_spec='$libname$release$shared_ext$major'
12559 shlibpath_var=LD_LIBRARY_PATH
12560 shlibpath_overrides_runpath=yes
12561 hardcode_into_libs=yes
12562 # ldd complains unless libraries are executable
12563 postinstall_cmds='chmod +x $lib'
12564 ;;
12565
12566sunos4*)
12567 version_type=sunos
12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 shlibpath_overrides_runpath=yes
12572 if test yes = "$with_gnu_ld"; then
12573 need_lib_prefix=no
12574 fi
12575 need_version=yes
12576 ;;
12577
12578sysv4 | sysv4.3*)
12579 version_type=linux # correct to gnu/linux during the next big refactor
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12581 soname_spec='$libname$release$shared_ext$major'
12582 shlibpath_var=LD_LIBRARY_PATH
12583 case $host_vendor in
12584 sni)
12585 shlibpath_overrides_runpath=no
12586 need_lib_prefix=no
12587 runpath_var=LD_RUN_PATH
12588 ;;
12589 siemens)
12590 need_lib_prefix=no
12591 ;;
12592 motorola)
12593 need_lib_prefix=no
12594 need_version=no
12595 shlibpath_overrides_runpath=no
12596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12597 ;;
12598 esac
12599 ;;
12600
12601sysv4*MP*)
12602 if test -d /usr/nec; then
12603 version_type=linux # correct to gnu/linux during the next big refactor
12604 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12605 soname_spec='$libname$shared_ext.$major'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 fi
12608 ;;
12609
12610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12611 version_type=sco
12612 need_lib_prefix=no
12613 need_version=no
12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12615 soname_spec='$libname$release$shared_ext$major'
12616 shlibpath_var=LD_LIBRARY_PATH
12617 shlibpath_overrides_runpath=yes
12618 hardcode_into_libs=yes
12619 if test yes = "$with_gnu_ld"; then
12620 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12621 else
12622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12623 case $host_os in
12624 sco3.2v5*)
12625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12626 ;;
12627 esac
12628 fi
12629 sys_lib_dlsearch_path_spec='/usr/lib'
12630 ;;
12631
12632tpf*)
12633 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12634 version_type=linux # correct to gnu/linux during the next big refactor
12635 need_lib_prefix=no
12636 need_version=no
12637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638 shlibpath_var=LD_LIBRARY_PATH
12639 shlibpath_overrides_runpath=no
12640 hardcode_into_libs=yes
12641 ;;
12642
12643uts4*)
12644 version_type=linux # correct to gnu/linux during the next big refactor
12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12646 soname_spec='$libname$release$shared_ext$major'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 ;;
12649
12650*)
12651 dynamic_linker=no
12652 ;;
12653esac
12654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12655printf "%s\n" "$dynamic_linker" >&6; }
12656test no = "$dynamic_linker" && can_build_shared=no
12657
12658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12659if test yes = "$GCC"; then
12660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12661fi
12662
12663if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12664 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12665fi
12666
12667if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12668 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12669fi
12670
12671# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12672configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12673
12674# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12675func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12676
12677# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12678configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12777printf %s "checking how to hardcode library paths into programs... " >&6; }
12778hardcode_action=
12779if test -n "$hardcode_libdir_flag_spec" ||
12780 test -n "$runpath_var" ||
12781 test yes = "$hardcode_automatic"; then
12782
12783 # We can hardcode non-existent directories.
12784 if test no != "$hardcode_direct" &&
12785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12786 # have to relink, otherwise we might link with an installed library
12787 # when we should be linking with a yet-to-be-installed one
12788 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12789 test no != "$hardcode_minus_L"; then
12790 # Linking always hardcodes the temporary library directory.
12791 hardcode_action=relink
12792 else
12793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12794 hardcode_action=immediate
12795 fi
12796else
12797 # We cannot hardcode anything, or else we can only hardcode existing
12798 # directories.
12799 hardcode_action=unsupported
12800fi
12801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12802printf "%s\n" "$hardcode_action" >&6; }
12803
12804if test relink = "$hardcode_action" ||
12805 test yes = "$inherit_rpath"; then
12806 # Fast installation is not supported
12807 enable_fast_install=no
12808elif test yes = "$shlibpath_overrides_runpath" ||
12809 test no = "$enable_shared"; then
12810 # Fast installation is not necessary
12811 enable_fast_install=needless
12812fi
12813
12814
12815
12816
12817
12818
12819 if test yes != "$enable_dlopen"; then
12820 enable_dlopen=unknown
12821 enable_dlopen_self=unknown
12822 enable_dlopen_self_static=unknown
12823else
12824 lt_cv_dlopen=no
12825 lt_cv_dlopen_libs=
12826
12827 case $host_os in
12828 beos*)
12829 lt_cv_dlopen=load_add_on
12830 lt_cv_dlopen_libs=
12831 lt_cv_dlopen_self=yes
12832 ;;
12833
12834 mingw* | pw32* | cegcc*)
12835 lt_cv_dlopen=LoadLibrary
12836 lt_cv_dlopen_libs=
12837 ;;
12838
12839 cygwin*)
12840 lt_cv_dlopen=dlopen
12841 lt_cv_dlopen_libs=
12842 ;;
12843
12844 darwin*)
12845 # if libdl is installed we need to link against it
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12847printf %s "checking for dlopen in -ldl... " >&6; }
12848if test ${ac_cv_lib_dl_dlopen+y}
12849then :
12850 printf %s "(cached) " >&6
12851else $as_nop
12852 ac_check_lib_save_LIBS=$LIBS
12853LIBS="-ldl $LIBS"
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h. */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860char dlopen ();
12861int
12862main (void)
12863{
12864return dlopen ();
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"
12870then :
12871 ac_cv_lib_dl_dlopen=yes
12872else $as_nop
12873 ac_cv_lib_dl_dlopen=no
12874fi
12875rm -f core conftest.err conftest.$ac_objext conftest.beam \
12876 conftest$ac_exeext conftest.$ac_ext
12877LIBS=$ac_check_lib_save_LIBS
12878fi
12879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12880printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12881if test "x$ac_cv_lib_dl_dlopen" = xyes
12882then :
12883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12884else $as_nop
12885
12886 lt_cv_dlopen=dyld
12887 lt_cv_dlopen_libs=
12888 lt_cv_dlopen_self=yes
12889
12890fi
12891
12892 ;;
12893
12894 tpf*)
12895 # Don't try to run any link tests for TPF. We know it's impossible
12896 # because TPF is a cross-compiler, and we know how we open DSOs.
12897 lt_cv_dlopen=dlopen
12898 lt_cv_dlopen_libs=
12899 lt_cv_dlopen_self=no
12900 ;;
12901
12902 *)
12903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12904if test "x$ac_cv_func_shl_load" = xyes
12905then :
12906 lt_cv_dlopen=shl_load
12907else $as_nop
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12909printf %s "checking for shl_load in -ldld... " >&6; }
12910if test ${ac_cv_lib_dld_shl_load+y}
12911then :
12912 printf %s "(cached) " >&6
12913else $as_nop
12914 ac_check_lib_save_LIBS=$LIBS
12915LIBS="-ldld $LIBS"
12916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918
12919/* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply. */
12922char shl_load ();
12923int
12924main (void)
12925{
12926return shl_load ();
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_link "$LINENO"
12932then :
12933 ac_cv_lib_dld_shl_load=yes
12934else $as_nop
12935 ac_cv_lib_dld_shl_load=no
12936fi
12937rm -f core conftest.err conftest.$ac_objext conftest.beam \
12938 conftest$ac_exeext conftest.$ac_ext
12939LIBS=$ac_check_lib_save_LIBS
12940fi
12941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12942printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12943if test "x$ac_cv_lib_dld_shl_load" = xyes
12944then :
12945 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12946else $as_nop
12947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12948if test "x$ac_cv_func_dlopen" = xyes
12949then :
12950 lt_cv_dlopen=dlopen
12951else $as_nop
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12953printf %s "checking for dlopen in -ldl... " >&6; }
12954if test ${ac_cv_lib_dl_dlopen+y}
12955then :
12956 printf %s "(cached) " >&6
12957else $as_nop
12958 ac_check_lib_save_LIBS=$LIBS
12959LIBS="-ldl $LIBS"
12960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h. */
12962
12963/* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966char dlopen ();
12967int
12968main (void)
12969{
12970return dlopen ();
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975if ac_fn_c_try_link "$LINENO"
12976then :
12977 ac_cv_lib_dl_dlopen=yes
12978else $as_nop
12979 ac_cv_lib_dl_dlopen=no
12980fi
12981rm -f core conftest.err conftest.$ac_objext conftest.beam \
12982 conftest$ac_exeext conftest.$ac_ext
12983LIBS=$ac_check_lib_save_LIBS
12984fi
12985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12986printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12987if test "x$ac_cv_lib_dl_dlopen" = xyes
12988then :
12989 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12990else $as_nop
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12992printf %s "checking for dlopen in -lsvld... " >&6; }
12993if test ${ac_cv_lib_svld_dlopen+y}
12994then :
12995 printf %s "(cached) " >&6
12996else $as_nop
12997 ac_check_lib_save_LIBS=$LIBS
12998LIBS="-lsvld $LIBS"
12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h. */
13001
13002/* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13005char dlopen ();
13006int
13007main (void)
13008{
13009return dlopen ();
13010 ;
13011 return 0;
13012}
13013_ACEOF
13014if ac_fn_c_try_link "$LINENO"
13015then :
13016 ac_cv_lib_svld_dlopen=yes
13017else $as_nop
13018 ac_cv_lib_svld_dlopen=no
13019fi
13020rm -f core conftest.err conftest.$ac_objext conftest.beam \
13021 conftest$ac_exeext conftest.$ac_ext
13022LIBS=$ac_check_lib_save_LIBS
13023fi
13024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13025printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13026if test "x$ac_cv_lib_svld_dlopen" = xyes
13027then :
13028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13029else $as_nop
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13031printf %s "checking for dld_link in -ldld... " >&6; }
13032if test ${ac_cv_lib_dld_dld_link+y}
13033then :
13034 printf %s "(cached) " >&6
13035else $as_nop
13036 ac_check_lib_save_LIBS=$LIBS
13037LIBS="-ldld $LIBS"
13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h. */
13040
13041/* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13044char dld_link ();
13045int
13046main (void)
13047{
13048return dld_link ();
13049 ;
13050 return 0;
13051}
13052_ACEOF
13053if ac_fn_c_try_link "$LINENO"
13054then :
13055 ac_cv_lib_dld_dld_link=yes
13056else $as_nop
13057 ac_cv_lib_dld_dld_link=no
13058fi
13059rm -f core conftest.err conftest.$ac_objext conftest.beam \
13060 conftest$ac_exeext conftest.$ac_ext
13061LIBS=$ac_check_lib_save_LIBS
13062fi
13063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13064printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13065if test "x$ac_cv_lib_dld_dld_link" = xyes
13066then :
13067 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13068fi
13069
13070
13071fi
13072
13073
13074fi
13075
13076
13077fi
13078
13079
13080fi
13081
13082
13083fi
13084
13085 ;;
13086 esac
13087
13088 if test no = "$lt_cv_dlopen"; then
13089 enable_dlopen=no
13090 else
13091 enable_dlopen=yes
13092 fi
13093
13094 case $lt_cv_dlopen in
13095 dlopen)
13096 save_CPPFLAGS=$CPPFLAGS
13097 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13098
13099 save_LDFLAGS=$LDFLAGS
13100 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13101
13102 save_LIBS=$LIBS
13103 LIBS="$lt_cv_dlopen_libs $LIBS"
13104
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13106printf %s "checking whether a program can dlopen itself... " >&6; }
13107if test ${lt_cv_dlopen_self+y}
13108then :
13109 printf %s "(cached) " >&6
13110else $as_nop
13111 if test yes = "$cross_compiling"; then :
13112 lt_cv_dlopen_self=cross
13113else
13114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13115 lt_status=$lt_dlunknown
13116 cat > conftest.$ac_ext <<_LT_EOF
13117#line $LINENO "configure"
13118#include "confdefs.h"
13119
13120#if HAVE_DLFCN_H
13121#include <dlfcn.h>
13122#endif
13123
13124#include <stdio.h>
13125
13126#ifdef RTLD_GLOBAL
13127# define LT_DLGLOBAL RTLD_GLOBAL
13128#else
13129# ifdef DL_GLOBAL
13130# define LT_DLGLOBAL DL_GLOBAL
13131# else
13132# define LT_DLGLOBAL 0
13133# endif
13134#endif
13135
13136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13137 find out it does not work in some platform. */
13138#ifndef LT_DLLAZY_OR_NOW
13139# ifdef RTLD_LAZY
13140# define LT_DLLAZY_OR_NOW RTLD_LAZY
13141# else
13142# ifdef DL_LAZY
13143# define LT_DLLAZY_OR_NOW DL_LAZY
13144# else
13145# ifdef RTLD_NOW
13146# define LT_DLLAZY_OR_NOW RTLD_NOW
13147# else
13148# ifdef DL_NOW
13149# define LT_DLLAZY_OR_NOW DL_NOW
13150# else
13151# define LT_DLLAZY_OR_NOW 0
13152# endif
13153# endif
13154# endif
13155# endif
13156#endif
13157
13158/* When -fvisibility=hidden is used, assume the code has been annotated
13159 correspondingly for the symbols needed. */
13160#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13161int fnord () __attribute__((visibility("default")));
13162#endif
13163
13164int fnord () { return 42; }
13165int main ()
13166{
13167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13168 int status = $lt_dlunknown;
13169
13170 if (self)
13171 {
13172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13173 else
13174 {
13175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13176 else puts (dlerror ());
13177 }
13178 /* dlclose (self); */
13179 }
13180 else
13181 puts (dlerror ());
13182
13183 return status;
13184}
13185_LT_EOF
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187 (eval $ac_link) 2>&5
13188 ac_status=$?
13189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13191 (./conftest; exit; ) >&5 2>/dev/null
13192 lt_status=$?
13193 case x$lt_status in
13194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197 esac
13198 else :
13199 # compilation failed
13200 lt_cv_dlopen_self=no
13201 fi
13202fi
13203rm -fr conftest*
13204
13205
13206fi
13207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13209
13210 if test yes = "$lt_cv_dlopen_self"; then
13211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13214if test ${lt_cv_dlopen_self_static+y}
13215then :
13216 printf %s "(cached) " >&6
13217else $as_nop
13218 if test yes = "$cross_compiling"; then :
13219 lt_cv_dlopen_self_static=cross
13220else
13221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13222 lt_status=$lt_dlunknown
13223 cat > conftest.$ac_ext <<_LT_EOF
13224#line $LINENO "configure"
13225#include "confdefs.h"
13226
13227#if HAVE_DLFCN_H
13228#include <dlfcn.h>
13229#endif
13230
13231#include <stdio.h>
13232
13233#ifdef RTLD_GLOBAL
13234# define LT_DLGLOBAL RTLD_GLOBAL
13235#else
13236# ifdef DL_GLOBAL
13237# define LT_DLGLOBAL DL_GLOBAL
13238# else
13239# define LT_DLGLOBAL 0
13240# endif
13241#endif
13242
13243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13244 find out it does not work in some platform. */
13245#ifndef LT_DLLAZY_OR_NOW
13246# ifdef RTLD_LAZY
13247# define LT_DLLAZY_OR_NOW RTLD_LAZY
13248# else
13249# ifdef DL_LAZY
13250# define LT_DLLAZY_OR_NOW DL_LAZY
13251# else
13252# ifdef RTLD_NOW
13253# define LT_DLLAZY_OR_NOW RTLD_NOW
13254# else
13255# ifdef DL_NOW
13256# define LT_DLLAZY_OR_NOW DL_NOW
13257# else
13258# define LT_DLLAZY_OR_NOW 0
13259# endif
13260# endif
13261# endif
13262# endif
13263#endif
13264
13265/* When -fvisibility=hidden is used, assume the code has been annotated
13266 correspondingly for the symbols needed. */
13267#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13268int fnord () __attribute__((visibility("default")));
13269#endif
13270
13271int fnord () { return 42; }
13272int main ()
13273{
13274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13275 int status = $lt_dlunknown;
13276
13277 if (self)
13278 {
13279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13280 else
13281 {
13282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13283 else puts (dlerror ());
13284 }
13285 /* dlclose (self); */
13286 }
13287 else
13288 puts (dlerror ());
13289
13290 return status;
13291}
13292_LT_EOF
13293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13294 (eval $ac_link) 2>&5
13295 ac_status=$?
13296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13297 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13298 (./conftest; exit; ) >&5 2>/dev/null
13299 lt_status=$?
13300 case x$lt_status in
13301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13304 esac
13305 else :
13306 # compilation failed
13307 lt_cv_dlopen_self_static=no
13308 fi
13309fi
13310rm -fr conftest*
13311
13312
13313fi
13314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13315printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13316 fi
13317
13318 CPPFLAGS=$save_CPPFLAGS
13319 LDFLAGS=$save_LDFLAGS
13320 LIBS=$save_LIBS
13321 ;;
13322 esac
13323
13324 case $lt_cv_dlopen_self in
13325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13326 *) enable_dlopen_self=unknown ;;
13327 esac
13328
13329 case $lt_cv_dlopen_self_static in
13330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13331 *) enable_dlopen_self_static=unknown ;;
13332 esac
13333fi
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351striplib=
13352old_striplib=
13353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13354printf %s "checking whether stripping libraries is possible... " >&6; }
13355if test -z "$STRIP"; then
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357printf "%s\n" "no" >&6; }
13358else
13359 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13360 old_striplib="$STRIP --strip-debug"
13361 striplib="$STRIP --strip-unneeded"
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13363printf "%s\n" "yes" >&6; }
13364 else
13365 case $host_os in
13366 darwin*)
13367 # FIXME - insert some real tests, host_os isn't really good enough
13368 striplib="$STRIP -x"
13369 old_striplib="$STRIP -S"
13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13371printf "%s\n" "yes" >&6; }
13372 ;;
13373 freebsd*)
13374 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13375 old_striplib="$STRIP --strip-debug"
13376 striplib="$STRIP --strip-unneeded"
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378printf "%s\n" "yes" >&6; }
13379 else
13380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381printf "%s\n" "no" >&6; }
13382 fi
13383 ;;
13384 *)
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386printf "%s\n" "no" >&6; }
13387 ;;
13388 esac
13389 fi
13390fi
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403 # Report what library types will actually be built
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13405printf %s "checking if libtool supports shared libraries... " >&6; }
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13407printf "%s\n" "$can_build_shared" >&6; }
13408
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13410printf %s "checking whether to build shared libraries... " >&6; }
13411 test no = "$can_build_shared" && enable_shared=no
13412
13413 # On AIX, shared libraries and static libraries use the same namespace, and
13414 # are all built from PIC.
13415 case $host_os in
13416 aix3*)
13417 test yes = "$enable_shared" && enable_static=no
13418 if test -n "$RANLIB"; then
13419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13420 postinstall_cmds='$RANLIB $lib'
13421 fi
13422 ;;
13423
13424 aix[4-9]*)
13425 if test ia64 != "$host_cpu"; then
13426 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13427 yes,aix,yes) ;; # shared object as lib.so file only
13428 yes,svr4,*) ;; # shared object as lib.so archive member only
13429 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13430 esac
13431 fi
13432 ;;
13433 esac
13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13435printf "%s\n" "$enable_shared" >&6; }
13436
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13438printf %s "checking whether to build static libraries... " >&6; }
13439 # Make sure either enable_shared or enable_static is yes.
13440 test yes = "$enable_shared" || enable_static=yes
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13442printf "%s\n" "$enable_static" >&6; }
13443
13444
13445
13446
13447fi
13448ac_ext=c
13449ac_cpp='$CPP $CPPFLAGS'
13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13452ac_compiler_gnu=$ac_cv_c_compiler_gnu
13453
13454CC=$lt_save_CC
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470 ac_config_commands="$ac_config_commands libtool"
13471
13472
13473
13474
13475# Only expand once:
13476
13477
13478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13479printf %s "checking whether ln -s works... " >&6; }
13480LN_S=$as_ln_s
13481if test "$LN_S" = "ln -s"; then
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483printf "%s\n" "yes" >&6; }
13484else
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13486printf "%s\n" "no, using $LN_S" >&6; }
13487fi
13488
13489
13490# Check for GCC visibility feature
13491
13492
13493
13494 VISIBILITY_CFLAGS=
13495 VISIBILITY_CXXFLAGS=
13496 HAVE_VISIBILITY=0
13497 if test -n "$GCC"; then
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13499printf %s "checking whether the -Werror option is usable... " >&6; }
13500 if test ${pcre2_cv_cc_vis_werror+y}
13501then :
13502 printf %s "(cached) " >&6
13503else $as_nop
13504
13505 pcre2_save_CFLAGS="$CFLAGS"
13506 CFLAGS="$CFLAGS -Werror"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508/* end confdefs.h. */
13509
13510int
13511main (void)
13512{
13513
13514 ;
13515 return 0;
13516}
13517_ACEOF
13518if ac_fn_c_try_compile "$LINENO"
13519then :
13520 pcre2_cv_cc_vis_werror=yes
13521else $as_nop
13522 pcre2_cv_cc_vis_werror=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 CFLAGS="$pcre2_save_CFLAGS"
13526fi
13527
13528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
13529printf "%s\n" "$pcre2_cv_cc_vis_werror" >&6; }
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13531printf %s "checking for simple visibility declarations... " >&6; }
13532 if test ${pcre2_cv_cc_visibility+y}
13533then :
13534 printf %s "(cached) " >&6
13535else $as_nop
13536
13537 pcre2_save_CFLAGS="$CFLAGS"
13538 CFLAGS="$CFLAGS -fvisibility=hidden"
13539 if test $pcre2_cv_cc_vis_werror = yes; then
13540 CFLAGS="$CFLAGS -Werror"
13541 fi
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h. */
13544extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13545 extern __attribute__((__visibility__("default"))) int exportedvar;
13546 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13547 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13548 void dummyfunc (void) {}
13549
13550int
13551main (void)
13552{
13553
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558if ac_fn_c_try_compile "$LINENO"
13559then :
13560 pcre2_cv_cc_visibility=yes
13561else $as_nop
13562 pcre2_cv_cc_visibility=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13565 CFLAGS="$pcre2_save_CFLAGS"
13566fi
13567
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
13569printf "%s\n" "$pcre2_cv_cc_visibility" >&6; }
13570 if test $pcre2_cv_cc_visibility = yes; then
13571 VISIBILITY_CFLAGS="-fvisibility=hidden"
13572 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
13573 HAVE_VISIBILITY=1
13574
13575printf "%s\n" "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
13576
13577
13578printf "%s\n" "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
13579
13580
13581printf "%s\n" "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
13582
13583
13584printf "%s\n" "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
13585
13586 fi
13587 fi
13588
13589
13590
13591
13592printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13593
13594
13595
13596# Check for Clang __attribute__((uninitialized)) feature
13597
13598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5
13599printf %s "checking for __attribute__((uninitialized))... " >&6; }
13600ac_ext=c
13601ac_cpp='$CPP $CPPFLAGS'
13602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13604ac_compiler_gnu=$ac_cv_c_compiler_gnu
13605
13606tmp_CFLAGS=$CFLAGS
13607CFLAGS="$CFLAGS -Werror"
13608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609/* end confdefs.h. */
13610
13611int
13612main (void)
13613{
13614char buf[128] __attribute__((uninitialized));(void)buf
13615 ;
13616 return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_compile "$LINENO"
13620then :
13621 pcre2_cc_cv_attribute_uninitialized=yes
13622else $as_nop
13623 pcre2_cc_cv_attribute_uninitialized=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5
13627printf "%s\n" "$pcre2_cc_cv_attribute_uninitialized" >&6; }
13628if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then
13629
13630printf "%s\n" "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h
13631
13632fi
13633CFLAGS=$tmp_CFLAGS
13634ac_ext=c
13635ac_cpp='$CPP $CPPFLAGS'
13636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13638ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639
13640
13641# Versioning
13642
13643PCRE2_MAJOR="10"
13644PCRE2_MINOR="38"
13645PCRE2_PRERELEASE=""
13646PCRE2_DATE="2021-10-01"
13647
13648if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
13649then
13650 echo "***"
13651 echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
13652 echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
13653 echo "***"
13654 exit 1
13655fi
13656
13657
13658
13659
13660
13661
13662# Set a more sensible default value for $(htmldir).
13663if test "x$htmldir" = 'x${docdir}'
13664then
13665 htmldir='${docdir}/html'
13666fi
13667
13668# Force an error for PCRE1 size options
13669# Check whether --enable-pcre8 was given.
13670if test ${enable_pcre8+y}
13671then :
13672 enableval=$enable_pcre8;
13673else $as_nop
13674 enable_pcre8=no
13675fi
13676
13677# Check whether --enable-pcre16 was given.
13678if test ${enable_pcre16+y}
13679then :
13680 enableval=$enable_pcre16;
13681else $as_nop
13682 enable_pcre16=no
13683fi
13684
13685# Check whether --enable-pcre32 was given.
13686if test ${enable_pcre32+y}
13687then :
13688 enableval=$enable_pcre32;
13689else $as_nop
13690 enable_pcre32=no
13691fi
13692
13693
13694if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
13695then
13696 echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
13697 exit 1
13698fi
13699
13700# Handle --disable-pcre2-8 (enabled by default)
13701# Check whether --enable-pcre2-8 was given.
13702if test ${enable_pcre2_8+y}
13703then :
13704 enableval=$enable_pcre2_8;
13705else $as_nop
13706 enable_pcre2_8=unset
13707fi
13708
13709
13710
13711# Handle --enable-pcre2-16 (disabled by default)
13712# Check whether --enable-pcre2-16 was given.
13713if test ${enable_pcre2_16+y}
13714then :
13715 enableval=$enable_pcre2_16;
13716else $as_nop
13717 enable_pcre2_16=unset
13718fi
13719
13720
13721
13722# Handle --enable-pcre2-32 (disabled by default)
13723# Check whether --enable-pcre2-32 was given.
13724if test ${enable_pcre2_32+y}
13725then :
13726 enableval=$enable_pcre2_32;
13727else $as_nop
13728 enable_pcre2_32=unset
13729fi
13730
13731
13732
13733# Handle --enable-debug (disabled by default)
13734# Check whether --enable-debug was given.
13735if test ${enable_debug+y}
13736then :
13737 enableval=$enable_debug;
13738else $as_nop
13739 enable_debug=no
13740fi
13741
13742
13743# Handle --enable-jit (disabled by default)
13744# Check whether --enable-jit was given.
13745if test ${enable_jit+y}
13746then :
13747 enableval=$enable_jit;
13748else $as_nop
13749 enable_jit=no
13750fi
13751
13752
13753# This code enables JIT if the hardware supports it.
13754if test "$enable_jit" = "auto"; then
13755 ac_ext=c
13756ac_cpp='$CPP $CPPFLAGS'
13757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759ac_compiler_gnu=$ac_cv_c_compiler_gnu
13760
13761 SAVE_CPPFLAGS=$CPPFLAGS
13762 CPPFLAGS=-I$srcdir
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764/* end confdefs.h. */
13765
13766 #define SLJIT_CONFIG_AUTO 1
13767 #include "src/sljit/sljitConfigInternal.h"
13768 #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
13769 #error unsupported
13770 #endif
13771_ACEOF
13772if ac_fn_c_try_compile "$LINENO"
13773then :
13774 enable_jit=yes
13775else $as_nop
13776 enable_jit=no
13777fi
13778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13779 CPPFLAGS=$SAVE_CPPFLAGS
13780 echo checking for JIT support on this hardware... $enable_jit
13781fi
13782
13783# Handle --enable-jit-sealloc (disabled by default and only experimental)
13784case $host_os in
13785 linux* | netbsd*)
13786 # Check whether --enable-jit-sealloc was given.
13787if test ${enable_jit_sealloc+y}
13788then :
13789 enableval=$enable_jit_sealloc;
13790else $as_nop
13791 enable_jit_sealloc=no
13792fi
13793
13794 ;;
13795 *)
13796 enable_jit_sealloc=unsupported
13797 ;;
13798esac
13799
13800# Handle --disable-pcre2grep-jit (enabled by default)
13801# Check whether --enable-pcre2grep-jit was given.
13802if test ${enable_pcre2grep_jit+y}
13803then :
13804 enableval=$enable_pcre2grep_jit;
13805else $as_nop
13806 enable_pcre2grep_jit=yes
13807fi
13808
13809
13810# Handle --disable-pcre2grep-callout (enabled by default)
13811# Check whether --enable-pcre2grep-callout was given.
13812if test ${enable_pcre2grep_callout+y}
13813then :
13814 enableval=$enable_pcre2grep_callout;
13815else $as_nop
13816 enable_pcre2grep_callout=yes
13817fi
13818
13819
13820# Handle --disable-pcre2grep-callout-fork (enabled by default)
13821# Check whether --enable-pcre2grep-callout-fork was given.
13822if test ${enable_pcre2grep_callout_fork+y}
13823then :
13824 enableval=$enable_pcre2grep_callout_fork;
13825else $as_nop
13826 enable_pcre2grep_callout_fork=yes
13827fi
13828
13829
13830# Handle --enable-rebuild-chartables
13831# Check whether --enable-rebuild-chartables was given.
13832if test ${enable_rebuild_chartables+y}
13833then :
13834 enableval=$enable_rebuild_chartables;
13835else $as_nop
13836 enable_rebuild_chartables=no
13837fi
13838
13839
13840# Handle --disable-unicode (enabled by default)
13841# Check whether --enable-unicode was given.
13842if test ${enable_unicode+y}
13843then :
13844 enableval=$enable_unicode;
13845else $as_nop
13846 enable_unicode=unset
13847fi
13848
13849
13850# Handle newline options
13851ac_pcre2_newline=lf
13852# Check whether --enable-newline-is-cr was given.
13853if test ${enable_newline_is_cr+y}
13854then :
13855 enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
13856fi
13857
13858# Check whether --enable-newline-is-lf was given.
13859if test ${enable_newline_is_lf+y}
13860then :
13861 enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
13862fi
13863
13864# Check whether --enable-newline-is-crlf was given.
13865if test ${enable_newline_is_crlf+y}
13866then :
13867 enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
13868fi
13869
13870# Check whether --enable-newline-is-anycrlf was given.
13871if test ${enable_newline_is_anycrlf+y}
13872then :
13873 enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
13874fi
13875
13876# Check whether --enable-newline-is-any was given.
13877if test ${enable_newline_is_any+y}
13878then :
13879 enableval=$enable_newline_is_any; ac_pcre2_newline=any
13880fi
13881
13882# Check whether --enable-newline-is-nul was given.
13883if test ${enable_newline_is_nul+y}
13884then :
13885 enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
13886fi
13887
13888enable_newline="$ac_pcre2_newline"
13889
13890# Handle --enable-bsr-anycrlf
13891# Check whether --enable-bsr-anycrlf was given.
13892if test ${enable_bsr_anycrlf+y}
13893then :
13894 enableval=$enable_bsr_anycrlf;
13895else $as_nop
13896 enable_bsr_anycrlf=no
13897fi
13898
13899
13900# Handle --enable-never-backslash-C
13901# Check whether --enable-never-backslash-C was given.
13902if test ${enable_never_backslash_C+y}
13903then :
13904 enableval=$enable_never_backslash_C;
13905else $as_nop
13906 enable_never_backslash_C=no
13907fi
13908
13909
13910# Handle --enable-ebcdic
13911# Check whether --enable-ebcdic was given.
13912if test ${enable_ebcdic+y}
13913then :
13914 enableval=$enable_ebcdic;
13915else $as_nop
13916 enable_ebcdic=no
13917fi
13918
13919
13920# Handle --enable-ebcdic-nl25
13921# Check whether --enable-ebcdic-nl25 was given.
13922if test ${enable_ebcdic_nl25+y}
13923then :
13924 enableval=$enable_ebcdic_nl25;
13925else $as_nop
13926 enable_ebcdic_nl25=no
13927fi
13928
13929
13930# Handle --enable-pcre2grep-libz
13931# Check whether --enable-pcre2grep-libz was given.
13932if test ${enable_pcre2grep_libz+y}
13933then :
13934 enableval=$enable_pcre2grep_libz;
13935else $as_nop
13936 enable_pcre2grep_libz=no
13937fi
13938
13939
13940# Handle --enable-pcre2grep-libbz2
13941# Check whether --enable-pcre2grep-libbz2 was given.
13942if test ${enable_pcre2grep_libbz2+y}
13943then :
13944 enableval=$enable_pcre2grep_libbz2;
13945else $as_nop
13946 enable_pcre2grep_libbz2=no
13947fi
13948
13949
13950# Handle --with-pcre2grep-bufsize=N
13951
13952# Check whether --with-pcre2grep-bufsize was given.
13953if test ${with_pcre2grep_bufsize+y}
13954then :
13955 withval=$with_pcre2grep_bufsize;
13956else $as_nop
13957 with_pcre2grep_bufsize=20480
13958fi
13959
13960
13961# Handle --with-pcre2grep-max-bufsize=N
13962
13963# Check whether --with-pcre2grep-max-bufsize was given.
13964if test ${with_pcre2grep_max_bufsize+y}
13965then :
13966 withval=$with_pcre2grep_max_bufsize;
13967else $as_nop
13968 with_pcre2grep_max_bufsize=1048576
13969fi
13970
13971
13972# Handle --enable-pcre2test-libedit
13973# Check whether --enable-pcre2test-libedit was given.
13974if test ${enable_pcre2test_libedit+y}
13975then :
13976 enableval=$enable_pcre2test_libedit;
13977else $as_nop
13978 enable_pcre2test_libedit=no
13979fi
13980
13981
13982# Handle --enable-pcre2test-libreadline
13983# Check whether --enable-pcre2test-libreadline was given.
13984if test ${enable_pcre2test_libreadline+y}
13985then :
13986 enableval=$enable_pcre2test_libreadline;
13987else $as_nop
13988 enable_pcre2test_libreadline=no
13989fi
13990
13991
13992# Handle --with-link-size=N
13993
13994# Check whether --with-link-size was given.
13995if test ${with_link_size+y}
13996then :
13997 withval=$with_link_size;
13998else $as_nop
13999 with_link_size=2
14000fi
14001
14002
14003# Handle --with-parens-nest-limit=N
14004
14005# Check whether --with-parens-nest-limit was given.
14006if test ${with_parens_nest_limit+y}
14007then :
14008 withval=$with_parens_nest_limit;
14009else $as_nop
14010 with_parens_nest_limit=250
14011fi
14012
14013
14014# Handle --with-heap-limit
14015
14016# Check whether --with-heap-limit was given.
14017if test ${with_heap_limit+y}
14018then :
14019 withval=$with_heap_limit;
14020else $as_nop
14021 with_heap_limit=20000000
14022fi
14023
14024
14025# Handle --with-match-limit=N
14026
14027# Check whether --with-match-limit was given.
14028if test ${with_match_limit+y}
14029then :
14030 withval=$with_match_limit;
14031else $as_nop
14032 with_match_limit=10000000
14033fi
14034
14035
14036# Handle --with-match-limit-depth=N
14037# Recognize old synonym --with-match-limit-recursion
14038#
14039# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
14040# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
14041# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
14042# value (or even the same numeric value as MATCH_LIMIT, though no longer
14043# defined in terms of the latter).
14044#
14045
14046# Check whether --with-match-limit-depth was given.
14047if test ${with_match_limit_depth+y}
14048then :
14049 withval=$with_match_limit_depth;
14050else $as_nop
14051 with_match_limit_depth=MATCH_LIMIT
14052fi
14053
14054
14055
14056# Check whether --with-match-limit-recursion was given.
14057if test ${with_match_limit_recursion+y}
14058then :
14059 withval=$with_match_limit_recursion;
14060else $as_nop
14061 with_match_limit_recursion=UNSET
14062fi
14063
14064
14065# Handle --enable-valgrind
14066# Check whether --enable-valgrind was given.
14067if test ${enable_valgrind+y}
14068then :
14069 enableval=$enable_valgrind;
14070else $as_nop
14071 enable_valgrind=no
14072fi
14073
14074
14075# Enable code coverage reports using gcov
14076# Check whether --enable-coverage was given.
14077if test ${enable_coverage+y}
14078then :
14079 enableval=$enable_coverage;
14080else $as_nop
14081 enable_coverage=no
14082fi
14083
14084
14085# Handle --enable-fuzz-support
14086# Check whether --enable-fuzz_support was given.
14087if test ${enable_fuzz_support+y}
14088then :
14089 enableval=$enable_fuzz_support;
14090else $as_nop
14091 enable_fuzz_support=no
14092fi
14093
14094
14095# Handle --disable-stack-for-recursion
14096# This option became obsolete at release 10.30.
14097# Check whether --enable-stack-for-recursion was given.
14098if test ${enable_stack_for_recursion+y}
14099then :
14100 enableval=$enable_stack_for_recursion;
14101else $as_nop
14102 enable_stack_for_recursion=yes
14103fi
14104
14105
14106# Original code
14107# AC_ARG_ENABLE(stack-for-recursion,
14108# AS_HELP_STRING([--disable-stack-for-recursion],
14109# [don't use stack recursion when matching]),
14110# , enable_stack_for_recursion=yes)
14111
14112# Handle --disable-percent_zt (set as "auto" by default)
14113# Check whether --enable-percent-zt was given.
14114if test ${enable_percent_zt+y}
14115then :
14116 enableval=$enable_percent_zt;
14117else $as_nop
14118 enable_percent_zt=auto
14119fi
14120
14121
14122# Set the default value for pcre2-8
14123if test "x$enable_pcre2_8" = "xunset"
14124then
14125 enable_pcre2_8=yes
14126fi
14127
14128# Set the default value for pcre2-16
14129if test "x$enable_pcre2_16" = "xunset"
14130then
14131 enable_pcre2_16=no
14132fi
14133
14134# Set the default value for pcre2-32
14135if test "x$enable_pcre2_32" = "xunset"
14136then
14137 enable_pcre2_32=no
14138fi
14139
14140# Make sure at least one library is selected
14141if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
14142then
14143 as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
14144fi
14145
14146# Unicode is enabled by default.
14147if test "x$enable_unicode" = "xunset"
14148then
14149 enable_unicode=yes
14150fi
14151
14152# Convert the newline identifier into the appropriate integer value. These must
14153# agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
14154
14155case "$enable_newline" in
14156 cr) ac_pcre2_newline_value=1 ;;
14157 lf) ac_pcre2_newline_value=2 ;;
14158 crlf) ac_pcre2_newline_value=3 ;;
14159 any) ac_pcre2_newline_value=4 ;;
14160 anycrlf) ac_pcre2_newline_value=5 ;;
14161 nul) ac_pcre2_newline_value=6 ;;
14162 *)
14163 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
14164 ;;
14165esac
14166
14167# --enable-ebcdic-nl25 implies --enable-ebcdic
14168if test "x$enable_ebcdic_nl25" = "xyes"; then
14169 enable_ebcdic=yes
14170fi
14171
14172# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
14173# Also check that UTF support is not requested, because PCRE2 cannot handle
14174# EBCDIC and UTF in the same build. To do so it would need to use different
14175# character constants depending on the mode. Also, EBCDIC cannot be used with
14176# 16-bit and 32-bit libraries.
14177#
14178if test "x$enable_ebcdic" = "xyes"; then
14179 enable_rebuild_chartables=yes
14180 if test "x$enable_unicode" = "xyes"; then
14181 as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
14182 fi
14183 if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
14184 as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
14185 fi
14186fi
14187
14188# Check argument to --with-link-size
14189case "$with_link_size" in
14190 2|3|4) ;;
14191 *)
14192 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
14193 ;;
14194esac
14195
14196
14197
14198# Checks for header files.
14199ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14200if test "x$ac_cv_header_limits_h" = xyes
14201then :
14202 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14203
14204fi
14205ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14206if test "x$ac_cv_header_sys_types_h" = xyes
14207then :
14208 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14209
14210fi
14211ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14212if test "x$ac_cv_header_sys_stat_h" = xyes
14213then :
14214 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14215
14216fi
14217ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
14218if test "x$ac_cv_header_dirent_h" = xyes
14219then :
14220 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
14221
14222fi
14223
14224 for ac_header in windows.h
14225do :
14226 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14227if test "x$ac_cv_header_windows_h" = xyes
14228then :
14229 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
14230 HAVE_WINDOWS_H=1
14231fi
14232
14233done
14234 for ac_header in sys/wait.h
14235do :
14236 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14237if test "x$ac_cv_header_sys_wait_h" = xyes
14238then :
14239 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14240 HAVE_SYS_WAIT_H=1
14241fi
14242
14243done
14244
14245# Conditional compilation
14246 if test "x$enable_pcre2_8" = "xyes"; then
14247 WITH_PCRE2_8_TRUE=
14248 WITH_PCRE2_8_FALSE='#'
14249else
14250 WITH_PCRE2_8_TRUE='#'
14251 WITH_PCRE2_8_FALSE=
14252fi
14253
14254 if test "x$enable_pcre2_16" = "xyes"; then
14255 WITH_PCRE2_16_TRUE=
14256 WITH_PCRE2_16_FALSE='#'
14257else
14258 WITH_PCRE2_16_TRUE='#'
14259 WITH_PCRE2_16_FALSE=
14260fi
14261
14262 if test "x$enable_pcre2_32" = "xyes"; then
14263 WITH_PCRE2_32_TRUE=
14264 WITH_PCRE2_32_FALSE='#'
14265else
14266 WITH_PCRE2_32_TRUE='#'
14267 WITH_PCRE2_32_FALSE=
14268fi
14269
14270 if test "x$enable_debug" = "xyes"; then
14271 WITH_DEBUG_TRUE=
14272 WITH_DEBUG_FALSE='#'
14273else
14274 WITH_DEBUG_TRUE='#'
14275 WITH_DEBUG_FALSE=
14276fi
14277
14278 if test "x$enable_rebuild_chartables" = "xyes"; then
14279 WITH_REBUILD_CHARTABLES_TRUE=
14280 WITH_REBUILD_CHARTABLES_FALSE='#'
14281else
14282 WITH_REBUILD_CHARTABLES_TRUE='#'
14283 WITH_REBUILD_CHARTABLES_FALSE=
14284fi
14285
14286 if test "x$enable_jit" = "xyes"; then
14287 WITH_JIT_TRUE=
14288 WITH_JIT_FALSE='#'
14289else
14290 WITH_JIT_TRUE='#'
14291 WITH_JIT_FALSE=
14292fi
14293
14294 if test "x$enable_unicode" = "xyes"; then
14295 WITH_UNICODE_TRUE=
14296 WITH_UNICODE_FALSE='#'
14297else
14298 WITH_UNICODE_TRUE='#'
14299 WITH_UNICODE_FALSE=
14300fi
14301
14302 if test "x$enable_valgrind" = "xyes"; then
14303 WITH_VALGRIND_TRUE=
14304 WITH_VALGRIND_FALSE='#'
14305else
14306 WITH_VALGRIND_TRUE='#'
14307 WITH_VALGRIND_FALSE=
14308fi
14309
14310 if test "x$enable_fuzz_support" = "xyes"; then
14311 WITH_FUZZ_SUPPORT_TRUE=
14312 WITH_FUZZ_SUPPORT_FALSE='#'
14313else
14314 WITH_FUZZ_SUPPORT_TRUE='#'
14315 WITH_FUZZ_SUPPORT_FALSE=
14316fi
14317
14318
14319if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
14320 echo "** ERROR: Fuzzer support requires the 8-bit library"
14321 exit 1
14322fi
14323
14324# Checks for typedefs, structures, and compiler characteristics.
14325
14326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14327printf %s "checking for an ANSI C-conforming const... " >&6; }
14328if test ${ac_cv_c_const+y}
14329then :
14330 printf %s "(cached) " >&6
14331else $as_nop
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h. */
14334
14335int
14336main (void)
14337{
14338
14339#ifndef __cplusplus
14340 /* Ultrix mips cc rejects this sort of thing. */
14341 typedef int charset[2];
14342 const charset cs = { 0, 0 };
14343 /* SunOS 4.1.1 cc rejects this. */
14344 char const *const *pcpcc;
14345 char **ppc;
14346 /* NEC SVR4.0.2 mips cc rejects this. */
14347 struct point {int x, y;};
14348 static struct point const zero = {0,0};
14349 /* IBM XL C 1.02.0.0 rejects this.
14350 It does not let you subtract one const X* pointer from another in
14351 an arm of an if-expression whose if-part is not a constant
14352 expression */
14353 const char *g = "string";
14354 pcpcc = &g + (g ? g-g : 0);
14355 /* HPUX 7.0 cc rejects these. */
14356 ++pcpcc;
14357 ppc = (char**) pcpcc;
14358 pcpcc = (char const *const *) ppc;
14359 { /* SCO 3.2v4 cc rejects this sort of thing. */
14360 char tx;
14361 char *t = &tx;
14362 char const *s = 0 ? (char *) 0 : (char const *) 0;
14363
14364 *t++ = 0;
14365 if (s) return 0;
14366 }
14367 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14368 int x[] = {25, 17};
14369 const int *foo = &x[0];
14370 ++foo;
14371 }
14372 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14373 typedef const int *iptr;
14374 iptr p = 0;
14375 ++p;
14376 }
14377 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14378 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14379 struct s { int j; const int *ap[3]; } bx;
14380 struct s *b = &bx; b->j = 5;
14381 }
14382 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14383 const int foo = 10;
14384 if (!foo) return 0;
14385 }
14386 return !cs[0] && !zero.x;
14387#endif
14388
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393if ac_fn_c_try_compile "$LINENO"
14394then :
14395 ac_cv_c_const=yes
14396else $as_nop
14397 ac_cv_c_const=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14400fi
14401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14402printf "%s\n" "$ac_cv_c_const" >&6; }
14403if test $ac_cv_c_const = no; then
14404
14405printf "%s\n" "#define const /**/" >>confdefs.h
14406
14407fi
14408
14409ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14410if test "x$ac_cv_type_size_t" = xyes
14411then :
14412
14413else $as_nop
14414
14415printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14416
14417fi
14418
14419
14420# Checks for library functions.
14421
14422ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
14423if test "x$ac_cv_func_bcopy" = xyes
14424then :
14425 printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
14426
14427fi
14428ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
14429if test "x$ac_cv_func_memfd_create" = xyes
14430then :
14431 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
14432
14433fi
14434ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
14435if test "x$ac_cv_func_memmove" = xyes
14436then :
14437 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
14438
14439fi
14440ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
14441if test "x$ac_cv_func_mkostemp" = xyes
14442then :
14443 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
14444
14445fi
14446ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
14447if test "x$ac_cv_func_realpath" = xyes
14448then :
14449 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
14450
14451fi
14452ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
14453if test "x$ac_cv_func_secure_getenv" = xyes
14454then :
14455 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
14456
14457fi
14458ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14459if test "x$ac_cv_func_strerror" = xyes
14460then :
14461 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
14462
14463fi
14464
14465
14466# Check for the availability of libz (aka zlib)
14467
14468 for ac_header in zlib.h
14469do :
14470 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14471if test "x$ac_cv_header_zlib_h" = xyes
14472then :
14473 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
14474 HAVE_ZLIB_H=1
14475fi
14476
14477done
14478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14479printf %s "checking for gzopen in -lz... " >&6; }
14480if test ${ac_cv_lib_z_gzopen+y}
14481then :
14482 printf %s "(cached) " >&6
14483else $as_nop
14484 ac_check_lib_save_LIBS=$LIBS
14485LIBS="-lz $LIBS"
14486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487/* end confdefs.h. */
14488
14489/* Override any GCC internal prototype to avoid an error.
14490 Use char because int might match the return type of a GCC
14491 builtin and then its argument prototype would still apply. */
14492char gzopen ();
14493int
14494main (void)
14495{
14496return gzopen ();
14497 ;
14498 return 0;
14499}
14500_ACEOF
14501if ac_fn_c_try_link "$LINENO"
14502then :
14503 ac_cv_lib_z_gzopen=yes
14504else $as_nop
14505 ac_cv_lib_z_gzopen=no
14506fi
14507rm -f core conftest.err conftest.$ac_objext conftest.beam \
14508 conftest$ac_exeext conftest.$ac_ext
14509LIBS=$ac_check_lib_save_LIBS
14510fi
14511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14512printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
14513if test "x$ac_cv_lib_z_gzopen" = xyes
14514then :
14515 HAVE_LIBZ=1
14516fi
14517
14518
14519# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
14520# as for libz. However, this had the following problem, diagnosed and fixed by
14521# a user:
14522#
14523# - libbz2 uses the Pascal calling convention (WINAPI) for the functions
14524# under Win32.
14525# - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
14526# therefore missing the function definition.
14527# - The compiler thus generates a "C" signature for the test function.
14528# - The linker fails to find the "C" function.
14529# - PCRE2 fails to configure if asked to do so against libbz2.
14530#
14531# Solution:
14532#
14533# - Replace the AC_CHECK_LIB test with a custom test.
14534
14535 for ac_header in bzlib.h
14536do :
14537 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14538if test "x$ac_cv_header_bzlib_h" = xyes
14539then :
14540 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
14541 HAVE_BZLIB_H=1
14542fi
14543
14544done
14545# Original test
14546# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
14547#
14548# Custom test follows
14549
14550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
14551printf %s "checking for libbz2... " >&6; }
14552OLD_LIBS="$LIBS"
14553LIBS="$LIBS -lbz2"
14554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h. */
14556
14557#ifdef HAVE_BZLIB_H
14558#include <bzlib.h>
14559#endif
14560int
14561main (void)
14562{
14563return (int)BZ2_bzopen("conftest", "rb");
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568if ac_fn_c_try_link "$LINENO"
14569then :
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14571printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break;
14572else $as_nop
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14574printf "%s\n" "no" >&6; }
14575fi
14576rm -f core conftest.err conftest.$ac_objext conftest.beam \
14577 conftest$ac_exeext conftest.$ac_ext
14578LIBS="$OLD_LIBS"
14579
14580# Check for the availabiity of libreadline
14581
14582if test "$enable_pcre2test_libreadline" = "yes"; then
14583 for ac_header in readline/readline.h
14584do :
14585 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14586if test "x$ac_cv_header_readline_readline_h" = xyes
14587then :
14588 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
14589 HAVE_READLINE_H=1
14590fi
14591
14592done
14593 for ac_header in readline/history.h
14594do :
14595 ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14596if test "x$ac_cv_header_readline_history_h" = xyes
14597then :
14598 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
14599 HAVE_HISTORY_H=1
14600fi
14601
14602done
14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14604printf %s "checking for readline in -lreadline... " >&6; }
14605if test ${ac_cv_lib_readline_readline+y}
14606then :
14607 printf %s "(cached) " >&6
14608else $as_nop
14609 ac_check_lib_save_LIBS=$LIBS
14610LIBS="-lreadline $LIBS"
14611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h. */
14613
14614/* Override any GCC internal prototype to avoid an error.
14615 Use char because int might match the return type of a GCC
14616 builtin and then its argument prototype would still apply. */
14617char readline ();
14618int
14619main (void)
14620{
14621return readline ();
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"
14627then :
14628 ac_cv_lib_readline_readline=yes
14629else $as_nop
14630 ac_cv_lib_readline_readline=no
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.beam \
14633 conftest$ac_exeext conftest.$ac_ext
14634LIBS=$ac_check_lib_save_LIBS
14635fi
14636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14637printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14638if test "x$ac_cv_lib_readline_readline" = xyes
14639then :
14640 LIBREADLINE="-lreadline"
14641else $as_nop
14642 unset ac_cv_lib_readline_readline;
14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14644printf %s "checking for readline in -lreadline... " >&6; }
14645if test ${ac_cv_lib_readline_readline+y}
14646then :
14647 printf %s "(cached) " >&6
14648else $as_nop
14649 ac_check_lib_save_LIBS=$LIBS
14650LIBS="-lreadline -ltinfo $LIBS"
14651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h. */
14653
14654/* Override any GCC internal prototype to avoid an error.
14655 Use char because int might match the return type of a GCC
14656 builtin and then its argument prototype would still apply. */
14657char readline ();
14658int
14659main (void)
14660{
14661return readline ();
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666if ac_fn_c_try_link "$LINENO"
14667then :
14668 ac_cv_lib_readline_readline=yes
14669else $as_nop
14670 ac_cv_lib_readline_readline=no
14671fi
14672rm -f core conftest.err conftest.$ac_objext conftest.beam \
14673 conftest$ac_exeext conftest.$ac_ext
14674LIBS=$ac_check_lib_save_LIBS
14675fi
14676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14677printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14678if test "x$ac_cv_lib_readline_readline" = xyes
14679then :
14680 LIBREADLINE="-ltinfo"
14681else $as_nop
14682 unset ac_cv_lib_readline_readline;
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14684printf %s "checking for readline in -lreadline... " >&6; }
14685if test ${ac_cv_lib_readline_readline+y}
14686then :
14687 printf %s "(cached) " >&6
14688else $as_nop
14689 ac_check_lib_save_LIBS=$LIBS
14690LIBS="-lreadline -lcurses $LIBS"
14691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h. */
14693
14694/* Override any GCC internal prototype to avoid an error.
14695 Use char because int might match the return type of a GCC
14696 builtin and then its argument prototype would still apply. */
14697char readline ();
14698int
14699main (void)
14700{
14701return readline ();
14702 ;
14703 return 0;
14704}
14705_ACEOF
14706if ac_fn_c_try_link "$LINENO"
14707then :
14708 ac_cv_lib_readline_readline=yes
14709else $as_nop
14710 ac_cv_lib_readline_readline=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.beam \
14713 conftest$ac_exeext conftest.$ac_ext
14714LIBS=$ac_check_lib_save_LIBS
14715fi
14716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14717printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14718if test "x$ac_cv_lib_readline_readline" = xyes
14719then :
14720 LIBREADLINE="-lcurses"
14721else $as_nop
14722 unset ac_cv_lib_readline_readline;
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14724printf %s "checking for readline in -lreadline... " >&6; }
14725if test ${ac_cv_lib_readline_readline+y}
14726then :
14727 printf %s "(cached) " >&6
14728else $as_nop
14729 ac_check_lib_save_LIBS=$LIBS
14730LIBS="-lreadline -lncurses $LIBS"
14731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732/* end confdefs.h. */
14733
14734/* Override any GCC internal prototype to avoid an error.
14735 Use char because int might match the return type of a GCC
14736 builtin and then its argument prototype would still apply. */
14737char readline ();
14738int
14739main (void)
14740{
14741return readline ();
14742 ;
14743 return 0;
14744}
14745_ACEOF
14746if ac_fn_c_try_link "$LINENO"
14747then :
14748 ac_cv_lib_readline_readline=yes
14749else $as_nop
14750 ac_cv_lib_readline_readline=no
14751fi
14752rm -f core conftest.err conftest.$ac_objext conftest.beam \
14753 conftest$ac_exeext conftest.$ac_ext
14754LIBS=$ac_check_lib_save_LIBS
14755fi
14756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14757printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14758if test "x$ac_cv_lib_readline_readline" = xyes
14759then :
14760 LIBREADLINE="-lncurses"
14761else $as_nop
14762 unset ac_cv_lib_readline_readline;
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14764printf %s "checking for readline in -lreadline... " >&6; }
14765if test ${ac_cv_lib_readline_readline+y}
14766then :
14767 printf %s "(cached) " >&6
14768else $as_nop
14769 ac_check_lib_save_LIBS=$LIBS
14770LIBS="-lreadline -lncursesw $LIBS"
14771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772/* end confdefs.h. */
14773
14774/* Override any GCC internal prototype to avoid an error.
14775 Use char because int might match the return type of a GCC
14776 builtin and then its argument prototype would still apply. */
14777char readline ();
14778int
14779main (void)
14780{
14781return readline ();
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786if ac_fn_c_try_link "$LINENO"
14787then :
14788 ac_cv_lib_readline_readline=yes
14789else $as_nop
14790 ac_cv_lib_readline_readline=no
14791fi
14792rm -f core conftest.err conftest.$ac_objext conftest.beam \
14793 conftest$ac_exeext conftest.$ac_ext
14794LIBS=$ac_check_lib_save_LIBS
14795fi
14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14797printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14798if test "x$ac_cv_lib_readline_readline" = xyes
14799then :
14800 LIBREADLINE="-lncursesw"
14801else $as_nop
14802 unset ac_cv_lib_readline_readline;
14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14804printf %s "checking for readline in -lreadline... " >&6; }
14805if test ${ac_cv_lib_readline_readline+y}
14806then :
14807 printf %s "(cached) " >&6
14808else $as_nop
14809 ac_check_lib_save_LIBS=$LIBS
14810LIBS="-lreadline -ltermcap $LIBS"
14811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812/* end confdefs.h. */
14813
14814/* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14817char readline ();
14818int
14819main (void)
14820{
14821return readline ();
14822 ;
14823 return 0;
14824}
14825_ACEOF
14826if ac_fn_c_try_link "$LINENO"
14827then :
14828 ac_cv_lib_readline_readline=yes
14829else $as_nop
14830 ac_cv_lib_readline_readline=no
14831fi
14832rm -f core conftest.err conftest.$ac_objext conftest.beam \
14833 conftest$ac_exeext conftest.$ac_ext
14834LIBS=$ac_check_lib_save_LIBS
14835fi
14836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14837printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
14838if test "x$ac_cv_lib_readline_readline" = xyes
14839then :
14840 LIBREADLINE="-ltermcap"
14841else $as_nop
14842 LIBREADLINE=""
14843fi
14844
14845fi
14846
14847fi
14848
14849fi
14850
14851fi
14852
14853fi
14854
14855
14856 if test -n "$LIBREADLINE"; then
14857 if test "$LIBREADLINE" != "-lreadline"; then
14858 echo "-lreadline needs $LIBREADLINE"
14859 LIBREADLINE="-lreadline $LIBREADLINE"
14860 fi
14861 fi
14862fi
14863
14864
14865# Check for the availability of libedit. Different distributions put its
14866# headers in different places. Try to cover the most common ones.
14867
14868if test "$enable_pcre2test_libedit" = "yes"; then
14869 for ac_header in editline/readline.h
14870do :
14871 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
14872if test "x$ac_cv_header_editline_readline_h" = xyes
14873then :
14874 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
14875 HAVE_EDITLINE_READLINE_H=1
14876else $as_nop
14877 for ac_header in edit/readline/readline.h
14878do :
14879 ac_fn_c_check_header_compile "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
14880if test "x$ac_cv_header_edit_readline_readline_h" = xyes
14881then :
14882 printf "%s\n" "#define HAVE_EDIT_READLINE_READLINE_H 1" >>confdefs.h
14883 HAVE_READLINE_READLINE_H=1
14884else $as_nop
14885 for ac_header in readline/readline.h
14886do :
14887 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14888if test "x$ac_cv_header_readline_readline_h" = xyes
14889then :
14890 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
14891 HAVE_READLINE_READLINE_H=1
14892fi
14893
14894done
14895fi
14896
14897done
14898fi
14899
14900done
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
14902printf %s "checking for readline in -ledit... " >&6; }
14903if test ${ac_cv_lib_edit_readline+y}
14904then :
14905 printf %s "(cached) " >&6
14906else $as_nop
14907 ac_check_lib_save_LIBS=$LIBS
14908LIBS="-ledit $LIBS"
14909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910/* end confdefs.h. */
14911
14912/* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915char readline ();
14916int
14917main (void)
14918{
14919return readline ();
14920 ;
14921 return 0;
14922}
14923_ACEOF
14924if ac_fn_c_try_link "$LINENO"
14925then :
14926 ac_cv_lib_edit_readline=yes
14927else $as_nop
14928 ac_cv_lib_edit_readline=no
14929fi
14930rm -f core conftest.err conftest.$ac_objext conftest.beam \
14931 conftest$ac_exeext conftest.$ac_ext
14932LIBS=$ac_check_lib_save_LIBS
14933fi
14934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
14935printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
14936if test "x$ac_cv_lib_edit_readline" = xyes
14937then :
14938 LIBEDIT="-ledit"
14939fi
14940
14941fi
14942
14943PCRE2_STATIC_CFLAG=""
14944if test "x$enable_shared" = "xno" ; then
14945
14946printf "%s\n" "#define PCRE2_STATIC 1" >>confdefs.h
14947
14948 PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
14949fi
14950
14951
14952# Here is where PCRE2-specific defines are handled
14953
14954if test "$enable_pcre2_8" = "yes"; then
14955
14956printf "%s\n" "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
14957
14958fi
14959
14960if test "$enable_pcre2_16" = "yes"; then
14961
14962printf "%s\n" "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
14963
14964fi
14965
14966if test "$enable_pcre2_32" = "yes"; then
14967
14968printf "%s\n" "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
14969
14970fi
14971
14972if test "$enable_debug" = "yes"; then
14973
14974printf "%s\n" "#define PCRE2_DEBUG /**/" >>confdefs.h
14975
14976fi
14977
14978if test "$enable_percent_zt" = "no"; then
14979
14980printf "%s\n" "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h
14981
14982else
14983 enable_percent_zt=auto
14984fi
14985
14986# Unless running under Windows, JIT support requires pthreads.
14987
14988if test "$enable_jit" = "yes"; then
14989 if test "$HAVE_WINDOWS_H" != "1"; then
14990
14991
14992ac_ext=c
14993ac_cpp='$CPP $CPPFLAGS'
14994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996ac_compiler_gnu=$ac_cv_c_compiler_gnu
14997
14998ax_pthread_ok=no
14999
15000# We used to check for pthread.h first, but this fails if pthread.h
15001# requires special compiler flags (e.g. on True64 or Sequent).
15002# It gets checked for in the link test anyway.
15003
15004# First of all, check if the user has set any of the PTHREAD_LIBS,
15005# etcetera environment variables, and if threads linking works using
15006# them:
15007if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15008 save_CFLAGS="$CFLAGS"
15009 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15010 save_LIBS="$LIBS"
15011 LIBS="$PTHREAD_LIBS $LIBS"
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15013printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h. */
15016
15017/* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
15020char pthread_join ();
15021int
15022main (void)
15023{
15024return pthread_join ();
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029if ac_fn_c_try_link "$LINENO"
15030then :
15031 ax_pthread_ok=yes
15032fi
15033rm -f core conftest.err conftest.$ac_objext conftest.beam \
15034 conftest$ac_exeext conftest.$ac_ext
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15036printf "%s\n" "$ax_pthread_ok" >&6; }
15037 if test x"$ax_pthread_ok" = xno; then
15038 PTHREAD_LIBS=""
15039 PTHREAD_CFLAGS=""
15040 fi
15041 LIBS="$save_LIBS"
15042 CFLAGS="$save_CFLAGS"
15043fi
15044
15045# We must check for the threads library under a number of different
15046# names; the ordering is very important because some systems
15047# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15048# libraries is broken (non-POSIX).
15049
15050# Create a list of thread flags to try. Items starting with a "-" are
15051# C compiler flags, and other items are library names, except for "none"
15052# which indicates that we try without any flags at all, and "pthread-config"
15053# which is a program returning the flags for the Pth emulation library.
15054
15055ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15056
15057# The ordering *is* (sometimes) important. Some notes on the
15058# individual items follow:
15059
15060# pthreads: AIX (must check this before -lpthread)
15061# none: in case threads are in libc; should be tried before -Kthread and
15062# other compiler flags to prevent continual compiler warnings
15063# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15064# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15065# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15066# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15067# -pthreads: Solaris/gcc
15068# -mthreads: Mingw32/gcc, Lynx/gcc
15069# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15070# doesn't hurt to check since this sometimes defines pthreads too;
15071# also defines -D_REENTRANT)
15072# ... -mt is also the pthreads flag for HP/aCC
15073# pthread: Linux, etcetera
15074# --thread-safe: KAI C++
15075# pthread-config: use pthread-config program (for GNU Pth library)
15076
15077case ${host_os} in
15078 solaris*)
15079
15080 # On Solaris (at least, for some versions), libc contains stubbed
15081 # (non-functional) versions of the pthreads routines, so link-based
15082 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15083 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15084 # a function called by this macro, so we could check for that, but
15085 # who knows whether they'll stub that too in a future libc.) So,
15086 # we'll just look for -pthreads and -lpthread first:
15087
15088 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15089 ;;
15090
15091 darwin*)
15092 ax_pthread_flags="-pthread $ax_pthread_flags"
15093 ;;
15094esac
15095
15096if test x"$ax_pthread_ok" = xno; then
15097for flag in $ax_pthread_flags; do
15098
15099 case $flag in
15100 none)
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15102printf %s "checking whether pthreads work without any flags... " >&6; }
15103 ;;
15104
15105 -*)
15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15107printf %s "checking whether pthreads work with $flag... " >&6; }
15108 PTHREAD_CFLAGS="$flag"
15109 ;;
15110
15111 pthread-config)
15112 # Extract the first word of "pthread-config", so it can be a program name with args.
15113set dummy pthread-config; ac_word=$2
15114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15115printf %s "checking for $ac_word... " >&6; }
15116if test ${ac_cv_prog_ax_pthread_config+y}
15117then :
15118 printf %s "(cached) " >&6
15119else $as_nop
15120 if test -n "$ax_pthread_config"; then
15121 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15122else
15123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124for as_dir in $PATH
15125do
15126 IFS=$as_save_IFS
15127 case $as_dir in #(((
15128 '') as_dir=./ ;;
15129 */) ;;
15130 *) as_dir=$as_dir/ ;;
15131 esac
15132 for ac_exec_ext in '' $ac_executable_extensions; do
15133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15134 ac_cv_prog_ax_pthread_config="yes"
15135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15136 break 2
15137 fi
15138done
15139 done
15140IFS=$as_save_IFS
15141
15142 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15143fi
15144fi
15145ax_pthread_config=$ac_cv_prog_ax_pthread_config
15146if test -n "$ax_pthread_config"; then
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15148printf "%s\n" "$ax_pthread_config" >&6; }
15149else
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151printf "%s\n" "no" >&6; }
15152fi
15153
15154
15155 if test x"$ax_pthread_config" = xno; then continue; fi
15156 PTHREAD_CFLAGS="`pthread-config --cflags`"
15157 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15158 ;;
15159
15160 *)
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15162printf %s "checking for the pthreads library -l$flag... " >&6; }
15163 PTHREAD_LIBS="-l$flag"
15164 ;;
15165 esac
15166
15167 save_LIBS="$LIBS"
15168 save_CFLAGS="$CFLAGS"
15169 LIBS="$PTHREAD_LIBS $LIBS"
15170 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15171
15172 # Check for various functions. We must include pthread.h,
15173 # since some functions may be macros. (On the Sequent, we
15174 # need a special flag -Kthread to make this header compile.)
15175 # We check for pthread_join because it is in -lpthread on IRIX
15176 # while pthread_create is in libc. We check for pthread_attr_init
15177 # due to DEC craziness with -lpthreads. We check for
15178 # pthread_cleanup_push because it is one of the few pthread
15179 # functions on Solaris that doesn't have a non-functional libc stub.
15180 # We try pthread_create on general principles.
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h. */
15183#include <pthread.h>
15184 static void routine(void *a) { a = 0; }
15185 static void *start_routine(void *a) { return a; }
15186int
15187main (void)
15188{
15189pthread_t th; pthread_attr_t attr;
15190 pthread_create(&th, 0, start_routine, 0);
15191 pthread_join(th, 0);
15192 pthread_attr_init(&attr);
15193 pthread_cleanup_push(routine, 0);
15194 pthread_cleanup_pop(0) /* ; */
15195 ;
15196 return 0;
15197}
15198_ACEOF
15199if ac_fn_c_try_link "$LINENO"
15200then :
15201 ax_pthread_ok=yes
15202fi
15203rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204 conftest$ac_exeext conftest.$ac_ext
15205
15206 LIBS="$save_LIBS"
15207 CFLAGS="$save_CFLAGS"
15208
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15210printf "%s\n" "$ax_pthread_ok" >&6; }
15211 if test "x$ax_pthread_ok" = xyes; then
15212 break;
15213 fi
15214
15215 PTHREAD_LIBS=""
15216 PTHREAD_CFLAGS=""
15217done
15218fi
15219
15220# Various other checks:
15221if test "x$ax_pthread_ok" = xyes; then
15222 save_LIBS="$LIBS"
15223 LIBS="$PTHREAD_LIBS $LIBS"
15224 save_CFLAGS="$CFLAGS"
15225 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15226
15227 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15229printf %s "checking for joinable pthread attribute... " >&6; }
15230 attr_name=unknown
15231 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h. */
15234#include <pthread.h>
15235int
15236main (void)
15237{
15238int attr = $attr; return attr /* ; */
15239 ;
15240 return 0;
15241}
15242_ACEOF
15243if ac_fn_c_try_link "$LINENO"
15244then :
15245 attr_name=$attr; break
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.beam \
15248 conftest$ac_exeext conftest.$ac_ext
15249 done
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15251printf "%s\n" "$attr_name" >&6; }
15252 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15253
15254printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
15255
15256 fi
15257
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15259printf %s "checking if more special flags are required for pthreads... " >&6; }
15260 flag=no
15261 case ${host_os} in
15262 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15263 osf* | hpux*) flag="-D_REENTRANT";;
15264 solaris*)
15265 if test "$GCC" = "yes"; then
15266 flag="-D_REENTRANT"
15267 else
15268 flag="-mt -D_REENTRANT"
15269 fi
15270 ;;
15271 esac
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15273printf "%s\n" "${flag}" >&6; }
15274 if test "x$flag" != xno; then
15275 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15276 fi
15277
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15279printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15280if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
15281then :
15282 printf %s "(cached) " >&6
15283else $as_nop
15284
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h. */
15287
15288 #include <pthread.h>
15289int
15290main (void)
15291{
15292int i = PTHREAD_PRIO_INHERIT;
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297if ac_fn_c_try_link "$LINENO"
15298then :
15299 ax_cv_PTHREAD_PRIO_INHERIT=yes
15300else $as_nop
15301 ax_cv_PTHREAD_PRIO_INHERIT=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.beam \
15304 conftest$ac_exeext conftest.$ac_ext
15305
15306fi
15307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15308printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15309 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
15310then :
15311
15312printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15313
15314fi
15315
15316 LIBS="$save_LIBS"
15317 CFLAGS="$save_CFLAGS"
15318
15319 # More AIX lossage: must compile with xlc_r or cc_r
15320 if test x"$GCC" != xyes; then
15321 for ac_prog in xlc_r cc_r
15322do
15323 # Extract the first word of "$ac_prog", so it can be a program name with args.
15324set dummy $ac_prog; ac_word=$2
15325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15326printf %s "checking for $ac_word... " >&6; }
15327if test ${ac_cv_prog_PTHREAD_CC+y}
15328then :
15329 printf %s "(cached) " >&6
15330else $as_nop
15331 if test -n "$PTHREAD_CC"; then
15332 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15333else
15334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15335for as_dir in $PATH
15336do
15337 IFS=$as_save_IFS
15338 case $as_dir in #(((
15339 '') as_dir=./ ;;
15340 */) ;;
15341 *) as_dir=$as_dir/ ;;
15342 esac
15343 for ac_exec_ext in '' $ac_executable_extensions; do
15344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15345 ac_cv_prog_PTHREAD_CC="$ac_prog"
15346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15347 break 2
15348 fi
15349done
15350 done
15351IFS=$as_save_IFS
15352
15353fi
15354fi
15355PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15356if test -n "$PTHREAD_CC"; then
15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15358printf "%s\n" "$PTHREAD_CC" >&6; }
15359else
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361printf "%s\n" "no" >&6; }
15362fi
15363
15364
15365 test -n "$PTHREAD_CC" && break
15366done
15367test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15368
15369 else
15370 PTHREAD_CC=$CC
15371 fi
15372else
15373 PTHREAD_CC="$CC"
15374fi
15375
15376
15377
15378
15379
15380# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15381if test x"$ax_pthread_ok" = xyes; then
15382
15383printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
15384
15385 :
15386else
15387 ax_pthread_ok=no
15388 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
15389fi
15390ac_ext=c
15391ac_cpp='$CPP $CPPFLAGS'
15392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396
15397 CC="$PTHREAD_CC"
15398 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15399 LIBS="$PTHREAD_LIBS $LIBS"
15400 fi
15401
15402printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h
15403
15404else
15405 enable_pcre2grep_jit="no"
15406fi
15407
15408if test "$enable_jit_sealloc" = "yes"; then
15409
15410printf "%s\n" "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
15411
15412fi
15413
15414if test "$enable_pcre2grep_jit" = "yes"; then
15415
15416printf "%s\n" "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
15417
15418fi
15419
15420if test "$enable_pcre2grep_callout" = "yes"; then
15421 if test "$enable_pcre2grep_callout_fork" = "yes"; then
15422 if test "$HAVE_WINDOWS_H" != "1"; then
15423 if test "$HAVE_SYS_WAIT_H" != "1"; then
15424 as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
15425 fi
15426 fi
15427
15428printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h
15429
15430 fi
15431
15432printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
15433
15434else
15435 enable_pcre2grep_callout_fork="no"
15436fi
15437
15438if test "$enable_unicode" = "yes"; then
15439
15440printf "%s\n" "#define SUPPORT_UNICODE /**/" >>confdefs.h
15441
15442fi
15443
15444if test "$enable_pcre2grep_libz" = "yes"; then
15445
15446printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h
15447
15448fi
15449
15450if test "$enable_pcre2grep_libbz2" = "yes"; then
15451
15452printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
15453
15454fi
15455
15456if test $with_pcre2grep_bufsize -lt 8192 ; then
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
15458printf "%s\n" "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
15459 with_pcre2grep_bufsize="8192"
15460else
15461 if test $? -gt 1 ; then
15462 as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
15463 fi
15464fi
15465
15466if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
15467 with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
15468else
15469 if test $? -gt 1 ; then
15470 as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
15471 fi
15472fi
15473
15474
15475printf "%s\n" "#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize" >>confdefs.h
15476
15477
15478
15479printf "%s\n" "#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize" >>confdefs.h
15480
15481
15482if test "$enable_pcre2test_libedit" = "yes"; then
15483
15484printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
15485
15486 LIBREADLINE="$LIBEDIT"
15487elif test "$enable_pcre2test_libreadline" = "yes"; then
15488
15489printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
15490
15491fi
15492
15493
15494printf "%s\n" "#define NEWLINE_DEFAULT $ac_pcre2_newline_value" >>confdefs.h
15495
15496
15497if test "$enable_bsr_anycrlf" = "yes"; then
15498
15499printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h
15500
15501fi
15502
15503if test "$enable_never_backslash_C" = "yes"; then
15504
15505printf "%s\n" "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
15506
15507fi
15508
15509
15510printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h
15511
15512
15513
15514printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h
15515
15516
15517
15518printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h
15519
15520
15521# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
15522
15523if test "$with_match_limit_recursion" != "UNSET"; then
15524cat <<EOF
15525
15526WARNING: --with-match-limit-recursion is an obsolete option. Please use
15527 --with-match-limit-depth in future. If both are set, --with-match-limit-depth
15528 will be used. See also --with-heap-limit.
15529
15530EOF
15531if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
15532 with_match_limit_depth=$with_match_limit_recursion
15533fi
15534fi
15535
15536
15537printf "%s\n" "#define MATCH_LIMIT_DEPTH $with_match_limit_depth" >>confdefs.h
15538
15539
15540
15541printf "%s\n" "#define HEAP_LIMIT $with_heap_limit" >>confdefs.h
15542
15543
15544
15545printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h
15546
15547
15548
15549printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h
15550
15551
15552
15553
15554if test "$enable_ebcdic" = "yes"; then
15555
15556printf "%s\n" "#define EBCDIC /**/" >>confdefs.h
15557
15558fi
15559
15560if test "$enable_ebcdic_nl25" = "yes"; then
15561
15562printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h
15563
15564fi
15565
15566if test "$enable_valgrind" = "yes"; then
15567
15568printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h
15569
15570fi
15571
15572# Platform specific issues
15573NO_UNDEFINED=
15574EXPORT_ALL_SYMBOLS=
15575case $host_os in
15576 cygwin* | mingw* )
15577 if test X"$enable_shared" = Xyes; then
15578 NO_UNDEFINED="-no-undefined"
15579 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
15580 fi
15581 ;;
15582esac
15583
15584# The extra LDFLAGS for each particular library. The libpcre2*_version values
15585# are m4 variables, assigned above.
15586
15587EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
15588 $NO_UNDEFINED -version-info 10:3:10"
15589
15590EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
15591 $NO_UNDEFINED -version-info 10:3:10"
15592
15593EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
15594 $NO_UNDEFINED -version-info 10:3:10"
15595
15596EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
15597 $NO_UNDEFINED -version-info 3:1:0"
15598
15599
15600
15601
15602
15603
15604# When we run 'make distcheck', use these arguments. Turning off compiler
15605# optimization makes it run faster.
15606DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
15607
15608
15609# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
15610# specified, the relevant library is available.
15611
15612if test "$enable_pcre2grep_libz" = "yes"; then
15613 if test "$HAVE_ZLIB_H" != "1"; then
15614 echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
15615 exit 1
15616 fi
15617 if test "$HAVE_LIBZ" != "1"; then
15618 echo "** Cannot --enable-pcre2grep-libz because libz was not found"
15619 exit 1
15620 fi
15621 LIBZ="-lz"
15622fi
15623
15624
15625if test "$enable_pcre2grep_libbz2" = "yes"; then
15626 if test "$HAVE_BZLIB_H" != "1"; then
15627 echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
15628 exit 1
15629 fi
15630 if test "$HAVE_LIBBZ2" != "1"; then
15631 echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
15632 exit 1
15633 fi
15634 LIBBZ2="-lbz2"
15635fi
15636
15637
15638# Similarly for --enable-pcre2test-readline
15639
15640if test "$enable_pcre2test_libedit" = "yes"; then
15641 if test "$enable_pcre2test_libreadline" = "yes"; then
15642 echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
15643 exit 1
15644 fi
15645 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
15646 "$HAVE_READLINE_READLINE_H" != "1"; then
15647 echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h"
15648 echo "** nor readline/readline.h was found."
15649 exit 1
15650 fi
15651 if test -z "$LIBEDIT"; then
15652 echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
15653 exit 1
15654 fi
15655fi
15656
15657if test "$enable_pcre2test_libreadline" = "yes"; then
15658 if test "$HAVE_READLINE_H" != "1"; then
15659 echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
15660 exit 1
15661 fi
15662 if test "$HAVE_HISTORY_H" != "1"; then
15663 echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
15664 exit 1
15665 fi
15666 if test -z "$LIBREADLINE"; then
15667 echo "** Cannot --enable-pcre2test-readline because readline library was not found."
15668 exit 1
15669 fi
15670fi
15671
15672# Handle valgrind support
15673
15674if test "$enable_valgrind" = "yes"; then
15675
15676
15677
15678
15679
15680
15681
15682if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15683 if test -n "$ac_tool_prefix"; then
15684 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15685set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15687printf %s "checking for $ac_word... " >&6; }
15688if test ${ac_cv_path_PKG_CONFIG+y}
15689then :
15690 printf %s "(cached) " >&6
15691else $as_nop
15692 case $PKG_CONFIG in
15693 [\\/]* | ?:[\\/]*)
15694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15695 ;;
15696 *)
15697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15698for as_dir in $PATH
15699do
15700 IFS=$as_save_IFS
15701 case $as_dir in #(((
15702 '') as_dir=./ ;;
15703 */) ;;
15704 *) as_dir=$as_dir/ ;;
15705 esac
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15708 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712done
15713 done
15714IFS=$as_save_IFS
15715
15716 ;;
15717esac
15718fi
15719PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15720if test -n "$PKG_CONFIG"; then
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15722printf "%s\n" "$PKG_CONFIG" >&6; }
15723else
15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725printf "%s\n" "no" >&6; }
15726fi
15727
15728
15729fi
15730if test -z "$ac_cv_path_PKG_CONFIG"; then
15731 ac_pt_PKG_CONFIG=$PKG_CONFIG
15732 # Extract the first word of "pkg-config", so it can be a program name with args.
15733set dummy pkg-config; ac_word=$2
15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15735printf %s "checking for $ac_word... " >&6; }
15736if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15737then :
15738 printf %s "(cached) " >&6
15739else $as_nop
15740 case $ac_pt_PKG_CONFIG in
15741 [\\/]* | ?:[\\/]*)
15742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15743 ;;
15744 *)
15745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15746for as_dir in $PATH
15747do
15748 IFS=$as_save_IFS
15749 case $as_dir in #(((
15750 '') as_dir=./ ;;
15751 */) ;;
15752 *) as_dir=$as_dir/ ;;
15753 esac
15754 for ac_exec_ext in '' $ac_executable_extensions; do
15755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15756 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15758 break 2
15759 fi
15760done
15761 done
15762IFS=$as_save_IFS
15763
15764 ;;
15765esac
15766fi
15767ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15768if test -n "$ac_pt_PKG_CONFIG"; then
15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15770printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15771else
15772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15773printf "%s\n" "no" >&6; }
15774fi
15775
15776 if test "x$ac_pt_PKG_CONFIG" = x; then
15777 PKG_CONFIG=""
15778 else
15779 case $cross_compiling:$ac_tool_warned in
15780yes:)
15781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15783ac_tool_warned=yes ;;
15784esac
15785 PKG_CONFIG=$ac_pt_PKG_CONFIG
15786 fi
15787else
15788 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15789fi
15790
15791fi
15792if test -n "$PKG_CONFIG"; then
15793 _pkg_min_version=0.9.0
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15795printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15796 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15798printf "%s\n" "yes" >&6; }
15799 else
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801printf "%s\n" "no" >&6; }
15802 PKG_CONFIG=""
15803 fi
15804fi
15805
15806pkg_failed=no
15807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
15808printf %s "checking for VALGRIND... " >&6; }
15809
15810if test -n "$VALGRIND_CFLAGS"; then
15811 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
15812 elif test -n "$PKG_CONFIG"; then
15813 if test -n "$PKG_CONFIG" && \
15814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15815 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15816 ac_status=$?
15817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }; then
15819 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
15820 test "x$?" != "x0" && pkg_failed=yes
15821else
15822 pkg_failed=yes
15823fi
15824 else
15825 pkg_failed=untried
15826fi
15827if test -n "$VALGRIND_LIBS"; then
15828 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
15829 elif test -n "$PKG_CONFIG"; then
15830 if test -n "$PKG_CONFIG" && \
15831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15832 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15833 ac_status=$?
15834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15835 test $ac_status = 0; }; then
15836 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
15837 test "x$?" != "x0" && pkg_failed=yes
15838else
15839 pkg_failed=yes
15840fi
15841 else
15842 pkg_failed=untried
15843fi
15844
15845
15846
15847if test $pkg_failed = yes; then
15848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849printf "%s\n" "no" >&6; }
15850
15851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15852 _pkg_short_errors_supported=yes
15853else
15854 _pkg_short_errors_supported=no
15855fi
15856 if test $_pkg_short_errors_supported = yes; then
15857 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
15858 else
15859 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
15860 fi
15861 # Put the nasty error message in config.log where it belongs
15862 echo "$VALGRIND_PKG_ERRORS" >&5
15863
15864 as_fn_error $? "Package requirements (valgrind) were not met:
15865
15866$VALGRIND_PKG_ERRORS
15867
15868Consider adjusting the PKG_CONFIG_PATH environment variable if you
15869installed software in a non-standard prefix.
15870
15871Alternatively, you may set the environment variables VALGRIND_CFLAGS
15872and VALGRIND_LIBS to avoid the need to call pkg-config.
15873See the pkg-config man page for more details." "$LINENO" 5
15874elif test $pkg_failed = untried; then
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876printf "%s\n" "no" >&6; }
15877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15879as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15880is in your PATH or set the PKG_CONFIG environment variable to the full
15881path to pkg-config.
15882
15883Alternatively, you may set the environment variables VALGRIND_CFLAGS
15884and VALGRIND_LIBS to avoid the need to call pkg-config.
15885See the pkg-config man page for more details.
15886
15887To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15888See \`config.log' for more details" "$LINENO" 5; }
15889else
15890 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
15891 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15893printf "%s\n" "yes" >&6; }
15894
15895fi
15896fi
15897
15898# Handle code coverage reporting support
15899if test "$enable_coverage" = "yes"; then
15900 if test "x$GCC" != "xyes"; then
15901 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
15902 fi
15903
15904 # ccache is incompatible with gcov
15905 # Extract the first word of "shtool", so it can be a program name with args.
15906set dummy shtool; ac_word=$2
15907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908printf %s "checking for $ac_word... " >&6; }
15909if test ${ac_cv_path_SHTOOL+y}
15910then :
15911 printf %s "(cached) " >&6
15912else $as_nop
15913 case $SHTOOL in
15914 [\\/]* | ?:[\\/]*)
15915 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
15916 ;;
15917 *)
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919for as_dir in $PATH
15920do
15921 IFS=$as_save_IFS
15922 case $as_dir in #(((
15923 '') as_dir=./ ;;
15924 */) ;;
15925 *) as_dir=$as_dir/ ;;
15926 esac
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15929 ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext"
15930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15931 break 2
15932 fi
15933done
15934 done
15935IFS=$as_save_IFS
15936
15937 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
15938 ;;
15939esac
15940fi
15941SHTOOL=$ac_cv_path_SHTOOL
15942if test -n "$SHTOOL"; then
15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
15944printf "%s\n" "$SHTOOL" >&6; }
15945else
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947printf "%s\n" "no" >&6; }
15948fi
15949
15950
15951 case `$SHTOOL path $CC` in
15952 *ccache*) cc_ccache=yes;;
15953 *) cc_ccache=no;;
15954 esac
15955
15956 if test "$cc_ccache" = "yes"; then
15957 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
15958 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
15959 fi
15960 fi
15961
15962
15963 # Extract the first word of "lcov", so it can be a program name with args.
15964set dummy lcov; ac_word=$2
15965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15966printf %s "checking for $ac_word... " >&6; }
15967if test ${ac_cv_path_LCOV+y}
15968then :
15969 printf %s "(cached) " >&6
15970else $as_nop
15971 case $LCOV in
15972 [\\/]* | ?:[\\/]*)
15973 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
15974 ;;
15975 *)
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977for as_dir in $PATH
15978do
15979 IFS=$as_save_IFS
15980 case $as_dir in #(((
15981 '') as_dir=./ ;;
15982 */) ;;
15983 *) as_dir=$as_dir/ ;;
15984 esac
15985 for ac_exec_ext in '' $ac_executable_extensions; do
15986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15987 ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
15988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15989 break 2
15990 fi
15991done
15992 done
15993IFS=$as_save_IFS
15994
15995 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
15996 ;;
15997esac
15998fi
15999LCOV=$ac_cv_path_LCOV
16000if test -n "$LCOV"; then
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16002printf "%s\n" "$LCOV" >&6; }
16003else
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005printf "%s\n" "no" >&6; }
16006fi
16007
16008
16009 if test "x$LCOV" = "xfalse"; then
16010 as_fn_error $? "lcov not found" "$LINENO" 5
16011 fi
16012
16013
16014 # Extract the first word of "genhtml", so it can be a program name with args.
16015set dummy genhtml; ac_word=$2
16016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16017printf %s "checking for $ac_word... " >&6; }
16018if test ${ac_cv_path_GENHTML+y}
16019then :
16020 printf %s "(cached) " >&6
16021else $as_nop
16022 case $GENHTML in
16023 [\\/]* | ?:[\\/]*)
16024 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
16025 ;;
16026 *)
16027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028for as_dir in $PATH
16029do
16030 IFS=$as_save_IFS
16031 case $as_dir in #(((
16032 '') as_dir=./ ;;
16033 */) ;;
16034 *) as_dir=$as_dir/ ;;
16035 esac
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16038 ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
16039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16040 break 2
16041 fi
16042done
16043 done
16044IFS=$as_save_IFS
16045
16046 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
16047 ;;
16048esac
16049fi
16050GENHTML=$ac_cv_path_GENHTML
16051if test -n "$GENHTML"; then
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16053printf "%s\n" "$GENHTML" >&6; }
16054else
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056printf "%s\n" "no" >&6; }
16057fi
16058
16059
16060 if test "x$GENHTML" = "xfalse"; then
16061 as_fn_error $? "genhtml not found" "$LINENO" 5
16062 fi
16063
16064 # Set flags needed for gcov
16065 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
16066 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
16067 GCOV_LIBS="-lgcov"
16068
16069
16070
16071fi # enable_coverage
16072
16073 if test "x$enable_coverage" = "xyes"; then
16074 WITH_GCOV_TRUE=
16075 WITH_GCOV_FALSE='#'
16076else
16077 WITH_GCOV_TRUE='#'
16078 WITH_GCOV_FALSE=
16079fi
16080
16081
16082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5
16083printf %s "checking whether Intel CET is enabled... " >&6; }
16084ac_ext=c
16085ac_cpp='$CPP $CPPFLAGS'
16086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16088ac_compiler_gnu=$ac_cv_c_compiler_gnu
16089
16090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h. */
16092
16093int
16094main (void)
16095{
16096#ifndef __CET__
16097# error CET is not enabled
16098#endif
16099 ;
16100 return 0;
16101}
16102_ACEOF
16103if ac_fn_c_try_compile "$LINENO"
16104then :
16105 pcre2_cc_cv_intel_cet_enabled=yes
16106else $as_nop
16107 pcre2_cc_cv_intel_cet_enabled=no
16108fi
16109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5
16111printf "%s\n" "$pcre2_cc_cv_intel_cet_enabled" >&6; }
16112if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then
16113 CET_CFLAGS="-mshstk"
16114
16115fi
16116ac_ext=c
16117ac_cpp='$CPP $CPPFLAGS'
16118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120ac_compiler_gnu=$ac_cv_c_compiler_gnu
16121
16122
16123# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
16124# Pass empty LIB_POSTFIX to *.pc files and pcre2-config here.
16125
16126
16127# Produce these files, in addition to config.h.
16128
16129ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
16130
16131
16132# Make the generated script files executable.
16133ac_config_commands="$ac_config_commands script-chmod"
16134
16135
16136# Make sure that pcre2_chartables.c is removed in case the method for
16137# creating it was changed by reconfiguration.
16138ac_config_commands="$ac_config_commands delete-old-chartables"
16139
16140
16141cat >confcache <<\_ACEOF
16142# This file is a shell script that caches the results of configure
16143# tests run on this system so they can be shared between configure
16144# scripts and configure runs, see configure's option --config-cache.
16145# It is not useful on other systems. If it contains results you don't
16146# want to keep, you may remove or edit it.
16147#
16148# config.status only pays attention to the cache file if you give it
16149# the --recheck option to rerun configure.
16150#
16151# `ac_cv_env_foo' variables (set or unset) will be overridden when
16152# loading this file, other *unset* `ac_cv_foo' will be assigned the
16153# following values.
16154
16155_ACEOF
16156
16157# The following way of writing the cache mishandles newlines in values,
16158# but we know of no workaround that is simple, portable, and efficient.
16159# So, we kill variables containing newlines.
16160# Ultrix sh set writes to stderr and can't be redirected directly,
16161# and sets the high bit in the cache file unless we assign to the vars.
16162(
16163 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16164 eval ac_val=\$$ac_var
16165 case $ac_val in #(
16166 *${as_nl}*)
16167 case $ac_var in #(
16168 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16169printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16170 esac
16171 case $ac_var in #(
16172 _ | IFS | as_nl) ;; #(
16173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16174 *) { eval $ac_var=; unset $ac_var;} ;;
16175 esac ;;
16176 esac
16177 done
16178
16179 (set) 2>&1 |
16180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16181 *${as_nl}ac_space=\ *)
16182 # `set' does not quote correctly, so add quotes: double-quote
16183 # substitution turns \\\\ into \\, and sed turns \\ into \.
16184 sed -n \
16185 "s/'/'\\\\''/g;
16186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16187 ;; #(
16188 *)
16189 # `set' quotes correctly as required by POSIX, so do not add quotes.
16190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16191 ;;
16192 esac |
16193 sort
16194) |
16195 sed '
16196 /^ac_cv_env_/b end
16197 t clear
16198 :clear
16199 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16200 t end
16201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16202 :end' >>confcache
16203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16204 if test -w "$cache_file"; then
16205 if test "x$cache_file" != "x/dev/null"; then
16206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16207printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16208 if test ! -f "$cache_file" || test -h "$cache_file"; then
16209 cat confcache >"$cache_file"
16210 else
16211 case $cache_file in #(
16212 */* | ?:*)
16213 mv -f confcache "$cache_file"$$ &&
16214 mv -f "$cache_file"$$ "$cache_file" ;; #(
16215 *)
16216 mv -f confcache "$cache_file" ;;
16217 esac
16218 fi
16219 fi
16220 else
16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16222printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16223 fi
16224fi
16225rm -f confcache
16226
16227test "x$prefix" = xNONE && prefix=$ac_default_prefix
16228# Let make expand exec_prefix.
16229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16230
16231DEFS=-DHAVE_CONFIG_H
16232
16233ac_libobjs=
16234ac_ltlibobjs=
16235U=
16236for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16237 # 1. Remove the extension, and $U if already installed.
16238 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16239 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16240 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16241 # will be set to the directory where LIBOBJS objects are built.
16242 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16243 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16244done
16245LIBOBJS=$ac_libobjs
16246
16247LTLIBOBJS=$ac_ltlibobjs
16248
16249
16250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16251printf %s "checking that generated files are newer than configure... " >&6; }
16252 if test -n "$am_sleep_pid"; then
16253 # Hide warnings about reused PIDs.
16254 wait $am_sleep_pid 2>/dev/null
16255 fi
16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16257printf "%s\n" "done" >&6; }
16258 if test -n "$EXEEXT"; then
16259 am__EXEEXT_TRUE=
16260 am__EXEEXT_FALSE='#'
16261else
16262 am__EXEEXT_TRUE='#'
16263 am__EXEEXT_FALSE=
16264fi
16265
16266if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16267 as_fn_error $? "conditional \"AMDEP\" was never defined.
16268Usually this means the macro was only invoked conditionally." "$LINENO" 5
16269fi
16270if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16271 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16272Usually this means the macro was only invoked conditionally." "$LINENO" 5
16273fi
16274if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
16275 as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
16276Usually this means the macro was only invoked conditionally." "$LINENO" 5
16277fi
16278if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
16279 as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
16280Usually this means the macro was only invoked conditionally." "$LINENO" 5
16281fi
16282if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
16283 as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
16284Usually this means the macro was only invoked conditionally." "$LINENO" 5
16285fi
16286if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
16287 as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
16288Usually this means the macro was only invoked conditionally." "$LINENO" 5
16289fi
16290if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
16291 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
16292Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293fi
16294if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
16295 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
16296Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297fi
16298if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
16299 as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
16300Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301fi
16302if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
16303 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
16304Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305fi
16306if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
16307 as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
16308Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309fi
16310if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
16311 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
16312Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313fi
16314
16315: "${CONFIG_STATUS=./config.status}"
16316ac_write_fail=0
16317ac_clean_files_save=$ac_clean_files
16318ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16320printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16321as_write_fail=0
16322cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16323#! $SHELL
16324# Generated by $as_me.
16325# Run this file to recreate the current configuration.
16326# Compiler output produced by configure, useful for debugging
16327# configure, is in config.log if it exists.
16328
16329debug=false
16330ac_cs_recheck=false
16331ac_cs_silent=false
16332
16333SHELL=\${CONFIG_SHELL-$SHELL}
16334export SHELL
16335_ASEOF
16336cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16337## -------------------- ##
16338## M4sh Initialization. ##
16339## -------------------- ##
16340
16341# Be more Bourne compatible
16342DUALCASE=1; export DUALCASE # for MKS sh
16343as_nop=:
16344if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16345then :
16346 emulate sh
16347 NULLCMD=:
16348 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16349 # is contrary to our usage. Disable this feature.
16350 alias -g '${1+"$@"}'='"$@"'
16351 setopt NO_GLOB_SUBST
16352else $as_nop
16353 case `(set -o) 2>/dev/null` in #(
16354 *posix*) :
16355 set -o posix ;; #(
16356 *) :
16357 ;;
16358esac
16359fi
16360
16361
16362
16363# Reset variables that may have inherited troublesome values from
16364# the environment.
16365
16366# IFS needs to be set, to space, tab, and newline, in precisely that order.
16367# (If _AS_PATH_WALK were called with IFS unset, it would have the
16368# side effect of setting IFS to empty, thus disabling word splitting.)
16369# Quoting is to prevent editors from complaining about space-tab.
16370as_nl='
16371'
16372export as_nl
16373IFS=" "" $as_nl"
16374
16375PS1='$ '
16376PS2='> '
16377PS4='+ '
16378
16379# Ensure predictable behavior from utilities with locale-dependent output.
16380LC_ALL=C
16381export LC_ALL
16382LANGUAGE=C
16383export LANGUAGE
16384
16385# We cannot yet rely on "unset" to work, but we need these variables
16386# to be unset--not just set to an empty or harmless value--now, to
16387# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16388# also avoids known problems related to "unset" and subshell syntax
16389# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16390for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16391do eval test \${$as_var+y} \
16392 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16393done
16394
16395# Ensure that fds 0, 1, and 2 are open.
16396if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16397if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16398if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16399
16400# The user is always right.
16401if ${PATH_SEPARATOR+false} :; then
16402 PATH_SEPARATOR=:
16403 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16404 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16405 PATH_SEPARATOR=';'
16406 }
16407fi
16408
16409
16410# Find who we are. Look in the path if we contain no directory separator.
16411as_myself=
16412case $0 in #((
16413 *[\\/]* ) as_myself=$0 ;;
16414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415for as_dir in $PATH
16416do
16417 IFS=$as_save_IFS
16418 case $as_dir in #(((
16419 '') as_dir=./ ;;
16420 */) ;;
16421 *) as_dir=$as_dir/ ;;
16422 esac
16423 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16424 done
16425IFS=$as_save_IFS
16426
16427 ;;
16428esac
16429# We did not find ourselves, most probably we were run as `sh COMMAND'
16430# in which case we are not to be found in the path.
16431if test "x$as_myself" = x; then
16432 as_myself=$0
16433fi
16434if test ! -f "$as_myself"; then
16435 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16436 exit 1
16437fi
16438
16439
16440
16441# as_fn_error STATUS ERROR [LINENO LOG_FD]
16442# ----------------------------------------
16443# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16444# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16445# script with STATUS, using 1 if that was 0.
16446as_fn_error ()
16447{
16448 as_status=$1; test $as_status -eq 0 && as_status=1
16449 if test "$4"; then
16450 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16452 fi
16453 printf "%s\n" "$as_me: error: $2" >&2
16454 as_fn_exit $as_status
16455} # as_fn_error
16456
16457
16458
16459# as_fn_set_status STATUS
16460# -----------------------
16461# Set $? to STATUS, without forking.
16462as_fn_set_status ()
16463{
16464 return $1
16465} # as_fn_set_status
16466
16467# as_fn_exit STATUS
16468# -----------------
16469# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16470as_fn_exit ()
16471{
16472 set +e
16473 as_fn_set_status $1
16474 exit $1
16475} # as_fn_exit
16476
16477# as_fn_unset VAR
16478# ---------------
16479# Portably unset VAR.
16480as_fn_unset ()
16481{
16482 { eval $1=; unset $1;}
16483}
16484as_unset=as_fn_unset
16485
16486# as_fn_append VAR VALUE
16487# ----------------------
16488# Append the text in VALUE to the end of the definition contained in VAR. Take
16489# advantage of any shell optimizations that allow amortized linear growth over
16490# repeated appends, instead of the typical quadratic growth present in naive
16491# implementations.
16492if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16493then :
16494 eval 'as_fn_append ()
16495 {
16496 eval $1+=\$2
16497 }'
16498else $as_nop
16499 as_fn_append ()
16500 {
16501 eval $1=\$$1\$2
16502 }
16503fi # as_fn_append
16504
16505# as_fn_arith ARG...
16506# ------------------
16507# Perform arithmetic evaluation on the ARGs, and store the result in the
16508# global $as_val. Take advantage of shells that can avoid forks. The arguments
16509# must be portable across $(()) and expr.
16510if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16511then :
16512 eval 'as_fn_arith ()
16513 {
16514 as_val=$(( $* ))
16515 }'
16516else $as_nop
16517 as_fn_arith ()
16518 {
16519 as_val=`expr "$@" || test $? -eq 1`
16520 }
16521fi # as_fn_arith
16522
16523
16524if expr a : '\(a\)' >/dev/null 2>&1 &&
16525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16526 as_expr=expr
16527else
16528 as_expr=false
16529fi
16530
16531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16532 as_basename=basename
16533else
16534 as_basename=false
16535fi
16536
16537if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16538 as_dirname=dirname
16539else
16540 as_dirname=false
16541fi
16542
16543as_me=`$as_basename -- "$0" ||
16544$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16545 X"$0" : 'X\(//\)$' \| \
16546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16547printf "%s\n" X/"$0" |
16548 sed '/^.*\/\([^/][^/]*\)\/*$/{
16549 s//\1/
16550 q
16551 }
16552 /^X\/\(\/\/\)$/{
16553 s//\1/
16554 q
16555 }
16556 /^X\/\(\/\).*/{
16557 s//\1/
16558 q
16559 }
16560 s/.*/./; q'`
16561
16562# Avoid depending upon Character Ranges.
16563as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16564as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16565as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16566as_cr_digits='0123456789'
16567as_cr_alnum=$as_cr_Letters$as_cr_digits
16568
16569
16570# Determine whether it's possible to make 'echo' print without a newline.
16571# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16572# for compatibility with existing Makefiles.
16573ECHO_C= ECHO_N= ECHO_T=
16574case `echo -n x` in #(((((
16575-n*)
16576 case `echo 'xy\c'` in
16577 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16578 xy) ECHO_C='\c';;
16579 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16580 ECHO_T=' ';;
16581 esac;;
16582*)
16583 ECHO_N='-n';;
16584esac
16585
16586# For backward compatibility with old third-party macros, we provide
16587# the shell variables $as_echo and $as_echo_n. New code should use
16588# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16589as_echo='printf %s\n'
16590as_echo_n='printf %s'
16591
16592rm -f conf$$ conf$$.exe conf$$.file
16593if test -d conf$$.dir; then
16594 rm -f conf$$.dir/conf$$.file
16595else
16596 rm -f conf$$.dir
16597 mkdir conf$$.dir 2>/dev/null
16598fi
16599if (echo >conf$$.file) 2>/dev/null; then
16600 if ln -s conf$$.file conf$$ 2>/dev/null; then
16601 as_ln_s='ln -s'
16602 # ... but there are two gotchas:
16603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16605 # In both cases, we have to default to `cp -pR'.
16606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16607 as_ln_s='cp -pR'
16608 elif ln conf$$.file conf$$ 2>/dev/null; then
16609 as_ln_s=ln
16610 else
16611 as_ln_s='cp -pR'
16612 fi
16613else
16614 as_ln_s='cp -pR'
16615fi
16616rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16617rmdir conf$$.dir 2>/dev/null
16618
16619
16620# as_fn_mkdir_p
16621# -------------
16622# Create "$as_dir" as a directory, including parents if necessary.
16623as_fn_mkdir_p ()
16624{
16625
16626 case $as_dir in #(
16627 -*) as_dir=./$as_dir;;
16628 esac
16629 test -d "$as_dir" || eval $as_mkdir_p || {
16630 as_dirs=
16631 while :; do
16632 case $as_dir in #(
16633 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16634 *) as_qdir=$as_dir;;
16635 esac
16636 as_dirs="'$as_qdir' $as_dirs"
16637 as_dir=`$as_dirname -- "$as_dir" ||
16638$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16639 X"$as_dir" : 'X\(//\)[^/]' \| \
16640 X"$as_dir" : 'X\(//\)$' \| \
16641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16642printf "%s\n" X"$as_dir" |
16643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\/\)[^/].*/{
16648 s//\1/
16649 q
16650 }
16651 /^X\(\/\/\)$/{
16652 s//\1/
16653 q
16654 }
16655 /^X\(\/\).*/{
16656 s//\1/
16657 q
16658 }
16659 s/.*/./; q'`
16660 test -d "$as_dir" && break
16661 done
16662 test -z "$as_dirs" || eval "mkdir $as_dirs"
16663 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16664
16665
16666} # as_fn_mkdir_p
16667if mkdir -p . 2>/dev/null; then
16668 as_mkdir_p='mkdir -p "$as_dir"'
16669else
16670 test -d ./-p && rmdir ./-p
16671 as_mkdir_p=false
16672fi
16673
16674
16675# as_fn_executable_p FILE
16676# -----------------------
16677# Test if FILE is an executable regular file.
16678as_fn_executable_p ()
16679{
16680 test -f "$1" && test -x "$1"
16681} # as_fn_executable_p
16682as_test_x='test -x'
16683as_executable_p=as_fn_executable_p
16684
16685# Sed expression to map a string onto a valid CPP name.
16686as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16687
16688# Sed expression to map a string onto a valid variable name.
16689as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16690
16691
16692exec 6>&1
16693## ----------------------------------- ##
16694## Main body of $CONFIG_STATUS script. ##
16695## ----------------------------------- ##
16696_ASEOF
16697test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16698
16699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700# Save the log message, to keep $0 and so on meaningful, and to
16701# report actual input values of CONFIG_FILES etc. instead of their
16702# values after options handling.
16703ac_log="
16704This file was extended by PCRE2 $as_me 10.38, which was
16705generated by GNU Autoconf 2.71. Invocation command line was
16706
16707 CONFIG_FILES = $CONFIG_FILES
16708 CONFIG_HEADERS = $CONFIG_HEADERS
16709 CONFIG_LINKS = $CONFIG_LINKS
16710 CONFIG_COMMANDS = $CONFIG_COMMANDS
16711 $ $0 $@
16712
16713on `(hostname || uname -n) 2>/dev/null | sed 1q`
16714"
16715
16716_ACEOF
16717
16718case $ac_config_files in *"
16719"*) set x $ac_config_files; shift; ac_config_files=$*;;
16720esac
16721
16722case $ac_config_headers in *"
16723"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16724esac
16725
16726
16727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16728# Files that config.status was made for.
16729config_files="$ac_config_files"
16730config_headers="$ac_config_headers"
16731config_commands="$ac_config_commands"
16732
16733_ACEOF
16734
16735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736ac_cs_usage="\
16737\`$as_me' instantiates files and other configuration actions
16738from templates according to the current configuration. Unless the files
16739and actions are specified as TAGs, all are instantiated by default.
16740
16741Usage: $0 [OPTION]... [TAG]...
16742
16743 -h, --help print this help, then exit
16744 -V, --version print version number and configuration settings, then exit
16745 --config print configuration, then exit
16746 -q, --quiet, --silent
16747 do not print progress messages
16748 -d, --debug don't remove temporary files
16749 --recheck update $as_me by reconfiguring in the same conditions
16750 --file=FILE[:TEMPLATE]
16751 instantiate the configuration file FILE
16752 --header=FILE[:TEMPLATE]
16753 instantiate the configuration header FILE
16754
16755Configuration files:
16756$config_files
16757
16758Configuration headers:
16759$config_headers
16760
16761Configuration commands:
16762$config_commands
16763
16764Report bugs to the package provider."
16765
16766_ACEOF
16767ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16768ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16770ac_cs_config='$ac_cs_config_escaped'
16771ac_cs_version="\\
16772PCRE2 config.status 10.38
16773configured by $0, generated by GNU Autoconf 2.71,
16774 with options \\"\$ac_cs_config\\"
16775
16776Copyright (C) 2021 Free Software Foundation, Inc.
16777This config.status script is free software; the Free Software Foundation
16778gives unlimited permission to copy, distribute and modify it."
16779
16780ac_pwd='$ac_pwd'
16781srcdir='$srcdir'
16782INSTALL='$INSTALL'
16783MKDIR_P='$MKDIR_P'
16784AWK='$AWK'
16785test -n "\$AWK" || AWK=awk
16786_ACEOF
16787
16788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16789# The default lists apply if the user does not specify any file.
16790ac_need_defaults=:
16791while test $# != 0
16792do
16793 case $1 in
16794 --*=?*)
16795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16796 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16797 ac_shift=:
16798 ;;
16799 --*=)
16800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16801 ac_optarg=
16802 ac_shift=:
16803 ;;
16804 *)
16805 ac_option=$1
16806 ac_optarg=$2
16807 ac_shift=shift
16808 ;;
16809 esac
16810
16811 case $ac_option in
16812 # Handling of the options.
16813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16814 ac_cs_recheck=: ;;
16815 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16816 printf "%s\n" "$ac_cs_version"; exit ;;
16817 --config | --confi | --conf | --con | --co | --c )
16818 printf "%s\n" "$ac_cs_config"; exit ;;
16819 --debug | --debu | --deb | --de | --d | -d )
16820 debug=: ;;
16821 --file | --fil | --fi | --f )
16822 $ac_shift
16823 case $ac_optarg in
16824 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16825 '') as_fn_error $? "missing file argument" ;;
16826 esac
16827 as_fn_append CONFIG_FILES " '$ac_optarg'"
16828 ac_need_defaults=false;;
16829 --header | --heade | --head | --hea )
16830 $ac_shift
16831 case $ac_optarg in
16832 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16833 esac
16834 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16835 ac_need_defaults=false;;
16836 --he | --h)
16837 # Conflict between --help and --header
16838 as_fn_error $? "ambiguous option: \`$1'
16839Try \`$0 --help' for more information.";;
16840 --help | --hel | -h )
16841 printf "%s\n" "$ac_cs_usage"; exit ;;
16842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16844 ac_cs_silent=: ;;
16845
16846 # This is an error.
16847 -*) as_fn_error $? "unrecognized option: \`$1'
16848Try \`$0 --help' for more information." ;;
16849
16850 *) as_fn_append ac_config_targets " $1"
16851 ac_need_defaults=false ;;
16852
16853 esac
16854 shift
16855done
16856
16857ac_configure_extra_args=
16858
16859if $ac_cs_silent; then
16860 exec 6>/dev/null
16861 ac_configure_extra_args="$ac_configure_extra_args --silent"
16862fi
16863
16864_ACEOF
16865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866if \$ac_cs_recheck; then
16867 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16868 shift
16869 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16870 CONFIG_SHELL='$SHELL'
16871 export CONFIG_SHELL
16872 exec "\$@"
16873fi
16874
16875_ACEOF
16876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877exec 5>>config.log
16878{
16879 echo
16880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16881## Running $as_me. ##
16882_ASBOX
16883 printf "%s\n" "$ac_log"
16884} >&5
16885
16886_ACEOF
16887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16888#
16889# INIT-COMMANDS
16890#
16891AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16892
16893
16894# The HP-UX ksh and POSIX shell print the target directory to stdout
16895# if CDPATH is set.
16896(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16897
16898sed_quote_subst='$sed_quote_subst'
16899double_quote_subst='$double_quote_subst'
16900delay_variable_subst='$delay_variable_subst'
16901macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16902macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16903AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16904DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16905OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16906enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16907enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16908pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16909enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16910shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16911SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16912ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16913PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16914host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16915host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16916host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16917build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16918build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16919build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16920SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16921Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16922GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16923EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16924FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16925LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16926NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16927LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16928max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16929ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16930exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16931lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16932lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16933lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16934lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16935lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16936reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16937reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16938deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16939file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16940file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16941want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16942sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16943AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16944lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16945AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16946archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16947STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16948RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16949old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16950old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16951old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16952lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16953CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16954CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16955compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16956GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16957lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16958lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16959lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16960lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16961lt_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"`'
16962lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16963nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16964lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16965lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16966objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16967MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16968lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16969lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16970lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16971lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16972lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16973need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16974MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16975DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16976NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16977LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16978OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16979OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16980libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16981shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16982extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16983archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16984enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16985export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16986whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16987compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16988old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16989old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16990archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16991archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16992module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16993module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16994with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16995allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16996no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16997hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16998hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16999hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17000hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17001hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17002hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17003hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17004inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17005link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17006always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17007export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17008exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17009include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17010prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17011postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17012file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17013variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17014need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17015need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17016version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17017runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17018shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17019shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17020libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17021library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17022soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17023install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17024postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17025postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17026finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17027finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17028hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17029sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17030configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17031configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17032hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17033enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17034enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17035enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17036old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17037striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17038
17039LTCC='$LTCC'
17040LTCFLAGS='$LTCFLAGS'
17041compiler='$compiler_DEFAULT'
17042
17043# A function that is used when there is no print builtin or printf.
17044func_fallback_echo ()
17045{
17046 eval 'cat <<_LTECHO_EOF
17047\$1
17048_LTECHO_EOF'
17049}
17050
17051# Quote evaled strings.
17052for var in AS \
17053DLLTOOL \
17054OBJDUMP \
17055SHELL \
17056ECHO \
17057PATH_SEPARATOR \
17058SED \
17059GREP \
17060EGREP \
17061FGREP \
17062LD \
17063NM \
17064LN_S \
17065lt_SP2NL \
17066lt_NL2SP \
17067reload_flag \
17068deplibs_check_method \
17069file_magic_cmd \
17070file_magic_glob \
17071want_nocaseglob \
17072sharedlib_from_linklib_cmd \
17073AR \
17074archiver_list_spec \
17075STRIP \
17076RANLIB \
17077CC \
17078CFLAGS \
17079compiler \
17080lt_cv_sys_global_symbol_pipe \
17081lt_cv_sys_global_symbol_to_cdecl \
17082lt_cv_sys_global_symbol_to_import \
17083lt_cv_sys_global_symbol_to_c_name_address \
17084lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17085lt_cv_nm_interface \
17086nm_file_list_spec \
17087lt_cv_truncate_bin \
17088lt_prog_compiler_no_builtin_flag \
17089lt_prog_compiler_pic \
17090lt_prog_compiler_wl \
17091lt_prog_compiler_static \
17092lt_cv_prog_compiler_c_o \
17093need_locks \
17094MANIFEST_TOOL \
17095DSYMUTIL \
17096NMEDIT \
17097LIPO \
17098OTOOL \
17099OTOOL64 \
17100shrext_cmds \
17101export_dynamic_flag_spec \
17102whole_archive_flag_spec \
17103compiler_needs_object \
17104with_gnu_ld \
17105allow_undefined_flag \
17106no_undefined_flag \
17107hardcode_libdir_flag_spec \
17108hardcode_libdir_separator \
17109exclude_expsyms \
17110include_expsyms \
17111file_list_spec \
17112variables_saved_for_relink \
17113libname_spec \
17114library_names_spec \
17115soname_spec \
17116install_override_mode \
17117finish_eval \
17118old_striplib \
17119striplib; do
17120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17121 *[\\\\\\\`\\"\\\$]*)
17122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17123 ;;
17124 *)
17125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17126 ;;
17127 esac
17128done
17129
17130# Double-quote double-evaled strings.
17131for var in reload_cmds \
17132old_postinstall_cmds \
17133old_postuninstall_cmds \
17134old_archive_cmds \
17135extract_expsyms_cmds \
17136old_archive_from_new_cmds \
17137old_archive_from_expsyms_cmds \
17138archive_cmds \
17139archive_expsym_cmds \
17140module_cmds \
17141module_expsym_cmds \
17142export_symbols_cmds \
17143prelink_cmds \
17144postlink_cmds \
17145postinstall_cmds \
17146postuninstall_cmds \
17147finish_cmds \
17148sys_lib_search_path_spec \
17149configure_time_dlsearch_path \
17150configure_time_lt_sys_library_path; do
17151 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17152 *[\\\\\\\`\\"\\\$]*)
17153 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17154 ;;
17155 *)
17156 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17157 ;;
17158 esac
17159done
17160
17161ac_aux_dir='$ac_aux_dir'
17162
17163# See if we are running on zsh, and set the options that allow our
17164# commands through without removal of \ escapes INIT.
17165if test -n "\${ZSH_VERSION+set}"; then
17166 setopt NO_GLOB_SUBST
17167fi
17168
17169
17170 PACKAGE='$PACKAGE'
17171 VERSION='$VERSION'
17172 RM='$RM'
17173 ofile='$ofile'
17174
17175
17176
17177
17178_ACEOF
17179
17180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181
17182# Handling of arguments.
17183for ac_config_target in $ac_config_targets
17184do
17185 case $ac_config_target in
17186 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17187 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17188 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17189 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17190 "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
17191 "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
17192 "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
17193 "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
17194 "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
17195 "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
17196 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
17197 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
17198
17199 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17200 esac
17201done
17202
17203
17204# If the user did not use the arguments to specify the items to instantiate,
17205# then the envvar interface is used. Set only those that are not.
17206# We use the long form for the default assignment because of an extremely
17207# bizarre bug on SunOS 4.1.3.
17208if $ac_need_defaults; then
17209 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17210 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17211 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17212fi
17213
17214# Have a temporary directory for convenience. Make it in the build tree
17215# simply because there is no reason against having it here, and in addition,
17216# creating and moving files from /tmp can sometimes cause problems.
17217# Hook for its removal unless debugging.
17218# Note that there is a small window in which the directory will not be cleaned:
17219# after its creation but before its name has been assigned to `$tmp'.
17220$debug ||
17221{
17222 tmp= ac_tmp=
17223 trap 'exit_status=$?
17224 : "${ac_tmp:=$tmp}"
17225 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17226' 0
17227 trap 'as_fn_exit 1' 1 2 13 15
17228}
17229# Create a (secure) tmp directory for tmp files.
17230
17231{
17232 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17233 test -d "$tmp"
17234} ||
17235{
17236 tmp=./conf$$-$RANDOM
17237 (umask 077 && mkdir "$tmp")
17238} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17239ac_tmp=$tmp
17240
17241# Set up the scripts for CONFIG_FILES section.
17242# No need to generate them if there are no CONFIG_FILES.
17243# This happens for instance with `./config.status config.h'.
17244if test -n "$CONFIG_FILES"; then
17245
17246
17247ac_cr=`echo X | tr X '\015'`
17248# On cygwin, bash can eat \r inside `` if the user requested igncr.
17249# But we know of no other shell where ac_cr would be empty at this
17250# point, so we can use a bashism as a fallback.
17251if test "x$ac_cr" = x; then
17252 eval ac_cr=\$\'\\r\'
17253fi
17254ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17255if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17256 ac_cs_awk_cr='\\r'
17257else
17258 ac_cs_awk_cr=$ac_cr
17259fi
17260
17261echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17262_ACEOF
17263
17264
17265{
17266 echo "cat >conf$$subs.awk <<_ACEOF" &&
17267 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17268 echo "_ACEOF"
17269} >conf$$subs.sh ||
17270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17271ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17272ac_delim='%!_!# '
17273for ac_last_try in false false false false false :; do
17274 . ./conf$$subs.sh ||
17275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17276
17277 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17278 if test $ac_delim_n = $ac_delim_num; then
17279 break
17280 elif $ac_last_try; then
17281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17282 else
17283 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17284 fi
17285done
17286rm -f conf$$subs.sh
17287
17288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17290_ACEOF
17291sed -n '
17292h
17293s/^/S["/; s/!.*/"]=/
17294p
17295g
17296s/^[^!]*!//
17297:repl
17298t repl
17299s/'"$ac_delim"'$//
17300t delim
17301:nl
17302h
17303s/\(.\{148\}\)..*/\1/
17304t more1
17305s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17306p
17307n
17308b repl
17309:more1
17310s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17311p
17312g
17313s/.\{148\}//
17314t nl
17315:delim
17316h
17317s/\(.\{148\}\)..*/\1/
17318t more2
17319s/["\\]/\\&/g; s/^/"/; s/$/"/
17320p
17321b
17322:more2
17323s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17324p
17325g
17326s/.\{148\}//
17327t delim
17328' <conf$$subs.awk | sed '
17329/^[^""]/{
17330 N
17331 s/\n//
17332}
17333' >>$CONFIG_STATUS || ac_write_fail=1
17334rm -f conf$$subs.awk
17335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17336_ACAWK
17337cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17338 for (key in S) S_is_set[key] = 1
17339 FS = ""
17340
17341}
17342{
17343 line = $ 0
17344 nfields = split(line, field, "@")
17345 substed = 0
17346 len = length(field[1])
17347 for (i = 2; i < nfields; i++) {
17348 key = field[i]
17349 keylen = length(key)
17350 if (S_is_set[key]) {
17351 value = S[key]
17352 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17353 len += length(value) + length(field[++i])
17354 substed = 1
17355 } else
17356 len += 1 + keylen
17357 }
17358
17359 print line
17360}
17361
17362_ACAWK
17363_ACEOF
17364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17365if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17366 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17367else
17368 cat
17369fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17370 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17371_ACEOF
17372
17373# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17374# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17375# trailing colons and then remove the whole line if VPATH becomes empty
17376# (actually we leave an empty line to preserve line numbers).
17377if test "x$srcdir" = x.; then
17378 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17379h
17380s///
17381s/^/:/
17382s/[ ]*$/:/
17383s/:\$(srcdir):/:/g
17384s/:\${srcdir}:/:/g
17385s/:@srcdir@:/:/g
17386s/^:*//
17387s/:*$//
17388x
17389s/\(=[ ]*\).*/\1/
17390G
17391s/\n//
17392s/^[^=]*=[ ]*$//
17393}'
17394fi
17395
17396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17397fi # test -n "$CONFIG_FILES"
17398
17399# Set up the scripts for CONFIG_HEADERS section.
17400# No need to generate them if there are no CONFIG_HEADERS.
17401# This happens for instance with `./config.status Makefile'.
17402if test -n "$CONFIG_HEADERS"; then
17403cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17404BEGIN {
17405_ACEOF
17406
17407# Transform confdefs.h into an awk script `defines.awk', embedded as
17408# here-document in config.status, that substitutes the proper values into
17409# config.h.in to produce config.h.
17410
17411# Create a delimiter string that does not exist in confdefs.h, to ease
17412# handling of long lines.
17413ac_delim='%!_!# '
17414for ac_last_try in false false :; do
17415 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17416 if test -z "$ac_tt"; then
17417 break
17418 elif $ac_last_try; then
17419 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17420 else
17421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17422 fi
17423done
17424
17425# For the awk script, D is an array of macro values keyed by name,
17426# likewise P contains macro parameters if any. Preserve backslash
17427# newline sequences.
17428
17429ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17430sed -n '
17431s/.\{148\}/&'"$ac_delim"'/g
17432t rset
17433:rset
17434s/^[ ]*#[ ]*define[ ][ ]*/ /
17435t def
17436d
17437:def
17438s/\\$//
17439t bsnl
17440s/["\\]/\\&/g
17441s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17442D["\1"]=" \3"/p
17443s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17444d
17445:bsnl
17446s/["\\]/\\&/g
17447s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17448D["\1"]=" \3\\\\\\n"\\/p
17449t cont
17450s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17451t cont
17452d
17453:cont
17454n
17455s/.\{148\}/&'"$ac_delim"'/g
17456t clear
17457:clear
17458s/\\$//
17459t bsnlc
17460s/["\\]/\\&/g; s/^/"/; s/$/"/p
17461d
17462:bsnlc
17463s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17464b cont
17465' <confdefs.h | sed '
17466s/'"$ac_delim"'/"\\\
17467"/g' >>$CONFIG_STATUS || ac_write_fail=1
17468
17469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17470 for (key in D) D_is_set[key] = 1
17471 FS = ""
17472}
17473/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17474 line = \$ 0
17475 split(line, arg, " ")
17476 if (arg[1] == "#") {
17477 defundef = arg[2]
17478 mac1 = arg[3]
17479 } else {
17480 defundef = substr(arg[1], 2)
17481 mac1 = arg[2]
17482 }
17483 split(mac1, mac2, "(") #)
17484 macro = mac2[1]
17485 prefix = substr(line, 1, index(line, defundef) - 1)
17486 if (D_is_set[macro]) {
17487 # Preserve the white space surrounding the "#".
17488 print prefix "define", macro P[macro] D[macro]
17489 next
17490 } else {
17491 # Replace #undef with comments. This is necessary, for example,
17492 # in the case of _POSIX_SOURCE, which is predefined and required
17493 # on some systems where configure will not decide to define it.
17494 if (defundef == "undef") {
17495 print "/*", prefix defundef, macro, "*/"
17496 next
17497 }
17498 }
17499}
17500{ print }
17501_ACAWK
17502_ACEOF
17503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17505fi # test -n "$CONFIG_HEADERS"
17506
17507
17508eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17509shift
17510for ac_tag
17511do
17512 case $ac_tag in
17513 :[FHLC]) ac_mode=$ac_tag; continue;;
17514 esac
17515 case $ac_mode$ac_tag in
17516 :[FHL]*:*);;
17517 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17518 :[FH]-) ac_tag=-:-;;
17519 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17520 esac
17521 ac_save_IFS=$IFS
17522 IFS=:
17523 set x $ac_tag
17524 IFS=$ac_save_IFS
17525 shift
17526 ac_file=$1
17527 shift
17528
17529 case $ac_mode in
17530 :L) ac_source=$1;;
17531 :[FH])
17532 ac_file_inputs=
17533 for ac_f
17534 do
17535 case $ac_f in
17536 -) ac_f="$ac_tmp/stdin";;
17537 *) # Look for the file first in the build tree, then in the source tree
17538 # (if the path is not absolute). The absolute path cannot be DOS-style,
17539 # because $ac_f cannot contain `:'.
17540 test -f "$ac_f" ||
17541 case $ac_f in
17542 [\\/$]*) false;;
17543 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17544 esac ||
17545 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17546 esac
17547 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17548 as_fn_append ac_file_inputs " '$ac_f'"
17549 done
17550
17551 # Let's still pretend it is `configure' which instantiates (i.e., don't
17552 # use $as_me), people would be surprised to read:
17553 # /* config.h. Generated by config.status. */
17554 configure_input='Generated from '`
17555 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17556 `' by configure.'
17557 if test x"$ac_file" != x-; then
17558 configure_input="$ac_file. $configure_input"
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17560printf "%s\n" "$as_me: creating $ac_file" >&6;}
17561 fi
17562 # Neutralize special characters interpreted by sed in replacement strings.
17563 case $configure_input in #(
17564 *\&* | *\|* | *\\* )
17565 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17566 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17567 *) ac_sed_conf_input=$configure_input;;
17568 esac
17569
17570 case $ac_tag in
17571 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17573 esac
17574 ;;
17575 esac
17576
17577 ac_dir=`$as_dirname -- "$ac_file" ||
17578$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17579 X"$ac_file" : 'X\(//\)[^/]' \| \
17580 X"$ac_file" : 'X\(//\)$' \| \
17581 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17582printf "%s\n" X"$ac_file" |
17583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17584 s//\1/
17585 q
17586 }
17587 /^X\(\/\/\)[^/].*/{
17588 s//\1/
17589 q
17590 }
17591 /^X\(\/\/\)$/{
17592 s//\1/
17593 q
17594 }
17595 /^X\(\/\).*/{
17596 s//\1/
17597 q
17598 }
17599 s/.*/./; q'`
17600 as_dir="$ac_dir"; as_fn_mkdir_p
17601 ac_builddir=.
17602
17603case "$ac_dir" in
17604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17605*)
17606 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17607 # A ".." for each directory in $ac_dir_suffix.
17608 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17609 case $ac_top_builddir_sub in
17610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17612 esac ;;
17613esac
17614ac_abs_top_builddir=$ac_pwd
17615ac_abs_builddir=$ac_pwd$ac_dir_suffix
17616# for backward compatibility:
17617ac_top_builddir=$ac_top_build_prefix
17618
17619case $srcdir in
17620 .) # We are building in place.
17621 ac_srcdir=.
17622 ac_top_srcdir=$ac_top_builddir_sub
17623 ac_abs_top_srcdir=$ac_pwd ;;
17624 [\\/]* | ?:[\\/]* ) # Absolute name.
17625 ac_srcdir=$srcdir$ac_dir_suffix;
17626 ac_top_srcdir=$srcdir
17627 ac_abs_top_srcdir=$srcdir ;;
17628 *) # Relative name.
17629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17630 ac_top_srcdir=$ac_top_build_prefix$srcdir
17631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17632esac
17633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17634
17635
17636 case $ac_mode in
17637 :F)
17638 #
17639 # CONFIG_FILE
17640 #
17641
17642 case $INSTALL in
17643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17645 esac
17646 ac_MKDIR_P=$MKDIR_P
17647 case $MKDIR_P in
17648 [\\/$]* | ?:[\\/]* ) ;;
17649 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17650 esac
17651_ACEOF
17652
17653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17654# If the template does not know about datarootdir, expand it.
17655# FIXME: This hack should be removed a few years after 2.60.
17656ac_datarootdir_hack=; ac_datarootdir_seen=
17657ac_sed_dataroot='
17658/datarootdir/ {
17659 p
17660 q
17661}
17662/@datadir@/p
17663/@docdir@/p
17664/@infodir@/p
17665/@localedir@/p
17666/@mandir@/p'
17667case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17668*datarootdir*) ac_datarootdir_seen=yes;;
17669*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17671printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17672_ACEOF
17673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17674 ac_datarootdir_hack='
17675 s&@datadir@&$datadir&g
17676 s&@docdir@&$docdir&g
17677 s&@infodir@&$infodir&g
17678 s&@localedir@&$localedir&g
17679 s&@mandir@&$mandir&g
17680 s&\\\${datarootdir}&$datarootdir&g' ;;
17681esac
17682_ACEOF
17683
17684# Neutralize VPATH when `$srcdir' = `.'.
17685# Shell code in configure.ac might set extrasub.
17686# FIXME: do we really want to maintain this feature?
17687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688ac_sed_extra="$ac_vpsub
17689$extrasub
17690_ACEOF
17691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17692:t
17693/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17694s|@configure_input@|$ac_sed_conf_input|;t t
17695s&@top_builddir@&$ac_top_builddir_sub&;t t
17696s&@top_build_prefix@&$ac_top_build_prefix&;t t
17697s&@srcdir@&$ac_srcdir&;t t
17698s&@abs_srcdir@&$ac_abs_srcdir&;t t
17699s&@top_srcdir@&$ac_top_srcdir&;t t
17700s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17701s&@builddir@&$ac_builddir&;t t
17702s&@abs_builddir@&$ac_abs_builddir&;t t
17703s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17704s&@INSTALL@&$ac_INSTALL&;t t
17705s&@MKDIR_P@&$ac_MKDIR_P&;t t
17706$ac_datarootdir_hack
17707"
17708eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17709 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17710
17711test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17712 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17714 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17716which seems to be undefined. Please make sure it is defined" >&5
17717printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17718which seems to be undefined. Please make sure it is defined" >&2;}
17719
17720 rm -f "$ac_tmp/stdin"
17721 case $ac_file in
17722 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17723 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17724 esac \
17725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17726 ;;
17727 :H)
17728 #
17729 # CONFIG_HEADER
17730 #
17731 if test x"$ac_file" != x-; then
17732 {
17733 printf "%s\n" "/* $configure_input */" >&1 \
17734 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17735 } >"$ac_tmp/config.h" \
17736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17737 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17739printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17740 else
17741 rm -f "$ac_file"
17742 mv "$ac_tmp/config.h" "$ac_file" \
17743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17744 fi
17745 else
17746 printf "%s\n" "/* $configure_input */" >&1 \
17747 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17748 || as_fn_error $? "could not create -" "$LINENO" 5
17749 fi
17750# Compute "$ac_file"'s index in $config_headers.
17751_am_arg="$ac_file"
17752_am_stamp_count=1
17753for _am_header in $config_headers :; do
17754 case $_am_header in
17755 $_am_arg | $_am_arg:* )
17756 break ;;
17757 * )
17758 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17759 esac
17760done
17761echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17762$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$_am_arg" : 'X\(//\)[^/]' \| \
17764 X"$_am_arg" : 'X\(//\)$' \| \
17765 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17766printf "%s\n" X"$_am_arg" |
17767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17768 s//\1/
17769 q
17770 }
17771 /^X\(\/\/\)[^/].*/{
17772 s//\1/
17773 q
17774 }
17775 /^X\(\/\/\)$/{
17776 s//\1/
17777 q
17778 }
17779 /^X\(\/\).*/{
17780 s//\1/
17781 q
17782 }
17783 s/.*/./; q'`/stamp-h$_am_stamp_count
17784 ;;
17785
17786 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17787printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17788 ;;
17789 esac
17790
17791
17792 case $ac_file$ac_mode in
17793 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17794 # Older Autoconf quotes --file arguments for eval, but not when files
17795 # are listed without --file. Let's play safe and only enable the eval
17796 # if we detect the quoting.
17797 # TODO: see whether this extra hack can be removed once we start
17798 # requiring Autoconf 2.70 or later.
17799 case $CONFIG_FILES in #(
17800 *\'*) :
17801 eval set x "$CONFIG_FILES" ;; #(
17802 *) :
17803 set x $CONFIG_FILES ;; #(
17804 *) :
17805 ;;
17806esac
17807 shift
17808 # Used to flag and report bootstrapping failures.
17809 am_rc=0
17810 for am_mf
17811 do
17812 # Strip MF so we end up with the name of the file.
17813 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17814 # Check whether this is an Automake generated Makefile which includes
17815 # dependency-tracking related rules and includes.
17816 # Grep'ing the whole file directly is not great: AIX grep has a line
17817 # limit of 2048, but all sed's we know have understand at least 4000.
17818 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17819 || continue
17820 am_dirpart=`$as_dirname -- "$am_mf" ||
17821$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17822 X"$am_mf" : 'X\(//\)[^/]' \| \
17823 X"$am_mf" : 'X\(//\)$' \| \
17824 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17825printf "%s\n" X"$am_mf" |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17827 s//\1/
17828 q
17829 }
17830 /^X\(\/\/\)[^/].*/{
17831 s//\1/
17832 q
17833 }
17834 /^X\(\/\/\)$/{
17835 s//\1/
17836 q
17837 }
17838 /^X\(\/\).*/{
17839 s//\1/
17840 q
17841 }
17842 s/.*/./; q'`
17843 am_filepart=`$as_basename -- "$am_mf" ||
17844$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17845 X"$am_mf" : 'X\(//\)$' \| \
17846 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17847printf "%s\n" X/"$am_mf" |
17848 sed '/^.*\/\([^/][^/]*\)\/*$/{
17849 s//\1/
17850 q
17851 }
17852 /^X\/\(\/\/\)$/{
17853 s//\1/
17854 q
17855 }
17856 /^X\/\(\/\).*/{
17857 s//\1/
17858 q
17859 }
17860 s/.*/./; q'`
17861 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17862 && sed -e '/# am--include-marker/d' "$am_filepart" \
17863 | $MAKE -f - am--depfiles" >&5
17864 (cd "$am_dirpart" \
17865 && sed -e '/# am--include-marker/d' "$am_filepart" \
17866 | $MAKE -f - am--depfiles) >&5 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } || am_rc=$?
17870 done
17871 if test $am_rc -ne 0; then
17872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17874as_fn_error $? "Something went wrong bootstrapping makefile fragments
17875 for automatic dependency tracking. If GNU make was not used, consider
17876 re-running the configure script with MAKE=\"gmake\" (or whatever is
17877 necessary). You can also try re-running configure with the
17878 '--disable-dependency-tracking' option to at least be able to build
17879 the package (albeit without support for automatic dependency tracking).
17880See \`config.log' for more details" "$LINENO" 5; }
17881 fi
17882 { am_dirpart=; unset am_dirpart;}
17883 { am_filepart=; unset am_filepart;}
17884 { am_mf=; unset am_mf;}
17885 { am_rc=; unset am_rc;}
17886 rm -f conftest-deps.mk
17887}
17888 ;;
17889 "libtool":C)
17890
17891 # See if we are running on zsh, and set the options that allow our
17892 # commands through without removal of \ escapes.
17893 if test -n "${ZSH_VERSION+set}"; then
17894 setopt NO_GLOB_SUBST
17895 fi
17896
17897 cfgfile=${ofile}T
17898 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17899 $RM "$cfgfile"
17900
17901 cat <<_LT_EOF >> "$cfgfile"
17902#! $SHELL
17903# Generated automatically by $as_me ($PACKAGE) $VERSION
17904# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17905
17906# Provide generalized library-building support services.
17907# Written by Gordon Matzigkeit, 1996
17908
17909# Copyright (C) 2014 Free Software Foundation, Inc.
17910# This is free software; see the source for copying conditions. There is NO
17911# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17912
17913# GNU Libtool is free software; you can redistribute it and/or modify
17914# it under the terms of the GNU General Public License as published by
17915# the Free Software Foundation; either version 2 of of the License, or
17916# (at your option) any later version.
17917#
17918# As a special exception to the GNU General Public License, if you
17919# distribute this file as part of a program or library that is built
17920# using GNU Libtool, you may include this file under the same
17921# distribution terms that you use for the rest of that program.
17922#
17923# GNU Libtool is distributed in the hope that it will be useful, but
17924# WITHOUT ANY WARRANTY; without even the implied warranty of
17925# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17926# GNU General Public License for more details.
17927#
17928# You should have received a copy of the GNU General Public License
17929# along with this program. If not, see <http://www.gnu.org/licenses/>.
17930
17931
17932# The names of the tagged configurations supported by this script.
17933available_tags=''
17934
17935# Configured defaults for sys_lib_dlsearch_path munging.
17936: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17937
17938# ### BEGIN LIBTOOL CONFIG
17939
17940# Which release of libtool.m4 was used?
17941macro_version=$macro_version
17942macro_revision=$macro_revision
17943
17944# Assembler program.
17945AS=$lt_AS
17946
17947# DLL creation program.
17948DLLTOOL=$lt_DLLTOOL
17949
17950# Object dumper program.
17951OBJDUMP=$lt_OBJDUMP
17952
17953# Whether or not to build shared libraries.
17954build_libtool_libs=$enable_shared
17955
17956# Whether or not to build static libraries.
17957build_old_libs=$enable_static
17958
17959# What type of objects to build.
17960pic_mode=$pic_mode
17961
17962# Whether or not to optimize for fast installation.
17963fast_install=$enable_fast_install
17964
17965# Shared archive member basename,for filename based shared library versioning on AIX.
17966shared_archive_member_spec=$shared_archive_member_spec
17967
17968# Shell to use when invoking shell scripts.
17969SHELL=$lt_SHELL
17970
17971# An echo program that protects backslashes.
17972ECHO=$lt_ECHO
17973
17974# The PATH separator for the build system.
17975PATH_SEPARATOR=$lt_PATH_SEPARATOR
17976
17977# The host system.
17978host_alias=$host_alias
17979host=$host
17980host_os=$host_os
17981
17982# The build system.
17983build_alias=$build_alias
17984build=$build
17985build_os=$build_os
17986
17987# A sed program that does not truncate output.
17988SED=$lt_SED
17989
17990# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17991Xsed="\$SED -e 1s/^X//"
17992
17993# A grep program that handles long lines.
17994GREP=$lt_GREP
17995
17996# An ERE matcher.
17997EGREP=$lt_EGREP
17998
17999# A literal string matcher.
18000FGREP=$lt_FGREP
18001
18002# A BSD- or MS-compatible name lister.
18003NM=$lt_NM
18004
18005# Whether we need soft or hard links.
18006LN_S=$lt_LN_S
18007
18008# What is the maximum length of a command?
18009max_cmd_len=$max_cmd_len
18010
18011# Object file suffix (normally "o").
18012objext=$ac_objext
18013
18014# Executable file suffix (normally "").
18015exeext=$exeext
18016
18017# whether the shell understands "unset".
18018lt_unset=$lt_unset
18019
18020# turn spaces into newlines.
18021SP2NL=$lt_lt_SP2NL
18022
18023# turn newlines into spaces.
18024NL2SP=$lt_lt_NL2SP
18025
18026# convert \$build file names to \$host format.
18027to_host_file_cmd=$lt_cv_to_host_file_cmd
18028
18029# convert \$build files to toolchain format.
18030to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18031
18032# Method to check whether dependent libraries are shared objects.
18033deplibs_check_method=$lt_deplibs_check_method
18034
18035# Command to use when deplibs_check_method = "file_magic".
18036file_magic_cmd=$lt_file_magic_cmd
18037
18038# How to find potential files when deplibs_check_method = "file_magic".
18039file_magic_glob=$lt_file_magic_glob
18040
18041# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18042want_nocaseglob=$lt_want_nocaseglob
18043
18044# Command to associate shared and link libraries.
18045sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18046
18047# The archiver.
18048AR=$lt_AR
18049
18050# Flags to create an archive (by configure).
18051lt_ar_flags=$lt_ar_flags
18052
18053# Flags to create an archive.
18054AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18055
18056# How to feed a file listing to the archiver.
18057archiver_list_spec=$lt_archiver_list_spec
18058
18059# A symbol stripping program.
18060STRIP=$lt_STRIP
18061
18062# Commands used to install an old-style archive.
18063RANLIB=$lt_RANLIB
18064old_postinstall_cmds=$lt_old_postinstall_cmds
18065old_postuninstall_cmds=$lt_old_postuninstall_cmds
18066
18067# Whether to use a lock for old archive extraction.
18068lock_old_archive_extraction=$lock_old_archive_extraction
18069
18070# A C compiler.
18071LTCC=$lt_CC
18072
18073# LTCC compiler flags.
18074LTCFLAGS=$lt_CFLAGS
18075
18076# Take the output of nm and produce a listing of raw symbols and C names.
18077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18078
18079# Transform the output of nm in a proper C declaration.
18080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18081
18082# Transform the output of nm into a list of symbols to manually relocate.
18083global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18084
18085# Transform the output of nm in a C name address pair.
18086global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18087
18088# Transform the output of nm in a C name address pair when lib prefix is needed.
18089global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18090
18091# The name lister interface.
18092nm_interface=$lt_lt_cv_nm_interface
18093
18094# Specify filename containing input files for \$NM.
18095nm_file_list_spec=$lt_nm_file_list_spec
18096
18097# The root where to search for dependent libraries,and where our libraries should be installed.
18098lt_sysroot=$lt_sysroot
18099
18100# Command to truncate a binary pipe.
18101lt_truncate_bin=$lt_lt_cv_truncate_bin
18102
18103# The name of the directory that contains temporary libtool files.
18104objdir=$objdir
18105
18106# Used to examine libraries when file_magic_cmd begins with "file".
18107MAGIC_CMD=$MAGIC_CMD
18108
18109# Must we lock files when doing compilation?
18110need_locks=$lt_need_locks
18111
18112# Manifest tool.
18113MANIFEST_TOOL=$lt_MANIFEST_TOOL
18114
18115# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18116DSYMUTIL=$lt_DSYMUTIL
18117
18118# Tool to change global to local symbols on Mac OS X.
18119NMEDIT=$lt_NMEDIT
18120
18121# Tool to manipulate fat objects and archives on Mac OS X.
18122LIPO=$lt_LIPO
18123
18124# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18125OTOOL=$lt_OTOOL
18126
18127# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18128OTOOL64=$lt_OTOOL64
18129
18130# Old archive suffix (normally "a").
18131libext=$libext
18132
18133# Shared library suffix (normally ".so").
18134shrext_cmds=$lt_shrext_cmds
18135
18136# The commands to extract the exported symbol list from a shared archive.
18137extract_expsyms_cmds=$lt_extract_expsyms_cmds
18138
18139# Variables whose values should be saved in libtool wrapper scripts and
18140# restored at link time.
18141variables_saved_for_relink=$lt_variables_saved_for_relink
18142
18143# Do we need the "lib" prefix for modules?
18144need_lib_prefix=$need_lib_prefix
18145
18146# Do we need a version for libraries?
18147need_version=$need_version
18148
18149# Library versioning type.
18150version_type=$version_type
18151
18152# Shared library runtime path variable.
18153runpath_var=$runpath_var
18154
18155# Shared library path variable.
18156shlibpath_var=$shlibpath_var
18157
18158# Is shlibpath searched before the hard-coded library search path?
18159shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18160
18161# Format of library name prefix.
18162libname_spec=$lt_libname_spec
18163
18164# List of archive names. First name is the real one, the rest are links.
18165# The last name is the one that the linker finds with -lNAME
18166library_names_spec=$lt_library_names_spec
18167
18168# The coded name of the library, if different from the real name.
18169soname_spec=$lt_soname_spec
18170
18171# Permission mode override for installation of shared libraries.
18172install_override_mode=$lt_install_override_mode
18173
18174# Command to use after installation of a shared archive.
18175postinstall_cmds=$lt_postinstall_cmds
18176
18177# Command to use after uninstallation of a shared archive.
18178postuninstall_cmds=$lt_postuninstall_cmds
18179
18180# Commands used to finish a libtool library installation in a directory.
18181finish_cmds=$lt_finish_cmds
18182
18183# As "finish_cmds", except a single script fragment to be evaled but
18184# not shown.
18185finish_eval=$lt_finish_eval
18186
18187# Whether we should hardcode library paths into libraries.
18188hardcode_into_libs=$hardcode_into_libs
18189
18190# Compile-time system search path for libraries.
18191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18192
18193# Detected run-time system search path for libraries.
18194sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18195
18196# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18197configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18198
18199# Whether dlopen is supported.
18200dlopen_support=$enable_dlopen
18201
18202# Whether dlopen of programs is supported.
18203dlopen_self=$enable_dlopen_self
18204
18205# Whether dlopen of statically linked programs is supported.
18206dlopen_self_static=$enable_dlopen_self_static
18207
18208# Commands to strip libraries.
18209old_striplib=$lt_old_striplib
18210striplib=$lt_striplib
18211
18212
18213# The linker used to build libraries.
18214LD=$lt_LD
18215
18216# How to create reloadable object files.
18217reload_flag=$lt_reload_flag
18218reload_cmds=$lt_reload_cmds
18219
18220# Commands used to build an old-style archive.
18221old_archive_cmds=$lt_old_archive_cmds
18222
18223# A language specific compiler.
18224CC=$lt_compiler
18225
18226# Is the compiler the GNU compiler?
18227with_gcc=$GCC
18228
18229# Compiler flag to turn off builtin functions.
18230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18231
18232# Additional compiler flags for building library objects.
18233pic_flag=$lt_lt_prog_compiler_pic
18234
18235# How to pass a linker flag through the compiler.
18236wl=$lt_lt_prog_compiler_wl
18237
18238# Compiler flag to prevent dynamic linking.
18239link_static_flag=$lt_lt_prog_compiler_static
18240
18241# Does compiler simultaneously support -c and -o options?
18242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18243
18244# Whether or not to add -lc for building shared libraries.
18245build_libtool_need_lc=$archive_cmds_need_lc
18246
18247# Whether or not to disallow shared libs when runtime libs are static.
18248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18249
18250# Compiler flag to allow reflexive dlopens.
18251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18252
18253# Compiler flag to generate shared objects directly from archives.
18254whole_archive_flag_spec=$lt_whole_archive_flag_spec
18255
18256# Whether the compiler copes with passing no objects directly.
18257compiler_needs_object=$lt_compiler_needs_object
18258
18259# Create an old-style archive from a shared archive.
18260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18261
18262# Create a temporary old-style archive to link instead of a shared archive.
18263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18264
18265# Commands used to build a shared archive.
18266archive_cmds=$lt_archive_cmds
18267archive_expsym_cmds=$lt_archive_expsym_cmds
18268
18269# Commands used to build a loadable module if different from building
18270# a shared archive.
18271module_cmds=$lt_module_cmds
18272module_expsym_cmds=$lt_module_expsym_cmds
18273
18274# Whether we are building with GNU ld or not.
18275with_gnu_ld=$lt_with_gnu_ld
18276
18277# Flag that allows shared libraries with undefined symbols to be built.
18278allow_undefined_flag=$lt_allow_undefined_flag
18279
18280# Flag that enforces no undefined symbols.
18281no_undefined_flag=$lt_no_undefined_flag
18282
18283# Flag to hardcode \$libdir into a binary during linking.
18284# This must work even if \$libdir does not exist
18285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18286
18287# Whether we need a single "-rpath" flag with a separated argument.
18288hardcode_libdir_separator=$lt_hardcode_libdir_separator
18289
18290# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18291# DIR into the resulting binary.
18292hardcode_direct=$hardcode_direct
18293
18294# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18295# DIR into the resulting binary and the resulting library dependency is
18296# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18297# library is relocated.
18298hardcode_direct_absolute=$hardcode_direct_absolute
18299
18300# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18301# into the resulting binary.
18302hardcode_minus_L=$hardcode_minus_L
18303
18304# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18305# into the resulting binary.
18306hardcode_shlibpath_var=$hardcode_shlibpath_var
18307
18308# Set to "yes" if building a shared library automatically hardcodes DIR
18309# into the library and all subsequent libraries and executables linked
18310# against it.
18311hardcode_automatic=$hardcode_automatic
18312
18313# Set to yes if linker adds runtime paths of dependent libraries
18314# to runtime path list.
18315inherit_rpath=$inherit_rpath
18316
18317# Whether libtool must link a program against all its dependency libraries.
18318link_all_deplibs=$link_all_deplibs
18319
18320# Set to "yes" if exported symbols are required.
18321always_export_symbols=$always_export_symbols
18322
18323# The commands to list exported symbols.
18324export_symbols_cmds=$lt_export_symbols_cmds
18325
18326# Symbols that should not be listed in the preloaded symbols.
18327exclude_expsyms=$lt_exclude_expsyms
18328
18329# Symbols that must always be exported.
18330include_expsyms=$lt_include_expsyms
18331
18332# Commands necessary for linking programs (against libraries) with templates.
18333prelink_cmds=$lt_prelink_cmds
18334
18335# Commands necessary for finishing linking programs.
18336postlink_cmds=$lt_postlink_cmds
18337
18338# Specify filename containing input files.
18339file_list_spec=$lt_file_list_spec
18340
18341# How to hardcode a shared library path into an executable.
18342hardcode_action=$hardcode_action
18343
18344# ### END LIBTOOL CONFIG
18345
18346_LT_EOF
18347
18348 cat <<'_LT_EOF' >> "$cfgfile"
18349
18350# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18351
18352# func_munge_path_list VARIABLE PATH
18353# -----------------------------------
18354# VARIABLE is name of variable containing _space_ separated list of
18355# directories to be munged by the contents of PATH, which is string
18356# having a format:
18357# "DIR[:DIR]:"
18358# string "DIR[ DIR]" will be prepended to VARIABLE
18359# ":DIR[:DIR]"
18360# string "DIR[ DIR]" will be appended to VARIABLE
18361# "DIRP[:DIRP]::[DIRA:]DIRA"
18362# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18363# "DIRA[ DIRA]" will be appended to VARIABLE
18364# "DIR[:DIR]"
18365# VARIABLE will be replaced by "DIR[ DIR]"
18366func_munge_path_list ()
18367{
18368 case x$2 in
18369 x)
18370 ;;
18371 *:)
18372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18373 ;;
18374 x:*)
18375 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18376 ;;
18377 *::*)
18378 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18379 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18380 ;;
18381 *)
18382 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18383 ;;
18384 esac
18385}
18386
18387
18388# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18389func_cc_basename ()
18390{
18391 for cc_temp in $*""; do
18392 case $cc_temp in
18393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18395 \-*) ;;
18396 *) break;;
18397 esac
18398 done
18399 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18400}
18401
18402
18403# ### END FUNCTIONS SHARED WITH CONFIGURE
18404
18405_LT_EOF
18406
18407 case $host_os in
18408 aix3*)
18409 cat <<\_LT_EOF >> "$cfgfile"
18410# AIX sometimes has problems with the GCC collect2 program. For some
18411# reason, if we set the COLLECT_NAMES environment variable, the problems
18412# vanish in a puff of smoke.
18413if test set != "${COLLECT_NAMES+set}"; then
18414 COLLECT_NAMES=
18415 export COLLECT_NAMES
18416fi
18417_LT_EOF
18418 ;;
18419 esac
18420
18421
18422
18423ltmain=$ac_aux_dir/ltmain.sh
18424
18425
18426 # We use sed instead of cat because bash on DJGPP gets confused if
18427 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18428 # text mode, it properly converts lines to CR/LF. This bash problem
18429 # is reportedly fixed, but why not run on old versions too?
18430 sed '$q' "$ltmain" >> "$cfgfile" \
18431 || (rm -f "$cfgfile"; exit 1)
18432
18433 mv -f "$cfgfile" "$ofile" ||
18434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18435 chmod +x "$ofile"
18436
18437 ;;
18438 "script-chmod":C) chmod a+x pcre2-config ;;
18439 "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
18440
18441 esac
18442done # for ac_tag
18443
18444
18445as_fn_exit 0
18446_ACEOF
18447ac_clean_files=$ac_clean_files_save
18448
18449test $ac_write_fail = 0 ||
18450 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18451
18452
18453# configure is writing to config.log, and then calls config.status.
18454# config.status does its own redirection, appending to config.log.
18455# Unfortunately, on DOS this fails, as config.log is still kept open
18456# by configure, so config.status won't be able to write to it; its
18457# output is simply discarded. So we exec the FD to /dev/null,
18458# effectively closing config.log, so it can be properly (re)opened and
18459# appended to by config.status. When coming back to configure, we
18460# need to make the FD available again.
18461if test "$no_create" != yes; then
18462 ac_cs_success=:
18463 ac_config_status_args=
18464 test "$silent" = yes &&
18465 ac_config_status_args="$ac_config_status_args --quiet"
18466 exec 5>/dev/null
18467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18468 exec 5>>config.log
18469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18470 # would make configure fail if this is the last instruction.
18471 $ac_cs_success || as_fn_exit 1
18472fi
18473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18475printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18476fi
18477
18478
18479# --disable-stack-for-recursion is obsolete and has no effect.
18480
18481if test "$enable_stack_for_recursion" = "no"; then
18482cat <<EOF
18483
18484WARNING: --disable-stack-for-recursion is obsolete and has no effect.
18485EOF
18486fi
18487
18488# Print out a nice little message after configure is run displaying the
18489# chosen options.
18490
18491ebcdic_nl_code=n/a
18492if test "$enable_ebcdic_nl25" = "yes"; then
18493 ebcdic_nl_code=0x25
18494elif test "$enable_ebcdic" = "yes"; then
18495 ebcdic_nl_code=0x15
18496fi
18497
18498cat <<EOF
18499
18500$PACKAGE-$VERSION configuration summary:
18501
18502 Install prefix ..................... : ${prefix}
18503 C preprocessor ..................... : ${CPP}
18504 C compiler ......................... : ${CC}
18505 Linker ............................. : ${LD}
18506 C preprocessor flags ............... : ${CPPFLAGS}
18507 C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
18508 Linker flags ....................... : ${LDFLAGS}
18509 Extra libraries .................... : ${LIBS}
18510
18511 Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
18512 Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
18513 Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
18514 Include debugging code ............. : ${enable_debug}
18515 Enable JIT compiling support ....... : ${enable_jit}
18516 Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
18517 Enable Unicode support ............. : ${enable_unicode}
18518 Newline char/sequence .............. : ${enable_newline}
18519 \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
18520 \C is disabled ..................... : ${enable_never_backslash_C}
18521 EBCDIC coding ...................... : ${enable_ebcdic}
18522 EBCDIC code for NL ................. : ${ebcdic_nl_code}
18523 Rebuild char tables ................ : ${enable_rebuild_chartables}
18524 Internal link size ................. : ${with_link_size}
18525 Nested parentheses limit ........... : ${with_parens_nest_limit}
18526 Heap limit ......................... : ${with_heap_limit} kibibytes
18527 Match limit ........................ : ${with_match_limit}
18528 Match depth limit .................. : ${with_match_limit_depth}
18529 Build shared libs .................. : ${enable_shared}
18530 Build static libs .................. : ${enable_static}
18531 Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
18532 Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
18533 Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork}
18534 Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
18535 Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
18536 Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
18537 Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
18538 Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
18539 Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
18540 Valgrind support ................... : ${enable_valgrind}
18541 Code coverage ...................... : ${enable_coverage}
18542 Fuzzer support ..................... : ${enable_fuzz_support}
18543 Use %zu and %td .................... : ${enable_percent_zt}
18544
18545EOF
18546
18547