• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for PCRE2 10.32.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
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'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='PCRE2'
589PACKAGE_TARNAME='pcre2'
590PACKAGE_VERSION='10.32'
591PACKAGE_STRING='PCRE2 10.32'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/pcre2.h.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636WITH_GCOV_FALSE
637WITH_GCOV_TRUE
638GCOV_LIBS
639GCOV_CXXFLAGS
640GCOV_CFLAGS
641GENHTML
642LCOV
643SHTOOL
644VALGRIND_LIBS
645VALGRIND_CFLAGS
646PKG_CONFIG_LIBDIR
647PKG_CONFIG_PATH
648PKG_CONFIG
649LIBBZ2
650LIBZ
651DISTCHECK_CONFIGURE_FLAGS
652EXTRA_LIBPCRE2_POSIX_LDFLAGS
653EXTRA_LIBPCRE2_32_LDFLAGS
654EXTRA_LIBPCRE2_16_LDFLAGS
655EXTRA_LIBPCRE2_8_LDFLAGS
656PTHREAD_CFLAGS
657PTHREAD_LIBS
658PTHREAD_CC
659ax_pthread_config
660PCRE2_STATIC_CFLAG
661LIBREADLINE
662WITH_FUZZ_SUPPORT_FALSE
663WITH_FUZZ_SUPPORT_TRUE
664WITH_VALGRIND_FALSE
665WITH_VALGRIND_TRUE
666WITH_UNICODE_FALSE
667WITH_UNICODE_TRUE
668WITH_JIT_FALSE
669WITH_JIT_TRUE
670WITH_REBUILD_CHARTABLES_FALSE
671WITH_REBUILD_CHARTABLES_TRUE
672WITH_DEBUG_FALSE
673WITH_DEBUG_TRUE
674WITH_PCRE2_32_FALSE
675WITH_PCRE2_32_TRUE
676WITH_PCRE2_16_FALSE
677WITH_PCRE2_16_TRUE
678WITH_PCRE2_8_FALSE
679WITH_PCRE2_8_TRUE
680PCRE2_HAVE_INTTYPES_H
681PCRE2_HAVE_STDINT_H
682enable_pcre2_32
683enable_pcre2_16
684enable_pcre2_8
685PCRE2_DATE
686PCRE2_PRERELEASE
687PCRE2_MINOR
688PCRE2_MAJOR
689HAVE_VISIBILITY
690VISIBILITY_CXXFLAGS
691VISIBILITY_CFLAGS
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706SED
707LIBTOOL
708OBJDUMP
709DLLTOOL
710AS
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719ac_ct_AR
720AR
721EGREP
722GREP
723CPP
724am__fastdepCC_FALSE
725am__fastdepCC_TRUE
726CCDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__quote
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745am__untar
746am__tar
747AMTAR
748am__leading_dot
749SET_MAKE
750AWK
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754STRIP
755install_sh
756MAKEINFO
757AUTOHEADER
758AUTOMAKE
759AUTOCONF
760ACLOCAL
761VERSION
762PACKAGE
763CYGPATH_W
764am__isrc
765INSTALL_DATA
766INSTALL_SCRIPT
767INSTALL_PROGRAM
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
806ac_subst_files=''
807ac_user_opts='
808enable_option_checking
809enable_silent_rules
810enable_dependency_tracking
811enable_shared
812enable_static
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819enable_pcre8
820enable_pcre16
821enable_pcre32
822enable_pcre2_8
823enable_pcre2_16
824enable_pcre2_32
825enable_debug
826enable_jit
827enable_jit_sealloc
828enable_pcre2grep_jit
829enable_pcre2grep_callout
830enable_rebuild_chartables
831enable_unicode
832enable_newline_is_cr
833enable_newline_is_lf
834enable_newline_is_crlf
835enable_newline_is_anycrlf
836enable_newline_is_any
837enable_newline_is_nul
838enable_bsr_anycrlf
839enable_never_backslash_C
840enable_ebcdic
841enable_ebcdic_nl25
842enable_pcre2grep_libz
843enable_pcre2grep_libbz2
844with_pcre2grep_bufsize
845with_pcre2grep_max_bufsize
846enable_pcre2test_libedit
847enable_pcre2test_libreadline
848with_link_size
849with_parens_nest_limit
850with_heap_limit
851with_match_limit
852with_match_limit_depth
853with_match_limit_recursion
854enable_valgrind
855enable_coverage
856enable_fuzz_support
857enable_stack_for_recursion
858'
859      ac_precious_vars='build_alias
860host_alias
861target_alias
862CC
863CFLAGS
864LDFLAGS
865LIBS
866CPPFLAGS
867CPP
868LT_SYS_LIBRARY_PATH
869PKG_CONFIG
870PKG_CONFIG_PATH
871PKG_CONFIG_LIBDIR
872VALGRIND_CFLAGS
873VALGRIND_LIBS
874LCOV
875GENHTML'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881ac_unrecognized_opts=
882ac_unrecognized_sep=
883# The variables have the same names as the options, with
884# dashes changed to underlines.
885cache_file=/dev/null
886exec_prefix=NONE
887no_create=
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
896verbose=
897x_includes=NONE
898x_libraries=NONE
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
905# (The list follows the same order as the GNU Coding Standards.)
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
925
926ac_prev=
927ac_dashdash=
928for ac_option
929do
930  # If the previous option needs an argument, assign it.
931  if test -n "$ac_prev"; then
932    eval $ac_prev=\$ac_option
933    ac_prev=
934    continue
935  fi
936
937  case $ac_option in
938  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939  *=)   ac_optarg= ;;
940  *)    ac_optarg=yes ;;
941  esac
942
943  # Accept the important Cygnus configure options, so we can diagnose typos.
944
945  case $ac_dashdash$ac_option in
946  --)
947    ac_dashdash=yes ;;
948
949  -bindir | --bindir | --bindi | --bind | --bin | --bi)
950    ac_prev=bindir ;;
951  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952    bindir=$ac_optarg ;;
953
954  -build | --build | --buil | --bui | --bu)
955    ac_prev=build_alias ;;
956  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957    build_alias=$ac_optarg ;;
958
959  -cache-file | --cache-file | --cache-fil | --cache-fi \
960  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961    ac_prev=cache_file ;;
962  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964    cache_file=$ac_optarg ;;
965
966  --config-cache | -C)
967    cache_file=config.cache ;;
968
969  -datadir | --datadir | --datadi | --datad)
970    ac_prev=datadir ;;
971  -datadir=* | --datadir=* | --datadi=* | --datad=*)
972    datadir=$ac_optarg ;;
973
974  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975  | --dataroo | --dataro | --datar)
976    ac_prev=datarootdir ;;
977  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979    datarootdir=$ac_optarg ;;
980
981  -disable-* | --disable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: $ac_useropt"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=no ;;
996
997  -docdir | --docdir | --docdi | --doc | --do)
998    ac_prev=docdir ;;
999  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000    docdir=$ac_optarg ;;
1001
1002  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003    ac_prev=dvidir ;;
1004  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005    dvidir=$ac_optarg ;;
1006
1007  -enable-* | --enable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    case $ac_envvar in #(
1269      '' | [0-9]* | *[!_$as_cr_alnum]* )
1270      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271    esac
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  as_fn_error $? "missing argument to $ac_option"
1289fi
1290
1291if test -n "$ac_unrecognized_opts"; then
1292  case $enable_option_checking in
1293    no) ;;
1294    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296  esac
1297fi
1298
1299# Check all directory arguments for consistency.
1300for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301		datadir sysconfdir sharedstatedir localstatedir includedir \
1302		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303		libdir localedir mandir
1304do
1305  eval ac_val=\$$ac_var
1306  # Remove trailing slashes.
1307  case $ac_val in
1308    */ )
1309      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310      eval $ac_var=\$ac_val;;
1311  esac
1312  # Be sure to have absolute directory names.
1313  case $ac_val in
1314    [\\/$]* | ?:[\\/]* )  continue;;
1315    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316  esac
1317  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331  elif test "x$build_alias" != "x$host_alias"; then
1332    cross_compiling=yes
1333  fi
1334fi
1335
1336ac_tool_prefix=
1337test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339test "$silent" = yes && exec 6>/dev/null
1340
1341
1342ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343ac_ls_di=`ls -di .` &&
1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345  as_fn_error $? "working directory cannot be determined"
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347  as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352  ac_srcdir_defaulted=yes
1353  # Try the directory containing this script, then the parent directory.
1354  ac_confdir=`$as_dirname -- "$as_myself" ||
1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356	 X"$as_myself" : 'X\(//\)[^/]' \| \
1357	 X"$as_myself" : 'X\(//\)$' \| \
1358	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359$as_echo X"$as_myself" |
1360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\/\)[^/].*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)$/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\).*/{
1373	    s//\1/
1374	    q
1375	  }
1376	  s/.*/./; q'`
1377  srcdir=$ac_confdir
1378  if test ! -r "$srcdir/$ac_unique_file"; then
1379    srcdir=..
1380  fi
1381else
1382  ac_srcdir_defaulted=no
1383fi
1384if test ! -r "$srcdir/$ac_unique_file"; then
1385  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
1390	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391	pwd)`
1392# When building in place, set srcdir=.
1393if test "$ac_abs_confdir" = "$ac_pwd"; then
1394  srcdir=.
1395fi
1396# Remove unnecessary trailing slashes from srcdir.
1397# Double slashes in file names in object file debugging info
1398# mess up M-x gdb in Emacs.
1399case $srcdir in
1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401esac
1402for ac_var in $ac_precious_vars; do
1403  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404  eval ac_env_${ac_var}_value=\$${ac_var}
1405  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407done
1408
1409#
1410# Report the --help message.
1411#
1412if test "$ac_init_help" = "long"; then
1413  # Omit some internal or obsolete options to make the list less imposing.
1414  # This message is too long to be a string in the A/UX 3.1 sh.
1415  cat <<_ACEOF
1416\`configure' configures PCRE2 10.32 to adapt to many kinds of systems.
1417
1418Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423Defaults for the options are specified in brackets.
1424
1425Configuration:
1426  -h, --help              display this help and exit
1427      --help=short        display options specific to this package
1428      --help=recursive    display the short help of all the included packages
1429  -V, --version           display version information and exit
1430  -q, --quiet, --silent   do not print \`checking ...' messages
1431      --cache-file=FILE   cache test results in FILE [disabled]
1432  -C, --config-cache      alias for \`--cache-file=config.cache'
1433  -n, --no-create         do not create output files
1434      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436Installation directories:
1437  --prefix=PREFIX         install architecture-independent files in PREFIX
1438                          [$ac_default_prefix]
1439  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                          [PREFIX]
1441
1442By default, \`make install' will install all the files in
1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445for instance \`--prefix=\$HOME'.
1446
1447For better control, use the options below.
1448
1449Fine tuning of the installation directories:
1450  --bindir=DIR            user executables [EPREFIX/bin]
1451  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452  --libexecdir=DIR        program executables [EPREFIX/libexec]
1453  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456  --libdir=DIR            object code libraries [EPREFIX/lib]
1457  --includedir=DIR        C header files [PREFIX/include]
1458  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR           info documentation [DATAROOTDIR/info]
1462  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR            man documentation [DATAROOTDIR/man]
1464  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre2]
1465  --htmldir=DIR           html documentation [DOCDIR]
1466  --dvidir=DIR            dvi documentation [DOCDIR]
1467  --pdfdir=DIR            pdf documentation [DOCDIR]
1468  --psdir=DIR             ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of PCRE2 10.32:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-silent-rules   less verbose build output (undo: "make V=1")
1495  --disable-silent-rules  verbose build output (undo: "make V=0")
1496  --enable-dependency-tracking
1497                          do not reject slow dependency extractors
1498  --disable-dependency-tracking
1499                          speeds up one-time build
1500  --enable-shared[=PKGS]  build shared libraries [default=yes]
1501  --enable-static[=PKGS]  build static libraries [default=yes]
1502  --enable-fast-install[=PKGS]
1503                          optimize for fast installation [default=yes]
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505
1506  --disable-pcre2-8       disable 8 bit character support
1507  --enable-pcre2-16       enable 16 bit character support
1508  --enable-pcre2-32       enable 32 bit character support
1509  --enable-debug          enable debugging code
1510  --enable-jit            enable Just-In-Time compiling support
1511  --enable-jit-sealloc    enable SELinux compatible execmem allocator in JIT
1512  --disable-pcre2grep-jit disable JIT support in pcre2grep
1513  --disable-pcre2grep-callout
1514                          disable callout script support in pcre2grep
1515  --enable-rebuild-chartables
1516                          rebuild character tables in current locale
1517  --disable-unicode       disable Unicode support
1518  --enable-newline-is-cr  use CR as newline character
1519  --enable-newline-is-lf  use LF as newline character (default)
1520  --enable-newline-is-crlf
1521                          use CRLF as newline sequence
1522  --enable-newline-is-anycrlf
1523                          use CR, LF, or CRLF as newline sequence
1524  --enable-newline-is-any use any valid Unicode newline sequence
1525  --enable-newline-is-nul use NUL (binary zero) as newline character
1526  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1527  --enable-never-backslash-C
1528                          use of \C causes an error
1529  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1530                          with --enable-utf; use only in (uncommon) EBCDIC
1531                          environments; it implies --enable-rebuild-chartables
1532  --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1533                          implies --enable-ebcdic
1534  --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
1535  --enable-pcre2grep-libbz2
1536                          link pcre2grep with libbz2 to handle .bz2 files
1537  --enable-pcre2test-libedit
1538                          link pcre2test with libedit
1539  --enable-pcre2test-libreadline
1540                          link pcre2test with libreadline
1541  --enable-valgrind       enable valgrind support
1542  --enable-coverage       enable code coverage reports using gcov
1543  --enable-fuzz-support   enable fuzzer support
1544
1545Optional Packages:
1546  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1549                          both]
1550  --with-aix-soname=aix|svr4|both
1551                          shared library versioning (aka "SONAME") variant to
1552                          provide on AIX, [default=aix].
1553  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1554  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1555                          compiler's sysroot if not specified).
1556  --with-pcre2grep-bufsize=N
1557                          pcre2grep initial buffer size (default=20480,
1558                          minimum=8192)
1559  --with-pcre2grep-max-bufsize=N
1560                          pcre2grep maximum buffer size (default=1048576,
1561                          minimum=8192)
1562  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1563  --with-parens-nest-limit=N
1564                          nested parentheses limit (default=250)
1565  --with-heap-limit=N     default limit on heap memory (kibibytes,
1566                          default=20000000)
1567  --with-match-limit=N    default limit on internal looping (default=10000000)
1568  --with-match-limit-depth=N
1569                          default limit on match tree depth
1570                          (default=MATCH_LIMIT)
1571
1572
1573Some influential environment variables:
1574  CC          C compiler command
1575  CFLAGS      C compiler flags
1576  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577              nonstandard directory <lib dir>
1578  LIBS        libraries to pass to the linker, e.g. -l<library>
1579  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580              you have headers in a nonstandard directory <include dir>
1581  CPP         C preprocessor
1582  LT_SYS_LIBRARY_PATH
1583              User-defined run-time library search path.
1584  PKG_CONFIG  path to pkg-config utility
1585  PKG_CONFIG_PATH
1586              directories to add to pkg-config's search path
1587  PKG_CONFIG_LIBDIR
1588              path overriding pkg-config's built-in search path
1589  VALGRIND_CFLAGS
1590              C compiler flags for VALGRIND, overriding pkg-config
1591  VALGRIND_LIBS
1592              linker flags for VALGRIND, overriding pkg-config
1593  LCOV        the ltp lcov program
1594  GENHTML     the ltp genhtml program
1595
1596Use these variables to override the choices made by `configure' or to help
1597it to find libraries and programs with nonstandard names/locations.
1598
1599Report bugs to the package provider.
1600_ACEOF
1601ac_status=$?
1602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605  # If there are subdirs, report their specific --help.
1606  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607    test -d "$ac_dir" ||
1608      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609      continue
1610    ac_builddir=.
1611
1612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616  # A ".." for each directory in $ac_dir_suffix.
1617  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618  case $ac_top_builddir_sub in
1619  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621  esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
1627
1628case $srcdir in
1629  .)  # We are building in place.
1630    ac_srcdir=.
1631    ac_top_srcdir=$ac_top_builddir_sub
1632    ac_abs_top_srcdir=$ac_pwd ;;
1633  [\\/]* | ?:[\\/]* )  # Absolute name.
1634    ac_srcdir=$srcdir$ac_dir_suffix;
1635    ac_top_srcdir=$srcdir
1636    ac_abs_top_srcdir=$srcdir ;;
1637  *) # Relative name.
1638    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639    ac_top_srcdir=$ac_top_build_prefix$srcdir
1640    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641esac
1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644    cd "$ac_dir" || { ac_status=$?; continue; }
1645    # Check for guested configure.
1646    if test -f "$ac_srcdir/configure.gnu"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649    elif test -f "$ac_srcdir/configure"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure" --help=recursive
1652    else
1653      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654    fi || ac_status=$?
1655    cd "$ac_pwd" || { ac_status=$?; break; }
1656  done
1657fi
1658
1659test -n "$ac_init_help" && exit $ac_status
1660if $ac_init_version; then
1661  cat <<\_ACEOF
1662PCRE2 configure 10.32
1663generated by GNU Autoconf 2.69
1664
1665Copyright (C) 2012 Free Software Foundation, Inc.
1666This configure script is free software; the Free Software Foundation
1667gives unlimited permission to copy, distribute and modify it.
1668_ACEOF
1669  exit
1670fi
1671
1672## ------------------------ ##
1673## Autoconf initialization. ##
1674## ------------------------ ##
1675
1676# ac_fn_c_try_compile LINENO
1677# --------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_compile ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext
1683  if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_compile") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest.$ac_objext; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707	ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_compile
1713
1714# ac_fn_c_try_cpp LINENO
1715# ----------------------
1716# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_cpp ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  if { { ac_try="$ac_cpp conftest.$ac_ext"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } > conftest.i && {
1736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       }; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744    ac_retval=1
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_cpp
1750
1751# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1754# the include files in INCLUDES and setting the cache variable VAR
1755# accordingly.
1756ac_fn_c_check_header_mongrel ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if eval \${$3+:} false; then :
1760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763  $as_echo_n "(cached) " >&6
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768else
1769  # Is the header compilable?
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1771$as_echo_n "checking $2 usability... " >&6; }
1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  ac_header_compiler=yes
1779else
1780  ac_header_compiler=no
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1784$as_echo "$ac_header_compiler" >&6; }
1785
1786# Is the header present?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1788$as_echo_n "checking $2 presence... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_cpp "$LINENO"; then :
1794  ac_header_preproc=yes
1795else
1796  ac_header_preproc=no
1797fi
1798rm -f conftest.err conftest.i conftest.$ac_ext
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1800$as_echo "$ac_header_preproc" >&6; }
1801
1802# So?  What about this header?
1803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804  yes:no: )
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1806$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809    ;;
1810  no:yes:* )
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1812$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1814$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1816$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1818$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821    ;;
1822esac
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  eval "$3=\$ac_header_compiler"
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_header_mongrel
1837
1838# ac_fn_c_try_run LINENO
1839# ----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841# that executables *can* be run.
1842ac_fn_c_try_run ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_link") 2>&5
1853  ac_status=$?
1854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856  { { case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_try") 2>&5
1863  ac_status=$?
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; }; }; then :
1866  ac_retval=0
1867else
1868  $as_echo "$as_me: program exited with status $ac_status" >&5
1869       $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872       ac_retval=$ac_status
1873fi
1874  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876  as_fn_set_status $ac_retval
1877
1878} # ac_fn_c_try_run
1879
1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists and can be compiled using the include files in
1883# INCLUDES, setting the cache variable VAR accordingly.
1884ac_fn_c_check_header_compile ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_header_compile
1910
1911# ac_fn_c_find_intX_t LINENO BITS VAR
1912# -----------------------------------
1913# Finds a signed integer type with width BITS, setting cache variable VAR
1914# accordingly.
1915ac_fn_c_find_intX_t ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1919$as_echo_n "checking for int$2_t... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=no"
1924     # Order is important - never check a type that is potentially smaller
1925     # than half of the expected target width.
1926     for ac_type in int$2_t 'int' 'long int' \
1927	 'long long int' 'short int' 'signed char'; do
1928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930$ac_includes_default
1931	     enum { N = $2 / 2 - 1 };
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1936test_array [0] = 0;
1937return test_array [0];
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h.  */
1946$ac_includes_default
1947	        enum { N = $2 / 2 - 1 };
1948int
1949main ()
1950{
1951static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1952		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1953test_array [0] = 0;
1954return test_array [0];
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961
1962else
1963  case $ac_type in #(
1964  int$2_t) :
1965    eval "$3=yes" ;; #(
1966  *) :
1967    eval "$3=\$ac_type" ;;
1968esac
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973       if eval test \"x\$"$3"\" = x"no"; then :
1974
1975else
1976  break
1977fi
1978     done
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_find_intX_t
1986
1987# ac_fn_c_try_link LINENO
1988# -----------------------
1989# Try to link conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_link ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  rm -f conftest.$ac_objext conftest$ac_exeext
1994  if { { ac_try="$ac_link"
1995case "(($ac_try" in
1996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997  *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001  (eval "$ac_link") 2>conftest.err
2002  ac_status=$?
2003  if test -s conftest.err; then
2004    grep -v '^ *+' conftest.err >conftest.er1
2005    cat conftest.er1 >&5
2006    mv -f conftest.er1 conftest.err
2007  fi
2008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009  test $ac_status = 0; } && {
2010	 test -z "$ac_c_werror_flag" ||
2011	 test ! -s conftest.err
2012       } && test -s conftest$ac_exeext && {
2013	 test "$cross_compiling" = yes ||
2014	 test -x conftest$ac_exeext
2015       }; then :
2016  ac_retval=0
2017else
2018  $as_echo "$as_me: failed program was:" >&5
2019sed 's/^/| /' conftest.$ac_ext >&5
2020
2021	ac_retval=1
2022fi
2023  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025  # interfere with the next link command; also delete a directory that is
2026  # left behind by Apple's compiler.  We do this before executing the actions.
2027  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029  as_fn_set_status $ac_retval
2030
2031} # ac_fn_c_try_link
2032
2033# ac_fn_c_check_func LINENO FUNC VAR
2034# ----------------------------------
2035# Tests whether FUNC exists, setting the cache variable VAR accordingly
2036ac_fn_c_check_func ()
2037{
2038  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040$as_echo_n "checking for $2... " >&6; }
2041if eval \${$3+:} false; then :
2042  $as_echo_n "(cached) " >&6
2043else
2044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2047   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2048#define $2 innocuous_$2
2049
2050/* System header to define __stub macros and hopefully few prototypes,
2051    which can conflict with char $2 (); below.
2052    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2053    <limits.h> exists even on freestanding compilers.  */
2054
2055#ifdef __STDC__
2056# include <limits.h>
2057#else
2058# include <assert.h>
2059#endif
2060
2061#undef $2
2062
2063/* Override any GCC internal prototype to avoid an error.
2064   Use char because int might match the return type of a GCC
2065   builtin and then its argument prototype would still apply.  */
2066#ifdef __cplusplus
2067extern "C"
2068#endif
2069char $2 ();
2070/* The GNU C library defines this for functions which it implements
2071    to always fail with ENOSYS.  Some functions are actually named
2072    something starting with __ and the normal name is an alias.  */
2073#if defined __stub_$2 || defined __stub___$2
2074choke me
2075#endif
2076
2077int
2078main ()
2079{
2080return $2 ();
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_link "$LINENO"; then :
2086  eval "$3=yes"
2087else
2088  eval "$3=no"
2089fi
2090rm -f core conftest.err conftest.$ac_objext \
2091    conftest$ac_exeext conftest.$ac_ext
2092fi
2093eval ac_res=\$$3
2094	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_c_check_func
2099
2100# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2101# -------------------------------------------
2102# Tests whether TYPE exists after having included INCLUDES, setting cache
2103# variable VAR accordingly.
2104ac_fn_c_check_type ()
2105{
2106  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108$as_echo_n "checking for $2... " >&6; }
2109if eval \${$3+:} false; then :
2110  $as_echo_n "(cached) " >&6
2111else
2112  eval "$3=no"
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119if (sizeof ($2))
2120	 return 0;
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128$4
2129int
2130main ()
2131{
2132if (sizeof (($2)))
2133	    return 0;
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139
2140else
2141  eval "$3=yes"
2142fi
2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146fi
2147eval ac_res=\$$3
2148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_type
2153cat >config.log <<_ACEOF
2154This file contains any messages produced by compilers while
2155running configure, to aid debugging if configure makes a mistake.
2156
2157It was created by PCRE2 $as_me 10.32, which was
2158generated by GNU Autoconf 2.69.  Invocation command line was
2159
2160  $ $0 $@
2161
2162_ACEOF
2163exec 5>>config.log
2164{
2165cat <<_ASUNAME
2166## --------- ##
2167## Platform. ##
2168## --------- ##
2169
2170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2178
2179/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2180/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2183/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2184/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2185/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2186
2187_ASUNAME
2188
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192  IFS=$as_save_IFS
2193  test -z "$as_dir" && as_dir=.
2194    $as_echo "PATH: $as_dir"
2195  done
2196IFS=$as_save_IFS
2197
2198} >&5
2199
2200cat >&5 <<_ACEOF
2201
2202
2203## ----------- ##
2204## Core tests. ##
2205## ----------- ##
2206
2207_ACEOF
2208
2209
2210# Keep a trace of the command line.
2211# Strip out --no-create and --no-recursion so they do not pile up.
2212# Strip out --silent because we don't want to record it for future runs.
2213# Also quote any args containing shell meta-characters.
2214# Make two passes to allow for proper duplicate-argument suppression.
2215ac_configure_args=
2216ac_configure_args0=
2217ac_configure_args1=
2218ac_must_keep_next=false
2219for ac_pass in 1 2
2220do
2221  for ac_arg
2222  do
2223    case $ac_arg in
2224    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226    | -silent | --silent | --silen | --sile | --sil)
2227      continue ;;
2228    *\'*)
2229      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230    esac
2231    case $ac_pass in
2232    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233    2)
2234      as_fn_append ac_configure_args1 " '$ac_arg'"
2235      if test $ac_must_keep_next = true; then
2236	ac_must_keep_next=false # Got value, back to normal.
2237      else
2238	case $ac_arg in
2239	  *=* | --config-cache | -C | -disable-* | --disable-* \
2240	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242	  | -with-* | --with-* | -without-* | --without-* | --x)
2243	    case "$ac_configure_args0 " in
2244	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245	    esac
2246	    ;;
2247	  -* ) ac_must_keep_next=true ;;
2248	esac
2249      fi
2250      as_fn_append ac_configure_args " '$ac_arg'"
2251      ;;
2252    esac
2253  done
2254done
2255{ ac_configure_args0=; unset ac_configure_args0;}
2256{ ac_configure_args1=; unset ac_configure_args1;}
2257
2258# When interrupted or exit'd, cleanup temporary files, and complete
2259# config.log.  We remove comments because anyway the quotes in there
2260# would cause problems or look ugly.
2261# WARNING: Use '\'' to represent an apostrophe within the trap.
2262# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263trap 'exit_status=$?
2264  # Save into config.log some information that might help in debugging.
2265  {
2266    echo
2267
2268    $as_echo "## ---------------- ##
2269## Cache variables. ##
2270## ---------------- ##"
2271    echo
2272    # The following way of writing the cache mishandles newlines in values,
2273(
2274  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275    eval ac_val=\$$ac_var
2276    case $ac_val in #(
2277    *${as_nl}*)
2278      case $ac_var in #(
2279      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2281      esac
2282      case $ac_var in #(
2283      _ | IFS | as_nl) ;; #(
2284      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285      *) { eval $ac_var=; unset $ac_var;} ;;
2286      esac ;;
2287    esac
2288  done
2289  (set) 2>&1 |
2290    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291    *${as_nl}ac_space=\ *)
2292      sed -n \
2293	"s/'\''/'\''\\\\'\'''\''/g;
2294	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2295      ;; #(
2296    *)
2297      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2298      ;;
2299    esac |
2300    sort
2301)
2302    echo
2303
2304    $as_echo "## ----------------- ##
2305## Output variables. ##
2306## ----------------- ##"
2307    echo
2308    for ac_var in $ac_subst_vars
2309    do
2310      eval ac_val=\$$ac_var
2311      case $ac_val in
2312      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313      esac
2314      $as_echo "$ac_var='\''$ac_val'\''"
2315    done | sort
2316    echo
2317
2318    if test -n "$ac_subst_files"; then
2319      $as_echo "## ------------------- ##
2320## File substitutions. ##
2321## ------------------- ##"
2322      echo
2323      for ac_var in $ac_subst_files
2324      do
2325	eval ac_val=\$$ac_var
2326	case $ac_val in
2327	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328	esac
2329	$as_echo "$ac_var='\''$ac_val'\''"
2330      done | sort
2331      echo
2332    fi
2333
2334    if test -s confdefs.h; then
2335      $as_echo "## ----------- ##
2336## confdefs.h. ##
2337## ----------- ##"
2338      echo
2339      cat confdefs.h
2340      echo
2341    fi
2342    test "$ac_signal" != 0 &&
2343      $as_echo "$as_me: caught signal $ac_signal"
2344    $as_echo "$as_me: exit $exit_status"
2345  } >&5
2346  rm -f core *.core core.conftest.* &&
2347    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2348    exit $exit_status
2349' 0
2350for ac_signal in 1 2 13 15; do
2351  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352done
2353ac_signal=0
2354
2355# confdefs.h avoids OS command line length limits that DEFS can exceed.
2356rm -f -r conftest* confdefs.h
2357
2358$as_echo "/* confdefs.h */" > confdefs.h
2359
2360# Predefined preprocessor variables.
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_NAME "$PACKAGE_NAME"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_VERSION "$PACKAGE_VERSION"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_STRING "$PACKAGE_STRING"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380_ACEOF
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_URL "$PACKAGE_URL"
2384_ACEOF
2385
2386
2387# Let the site file select an alternate cache file if it wants to.
2388# Prefer an explicitly selected file to automatically selected ones.
2389ac_site_file1=NONE
2390ac_site_file2=NONE
2391if test -n "$CONFIG_SITE"; then
2392  # We do not want a PATH search for config.site.
2393  case $CONFIG_SITE in #((
2394    -*)  ac_site_file1=./$CONFIG_SITE;;
2395    */*) ac_site_file1=$CONFIG_SITE;;
2396    *)   ac_site_file1=./$CONFIG_SITE;;
2397  esac
2398elif test "x$prefix" != xNONE; then
2399  ac_site_file1=$prefix/share/config.site
2400  ac_site_file2=$prefix/etc/config.site
2401else
2402  ac_site_file1=$ac_default_prefix/share/config.site
2403  ac_site_file2=$ac_default_prefix/etc/config.site
2404fi
2405for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406do
2407  test "x$ac_site_file" = xNONE && continue
2408  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411    sed 's/^/| /' "$ac_site_file" >&5
2412    . "$ac_site_file" \
2413      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415as_fn_error $? "failed to load site script $ac_site_file
2416See \`config.log' for more details" "$LINENO" 5; }
2417  fi
2418done
2419
2420if test -r "$cache_file"; then
2421  # Some versions of bash will fail to source /dev/null (special files
2422  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2423  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425$as_echo "$as_me: loading cache $cache_file" >&6;}
2426    case $cache_file in
2427      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428      *)                      . "./$cache_file";;
2429    esac
2430  fi
2431else
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433$as_echo "$as_me: creating cache $cache_file" >&6;}
2434  >$cache_file
2435fi
2436
2437# Check that the precious variables saved in the cache have kept the same
2438# value.
2439ac_cache_corrupted=false
2440for ac_var in $ac_precious_vars; do
2441  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442  eval ac_new_set=\$ac_env_${ac_var}_set
2443  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444  eval ac_new_val=\$ac_env_${ac_var}_value
2445  case $ac_old_set,$ac_new_set in
2446    set,)
2447      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,set)
2451      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453      ac_cache_corrupted=: ;;
2454    ,);;
2455    *)
2456      if test "x$ac_old_val" != "x$ac_new_val"; then
2457	# differences in whitespace do not lead to failure.
2458	ac_old_val_w=`echo x $ac_old_val`
2459	ac_new_val_w=`echo x $ac_new_val`
2460	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463	  ac_cache_corrupted=:
2464	else
2465	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467	  eval $ac_var=\$ac_old_val
2468	fi
2469	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2470$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2471	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2472$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2473      fi;;
2474  esac
2475  # Pass precious variables to config.status.
2476  if test "$ac_new_set" = set; then
2477    case $ac_new_val in
2478    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479    *) ac_arg=$ac_var=$ac_new_val ;;
2480    esac
2481    case " $ac_configure_args " in
2482      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2483      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484    esac
2485  fi
2486done
2487if $ac_cache_corrupted; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493fi
2494## -------------------- ##
2495## Main body of script. ##
2496## -------------------- ##
2497
2498ac_ext=c
2499ac_cpp='$CPP $CPPFLAGS'
2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505
2506am__api_version='1.15'
2507
2508ac_aux_dir=
2509for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510  if test -f "$ac_dir/install-sh"; then
2511    ac_aux_dir=$ac_dir
2512    ac_install_sh="$ac_aux_dir/install-sh -c"
2513    break
2514  elif test -f "$ac_dir/install.sh"; then
2515    ac_aux_dir=$ac_dir
2516    ac_install_sh="$ac_aux_dir/install.sh -c"
2517    break
2518  elif test -f "$ac_dir/shtool"; then
2519    ac_aux_dir=$ac_dir
2520    ac_install_sh="$ac_aux_dir/shtool install -c"
2521    break
2522  fi
2523done
2524if test -z "$ac_aux_dir"; then
2525  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526fi
2527
2528# These three variables are undocumented and unsupported,
2529# and are intended to be withdrawn in a future Autoconf release.
2530# They can cause serious problems if a builder's source tree is in a directory
2531# whose full name contains unusual characters.
2532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537# Find a good install program.  We prefer a C program (faster),
2538# so one script is as good as another.  But avoid the broken or
2539# incompatible versions:
2540# SysV /etc/install, /usr/sbin/install
2541# SunOS /usr/etc/install
2542# IRIX /sbin/install
2543# AIX /bin/install
2544# AmigaOS /C/install, which installs bootblocks on floppy discs
2545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2546# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2548# OS/2's system install, which has a completely different semantic
2549# ./install, which can be erroneously created by make from ./install.sh.
2550# Reject install programs that cannot install multiple files.
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2552$as_echo_n "checking for a BSD-compatible install... " >&6; }
2553if test -z "$INSTALL"; then
2554if ${ac_cv_path_install+:} false; then :
2555  $as_echo_n "(cached) " >&6
2556else
2557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    # Account for people who put trailing slashes in PATH elements.
2563case $as_dir/ in #((
2564  ./ | .// | /[cC]/* | \
2565  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2566  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2567  /usr/ucb/* ) ;;
2568  *)
2569    # OSF1 and SCO ODT 3.0 have their own names for install.
2570    # Don't use installbsd from OSF since it installs stuff as root
2571    # by default.
2572    for ac_prog in ginstall scoinst install; do
2573      for ac_exec_ext in '' $ac_executable_extensions; do
2574	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2575	  if test $ac_prog = install &&
2576	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577	    # AIX install.  It has an incompatible calling convention.
2578	    :
2579	  elif test $ac_prog = install &&
2580	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2581	    # program-specific install script used by HP pwplus--don't use.
2582	    :
2583	  else
2584	    rm -rf conftest.one conftest.two conftest.dir
2585	    echo one > conftest.one
2586	    echo two > conftest.two
2587	    mkdir conftest.dir
2588	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2589	      test -s conftest.one && test -s conftest.two &&
2590	      test -s conftest.dir/conftest.one &&
2591	      test -s conftest.dir/conftest.two
2592	    then
2593	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594	      break 3
2595	    fi
2596	  fi
2597	fi
2598      done
2599    done
2600    ;;
2601esac
2602
2603  done
2604IFS=$as_save_IFS
2605
2606rm -rf conftest.one conftest.two conftest.dir
2607
2608fi
2609  if test "${ac_cv_path_install+set}" = set; then
2610    INSTALL=$ac_cv_path_install
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for INSTALL within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    INSTALL=$ac_install_sh
2617  fi
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620$as_echo "$INSTALL" >&6; }
2621
2622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623# It thinks the first close brace ends the variable substitution.
2624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2631$as_echo_n "checking whether build environment is sane... " >&6; }
2632# Reject unsafe characters in $srcdir or the absolute working directory
2633# name.  Accept space and tab only in the latter.
2634am_lf='
2635'
2636case `pwd` in
2637  *[\\\"\#\$\&\'\`$am_lf]*)
2638    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2639esac
2640case $srcdir in
2641  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2642    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2643esac
2644
2645# Do 'set' in a subshell so we don't clobber the current shell's
2646# arguments.  Must try -L first in case configure is actually a
2647# symlink; some systems play weird games with the mod time of symlinks
2648# (eg FreeBSD returns the mod time of the symlink's containing
2649# directory).
2650if (
2651   am_has_slept=no
2652   for am_try in 1 2; do
2653     echo "timestamp, slept: $am_has_slept" > conftest.file
2654     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2655     if test "$*" = "X"; then
2656	# -L didn't work.
2657	set X `ls -t "$srcdir/configure" conftest.file`
2658     fi
2659     if test "$*" != "X $srcdir/configure conftest.file" \
2660	&& test "$*" != "X conftest.file $srcdir/configure"; then
2661
2662	# If neither matched, then we have a broken ls.  This can happen
2663	# if, for instance, CONFIG_SHELL is bash and it inherits a
2664	# broken ls alias from the environment.  This has actually
2665	# happened.  Such a system could not be considered "sane".
2666	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2667  alias in your environment" "$LINENO" 5
2668     fi
2669     if test "$2" = conftest.file || test $am_try -eq 2; then
2670       break
2671     fi
2672     # Just in case.
2673     sleep 1
2674     am_has_slept=yes
2675   done
2676   test "$2" = conftest.file
2677   )
2678then
2679   # Ok.
2680   :
2681else
2682   as_fn_error $? "newly created file is older than distributed files!
2683Check your system clock" "$LINENO" 5
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686$as_echo "yes" >&6; }
2687# If we didn't sleep, we still need to ensure time stamps of config.status and
2688# generated files are strictly newer.
2689am_sleep_pid=
2690if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2691  ( sleep 1 ) &
2692  am_sleep_pid=$!
2693fi
2694
2695rm -f conftest.file
2696
2697test "$program_prefix" != NONE &&
2698  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699# Use a double $ so make ignores it.
2700test "$program_suffix" != NONE &&
2701  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702# Double any \ or $.
2703# By default was `s,x,x', remove it if useless.
2704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2706
2707# Expand $ac_aux_dir to an absolute path.
2708am_aux_dir=`cd "$ac_aux_dir" && pwd`
2709
2710if test x"${MISSING+set}" != xset; then
2711  case $am_aux_dir in
2712  *\ * | *\	*)
2713    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2714  *)
2715    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2716  esac
2717fi
2718# Use eval to expand $SHELL
2719if eval "$MISSING --is-lightweight"; then
2720  am_missing_run="$MISSING "
2721else
2722  am_missing_run=
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2724$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2725fi
2726
2727if test x"${install_sh+set}" != xset; then
2728  case $am_aux_dir in
2729  *\ * | *\	*)
2730    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2731  *)
2732    install_sh="\${SHELL} $am_aux_dir/install-sh"
2733  esac
2734fi
2735
2736# Installed binaries are usually stripped using 'strip' when the user
2737# run "make install-strip".  However 'strip' might not be the right
2738# tool to use in cross-compilation environments, therefore Automake
2739# will honor the 'STRIP' environment variable to overrule this program.
2740if test "$cross_compiling" != no; then
2741  if test -n "$ac_tool_prefix"; then
2742  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}strip; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if ${ac_cv_prog_STRIP+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$STRIP"; then
2750  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769STRIP=$ac_cv_prog_STRIP
2770if test -n "$STRIP"; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2772$as_echo "$STRIP" >&6; }
2773else
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$ac_cv_prog_STRIP"; then
2781  ac_ct_STRIP=$STRIP
2782  # Extract the first word of "strip", so it can be a program name with args.
2783set dummy strip; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  if test -n "$ac_ct_STRIP"; then
2790  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795  IFS=$as_save_IFS
2796  test -z "$as_dir" && as_dir=.
2797    for ac_exec_ext in '' $ac_executable_extensions; do
2798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799    ac_cv_prog_ac_ct_STRIP="strip"
2800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801    break 2
2802  fi
2803done
2804  done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810if test -n "$ac_ct_STRIP"; then
2811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812$as_echo "$ac_ct_STRIP" >&6; }
2813else
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2817
2818  if test "x$ac_ct_STRIP" = x; then
2819    STRIP=":"
2820  else
2821    case $cross_compiling:$ac_tool_warned in
2822yes:)
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825ac_tool_warned=yes ;;
2826esac
2827    STRIP=$ac_ct_STRIP
2828  fi
2829else
2830  STRIP="$ac_cv_prog_STRIP"
2831fi
2832
2833fi
2834INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2837$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2838if test -z "$MKDIR_P"; then
2839  if ${ac_cv_path_mkdir+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847    for ac_prog in mkdir gmkdir; do
2848	 for ac_exec_ext in '' $ac_executable_extensions; do
2849	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2850	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2851	     'mkdir (GNU coreutils) '* | \
2852	     'mkdir (coreutils) '* | \
2853	     'mkdir (fileutils) '4.1*)
2854	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2855	       break 3;;
2856	   esac
2857	 done
2858       done
2859  done
2860IFS=$as_save_IFS
2861
2862fi
2863
2864  test -d ./--version && rmdir ./--version
2865  if test "${ac_cv_path_mkdir+set}" = set; then
2866    MKDIR_P="$ac_cv_path_mkdir -p"
2867  else
2868    # As a last resort, use the slow shell script.  Don't cache a
2869    # value for MKDIR_P within a source directory, because that will
2870    # break other packages using the cache if that directory is
2871    # removed, or if the value is a relative name.
2872    MKDIR_P="$ac_install_sh -d"
2873  fi
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2876$as_echo "$MKDIR_P" >&6; }
2877
2878for ac_prog in gawk mawk nawk awk
2879do
2880  # Extract the first word of "$ac_prog", so it can be a program name with args.
2881set dummy $ac_prog; ac_word=$2
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
2884if ${ac_cv_prog_AWK+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  if test -n "$AWK"; then
2888  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895    for ac_exec_ext in '' $ac_executable_extensions; do
2896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897    ac_cv_prog_AWK="$ac_prog"
2898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899    break 2
2900  fi
2901done
2902  done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907AWK=$ac_cv_prog_AWK
2908if test -n "$AWK"; then
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910$as_echo "$AWK" >&6; }
2911else
2912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
2917  test -n "$AWK" && break
2918done
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922set x ${MAKE-make}
2923ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  cat >conftest.make <<\_ACEOF
2928SHELL = /bin/sh
2929all:
2930	@echo '@@@%%%=$(MAKE)=@@@%%%'
2931_ACEOF
2932# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2933case `${MAKE-make} -f conftest.make 2>/dev/null` in
2934  *@@@%%%=?*=@@@%%%*)
2935    eval ac_cv_prog_make_${ac_make}_set=yes;;
2936  *)
2937    eval ac_cv_prog_make_${ac_make}_set=no;;
2938esac
2939rm -f conftest.make
2940fi
2941if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943$as_echo "yes" >&6; }
2944  SET_MAKE=
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948  SET_MAKE="MAKE=${MAKE-make}"
2949fi
2950
2951rm -rf .tst 2>/dev/null
2952mkdir .tst 2>/dev/null
2953if test -d .tst; then
2954  am__leading_dot=.
2955else
2956  am__leading_dot=_
2957fi
2958rmdir .tst 2>/dev/null
2959
2960# Check whether --enable-silent-rules was given.
2961if test "${enable_silent_rules+set}" = set; then :
2962  enableval=$enable_silent_rules;
2963fi
2964
2965case $enable_silent_rules in # (((
2966  yes) AM_DEFAULT_VERBOSITY=0;;
2967   no) AM_DEFAULT_VERBOSITY=1;;
2968    *) AM_DEFAULT_VERBOSITY=1;;
2969esac
2970am_make=${MAKE-make}
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2972$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2973if ${am_cv_make_support_nested_variables+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if $as_echo 'TRUE=$(BAR$(V))
2977BAR0=false
2978BAR1=true
2979V=1
2980am__doit:
2981	@$(TRUE)
2982.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2983  am_cv_make_support_nested_variables=yes
2984else
2985  am_cv_make_support_nested_variables=no
2986fi
2987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2989$as_echo "$am_cv_make_support_nested_variables" >&6; }
2990if test $am_cv_make_support_nested_variables = yes; then
2991    AM_V='$(V)'
2992  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2993else
2994  AM_V=$AM_DEFAULT_VERBOSITY
2995  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2996fi
2997AM_BACKSLASH='\'
2998
2999if test "`cd $srcdir && pwd`" != "`pwd`"; then
3000  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3001  # is not polluted with repeated "-I."
3002  am__isrc=' -I$(srcdir)'
3003  # test to see if srcdir already configured
3004  if test -f $srcdir/config.status; then
3005    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3006  fi
3007fi
3008
3009# test whether we have cygpath
3010if test -z "$CYGPATH_W"; then
3011  if (cygpath --version) >/dev/null 2>/dev/null; then
3012    CYGPATH_W='cygpath -w'
3013  else
3014    CYGPATH_W=echo
3015  fi
3016fi
3017
3018
3019# Define the identity of the package.
3020 PACKAGE='pcre2'
3021 VERSION='10.32'
3022
3023
3024cat >>confdefs.h <<_ACEOF
3025#define PACKAGE "$PACKAGE"
3026_ACEOF
3027
3028
3029cat >>confdefs.h <<_ACEOF
3030#define VERSION "$VERSION"
3031_ACEOF
3032
3033# Some tools Automake needs.
3034
3035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3036
3037
3038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3039
3040
3041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3042
3043
3044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3045
3046
3047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048
3049# For better backward compatibility.  To be removed once Automake 1.9.x
3050# dies out for good.  For more background, see:
3051# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3052# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3053mkdir_p='$(MKDIR_P)'
3054
3055# We need awk for the "check" target (and possibly the TAP driver).  The
3056# system "awk" is bad on some platforms.
3057# Always define AMTAR for backward compatibility.  Yes, it's still used
3058# in the wild :-(  We should find a proper way to deprecate it ...
3059AMTAR='$${TAR-tar}'
3060
3061
3062# We'll loop over all known methods to create a tar archive until one works.
3063_am_tools='gnutar  pax cpio none'
3064
3065am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3066
3067
3068
3069
3070
3071
3072# POSIX will say in a future version that running "rm -f" with no argument
3073# is OK; and we want to be able to make that assumption in our Makefile
3074# recipes.  So use an aggressive probe to check that the usage we want is
3075# actually supported "in the wild" to an acceptable degree.
3076# See automake bug#10828.
3077# To make any issue more visible, cause the running configure to be aborted
3078# by default if the 'rm' program in use doesn't match our expectations; the
3079# user can still override this though.
3080if rm -f && rm -fr && rm -rf; then : OK; else
3081  cat >&2 <<'END'
3082Oops!
3083
3084Your 'rm' program seems unable to run without file operands specified
3085on the command line, even when the '-f' option is present.  This is contrary
3086to the behaviour of most rm programs out there, and not conforming with
3087the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3088
3089Please tell bug-automake@gnu.org about your system, including the value
3090of your $PATH and any error possibly output before this message.  This
3091can help us improve future automake versions.
3092
3093END
3094  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3095    echo 'Configuration will proceed anyway, since you have set the' >&2
3096    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3097    echo >&2
3098  else
3099    cat >&2 <<'END'
3100Aborting the configuration process, to ensure you take notice of the issue.
3101
3102You can download and install GNU coreutils to get an 'rm' implementation
3103that behaves properly: <http://www.gnu.org/software/coreutils/>.
3104
3105If you want to complete the configuration process using your problematic
3106'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3107to "yes", and re-run configure.
3108
3109END
3110    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3111  fi
3112fi
3113
3114# Check whether --enable-silent-rules was given.
3115if test "${enable_silent_rules+set}" = set; then :
3116  enableval=$enable_silent_rules;
3117fi
3118
3119case $enable_silent_rules in # (((
3120  yes) AM_DEFAULT_VERBOSITY=0;;
3121   no) AM_DEFAULT_VERBOSITY=1;;
3122    *) AM_DEFAULT_VERBOSITY=0;;
3123esac
3124am_make=${MAKE-make}
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3126$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3127if ${am_cv_make_support_nested_variables+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  if $as_echo 'TRUE=$(BAR$(V))
3131BAR0=false
3132BAR1=true
3133V=1
3134am__doit:
3135	@$(TRUE)
3136.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3137  am_cv_make_support_nested_variables=yes
3138else
3139  am_cv_make_support_nested_variables=no
3140fi
3141fi
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3143$as_echo "$am_cv_make_support_nested_variables" >&6; }
3144if test $am_cv_make_support_nested_variables = yes; then
3145    AM_V='$(V)'
3146  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3147else
3148  AM_V=$AM_DEFAULT_VERBOSITY
3149  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3150fi
3151AM_BACKSLASH='\'
3152
3153ac_config_headers="$ac_config_headers src/config.h"
3154
3155
3156# This was added at the suggestion of libtoolize (03-Jan-10)
3157
3158
3159# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
3160# other compiler. There doesn't seem to be a standard way of getting rid of the
3161# -g (which I don't think is needed for a production library). This fudge seems
3162# to achieve the necessary. First, we remember the externally set values of
3163# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
3164# not set, it will be set to Autoconf's defaults. Afterwards, if the original
3165# values were not set, remove the -g from the Autoconf defaults.
3166
3167remember_set_CFLAGS="$CFLAGS"
3168
3169ac_ext=c
3170ac_cpp='$CPP $CPPFLAGS'
3171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174if test -n "$ac_tool_prefix"; then
3175  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3176set dummy ${ac_tool_prefix}gcc; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$CC"; then
3183  ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212fi
3213if test -z "$ac_cv_prog_CC"; then
3214  ac_ct_CC=$CC
3215  # Extract the first word of "gcc", so it can be a program name with args.
3216set dummy gcc; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test -n "$ac_ct_CC"; then
3223  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_ac_ct_CC="gcc"
3233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243if test -n "$ac_ct_CC"; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245$as_echo "$ac_ct_CC" >&6; }
3246else
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251  if test "x$ac_ct_CC" = x; then
3252    CC=""
3253  else
3254    case $cross_compiling:$ac_tool_warned in
3255yes:)
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258ac_tool_warned=yes ;;
3259esac
3260    CC=$ac_ct_CC
3261  fi
3262else
3263  CC="$ac_cv_prog_CC"
3264fi
3265
3266if test -z "$CC"; then
3267          if test -n "$ac_tool_prefix"; then
3268    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3269set dummy ${ac_tool_prefix}cc; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if ${ac_cv_prog_CC+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  if test -n "$CC"; then
3276  ac_cv_prog_CC="$CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283    for ac_exec_ext in '' $ac_executable_extensions; do
3284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285    ac_cv_prog_CC="${ac_tool_prefix}cc"
3286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287    break 2
3288  fi
3289done
3290  done
3291IFS=$as_save_IFS
3292
3293fi
3294fi
3295CC=$ac_cv_prog_CC
3296if test -n "$CC"; then
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298$as_echo "$CC" >&6; }
3299else
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302fi
3303
3304
3305  fi
3306fi
3307if test -z "$CC"; then
3308  # Extract the first word of "cc", so it can be a program name with args.
3309set dummy cc; ac_word=$2
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311$as_echo_n "checking for $ac_word... " >&6; }
3312if ${ac_cv_prog_CC+:} false; then :
3313  $as_echo_n "(cached) " >&6
3314else
3315  if test -n "$CC"; then
3316  ac_cv_prog_CC="$CC" # Let the user override the test.
3317else
3318  ac_prog_rejected=no
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322  IFS=$as_save_IFS
3323  test -z "$as_dir" && as_dir=.
3324    for ac_exec_ext in '' $ac_executable_extensions; do
3325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3327       ac_prog_rejected=yes
3328       continue
3329     fi
3330    ac_cv_prog_CC="cc"
3331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335  done
3336IFS=$as_save_IFS
3337
3338if test $ac_prog_rejected = yes; then
3339  # We found a bogon in the path, so make sure we never use it.
3340  set dummy $ac_cv_prog_CC
3341  shift
3342  if test $# != 0; then
3343    # We chose a different compiler from the bogus one.
3344    # However, it has the same basename, so the bogon will be chosen
3345    # first if we set CC to just the basename; use the full file name.
3346    shift
3347    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348  fi
3349fi
3350fi
3351fi
3352CC=$ac_cv_prog_CC
3353if test -n "$CC"; then
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355$as_echo "$CC" >&6; }
3356else
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359fi
3360
3361
3362fi
3363if test -z "$CC"; then
3364  if test -n "$ac_tool_prefix"; then
3365  for ac_prog in cl.exe
3366  do
3367    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370$as_echo_n "checking for $ac_word... " >&6; }
3371if ${ac_cv_prog_CC+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  if test -n "$CC"; then
3375  ac_cv_prog_CC="$CC" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382    for ac_exec_ext in '' $ac_executable_extensions; do
3383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386    break 2
3387  fi
3388done
3389  done
3390IFS=$as_save_IFS
3391
3392fi
3393fi
3394CC=$ac_cv_prog_CC
3395if test -n "$CC"; then
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397$as_echo "$CC" >&6; }
3398else
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400$as_echo "no" >&6; }
3401fi
3402
3403
3404    test -n "$CC" && break
3405  done
3406fi
3407if test -z "$CC"; then
3408  ac_ct_CC=$CC
3409  for ac_prog in cl.exe
3410do
3411  # Extract the first word of "$ac_prog", so it can be a program name with args.
3412set dummy $ac_prog; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if ${ac_cv_prog_ac_ct_CC+:} false; then :
3416  $as_echo_n "(cached) " >&6
3417else
3418  if test -n "$ac_ct_CC"; then
3419  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_ac_ct_CC="$ac_prog"
3429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439if test -n "$ac_ct_CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441$as_echo "$ac_ct_CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448  test -n "$ac_ct_CC" && break
3449done
3450
3451  if test "x$ac_ct_CC" = x; then
3452    CC=""
3453  else
3454    case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458ac_tool_warned=yes ;;
3459esac
3460    CC=$ac_ct_CC
3461  fi
3462fi
3463
3464fi
3465
3466
3467test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469as_fn_error $? "no acceptable C compiler found in \$PATH
3470See \`config.log' for more details" "$LINENO" 5; }
3471
3472# Provide some information about the compiler.
3473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3474set X $ac_compile
3475ac_compiler=$2
3476for ac_option in --version -v -V -qversion; do
3477  { { ac_try="$ac_compiler $ac_option >&5"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3485  ac_status=$?
3486  if test -s conftest.err; then
3487    sed '10a\
3488... rest of stderr output deleted ...
3489         10q' conftest.err >conftest.er1
3490    cat conftest.er1 >&5
3491  fi
3492  rm -f conftest.er1 conftest.err
3493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494  test $ac_status = 0; }
3495done
3496
3497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508ac_clean_files_save=$ac_clean_files
3509ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3510# Try to create an executable without -o first, disregard a.out.
3511# It will help us diagnose broken compilers, and finding out an intuition
3512# of exeext.
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3514$as_echo_n "checking whether the C compiler works... " >&6; }
3515ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516
3517# The possible output files:
3518ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519
3520ac_rmfiles=
3521for ac_file in $ac_files
3522do
3523  case $ac_file in
3524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3526  esac
3527done
3528rm -f $ac_rmfiles
3529
3530if { { ac_try="$ac_link_default"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536$as_echo "$ac_try_echo"; } >&5
3537  (eval "$ac_link_default") 2>&5
3538  ac_status=$?
3539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540  test $ac_status = 0; }; then :
3541  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3542# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3543# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3544# so that the user can short-circuit this test for compilers unknown to
3545# Autoconf.
3546for ac_file in $ac_files ''
3547do
3548  test -f "$ac_file" || continue
3549  case $ac_file in
3550    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551	;;
3552    [ab].out )
3553	# We found the default executable, but exeext='' is most
3554	# certainly right.
3555	break;;
3556    *.* )
3557	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3558	then :; else
3559	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560	fi
3561	# We set ac_cv_exeext here because the later test for it is not
3562	# safe: cross compilers may not add the suffix if given an `-o'
3563	# argument, so we may need to know it at that point already.
3564	# Even if this section looks crufty: it has the advantage of
3565	# actually working.
3566	break;;
3567    * )
3568	break;;
3569  esac
3570done
3571test "$ac_cv_exeext" = no && ac_cv_exeext=
3572
3573else
3574  ac_file=''
3575fi
3576if test -z "$ac_file"; then :
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579$as_echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error 77 "C compiler cannot create executables
3585See \`config.log' for more details" "$LINENO" 5; }
3586else
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588$as_echo "yes" >&6; }
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3591$as_echo_n "checking for C compiler default output file name... " >&6; }
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3593$as_echo "$ac_file" >&6; }
3594ac_exeext=$ac_cv_exeext
3595
3596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3597ac_clean_files=$ac_clean_files_save
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3599$as_echo_n "checking for suffix of executables... " >&6; }
3600if { { ac_try="$ac_link"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607  (eval "$ac_link") 2>&5
3608  ac_status=$?
3609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610  test $ac_status = 0; }; then :
3611  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3613# work properly (i.e., refer to `conftest.exe'), while it won't with
3614# `rm'.
3615for ac_file in conftest.exe conftest conftest.*; do
3616  test -f "$ac_file" || continue
3617  case $ac_file in
3618    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620	  break;;
3621    * ) break;;
3622  esac
3623done
3624else
3625  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3628See \`config.log' for more details" "$LINENO" 5; }
3629fi
3630rm -f conftest conftest$ac_cv_exeext
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3632$as_echo "$ac_cv_exeext" >&6; }
3633
3634rm -f conftest.$ac_ext
3635EXEEXT=$ac_cv_exeext
3636ac_exeext=$EXEEXT
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639#include <stdio.h>
3640int
3641main ()
3642{
3643FILE *f = fopen ("conftest.out", "w");
3644 return ferror (f) || fclose (f) != 0;
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650ac_clean_files="$ac_clean_files conftest.out"
3651# Check that the compiler produces executables we can run.  If not, either
3652# the compiler is broken, or we cross compile.
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3654$as_echo_n "checking whether we are cross compiling... " >&6; }
3655if test "$cross_compiling" != yes; then
3656  { { ac_try="$ac_link"
3657case "(($ac_try" in
3658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659  *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663  (eval "$ac_link") 2>&5
3664  ac_status=$?
3665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666  test $ac_status = 0; }
3667  if { ac_try='./conftest$ac_cv_exeext'
3668  { { case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674  (eval "$ac_try") 2>&5
3675  ac_status=$?
3676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677  test $ac_status = 0; }; }; then
3678    cross_compiling=no
3679  else
3680    if test "$cross_compiling" = maybe; then
3681	cross_compiling=yes
3682    else
3683	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot run C compiled programs.
3686If you meant to cross compile, use \`--host'.
3687See \`config.log' for more details" "$LINENO" 5; }
3688    fi
3689  fi
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3692$as_echo "$cross_compiling" >&6; }
3693
3694rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3695ac_clean_files=$ac_clean_files_save
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3697$as_echo_n "checking for suffix of object files... " >&6; }
3698if ${ac_cv_objext+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712rm -f conftest.o conftest.obj
3713if { { ac_try="$ac_compile"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719$as_echo "$ac_try_echo"; } >&5
3720  (eval "$ac_compile") 2>&5
3721  ac_status=$?
3722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723  test $ac_status = 0; }; then :
3724  for ac_file in conftest.o conftest.obj conftest.*; do
3725  test -f "$ac_file" || continue;
3726  case $ac_file in
3727    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3728    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3729       break;;
3730  esac
3731done
3732else
3733  $as_echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738as_fn_error $? "cannot compute suffix of object files: cannot compile
3739See \`config.log' for more details" "$LINENO" 5; }
3740fi
3741rm -f conftest.$ac_cv_objext conftest.$ac_ext
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3744$as_echo "$ac_cv_objext" >&6; }
3745OBJEXT=$ac_cv_objext
3746ac_objext=$OBJEXT
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3748$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3749if ${ac_cv_c_compiler_gnu+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758#ifndef __GNUC__
3759       choke me
3760#endif
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_c_try_compile "$LINENO"; then :
3767  ac_compiler_gnu=yes
3768else
3769  ac_compiler_gnu=no
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772ac_cv_c_compiler_gnu=$ac_compiler_gnu
3773
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3776$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3777if test $ac_compiler_gnu = yes; then
3778  GCC=yes
3779else
3780  GCC=
3781fi
3782ac_test_CFLAGS=${CFLAGS+set}
3783ac_save_CFLAGS=$CFLAGS
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3785$as_echo_n "checking whether $CC accepts -g... " >&6; }
3786if ${ac_cv_prog_cc_g+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  ac_save_c_werror_flag=$ac_c_werror_flag
3790   ac_c_werror_flag=yes
3791   ac_cv_prog_cc_g=no
3792   CFLAGS="-g"
3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795
3796int
3797main ()
3798{
3799
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804if ac_fn_c_try_compile "$LINENO"; then :
3805  ac_cv_prog_cc_g=yes
3806else
3807  CFLAGS=""
3808      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820
3821else
3822  ac_c_werror_flag=$ac_save_c_werror_flag
3823	 CFLAGS="-g"
3824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827int
3828main ()
3829{
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_compile "$LINENO"; then :
3836  ac_cv_prog_cc_g=yes
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843   ac_c_werror_flag=$ac_save_c_werror_flag
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3846$as_echo "$ac_cv_prog_cc_g" >&6; }
3847if test "$ac_test_CFLAGS" = set; then
3848  CFLAGS=$ac_save_CFLAGS
3849elif test $ac_cv_prog_cc_g = yes; then
3850  if test "$GCC" = yes; then
3851    CFLAGS="-g -O2"
3852  else
3853    CFLAGS="-g"
3854  fi
3855else
3856  if test "$GCC" = yes; then
3857    CFLAGS="-O2"
3858  else
3859    CFLAGS=
3860  fi
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3864if ${ac_cv_prog_cc_c89+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  ac_cv_prog_cc_c89=no
3868ac_save_CC=$CC
3869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871#include <stdarg.h>
3872#include <stdio.h>
3873struct stat;
3874/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3875struct buf { int x; };
3876FILE * (*rcsopen) (struct buf *, struct stat *, int);
3877static char *e (p, i)
3878     char **p;
3879     int i;
3880{
3881  return p[i];
3882}
3883static char *f (char * (*g) (char **, int), char **p, ...)
3884{
3885  char *s;
3886  va_list v;
3887  va_start (v,p);
3888  s = g (p, va_arg (v,int));
3889  va_end (v);
3890  return s;
3891}
3892
3893/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3894   function prototypes and stuff, but not '\xHH' hex character constants.
3895   These don't provoke an error unfortunately, instead are silently treated
3896   as 'x'.  The following induces an error, until -std is added to get
3897   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3898   array size at least.  It's necessary to write '\x00'==0 to get something
3899   that's true only with -std.  */
3900int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901
3902/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3903   inside strings and character constants.  */
3904#define FOO(x) 'x'
3905int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906
3907int test (int i, double x);
3908struct s1 {int (*f) (int a);};
3909struct s2 {int (*f) (double a);};
3910int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911int argc;
3912char **argv;
3913int
3914main ()
3915{
3916return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3922	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923do
3924  CC="$ac_save_CC $ac_arg"
3925  if ac_fn_c_try_compile "$LINENO"; then :
3926  ac_cv_prog_cc_c89=$ac_arg
3927fi
3928rm -f core conftest.err conftest.$ac_objext
3929  test "x$ac_cv_prog_cc_c89" != "xno" && break
3930done
3931rm -f conftest.$ac_ext
3932CC=$ac_save_CC
3933
3934fi
3935# AC_CACHE_VAL
3936case "x$ac_cv_prog_cc_c89" in
3937  x)
3938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3939$as_echo "none needed" >&6; } ;;
3940  xno)
3941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3942$as_echo "unsupported" >&6; } ;;
3943  *)
3944    CC="$CC $ac_cv_prog_cc_c89"
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3946$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3947esac
3948if test "x$ac_cv_prog_cc_c89" != xno; then :
3949
3950fi
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3964$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3965if ${am_cv_prog_cc_c_o+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979  # Make sure it works both with $CC and with simple cc.
3980  # Following AC_PROG_CC_C_O, we do the test twice because some
3981  # compilers refuse to overwrite an existing .o file with -o,
3982  # though they will create one.
3983  am_cv_prog_cc_c_o=yes
3984  for am_i in 1 2; do
3985    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3986   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } \
3990         && test -f conftest2.$ac_objext; then
3991      : OK
3992    else
3993      am_cv_prog_cc_c_o=no
3994      break
3995    fi
3996  done
3997  rm -f core conftest*
3998  unset am_i
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4001$as_echo "$am_cv_prog_cc_c_o" >&6; }
4002if test "$am_cv_prog_cc_c_o" != yes; then
4003   # Losing compiler, so override with the script.
4004   # FIXME: It is wrong to rewrite CC.
4005   # But if we don't then we get into trouble of one sort or another.
4006   # A longer-term fix would be to have automake use am__CC in this case,
4007   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4008   CC="$am_aux_dir/compile $CC"
4009fi
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016DEPDIR="${am__leading_dot}deps"
4017
4018ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021am_make=${MAKE-make}
4022cat > confinc << 'END'
4023am__doit:
4024	@echo this is the am__doit target
4025.PHONY: am__doit
4026END
4027# If we don't find an include directive, just comment out the code.
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029$as_echo_n "checking for style of include used by $am_make... " >&6; }
4030am__include="#"
4031am__quote=
4032_am_result=none
4033# First try GNU make style include.
4034echo "include confinc" > confmf
4035# Ignore all kinds of additional output from 'make'.
4036case `$am_make -s -f confmf 2> /dev/null` in #(
4037*the\ am__doit\ target*)
4038  am__include=include
4039  am__quote=
4040  _am_result=GNU
4041  ;;
4042esac
4043# Now try BSD make style include.
4044if test "$am__include" = "#"; then
4045   echo '.include "confinc"' > confmf
4046   case `$am_make -s -f confmf 2> /dev/null` in #(
4047   *the\ am__doit\ target*)
4048     am__include=.include
4049     am__quote="\""
4050     _am_result=BSD
4051     ;;
4052   esac
4053fi
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057$as_echo "$_am_result" >&6; }
4058rm -f confinc confmf
4059
4060# Check whether --enable-dependency-tracking was given.
4061if test "${enable_dependency_tracking+set}" = set; then :
4062  enableval=$enable_dependency_tracking;
4063fi
4064
4065if test "x$enable_dependency_tracking" != xno; then
4066  am_depcomp="$ac_aux_dir/depcomp"
4067  AMDEPBACKSLASH='\'
4068  am__nodep='_no'
4069fi
4070 if test "x$enable_dependency_tracking" != xno; then
4071  AMDEP_TRUE=
4072  AMDEP_FALSE='#'
4073else
4074  AMDEP_TRUE='#'
4075  AMDEP_FALSE=
4076fi
4077
4078
4079
4080depcc="$CC"   am_compiler_list=
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083$as_echo_n "checking dependency style of $depcc... " >&6; }
4084if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088  # We make a subdir and do the tests there.  Otherwise we can end up
4089  # making bogus files that we don't know about and never remove.  For
4090  # instance it was reported that on HP-UX the gcc test will end up
4091  # making a dummy file named 'D' -- because '-MD' means "put the output
4092  # in D".
4093  rm -rf conftest.dir
4094  mkdir conftest.dir
4095  # Copy depcomp to subdir because otherwise we won't find it if we're
4096  # using a relative directory.
4097  cp "$am_depcomp" conftest.dir
4098  cd conftest.dir
4099  # We will build objects and dependencies in a subdirectory because
4100  # it helps to detect inapplicable dependency modes.  For instance
4101  # both Tru64's cc and ICC support -MD to output dependencies as a
4102  # side effect of compilation, but ICC will put the dependencies in
4103  # the current directory while Tru64 will put them in the object
4104  # directory.
4105  mkdir sub
4106
4107  am_cv_CC_dependencies_compiler_type=none
4108  if test "$am_compiler_list" = ""; then
4109     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110  fi
4111  am__universal=false
4112  case " $depcc " in #(
4113     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114     esac
4115
4116  for depmode in $am_compiler_list; do
4117    # Setup a source with many dependencies, because some compilers
4118    # like to wrap large dependency lists on column 80 (with \), and
4119    # we should not choose a depcomp mode which is confused by this.
4120    #
4121    # We need to recreate these files for each test, as the compiler may
4122    # overwrite some of them when testing with obscure command lines.
4123    # This happens at least with the AIX C compiler.
4124    : > sub/conftest.c
4125    for i in 1 2 3 4 5 6; do
4126      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4128      # Solaris 10 /bin/sh.
4129      echo '/* dummy */' > sub/conftst$i.h
4130    done
4131    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4134    # mode.  It turns out that the SunPro C++ compiler does not properly
4135    # handle '-M -o', and we need to detect this.  Also, some Intel
4136    # versions had trouble with output in subdirs.
4137    am__obj=sub/conftest.${OBJEXT-o}
4138    am__minus_obj="-o $am__obj"
4139    case $depmode in
4140    gcc)
4141      # This depmode causes a compiler race in universal mode.
4142      test "$am__universal" = false || continue
4143      ;;
4144    nosideeffect)
4145      # After this tag, mechanisms are not by side-effect, so they'll
4146      # only be used when explicitly requested.
4147      if test "x$enable_dependency_tracking" = xyes; then
4148	continue
4149      else
4150	break
4151      fi
4152      ;;
4153    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4154      # This compiler won't grok '-c -o', but also, the minuso test has
4155      # not run yet.  These depmodes are late enough in the game, and
4156      # so weak that their functioning should not be impacted.
4157      am__obj=conftest.${OBJEXT-o}
4158      am__minus_obj=
4159      ;;
4160    none) break ;;
4161    esac
4162    if depmode=$depmode \
4163       source=sub/conftest.c object=$am__obj \
4164       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166         >/dev/null 2>conftest.err &&
4167       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171      # icc doesn't choke on unknown options, it will just issue warnings
4172      # or remarks (even with -Werror).  So we grep stderr for any message
4173      # that says an option was ignored or not supported.
4174      # When given -MP, icc 7.0 and 7.1 complain thusly:
4175      #   icc: Command line warning: ignoring option '-M'; no argument required
4176      # The diagnosis changed in icc 8.0:
4177      #   icc: Command line remark: option '-MP' not supported
4178      if (grep 'ignoring option' conftest.err ||
4179          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180        am_cv_CC_dependencies_compiler_type=$depmode
4181        break
4182      fi
4183    fi
4184  done
4185
4186  cd ..
4187  rm -rf conftest.dir
4188else
4189  am_cv_CC_dependencies_compiler_type=none
4190fi
4191
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197 if
4198  test "x$enable_dependency_tracking" != xno \
4199  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200  am__fastdepCC_TRUE=
4201  am__fastdepCC_FALSE='#'
4202else
4203  am__fastdepCC_TRUE='#'
4204  am__fastdepCC_FALSE=
4205fi
4206
4207
4208
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216$as_echo_n "checking how to run the C preprocessor... " >&6; }
4217# On Suns, sometimes $CPP names a directory.
4218if test -n "$CPP" && test -d "$CPP"; then
4219  CPP=
4220fi
4221if test -z "$CPP"; then
4222  if ${ac_cv_prog_CPP+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225      # Double quotes because CPP needs to be expanded
4226    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227    do
4228      ac_preproc_ok=false
4229for ac_c_preproc_warn_flag in '' yes
4230do
4231  # Use a header file that comes with gcc, so configuring glibc
4232  # with a fresh cross-compiler works.
4233  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234  # <limits.h> exists even on freestanding compilers.
4235  # On the NeXT, cc -E runs the code through the compiler's parser,
4236  # not just through cpp. "Syntax error" is here to catch this case.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#ifdef __STDC__
4240# include <limits.h>
4241#else
4242# include <assert.h>
4243#endif
4244		     Syntax error
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247
4248else
4249  # Broken: fails on valid input.
4250continue
4251fi
4252rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254  # OK, works on sane cases.  Now check whether nonexistent headers
4255  # can be detected and how.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <ac_nonexistent.h>
4259_ACEOF
4260if ac_fn_c_try_cpp "$LINENO"; then :
4261  # Broken: success on invalid input.
4262continue
4263else
4264  # Passes both tests.
4265ac_preproc_ok=:
4266break
4267fi
4268rm -f conftest.err conftest.i conftest.$ac_ext
4269
4270done
4271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272rm -f conftest.i conftest.err conftest.$ac_ext
4273if $ac_preproc_ok; then :
4274  break
4275fi
4276
4277    done
4278    ac_cv_prog_CPP=$CPP
4279
4280fi
4281  CPP=$ac_cv_prog_CPP
4282else
4283  ac_cv_prog_CPP=$CPP
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286$as_echo "$CPP" >&6; }
4287ac_preproc_ok=false
4288for ac_c_preproc_warn_flag in '' yes
4289do
4290  # Use a header file that comes with gcc, so configuring glibc
4291  # with a fresh cross-compiler works.
4292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293  # <limits.h> exists even on freestanding compilers.
4294  # On the NeXT, cc -E runs the code through the compiler's parser,
4295  # not just through cpp. "Syntax error" is here to catch this case.
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298#ifdef __STDC__
4299# include <limits.h>
4300#else
4301# include <assert.h>
4302#endif
4303		     Syntax error
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307else
4308  # Broken: fails on valid input.
4309continue
4310fi
4311rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313  # OK, works on sane cases.  Now check whether nonexistent headers
4314  # can be detected and how.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <ac_nonexistent.h>
4318_ACEOF
4319if ac_fn_c_try_cpp "$LINENO"; then :
4320  # Broken: success on invalid input.
4321continue
4322else
4323  # Passes both tests.
4324ac_preproc_ok=:
4325break
4326fi
4327rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329done
4330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331rm -f conftest.i conftest.err conftest.$ac_ext
4332if $ac_preproc_ok; then :
4333
4334else
4335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4338See \`config.log' for more details" "$LINENO" 5; }
4339fi
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4349$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4350if ${ac_cv_path_GREP+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  if test -z "$GREP"; then
4354  ac_path_GREP_found=false
4355  # Loop through the user's path and test for each of PROGNAME-LIST
4356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    for ac_prog in grep ggrep; do
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4364      as_fn_executable_p "$ac_path_GREP" || continue
4365# Check for GNU ac_path_GREP and select it if it is found.
4366  # Check for GNU $ac_path_GREP
4367case `"$ac_path_GREP" --version 2>&1` in
4368*GNU*)
4369  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370*)
4371  ac_count=0
4372  $as_echo_n 0123456789 >"conftest.in"
4373  while :
4374  do
4375    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376    mv "conftest.tmp" "conftest.in"
4377    cp "conftest.in" "conftest.nl"
4378    $as_echo 'GREP' >> "conftest.nl"
4379    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383      # Best one so far, save it but keep looking for a better one
4384      ac_cv_path_GREP="$ac_path_GREP"
4385      ac_path_GREP_max=$ac_count
4386    fi
4387    # 10*(2^10) chars as input seems more than enough
4388    test $ac_count -gt 10 && break
4389  done
4390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391esac
4392
4393      $ac_path_GREP_found && break 3
4394    done
4395  done
4396  done
4397IFS=$as_save_IFS
4398  if test -z "$ac_cv_path_GREP"; then
4399    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400  fi
4401else
4402  ac_cv_path_GREP=$GREP
4403fi
4404
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4407$as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4412$as_echo_n "checking for egrep... " >&6; }
4413if ${ac_cv_path_EGREP+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417   then ac_cv_path_EGREP="$GREP -E"
4418   else
4419     if test -z "$EGREP"; then
4420  ac_path_EGREP_found=false
4421  # Loop through the user's path and test for each of PROGNAME-LIST
4422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427    for ac_prog in egrep; do
4428    for ac_exec_ext in '' $ac_executable_extensions; do
4429      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4430      as_fn_executable_p "$ac_path_EGREP" || continue
4431# Check for GNU ac_path_EGREP and select it if it is found.
4432  # Check for GNU $ac_path_EGREP
4433case `"$ac_path_EGREP" --version 2>&1` in
4434*GNU*)
4435  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436*)
4437  ac_count=0
4438  $as_echo_n 0123456789 >"conftest.in"
4439  while :
4440  do
4441    cat "conftest.in" "conftest.in" >"conftest.tmp"
4442    mv "conftest.tmp" "conftest.in"
4443    cp "conftest.in" "conftest.nl"
4444    $as_echo 'EGREP' >> "conftest.nl"
4445    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447    as_fn_arith $ac_count + 1 && ac_count=$as_val
4448    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449      # Best one so far, save it but keep looking for a better one
4450      ac_cv_path_EGREP="$ac_path_EGREP"
4451      ac_path_EGREP_max=$ac_count
4452    fi
4453    # 10*(2^10) chars as input seems more than enough
4454    test $ac_count -gt 10 && break
4455  done
4456  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457esac
4458
4459      $ac_path_EGREP_found && break 3
4460    done
4461  done
4462  done
4463IFS=$as_save_IFS
4464  if test -z "$ac_cv_path_EGREP"; then
4465    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466  fi
4467else
4468  ac_cv_path_EGREP=$EGREP
4469fi
4470
4471   fi
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4474$as_echo "$ac_cv_path_EGREP" >&6; }
4475 EGREP="$ac_cv_path_EGREP"
4476
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4479$as_echo_n "checking for ANSI C header files... " >&6; }
4480if ${ac_cv_header_stdc+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h.  */
4485#include <stdlib.h>
4486#include <stdarg.h>
4487#include <string.h>
4488#include <float.h>
4489
4490int
4491main ()
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"; then :
4499  ac_cv_header_stdc=yes
4500else
4501  ac_cv_header_stdc=no
4502fi
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504
4505if test $ac_cv_header_stdc = yes; then
4506  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <string.h>
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513  $EGREP "memchr" >/dev/null 2>&1; then :
4514
4515else
4516  ac_cv_header_stdc=no
4517fi
4518rm -f conftest*
4519
4520fi
4521
4522if test $ac_cv_header_stdc = yes; then
4523  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526#include <stdlib.h>
4527
4528_ACEOF
4529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530  $EGREP "free" >/dev/null 2>&1; then :
4531
4532else
4533  ac_cv_header_stdc=no
4534fi
4535rm -f conftest*
4536
4537fi
4538
4539if test $ac_cv_header_stdc = yes; then
4540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4541  if test "$cross_compiling" = yes; then :
4542  :
4543else
4544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546#include <ctype.h>
4547#include <stdlib.h>
4548#if ((' ' & 0x0FF) == 0x020)
4549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4551#else
4552# define ISLOWER(c) \
4553		   (('a' <= (c) && (c) <= 'i') \
4554		     || ('j' <= (c) && (c) <= 'r') \
4555		     || ('s' <= (c) && (c) <= 'z'))
4556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4557#endif
4558
4559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560int
4561main ()
4562{
4563  int i;
4564  for (i = 0; i < 256; i++)
4565    if (XOR (islower (i), ISLOWER (i))
4566	|| toupper (i) != TOUPPER (i))
4567      return 2;
4568  return 0;
4569}
4570_ACEOF
4571if ac_fn_c_try_run "$LINENO"; then :
4572
4573else
4574  ac_cv_header_stdc=no
4575fi
4576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4577  conftest.$ac_objext conftest.beam conftest.$ac_ext
4578fi
4579
4580fi
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4583$as_echo "$ac_cv_header_stdc" >&6; }
4584if test $ac_cv_header_stdc = yes; then
4585
4586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4587
4588fi
4589
4590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4592		  inttypes.h stdint.h unistd.h
4593do :
4594  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4596"
4597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4598  cat >>confdefs.h <<_ACEOF
4599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600_ACEOF
4601
4602fi
4603
4604done
4605
4606
4607
4608  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4609if test "x$ac_cv_header_minix_config_h" = xyes; then :
4610  MINIX=yes
4611else
4612  MINIX=
4613fi
4614
4615
4616  if test "$MINIX" = yes; then
4617
4618$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4619
4620
4621$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4622
4623
4624$as_echo "#define _MINIX 1" >>confdefs.h
4625
4626  fi
4627
4628
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4630$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4631if ${ac_cv_safe_to_define___extensions__+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h.  */
4636
4637#         define __EXTENSIONS__ 1
4638          $ac_includes_default
4639int
4640main ()
4641{
4642
4643  ;
4644  return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648  ac_cv_safe_to_define___extensions__=yes
4649else
4650  ac_cv_safe_to_define___extensions__=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4655$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4656  test $ac_cv_safe_to_define___extensions__ = yes &&
4657    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4658
4659  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4660
4661  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4662
4663  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4664
4665  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4666
4667
4668
4669if test "x$remember_set_CFLAGS" = "x"
4670then
4671  if test "$CFLAGS" = "-g -O2"
4672  then
4673    CFLAGS="-O2"
4674  elif test "$CFLAGS" = "-g"
4675  then
4676    CFLAGS=""
4677  fi
4678fi
4679
4680# This is a new thing required to stop a warning from automake 1.12
4681if test -n "$ac_tool_prefix"; then
4682  for ac_prog in ar lib "link -lib"
4683  do
4684    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
4688if ${ac_cv_prog_AR+:} false; then :
4689  $as_echo_n "(cached) " >&6
4690else
4691  if test -n "$AR"; then
4692  ac_cv_prog_AR="$AR" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_exec_ext in '' $ac_executable_extensions; do
4700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706  done
4707IFS=$as_save_IFS
4708
4709fi
4710fi
4711AR=$ac_cv_prog_AR
4712if test -n "$AR"; then
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4714$as_echo "$AR" >&6; }
4715else
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718fi
4719
4720
4721    test -n "$AR" && break
4722  done
4723fi
4724if test -z "$AR"; then
4725  ac_ct_AR=$AR
4726  for ac_prog in ar lib "link -lib"
4727do
4728  # Extract the first word of "$ac_prog", so it can be a program name with args.
4729set dummy $ac_prog; ac_word=$2
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
4732if ${ac_cv_prog_ac_ct_AR+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  if test -n "$ac_ct_AR"; then
4736  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745    ac_cv_prog_ac_ct_AR="$ac_prog"
4746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750  done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755ac_ct_AR=$ac_cv_prog_ac_ct_AR
4756if test -n "$ac_ct_AR"; then
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4758$as_echo "$ac_ct_AR" >&6; }
4759else
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764
4765  test -n "$ac_ct_AR" && break
4766done
4767
4768  if test "x$ac_ct_AR" = x; then
4769    AR="false"
4770  else
4771    case $cross_compiling:$ac_tool_warned in
4772yes:)
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775ac_tool_warned=yes ;;
4776esac
4777    AR=$ac_ct_AR
4778  fi
4779fi
4780
4781: ${AR=ar}
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4784$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4785if ${am_cv_ar_interface+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794   am_cv_ar_interface=ar
4795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797int some_variable = 0;
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4801      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4802  (eval $am_ar_try) 2>&5
4803  ac_status=$?
4804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805  test $ac_status = 0; }
4806      if test "$ac_status" -eq 0; then
4807        am_cv_ar_interface=ar
4808      else
4809        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4810        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4811  (eval $am_ar_try) 2>&5
4812  ac_status=$?
4813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814  test $ac_status = 0; }
4815        if test "$ac_status" -eq 0; then
4816          am_cv_ar_interface=lib
4817        else
4818          am_cv_ar_interface=unknown
4819        fi
4820      fi
4821      rm -f conftest.lib libconftest.a
4822
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825   ac_ext=c
4826ac_cpp='$CPP $CPPFLAGS'
4827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4833$as_echo "$am_cv_ar_interface" >&6; }
4834
4835case $am_cv_ar_interface in
4836ar)
4837  ;;
4838lib)
4839  # Microsoft lib, so override with the ar-lib wrapper script.
4840  # FIXME: It is wrong to rewrite AR.
4841  # But if we don't then we get into trouble of one sort or another.
4842  # A longer-term fix would be to have automake use am__AR in this case,
4843  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4844  # similar.
4845  AR="$am_aux_dir/ar-lib $AR"
4846  ;;
4847unknown)
4848  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4849  ;;
4850esac
4851
4852
4853# Check for a 64-bit integer type
4854ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4855case $ac_cv_c_int64_t in #(
4856  no|yes) ;; #(
4857  *)
4858
4859cat >>confdefs.h <<_ACEOF
4860#define int64_t $ac_cv_c_int64_t
4861_ACEOF
4862;;
4863esac
4864
4865
4866
4867# Make sure we can run config.sub.
4868$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4869  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4872$as_echo_n "checking build system type... " >&6; }
4873if ${ac_cv_build+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  ac_build_alias=$build_alias
4877test "x$ac_build_alias" = x &&
4878  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4879test "x$ac_build_alias" = x &&
4880  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4881ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4882  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4883
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4886$as_echo "$ac_cv_build" >&6; }
4887case $ac_cv_build in
4888*-*-*) ;;
4889*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4890esac
4891build=$ac_cv_build
4892ac_save_IFS=$IFS; IFS='-'
4893set x $ac_cv_build
4894shift
4895build_cpu=$1
4896build_vendor=$2
4897shift; shift
4898# Remember, the first character of IFS is used to create $*,
4899# except with old shells:
4900build_os=$*
4901IFS=$ac_save_IFS
4902case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4906$as_echo_n "checking host system type... " >&6; }
4907if ${ac_cv_host+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test "x$host_alias" = x; then
4911  ac_cv_host=$ac_cv_build
4912else
4913  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4914    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4915fi
4916
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4919$as_echo "$ac_cv_host" >&6; }
4920case $ac_cv_host in
4921*-*-*) ;;
4922*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4923esac
4924host=$ac_cv_host
4925ac_save_IFS=$IFS; IFS='-'
4926set x $ac_cv_host
4927shift
4928host_cpu=$1
4929host_vendor=$2
4930shift; shift
4931# Remember, the first character of IFS is used to create $*,
4932# except with old shells:
4933host_os=$*
4934IFS=$ac_save_IFS
4935case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4936
4937
4938enable_win32_dll=yes
4939
4940case $host in
4941*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4942  if test -n "$ac_tool_prefix"; then
4943  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4944set dummy ${ac_tool_prefix}as; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_AS+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$AS"; then
4951  ac_cv_prog_AS="$AS" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_AS="${ac_tool_prefix}as"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970AS=$ac_cv_prog_AS
4971if test -n "$AS"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4973$as_echo "$AS" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_AS"; then
4982  ac_ct_AS=$AS
4983  # Extract the first word of "as", so it can be a program name with args.
4984set dummy as; ac_word=$2
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_ac_ct_AS+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  if test -n "$ac_ct_AS"; then
4991  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998    for ac_exec_ext in '' $ac_executable_extensions; do
4999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_ac_ct_AS="as"
5001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005  done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_AS=$ac_cv_prog_ac_ct_AS
5011if test -n "$ac_ct_AS"; then
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5013$as_echo "$ac_ct_AS" >&6; }
5014else
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_AS" = x; then
5020    AS="false"
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026ac_tool_warned=yes ;;
5027esac
5028    AS=$ac_ct_AS
5029  fi
5030else
5031  AS="$ac_cv_prog_AS"
5032fi
5033
5034  if test -n "$ac_tool_prefix"; then
5035  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5036set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if ${ac_cv_prog_DLLTOOL+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  if test -n "$DLLTOOL"; then
5043  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5044else
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054    break 2
5055  fi
5056done
5057  done
5058IFS=$as_save_IFS
5059
5060fi
5061fi
5062DLLTOOL=$ac_cv_prog_DLLTOOL
5063if test -n "$DLLTOOL"; then
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5065$as_echo "$DLLTOOL" >&6; }
5066else
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071
5072fi
5073if test -z "$ac_cv_prog_DLLTOOL"; then
5074  ac_ct_DLLTOOL=$DLLTOOL
5075  # Extract the first word of "dlltool", so it can be a program name with args.
5076set dummy dlltool; ac_word=$2
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
5079if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  if test -n "$ac_ct_DLLTOOL"; then
5083  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088  IFS=$as_save_IFS
5089  test -z "$as_dir" && as_dir=.
5090    for ac_exec_ext in '' $ac_executable_extensions; do
5091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094    break 2
5095  fi
5096done
5097  done
5098IFS=$as_save_IFS
5099
5100fi
5101fi
5102ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5103if test -n "$ac_ct_DLLTOOL"; then
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5105$as_echo "$ac_ct_DLLTOOL" >&6; }
5106else
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110
5111  if test "x$ac_ct_DLLTOOL" = x; then
5112    DLLTOOL="false"
5113  else
5114    case $cross_compiling:$ac_tool_warned in
5115yes:)
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118ac_tool_warned=yes ;;
5119esac
5120    DLLTOOL=$ac_ct_DLLTOOL
5121  fi
5122else
5123  DLLTOOL="$ac_cv_prog_DLLTOOL"
5124fi
5125
5126  if test -n "$ac_tool_prefix"; then
5127  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5128set dummy ${ac_tool_prefix}objdump; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if ${ac_cv_prog_OBJDUMP+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  if test -n "$OBJDUMP"; then
5135  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140  IFS=$as_save_IFS
5141  test -z "$as_dir" && as_dir=.
5142    for ac_exec_ext in '' $ac_executable_extensions; do
5143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146    break 2
5147  fi
5148done
5149  done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154OBJDUMP=$ac_cv_prog_OBJDUMP
5155if test -n "$OBJDUMP"; then
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5157$as_echo "$OBJDUMP" >&6; }
5158else
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
5162
5163
5164fi
5165if test -z "$ac_cv_prog_OBJDUMP"; then
5166  ac_ct_OBJDUMP=$OBJDUMP
5167  # Extract the first word of "objdump", so it can be a program name with args.
5168set dummy objdump; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$ac_ct_OBJDUMP"; then
5175  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5195if test -n "$ac_ct_OBJDUMP"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5197$as_echo "$ac_ct_OBJDUMP" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203  if test "x$ac_ct_OBJDUMP" = x; then
5204    OBJDUMP="false"
5205  else
5206    case $cross_compiling:$ac_tool_warned in
5207yes:)
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210ac_tool_warned=yes ;;
5211esac
5212    OBJDUMP=$ac_ct_OBJDUMP
5213  fi
5214else
5215  OBJDUMP="$ac_cv_prog_OBJDUMP"
5216fi
5217
5218  ;;
5219esac
5220
5221test -z "$AS" && AS=as
5222
5223
5224
5225
5226
5227test -z "$DLLTOOL" && DLLTOOL=dlltool
5228
5229
5230
5231
5232
5233test -z "$OBJDUMP" && OBJDUMP=objdump
5234
5235
5236
5237
5238
5239
5240
5241case `pwd` in
5242  *\ * | *\	*)
5243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5244$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5245esac
5246
5247
5248
5249macro_version='2.4.6.40-6ca5-dirty'
5250macro_revision='2.4.6.40'
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264ltmain=$ac_aux_dir/ltmain.sh
5265
5266# Backslashify metacharacters that are still active within
5267# double-quoted strings.
5268sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5269
5270# Same as above, but do not quote variable references.
5271double_quote_subst='s/\(["`\\]\)/\\\1/g'
5272
5273# Sed substitution to delay expansion of an escaped shell variable in a
5274# double_quote_subst'ed string.
5275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5276
5277# Sed substitution to delay expansion of an escaped single quote.
5278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5279
5280# Sed substitution to avoid accidental globbing in evaled expressions
5281no_glob_subst='s/\*/\\\*/g'
5282
5283ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5284ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5285ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5288$as_echo_n "checking how to print strings... " >&6; }
5289# Test print first, because it will be a builtin if present.
5290if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5291   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5292  ECHO='print -r --'
5293elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5294  ECHO='printf %s\n'
5295else
5296  # Use this function as a fallback that always works.
5297  func_fallback_echo ()
5298  {
5299    eval 'cat <<_LTECHO_EOF
5300$1
5301_LTECHO_EOF'
5302  }
5303  ECHO='func_fallback_echo'
5304fi
5305
5306# func_echo_all arg...
5307# Invoke $ECHO with all args, space-separated.
5308func_echo_all ()
5309{
5310    $ECHO ""
5311}
5312
5313case $ECHO in
5314  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5315$as_echo "printf" >&6; } ;;
5316  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5317$as_echo "print -r" >&6; } ;;
5318  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5319$as_echo "cat" >&6; } ;;
5320esac
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5336$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5337if ${ac_cv_path_SED+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5341     for ac_i in 1 2 3 4 5 6 7; do
5342       ac_script="$ac_script$as_nl$ac_script"
5343     done
5344     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5345     { ac_script=; unset ac_script;}
5346     if test -z "$SED"; then
5347  ac_path_SED_found=false
5348  # Loop through the user's path and test for each of PROGNAME-LIST
5349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354    for ac_prog in sed gsed; do
5355    for ac_exec_ext in '' $ac_executable_extensions; do
5356      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5357      as_fn_executable_p "$ac_path_SED" || continue
5358# Check for GNU ac_path_SED and select it if it is found.
5359  # Check for GNU $ac_path_SED
5360case `"$ac_path_SED" --version 2>&1` in
5361*GNU*)
5362  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5363*)
5364  ac_count=0
5365  $as_echo_n 0123456789 >"conftest.in"
5366  while :
5367  do
5368    cat "conftest.in" "conftest.in" >"conftest.tmp"
5369    mv "conftest.tmp" "conftest.in"
5370    cp "conftest.in" "conftest.nl"
5371    $as_echo '' >> "conftest.nl"
5372    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5374    as_fn_arith $ac_count + 1 && ac_count=$as_val
5375    if test $ac_count -gt ${ac_path_SED_max-0}; then
5376      # Best one so far, save it but keep looking for a better one
5377      ac_cv_path_SED="$ac_path_SED"
5378      ac_path_SED_max=$ac_count
5379    fi
5380    # 10*(2^10) chars as input seems more than enough
5381    test $ac_count -gt 10 && break
5382  done
5383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5384esac
5385
5386      $ac_path_SED_found && break 3
5387    done
5388  done
5389  done
5390IFS=$as_save_IFS
5391  if test -z "$ac_cv_path_SED"; then
5392    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5393  fi
5394else
5395  ac_cv_path_SED=$SED
5396fi
5397
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5400$as_echo "$ac_cv_path_SED" >&6; }
5401 SED="$ac_cv_path_SED"
5402  rm -f conftest.sed
5403
5404test -z "$SED" && SED=sed
5405Xsed="$SED -e 1s/^X//"
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5418$as_echo_n "checking for fgrep... " >&6; }
5419if ${ac_cv_path_FGREP+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5423   then ac_cv_path_FGREP="$GREP -F"
5424   else
5425     if test -z "$FGREP"; then
5426  ac_path_FGREP_found=false
5427  # Loop through the user's path and test for each of PROGNAME-LIST
5428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433    for ac_prog in fgrep; do
5434    for ac_exec_ext in '' $ac_executable_extensions; do
5435      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5436      as_fn_executable_p "$ac_path_FGREP" || continue
5437# Check for GNU ac_path_FGREP and select it if it is found.
5438  # Check for GNU $ac_path_FGREP
5439case `"$ac_path_FGREP" --version 2>&1` in
5440*GNU*)
5441  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5442*)
5443  ac_count=0
5444  $as_echo_n 0123456789 >"conftest.in"
5445  while :
5446  do
5447    cat "conftest.in" "conftest.in" >"conftest.tmp"
5448    mv "conftest.tmp" "conftest.in"
5449    cp "conftest.in" "conftest.nl"
5450    $as_echo 'FGREP' >> "conftest.nl"
5451    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5453    as_fn_arith $ac_count + 1 && ac_count=$as_val
5454    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5455      # Best one so far, save it but keep looking for a better one
5456      ac_cv_path_FGREP="$ac_path_FGREP"
5457      ac_path_FGREP_max=$ac_count
5458    fi
5459    # 10*(2^10) chars as input seems more than enough
5460    test $ac_count -gt 10 && break
5461  done
5462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463esac
5464
5465      $ac_path_FGREP_found && break 3
5466    done
5467  done
5468  done
5469IFS=$as_save_IFS
5470  if test -z "$ac_cv_path_FGREP"; then
5471    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5472  fi
5473else
5474  ac_cv_path_FGREP=$FGREP
5475fi
5476
5477   fi
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5480$as_echo "$ac_cv_path_FGREP" >&6; }
5481 FGREP="$ac_cv_path_FGREP"
5482
5483
5484test -z "$GREP" && GREP=grep
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504# Check whether --with-gnu-ld was given.
5505if test "${with_gnu_ld+set}" = set; then :
5506  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5507else
5508  with_gnu_ld=no
5509fi
5510
5511ac_prog=ld
5512if test yes = "$GCC"; then
5513  # Check if gcc -print-prog-name=ld gives a path.
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5515$as_echo_n "checking for ld used by $CC... " >&6; }
5516  case $host in
5517  *-*-mingw*)
5518    # gcc leaves a trailing carriage return, which upsets mingw
5519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5520  *)
5521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5522  esac
5523  case $ac_prog in
5524    # Accept absolute paths.
5525    [\\/]* | ?:[\\/]*)
5526      re_direlt='/[^/][^/]*/\.\./'
5527      # Canonicalize the pathname of ld
5528      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5529      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5530	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5531      done
5532      test -z "$LD" && LD=$ac_prog
5533      ;;
5534  "")
5535    # If it fails, then pretend we aren't using GCC.
5536    ac_prog=ld
5537    ;;
5538  *)
5539    # If it is relative, then search for the first ld in PATH.
5540    with_gnu_ld=unknown
5541    ;;
5542  esac
5543elif test yes = "$with_gnu_ld"; then
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5545$as_echo_n "checking for GNU ld... " >&6; }
5546else
5547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5548$as_echo_n "checking for non-GNU ld... " >&6; }
5549fi
5550if ${lt_cv_path_LD+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  if test -z "$LD"; then
5554  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5555  for ac_dir in $PATH; do
5556    IFS=$lt_save_ifs
5557    test -z "$ac_dir" && ac_dir=.
5558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5559      lt_cv_path_LD=$ac_dir/$ac_prog
5560      # Check to see if the program is GNU ld.  I'd rather use --version,
5561      # but apparently some variants of GNU ld only accept -v.
5562      # Break only if it was the GNU/non-GNU ld that we prefer.
5563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5564      *GNU* | *'with BFD'*)
5565	test no != "$with_gnu_ld" && break
5566	;;
5567      *)
5568	test yes != "$with_gnu_ld" && break
5569	;;
5570      esac
5571    fi
5572  done
5573  IFS=$lt_save_ifs
5574else
5575  lt_cv_path_LD=$LD # Let the user override the test with a path.
5576fi
5577fi
5578
5579LD=$lt_cv_path_LD
5580if test -n "$LD"; then
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5582$as_echo "$LD" >&6; }
5583else
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5589$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5590if ${lt_cv_prog_gnu_ld+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5594case `$LD -v 2>&1 </dev/null` in
5595*GNU* | *'with BFD'*)
5596  lt_cv_prog_gnu_ld=yes
5597  ;;
5598*)
5599  lt_cv_prog_gnu_ld=no
5600  ;;
5601esac
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5604$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5605with_gnu_ld=$lt_cv_prog_gnu_ld
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5616$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5617if ${lt_cv_path_NM+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$NM"; then
5621  # Let the user override the test.
5622  lt_cv_path_NM=$NM
5623else
5624  lt_nm_to_check=${ac_tool_prefix}nm
5625  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5626    lt_nm_to_check="$lt_nm_to_check nm"
5627  fi
5628  for lt_tmp_nm in $lt_nm_to_check; do
5629    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5630    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5631      IFS=$lt_save_ifs
5632      test -z "$ac_dir" && ac_dir=.
5633      tmp_nm=$ac_dir/$lt_tmp_nm
5634      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5635	# Check to see if the nm accepts a BSD-compat flag.
5636	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5637	#   nm: unknown option "B" ignored
5638	# Tru64's nm complains that /dev/null is an invalid object file
5639	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5640	case $build_os in
5641	mingw*) lt_bad_file=conftest.nm/nofile ;;
5642	*) lt_bad_file=/dev/null ;;
5643	esac
5644	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5645	*$lt_bad_file* | *'Invalid file or object type'*)
5646	  lt_cv_path_NM="$tmp_nm -B"
5647	  break 2
5648	  ;;
5649	*)
5650	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5651	  */dev/null*)
5652	    lt_cv_path_NM="$tmp_nm -p"
5653	    break 2
5654	    ;;
5655	  *)
5656	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5657	    continue # so that we can try to find one that supports BSD flags
5658	    ;;
5659	  esac
5660	  ;;
5661	esac
5662      fi
5663    done
5664    IFS=$lt_save_ifs
5665  done
5666  : ${lt_cv_path_NM=no}
5667fi
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5670$as_echo "$lt_cv_path_NM" >&6; }
5671if test no != "$lt_cv_path_NM"; then
5672  NM=$lt_cv_path_NM
5673else
5674  # Didn't find any BSD compatible name lister, look for dumpbin.
5675  if test -n "$DUMPBIN"; then :
5676    # Let the user override the test.
5677  else
5678    if test -n "$ac_tool_prefix"; then
5679  for ac_prog in dumpbin "link -dump"
5680  do
5681    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if ${ac_cv_prog_DUMPBIN+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  if test -n "$DUMPBIN"; then
5689  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696    for ac_exec_ext in '' $ac_executable_extensions; do
5697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703  done
5704IFS=$as_save_IFS
5705
5706fi
5707fi
5708DUMPBIN=$ac_cv_prog_DUMPBIN
5709if test -n "$DUMPBIN"; then
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5711$as_echo "$DUMPBIN" >&6; }
5712else
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
5715fi
5716
5717
5718    test -n "$DUMPBIN" && break
5719  done
5720fi
5721if test -z "$DUMPBIN"; then
5722  ac_ct_DUMPBIN=$DUMPBIN
5723  for ac_prog in dumpbin "link -dump"
5724do
5725  # Extract the first word of "$ac_prog", so it can be a program name with args.
5726set dummy $ac_prog; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  if test -n "$ac_ct_DUMPBIN"; then
5733  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  test -z "$as_dir" && as_dir=.
5740    for ac_exec_ext in '' $ac_executable_extensions; do
5741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744    break 2
5745  fi
5746done
5747  done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5753if test -n "$ac_ct_DUMPBIN"; then
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5755$as_echo "$ac_ct_DUMPBIN" >&6; }
5756else
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761
5762  test -n "$ac_ct_DUMPBIN" && break
5763done
5764
5765  if test "x$ac_ct_DUMPBIN" = x; then
5766    DUMPBIN=":"
5767  else
5768    case $cross_compiling:$ac_tool_warned in
5769yes:)
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772ac_tool_warned=yes ;;
5773esac
5774    DUMPBIN=$ac_ct_DUMPBIN
5775  fi
5776fi
5777
5778    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5779    *COFF*)
5780      DUMPBIN="$DUMPBIN -symbols -headers"
5781      ;;
5782    *)
5783      DUMPBIN=:
5784      ;;
5785    esac
5786  fi
5787
5788  if test : != "$DUMPBIN"; then
5789    NM=$DUMPBIN
5790  fi
5791fi
5792test -z "$NM" && NM=nm
5793
5794
5795
5796
5797
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5800$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5801if ${lt_cv_nm_interface+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  lt_cv_nm_interface="BSD nm"
5805  echo "int some_variable = 0;" > conftest.$ac_ext
5806  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5807  (eval "$ac_compile" 2>conftest.err)
5808  cat conftest.err >&5
5809  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5810  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5811  cat conftest.err >&5
5812  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5813  cat conftest.out >&5
5814  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5815    lt_cv_nm_interface="MS dumpbin"
5816  fi
5817  rm -f conftest*
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5820$as_echo "$lt_cv_nm_interface" >&6; }
5821
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5823$as_echo_n "checking whether ln -s works... " >&6; }
5824LN_S=$as_ln_s
5825if test "$LN_S" = "ln -s"; then
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5827$as_echo "yes" >&6; }
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5830$as_echo "no, using $LN_S" >&6; }
5831fi
5832
5833# find the maximum length of command line arguments
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5835$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5836if ${lt_cv_sys_max_cmd_len+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839    i=0
5840  teststring=ABCD
5841
5842  case $build_os in
5843  msdosdjgpp*)
5844    # On DJGPP, this test can blow up pretty badly due to problems in libc
5845    # (any single argument exceeding 2000 bytes causes a buffer overrun
5846    # during glob expansion).  Even if it were fixed, the result of this
5847    # check would be larger than it should be.
5848    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5849    ;;
5850
5851  gnu*)
5852    # Under GNU Hurd, this test is not required because there is
5853    # no limit to the length of command line arguments.
5854    # Libtool will interpret -1 as no limit whatsoever
5855    lt_cv_sys_max_cmd_len=-1;
5856    ;;
5857
5858  cygwin* | mingw* | cegcc*)
5859    # On Win9x/ME, this test blows up -- it succeeds, but takes
5860    # about 5 minutes as the teststring grows exponentially.
5861    # Worse, since 9x/ME are not pre-emptively multitasking,
5862    # you end up with a "frozen" computer, even though with patience
5863    # the test eventually succeeds (with a max line length of 256k).
5864    # Instead, let's just punt: use the minimum linelength reported by
5865    # all of the supported platforms: 8192 (on NT/2K/XP).
5866    lt_cv_sys_max_cmd_len=8192;
5867    ;;
5868
5869  mint*)
5870    # On MiNT this can take a long time and run out of memory.
5871    lt_cv_sys_max_cmd_len=8192;
5872    ;;
5873
5874  amigaos*)
5875    # On AmigaOS with pdksh, this test takes hours, literally.
5876    # So we just punt and use a minimum line length of 8192.
5877    lt_cv_sys_max_cmd_len=8192;
5878    ;;
5879
5880  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5881    # This has been around since 386BSD, at least.  Likely further.
5882    if test -x /sbin/sysctl; then
5883      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5884    elif test -x /usr/sbin/sysctl; then
5885      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5886    else
5887      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5888    fi
5889    # And add a safety zone
5890    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5891    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5892    ;;
5893
5894  interix*)
5895    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5896    lt_cv_sys_max_cmd_len=196608
5897    ;;
5898
5899  os2*)
5900    # The test takes a long time on OS/2.
5901    lt_cv_sys_max_cmd_len=8192
5902    ;;
5903
5904  osf*)
5905    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5906    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5907    # nice to cause kernel panics so lets avoid the loop below.
5908    # First set a reasonable default.
5909    lt_cv_sys_max_cmd_len=16384
5910    #
5911    if test -x /sbin/sysconfig; then
5912      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5913        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5914      esac
5915    fi
5916    ;;
5917  sco3.2v5*)
5918    lt_cv_sys_max_cmd_len=102400
5919    ;;
5920  sysv5* | sco5v6* | sysv4.2uw2*)
5921    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5922    if test -n "$kargmax"; then
5923      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5924    else
5925      lt_cv_sys_max_cmd_len=32768
5926    fi
5927    ;;
5928  *)
5929    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5930    if test -n "$lt_cv_sys_max_cmd_len" && \
5931       test undefined != "$lt_cv_sys_max_cmd_len"; then
5932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5933      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5934    else
5935      # Make teststring a little bigger before we do anything with it.
5936      # a 1K string should be a reasonable start.
5937      for i in 1 2 3 4 5 6 7 8; do
5938        teststring=$teststring$teststring
5939      done
5940      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5941      # If test is not a shell built-in, we'll probably end up computing a
5942      # maximum length that is only half of the actual maximum length, but
5943      # we can't tell.
5944      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5945	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5946	      test 17 != "$i" # 1/2 MB should be enough
5947      do
5948        i=`expr $i + 1`
5949        teststring=$teststring$teststring
5950      done
5951      # Only check the string length outside the loop.
5952      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5953      teststring=
5954      # Add a significant safety factor because C++ compilers can tack on
5955      # massive amounts of additional arguments before passing them to the
5956      # linker.  It appears as though 1/2 is a usable value.
5957      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5958    fi
5959    ;;
5960  esac
5961
5962fi
5963
5964if test -n "$lt_cv_sys_max_cmd_len"; then
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5966$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5967else
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5969$as_echo "none" >&6; }
5970fi
5971max_cmd_len=$lt_cv_sys_max_cmd_len
5972
5973
5974
5975
5976
5977
5978: ${CP="cp -f"}
5979: ${MV="mv -f"}
5980: ${RM="rm -f"}
5981
5982if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5983  lt_unset=unset
5984else
5985  lt_unset=false
5986fi
5987
5988
5989
5990
5991
5992# test EBCDIC or ASCII
5993case `echo X|tr X '\101'` in
5994 A) # ASCII based system
5995    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5996  lt_SP2NL='tr \040 \012'
5997  lt_NL2SP='tr \015\012 \040\040'
5998  ;;
5999 *) # EBCDIC based system
6000  lt_SP2NL='tr \100 \n'
6001  lt_NL2SP='tr \r\n \100\100'
6002  ;;
6003esac
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6014$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6015if ${lt_cv_to_host_file_cmd+:} false; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018  case $host in
6019  *-*-mingw* )
6020    case $build in
6021      *-*-mingw* ) # actually msys
6022        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6023        ;;
6024      *-*-cygwin* )
6025        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6026        ;;
6027      * ) # otherwise, assume *nix
6028        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6029        ;;
6030    esac
6031    ;;
6032  *-*-cygwin* )
6033    case $build in
6034      *-*-mingw* ) # actually msys
6035        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6036        ;;
6037      *-*-cygwin* )
6038        lt_cv_to_host_file_cmd=func_convert_file_noop
6039        ;;
6040      * ) # otherwise, assume *nix
6041        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6042        ;;
6043    esac
6044    ;;
6045  * ) # unhandled hosts (and "normal" native builds)
6046    lt_cv_to_host_file_cmd=func_convert_file_noop
6047    ;;
6048esac
6049
6050fi
6051
6052to_host_file_cmd=$lt_cv_to_host_file_cmd
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6054$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6055
6056
6057
6058
6059
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6061$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6062if ${lt_cv_to_tool_file_cmd+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  #assume ordinary cross tools, or native build.
6066lt_cv_to_tool_file_cmd=func_convert_file_noop
6067case $host in
6068  *-*-mingw* )
6069    case $build in
6070      *-*-mingw* ) # actually msys
6071        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6072        ;;
6073    esac
6074    ;;
6075esac
6076
6077fi
6078
6079to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6081$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6082
6083
6084
6085
6086
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6088$as_echo_n "checking for $LD option to reload object files... " >&6; }
6089if ${lt_cv_ld_reload_flag+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  lt_cv_ld_reload_flag='-r'
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6095$as_echo "$lt_cv_ld_reload_flag" >&6; }
6096reload_flag=$lt_cv_ld_reload_flag
6097case $reload_flag in
6098"" | " "*) ;;
6099*) reload_flag=" $reload_flag" ;;
6100esac
6101reload_cmds='$LD$reload_flag -o $output$reload_objs'
6102case $host_os in
6103  cygwin* | mingw* | pw32* | cegcc*)
6104    if test yes != "$GCC"; then
6105      reload_cmds=false
6106    fi
6107    ;;
6108  darwin*)
6109    if test yes = "$GCC"; then
6110      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6111    else
6112      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6113    fi
6114    ;;
6115esac
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125if test -n "$ac_tool_prefix"; then
6126  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6127set dummy ${ac_tool_prefix}objdump; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if ${ac_cv_prog_OBJDUMP+:} false; then :
6131  $as_echo_n "(cached) " >&6
6132else
6133  if test -n "$OBJDUMP"; then
6134  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139  IFS=$as_save_IFS
6140  test -z "$as_dir" && as_dir=.
6141    for ac_exec_ext in '' $ac_executable_extensions; do
6142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145    break 2
6146  fi
6147done
6148  done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153OBJDUMP=$ac_cv_prog_OBJDUMP
6154if test -n "$OBJDUMP"; then
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6156$as_echo "$OBJDUMP" >&6; }
6157else
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162
6163fi
6164if test -z "$ac_cv_prog_OBJDUMP"; then
6165  ac_ct_OBJDUMP=$OBJDUMP
6166  # Extract the first word of "objdump", so it can be a program name with args.
6167set dummy objdump; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
6170if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  if test -n "$ac_ct_OBJDUMP"; then
6174  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179  IFS=$as_save_IFS
6180  test -z "$as_dir" && as_dir=.
6181    for ac_exec_ext in '' $ac_executable_extensions; do
6182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185    break 2
6186  fi
6187done
6188  done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6194if test -n "$ac_ct_OBJDUMP"; then
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6196$as_echo "$ac_ct_OBJDUMP" >&6; }
6197else
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202  if test "x$ac_ct_OBJDUMP" = x; then
6203    OBJDUMP="false"
6204  else
6205    case $cross_compiling:$ac_tool_warned in
6206yes:)
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209ac_tool_warned=yes ;;
6210esac
6211    OBJDUMP=$ac_ct_OBJDUMP
6212  fi
6213else
6214  OBJDUMP="$ac_cv_prog_OBJDUMP"
6215fi
6216
6217test -z "$OBJDUMP" && OBJDUMP=objdump
6218
6219
6220
6221
6222
6223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6225$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6226if ${lt_cv_deplibs_check_method+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  lt_cv_file_magic_cmd='$MAGIC_CMD'
6230lt_cv_file_magic_test_file=
6231lt_cv_deplibs_check_method='unknown'
6232# Need to set the preceding variable on all platforms that support
6233# interlibrary dependencies.
6234# 'none' -- dependencies not supported.
6235# 'unknown' -- same as none, but documents that we really don't know.
6236# 'pass_all' -- all dependencies passed with no checks.
6237# 'test_compile' -- check by making test program.
6238# 'file_magic [[regex]]' -- check by looking for files in library path
6239# that responds to the $file_magic_cmd with a given extended regex.
6240# If you have 'file' or equivalent on your system and you're not sure
6241# whether 'pass_all' will *always* work, you probably want this one.
6242
6243case $host_os in
6244aix[4-9]*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248beos*)
6249  lt_cv_deplibs_check_method=pass_all
6250  ;;
6251
6252bsdi[45]*)
6253  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6254  lt_cv_file_magic_cmd='/usr/bin/file -L'
6255  lt_cv_file_magic_test_file=/shlib/libc.so
6256  ;;
6257
6258cygwin*)
6259  # func_win32_libid is a shell function defined in ltmain.sh
6260  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6261  lt_cv_file_magic_cmd='func_win32_libid'
6262  ;;
6263
6264mingw* | pw32*)
6265  # Base MSYS/MinGW do not provide the 'file' command needed by
6266  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6267  # unless we find 'file', for example because we are cross-compiling.
6268  if ( file / ) >/dev/null 2>&1; then
6269    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6270    lt_cv_file_magic_cmd='func_win32_libid'
6271  else
6272    # Keep this pattern in sync with the one in func_win32_libid.
6273    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6274    lt_cv_file_magic_cmd='$OBJDUMP -f'
6275  fi
6276  ;;
6277
6278cegcc*)
6279  # use the weaker test based on 'objdump'. See mingw*.
6280  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6281  lt_cv_file_magic_cmd='$OBJDUMP -f'
6282  ;;
6283
6284darwin* | rhapsody*)
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288freebsd* | dragonfly*)
6289  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6290    case $host_cpu in
6291    i*86 )
6292      # Not sure whether the presence of OpenBSD here was a mistake.
6293      # Let's accept both of them until this is cleared up.
6294      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6295      lt_cv_file_magic_cmd=/usr/bin/file
6296      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6297      ;;
6298    esac
6299  else
6300    lt_cv_deplibs_check_method=pass_all
6301  fi
6302  ;;
6303
6304haiku*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308hpux10.20* | hpux11*)
6309  lt_cv_file_magic_cmd=/usr/bin/file
6310  case $host_cpu in
6311  ia64*)
6312    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6313    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6314    ;;
6315  hppa*64*)
6316    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]'
6317    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6318    ;;
6319  *)
6320    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6321    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6322    ;;
6323  esac
6324  ;;
6325
6326interix[3-9]*)
6327  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6328  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6329  ;;
6330
6331irix5* | irix6* | nonstopux*)
6332  case $LD in
6333  *-32|*"-32 ") libmagic=32-bit;;
6334  *-n32|*"-n32 ") libmagic=N32;;
6335  *-64|*"-64 ") libmagic=64-bit;;
6336  *) libmagic=never-match;;
6337  esac
6338  lt_cv_deplibs_check_method=pass_all
6339  ;;
6340
6341# This must be glibc/ELF.
6342linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6343  lt_cv_deplibs_check_method=pass_all
6344  ;;
6345
6346netbsd*)
6347  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6348    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6349  else
6350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6351  fi
6352  ;;
6353
6354newos6*)
6355  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6356  lt_cv_file_magic_cmd=/usr/bin/file
6357  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6358  ;;
6359
6360*nto* | *qnx*)
6361  lt_cv_deplibs_check_method=pass_all
6362  ;;
6363
6364openbsd* | bitrig*)
6365  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6366    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6367  else
6368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6369  fi
6370  ;;
6371
6372osf3* | osf4* | osf5*)
6373  lt_cv_deplibs_check_method=pass_all
6374  ;;
6375
6376rdos*)
6377  lt_cv_deplibs_check_method=pass_all
6378  ;;
6379
6380solaris*)
6381  lt_cv_deplibs_check_method=pass_all
6382  ;;
6383
6384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6385  lt_cv_deplibs_check_method=pass_all
6386  ;;
6387
6388sysv4 | sysv4.3*)
6389  case $host_vendor in
6390  motorola)
6391    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]'
6392    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6393    ;;
6394  ncr)
6395    lt_cv_deplibs_check_method=pass_all
6396    ;;
6397  sequent)
6398    lt_cv_file_magic_cmd='/bin/file'
6399    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6400    ;;
6401  sni)
6402    lt_cv_file_magic_cmd='/bin/file'
6403    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6404    lt_cv_file_magic_test_file=/lib/libc.so
6405    ;;
6406  siemens)
6407    lt_cv_deplibs_check_method=pass_all
6408    ;;
6409  pc)
6410    lt_cv_deplibs_check_method=pass_all
6411    ;;
6412  esac
6413  ;;
6414
6415tpf*)
6416  lt_cv_deplibs_check_method=pass_all
6417  ;;
6418os2*)
6419  lt_cv_deplibs_check_method=pass_all
6420  ;;
6421esac
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425$as_echo "$lt_cv_deplibs_check_method" >&6; }
6426
6427file_magic_glob=
6428want_nocaseglob=no
6429if test "$build" = "$host"; then
6430  case $host_os in
6431  mingw* | pw32*)
6432    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6433      want_nocaseglob=yes
6434    else
6435      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6436    fi
6437    ;;
6438  esac
6439fi
6440
6441file_magic_cmd=$lt_cv_file_magic_cmd
6442deplibs_check_method=$lt_cv_deplibs_check_method
6443test -z "$deplibs_check_method" && deplibs_check_method=unknown
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_DLLTOOL+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$DLLTOOL"; then
6475  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494DLLTOOL=$ac_cv_prog_DLLTOOL
6495if test -n "$DLLTOOL"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6497$as_echo "$DLLTOOL" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_DLLTOOL"; then
6506  ac_ct_DLLTOOL=$DLLTOOL
6507  # Extract the first word of "dlltool", so it can be a program name with args.
6508set dummy dlltool; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$ac_ct_DLLTOOL"; then
6515  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6535if test -n "$ac_ct_DLLTOOL"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6537$as_echo "$ac_ct_DLLTOOL" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543  if test "x$ac_ct_DLLTOOL" = x; then
6544    DLLTOOL="false"
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    DLLTOOL=$ac_ct_DLLTOOL
6553  fi
6554else
6555  DLLTOOL="$ac_cv_prog_DLLTOOL"
6556fi
6557
6558test -z "$DLLTOOL" && DLLTOOL=dlltool
6559
6560
6561
6562
6563
6564
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6567$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6568if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  lt_cv_sharedlib_from_linklib_cmd='unknown'
6572
6573case $host_os in
6574cygwin* | mingw* | pw32* | cegcc*)
6575  # two different shell functions defined in ltmain.sh;
6576  # decide which one to use based on capabilities of $DLLTOOL
6577  case `$DLLTOOL --help 2>&1` in
6578  *--identify-strict*)
6579    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6580    ;;
6581  *)
6582    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6583    ;;
6584  esac
6585  ;;
6586*)
6587  # fallback: assume linklib IS sharedlib
6588  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6589  ;;
6590esac
6591
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6594$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6595sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6596test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6597
6598
6599
6600
6601
6602
6603
6604if test -n "$ac_tool_prefix"; then
6605  for ac_prog in ar
6606  do
6607    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_prog_AR+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  if test -n "$AR"; then
6615  ac_cv_prog_AR="$AR" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620  IFS=$as_save_IFS
6621  test -z "$as_dir" && as_dir=.
6622    for ac_exec_ext in '' $ac_executable_extensions; do
6623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626    break 2
6627  fi
6628done
6629  done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634AR=$ac_cv_prog_AR
6635if test -n "$AR"; then
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6637$as_echo "$AR" >&6; }
6638else
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644    test -n "$AR" && break
6645  done
6646fi
6647if test -z "$AR"; then
6648  ac_ct_AR=$AR
6649  for ac_prog in ar
6650do
6651  # Extract the first word of "$ac_prog", so it can be a program name with args.
6652set dummy $ac_prog; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_ac_ct_AR+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$ac_ct_AR"; then
6659  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_ac_ct_AR="$ac_prog"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678ac_ct_AR=$ac_cv_prog_ac_ct_AR
6679if test -n "$ac_ct_AR"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6681$as_echo "$ac_ct_AR" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688  test -n "$ac_ct_AR" && break
6689done
6690
6691  if test "x$ac_ct_AR" = x; then
6692    AR="false"
6693  else
6694    case $cross_compiling:$ac_tool_warned in
6695yes:)
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698ac_tool_warned=yes ;;
6699esac
6700    AR=$ac_ct_AR
6701  fi
6702fi
6703
6704: ${AR=ar}
6705
6706
6707
6708
6709
6710
6711# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6712# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6713# higher priority because thats what people were doing historically (setting
6714# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6715# variable obsoleted/removed.
6716
6717test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6718lt_ar_flags=$AR_FLAGS
6719
6720
6721
6722
6723
6724
6725# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6726# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6727
6728
6729
6730
6731
6732
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6734$as_echo_n "checking for archiver @FILE support... " >&6; }
6735if ${lt_cv_ar_at_file+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  lt_cv_ar_at_file=no
6739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741
6742int
6743main ()
6744{
6745
6746  ;
6747  return 0;
6748}
6749_ACEOF
6750if ac_fn_c_try_compile "$LINENO"; then :
6751  echo conftest.$ac_objext > conftest.lst
6752      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6753      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6754  (eval $lt_ar_try) 2>&5
6755  ac_status=$?
6756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757  test $ac_status = 0; }
6758      if test 0 -eq "$ac_status"; then
6759	# Ensure the archiver fails upon bogus file names.
6760	rm -f conftest.$ac_objext libconftest.a
6761	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6762  (eval $lt_ar_try) 2>&5
6763  ac_status=$?
6764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765  test $ac_status = 0; }
6766	if test 0 -ne "$ac_status"; then
6767          lt_cv_ar_at_file=@
6768        fi
6769      fi
6770      rm -f conftest.* libconftest.a
6771
6772fi
6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6777$as_echo "$lt_cv_ar_at_file" >&6; }
6778
6779if test no = "$lt_cv_ar_at_file"; then
6780  archiver_list_spec=
6781else
6782  archiver_list_spec=$lt_cv_ar_at_file
6783fi
6784
6785
6786
6787
6788
6789
6790
6791if test -n "$ac_tool_prefix"; then
6792  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6793set dummy ${ac_tool_prefix}strip; ac_word=$2
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795$as_echo_n "checking for $ac_word... " >&6; }
6796if ${ac_cv_prog_STRIP+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  if test -n "$STRIP"; then
6800  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805  IFS=$as_save_IFS
6806  test -z "$as_dir" && as_dir=.
6807    for ac_exec_ext in '' $ac_executable_extensions; do
6808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811    break 2
6812  fi
6813done
6814  done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819STRIP=$ac_cv_prog_STRIP
6820if test -n "$STRIP"; then
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6822$as_echo "$STRIP" >&6; }
6823else
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825$as_echo "no" >&6; }
6826fi
6827
6828
6829fi
6830if test -z "$ac_cv_prog_STRIP"; then
6831  ac_ct_STRIP=$STRIP
6832  # Extract the first word of "strip", so it can be a program name with args.
6833set dummy strip; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  if test -n "$ac_ct_STRIP"; then
6840  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845  IFS=$as_save_IFS
6846  test -z "$as_dir" && as_dir=.
6847    for ac_exec_ext in '' $ac_executable_extensions; do
6848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849    ac_cv_prog_ac_ct_STRIP="strip"
6850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851    break 2
6852  fi
6853done
6854  done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6860if test -n "$ac_ct_STRIP"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6862$as_echo "$ac_ct_STRIP" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868  if test "x$ac_ct_STRIP" = x; then
6869    STRIP=":"
6870  else
6871    case $cross_compiling:$ac_tool_warned in
6872yes:)
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875ac_tool_warned=yes ;;
6876esac
6877    STRIP=$ac_ct_STRIP
6878  fi
6879else
6880  STRIP="$ac_cv_prog_STRIP"
6881fi
6882
6883test -z "$STRIP" && STRIP=:
6884
6885
6886
6887
6888
6889
6890if test -n "$ac_tool_prefix"; then
6891  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
6895if ${ac_cv_prog_RANLIB+:} false; then :
6896  $as_echo_n "(cached) " >&6
6897else
6898  if test -n "$RANLIB"; then
6899  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906    for ac_exec_ext in '' $ac_executable_extensions; do
6907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913  done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918RANLIB=$ac_cv_prog_RANLIB
6919if test -n "$RANLIB"; then
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6921$as_echo "$RANLIB" >&6; }
6922else
6923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928fi
6929if test -z "$ac_cv_prog_RANLIB"; then
6930  ac_ct_RANLIB=$RANLIB
6931  # Extract the first word of "ranlib", so it can be a program name with args.
6932set dummy ranlib; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  if test -n "$ac_ct_RANLIB"; then
6939  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946    for ac_exec_ext in '' $ac_executable_extensions; do
6947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948    ac_cv_prog_ac_ct_RANLIB="ranlib"
6949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950    break 2
6951  fi
6952done
6953  done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6959if test -n "$ac_ct_RANLIB"; then
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6961$as_echo "$ac_ct_RANLIB" >&6; }
6962else
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967  if test "x$ac_ct_RANLIB" = x; then
6968    RANLIB=":"
6969  else
6970    case $cross_compiling:$ac_tool_warned in
6971yes:)
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974ac_tool_warned=yes ;;
6975esac
6976    RANLIB=$ac_ct_RANLIB
6977  fi
6978else
6979  RANLIB="$ac_cv_prog_RANLIB"
6980fi
6981
6982test -z "$RANLIB" && RANLIB=:
6983
6984
6985
6986
6987
6988
6989# Determine commands to create old-style static archives.
6990old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6991old_postinstall_cmds='chmod 644 $oldlib'
6992old_postuninstall_cmds=
6993
6994if test -n "$RANLIB"; then
6995  case $host_os in
6996  bitrig* | openbsd*)
6997    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6998    ;;
6999  *)
7000    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7001    ;;
7002  esac
7003  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7004fi
7005
7006case $host_os in
7007  darwin*)
7008    lock_old_archive_extraction=yes ;;
7009  *)
7010    lock_old_archive_extraction=no ;;
7011esac
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051# If no C compiler was specified, use CC.
7052LTCC=${LTCC-"$CC"}
7053
7054# If no C compiler flags were specified, use CFLAGS.
7055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056
7057# Allow CC to be a program name with arguments.
7058compiler=$CC
7059
7060
7061# Check for command to grab the raw symbol name followed by C symbol from nm.
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7063$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7064if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067
7068# These are sane defaults that work on at least a few old systems.
7069# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7070
7071# Character class describing NM global symbol codes.
7072symcode='[BCDEGRST]'
7073
7074# Regexp to match symbols that can be accessed directly from C.
7075sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7076
7077# Define system-specific variables.
7078case $host_os in
7079aix*)
7080  symcode='[BCDT]'
7081  ;;
7082cygwin* | mingw* | pw32* | cegcc*)
7083  symcode='[ABCDGISTW]'
7084  ;;
7085hpux*)
7086  if test ia64 = "$host_cpu"; then
7087    symcode='[ABCDEGRST]'
7088  fi
7089  ;;
7090irix* | nonstopux*)
7091  symcode='[BCDEGRST]'
7092  ;;
7093osf*)
7094  symcode='[BCDEGQRST]'
7095  ;;
7096solaris*)
7097  symcode='[BDRT]'
7098  ;;
7099sco3.2v5*)
7100  symcode='[DT]'
7101  ;;
7102sysv4.2uw2*)
7103  symcode='[DT]'
7104  ;;
7105sysv5* | sco5v6* | unixware* | OpenUNIX*)
7106  symcode='[ABDT]'
7107  ;;
7108sysv4)
7109  symcode='[DFNSTU]'
7110  ;;
7111esac
7112
7113# If we're using GNU nm, then use its standard symbol codes.
7114case `$NM -V 2>&1` in
7115*GNU* | *'with BFD'*)
7116  symcode='[ABCDGIRSTW]' ;;
7117esac
7118
7119if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7120  # Gets list of data symbols to import.
7121  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7122  # Adjust the below global symbol transforms to fixup imported variables.
7123  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7124  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7125  lt_c_name_lib_hook="\
7126  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7127  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7128else
7129  # Disable hooks by default.
7130  lt_cv_sys_global_symbol_to_import=
7131  lt_cdecl_hook=
7132  lt_c_name_hook=
7133  lt_c_name_lib_hook=
7134fi
7135
7136# Transform an extracted symbol line into a proper C declaration.
7137# Some systems (esp. on ia64) link data and code symbols differently,
7138# so use this general approach.
7139lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7140$lt_cdecl_hook\
7141" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7142" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7143
7144# Transform an extracted symbol line into symbol name and symbol address
7145lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7146$lt_c_name_hook\
7147" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7148" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7149
7150# Transform an extracted symbol line into symbol name with lib prefix and
7151# symbol address.
7152lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7153$lt_c_name_lib_hook\
7154" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7155" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7156" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7157
7158# Handle CRLF in mingw tool chain
7159opt_cr=
7160case $build_os in
7161mingw*)
7162  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7163  ;;
7164esac
7165
7166# Try without a prefix underscore, then with it.
7167for ac_symprfx in "" "_"; do
7168
7169  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7170  symxfrm="\\1 $ac_symprfx\\2 \\2"
7171
7172  # Write the raw and C identifiers.
7173  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7174    # Fake it for dumpbin and say T for any non-static function,
7175    # D for any global variable and I for any imported variable.
7176    # Also find C++ and __fastcall symbols from MSVC++,
7177    # which start with @ or ?.
7178    lt_cv_sys_global_symbol_pipe="$AWK '"\
7179"     {last_section=section; section=\$ 3};"\
7180"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7181"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7182"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7183"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7184"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7185"     \$ 0!~/External *\|/{next};"\
7186"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7187"     {if(hide[section]) next};"\
7188"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7189"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7190"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7191"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7192"     ' prfx=^$ac_symprfx"
7193  else
7194    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7195  fi
7196  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7197
7198  # Check to see that the pipe works correctly.
7199  pipe_works=no
7200
7201  rm -f conftest*
7202  cat > conftest.$ac_ext <<_LT_EOF
7203#ifdef __cplusplus
7204extern "C" {
7205#endif
7206char nm_test_var;
7207void nm_test_func(void);
7208void nm_test_func(void){}
7209#ifdef __cplusplus
7210}
7211#endif
7212int main(){nm_test_var='a';nm_test_func();return(0);}
7213_LT_EOF
7214
7215  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7216  (eval $ac_compile) 2>&5
7217  ac_status=$?
7218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219  test $ac_status = 0; }; then
7220    # Now try to grab the symbols.
7221    nlist=conftest.nm
7222    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7223  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7224  ac_status=$?
7225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226  test $ac_status = 0; } && test -s "$nlist"; then
7227      # Try sorting and uniquifying the output.
7228      if sort "$nlist" | uniq > "$nlist"T; then
7229	mv -f "$nlist"T "$nlist"
7230      else
7231	rm -f "$nlist"T
7232      fi
7233
7234      # Make sure that we snagged all the symbols we need.
7235      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7236	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7237	  cat <<_LT_EOF > conftest.$ac_ext
7238/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7239#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7240/* DATA imports from DLLs on WIN32 can't be const, because runtime
7241   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7242# define LT_DLSYM_CONST
7243#elif defined __osf__
7244/* This system does not cope well with relocations in const data.  */
7245# define LT_DLSYM_CONST
7246#else
7247# define LT_DLSYM_CONST const
7248#endif
7249
7250#ifdef __cplusplus
7251extern "C" {
7252#endif
7253
7254_LT_EOF
7255	  # Now generate the symbol file.
7256	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7257
7258	  cat <<_LT_EOF >> conftest.$ac_ext
7259
7260/* The mapping between symbol names and symbols.  */
7261LT_DLSYM_CONST struct {
7262  const char *name;
7263  void       *address;
7264}
7265lt__PROGRAM__LTX_preloaded_symbols[] =
7266{
7267  { "@PROGRAM@", (void *) 0 },
7268_LT_EOF
7269	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7270	  cat <<\_LT_EOF >> conftest.$ac_ext
7271  {0, (void *) 0}
7272};
7273
7274/* This works around a problem in FreeBSD linker */
7275#ifdef FREEBSD_WORKAROUND
7276static const void *lt_preloaded_setup() {
7277  return lt__PROGRAM__LTX_preloaded_symbols;
7278}
7279#endif
7280
7281#ifdef __cplusplus
7282}
7283#endif
7284_LT_EOF
7285	  # Now try linking the two files.
7286	  mv conftest.$ac_objext conftstm.$ac_objext
7287	  lt_globsym_save_LIBS=$LIBS
7288	  lt_globsym_save_CFLAGS=$CFLAGS
7289	  LIBS=conftstm.$ac_objext
7290	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7291	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7292  (eval $ac_link) 2>&5
7293  ac_status=$?
7294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7296	    pipe_works=yes
7297	  fi
7298	  LIBS=$lt_globsym_save_LIBS
7299	  CFLAGS=$lt_globsym_save_CFLAGS
7300	else
7301	  echo "cannot find nm_test_func in $nlist" >&5
7302	fi
7303      else
7304	echo "cannot find nm_test_var in $nlist" >&5
7305      fi
7306    else
7307      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7308    fi
7309  else
7310    echo "$progname: failed program was:" >&5
7311    cat conftest.$ac_ext >&5
7312  fi
7313  rm -rf conftest* conftst*
7314
7315  # Do not use the global_symbol_pipe unless it works.
7316  if test yes = "$pipe_works"; then
7317    break
7318  else
7319    lt_cv_sys_global_symbol_pipe=
7320  fi
7321done
7322
7323fi
7324
7325if test -z "$lt_cv_sys_global_symbol_pipe"; then
7326  lt_cv_sys_global_symbol_to_cdecl=
7327fi
7328if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7330$as_echo "failed" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7333$as_echo "ok" >&6; }
7334fi
7335
7336# Response file support.
7337if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7338  nm_file_list_spec='@'
7339elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7340  nm_file_list_spec='@'
7341fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7380$as_echo_n "checking for sysroot... " >&6; }
7381
7382# Check whether --with-sysroot was given.
7383if test "${with_sysroot+set}" = set; then :
7384  withval=$with_sysroot;
7385else
7386  with_sysroot=no
7387fi
7388
7389
7390lt_sysroot=
7391case $with_sysroot in #(
7392 yes)
7393   if test yes = "$GCC"; then
7394     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7395   fi
7396   ;; #(
7397 /*)
7398   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7399   ;; #(
7400 no|'')
7401   ;; #(
7402 *)
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7404$as_echo "$with_sysroot" >&6; }
7405   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7406   ;;
7407esac
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7410$as_echo "${lt_sysroot:-no}" >&6; }
7411
7412
7413
7414
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7417$as_echo_n "checking for a working dd... " >&6; }
7418if ${ac_cv_path_lt_DD+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  printf 0123456789abcdef0123456789abcdef >conftest.i
7422cat conftest.i conftest.i >conftest2.i
7423: ${lt_DD:=$DD}
7424if test -z "$lt_DD"; then
7425  ac_path_lt_DD_found=false
7426  # Loop through the user's path and test for each of PROGNAME-LIST
7427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_prog in dd; do
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7435      as_fn_executable_p "$ac_path_lt_DD" || continue
7436if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7437  cmp -s conftest.i conftest.out \
7438  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7439fi
7440      $ac_path_lt_DD_found && break 3
7441    done
7442  done
7443  done
7444IFS=$as_save_IFS
7445  if test -z "$ac_cv_path_lt_DD"; then
7446    :
7447  fi
7448else
7449  ac_cv_path_lt_DD=$lt_DD
7450fi
7451
7452rm -f conftest.i conftest2.i conftest.out
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7455$as_echo "$ac_cv_path_lt_DD" >&6; }
7456
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7459$as_echo_n "checking how to truncate binary pipes... " >&6; }
7460if ${lt_cv_truncate_bin+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  printf 0123456789abcdef0123456789abcdef >conftest.i
7464cat conftest.i conftest.i >conftest2.i
7465lt_cv_truncate_bin=
7466if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7467  cmp -s conftest.i conftest.out \
7468  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7469fi
7470rm -f conftest.i conftest2.i conftest.out
7471test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7472fi
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7474$as_echo "$lt_cv_truncate_bin" >&6; }
7475
7476
7477
7478
7479
7480
7481
7482# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7483func_cc_basename ()
7484{
7485    for cc_temp in $*""; do
7486      case $cc_temp in
7487        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7489        \-*) ;;
7490        *) break;;
7491      esac
7492    done
7493    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7494}
7495
7496# Check whether --enable-libtool-lock was given.
7497if test "${enable_libtool_lock+set}" = set; then :
7498  enableval=$enable_libtool_lock;
7499fi
7500
7501test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7502
7503# Some flags need to be propagated to the compiler or linker for good
7504# libtool support.
7505case $host in
7506ia64-*-hpux*)
7507  # Find out what ABI is being produced by ac_compile, and set mode
7508  # options accordingly.
7509  echo 'int i;' > conftest.$ac_ext
7510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511  (eval $ac_compile) 2>&5
7512  ac_status=$?
7513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514  test $ac_status = 0; }; then
7515    case `/usr/bin/file conftest.$ac_objext` in
7516      *ELF-32*)
7517	HPUX_IA64_MODE=32
7518	;;
7519      *ELF-64*)
7520	HPUX_IA64_MODE=64
7521	;;
7522    esac
7523  fi
7524  rm -rf conftest*
7525  ;;
7526*-*-irix6*)
7527  # Find out what ABI is being produced by ac_compile, and set linker
7528  # options accordingly.
7529  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531  (eval $ac_compile) 2>&5
7532  ac_status=$?
7533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534  test $ac_status = 0; }; then
7535    if test yes = "$lt_cv_prog_gnu_ld"; then
7536      case `/usr/bin/file conftest.$ac_objext` in
7537	*32-bit*)
7538	  LD="${LD-ld} -melf32bsmip"
7539	  ;;
7540	*N32*)
7541	  LD="${LD-ld} -melf32bmipn32"
7542	  ;;
7543	*64-bit*)
7544	  LD="${LD-ld} -melf64bmip"
7545	;;
7546      esac
7547    else
7548      case `/usr/bin/file conftest.$ac_objext` in
7549	*32-bit*)
7550	  LD="${LD-ld} -32"
7551	  ;;
7552	*N32*)
7553	  LD="${LD-ld} -n32"
7554	  ;;
7555	*64-bit*)
7556	  LD="${LD-ld} -64"
7557	  ;;
7558      esac
7559    fi
7560  fi
7561  rm -rf conftest*
7562  ;;
7563
7564mips64*-*linux*)
7565  # Find out what ABI is being produced by ac_compile, and set linker
7566  # options accordingly.
7567  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7568  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569  (eval $ac_compile) 2>&5
7570  ac_status=$?
7571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572  test $ac_status = 0; }; then
7573    emul=elf
7574    case `/usr/bin/file conftest.$ac_objext` in
7575      *32-bit*)
7576	emul="${emul}32"
7577	;;
7578      *64-bit*)
7579	emul="${emul}64"
7580	;;
7581    esac
7582    case `/usr/bin/file conftest.$ac_objext` in
7583      *MSB*)
7584	emul="${emul}btsmip"
7585	;;
7586      *LSB*)
7587	emul="${emul}ltsmip"
7588	;;
7589    esac
7590    case `/usr/bin/file conftest.$ac_objext` in
7591      *N32*)
7592	emul="${emul}n32"
7593	;;
7594    esac
7595    LD="${LD-ld} -m $emul"
7596  fi
7597  rm -rf conftest*
7598  ;;
7599
7600x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7601s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7602  # Find out what ABI is being produced by ac_compile, and set linker
7603  # options accordingly.  Note that the listed cases only cover the
7604  # situations where additional linker options are needed (such as when
7605  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7606  # vice versa); the common cases where no linker options are needed do
7607  # not appear in the list.
7608  echo 'int i;' > conftest.$ac_ext
7609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610  (eval $ac_compile) 2>&5
7611  ac_status=$?
7612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613  test $ac_status = 0; }; then
7614    case `/usr/bin/file conftest.o` in
7615      *32-bit*)
7616	case $host in
7617	  x86_64-*kfreebsd*-gnu)
7618	    LD="${LD-ld} -m elf_i386_fbsd"
7619	    ;;
7620	  x86_64-*linux*)
7621	    case `/usr/bin/file conftest.o` in
7622	      *x86-64*)
7623		LD="${LD-ld} -m elf32_x86_64"
7624		;;
7625	      *)
7626		LD="${LD-ld} -m elf_i386"
7627		;;
7628	    esac
7629	    ;;
7630	  powerpc64le-*linux*)
7631	    LD="${LD-ld} -m elf32lppclinux"
7632	    ;;
7633	  powerpc64-*linux*)
7634	    LD="${LD-ld} -m elf32ppclinux"
7635	    ;;
7636	  s390x-*linux*)
7637	    LD="${LD-ld} -m elf_s390"
7638	    ;;
7639	  sparc64-*linux*)
7640	    LD="${LD-ld} -m elf32_sparc"
7641	    ;;
7642	esac
7643	;;
7644      *64-bit*)
7645	case $host in
7646	  x86_64-*kfreebsd*-gnu)
7647	    LD="${LD-ld} -m elf_x86_64_fbsd"
7648	    ;;
7649	  x86_64-*linux*)
7650	    LD="${LD-ld} -m elf_x86_64"
7651	    ;;
7652	  powerpcle-*linux*)
7653	    LD="${LD-ld} -m elf64lppc"
7654	    ;;
7655	  powerpc-*linux*)
7656	    LD="${LD-ld} -m elf64ppc"
7657	    ;;
7658	  s390*-*linux*|s390*-*tpf*)
7659	    LD="${LD-ld} -m elf64_s390"
7660	    ;;
7661	  sparc*-*linux*)
7662	    LD="${LD-ld} -m elf64_sparc"
7663	    ;;
7664	esac
7665	;;
7666    esac
7667  fi
7668  rm -rf conftest*
7669  ;;
7670
7671*-*-sco3.2v5*)
7672  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7673  SAVE_CFLAGS=$CFLAGS
7674  CFLAGS="$CFLAGS -belf"
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7676$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7677if ${lt_cv_cc_needs_belf+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  ac_ext=c
7681ac_cpp='$CPP $CPPFLAGS'
7682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684ac_compiler_gnu=$ac_cv_c_compiler_gnu
7685
7686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688
7689int
7690main ()
7691{
7692
7693  ;
7694  return 0;
7695}
7696_ACEOF
7697if ac_fn_c_try_link "$LINENO"; then :
7698  lt_cv_cc_needs_belf=yes
7699else
7700  lt_cv_cc_needs_belf=no
7701fi
7702rm -f core conftest.err conftest.$ac_objext \
7703    conftest$ac_exeext conftest.$ac_ext
7704     ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710fi
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7712$as_echo "$lt_cv_cc_needs_belf" >&6; }
7713  if test yes != "$lt_cv_cc_needs_belf"; then
7714    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7715    CFLAGS=$SAVE_CFLAGS
7716  fi
7717  ;;
7718*-*solaris*)
7719  # Find out what ABI is being produced by ac_compile, and set linker
7720  # options accordingly.
7721  echo 'int i;' > conftest.$ac_ext
7722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723  (eval $ac_compile) 2>&5
7724  ac_status=$?
7725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726  test $ac_status = 0; }; then
7727    case `/usr/bin/file conftest.o` in
7728    *64-bit*)
7729      case $lt_cv_prog_gnu_ld in
7730      yes*)
7731        case $host in
7732        i?86-*-solaris*|x86_64-*-solaris*)
7733          LD="${LD-ld} -m elf_x86_64"
7734          ;;
7735        sparc*-*-solaris*)
7736          LD="${LD-ld} -m elf64_sparc"
7737          ;;
7738        esac
7739        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7740        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7741          LD=${LD-ld}_sol2
7742        fi
7743        ;;
7744      *)
7745	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7746	  LD="${LD-ld} -64"
7747	fi
7748	;;
7749      esac
7750      ;;
7751    esac
7752  fi
7753  rm -rf conftest*
7754  ;;
7755esac
7756
7757need_locks=$enable_libtool_lock
7758
7759if test -n "$ac_tool_prefix"; then
7760  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}mt; ac_word=$2
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7765  $as_echo_n "(cached) " >&6
7766else
7767  if test -n "$MANIFEST_TOOL"; then
7768  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775    for ac_exec_ext in '' $ac_executable_extensions; do
7776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782  done
7783IFS=$as_save_IFS
7784
7785fi
7786fi
7787MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7788if test -n "$MANIFEST_TOOL"; then
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7790$as_echo "$MANIFEST_TOOL" >&6; }
7791else
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796
7797fi
7798if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7799  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7800  # Extract the first word of "mt", so it can be a program name with args.
7801set dummy mt; ac_word=$2
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803$as_echo_n "checking for $ac_word... " >&6; }
7804if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  if test -n "$ac_ct_MANIFEST_TOOL"; then
7808  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7809else
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813  IFS=$as_save_IFS
7814  test -z "$as_dir" && as_dir=.
7815    for ac_exec_ext in '' $ac_executable_extensions; do
7816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819    break 2
7820  fi
7821done
7822  done
7823IFS=$as_save_IFS
7824
7825fi
7826fi
7827ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7828if test -n "$ac_ct_MANIFEST_TOOL"; then
7829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7830$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7831else
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
7834fi
7835
7836  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7837    MANIFEST_TOOL=":"
7838  else
7839    case $cross_compiling:$ac_tool_warned in
7840yes:)
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843ac_tool_warned=yes ;;
7844esac
7845    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7846  fi
7847else
7848  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7849fi
7850
7851test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7853$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7854if ${lt_cv_path_mainfest_tool+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  lt_cv_path_mainfest_tool=no
7858  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7859  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7860  cat conftest.err >&5
7861  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7862    lt_cv_path_mainfest_tool=yes
7863  fi
7864  rm -f conftest*
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7867$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7868if test yes != "$lt_cv_path_mainfest_tool"; then
7869  MANIFEST_TOOL=:
7870fi
7871
7872
7873
7874
7875
7876
7877  case $host_os in
7878    rhapsody* | darwin*)
7879    if test -n "$ac_tool_prefix"; then
7880  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7881set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if ${ac_cv_prog_DSYMUTIL+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  if test -n "$DSYMUTIL"; then
7888  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893  IFS=$as_save_IFS
7894  test -z "$as_dir" && as_dir=.
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902  done
7903IFS=$as_save_IFS
7904
7905fi
7906fi
7907DSYMUTIL=$ac_cv_prog_DSYMUTIL
7908if test -n "$DSYMUTIL"; then
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7910$as_echo "$DSYMUTIL" >&6; }
7911else
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914fi
7915
7916
7917fi
7918if test -z "$ac_cv_prog_DSYMUTIL"; then
7919  ac_ct_DSYMUTIL=$DSYMUTIL
7920  # Extract the first word of "dsymutil", so it can be a program name with args.
7921set dummy dsymutil; ac_word=$2
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923$as_echo_n "checking for $ac_word... " >&6; }
7924if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  if test -n "$ac_ct_DSYMUTIL"; then
7928  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi
7946fi
7947ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7948if test -n "$ac_ct_DSYMUTIL"; then
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7950$as_echo "$ac_ct_DSYMUTIL" >&6; }
7951else
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956  if test "x$ac_ct_DSYMUTIL" = x; then
7957    DSYMUTIL=":"
7958  else
7959    case $cross_compiling:$ac_tool_warned in
7960yes:)
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963ac_tool_warned=yes ;;
7964esac
7965    DSYMUTIL=$ac_ct_DSYMUTIL
7966  fi
7967else
7968  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7969fi
7970
7971    if test -n "$ac_tool_prefix"; then
7972  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if ${ac_cv_prog_NMEDIT+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  if test -n "$NMEDIT"; then
7980  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987    for ac_exec_ext in '' $ac_executable_extensions; do
7988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994  done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999NMEDIT=$ac_cv_prog_NMEDIT
8000if test -n "$NMEDIT"; then
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8002$as_echo "$NMEDIT" >&6; }
8003else
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009fi
8010if test -z "$ac_cv_prog_NMEDIT"; then
8011  ac_ct_NMEDIT=$NMEDIT
8012  # Extract the first word of "nmedit", so it can be a program name with args.
8013set dummy nmedit; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  if test -n "$ac_ct_NMEDIT"; then
8020  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025  IFS=$as_save_IFS
8026  test -z "$as_dir" && as_dir=.
8027    for ac_exec_ext in '' $ac_executable_extensions; do
8028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031    break 2
8032  fi
8033done
8034  done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8040if test -n "$ac_ct_NMEDIT"; then
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8042$as_echo "$ac_ct_NMEDIT" >&6; }
8043else
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048  if test "x$ac_ct_NMEDIT" = x; then
8049    NMEDIT=":"
8050  else
8051    case $cross_compiling:$ac_tool_warned in
8052yes:)
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055ac_tool_warned=yes ;;
8056esac
8057    NMEDIT=$ac_ct_NMEDIT
8058  fi
8059else
8060  NMEDIT="$ac_cv_prog_NMEDIT"
8061fi
8062
8063    if test -n "$ac_tool_prefix"; then
8064  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8065set dummy ${ac_tool_prefix}lipo; ac_word=$2
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067$as_echo_n "checking for $ac_word... " >&6; }
8068if ${ac_cv_prog_LIPO+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  if test -n "$LIPO"; then
8072  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8073else
8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077  IFS=$as_save_IFS
8078  test -z "$as_dir" && as_dir=.
8079    for ac_exec_ext in '' $ac_executable_extensions; do
8080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083    break 2
8084  fi
8085done
8086  done
8087IFS=$as_save_IFS
8088
8089fi
8090fi
8091LIPO=$ac_cv_prog_LIPO
8092if test -n "$LIPO"; then
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8094$as_echo "$LIPO" >&6; }
8095else
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097$as_echo "no" >&6; }
8098fi
8099
8100
8101fi
8102if test -z "$ac_cv_prog_LIPO"; then
8103  ac_ct_LIPO=$LIPO
8104  # Extract the first word of "lipo", so it can be a program name with args.
8105set dummy lipo; ac_word=$2
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107$as_echo_n "checking for $ac_word... " >&6; }
8108if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  if test -n "$ac_ct_LIPO"; then
8112  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  test -z "$as_dir" && as_dir=.
8119    for ac_exec_ext in '' $ac_executable_extensions; do
8120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_ac_ct_LIPO="lipo"
8122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126  done
8127IFS=$as_save_IFS
8128
8129fi
8130fi
8131ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8132if test -n "$ac_ct_LIPO"; then
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8134$as_echo "$ac_ct_LIPO" >&6; }
8135else
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138fi
8139
8140  if test "x$ac_ct_LIPO" = x; then
8141    LIPO=":"
8142  else
8143    case $cross_compiling:$ac_tool_warned in
8144yes:)
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8147ac_tool_warned=yes ;;
8148esac
8149    LIPO=$ac_ct_LIPO
8150  fi
8151else
8152  LIPO="$ac_cv_prog_LIPO"
8153fi
8154
8155    if test -n "$ac_tool_prefix"; then
8156  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8157set dummy ${ac_tool_prefix}otool; ac_word=$2
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
8160if ${ac_cv_prog_OTOOL+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  if test -n "$OTOOL"; then
8164  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169  IFS=$as_save_IFS
8170  test -z "$as_dir" && as_dir=.
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183OTOOL=$ac_cv_prog_OTOOL
8184if test -n "$OTOOL"; then
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8186$as_echo "$OTOOL" >&6; }
8187else
8188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
8190fi
8191
8192
8193fi
8194if test -z "$ac_cv_prog_OTOOL"; then
8195  ac_ct_OTOOL=$OTOOL
8196  # Extract the first word of "otool", so it can be a program name with args.
8197set dummy otool; ac_word=$2
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
8200if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  if test -n "$ac_ct_OTOOL"; then
8204  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209  IFS=$as_save_IFS
8210  test -z "$as_dir" && as_dir=.
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_ac_ct_OTOOL="otool"
8214    $as_echo "$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
8223ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8224if test -n "$ac_ct_OTOOL"; then
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8226$as_echo "$ac_ct_OTOOL" >&6; }
8227else
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
8230fi
8231
8232  if test "x$ac_ct_OTOOL" = x; then
8233    OTOOL=":"
8234  else
8235    case $cross_compiling:$ac_tool_warned in
8236yes:)
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239ac_tool_warned=yes ;;
8240esac
8241    OTOOL=$ac_ct_OTOOL
8242  fi
8243else
8244  OTOOL="$ac_cv_prog_OTOOL"
8245fi
8246
8247    if test -n "$ac_tool_prefix"; then
8248  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8249set dummy ${ac_tool_prefix}otool64; ac_word=$2
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251$as_echo_n "checking for $ac_word... " >&6; }
8252if ${ac_cv_prog_OTOOL64+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  if test -n "$OTOOL64"; then
8256  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8257else
8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261  IFS=$as_save_IFS
8262  test -z "$as_dir" && as_dir=.
8263    for ac_exec_ext in '' $ac_executable_extensions; do
8264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267    break 2
8268  fi
8269done
8270  done
8271IFS=$as_save_IFS
8272
8273fi
8274fi
8275OTOOL64=$ac_cv_prog_OTOOL64
8276if test -n "$OTOOL64"; then
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8278$as_echo "$OTOOL64" >&6; }
8279else
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281$as_echo "no" >&6; }
8282fi
8283
8284
8285fi
8286if test -z "$ac_cv_prog_OTOOL64"; then
8287  ac_ct_OTOOL64=$OTOOL64
8288  # Extract the first word of "otool64", so it can be a program name with args.
8289set dummy otool64; ac_word=$2
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291$as_echo_n "checking for $ac_word... " >&6; }
8292if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  if test -n "$ac_ct_OTOOL64"; then
8296  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8297else
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301  IFS=$as_save_IFS
8302  test -z "$as_dir" && as_dir=.
8303    for ac_exec_ext in '' $ac_executable_extensions; do
8304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305    ac_cv_prog_ac_ct_OTOOL64="otool64"
8306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307    break 2
8308  fi
8309done
8310  done
8311IFS=$as_save_IFS
8312
8313fi
8314fi
8315ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8316if test -n "$ac_ct_OTOOL64"; then
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8318$as_echo "$ac_ct_OTOOL64" >&6; }
8319else
8320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321$as_echo "no" >&6; }
8322fi
8323
8324  if test "x$ac_ct_OTOOL64" = x; then
8325    OTOOL64=":"
8326  else
8327    case $cross_compiling:$ac_tool_warned in
8328yes:)
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8331ac_tool_warned=yes ;;
8332esac
8333    OTOOL64=$ac_ct_OTOOL64
8334  fi
8335else
8336  OTOOL64="$ac_cv_prog_OTOOL64"
8337fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8366$as_echo_n "checking for -single_module linker flag... " >&6; }
8367if ${lt_cv_apple_cc_single_mod+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  lt_cv_apple_cc_single_mod=no
8371      if test -z "$LT_MULTI_MODULE"; then
8372	# By default we will add the -single_module flag. You can override
8373	# by either setting the environment variable LT_MULTI_MODULE
8374	# non-empty at configure time, or by adding -multi_module to the
8375	# link flags.
8376	rm -rf libconftest.dylib*
8377	echo "int foo(void){return 1;}" > conftest.c
8378	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8379-dynamiclib -Wl,-single_module conftest.c" >&5
8380	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8381	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8382        _lt_result=$?
8383	# If there is a non-empty error log, and "single_module"
8384	# appears in it, assume the flag caused a linker warning
8385        if test -s conftest.err && $GREP single_module conftest.err; then
8386	  cat conftest.err >&5
8387	# Otherwise, if the output was created with a 0 exit code from
8388	# the compiler, it worked.
8389	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8390	  lt_cv_apple_cc_single_mod=yes
8391	else
8392	  cat conftest.err >&5
8393	fi
8394	rm -rf libconftest.dylib*
8395	rm -f conftest.*
8396      fi
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8399$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8400
8401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8402$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8403if ${lt_cv_ld_exported_symbols_list+:} false; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  lt_cv_ld_exported_symbols_list=no
8407      save_LDFLAGS=$LDFLAGS
8408      echo "_main" > conftest.sym
8409      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8410      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412
8413int
8414main ()
8415{
8416
8417  ;
8418  return 0;
8419}
8420_ACEOF
8421if ac_fn_c_try_link "$LINENO"; then :
8422  lt_cv_ld_exported_symbols_list=yes
8423else
8424  lt_cv_ld_exported_symbols_list=no
8425fi
8426rm -f core conftest.err conftest.$ac_objext \
8427    conftest$ac_exeext conftest.$ac_ext
8428	LDFLAGS=$save_LDFLAGS
8429
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8432$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8433
8434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8435$as_echo_n "checking for -force_load linker flag... " >&6; }
8436if ${lt_cv_ld_force_load+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_ld_force_load=no
8440      cat > conftest.c << _LT_EOF
8441int forced_loaded() { return 2;}
8442_LT_EOF
8443      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8444      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8445      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8446      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8447      echo "$RANLIB libconftest.a" >&5
8448      $RANLIB libconftest.a 2>&5
8449      cat > conftest.c << _LT_EOF
8450int main() { return 0;}
8451_LT_EOF
8452      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8453      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8454      _lt_result=$?
8455      if test -s conftest.err && $GREP force_load conftest.err; then
8456	cat conftest.err >&5
8457      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8458	lt_cv_ld_force_load=yes
8459      else
8460	cat conftest.err >&5
8461      fi
8462        rm -f conftest.err libconftest.a conftest conftest.c
8463        rm -rf conftest.dSYM
8464
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8467$as_echo "$lt_cv_ld_force_load" >&6; }
8468    case $host_os in
8469    rhapsody* | darwin1.[012])
8470      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8471    darwin1.*)
8472      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8473    darwin*) # darwin 5.x on
8474      # if running on 10.5 or later, the deployment target defaults
8475      # to the OS version, if on x86, and 10.4, the deployment
8476      # target defaults to 10.4. Don't you love it?
8477      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8478	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8479	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8480	10.[012][,.]*)
8481	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8482	10.*)
8483	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8484      esac
8485    ;;
8486  esac
8487    if test yes = "$lt_cv_apple_cc_single_mod"; then
8488      _lt_dar_single_mod='$single_module'
8489    fi
8490    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8491      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8492    else
8493      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8494    fi
8495    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8496      _lt_dsymutil='~$DSYMUTIL $lib || :'
8497    else
8498      _lt_dsymutil=
8499    fi
8500    ;;
8501  esac
8502
8503# func_munge_path_list VARIABLE PATH
8504# -----------------------------------
8505# VARIABLE is name of variable containing _space_ separated list of
8506# directories to be munged by the contents of PATH, which is string
8507# having a format:
8508# "DIR[:DIR]:"
8509#       string "DIR[ DIR]" will be prepended to VARIABLE
8510# ":DIR[:DIR]"
8511#       string "DIR[ DIR]" will be appended to VARIABLE
8512# "DIRP[:DIRP]::[DIRA:]DIRA"
8513#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8514#       "DIRA[ DIRA]" will be appended to VARIABLE
8515# "DIR[:DIR]"
8516#       VARIABLE will be replaced by "DIR[ DIR]"
8517func_munge_path_list ()
8518{
8519    case x$2 in
8520    x)
8521        ;;
8522    *:)
8523        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8524        ;;
8525    x:*)
8526        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8527        ;;
8528    *::*)
8529        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8530        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8531        ;;
8532    *)
8533        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8534        ;;
8535    esac
8536}
8537
8538for ac_header in dlfcn.h
8539do :
8540  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8541"
8542if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8543  cat >>confdefs.h <<_ACEOF
8544#define HAVE_DLFCN_H 1
8545_ACEOF
8546
8547fi
8548
8549done
8550
8551
8552
8553
8554
8555# Set options
8556
8557
8558
8559        enable_dlopen=no
8560
8561
8562
8563            # Check whether --enable-shared was given.
8564if test "${enable_shared+set}" = set; then :
8565  enableval=$enable_shared; p=${PACKAGE-default}
8566    case $enableval in
8567    yes) enable_shared=yes ;;
8568    no) enable_shared=no ;;
8569    *)
8570      enable_shared=no
8571      # Look at the argument we got.  We use all the common list separators.
8572      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8573      for pkg in $enableval; do
8574	IFS=$lt_save_ifs
8575	if test "X$pkg" = "X$p"; then
8576	  enable_shared=yes
8577	fi
8578      done
8579      IFS=$lt_save_ifs
8580      ;;
8581    esac
8582else
8583  enable_shared=yes
8584fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594  # Check whether --enable-static was given.
8595if test "${enable_static+set}" = set; then :
8596  enableval=$enable_static; p=${PACKAGE-default}
8597    case $enableval in
8598    yes) enable_static=yes ;;
8599    no) enable_static=no ;;
8600    *)
8601     enable_static=no
8602      # Look at the argument we got.  We use all the common list separators.
8603      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8604      for pkg in $enableval; do
8605	IFS=$lt_save_ifs
8606	if test "X$pkg" = "X$p"; then
8607	  enable_static=yes
8608	fi
8609      done
8610      IFS=$lt_save_ifs
8611      ;;
8612    esac
8613else
8614  enable_static=yes
8615fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626# Check whether --with-pic was given.
8627if test "${with_pic+set}" = set; then :
8628  withval=$with_pic; lt_p=${PACKAGE-default}
8629    case $withval in
8630    yes|no) pic_mode=$withval ;;
8631    *)
8632      pic_mode=default
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635      for lt_pkg in $withval; do
8636	IFS=$lt_save_ifs
8637	if test "X$lt_pkg" = "X$lt_p"; then
8638	  pic_mode=yes
8639	fi
8640      done
8641      IFS=$lt_save_ifs
8642      ;;
8643    esac
8644else
8645  pic_mode=default
8646fi
8647
8648
8649
8650
8651
8652
8653
8654
8655  # Check whether --enable-fast-install was given.
8656if test "${enable_fast_install+set}" = set; then :
8657  enableval=$enable_fast_install; p=${PACKAGE-default}
8658    case $enableval in
8659    yes) enable_fast_install=yes ;;
8660    no) enable_fast_install=no ;;
8661    *)
8662      enable_fast_install=no
8663      # Look at the argument we got.  We use all the common list separators.
8664      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8665      for pkg in $enableval; do
8666	IFS=$lt_save_ifs
8667	if test "X$pkg" = "X$p"; then
8668	  enable_fast_install=yes
8669	fi
8670      done
8671      IFS=$lt_save_ifs
8672      ;;
8673    esac
8674else
8675  enable_fast_install=yes
8676fi
8677
8678
8679
8680
8681
8682
8683
8684
8685  shared_archive_member_spec=
8686case $host,$enable_shared in
8687power*-*-aix[5-9]*,yes)
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8689$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8690
8691# Check whether --with-aix-soname was given.
8692if test "${with_aix_soname+set}" = set; then :
8693  withval=$with_aix_soname; case $withval in
8694    aix|svr4|both)
8695      ;;
8696    *)
8697      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8698      ;;
8699    esac
8700    lt_cv_with_aix_soname=$with_aix_soname
8701else
8702  if ${lt_cv_with_aix_soname+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  lt_cv_with_aix_soname=aix
8706fi
8707
8708    with_aix_soname=$lt_cv_with_aix_soname
8709fi
8710
8711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8712$as_echo "$with_aix_soname" >&6; }
8713  if test aix != "$with_aix_soname"; then
8714    # For the AIX way of multilib, we name the shared archive member
8715    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8716    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8717    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8718    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8719    if test 64 = "${OBJECT_MODE-32}"; then
8720      shared_archive_member_spec=shr_64
8721    else
8722      shared_archive_member_spec=shr
8723    fi
8724  fi
8725  ;;
8726*)
8727  with_aix_soname=aix
8728  ;;
8729esac
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740# This can be used to rebuild libtool when needed
8741LIBTOOL_DEPS=$ltmain
8742
8743# Always use our own libtool.
8744LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775test -z "$LN_S" && LN_S="ln -s"
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790if test -n "${ZSH_VERSION+set}"; then
8791   setopt NO_GLOB_SUBST
8792fi
8793
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8795$as_echo_n "checking for objdir... " >&6; }
8796if ${lt_cv_objdir+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  rm -f .libs 2>/dev/null
8800mkdir .libs 2>/dev/null
8801if test -d .libs; then
8802  lt_cv_objdir=.libs
8803else
8804  # MS-DOS does not allow filenames that begin with a dot.
8805  lt_cv_objdir=_libs
8806fi
8807rmdir .libs 2>/dev/null
8808fi
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8810$as_echo "$lt_cv_objdir" >&6; }
8811objdir=$lt_cv_objdir
8812
8813
8814
8815
8816
8817cat >>confdefs.h <<_ACEOF
8818#define LT_OBJDIR "$lt_cv_objdir/"
8819_ACEOF
8820
8821
8822
8823
8824case $host_os in
8825aix3*)
8826  # AIX sometimes has problems with the GCC collect2 program.  For some
8827  # reason, if we set the COLLECT_NAMES environment variable, the problems
8828  # vanish in a puff of smoke.
8829  if test set != "${COLLECT_NAMES+set}"; then
8830    COLLECT_NAMES=
8831    export COLLECT_NAMES
8832  fi
8833  ;;
8834esac
8835
8836# Global variables:
8837ofile=libtool
8838can_build_shared=yes
8839
8840# All known linkers require a '.a' archive for static linking (except MSVC,
8841# which needs '.lib').
8842libext=a
8843
8844with_gnu_ld=$lt_cv_prog_gnu_ld
8845
8846old_CC=$CC
8847old_CFLAGS=$CFLAGS
8848
8849# Set sane defaults for various variables
8850test -z "$CC" && CC=cc
8851test -z "$LTCC" && LTCC=$CC
8852test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8853test -z "$LD" && LD=ld
8854test -z "$ac_objext" && ac_objext=o
8855
8856func_cc_basename $compiler
8857cc_basename=$func_cc_basename_result
8858
8859
8860# Only perform the check for file, if the check method requires it
8861test -z "$MAGIC_CMD" && MAGIC_CMD=file
8862case $deplibs_check_method in
8863file_magic*)
8864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8866$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8867if ${lt_cv_path_MAGIC_CMD+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  case $MAGIC_CMD in
8871[\\/*] |  ?:[\\/]*)
8872  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8873  ;;
8874*)
8875  lt_save_MAGIC_CMD=$MAGIC_CMD
8876  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878  for ac_dir in $ac_dummy; do
8879    IFS=$lt_save_ifs
8880    test -z "$ac_dir" && ac_dir=.
8881    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8882      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8883      if test -n "$file_magic_test_file"; then
8884	case $deplibs_check_method in
8885	"file_magic "*)
8886	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8888	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889	    $EGREP "$file_magic_regex" > /dev/null; then
8890	    :
8891	  else
8892	    cat <<_LT_EOF 1>&2
8893
8894*** Warning: the command libtool uses to detect shared libraries,
8895*** $file_magic_cmd, produces output that libtool cannot recognize.
8896*** The result is that libtool may fail to recognize shared libraries
8897*** as such.  This will affect the creation of libtool libraries that
8898*** depend on shared libraries, but programs linked with such libtool
8899*** libraries will work regardless of this problem.  Nevertheless, you
8900*** may want to report the problem to your system manager and/or to
8901*** bug-libtool@gnu.org
8902
8903_LT_EOF
8904	  fi ;;
8905	esac
8906      fi
8907      break
8908    fi
8909  done
8910  IFS=$lt_save_ifs
8911  MAGIC_CMD=$lt_save_MAGIC_CMD
8912  ;;
8913esac
8914fi
8915
8916MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8917if test -n "$MAGIC_CMD"; then
8918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8919$as_echo "$MAGIC_CMD" >&6; }
8920else
8921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
8923fi
8924
8925
8926
8927
8928
8929if test -z "$lt_cv_path_MAGIC_CMD"; then
8930  if test -n "$ac_tool_prefix"; then
8931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8932$as_echo_n "checking for file... " >&6; }
8933if ${lt_cv_path_MAGIC_CMD+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  case $MAGIC_CMD in
8937[\\/*] |  ?:[\\/]*)
8938  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8939  ;;
8940*)
8941  lt_save_MAGIC_CMD=$MAGIC_CMD
8942  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8943  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8944  for ac_dir in $ac_dummy; do
8945    IFS=$lt_save_ifs
8946    test -z "$ac_dir" && ac_dir=.
8947    if test -f "$ac_dir/file"; then
8948      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8949      if test -n "$file_magic_test_file"; then
8950	case $deplibs_check_method in
8951	"file_magic "*)
8952	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8953	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8954	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955	    $EGREP "$file_magic_regex" > /dev/null; then
8956	    :
8957	  else
8958	    cat <<_LT_EOF 1>&2
8959
8960*** Warning: the command libtool uses to detect shared libraries,
8961*** $file_magic_cmd, produces output that libtool cannot recognize.
8962*** The result is that libtool may fail to recognize shared libraries
8963*** as such.  This will affect the creation of libtool libraries that
8964*** depend on shared libraries, but programs linked with such libtool
8965*** libraries will work regardless of this problem.  Nevertheless, you
8966*** may want to report the problem to your system manager and/or to
8967*** bug-libtool@gnu.org
8968
8969_LT_EOF
8970	  fi ;;
8971	esac
8972      fi
8973      break
8974    fi
8975  done
8976  IFS=$lt_save_ifs
8977  MAGIC_CMD=$lt_save_MAGIC_CMD
8978  ;;
8979esac
8980fi
8981
8982MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8983if test -n "$MAGIC_CMD"; then
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8985$as_echo "$MAGIC_CMD" >&6; }
8986else
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991
8992  else
8993    MAGIC_CMD=:
8994  fi
8995fi
8996
8997  fi
8998  ;;
8999esac
9000
9001# Use C for the default configuration in the libtool script
9002
9003lt_save_CC=$CC
9004ac_ext=c
9005ac_cpp='$CPP $CPPFLAGS'
9006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009
9010
9011# Source file extension for C test sources.
9012ac_ext=c
9013
9014# Object file extension for compiled C test sources.
9015objext=o
9016objext=$objext
9017
9018# Code to be used in simple compile tests
9019lt_simple_compile_test_code="int some_variable = 0;"
9020
9021# Code to be used in simple link tests
9022lt_simple_link_test_code='int main(){return(0);}'
9023
9024
9025
9026
9027
9028
9029
9030# If no C compiler was specified, use CC.
9031LTCC=${LTCC-"$CC"}
9032
9033# If no C compiler flags were specified, use CFLAGS.
9034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9035
9036# Allow CC to be a program name with arguments.
9037compiler=$CC
9038
9039# Save the default compiler, since it gets overwritten when the other
9040# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9041compiler_DEFAULT=$CC
9042
9043# save warnings/boilerplate of simple test code
9044ac_outfile=conftest.$ac_objext
9045echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9047_lt_compiler_boilerplate=`cat conftest.err`
9048$RM conftest*
9049
9050ac_outfile=conftest.$ac_objext
9051echo "$lt_simple_link_test_code" >conftest.$ac_ext
9052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9053_lt_linker_boilerplate=`cat conftest.err`
9054$RM -r conftest*
9055
9056
9057## CAVEAT EMPTOR:
9058## There is no encapsulation within the following macros, do not change
9059## the running order or otherwise move them around unless you know exactly
9060## what you are doing...
9061if test -n "$compiler"; then
9062
9063lt_prog_compiler_no_builtin_flag=
9064
9065if test yes = "$GCC"; then
9066  case $cc_basename in
9067  nvcc*)
9068    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9069  *)
9070    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9071  esac
9072
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9074$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9075if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  lt_cv_prog_compiler_rtti_exceptions=no
9079   ac_outfile=conftest.$ac_objext
9080   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9082   # Insert the option either (1) after the last *FLAGS variable, or
9083   # (2) before a word containing "conftest.", or (3) at the end.
9084   # Note that $ac_compile itself does not contain backslashes and begins
9085   # with a dollar sign (not a hyphen), so the echo should work correctly.
9086   # The option is referenced via a variable to avoid confusing sed.
9087   lt_compile=`echo "$ac_compile" | $SED \
9088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090   -e 's:$: $lt_compiler_flag:'`
9091   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092   (eval "$lt_compile" 2>conftest.err)
9093   ac_status=$?
9094   cat conftest.err >&5
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   if (exit $ac_status) && test -s "$ac_outfile"; then
9097     # The compiler can only warn and ignore the option if not recognized
9098     # So say no if there are warnings other than the usual output.
9099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102       lt_cv_prog_compiler_rtti_exceptions=yes
9103     fi
9104   fi
9105   $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9109$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9110
9111if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9112    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9113else
9114    :
9115fi
9116
9117fi
9118
9119
9120
9121
9122
9123
9124  lt_prog_compiler_wl=
9125lt_prog_compiler_pic=
9126lt_prog_compiler_static=
9127
9128
9129  if test yes = "$GCC"; then
9130    lt_prog_compiler_wl='-Wl,'
9131    lt_prog_compiler_static='-static'
9132
9133    case $host_os in
9134      aix*)
9135      # All AIX code is PIC.
9136      if test ia64 = "$host_cpu"; then
9137	# AIX 5 now supports IA64 processor
9138	lt_prog_compiler_static='-Bstatic'
9139      fi
9140      lt_prog_compiler_pic='-fPIC'
9141      ;;
9142
9143    amigaos*)
9144      case $host_cpu in
9145      powerpc)
9146            # see comment about AmigaOS4 .so support
9147            lt_prog_compiler_pic='-fPIC'
9148        ;;
9149      m68k)
9150            # FIXME: we need at least 68020 code to build shared libraries, but
9151            # adding the '-m68020' flag to GCC prevents building anything better,
9152            # like '-m68040'.
9153            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9154        ;;
9155      esac
9156      ;;
9157
9158    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9159      # PIC is the default for these OSes.
9160      ;;
9161
9162    mingw* | cygwin* | pw32* | os2* | cegcc*)
9163      # This hack is so that the source file can tell whether it is being
9164      # built for inclusion in a dll (and should export symbols for example).
9165      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9166      # (--disable-auto-import) libraries
9167      lt_prog_compiler_pic='-DDLL_EXPORT'
9168      case $host_os in
9169      os2*)
9170	lt_prog_compiler_static='$wl-static'
9171	;;
9172      esac
9173      ;;
9174
9175    darwin* | rhapsody*)
9176      # PIC is the default on this platform
9177      # Common symbols not allowed in MH_DYLIB files
9178      lt_prog_compiler_pic='-fno-common'
9179      ;;
9180
9181    haiku*)
9182      # PIC is the default for Haiku.
9183      # The "-static" flag exists, but is broken.
9184      lt_prog_compiler_static=
9185      ;;
9186
9187    hpux*)
9188      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9189      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9190      # sets the default TLS model and affects inlining.
9191      case $host_cpu in
9192      hppa*64*)
9193	# +Z the default
9194	;;
9195      *)
9196	lt_prog_compiler_pic='-fPIC'
9197	;;
9198      esac
9199      ;;
9200
9201    interix[3-9]*)
9202      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9203      # Instead, we relocate shared libraries at runtime.
9204      ;;
9205
9206    msdosdjgpp*)
9207      # Just because we use GCC doesn't mean we suddenly get shared libraries
9208      # on systems that don't support them.
9209      lt_prog_compiler_can_build_shared=no
9210      enable_shared=no
9211      ;;
9212
9213    *nto* | *qnx*)
9214      # QNX uses GNU C++, but need to define -shared option too, otherwise
9215      # it will coredump.
9216      lt_prog_compiler_pic='-fPIC -shared'
9217      ;;
9218
9219    sysv4*MP*)
9220      if test -d /usr/nec; then
9221	lt_prog_compiler_pic=-Kconform_pic
9222      fi
9223      ;;
9224
9225    *)
9226      lt_prog_compiler_pic='-fPIC'
9227      ;;
9228    esac
9229
9230    case $cc_basename in
9231    nvcc*) # Cuda Compiler Driver 2.2
9232      lt_prog_compiler_wl='-Xlinker '
9233      if test -n "$lt_prog_compiler_pic"; then
9234        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9235      fi
9236      ;;
9237    esac
9238  else
9239    # PORTME Check for flag to pass linker flags through the system compiler.
9240    case $host_os in
9241    aix*)
9242      lt_prog_compiler_wl='-Wl,'
9243      if test ia64 = "$host_cpu"; then
9244	# AIX 5 now supports IA64 processor
9245	lt_prog_compiler_static='-Bstatic'
9246      else
9247	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9248      fi
9249      ;;
9250
9251    darwin* | rhapsody*)
9252      # PIC is the default on this platform
9253      # Common symbols not allowed in MH_DYLIB files
9254      lt_prog_compiler_pic='-fno-common'
9255      case $cc_basename in
9256      nagfor*)
9257        # NAG Fortran compiler
9258        lt_prog_compiler_wl='-Wl,-Wl,,'
9259        lt_prog_compiler_pic='-PIC'
9260        lt_prog_compiler_static='-Bstatic'
9261        ;;
9262      esac
9263      ;;
9264
9265    mingw* | cygwin* | pw32* | os2* | cegcc*)
9266      # This hack is so that the source file can tell whether it is being
9267      # built for inclusion in a dll (and should export symbols for example).
9268      lt_prog_compiler_pic='-DDLL_EXPORT'
9269      case $host_os in
9270      os2*)
9271	lt_prog_compiler_static='$wl-static'
9272	;;
9273      esac
9274      ;;
9275
9276    hpux9* | hpux10* | hpux11*)
9277      lt_prog_compiler_wl='-Wl,'
9278      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9279      # not for PA HP-UX.
9280      case $host_cpu in
9281      hppa*64*|ia64*)
9282	# +Z the default
9283	;;
9284      *)
9285	lt_prog_compiler_pic='+Z'
9286	;;
9287      esac
9288      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9289      lt_prog_compiler_static='$wl-a ${wl}archive'
9290      ;;
9291
9292    irix5* | irix6* | nonstopux*)
9293      lt_prog_compiler_wl='-Wl,'
9294      # PIC (with -KPIC) is the default.
9295      lt_prog_compiler_static='-non_shared'
9296      ;;
9297
9298    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9299      case $cc_basename in
9300      # old Intel for x86_64, which still supported -KPIC.
9301      ecc*)
9302	lt_prog_compiler_wl='-Wl,'
9303	lt_prog_compiler_pic='-KPIC'
9304	lt_prog_compiler_static='-static'
9305        ;;
9306      # icc used to be incompatible with GCC.
9307      # ICC 10 doesn't accept -KPIC any more.
9308      icc* | ifort*)
9309	lt_prog_compiler_wl='-Wl,'
9310	lt_prog_compiler_pic='-fPIC'
9311	lt_prog_compiler_static='-static'
9312        ;;
9313      # Lahey Fortran 8.1.
9314      lf95*)
9315	lt_prog_compiler_wl='-Wl,'
9316	lt_prog_compiler_pic='--shared'
9317	lt_prog_compiler_static='--static'
9318	;;
9319      nagfor*)
9320	# NAG Fortran compiler
9321	lt_prog_compiler_wl='-Wl,-Wl,,'
9322	lt_prog_compiler_pic='-PIC'
9323	lt_prog_compiler_static='-Bstatic'
9324	;;
9325      tcc*)
9326	# Fabrice Bellard et al's Tiny C Compiler
9327	lt_prog_compiler_wl='-Wl,'
9328	lt_prog_compiler_pic='-fPIC'
9329	lt_prog_compiler_static='-static'
9330	;;
9331      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9332        # Portland Group compilers (*not* the Pentium gcc compiler,
9333	# which looks to be a dead project)
9334	lt_prog_compiler_wl='-Wl,'
9335	lt_prog_compiler_pic='-fpic'
9336	lt_prog_compiler_static='-Bstatic'
9337        ;;
9338      ccc*)
9339        lt_prog_compiler_wl='-Wl,'
9340        # All Alpha code is PIC.
9341        lt_prog_compiler_static='-non_shared'
9342        ;;
9343      xl* | bgxl* | bgf* | mpixl*)
9344	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9345	lt_prog_compiler_wl='-Wl,'
9346	lt_prog_compiler_pic='-qpic'
9347	lt_prog_compiler_static='-qstaticlink'
9348	;;
9349      *)
9350	case `$CC -V 2>&1 | sed 5q` in
9351	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9352	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9353	  lt_prog_compiler_pic='-KPIC'
9354	  lt_prog_compiler_static='-Bstatic'
9355	  lt_prog_compiler_wl=''
9356	  ;;
9357	*Sun\ F* | *Sun*Fortran*)
9358	  lt_prog_compiler_pic='-KPIC'
9359	  lt_prog_compiler_static='-Bstatic'
9360	  lt_prog_compiler_wl='-Qoption ld '
9361	  ;;
9362	*Sun\ C*)
9363	  # Sun C 5.9
9364	  lt_prog_compiler_pic='-KPIC'
9365	  lt_prog_compiler_static='-Bstatic'
9366	  lt_prog_compiler_wl='-Wl,'
9367	  ;;
9368        *Intel*\ [CF]*Compiler*)
9369	  lt_prog_compiler_wl='-Wl,'
9370	  lt_prog_compiler_pic='-fPIC'
9371	  lt_prog_compiler_static='-static'
9372	  ;;
9373	*Portland\ Group*)
9374	  lt_prog_compiler_wl='-Wl,'
9375	  lt_prog_compiler_pic='-fpic'
9376	  lt_prog_compiler_static='-Bstatic'
9377	  ;;
9378	esac
9379	;;
9380      esac
9381      ;;
9382
9383    newsos6)
9384      lt_prog_compiler_pic='-KPIC'
9385      lt_prog_compiler_static='-Bstatic'
9386      ;;
9387
9388    *nto* | *qnx*)
9389      # QNX uses GNU C++, but need to define -shared option too, otherwise
9390      # it will coredump.
9391      lt_prog_compiler_pic='-fPIC -shared'
9392      ;;
9393
9394    osf3* | osf4* | osf5*)
9395      lt_prog_compiler_wl='-Wl,'
9396      # All OSF/1 code is PIC.
9397      lt_prog_compiler_static='-non_shared'
9398      ;;
9399
9400    rdos*)
9401      lt_prog_compiler_static='-non_shared'
9402      ;;
9403
9404    solaris*)
9405      lt_prog_compiler_pic='-KPIC'
9406      lt_prog_compiler_static='-Bstatic'
9407      case $cc_basename in
9408      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9409	lt_prog_compiler_wl='-Qoption ld ';;
9410      *)
9411	lt_prog_compiler_wl='-Wl,';;
9412      esac
9413      ;;
9414
9415    sunos4*)
9416      lt_prog_compiler_wl='-Qoption ld '
9417      lt_prog_compiler_pic='-PIC'
9418      lt_prog_compiler_static='-Bstatic'
9419      ;;
9420
9421    sysv4 | sysv4.2uw2* | sysv4.3*)
9422      lt_prog_compiler_wl='-Wl,'
9423      lt_prog_compiler_pic='-KPIC'
9424      lt_prog_compiler_static='-Bstatic'
9425      ;;
9426
9427    sysv4*MP*)
9428      if test -d /usr/nec; then
9429	lt_prog_compiler_pic='-Kconform_pic'
9430	lt_prog_compiler_static='-Bstatic'
9431      fi
9432      ;;
9433
9434    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9435      lt_prog_compiler_wl='-Wl,'
9436      lt_prog_compiler_pic='-KPIC'
9437      lt_prog_compiler_static='-Bstatic'
9438      ;;
9439
9440    unicos*)
9441      lt_prog_compiler_wl='-Wl,'
9442      lt_prog_compiler_can_build_shared=no
9443      ;;
9444
9445    uts4*)
9446      lt_prog_compiler_pic='-pic'
9447      lt_prog_compiler_static='-Bstatic'
9448      ;;
9449
9450    *)
9451      lt_prog_compiler_can_build_shared=no
9452      ;;
9453    esac
9454  fi
9455
9456case $host_os in
9457  # For platforms that do not support PIC, -DPIC is meaningless:
9458  *djgpp*)
9459    lt_prog_compiler_pic=
9460    ;;
9461  *)
9462    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9463    ;;
9464esac
9465
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9467$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9468if ${lt_cv_prog_compiler_pic+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9474$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9475lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9476
9477#
9478# Check to make sure the PIC flag actually works.
9479#
9480if test -n "$lt_prog_compiler_pic"; then
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9482$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9483if ${lt_cv_prog_compiler_pic_works+:} false; then :
9484  $as_echo_n "(cached) " >&6
9485else
9486  lt_cv_prog_compiler_pic_works=no
9487   ac_outfile=conftest.$ac_objext
9488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9489   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9490   # Insert the option either (1) after the last *FLAGS variable, or
9491   # (2) before a word containing "conftest.", or (3) at the end.
9492   # Note that $ac_compile itself does not contain backslashes and begins
9493   # with a dollar sign (not a hyphen), so the echo should work correctly.
9494   # The option is referenced via a variable to avoid confusing sed.
9495   lt_compile=`echo "$ac_compile" | $SED \
9496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9498   -e 's:$: $lt_compiler_flag:'`
9499   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9500   (eval "$lt_compile" 2>conftest.err)
9501   ac_status=$?
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   if (exit $ac_status) && test -s "$ac_outfile"; then
9505     # The compiler can only warn and ignore the option if not recognized
9506     # So say no if there are warnings other than the usual output.
9507     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9508     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9510       lt_cv_prog_compiler_pic_works=yes
9511     fi
9512   fi
9513   $RM conftest*
9514
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9517$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9518
9519if test yes = "$lt_cv_prog_compiler_pic_works"; then
9520    case $lt_prog_compiler_pic in
9521     "" | " "*) ;;
9522     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9523     esac
9524else
9525    lt_prog_compiler_pic=
9526     lt_prog_compiler_can_build_shared=no
9527fi
9528
9529fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541#
9542# Check to make sure the static flag actually works.
9543#
9544wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9547if ${lt_cv_prog_compiler_static_works+:} false; then :
9548  $as_echo_n "(cached) " >&6
9549else
9550  lt_cv_prog_compiler_static_works=no
9551   save_LDFLAGS=$LDFLAGS
9552   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9555     # The linker can only warn and ignore the option if not recognized
9556     # So say no if there are warnings
9557     if test -s conftest.err; then
9558       # Append any errors to the config.log.
9559       cat conftest.err 1>&5
9560       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562       if diff conftest.exp conftest.er2 >/dev/null; then
9563         lt_cv_prog_compiler_static_works=yes
9564       fi
9565     else
9566       lt_cv_prog_compiler_static_works=yes
9567     fi
9568   fi
9569   $RM -r conftest*
9570   LDFLAGS=$save_LDFLAGS
9571
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9574$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9575
9576if test yes = "$lt_cv_prog_compiler_static_works"; then
9577    :
9578else
9579    lt_prog_compiler_static=
9580fi
9581
9582
9583
9584
9585
9586
9587
9588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9590if ${lt_cv_prog_compiler_c_o+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  lt_cv_prog_compiler_c_o=no
9594   $RM -r conftest 2>/dev/null
9595   mkdir conftest
9596   cd conftest
9597   mkdir out
9598   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599
9600   lt_compiler_flag="-o out/conftest2.$ac_objext"
9601   # Insert the option either (1) after the last *FLAGS variable, or
9602   # (2) before a word containing "conftest.", or (3) at the end.
9603   # Note that $ac_compile itself does not contain backslashes and begins
9604   # with a dollar sign (not a hyphen), so the echo should work correctly.
9605   lt_compile=`echo "$ac_compile" | $SED \
9606   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9607   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9608   -e 's:$: $lt_compiler_flag:'`
9609   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9610   (eval "$lt_compile" 2>out/conftest.err)
9611   ac_status=$?
9612   cat out/conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9615   then
9616     # The compiler can only warn and ignore the option if not recognized
9617     # So say no if there are warnings
9618     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9619     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9620     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9621       lt_cv_prog_compiler_c_o=yes
9622     fi
9623   fi
9624   chmod u+w . 2>&5
9625   $RM conftest*
9626   # SGI C++ compiler will create directory out/ii_files/ for
9627   # template instantiation
9628   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9629   $RM out/* && rmdir out
9630   cd ..
9631   $RM -r conftest
9632   $RM conftest*
9633
9634fi
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9636$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9637
9638
9639
9640
9641
9642
9643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9645if ${lt_cv_prog_compiler_c_o+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  lt_cv_prog_compiler_c_o=no
9649   $RM -r conftest 2>/dev/null
9650   mkdir conftest
9651   cd conftest
9652   mkdir out
9653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654
9655   lt_compiler_flag="-o out/conftest2.$ac_objext"
9656   # Insert the option either (1) after the last *FLAGS variable, or
9657   # (2) before a word containing "conftest.", or (3) at the end.
9658   # Note that $ac_compile itself does not contain backslashes and begins
9659   # with a dollar sign (not a hyphen), so the echo should work correctly.
9660   lt_compile=`echo "$ac_compile" | $SED \
9661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663   -e 's:$: $lt_compiler_flag:'`
9664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665   (eval "$lt_compile" 2>out/conftest.err)
9666   ac_status=$?
9667   cat out/conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9670   then
9671     # The compiler can only warn and ignore the option if not recognized
9672     # So say no if there are warnings
9673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9674     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9675     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9676       lt_cv_prog_compiler_c_o=yes
9677     fi
9678   fi
9679   chmod u+w . 2>&5
9680   $RM conftest*
9681   # SGI C++ compiler will create directory out/ii_files/ for
9682   # template instantiation
9683   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9684   $RM out/* && rmdir out
9685   cd ..
9686   $RM -r conftest
9687   $RM conftest*
9688
9689fi
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9691$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9692
9693
9694
9695
9696hard_links=nottested
9697if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9698  # do not overwrite the value of need_locks provided by the user
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9700$as_echo_n "checking if we can lock with hard links... " >&6; }
9701  hard_links=yes
9702  $RM conftest*
9703  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9704  touch conftest.a
9705  ln conftest.a conftest.b 2>&5 || hard_links=no
9706  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9708$as_echo "$hard_links" >&6; }
9709  if test no = "$hard_links"; then
9710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9711$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9712    need_locks=warn
9713  fi
9714else
9715  need_locks=no
9716fi
9717
9718
9719
9720
9721
9722
9723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9724$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9725
9726  runpath_var=
9727  allow_undefined_flag=
9728  always_export_symbols=no
9729  archive_cmds=
9730  archive_expsym_cmds=
9731  compiler_needs_object=no
9732  enable_shared_with_static_runtimes=no
9733  export_dynamic_flag_spec=
9734  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9735  hardcode_automatic=no
9736  hardcode_direct=no
9737  hardcode_direct_absolute=no
9738  hardcode_libdir_flag_spec=
9739  hardcode_libdir_separator=
9740  hardcode_minus_L=no
9741  hardcode_shlibpath_var=unsupported
9742  inherit_rpath=no
9743  link_all_deplibs=unknown
9744  module_cmds=
9745  module_expsym_cmds=
9746  old_archive_from_new_cmds=
9747  old_archive_from_expsyms_cmds=
9748  thread_safe_flag_spec=
9749  whole_archive_flag_spec=
9750  # include_expsyms should be a list of space-separated symbols to be *always*
9751  # included in the symbol list
9752  include_expsyms=
9753  # exclude_expsyms can be an extended regexp of symbols to exclude
9754  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9755  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9756  # as well as any symbol that contains 'd'.
9757  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9758  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9759  # platforms (ab)use it in PIC code, but their linkers get confused if
9760  # the symbol is explicitly referenced.  Since portable code cannot
9761  # rely on this symbol name, it's probably fine to never include it in
9762  # preloaded symbol tables.
9763  # Exclude shared library initialization/finalization symbols.
9764  extract_expsyms_cmds=
9765
9766  case $host_os in
9767  cygwin* | mingw* | pw32* | cegcc*)
9768    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9769    # When not using gcc, we currently assume that we are using
9770    # Microsoft Visual C++.
9771    if test yes != "$GCC"; then
9772      with_gnu_ld=no
9773    fi
9774    ;;
9775  interix*)
9776    # we just hope/assume this is gcc and not c89 (= MSVC++)
9777    with_gnu_ld=yes
9778    ;;
9779  openbsd* | bitrig*)
9780    with_gnu_ld=no
9781    ;;
9782  esac
9783
9784  ld_shlibs=yes
9785
9786  # On some targets, GNU ld is compatible enough with the native linker
9787  # that we're better off using the native interface for both.
9788  lt_use_gnu_ld_interface=no
9789  if test yes = "$with_gnu_ld"; then
9790    case $host_os in
9791      aix*)
9792	# The AIX port of GNU ld has always aspired to compatibility
9793	# with the native linker.  However, as the warning in the GNU ld
9794	# block says, versions before 2.19.5* couldn't really create working
9795	# shared libraries, regardless of the interface used.
9796	case `$LD -v 2>&1` in
9797	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9798	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9799	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9800	  *)
9801	    lt_use_gnu_ld_interface=yes
9802	    ;;
9803	esac
9804	;;
9805      *)
9806	lt_use_gnu_ld_interface=yes
9807	;;
9808    esac
9809  fi
9810
9811  if test yes = "$lt_use_gnu_ld_interface"; then
9812    # If archive_cmds runs LD, not CC, wlarc should be empty
9813    wlarc='$wl'
9814
9815    # Set some defaults for GNU ld with shared library support. These
9816    # are reset later if shared libraries are not supported. Putting them
9817    # here allows them to be overridden if necessary.
9818    runpath_var=LD_RUN_PATH
9819    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9820    export_dynamic_flag_spec='$wl--export-dynamic'
9821    # ancient GNU ld didn't support --whole-archive et. al.
9822    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9823      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9824    else
9825      whole_archive_flag_spec=
9826    fi
9827    supports_anon_versioning=no
9828    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9829      *GNU\ gold*) supports_anon_versioning=yes ;;
9830      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9831      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9832      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9833      *\ 2.11.*) ;; # other 2.11 versions
9834      *) supports_anon_versioning=yes ;;
9835    esac
9836
9837    # See if GNU ld supports shared libraries.
9838    case $host_os in
9839    aix[3-9]*)
9840      # On AIX/PPC, the GNU linker is very broken
9841      if test ia64 != "$host_cpu"; then
9842	ld_shlibs=no
9843	cat <<_LT_EOF 1>&2
9844
9845*** Warning: the GNU linker, at least up to release 2.19, is reported
9846*** to be unable to reliably create shared libraries on AIX.
9847*** Therefore, libtool is disabling shared libraries support.  If you
9848*** really care for shared libraries, you may want to install binutils
9849*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9850*** You will then need to restart the configuration process.
9851
9852_LT_EOF
9853      fi
9854      ;;
9855
9856    amigaos*)
9857      case $host_cpu in
9858      powerpc)
9859            # see comment about AmigaOS4 .so support
9860            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9861            archive_expsym_cmds=''
9862        ;;
9863      m68k)
9864            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)'
9865            hardcode_libdir_flag_spec='-L$libdir'
9866            hardcode_minus_L=yes
9867        ;;
9868      esac
9869      ;;
9870
9871    beos*)
9872      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9873	allow_undefined_flag=unsupported
9874	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9875	# support --undefined.  This deserves some investigation.  FIXME
9876	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9877      else
9878	ld_shlibs=no
9879      fi
9880      ;;
9881
9882    cygwin* | mingw* | pw32* | cegcc*)
9883      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9884      # as there is no search path for DLLs.
9885      hardcode_libdir_flag_spec='-L$libdir'
9886      export_dynamic_flag_spec='$wl--export-all-symbols'
9887      allow_undefined_flag=unsupported
9888      always_export_symbols=no
9889      enable_shared_with_static_runtimes=yes
9890      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'
9891      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9892
9893      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9894        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9895	# If the export-symbols file already is a .def file, use it as
9896	# is; otherwise, prepend EXPORTS...
9897	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9898          cp $export_symbols $output_objdir/$soname.def;
9899        else
9900          echo EXPORTS > $output_objdir/$soname.def;
9901          cat $export_symbols >> $output_objdir/$soname.def;
9902        fi~
9903        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9904      else
9905	ld_shlibs=no
9906      fi
9907      ;;
9908
9909    haiku*)
9910      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9911      link_all_deplibs=yes
9912      ;;
9913
9914    os2*)
9915      hardcode_libdir_flag_spec='-L$libdir'
9916      hardcode_minus_L=yes
9917      allow_undefined_flag=unsupported
9918      shrext_cmds=.dll
9919      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9920	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9921	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9922	$ECHO EXPORTS >> $output_objdir/$libname.def~
9923	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9924	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9925	emximp -o $lib $output_objdir/$libname.def'
9926      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9927	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9928	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9929	$ECHO EXPORTS >> $output_objdir/$libname.def~
9930	prefix_cmds="$SED"~
9931	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9932	  prefix_cmds="$prefix_cmds -e 1d";
9933	fi~
9934	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9935	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9936	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9937	emximp -o $lib $output_objdir/$libname.def'
9938      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9939      enable_shared_with_static_runtimes=yes
9940      file_list_spec='@'
9941      ;;
9942
9943    interix[3-9]*)
9944      hardcode_direct=no
9945      hardcode_shlibpath_var=no
9946      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9947      export_dynamic_flag_spec='$wl-E'
9948      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9949      # Instead, shared libraries are loaded at an image base (0x10000000 by
9950      # default) and relocated if they conflict, which is a slow very memory
9951      # consuming and fragmenting process.  To avoid this, we pick a random,
9952      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9953      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9954      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9955      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'
9956      ;;
9957
9958    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9959      tmp_diet=no
9960      if test linux-dietlibc = "$host_os"; then
9961	case $cc_basename in
9962	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9963	esac
9964      fi
9965      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9966	 && test no = "$tmp_diet"
9967      then
9968	tmp_addflag=' $pic_flag'
9969	tmp_sharedflag='-shared'
9970	case $cc_basename,$host_cpu in
9971        pgcc*)				# Portland Group C compiler
9972	  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'
9973	  tmp_addflag=' $pic_flag'
9974	  ;;
9975	pgf77* | pgf90* | pgf95* | pgfortran*)
9976					# Portland Group f77 and f90 compilers
9977	  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'
9978	  tmp_addflag=' $pic_flag -Mnomain' ;;
9979	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9980	  tmp_addflag=' -i_dynamic' ;;
9981	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9982	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9983	ifc* | ifort*)			# Intel Fortran compiler
9984	  tmp_addflag=' -nofor_main' ;;
9985	lf95*)				# Lahey Fortran 8.1
9986	  whole_archive_flag_spec=
9987	  tmp_sharedflag='--shared' ;;
9988        nagfor*)                        # NAGFOR 5.3
9989          tmp_sharedflag='-Wl,-shared' ;;
9990	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9991	  tmp_sharedflag='-qmkshrobj'
9992	  tmp_addflag= ;;
9993	nvcc*)	# Cuda Compiler Driver 2.2
9994	  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'
9995	  compiler_needs_object=yes
9996	  ;;
9997	esac
9998	case `$CC -V 2>&1 | sed 5q` in
9999	*Sun\ C*)			# Sun C 5.9
10000	  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'
10001	  compiler_needs_object=yes
10002	  tmp_sharedflag='-G' ;;
10003	*Sun\ F*)			# Sun Fortran 8.3
10004	  tmp_sharedflag='-G' ;;
10005	esac
10006	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10007
10008        if test yes = "$supports_anon_versioning"; then
10009          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10010            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10011            echo "local: *; };" >> $output_objdir/$libname.ver~
10012            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10013        fi
10014
10015	case $cc_basename in
10016	tcc*)
10017	  export_dynamic_flag_spec='-rdynamic'
10018	  ;;
10019	xlf* | bgf* | bgxlf* | mpixlf*)
10020	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10021	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10022	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10023	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10024	  if test yes = "$supports_anon_versioning"; then
10025	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10026              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10027              echo "local: *; };" >> $output_objdir/$libname.ver~
10028              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10029	  fi
10030	  ;;
10031	esac
10032      else
10033        ld_shlibs=no
10034      fi
10035      ;;
10036
10037    netbsd*)
10038      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10039	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10040	wlarc=
10041      else
10042	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10043	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10044      fi
10045      ;;
10046
10047    solaris*)
10048      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10049	ld_shlibs=no
10050	cat <<_LT_EOF 1>&2
10051
10052*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10053*** create shared libraries on Solaris systems.  Therefore, libtool
10054*** is disabling shared libraries support.  We urge you to upgrade GNU
10055*** binutils to release 2.9.1 or newer.  Another option is to modify
10056*** your PATH or compiler configuration so that the native linker is
10057*** used, and then restart.
10058
10059_LT_EOF
10060      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10062	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10063      else
10064	ld_shlibs=no
10065      fi
10066      ;;
10067
10068    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10069      case `$LD -v 2>&1` in
10070        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10071	ld_shlibs=no
10072	cat <<_LT_EOF 1>&2
10073
10074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10075*** reliably create shared libraries on SCO systems.  Therefore, libtool
10076*** is disabling shared libraries support.  We urge you to upgrade GNU
10077*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10078*** your PATH or compiler configuration so that the native linker is
10079*** used, and then restart.
10080
10081_LT_EOF
10082	;;
10083	*)
10084	  # For security reasons, it is highly recommended that you always
10085	  # use absolute paths for naming shared libraries, and exclude the
10086	  # DT_RUNPATH tag from executables and libraries.  But doing so
10087	  # requires that you compile everything twice, which is a pain.
10088	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10089	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10090	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10091	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10092	  else
10093	    ld_shlibs=no
10094	  fi
10095	;;
10096      esac
10097      ;;
10098
10099    sunos4*)
10100      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10101      wlarc=
10102      hardcode_direct=yes
10103      hardcode_shlibpath_var=no
10104      ;;
10105
10106    *)
10107      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10108	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10110      else
10111	ld_shlibs=no
10112      fi
10113      ;;
10114    esac
10115
10116    if test no = "$ld_shlibs"; then
10117      runpath_var=
10118      hardcode_libdir_flag_spec=
10119      export_dynamic_flag_spec=
10120      whole_archive_flag_spec=
10121    fi
10122  else
10123    # PORTME fill in a description of your system's linker (not GNU ld)
10124    case $host_os in
10125    aix3*)
10126      allow_undefined_flag=unsupported
10127      always_export_symbols=yes
10128      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'
10129      # Note: this linker hardcodes the directories in LIBPATH if there
10130      # are no directories specified by -L.
10131      hardcode_minus_L=yes
10132      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10133	# Neither direct hardcoding nor static linking is supported with a
10134	# broken collect2.
10135	hardcode_direct=unsupported
10136      fi
10137      ;;
10138
10139    aix[4-9]*)
10140      if test ia64 = "$host_cpu"; then
10141	# On IA64, the linker does run time linking by default, so we don't
10142	# have to do anything special.
10143	aix_use_runtimelinking=no
10144	exp_sym_flag='-Bexport'
10145	no_entry_flag=
10146      else
10147	# If we're using GNU nm, then we don't want the "-C" option.
10148	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10149	# Without the "-l" option, or with the "-B" option, AIX nm treats
10150	# weak defined symbols like other global defined symbols, whereas
10151	# GNU nm marks them as "W".
10152	# While the 'weak' keyword is ignored in the Export File, we need
10153	# it in the Import File for the 'aix-soname' feature, so we have
10154	# to replace the "-B" option with "-P" for AIX nm.
10155	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10156	  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'
10157	else
10158	  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'
10159	fi
10160	aix_use_runtimelinking=no
10161
10162	# Test if we are trying to use run time linking or normal
10163	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10164	# have runtime linking enabled, and use it for executables.
10165	# For shared libraries, we enable/disable runtime linking
10166	# depending on the kind of the shared library created -
10167	# when "with_aix_soname,aix_use_runtimelinking" is:
10168	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10169	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10170	#            lib.a           static archive
10171	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10172	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10173	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10174	#            lib.a(lib.so.V) shared, rtl:no
10175	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10176	#            lib.a           static archive
10177	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10178	  for ld_flag in $LDFLAGS; do
10179	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10180	    aix_use_runtimelinking=yes
10181	    break
10182	  fi
10183	  done
10184	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10185	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10186	    # so we don't have lib.a shared libs to link our executables.
10187	    # We have to force runtime linking in this case.
10188	    aix_use_runtimelinking=yes
10189	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10190	  fi
10191	  ;;
10192	esac
10193
10194	exp_sym_flag='-bexport'
10195	no_entry_flag='-bnoentry'
10196      fi
10197
10198      # When large executables or shared objects are built, AIX ld can
10199      # have problems creating the table of contents.  If linking a library
10200      # or program results in "error TOC overflow" add -mminimal-toc to
10201      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10202      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10203
10204      archive_cmds=''
10205      hardcode_direct=yes
10206      hardcode_direct_absolute=yes
10207      hardcode_libdir_separator=':'
10208      link_all_deplibs=yes
10209      file_list_spec='$wl-f,'
10210      case $with_aix_soname,$aix_use_runtimelinking in
10211      aix,*) ;; # traditional, no import file
10212      svr4,* | *,yes) # use import file
10213	# The Import File defines what to hardcode.
10214	hardcode_direct=no
10215	hardcode_direct_absolute=no
10216	;;
10217      esac
10218
10219      if test yes = "$GCC"; then
10220	case $host_os in aix4.[012]|aix4.[012].*)
10221	# We only want to do this on AIX 4.2 and lower, the check
10222	# below for broken collect2 doesn't work under 4.3+
10223	  collect2name=`$CC -print-prog-name=collect2`
10224	  if test -f "$collect2name" &&
10225	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10226	  then
10227	  # We have reworked collect2
10228	  :
10229	  else
10230	  # We have old collect2
10231	  hardcode_direct=unsupported
10232	  # It fails to find uninstalled libraries when the uninstalled
10233	  # path is not listed in the libpath.  Setting hardcode_minus_L
10234	  # to unsupported forces relinking
10235	  hardcode_minus_L=yes
10236	  hardcode_libdir_flag_spec='-L$libdir'
10237	  hardcode_libdir_separator=
10238	  fi
10239	  ;;
10240	esac
10241	shared_flag='-shared'
10242	if test yes = "$aix_use_runtimelinking"; then
10243	  shared_flag="$shared_flag "'$wl-G'
10244	fi
10245	# Need to ensure runtime linking is disabled for the traditional
10246	# shared library, or the linker may eventually find shared libraries
10247	# /with/ Import File - we do not want to mix them.
10248	shared_flag_aix='-shared'
10249	shared_flag_svr4='-shared $wl-G'
10250      else
10251	# not using gcc
10252	if test ia64 = "$host_cpu"; then
10253	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10254	# chokes on -Wl,-G. The following line is correct:
10255	  shared_flag='-G'
10256	else
10257	  if test yes = "$aix_use_runtimelinking"; then
10258	    shared_flag='$wl-G'
10259	  else
10260	    shared_flag='$wl-bM:SRE'
10261	  fi
10262	  shared_flag_aix='$wl-bM:SRE'
10263	  shared_flag_svr4='$wl-G'
10264	fi
10265      fi
10266
10267      export_dynamic_flag_spec='$wl-bexpall'
10268      # It seems that -bexpall does not export symbols beginning with
10269      # underscore (_), so it is better to generate a list of symbols to export.
10270      always_export_symbols=yes
10271      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10272	# Warning - without using the other runtime loading flags (-brtl),
10273	# -berok will link without error, but may produce a broken library.
10274	allow_undefined_flag='-berok'
10275        # Determine the default libpath from the value encoded in an
10276        # empty executable.
10277        if test set = "${lt_cv_aix_libpath+set}"; then
10278  aix_libpath=$lt_cv_aix_libpath
10279else
10280  if ${lt_cv_aix_libpath_+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284/* end confdefs.h.  */
10285
10286int
10287main ()
10288{
10289
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"; then :
10295
10296  lt_aix_libpath_sed='
10297      /Import File Strings/,/^$/ {
10298	  /^0/ {
10299	      s/^0  *\([^ ]*\) *$/\1/
10300	      p
10301	  }
10302      }'
10303  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10304  # Check for a 64-bit object if we didn't find anything.
10305  if test -z "$lt_cv_aix_libpath_"; then
10306    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10307  fi
10308fi
10309rm -f core conftest.err conftest.$ac_objext \
10310    conftest$ac_exeext conftest.$ac_ext
10311  if test -z "$lt_cv_aix_libpath_"; then
10312    lt_cv_aix_libpath_=/usr/lib:/lib
10313  fi
10314
10315fi
10316
10317  aix_libpath=$lt_cv_aix_libpath_
10318fi
10319
10320        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10321        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
10322      else
10323	if test ia64 = "$host_cpu"; then
10324	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10325	  allow_undefined_flag="-z nodefs"
10326	  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"
10327	else
10328	 # Determine the default libpath from the value encoded in an
10329	 # empty executable.
10330	 if test set = "${lt_cv_aix_libpath+set}"; then
10331  aix_libpath=$lt_cv_aix_libpath
10332else
10333  if ${lt_cv_aix_libpath_+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338
10339int
10340main ()
10341{
10342
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347if ac_fn_c_try_link "$LINENO"; then :
10348
10349  lt_aix_libpath_sed='
10350      /Import File Strings/,/^$/ {
10351	  /^0/ {
10352	      s/^0  *\([^ ]*\) *$/\1/
10353	      p
10354	  }
10355      }'
10356  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357  # Check for a 64-bit object if we didn't find anything.
10358  if test -z "$lt_cv_aix_libpath_"; then
10359    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10360  fi
10361fi
10362rm -f core conftest.err conftest.$ac_objext \
10363    conftest$ac_exeext conftest.$ac_ext
10364  if test -z "$lt_cv_aix_libpath_"; then
10365    lt_cv_aix_libpath_=/usr/lib:/lib
10366  fi
10367
10368fi
10369
10370  aix_libpath=$lt_cv_aix_libpath_
10371fi
10372
10373	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10374	  # Warning - without using the other run time loading flags,
10375	  # -berok will link without error, but may produce a broken library.
10376	  no_undefined_flag=' $wl-bernotok'
10377	  allow_undefined_flag=' $wl-berok'
10378	  if test yes = "$with_gnu_ld"; then
10379	    # We only use this code for GNU lds that support --whole-archive.
10380	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10381	  else
10382	    # Exported symbols can be pulled into shared objects from archives
10383	    whole_archive_flag_spec='$convenience'
10384	  fi
10385	  archive_cmds_need_lc=yes
10386	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10387	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10388	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10389	  if test svr4 != "$with_aix_soname"; then
10390	    # This is similar to how AIX traditionally builds its shared libraries.
10391	    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'
10392	  fi
10393	  if test aix != "$with_aix_soname"; then
10394	    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'
10395	  else
10396	    # used by -dlpreopen to get the symbols
10397	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10398	  fi
10399	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10400	fi
10401      fi
10402      ;;
10403
10404    amigaos*)
10405      case $host_cpu in
10406      powerpc)
10407            # see comment about AmigaOS4 .so support
10408            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10409            archive_expsym_cmds=''
10410        ;;
10411      m68k)
10412            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)'
10413            hardcode_libdir_flag_spec='-L$libdir'
10414            hardcode_minus_L=yes
10415        ;;
10416      esac
10417      ;;
10418
10419    bsdi[45]*)
10420      export_dynamic_flag_spec=-rdynamic
10421      ;;
10422
10423    cygwin* | mingw* | pw32* | cegcc*)
10424      # When not using gcc, we currently assume that we are using
10425      # Microsoft Visual C++.
10426      # hardcode_libdir_flag_spec is actually meaningless, as there is
10427      # no search path for DLLs.
10428      case $cc_basename in
10429      cl*)
10430	# Native MSVC
10431	hardcode_libdir_flag_spec=' '
10432	allow_undefined_flag=unsupported
10433	always_export_symbols=yes
10434	file_list_spec='@'
10435	# Tell ltmain to make .lib files, not .a files.
10436	libext=lib
10437	# Tell ltmain to make .dll files, not .so files.
10438	shrext_cmds=.dll
10439	# FIXME: Setting linknames here is a bad hack.
10440	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10441	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10442            cp "$export_symbols" "$output_objdir/$soname.def";
10443            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10444          else
10445            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10446          fi~
10447          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10448          linknames='
10449	# The linker will not automatically build a static lib if we build a DLL.
10450	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10451	enable_shared_with_static_runtimes=yes
10452	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10453	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10454	# Don't use ranlib
10455	old_postinstall_cmds='chmod 644 $oldlib'
10456	postlink_cmds='lt_outputfile="@OUTPUT@"~
10457          lt_tool_outputfile="@TOOL_OUTPUT@"~
10458          case $lt_outputfile in
10459            *.exe|*.EXE) ;;
10460            *)
10461              lt_outputfile=$lt_outputfile.exe
10462              lt_tool_outputfile=$lt_tool_outputfile.exe
10463              ;;
10464          esac~
10465          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10466            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10467            $RM "$lt_outputfile.manifest";
10468          fi'
10469	;;
10470      *)
10471	# Assume MSVC wrapper
10472	hardcode_libdir_flag_spec=' '
10473	allow_undefined_flag=unsupported
10474	# Tell ltmain to make .lib files, not .a files.
10475	libext=lib
10476	# Tell ltmain to make .dll files, not .so files.
10477	shrext_cmds=.dll
10478	# FIXME: Setting linknames here is a bad hack.
10479	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10480	# The linker will automatically build a .lib file if we build a DLL.
10481	old_archive_from_new_cmds='true'
10482	# FIXME: Should let the user specify the lib program.
10483	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10484	enable_shared_with_static_runtimes=yes
10485	;;
10486      esac
10487      ;;
10488
10489    darwin* | rhapsody*)
10490
10491
10492  archive_cmds_need_lc=no
10493  hardcode_direct=no
10494  hardcode_automatic=yes
10495  hardcode_shlibpath_var=unsupported
10496  if test yes = "$lt_cv_ld_force_load"; then
10497    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\"`'
10498
10499  else
10500    whole_archive_flag_spec=''
10501  fi
10502  link_all_deplibs=yes
10503  allow_undefined_flag=$_lt_dar_allow_undefined
10504  case $cc_basename in
10505     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10506     *) _lt_dar_can_shared=$GCC ;;
10507  esac
10508  if test yes = "$_lt_dar_can_shared"; then
10509    output_verbose_link_cmd=func_echo_all
10510    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10511    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10512    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"
10513    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"
10514
10515  else
10516  ld_shlibs=no
10517  fi
10518
10519      ;;
10520
10521    dgux*)
10522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523      hardcode_libdir_flag_spec='-L$libdir'
10524      hardcode_shlibpath_var=no
10525      ;;
10526
10527    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10528    # support.  Future versions do this automatically, but an explicit c++rt0.o
10529    # does not break anything, and helps significantly (at the cost of a little
10530    # extra space).
10531    freebsd2.2*)
10532      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10533      hardcode_libdir_flag_spec='-R$libdir'
10534      hardcode_direct=yes
10535      hardcode_shlibpath_var=no
10536      ;;
10537
10538    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10539    freebsd2.*)
10540      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10541      hardcode_direct=yes
10542      hardcode_minus_L=yes
10543      hardcode_shlibpath_var=no
10544      ;;
10545
10546    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10547    freebsd* | dragonfly*)
10548      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10549      hardcode_libdir_flag_spec='-R$libdir'
10550      hardcode_direct=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    hpux9*)
10555      if test yes = "$GCC"; then
10556	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'
10557      else
10558	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'
10559      fi
10560      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10561      hardcode_libdir_separator=:
10562      hardcode_direct=yes
10563
10564      # hardcode_minus_L: Not really in the search PATH,
10565      # but as the default location of the library.
10566      hardcode_minus_L=yes
10567      export_dynamic_flag_spec='$wl-E'
10568      ;;
10569
10570    hpux10*)
10571      if test yes,no = "$GCC,$with_gnu_ld"; then
10572	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573      else
10574	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10575      fi
10576      if test no = "$with_gnu_ld"; then
10577	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10578	hardcode_libdir_separator=:
10579	hardcode_direct=yes
10580	hardcode_direct_absolute=yes
10581	export_dynamic_flag_spec='$wl-E'
10582	# hardcode_minus_L: Not really in the search PATH,
10583	# but as the default location of the library.
10584	hardcode_minus_L=yes
10585      fi
10586      ;;
10587
10588    hpux11*)
10589      if test yes,no = "$GCC,$with_gnu_ld"; then
10590	case $host_cpu in
10591	hppa*64*)
10592	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10593	  ;;
10594	ia64*)
10595	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10596	  ;;
10597	*)
10598	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599	  ;;
10600	esac
10601      else
10602	case $host_cpu in
10603	hppa*64*)
10604	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10605	  ;;
10606	ia64*)
10607	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608	  ;;
10609	*)
10610
10611	  # Older versions of the 11.00 compiler do not understand -b yet
10612	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10613	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10614$as_echo_n "checking if $CC understands -b... " >&6; }
10615if ${lt_cv_prog_compiler__b+:} false; then :
10616  $as_echo_n "(cached) " >&6
10617else
10618  lt_cv_prog_compiler__b=no
10619   save_LDFLAGS=$LDFLAGS
10620   LDFLAGS="$LDFLAGS -b"
10621   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10622   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10623     # The linker can only warn and ignore the option if not recognized
10624     # So say no if there are warnings
10625     if test -s conftest.err; then
10626       # Append any errors to the config.log.
10627       cat conftest.err 1>&5
10628       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10629       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10630       if diff conftest.exp conftest.er2 >/dev/null; then
10631         lt_cv_prog_compiler__b=yes
10632       fi
10633     else
10634       lt_cv_prog_compiler__b=yes
10635     fi
10636   fi
10637   $RM -r conftest*
10638   LDFLAGS=$save_LDFLAGS
10639
10640fi
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10642$as_echo "$lt_cv_prog_compiler__b" >&6; }
10643
10644if test yes = "$lt_cv_prog_compiler__b"; then
10645    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10646else
10647    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10648fi
10649
10650	  ;;
10651	esac
10652      fi
10653      if test no = "$with_gnu_ld"; then
10654	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10655	hardcode_libdir_separator=:
10656
10657	case $host_cpu in
10658	hppa*64*|ia64*)
10659	  hardcode_direct=no
10660	  hardcode_shlibpath_var=no
10661	  ;;
10662	*)
10663	  hardcode_direct=yes
10664	  hardcode_direct_absolute=yes
10665	  export_dynamic_flag_spec='$wl-E'
10666
10667	  # hardcode_minus_L: Not really in the search PATH,
10668	  # but as the default location of the library.
10669	  hardcode_minus_L=yes
10670	  ;;
10671	esac
10672      fi
10673      ;;
10674
10675    irix5* | irix6* | nonstopux*)
10676      if test yes = "$GCC"; then
10677	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'
10678	# Try to use the -exported_symbol ld option, if it does not
10679	# work, assume that -exports_file does not work either and
10680	# implicitly export all symbols.
10681	# This should be the same for all languages, so no per-tag cache variable.
10682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10683$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10684if ${lt_cv_irix_exported_symbol+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  save_LDFLAGS=$LDFLAGS
10688	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10689	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691int foo (void) { return 0; }
10692_ACEOF
10693if ac_fn_c_try_link "$LINENO"; then :
10694  lt_cv_irix_exported_symbol=yes
10695else
10696  lt_cv_irix_exported_symbol=no
10697fi
10698rm -f core conftest.err conftest.$ac_objext \
10699    conftest$ac_exeext conftest.$ac_ext
10700           LDFLAGS=$save_LDFLAGS
10701fi
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10703$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10704	if test yes = "$lt_cv_irix_exported_symbol"; then
10705          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'
10706	fi
10707      else
10708	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'
10709	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'
10710      fi
10711      archive_cmds_need_lc='no'
10712      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10713      hardcode_libdir_separator=:
10714      inherit_rpath=yes
10715      link_all_deplibs=yes
10716      ;;
10717
10718    linux*)
10719      case $cc_basename in
10720      tcc*)
10721	# Fabrice Bellard et al's Tiny C Compiler
10722	ld_shlibs=yes
10723	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10724	;;
10725      esac
10726      ;;
10727
10728    netbsd*)
10729      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10730	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10731      else
10732	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10733      fi
10734      hardcode_libdir_flag_spec='-R$libdir'
10735      hardcode_direct=yes
10736      hardcode_shlibpath_var=no
10737      ;;
10738
10739    newsos6)
10740      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741      hardcode_direct=yes
10742      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10743      hardcode_libdir_separator=:
10744      hardcode_shlibpath_var=no
10745      ;;
10746
10747    *nto* | *qnx*)
10748      ;;
10749
10750    openbsd* | bitrig*)
10751      if test -f /usr/libexec/ld.so; then
10752	hardcode_direct=yes
10753	hardcode_shlibpath_var=no
10754	hardcode_direct_absolute=yes
10755	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10756	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10758	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10759	  export_dynamic_flag_spec='$wl-E'
10760	else
10761	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10762	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10763	fi
10764      else
10765	ld_shlibs=no
10766      fi
10767      ;;
10768
10769    os2*)
10770      hardcode_libdir_flag_spec='-L$libdir'
10771      hardcode_minus_L=yes
10772      allow_undefined_flag=unsupported
10773      shrext_cmds=.dll
10774      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10775	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10776	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10777	$ECHO EXPORTS >> $output_objdir/$libname.def~
10778	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10779	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10780	emximp -o $lib $output_objdir/$libname.def'
10781      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10782	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10783	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10784	$ECHO EXPORTS >> $output_objdir/$libname.def~
10785	prefix_cmds="$SED"~
10786	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10787	  prefix_cmds="$prefix_cmds -e 1d";
10788	fi~
10789	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10790	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10791	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10792	emximp -o $lib $output_objdir/$libname.def'
10793      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10794      enable_shared_with_static_runtimes=yes
10795      file_list_spec='@'
10796      ;;
10797
10798    osf3*)
10799      if test yes = "$GCC"; then
10800	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10801	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'
10802      else
10803	allow_undefined_flag=' -expect_unresolved \*'
10804	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'
10805      fi
10806      archive_cmds_need_lc='no'
10807      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10808      hardcode_libdir_separator=:
10809      ;;
10810
10811    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10812      if test yes = "$GCC"; then
10813	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10814	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'
10815	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10816      else
10817	allow_undefined_flag=' -expect_unresolved \*'
10818	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'
10819	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~
10820          $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'
10821
10822	# Both c and cxx compiler support -rpath directly
10823	hardcode_libdir_flag_spec='-rpath $libdir'
10824      fi
10825      archive_cmds_need_lc='no'
10826      hardcode_libdir_separator=:
10827      ;;
10828
10829    solaris*)
10830      no_undefined_flag=' -z defs'
10831      if test yes = "$GCC"; then
10832	wlarc='$wl'
10833	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10834	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835          $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'
10836      else
10837	case `$CC -V 2>&1` in
10838	*"Compilers 5.0"*)
10839	  wlarc=''
10840	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10842            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10843	  ;;
10844	*)
10845	  wlarc='$wl'
10846	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10847	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10848            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10849	  ;;
10850	esac
10851      fi
10852      hardcode_libdir_flag_spec='-R$libdir'
10853      hardcode_shlibpath_var=no
10854      case $host_os in
10855      solaris2.[0-5] | solaris2.[0-5].*) ;;
10856      *)
10857	# The compiler driver will combine and reorder linker options,
10858	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10859	# but is careful enough not to reorder.
10860	# Supported since Solaris 2.6 (maybe 2.5.1?)
10861	if test yes = "$GCC"; then
10862	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10863	else
10864	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10865	fi
10866	;;
10867      esac
10868      link_all_deplibs=yes
10869      ;;
10870
10871    sunos4*)
10872      if test sequent = "$host_vendor"; then
10873	# Use $CC to link under sequent, because it throws in some extra .o
10874	# files that make .init and .fini sections work.
10875	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10876      else
10877	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10878      fi
10879      hardcode_libdir_flag_spec='-L$libdir'
10880      hardcode_direct=yes
10881      hardcode_minus_L=yes
10882      hardcode_shlibpath_var=no
10883      ;;
10884
10885    sysv4)
10886      case $host_vendor in
10887	sni)
10888	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889	  hardcode_direct=yes # is this really true???
10890	;;
10891	siemens)
10892	  ## LD is ld it makes a PLAMLIB
10893	  ## CC just makes a GrossModule.
10894	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10895	  reload_cmds='$CC -r -o $output$reload_objs'
10896	  hardcode_direct=no
10897        ;;
10898	motorola)
10899	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10901	;;
10902      esac
10903      runpath_var='LD_RUN_PATH'
10904      hardcode_shlibpath_var=no
10905      ;;
10906
10907    sysv4.3*)
10908      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909      hardcode_shlibpath_var=no
10910      export_dynamic_flag_spec='-Bexport'
10911      ;;
10912
10913    sysv4*MP*)
10914      if test -d /usr/nec; then
10915	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916	hardcode_shlibpath_var=no
10917	runpath_var=LD_RUN_PATH
10918	hardcode_runpath_var=yes
10919	ld_shlibs=yes
10920      fi
10921      ;;
10922
10923    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10924      no_undefined_flag='$wl-z,text'
10925      archive_cmds_need_lc=no
10926      hardcode_shlibpath_var=no
10927      runpath_var='LD_RUN_PATH'
10928
10929      if test yes = "$GCC"; then
10930	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932      else
10933	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935      fi
10936      ;;
10937
10938    sysv5* | sco3.2v5* | sco5v6*)
10939      # Note: We CANNOT use -z defs as we might desire, because we do not
10940      # link with -lc, and that would cause any symbols used from libc to
10941      # always be unresolved, which means just about no library would
10942      # ever link correctly.  If we're not using GNU ld we use -z text
10943      # though, which does catch some bad symbols but isn't as heavy-handed
10944      # as -z defs.
10945      no_undefined_flag='$wl-z,text'
10946      allow_undefined_flag='$wl-z,nodefs'
10947      archive_cmds_need_lc=no
10948      hardcode_shlibpath_var=no
10949      hardcode_libdir_flag_spec='$wl-R,$libdir'
10950      hardcode_libdir_separator=':'
10951      link_all_deplibs=yes
10952      export_dynamic_flag_spec='$wl-Bexport'
10953      runpath_var='LD_RUN_PATH'
10954
10955      if test yes = "$GCC"; then
10956	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958      else
10959	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961      fi
10962      ;;
10963
10964    uts4*)
10965      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966      hardcode_libdir_flag_spec='-L$libdir'
10967      hardcode_shlibpath_var=no
10968      ;;
10969
10970    *)
10971      ld_shlibs=no
10972      ;;
10973    esac
10974
10975    if test sni = "$host_vendor"; then
10976      case $host in
10977      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10978	export_dynamic_flag_spec='$wl-Blargedynsym'
10979	;;
10980      esac
10981    fi
10982  fi
10983
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10985$as_echo "$ld_shlibs" >&6; }
10986test no = "$ld_shlibs" && can_build_shared=no
10987
10988with_gnu_ld=$with_gnu_ld
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004#
11005# Do we need to explicitly link libc?
11006#
11007case "x$archive_cmds_need_lc" in
11008x|xyes)
11009  # Assume -lc should be added
11010  archive_cmds_need_lc=yes
11011
11012  if test yes,yes = "$GCC,$enable_shared"; then
11013    case $archive_cmds in
11014    *'~'*)
11015      # FIXME: we may have to deal with multi-command sequences.
11016      ;;
11017    '$CC '*)
11018      # Test whether the compiler implicitly links with -lc since on some
11019      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11020      # to ld, don't add -lc before -lgcc.
11021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11022$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11023if ${lt_cv_archive_cmds_need_lc+:} false; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  $RM conftest*
11027	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11028
11029	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11030  (eval $ac_compile) 2>&5
11031  ac_status=$?
11032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033  test $ac_status = 0; } 2>conftest.err; then
11034	  soname=conftest
11035	  lib=conftest
11036	  libobjs=conftest.$ac_objext
11037	  deplibs=
11038	  wl=$lt_prog_compiler_wl
11039	  pic_flag=$lt_prog_compiler_pic
11040	  compiler_flags=-v
11041	  linker_flags=-v
11042	  verstring=
11043	  output_objdir=.
11044	  libname=conftest
11045	  lt_save_allow_undefined_flag=$allow_undefined_flag
11046	  allow_undefined_flag=
11047	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11048  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11049  ac_status=$?
11050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051  test $ac_status = 0; }
11052	  then
11053	    lt_cv_archive_cmds_need_lc=no
11054	  else
11055	    lt_cv_archive_cmds_need_lc=yes
11056	  fi
11057	  allow_undefined_flag=$lt_save_allow_undefined_flag
11058	else
11059	  cat conftest.err 1>&5
11060	fi
11061	$RM conftest*
11062
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11065$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11066      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11067      ;;
11068    esac
11069  fi
11070  ;;
11071esac
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11225$as_echo_n "checking dynamic linker characteristics... " >&6; }
11226
11227if test yes = "$GCC"; then
11228  case $host_os in
11229    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11230    *) lt_awk_arg='/^libraries:/' ;;
11231  esac
11232  case $host_os in
11233    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11234    *) lt_sed_strip_eq='s|=/|/|g' ;;
11235  esac
11236  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11237  case $lt_search_path_spec in
11238  *\;*)
11239    # if the path contains ";" then we assume it to be the separator
11240    # otherwise default to the standard path separator (i.e. ":") - it is
11241    # assumed that no part of a normal pathname contains ";" but that should
11242    # okay in the real world where ";" in dirpaths is itself problematic.
11243    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11244    ;;
11245  *)
11246    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11247    ;;
11248  esac
11249  # Ok, now we have the path, separated by spaces, we can step through it
11250  # and add multilib dir if necessary...
11251  lt_tmp_lt_search_path_spec=
11252  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11253  # ...but if some path component already ends with the multilib dir we assume
11254  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11255  case "$lt_multi_os_dir; $lt_search_path_spec " in
11256  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11257    lt_multi_os_dir=
11258    ;;
11259  esac
11260  for lt_sys_path in $lt_search_path_spec; do
11261    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11262      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11263    elif test -n "$lt_multi_os_dir"; then
11264      test -d "$lt_sys_path" && \
11265	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11266    fi
11267  done
11268  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11269BEGIN {RS = " "; FS = "/|\n";} {
11270  lt_foo = "";
11271  lt_count = 0;
11272  for (lt_i = NF; lt_i > 0; lt_i--) {
11273    if ($lt_i != "" && $lt_i != ".") {
11274      if ($lt_i == "..") {
11275        lt_count++;
11276      } else {
11277        if (lt_count == 0) {
11278          lt_foo = "/" $lt_i lt_foo;
11279        } else {
11280          lt_count--;
11281        }
11282      }
11283    }
11284  }
11285  if (lt_foo != "") { lt_freq[lt_foo]++; }
11286  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11287}'`
11288  # AWK program above erroneously prepends '/' to C:/dos/paths
11289  # for these hosts.
11290  case $host_os in
11291    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11292      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11293  esac
11294  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11295else
11296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11297fi
11298library_names_spec=
11299libname_spec='lib$name'
11300soname_spec=
11301shrext_cmds=.so
11302postinstall_cmds=
11303postuninstall_cmds=
11304finish_cmds=
11305finish_eval=
11306shlibpath_var=
11307shlibpath_overrides_runpath=unknown
11308version_type=none
11309dynamic_linker="$host_os ld.so"
11310sys_lib_dlsearch_path_spec="/lib /usr/lib"
11311need_lib_prefix=unknown
11312hardcode_into_libs=no
11313
11314# when you set need_version to no, make sure it does not cause -set_version
11315# flags to be left without arguments
11316need_version=unknown
11317
11318
11319
11320case $host_os in
11321aix3*)
11322  version_type=linux # correct to gnu/linux during the next big refactor
11323  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11324  shlibpath_var=LIBPATH
11325
11326  # AIX 3 has no versioning support, so we append a major version to the name.
11327  soname_spec='$libname$release$shared_ext$major'
11328  ;;
11329
11330aix[4-9]*)
11331  version_type=linux # correct to gnu/linux during the next big refactor
11332  need_lib_prefix=no
11333  need_version=no
11334  hardcode_into_libs=yes
11335  if test ia64 = "$host_cpu"; then
11336    # AIX 5 supports IA64
11337    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11338    shlibpath_var=LD_LIBRARY_PATH
11339  else
11340    # With GCC up to 2.95.x, collect2 would create an import file
11341    # for dependence libraries.  The import file would start with
11342    # the line '#! .'.  This would cause the generated library to
11343    # depend on '.', always an invalid library.  This was fixed in
11344    # development snapshots of GCC prior to 3.0.
11345    case $host_os in
11346      aix4 | aix4.[01] | aix4.[01].*)
11347      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11348	   echo ' yes '
11349	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11350	:
11351      else
11352	can_build_shared=no
11353      fi
11354      ;;
11355    esac
11356    # Using Import Files as archive members, it is possible to support
11357    # filename-based versioning of shared library archives on AIX. While
11358    # this would work for both with and without runtime linking, it will
11359    # prevent static linking of such archives. So we do filename-based
11360    # shared library versioning with .so extension only, which is used
11361    # when both runtime linking and shared linking is enabled.
11362    # Unfortunately, runtime linking may impact performance, so we do
11363    # not want this to be the default eventually. Also, we use the
11364    # versioned .so libs for executables only if there is the -brtl
11365    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11366    # To allow for filename-based versioning support, we need to create
11367    # libNAME.so.V as an archive file, containing:
11368    # *) an Import File, referring to the versioned filename of the
11369    #    archive as well as the shared archive member, telling the
11370    #    bitwidth (32 or 64) of that shared object, and providing the
11371    #    list of exported symbols of that shared object, eventually
11372    #    decorated with the 'weak' keyword
11373    # *) the shared object with the F_LOADONLY flag set, to really avoid
11374    #    it being seen by the linker.
11375    # At run time we better use the real file rather than another symlink,
11376    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11377
11378    case $with_aix_soname,$aix_use_runtimelinking in
11379    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11380    # soname into executable. Probably we can add versioning support to
11381    # collect2, so additional links can be useful in future.
11382    aix,yes) # traditional libtool
11383      dynamic_linker='AIX unversionable lib.so'
11384      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11385      # instead of lib<name>.a to let people know that these are not
11386      # typical AIX shared libraries.
11387      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388      ;;
11389    aix,no) # traditional AIX only
11390      dynamic_linker='AIX lib.a(lib.so.V)'
11391      # We preserve .a as extension for shared libraries through AIX4.2
11392      # and later when we are not doing run time linking.
11393      library_names_spec='$libname$release.a $libname.a'
11394      soname_spec='$libname$release$shared_ext$major'
11395      ;;
11396    svr4,*) # full svr4 only
11397      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11398      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11399      # We do not specify a path in Import Files, so LIBPATH fires.
11400      shlibpath_overrides_runpath=yes
11401      ;;
11402    *,yes) # both, prefer svr4
11403      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11404      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11405      # unpreferred sharedlib libNAME.a needs extra handling
11406      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"'
11407      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"'
11408      # We do not specify a path in Import Files, so LIBPATH fires.
11409      shlibpath_overrides_runpath=yes
11410      ;;
11411    *,no) # both, prefer aix
11412      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11413      library_names_spec='$libname$release.a $libname.a'
11414      soname_spec='$libname$release$shared_ext$major'
11415      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11416      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)'
11417      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"'
11418      ;;
11419    esac
11420    shlibpath_var=LIBPATH
11421  fi
11422  ;;
11423
11424amigaos*)
11425  case $host_cpu in
11426  powerpc)
11427    # Since July 2007 AmigaOS4 officially supports .so libraries.
11428    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11430    ;;
11431  m68k)
11432    library_names_spec='$libname.ixlibrary $libname.a'
11433    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434    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'
11435    ;;
11436  esac
11437  ;;
11438
11439beos*)
11440  library_names_spec='$libname$shared_ext'
11441  dynamic_linker="$host_os ld.so"
11442  shlibpath_var=LIBRARY_PATH
11443  ;;
11444
11445bsdi[45]*)
11446  version_type=linux # correct to gnu/linux during the next big refactor
11447  need_version=no
11448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11449  soname_spec='$libname$release$shared_ext$major'
11450  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451  shlibpath_var=LD_LIBRARY_PATH
11452  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454  # the default ld.so.conf also contains /usr/contrib/lib and
11455  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456  # libtool to hard-code these into programs
11457  ;;
11458
11459cygwin* | mingw* | pw32* | cegcc*)
11460  version_type=windows
11461  shrext_cmds=.dll
11462  need_version=no
11463  need_lib_prefix=no
11464
11465  case $GCC,$cc_basename in
11466  yes,*)
11467    # gcc
11468    library_names_spec='$libname.dll.a'
11469    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11470    postinstall_cmds='base_file=`basename \$file`~
11471      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11472      dldir=$destdir/`dirname \$dlpath`~
11473      test -d \$dldir || mkdir -p \$dldir~
11474      $install_prog $dir/$dlname \$dldir/$dlname~
11475      chmod a+x \$dldir/$dlname~
11476      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11477        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11478      fi'
11479    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11480      dlpath=$dir/\$dldll~
11481       $RM \$dlpath'
11482    shlibpath_overrides_runpath=yes
11483
11484    case $host_os in
11485    cygwin*)
11486      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11487      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11488
11489      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11490      ;;
11491    mingw* | cegcc*)
11492      # MinGW DLLs use traditional 'lib' prefix
11493      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11494      ;;
11495    pw32*)
11496      # pw32 DLLs use 'pw' prefix rather than 'lib'
11497      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11498      ;;
11499    esac
11500    dynamic_linker='Win32 ld.exe'
11501    ;;
11502
11503  *,cl*)
11504    # Native MSVC
11505    libname_spec='$name'
11506    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11507    library_names_spec='$libname.dll.lib'
11508
11509    case $build_os in
11510    mingw*)
11511      sys_lib_search_path_spec=
11512      lt_save_ifs=$IFS
11513      IFS=';'
11514      for lt_path in $LIB
11515      do
11516        IFS=$lt_save_ifs
11517        # Let DOS variable expansion print the short 8.3 style file name.
11518        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11519        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11520      done
11521      IFS=$lt_save_ifs
11522      # Convert to MSYS style.
11523      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11524      ;;
11525    cygwin*)
11526      # Convert to unix form, then to dos form, then back to unix form
11527      # but this time dos style (no spaces!) so that the unix form looks
11528      # like /cygdrive/c/PROGRA~1:/cygdr...
11529      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11530      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11531      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11532      ;;
11533    *)
11534      sys_lib_search_path_spec=$LIB
11535      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11536        # It is most probably a Windows format PATH.
11537        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11538      else
11539        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11540      fi
11541      # FIXME: find the short name or the path components, as spaces are
11542      # common. (e.g. "Program Files" -> "PROGRA~1")
11543      ;;
11544    esac
11545
11546    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11547    postinstall_cmds='base_file=`basename \$file`~
11548      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11549      dldir=$destdir/`dirname \$dlpath`~
11550      test -d \$dldir || mkdir -p \$dldir~
11551      $install_prog $dir/$dlname \$dldir/$dlname'
11552    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11553      dlpath=$dir/\$dldll~
11554       $RM \$dlpath'
11555    shlibpath_overrides_runpath=yes
11556    dynamic_linker='Win32 link.exe'
11557    ;;
11558
11559  *)
11560    # Assume MSVC wrapper
11561    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11562    dynamic_linker='Win32 ld.exe'
11563    ;;
11564  esac
11565  # FIXME: first we should search . and the directory the executable is in
11566  shlibpath_var=PATH
11567  ;;
11568
11569darwin* | rhapsody*)
11570  dynamic_linker="$host_os dyld"
11571  version_type=darwin
11572  need_lib_prefix=no
11573  need_version=no
11574  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11575  soname_spec='$libname$release$major$shared_ext'
11576  shlibpath_overrides_runpath=yes
11577  shlibpath_var=DYLD_LIBRARY_PATH
11578  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11579
11580  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11581  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11582  ;;
11583
11584dgux*)
11585  version_type=linux # correct to gnu/linux during the next big refactor
11586  need_lib_prefix=no
11587  need_version=no
11588  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11589  soname_spec='$libname$release$shared_ext$major'
11590  shlibpath_var=LD_LIBRARY_PATH
11591  ;;
11592
11593freebsd* | dragonfly*)
11594  # DragonFly does not have aout.  When/if they implement a new
11595  # versioning mechanism, adjust this.
11596  if test -x /usr/bin/objformat; then
11597    objformat=`/usr/bin/objformat`
11598  else
11599    case $host_os in
11600    freebsd[23].*) objformat=aout ;;
11601    *) objformat=elf ;;
11602    esac
11603  fi
11604  version_type=freebsd-$objformat
11605  case $version_type in
11606    freebsd-elf*)
11607      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608      soname_spec='$libname$release$shared_ext$major'
11609      need_version=no
11610      need_lib_prefix=no
11611      ;;
11612    freebsd-*)
11613      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11614      need_version=yes
11615      ;;
11616  esac
11617  shlibpath_var=LD_LIBRARY_PATH
11618  case $host_os in
11619  freebsd2.*)
11620    shlibpath_overrides_runpath=yes
11621    ;;
11622  freebsd3.[01]* | freebsdelf3.[01]*)
11623    shlibpath_overrides_runpath=yes
11624    hardcode_into_libs=yes
11625    ;;
11626  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11627  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11628    shlibpath_overrides_runpath=no
11629    hardcode_into_libs=yes
11630    ;;
11631  *) # from 4.6 on, and DragonFly
11632    shlibpath_overrides_runpath=yes
11633    hardcode_into_libs=yes
11634    ;;
11635  esac
11636  ;;
11637
11638haiku*)
11639  version_type=linux # correct to gnu/linux during the next big refactor
11640  need_lib_prefix=no
11641  need_version=no
11642  dynamic_linker="$host_os runtime_loader"
11643  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11644  soname_spec='$libname$release$shared_ext$major'
11645  shlibpath_var=LIBRARY_PATH
11646  shlibpath_overrides_runpath=no
11647  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11648  hardcode_into_libs=yes
11649  ;;
11650
11651hpux9* | hpux10* | hpux11*)
11652  # Give a soname corresponding to the major version so that dld.sl refuses to
11653  # link against other versions.
11654  version_type=sunos
11655  need_lib_prefix=no
11656  need_version=no
11657  case $host_cpu in
11658  ia64*)
11659    shrext_cmds='.so'
11660    hardcode_into_libs=yes
11661    dynamic_linker="$host_os dld.so"
11662    shlibpath_var=LD_LIBRARY_PATH
11663    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11664    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11665    soname_spec='$libname$release$shared_ext$major'
11666    if test 32 = "$HPUX_IA64_MODE"; then
11667      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11668      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11669    else
11670      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11671      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11672    fi
11673    ;;
11674  hppa*64*)
11675    shrext_cmds='.sl'
11676    hardcode_into_libs=yes
11677    dynamic_linker="$host_os dld.sl"
11678    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11680    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681    soname_spec='$libname$release$shared_ext$major'
11682    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11683    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11684    ;;
11685  *)
11686    shrext_cmds='.sl'
11687    dynamic_linker="$host_os dld.sl"
11688    shlibpath_var=SHLIB_PATH
11689    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11690    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691    soname_spec='$libname$release$shared_ext$major'
11692    ;;
11693  esac
11694  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11695  postinstall_cmds='chmod 555 $lib'
11696  # or fails outright, so override atomically:
11697  install_override_mode=555
11698  ;;
11699
11700interix[3-9]*)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  need_lib_prefix=no
11703  need_version=no
11704  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11705  soname_spec='$libname$release$shared_ext$major'
11706  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11707  shlibpath_var=LD_LIBRARY_PATH
11708  shlibpath_overrides_runpath=no
11709  hardcode_into_libs=yes
11710  ;;
11711
11712irix5* | irix6* | nonstopux*)
11713  case $host_os in
11714    nonstopux*) version_type=nonstopux ;;
11715    *)
11716	if test yes = "$lt_cv_prog_gnu_ld"; then
11717		version_type=linux # correct to gnu/linux during the next big refactor
11718	else
11719		version_type=irix
11720	fi ;;
11721  esac
11722  need_lib_prefix=no
11723  need_version=no
11724  soname_spec='$libname$release$shared_ext$major'
11725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11726  case $host_os in
11727  irix5* | nonstopux*)
11728    libsuff= shlibsuff=
11729    ;;
11730  *)
11731    case $LD in # libtool.m4 will add one of these switches to LD
11732    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11733      libsuff= shlibsuff= libmagic=32-bit;;
11734    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11735      libsuff=32 shlibsuff=N32 libmagic=N32;;
11736    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11737      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11738    *) libsuff= shlibsuff= libmagic=never-match;;
11739    esac
11740    ;;
11741  esac
11742  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11743  shlibpath_overrides_runpath=no
11744  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11745  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11746  hardcode_into_libs=yes
11747  ;;
11748
11749# No shared lib support for Linux oldld, aout, or coff.
11750linux*oldld* | linux*aout* | linux*coff*)
11751  dynamic_linker=no
11752  ;;
11753
11754linux*android*)
11755  version_type=none # Android doesn't support versioned libraries.
11756  need_lib_prefix=no
11757  need_version=no
11758  library_names_spec='$libname$release$shared_ext'
11759  soname_spec='$libname$release$shared_ext'
11760  finish_cmds=
11761  shlibpath_var=LD_LIBRARY_PATH
11762  shlibpath_overrides_runpath=yes
11763
11764  # This implies no fast_install, which is unacceptable.
11765  # Some rework will be needed to allow for fast_install
11766  # before this can be enabled.
11767  hardcode_into_libs=yes
11768
11769  dynamic_linker='Android linker'
11770  # Don't embed -rpath directories since the linker doesn't support them.
11771  hardcode_libdir_flag_spec='-L$libdir'
11772  ;;
11773
11774# This must be glibc/ELF.
11775linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11776  version_type=linux # correct to gnu/linux during the next big refactor
11777  need_lib_prefix=no
11778  need_version=no
11779  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11780  soname_spec='$libname$release$shared_ext$major'
11781  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  shlibpath_overrides_runpath=no
11784
11785  # Some binutils ld are patched to set DT_RUNPATH
11786  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  lt_cv_shlibpath_overrides_runpath=no
11790    save_LDFLAGS=$LDFLAGS
11791    save_libdir=$libdir
11792    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11793	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11794    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795/* end confdefs.h.  */
11796
11797int
11798main ()
11799{
11800
11801  ;
11802  return 0;
11803}
11804_ACEOF
11805if ac_fn_c_try_link "$LINENO"; then :
11806  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11807  lt_cv_shlibpath_overrides_runpath=yes
11808fi
11809fi
11810rm -f core conftest.err conftest.$ac_objext \
11811    conftest$ac_exeext conftest.$ac_ext
11812    LDFLAGS=$save_LDFLAGS
11813    libdir=$save_libdir
11814
11815fi
11816
11817  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11818
11819  # This implies no fast_install, which is unacceptable.
11820  # Some rework will be needed to allow for fast_install
11821  # before this can be enabled.
11822  hardcode_into_libs=yes
11823
11824  # Ideally, we could use ldconfig to report *all* directores which are
11825  # searched for libraries, however this is still not possible.  Aside from not
11826  # being certain /sbin/ldconfig is available, command
11827  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11828  # even though it is searched at run-time.  Try to do the best guess by
11829  # appending ld.so.conf contents (and includes) to the search path.
11830  if test -f /etc/ld.so.conf; then
11831    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' ' '`
11832    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11833  fi
11834
11835  # We used to test for /lib/ld.so.1 and disable shared libraries on
11836  # powerpc, because MkLinux only supported shared libraries with the
11837  # GNU dynamic linker.  Since this was broken with cross compilers,
11838  # most powerpc-linux boxes support dynamic linking these days and
11839  # people can always --disable-shared, the test was removed, and we
11840  # assume the GNU/Linux dynamic linker is in use.
11841  dynamic_linker='GNU/Linux ld.so'
11842  ;;
11843
11844netbsd*)
11845  version_type=sunos
11846  need_lib_prefix=no
11847  need_version=no
11848  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11849    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11850    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11851    dynamic_linker='NetBSD (a.out) ld.so'
11852  else
11853    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11854    soname_spec='$libname$release$shared_ext$major'
11855    dynamic_linker='NetBSD ld.elf_so'
11856  fi
11857  shlibpath_var=LD_LIBRARY_PATH
11858  shlibpath_overrides_runpath=yes
11859  hardcode_into_libs=yes
11860  ;;
11861
11862newsos6)
11863  version_type=linux # correct to gnu/linux during the next big refactor
11864  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865  shlibpath_var=LD_LIBRARY_PATH
11866  shlibpath_overrides_runpath=yes
11867  ;;
11868
11869*nto* | *qnx*)
11870  version_type=qnx
11871  need_lib_prefix=no
11872  need_version=no
11873  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11874  soname_spec='$libname$release$shared_ext$major'
11875  shlibpath_var=LD_LIBRARY_PATH
11876  shlibpath_overrides_runpath=no
11877  hardcode_into_libs=yes
11878  dynamic_linker='ldqnx.so'
11879  ;;
11880
11881openbsd* | bitrig*)
11882  version_type=sunos
11883  sys_lib_dlsearch_path_spec=/usr/lib
11884  need_lib_prefix=no
11885  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11886    need_version=no
11887  else
11888    need_version=yes
11889  fi
11890  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11891  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11892  shlibpath_var=LD_LIBRARY_PATH
11893  shlibpath_overrides_runpath=yes
11894  ;;
11895
11896os2*)
11897  libname_spec='$name'
11898  version_type=windows
11899  shrext_cmds=.dll
11900  need_version=no
11901  need_lib_prefix=no
11902  # OS/2 can only load a DLL with a base name of 8 characters or less.
11903  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11904    v=$($ECHO $release$versuffix | tr -d .-);
11905    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11906    $ECHO $n$v`$shared_ext'
11907  library_names_spec='${libname}_dll.$libext'
11908  dynamic_linker='OS/2 ld.exe'
11909  shlibpath_var=BEGINLIBPATH
11910  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11911  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11912  postinstall_cmds='base_file=`basename \$file`~
11913    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11914    dldir=$destdir/`dirname \$dlpath`~
11915    test -d \$dldir || mkdir -p \$dldir~
11916    $install_prog $dir/$dlname \$dldir/$dlname~
11917    chmod a+x \$dldir/$dlname~
11918    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11919      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11920    fi'
11921  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11922    dlpath=$dir/\$dldll~
11923    $RM \$dlpath'
11924  ;;
11925
11926osf3* | osf4* | osf5*)
11927  version_type=osf
11928  need_lib_prefix=no
11929  need_version=no
11930  soname_spec='$libname$release$shared_ext$major'
11931  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11932  shlibpath_var=LD_LIBRARY_PATH
11933  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11934  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11935  ;;
11936
11937rdos*)
11938  dynamic_linker=no
11939  ;;
11940
11941solaris*)
11942  version_type=linux # correct to gnu/linux during the next big refactor
11943  need_lib_prefix=no
11944  need_version=no
11945  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946  soname_spec='$libname$release$shared_ext$major'
11947  shlibpath_var=LD_LIBRARY_PATH
11948  shlibpath_overrides_runpath=yes
11949  hardcode_into_libs=yes
11950  # ldd complains unless libraries are executable
11951  postinstall_cmds='chmod +x $lib'
11952  ;;
11953
11954sunos4*)
11955  version_type=sunos
11956  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11957  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11958  shlibpath_var=LD_LIBRARY_PATH
11959  shlibpath_overrides_runpath=yes
11960  if test yes = "$with_gnu_ld"; then
11961    need_lib_prefix=no
11962  fi
11963  need_version=yes
11964  ;;
11965
11966sysv4 | sysv4.3*)
11967  version_type=linux # correct to gnu/linux during the next big refactor
11968  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969  soname_spec='$libname$release$shared_ext$major'
11970  shlibpath_var=LD_LIBRARY_PATH
11971  case $host_vendor in
11972    sni)
11973      shlibpath_overrides_runpath=no
11974      need_lib_prefix=no
11975      runpath_var=LD_RUN_PATH
11976      ;;
11977    siemens)
11978      need_lib_prefix=no
11979      ;;
11980    motorola)
11981      need_lib_prefix=no
11982      need_version=no
11983      shlibpath_overrides_runpath=no
11984      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11985      ;;
11986  esac
11987  ;;
11988
11989sysv4*MP*)
11990  if test -d /usr/nec; then
11991    version_type=linux # correct to gnu/linux during the next big refactor
11992    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11993    soname_spec='$libname$shared_ext.$major'
11994    shlibpath_var=LD_LIBRARY_PATH
11995  fi
11996  ;;
11997
11998sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11999  version_type=sco
12000  need_lib_prefix=no
12001  need_version=no
12002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12003  soname_spec='$libname$release$shared_ext$major'
12004  shlibpath_var=LD_LIBRARY_PATH
12005  shlibpath_overrides_runpath=yes
12006  hardcode_into_libs=yes
12007  if test yes = "$with_gnu_ld"; then
12008    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12009  else
12010    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12011    case $host_os in
12012      sco3.2v5*)
12013        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12014	;;
12015    esac
12016  fi
12017  sys_lib_dlsearch_path_spec='/usr/lib'
12018  ;;
12019
12020tpf*)
12021  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12022  version_type=linux # correct to gnu/linux during the next big refactor
12023  need_lib_prefix=no
12024  need_version=no
12025  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12026  shlibpath_var=LD_LIBRARY_PATH
12027  shlibpath_overrides_runpath=no
12028  hardcode_into_libs=yes
12029  ;;
12030
12031uts4*)
12032  version_type=linux # correct to gnu/linux during the next big refactor
12033  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034  soname_spec='$libname$release$shared_ext$major'
12035  shlibpath_var=LD_LIBRARY_PATH
12036  ;;
12037
12038*)
12039  dynamic_linker=no
12040  ;;
12041esac
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12043$as_echo "$dynamic_linker" >&6; }
12044test no = "$dynamic_linker" && can_build_shared=no
12045
12046variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12047if test yes = "$GCC"; then
12048  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12049fi
12050
12051if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12052  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12053fi
12054
12055if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12056  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12057fi
12058
12059# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12060configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12061
12062# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12063func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12064
12065# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12066configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12165$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12166hardcode_action=
12167if test -n "$hardcode_libdir_flag_spec" ||
12168   test -n "$runpath_var" ||
12169   test yes = "$hardcode_automatic"; then
12170
12171  # We can hardcode non-existent directories.
12172  if test no != "$hardcode_direct" &&
12173     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12174     # have to relink, otherwise we might link with an installed library
12175     # when we should be linking with a yet-to-be-installed one
12176     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12177     test no != "$hardcode_minus_L"; then
12178    # Linking always hardcodes the temporary library directory.
12179    hardcode_action=relink
12180  else
12181    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12182    hardcode_action=immediate
12183  fi
12184else
12185  # We cannot hardcode anything, or else we can only hardcode existing
12186  # directories.
12187  hardcode_action=unsupported
12188fi
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12190$as_echo "$hardcode_action" >&6; }
12191
12192if test relink = "$hardcode_action" ||
12193   test yes = "$inherit_rpath"; then
12194  # Fast installation is not supported
12195  enable_fast_install=no
12196elif test yes = "$shlibpath_overrides_runpath" ||
12197     test no = "$enable_shared"; then
12198  # Fast installation is not necessary
12199  enable_fast_install=needless
12200fi
12201
12202
12203
12204
12205
12206
12207  if test yes != "$enable_dlopen"; then
12208  enable_dlopen=unknown
12209  enable_dlopen_self=unknown
12210  enable_dlopen_self_static=unknown
12211else
12212  lt_cv_dlopen=no
12213  lt_cv_dlopen_libs=
12214
12215  case $host_os in
12216  beos*)
12217    lt_cv_dlopen=load_add_on
12218    lt_cv_dlopen_libs=
12219    lt_cv_dlopen_self=yes
12220    ;;
12221
12222  mingw* | pw32* | cegcc*)
12223    lt_cv_dlopen=LoadLibrary
12224    lt_cv_dlopen_libs=
12225    ;;
12226
12227  cygwin*)
12228    lt_cv_dlopen=dlopen
12229    lt_cv_dlopen_libs=
12230    ;;
12231
12232  darwin*)
12233    # if libdl is installed we need to link against it
12234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12235$as_echo_n "checking for dlopen in -ldl... " >&6; }
12236if ${ac_cv_lib_dl_dlopen+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  ac_check_lib_save_LIBS=$LIBS
12240LIBS="-ldl  $LIBS"
12241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245   Use char because int might match the return type of a GCC
12246   builtin and then its argument prototype would still apply.  */
12247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char dlopen ();
12251int
12252main ()
12253{
12254return dlopen ();
12255  ;
12256  return 0;
12257}
12258_ACEOF
12259if ac_fn_c_try_link "$LINENO"; then :
12260  ac_cv_lib_dl_dlopen=yes
12261else
12262  ac_cv_lib_dl_dlopen=no
12263fi
12264rm -f core conftest.err conftest.$ac_objext \
12265    conftest$ac_exeext conftest.$ac_ext
12266LIBS=$ac_check_lib_save_LIBS
12267fi
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12269$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12270if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12271  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12272else
12273
12274    lt_cv_dlopen=dyld
12275    lt_cv_dlopen_libs=
12276    lt_cv_dlopen_self=yes
12277
12278fi
12279
12280    ;;
12281
12282  tpf*)
12283    # Don't try to run any link tests for TPF.  We know it's impossible
12284    # because TPF is a cross-compiler, and we know how we open DSOs.
12285    lt_cv_dlopen=dlopen
12286    lt_cv_dlopen_libs=
12287    lt_cv_dlopen_self=no
12288    ;;
12289
12290  *)
12291    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12292if test "x$ac_cv_func_shl_load" = xyes; then :
12293  lt_cv_dlopen=shl_load
12294else
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12296$as_echo_n "checking for shl_load in -ldld... " >&6; }
12297if ${ac_cv_lib_dld_shl_load+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  ac_check_lib_save_LIBS=$LIBS
12301LIBS="-ldld  $LIBS"
12302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h.  */
12304
12305/* Override any GCC internal prototype to avoid an error.
12306   Use char because int might match the return type of a GCC
12307   builtin and then its argument prototype would still apply.  */
12308#ifdef __cplusplus
12309extern "C"
12310#endif
12311char shl_load ();
12312int
12313main ()
12314{
12315return shl_load ();
12316  ;
12317  return 0;
12318}
12319_ACEOF
12320if ac_fn_c_try_link "$LINENO"; then :
12321  ac_cv_lib_dld_shl_load=yes
12322else
12323  ac_cv_lib_dld_shl_load=no
12324fi
12325rm -f core conftest.err conftest.$ac_objext \
12326    conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12330$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12331if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12332  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12333else
12334  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12335if test "x$ac_cv_func_dlopen" = xyes; then :
12336  lt_cv_dlopen=dlopen
12337else
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12339$as_echo_n "checking for dlopen in -ldl... " >&6; }
12340if ${ac_cv_lib_dl_dlopen+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343  ac_check_lib_save_LIBS=$LIBS
12344LIBS="-ldl  $LIBS"
12345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346/* end confdefs.h.  */
12347
12348/* Override any GCC internal prototype to avoid an error.
12349   Use char because int might match the return type of a GCC
12350   builtin and then its argument prototype would still apply.  */
12351#ifdef __cplusplus
12352extern "C"
12353#endif
12354char dlopen ();
12355int
12356main ()
12357{
12358return dlopen ();
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_link "$LINENO"; then :
12364  ac_cv_lib_dl_dlopen=yes
12365else
12366  ac_cv_lib_dl_dlopen=no
12367fi
12368rm -f core conftest.err conftest.$ac_objext \
12369    conftest$ac_exeext conftest.$ac_ext
12370LIBS=$ac_check_lib_save_LIBS
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12375  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12376else
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12378$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12379if ${ac_cv_lib_svld_dlopen+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  ac_check_lib_save_LIBS=$LIBS
12383LIBS="-lsvld  $LIBS"
12384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386
12387/* Override any GCC internal prototype to avoid an error.
12388   Use char because int might match the return type of a GCC
12389   builtin and then its argument prototype would still apply.  */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393char dlopen ();
12394int
12395main ()
12396{
12397return dlopen ();
12398  ;
12399  return 0;
12400}
12401_ACEOF
12402if ac_fn_c_try_link "$LINENO"; then :
12403  ac_cv_lib_svld_dlopen=yes
12404else
12405  ac_cv_lib_svld_dlopen=no
12406fi
12407rm -f core conftest.err conftest.$ac_objext \
12408    conftest$ac_exeext conftest.$ac_ext
12409LIBS=$ac_check_lib_save_LIBS
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12412$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12413if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12414  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12415else
12416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12417$as_echo_n "checking for dld_link in -ldld... " >&6; }
12418if ${ac_cv_lib_dld_dld_link+:} false; then :
12419  $as_echo_n "(cached) " >&6
12420else
12421  ac_check_lib_save_LIBS=$LIBS
12422LIBS="-ldld  $LIBS"
12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h.  */
12425
12426/* Override any GCC internal prototype to avoid an error.
12427   Use char because int might match the return type of a GCC
12428   builtin and then its argument prototype would still apply.  */
12429#ifdef __cplusplus
12430extern "C"
12431#endif
12432char dld_link ();
12433int
12434main ()
12435{
12436return dld_link ();
12437  ;
12438  return 0;
12439}
12440_ACEOF
12441if ac_fn_c_try_link "$LINENO"; then :
12442  ac_cv_lib_dld_dld_link=yes
12443else
12444  ac_cv_lib_dld_dld_link=no
12445fi
12446rm -f core conftest.err conftest.$ac_objext \
12447    conftest$ac_exeext conftest.$ac_ext
12448LIBS=$ac_check_lib_save_LIBS
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12451$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12452if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12453  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12454fi
12455
12456
12457fi
12458
12459
12460fi
12461
12462
12463fi
12464
12465
12466fi
12467
12468
12469fi
12470
12471    ;;
12472  esac
12473
12474  if test no = "$lt_cv_dlopen"; then
12475    enable_dlopen=no
12476  else
12477    enable_dlopen=yes
12478  fi
12479
12480  case $lt_cv_dlopen in
12481  dlopen)
12482    save_CPPFLAGS=$CPPFLAGS
12483    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12484
12485    save_LDFLAGS=$LDFLAGS
12486    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12487
12488    save_LIBS=$LIBS
12489    LIBS="$lt_cv_dlopen_libs $LIBS"
12490
12491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12492$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12493if ${lt_cv_dlopen_self+:} false; then :
12494  $as_echo_n "(cached) " >&6
12495else
12496  	  if test yes = "$cross_compiling"; then :
12497  lt_cv_dlopen_self=cross
12498else
12499  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12500  lt_status=$lt_dlunknown
12501  cat > conftest.$ac_ext <<_LT_EOF
12502#line $LINENO "configure"
12503#include "confdefs.h"
12504
12505#if HAVE_DLFCN_H
12506#include <dlfcn.h>
12507#endif
12508
12509#include <stdio.h>
12510
12511#ifdef RTLD_GLOBAL
12512#  define LT_DLGLOBAL		RTLD_GLOBAL
12513#else
12514#  ifdef DL_GLOBAL
12515#    define LT_DLGLOBAL		DL_GLOBAL
12516#  else
12517#    define LT_DLGLOBAL		0
12518#  endif
12519#endif
12520
12521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12522   find out it does not work in some platform. */
12523#ifndef LT_DLLAZY_OR_NOW
12524#  ifdef RTLD_LAZY
12525#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12526#  else
12527#    ifdef DL_LAZY
12528#      define LT_DLLAZY_OR_NOW		DL_LAZY
12529#    else
12530#      ifdef RTLD_NOW
12531#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12532#      else
12533#        ifdef DL_NOW
12534#          define LT_DLLAZY_OR_NOW	DL_NOW
12535#        else
12536#          define LT_DLLAZY_OR_NOW	0
12537#        endif
12538#      endif
12539#    endif
12540#  endif
12541#endif
12542
12543/* When -fvisibility=hidden is used, assume the code has been annotated
12544   correspondingly for the symbols needed.  */
12545#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12546int fnord () __attribute__((visibility("default")));
12547#endif
12548
12549int fnord () { return 42; }
12550int main ()
12551{
12552  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553  int status = $lt_dlunknown;
12554
12555  if (self)
12556    {
12557      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12558      else
12559        {
12560	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12561          else puts (dlerror ());
12562	}
12563      /* dlclose (self); */
12564    }
12565  else
12566    puts (dlerror ());
12567
12568  return status;
12569}
12570_LT_EOF
12571  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12572  (eval $ac_link) 2>&5
12573  ac_status=$?
12574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12576    (./conftest; exit; ) >&5 2>/dev/null
12577    lt_status=$?
12578    case x$lt_status in
12579      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12580      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12581      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12582    esac
12583  else :
12584    # compilation failed
12585    lt_cv_dlopen_self=no
12586  fi
12587fi
12588rm -fr conftest*
12589
12590
12591fi
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12593$as_echo "$lt_cv_dlopen_self" >&6; }
12594
12595    if test yes = "$lt_cv_dlopen_self"; then
12596      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12597      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12598$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12599if ${lt_cv_dlopen_self_static+:} false; then :
12600  $as_echo_n "(cached) " >&6
12601else
12602  	  if test yes = "$cross_compiling"; then :
12603  lt_cv_dlopen_self_static=cross
12604else
12605  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12606  lt_status=$lt_dlunknown
12607  cat > conftest.$ac_ext <<_LT_EOF
12608#line $LINENO "configure"
12609#include "confdefs.h"
12610
12611#if HAVE_DLFCN_H
12612#include <dlfcn.h>
12613#endif
12614
12615#include <stdio.h>
12616
12617#ifdef RTLD_GLOBAL
12618#  define LT_DLGLOBAL		RTLD_GLOBAL
12619#else
12620#  ifdef DL_GLOBAL
12621#    define LT_DLGLOBAL		DL_GLOBAL
12622#  else
12623#    define LT_DLGLOBAL		0
12624#  endif
12625#endif
12626
12627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12628   find out it does not work in some platform. */
12629#ifndef LT_DLLAZY_OR_NOW
12630#  ifdef RTLD_LAZY
12631#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12632#  else
12633#    ifdef DL_LAZY
12634#      define LT_DLLAZY_OR_NOW		DL_LAZY
12635#    else
12636#      ifdef RTLD_NOW
12637#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12638#      else
12639#        ifdef DL_NOW
12640#          define LT_DLLAZY_OR_NOW	DL_NOW
12641#        else
12642#          define LT_DLLAZY_OR_NOW	0
12643#        endif
12644#      endif
12645#    endif
12646#  endif
12647#endif
12648
12649/* When -fvisibility=hidden is used, assume the code has been annotated
12650   correspondingly for the symbols needed.  */
12651#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12652int fnord () __attribute__((visibility("default")));
12653#endif
12654
12655int fnord () { return 42; }
12656int main ()
12657{
12658  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12659  int status = $lt_dlunknown;
12660
12661  if (self)
12662    {
12663      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12664      else
12665        {
12666	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12667          else puts (dlerror ());
12668	}
12669      /* dlclose (self); */
12670    }
12671  else
12672    puts (dlerror ());
12673
12674  return status;
12675}
12676_LT_EOF
12677  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12678  (eval $ac_link) 2>&5
12679  ac_status=$?
12680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12681  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12682    (./conftest; exit; ) >&5 2>/dev/null
12683    lt_status=$?
12684    case x$lt_status in
12685      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12686      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12687      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12688    esac
12689  else :
12690    # compilation failed
12691    lt_cv_dlopen_self_static=no
12692  fi
12693fi
12694rm -fr conftest*
12695
12696
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12699$as_echo "$lt_cv_dlopen_self_static" >&6; }
12700    fi
12701
12702    CPPFLAGS=$save_CPPFLAGS
12703    LDFLAGS=$save_LDFLAGS
12704    LIBS=$save_LIBS
12705    ;;
12706  esac
12707
12708  case $lt_cv_dlopen_self in
12709  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12710  *) enable_dlopen_self=unknown ;;
12711  esac
12712
12713  case $lt_cv_dlopen_self_static in
12714  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12715  *) enable_dlopen_self_static=unknown ;;
12716  esac
12717fi
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735striplib=
12736old_striplib=
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12738$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12739if test -z "$STRIP"; then
12740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741$as_echo "no" >&6; }
12742else
12743  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12744    old_striplib="$STRIP --strip-debug"
12745    striplib="$STRIP --strip-unneeded"
12746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12747$as_echo "yes" >&6; }
12748  else
12749    case $host_os in
12750    darwin*)
12751      # FIXME - insert some real tests, host_os isn't really good enough
12752      striplib="$STRIP -x"
12753      old_striplib="$STRIP -S"
12754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755$as_echo "yes" >&6; }
12756      ;;
12757    freebsd*)
12758      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12759        old_striplib="$STRIP --strip-debug"
12760        striplib="$STRIP --strip-unneeded"
12761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762$as_echo "yes" >&6; }
12763      else
12764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766      fi
12767      ;;
12768    *)
12769      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771      ;;
12772    esac
12773  fi
12774fi
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787  # Report what library types will actually be built
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12789$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12791$as_echo "$can_build_shared" >&6; }
12792
12793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12794$as_echo_n "checking whether to build shared libraries... " >&6; }
12795  test no = "$can_build_shared" && enable_shared=no
12796
12797  # On AIX, shared libraries and static libraries use the same namespace, and
12798  # are all built from PIC.
12799  case $host_os in
12800  aix3*)
12801    test yes = "$enable_shared" && enable_static=no
12802    if test -n "$RANLIB"; then
12803      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12804      postinstall_cmds='$RANLIB $lib'
12805    fi
12806    ;;
12807
12808  aix[4-9]*)
12809    if test ia64 != "$host_cpu"; then
12810      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12811      yes,aix,yes) ;;			# shared object as lib.so file only
12812      yes,svr4,*) ;;			# shared object as lib.so archive member only
12813      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12814      esac
12815    fi
12816    ;;
12817  esac
12818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12819$as_echo "$enable_shared" >&6; }
12820
12821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12822$as_echo_n "checking whether to build static libraries... " >&6; }
12823  # Make sure either enable_shared or enable_static is yes.
12824  test yes = "$enable_shared" || enable_static=yes
12825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12826$as_echo "$enable_static" >&6; }
12827
12828
12829
12830
12831fi
12832ac_ext=c
12833ac_cpp='$CPP $CPPFLAGS'
12834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836ac_compiler_gnu=$ac_cv_c_compiler_gnu
12837
12838CC=$lt_save_CC
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854        ac_config_commands="$ac_config_commands libtool"
12855
12856
12857
12858
12859# Only expand once:
12860
12861
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12863$as_echo_n "checking whether ln -s works... " >&6; }
12864LN_S=$as_ln_s
12865if test "$LN_S" = "ln -s"; then
12866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12867$as_echo "yes" >&6; }
12868else
12869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12870$as_echo "no, using $LN_S" >&6; }
12871fi
12872
12873
12874# Check for GCC visibility feature
12875
12876
12877
12878  VISIBILITY_CFLAGS=
12879  VISIBILITY_CXXFLAGS=
12880  HAVE_VISIBILITY=0
12881  if test -n "$GCC"; then
12882                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12883$as_echo_n "checking whether the -Werror option is usable... " >&6; }
12884    if ${pcre2_cv_cc_vis_werror+:} false; then :
12885  $as_echo_n "(cached) " >&6
12886else
12887
12888      pcre2_save_CFLAGS="$CFLAGS"
12889      CFLAGS="$CFLAGS -Werror"
12890      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891/* end confdefs.h.  */
12892
12893int
12894main ()
12895{
12896
12897  ;
12898  return 0;
12899}
12900_ACEOF
12901if ac_fn_c_try_compile "$LINENO"; then :
12902  pcre2_cv_cc_vis_werror=yes
12903else
12904  pcre2_cv_cc_vis_werror=no
12905fi
12906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907      CFLAGS="$pcre2_save_CFLAGS"
12908fi
12909
12910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
12911$as_echo "$pcre2_cv_cc_vis_werror" >&6; }
12912        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12913$as_echo_n "checking for simple visibility declarations... " >&6; }
12914    if ${pcre2_cv_cc_visibility+:} false; then :
12915  $as_echo_n "(cached) " >&6
12916else
12917
12918      pcre2_save_CFLAGS="$CFLAGS"
12919      CFLAGS="$CFLAGS -fvisibility=hidden"
12920                                    if test $pcre2_cv_cc_vis_werror = yes; then
12921        CFLAGS="$CFLAGS -Werror"
12922      fi
12923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924/* end confdefs.h.  */
12925extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12926             extern __attribute__((__visibility__("default"))) int exportedvar;
12927             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12928             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12929             void dummyfunc (void) {}
12930
12931int
12932main ()
12933{
12934
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_compile "$LINENO"; then :
12940  pcre2_cv_cc_visibility=yes
12941else
12942  pcre2_cv_cc_visibility=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945      CFLAGS="$pcre2_save_CFLAGS"
12946fi
12947
12948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
12949$as_echo "$pcre2_cv_cc_visibility" >&6; }
12950    if test $pcre2_cv_cc_visibility = yes; then
12951      VISIBILITY_CFLAGS="-fvisibility=hidden"
12952      VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
12953      HAVE_VISIBILITY=1
12954
12955$as_echo "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12956
12957
12958$as_echo "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
12959
12960
12961$as_echo "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12962
12963
12964$as_echo "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
12965
12966    fi
12967  fi
12968
12969
12970
12971
12972cat >>confdefs.h <<_ACEOF
12973#define HAVE_VISIBILITY $HAVE_VISIBILITY
12974_ACEOF
12975
12976
12977
12978# Versioning
12979
12980PCRE2_MAJOR="10"
12981PCRE2_MINOR="32"
12982PCRE2_PRERELEASE=""
12983PCRE2_DATE="2018-09-10"
12984
12985if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
12986then
12987  echo "***"
12988  echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
12989  echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
12990  echo "***"
12991  exit 1
12992fi
12993
12994
12995
12996
12997
12998
12999# Set a more sensible default value for $(htmldir).
13000if test "x$htmldir" = 'x${docdir}'
13001then
13002  htmldir='${docdir}/html'
13003fi
13004
13005# Force an error for PCRE1 size options
13006# Check whether --enable-pcre8 was given.
13007if test "${enable_pcre8+set}" = set; then :
13008  enableval=$enable_pcre8;
13009else
13010  enable_pcre8=no
13011fi
13012
13013# Check whether --enable-pcre16 was given.
13014if test "${enable_pcre16+set}" = set; then :
13015  enableval=$enable_pcre16;
13016else
13017  enable_pcre16=no
13018fi
13019
13020# Check whether --enable-pcre32 was given.
13021if test "${enable_pcre32+set}" = set; then :
13022  enableval=$enable_pcre32;
13023else
13024  enable_pcre32=no
13025fi
13026
13027
13028if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
13029then
13030  echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
13031  exit 1
13032fi
13033
13034# Handle --disable-pcre2-8 (enabled by default)
13035# Check whether --enable-pcre2-8 was given.
13036if test "${enable_pcre2_8+set}" = set; then :
13037  enableval=$enable_pcre2_8;
13038else
13039  enable_pcre2_8=unset
13040fi
13041
13042
13043
13044# Handle --enable-pcre2-16 (disabled by default)
13045# Check whether --enable-pcre2-16 was given.
13046if test "${enable_pcre2_16+set}" = set; then :
13047  enableval=$enable_pcre2_16;
13048else
13049  enable_pcre2_16=unset
13050fi
13051
13052
13053
13054# Handle --enable-pcre2-32 (disabled by default)
13055# Check whether --enable-pcre2-32 was given.
13056if test "${enable_pcre2_32+set}" = set; then :
13057  enableval=$enable_pcre2_32;
13058else
13059  enable_pcre2_32=unset
13060fi
13061
13062
13063
13064# Handle --dnable-debug (disabled by default)
13065# Check whether --enable-debug was given.
13066if test "${enable_debug+set}" = set; then :
13067  enableval=$enable_debug;
13068else
13069  enable_debug=no
13070fi
13071
13072
13073# Handle --enable-jit (disabled by default)
13074# Check whether --enable-jit was given.
13075if test "${enable_jit+set}" = set; then :
13076  enableval=$enable_jit;
13077else
13078  enable_jit=no
13079fi
13080
13081
13082# This code enables JIT if the hardware supports it.
13083if test "$enable_jit" = "auto"; then
13084  ac_ext=c
13085ac_cpp='$CPP $CPPFLAGS'
13086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089
13090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h.  */
13092
13093  #define SLJIT_CONFIG_AUTO 1
13094  #include "src/sljit/sljitConfigInternal.h"
13095  #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
13096  #error unsupported
13097  #endif
13098_ACEOF
13099if ac_fn_c_try_compile "$LINENO"; then :
13100  enable_jit=yes
13101else
13102  enable_jit=no
13103fi
13104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105  echo checking for JIT support on this hardware... $enable_jit
13106fi
13107
13108# Handle --enable-jit-sealloc (disabled by default)
13109# Check whether --enable-jit-sealloc was given.
13110if test "${enable_jit_sealloc+set}" = set; then :
13111  enableval=$enable_jit_sealloc;
13112else
13113  enable_jit_sealloc=no
13114fi
13115
13116
13117# Handle --disable-pcre2grep-jit (enabled by default)
13118# Check whether --enable-pcre2grep-jit was given.
13119if test "${enable_pcre2grep_jit+set}" = set; then :
13120  enableval=$enable_pcre2grep_jit;
13121else
13122  enable_pcre2grep_jit=yes
13123fi
13124
13125
13126# Handle --disable-pcre2grep-callout (enabled by default)
13127# Check whether --enable-pcre2grep-callout was given.
13128if test "${enable_pcre2grep_callout+set}" = set; then :
13129  enableval=$enable_pcre2grep_callout;
13130else
13131  enable_pcre2grep_callout=yes
13132fi
13133
13134
13135# Handle --enable-rebuild-chartables
13136# Check whether --enable-rebuild-chartables was given.
13137if test "${enable_rebuild_chartables+set}" = set; then :
13138  enableval=$enable_rebuild_chartables;
13139else
13140  enable_rebuild_chartables=no
13141fi
13142
13143
13144# Handle --disable-unicode (enabled by default)
13145# Check whether --enable-unicode was given.
13146if test "${enable_unicode+set}" = set; then :
13147  enableval=$enable_unicode;
13148else
13149  enable_unicode=unset
13150fi
13151
13152
13153# Handle newline options
13154ac_pcre2_newline=lf
13155# Check whether --enable-newline-is-cr was given.
13156if test "${enable_newline_is_cr+set}" = set; then :
13157  enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
13158fi
13159
13160# Check whether --enable-newline-is-lf was given.
13161if test "${enable_newline_is_lf+set}" = set; then :
13162  enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
13163fi
13164
13165# Check whether --enable-newline-is-crlf was given.
13166if test "${enable_newline_is_crlf+set}" = set; then :
13167  enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
13168fi
13169
13170# Check whether --enable-newline-is-anycrlf was given.
13171if test "${enable_newline_is_anycrlf+set}" = set; then :
13172  enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
13173fi
13174
13175# Check whether --enable-newline-is-any was given.
13176if test "${enable_newline_is_any+set}" = set; then :
13177  enableval=$enable_newline_is_any; ac_pcre2_newline=any
13178fi
13179
13180# Check whether --enable-newline-is-nul was given.
13181if test "${enable_newline_is_nul+set}" = set; then :
13182  enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
13183fi
13184
13185enable_newline="$ac_pcre2_newline"
13186
13187# Handle --enable-bsr-anycrlf
13188# Check whether --enable-bsr-anycrlf was given.
13189if test "${enable_bsr_anycrlf+set}" = set; then :
13190  enableval=$enable_bsr_anycrlf;
13191else
13192  enable_bsr_anycrlf=no
13193fi
13194
13195
13196# Handle --enable-never-backslash-C
13197# Check whether --enable-never-backslash-C was given.
13198if test "${enable_never_backslash_C+set}" = set; then :
13199  enableval=$enable_never_backslash_C;
13200else
13201  enable_never_backslash_C=no
13202fi
13203
13204
13205# Handle --enable-ebcdic
13206# Check whether --enable-ebcdic was given.
13207if test "${enable_ebcdic+set}" = set; then :
13208  enableval=$enable_ebcdic;
13209else
13210  enable_ebcdic=no
13211fi
13212
13213
13214# Handle --enable-ebcdic-nl25
13215# Check whether --enable-ebcdic-nl25 was given.
13216if test "${enable_ebcdic_nl25+set}" = set; then :
13217  enableval=$enable_ebcdic_nl25;
13218else
13219  enable_ebcdic_nl25=no
13220fi
13221
13222
13223# Handle --enable-pcre2grep-libz
13224# Check whether --enable-pcre2grep-libz was given.
13225if test "${enable_pcre2grep_libz+set}" = set; then :
13226  enableval=$enable_pcre2grep_libz;
13227else
13228  enable_pcre2grep_libz=no
13229fi
13230
13231
13232# Handle --enable-pcre2grep-libbz2
13233# Check whether --enable-pcre2grep-libbz2 was given.
13234if test "${enable_pcre2grep_libbz2+set}" = set; then :
13235  enableval=$enable_pcre2grep_libbz2;
13236else
13237  enable_pcre2grep_libbz2=no
13238fi
13239
13240
13241# Handle --with-pcre2grep-bufsize=N
13242
13243# Check whether --with-pcre2grep-bufsize was given.
13244if test "${with_pcre2grep_bufsize+set}" = set; then :
13245  withval=$with_pcre2grep_bufsize;
13246else
13247  with_pcre2grep_bufsize=20480
13248fi
13249
13250
13251# Handle --with-pcre2grep-max-bufsize=N
13252
13253# Check whether --with-pcre2grep-max-bufsize was given.
13254if test "${with_pcre2grep_max_bufsize+set}" = set; then :
13255  withval=$with_pcre2grep_max_bufsize;
13256else
13257  with_pcre2grep_max_bufsize=1048576
13258fi
13259
13260
13261# Handle --enable-pcre2test-libedit
13262# Check whether --enable-pcre2test-libedit was given.
13263if test "${enable_pcre2test_libedit+set}" = set; then :
13264  enableval=$enable_pcre2test_libedit;
13265else
13266  enable_pcre2test_libedit=no
13267fi
13268
13269
13270# Handle --enable-pcre2test-libreadline
13271# Check whether --enable-pcre2test-libreadline was given.
13272if test "${enable_pcre2test_libreadline+set}" = set; then :
13273  enableval=$enable_pcre2test_libreadline;
13274else
13275  enable_pcre2test_libreadline=no
13276fi
13277
13278
13279# Handle --with-link-size=N
13280
13281# Check whether --with-link-size was given.
13282if test "${with_link_size+set}" = set; then :
13283  withval=$with_link_size;
13284else
13285  with_link_size=2
13286fi
13287
13288
13289# Handle --with-parens-nest-limit=N
13290
13291# Check whether --with-parens-nest-limit was given.
13292if test "${with_parens_nest_limit+set}" = set; then :
13293  withval=$with_parens_nest_limit;
13294else
13295  with_parens_nest_limit=250
13296fi
13297
13298
13299# Handle --with-heap-limit
13300
13301# Check whether --with-heap-limit was given.
13302if test "${with_heap_limit+set}" = set; then :
13303  withval=$with_heap_limit;
13304else
13305  with_heap_limit=20000000
13306fi
13307
13308
13309# Handle --with-match-limit=N
13310
13311# Check whether --with-match-limit was given.
13312if test "${with_match_limit+set}" = set; then :
13313  withval=$with_match_limit;
13314else
13315  with_match_limit=10000000
13316fi
13317
13318
13319# Handle --with-match-limit-depth=N
13320# Recognize old synonym --with-match-limit-recursion
13321#
13322# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
13323# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
13324# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
13325# value (or even the same numeric value as MATCH_LIMIT, though no longer
13326# defined in terms of the latter).
13327#
13328
13329# Check whether --with-match-limit-depth was given.
13330if test "${with_match_limit_depth+set}" = set; then :
13331  withval=$with_match_limit_depth;
13332else
13333  with_match_limit_depth=MATCH_LIMIT
13334fi
13335
13336
13337
13338# Check whether --with-match-limit-recursion was given.
13339if test "${with_match_limit_recursion+set}" = set; then :
13340  withval=$with_match_limit_recursion;
13341else
13342  with_match_limit_recursion=UNSET
13343fi
13344
13345
13346# Handle --enable-valgrind
13347# Check whether --enable-valgrind was given.
13348if test "${enable_valgrind+set}" = set; then :
13349  enableval=$enable_valgrind;
13350else
13351  enable_valgrind=no
13352fi
13353
13354
13355# Enable code coverage reports using gcov
13356# Check whether --enable-coverage was given.
13357if test "${enable_coverage+set}" = set; then :
13358  enableval=$enable_coverage;
13359else
13360  enable_coverage=no
13361fi
13362
13363
13364# Handle --enable-fuzz-support
13365# Check whether --enable-fuzz_support was given.
13366if test "${enable_fuzz_support+set}" = set; then :
13367  enableval=$enable_fuzz_support;
13368else
13369  enable_fuzz_support=no
13370fi
13371
13372
13373# Handle --disable-stack-for-recursion
13374# This option became obsolete at release 10.30.
13375# Check whether --enable-stack-for-recursion was given.
13376if test "${enable_stack_for_recursion+set}" = set; then :
13377  enableval=$enable_stack_for_recursion;
13378else
13379  enable_stack_for_recursion=yes
13380fi
13381
13382
13383# Original code
13384# AC_ARG_ENABLE(stack-for-recursion,
13385#               AS_HELP_STRING([--disable-stack-for-recursion],
13386#                              [don't use stack recursion when matching]),
13387#               , enable_stack_for_recursion=yes)
13388
13389# Set the default value for pcre2-8
13390if test "x$enable_pcre2_8" = "xunset"
13391then
13392  enable_pcre2_8=yes
13393fi
13394
13395# Set the default value for pcre2-16
13396if test "x$enable_pcre2_16" = "xunset"
13397then
13398  enable_pcre2_16=no
13399fi
13400
13401# Set the default value for pcre2-32
13402if test "x$enable_pcre2_32" = "xunset"
13403then
13404  enable_pcre2_32=no
13405fi
13406
13407# Make sure at least one library is selected
13408if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
13409then
13410  as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
13411fi
13412
13413# Unicode is enabled by default.
13414if test "x$enable_unicode" = "xunset"
13415then
13416  enable_unicode=yes
13417fi
13418
13419# Convert the newline identifier into the appropriate integer value. These must
13420# agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
13421
13422case "$enable_newline" in
13423  cr)      ac_pcre2_newline_value=1 ;;
13424  lf)      ac_pcre2_newline_value=2 ;;
13425  crlf)    ac_pcre2_newline_value=3 ;;
13426  any)     ac_pcre2_newline_value=4 ;;
13427  anycrlf) ac_pcre2_newline_value=5 ;;
13428  nul)     ac_pcre2_newline_value=6 ;;
13429  *)
13430  as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
13431  ;;
13432esac
13433
13434# --enable-ebcdic-nl25 implies --enable-ebcdic
13435if test "x$enable_ebcdic_nl25" = "xyes"; then
13436  enable_ebcdic=yes
13437fi
13438
13439# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
13440# Also check that UTF support is not requested, because PCRE2 cannot handle
13441# EBCDIC and UTF in the same build. To do so it would need to use different
13442# character constants depending on the mode. Also, EBCDIC cannot be used with
13443# 16-bit and 32-bit libraries.
13444#
13445if test "x$enable_ebcdic" = "xyes"; then
13446  enable_rebuild_chartables=yes
13447  if test "x$enable_unicode" = "xyes"; then
13448    as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
13449  fi
13450  if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
13451    as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
13452  fi
13453fi
13454
13455# Check argument to --with-link-size
13456case "$with_link_size" in
13457  2|3|4) ;;
13458  *)
13459  as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
13460  ;;
13461esac
13462
13463
13464
13465# Checks for header files.
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13467$as_echo_n "checking for ANSI C header files... " >&6; }
13468if ${ac_cv_header_stdc+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472/* end confdefs.h.  */
13473#include <stdlib.h>
13474#include <stdarg.h>
13475#include <string.h>
13476#include <float.h>
13477
13478int
13479main ()
13480{
13481
13482  ;
13483  return 0;
13484}
13485_ACEOF
13486if ac_fn_c_try_compile "$LINENO"; then :
13487  ac_cv_header_stdc=yes
13488else
13489  ac_cv_header_stdc=no
13490fi
13491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492
13493if test $ac_cv_header_stdc = yes; then
13494  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497#include <string.h>
13498
13499_ACEOF
13500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501  $EGREP "memchr" >/dev/null 2>&1; then :
13502
13503else
13504  ac_cv_header_stdc=no
13505fi
13506rm -f conftest*
13507
13508fi
13509
13510if test $ac_cv_header_stdc = yes; then
13511  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514#include <stdlib.h>
13515
13516_ACEOF
13517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518  $EGREP "free" >/dev/null 2>&1; then :
13519
13520else
13521  ac_cv_header_stdc=no
13522fi
13523rm -f conftest*
13524
13525fi
13526
13527if test $ac_cv_header_stdc = yes; then
13528  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13529  if test "$cross_compiling" = yes; then :
13530  :
13531else
13532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533/* end confdefs.h.  */
13534#include <ctype.h>
13535#include <stdlib.h>
13536#if ((' ' & 0x0FF) == 0x020)
13537# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13538# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13539#else
13540# define ISLOWER(c) \
13541		   (('a' <= (c) && (c) <= 'i') \
13542		     || ('j' <= (c) && (c) <= 'r') \
13543		     || ('s' <= (c) && (c) <= 'z'))
13544# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13545#endif
13546
13547#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13548int
13549main ()
13550{
13551  int i;
13552  for (i = 0; i < 256; i++)
13553    if (XOR (islower (i), ISLOWER (i))
13554	|| toupper (i) != TOUPPER (i))
13555      return 2;
13556  return 0;
13557}
13558_ACEOF
13559if ac_fn_c_try_run "$LINENO"; then :
13560
13561else
13562  ac_cv_header_stdc=no
13563fi
13564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13565  conftest.$ac_objext conftest.beam conftest.$ac_ext
13566fi
13567
13568fi
13569fi
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13571$as_echo "$ac_cv_header_stdc" >&6; }
13572if test $ac_cv_header_stdc = yes; then
13573
13574$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13575
13576fi
13577
13578for ac_header in limits.h sys/types.h sys/stat.h dirent.h
13579do :
13580  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13583  cat >>confdefs.h <<_ACEOF
13584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13585_ACEOF
13586
13587fi
13588
13589done
13590
13591for ac_header in windows.h
13592do :
13593  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13594if test "x$ac_cv_header_windows_h" = xyes; then :
13595  cat >>confdefs.h <<_ACEOF
13596#define HAVE_WINDOWS_H 1
13597_ACEOF
13598 HAVE_WINDOWS_H=1
13599fi
13600
13601done
13602
13603for ac_header in sys/wait.h
13604do :
13605  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
13606if test "x$ac_cv_header_sys_wait_h" = xyes; then :
13607  cat >>confdefs.h <<_ACEOF
13608#define HAVE_SYS_WAIT_H 1
13609_ACEOF
13610 HAVE_SYS_WAIT_H=1
13611fi
13612
13613done
13614
13615
13616for ac_header in stdint.h
13617do :
13618  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13619if test "x$ac_cv_header_stdint_h" = xyes; then :
13620  cat >>confdefs.h <<_ACEOF
13621#define HAVE_STDINT_H 1
13622_ACEOF
13623 PCRE2_HAVE_STDINT_H=1
13624else
13625  PCRE2_HAVE_STDINT_H=0
13626fi
13627
13628done
13629
13630for ac_header in inttypes.h
13631do :
13632  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13633if test "x$ac_cv_header_inttypes_h" = xyes; then :
13634  cat >>confdefs.h <<_ACEOF
13635#define HAVE_INTTYPES_H 1
13636_ACEOF
13637 PCRE2_HAVE_INTTYPES_H=1
13638else
13639  PCRE2_HAVE_INTTYPES_H=0
13640fi
13641
13642done
13643
13644
13645
13646
13647# Conditional compilation
13648 if test "x$enable_pcre2_8" = "xyes"; then
13649  WITH_PCRE2_8_TRUE=
13650  WITH_PCRE2_8_FALSE='#'
13651else
13652  WITH_PCRE2_8_TRUE='#'
13653  WITH_PCRE2_8_FALSE=
13654fi
13655
13656 if test "x$enable_pcre2_16" = "xyes"; then
13657  WITH_PCRE2_16_TRUE=
13658  WITH_PCRE2_16_FALSE='#'
13659else
13660  WITH_PCRE2_16_TRUE='#'
13661  WITH_PCRE2_16_FALSE=
13662fi
13663
13664 if test "x$enable_pcre2_32" = "xyes"; then
13665  WITH_PCRE2_32_TRUE=
13666  WITH_PCRE2_32_FALSE='#'
13667else
13668  WITH_PCRE2_32_TRUE='#'
13669  WITH_PCRE2_32_FALSE=
13670fi
13671
13672 if test "x$enable_debug" = "xyes"; then
13673  WITH_DEBUG_TRUE=
13674  WITH_DEBUG_FALSE='#'
13675else
13676  WITH_DEBUG_TRUE='#'
13677  WITH_DEBUG_FALSE=
13678fi
13679
13680 if test "x$enable_rebuild_chartables" = "xyes"; then
13681  WITH_REBUILD_CHARTABLES_TRUE=
13682  WITH_REBUILD_CHARTABLES_FALSE='#'
13683else
13684  WITH_REBUILD_CHARTABLES_TRUE='#'
13685  WITH_REBUILD_CHARTABLES_FALSE=
13686fi
13687
13688 if test "x$enable_jit" = "xyes"; then
13689  WITH_JIT_TRUE=
13690  WITH_JIT_FALSE='#'
13691else
13692  WITH_JIT_TRUE='#'
13693  WITH_JIT_FALSE=
13694fi
13695
13696 if test "x$enable_unicode" = "xyes"; then
13697  WITH_UNICODE_TRUE=
13698  WITH_UNICODE_FALSE='#'
13699else
13700  WITH_UNICODE_TRUE='#'
13701  WITH_UNICODE_FALSE=
13702fi
13703
13704 if test "x$enable_valgrind" = "xyes"; then
13705  WITH_VALGRIND_TRUE=
13706  WITH_VALGRIND_FALSE='#'
13707else
13708  WITH_VALGRIND_TRUE='#'
13709  WITH_VALGRIND_FALSE=
13710fi
13711
13712 if test "x$enable_fuzz_support" = "xyes"; then
13713  WITH_FUZZ_SUPPORT_TRUE=
13714  WITH_FUZZ_SUPPORT_FALSE='#'
13715else
13716  WITH_FUZZ_SUPPORT_TRUE='#'
13717  WITH_FUZZ_SUPPORT_FALSE=
13718fi
13719
13720
13721if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
13722  echo "** ERROR: Fuzzer support requires the 8-bit library"
13723  exit 1
13724fi
13725
13726# Checks for typedefs, structures, and compiler characteristics.
13727
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13729$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13730if ${ac_cv_c_const+:} false; then :
13731  $as_echo_n "(cached) " >&6
13732else
13733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h.  */
13735
13736int
13737main ()
13738{
13739
13740#ifndef __cplusplus
13741  /* Ultrix mips cc rejects this sort of thing.  */
13742  typedef int charset[2];
13743  const charset cs = { 0, 0 };
13744  /* SunOS 4.1.1 cc rejects this.  */
13745  char const *const *pcpcc;
13746  char **ppc;
13747  /* NEC SVR4.0.2 mips cc rejects this.  */
13748  struct point {int x, y;};
13749  static struct point const zero = {0,0};
13750  /* AIX XL C 1.02.0.0 rejects this.
13751     It does not let you subtract one const X* pointer from another in
13752     an arm of an if-expression whose if-part is not a constant
13753     expression */
13754  const char *g = "string";
13755  pcpcc = &g + (g ? g-g : 0);
13756  /* HPUX 7.0 cc rejects these. */
13757  ++pcpcc;
13758  ppc = (char**) pcpcc;
13759  pcpcc = (char const *const *) ppc;
13760  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13761    char tx;
13762    char *t = &tx;
13763    char const *s = 0 ? (char *) 0 : (char const *) 0;
13764
13765    *t++ = 0;
13766    if (s) return 0;
13767  }
13768  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13769    int x[] = {25, 17};
13770    const int *foo = &x[0];
13771    ++foo;
13772  }
13773  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13774    typedef const int *iptr;
13775    iptr p = 0;
13776    ++p;
13777  }
13778  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13779       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13780    struct s { int j; const int *ap[3]; } bx;
13781    struct s *b = &bx; b->j = 5;
13782  }
13783  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13784    const int foo = 10;
13785    if (!foo) return 0;
13786  }
13787  return !cs[0] && !zero.x;
13788#endif
13789
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_compile "$LINENO"; then :
13795  ac_cv_c_const=yes
13796else
13797  ac_cv_c_const=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13802$as_echo "$ac_cv_c_const" >&6; }
13803if test $ac_cv_c_const = no; then
13804
13805$as_echo "#define const /**/" >>confdefs.h
13806
13807fi
13808
13809ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13810if test "x$ac_cv_type_size_t" = xyes; then :
13811
13812else
13813
13814cat >>confdefs.h <<_ACEOF
13815#define size_t unsigned int
13816_ACEOF
13817
13818fi
13819
13820
13821# Checks for library functions.
13822
13823for ac_func in bcopy memmove strerror mkostemp secure_getenv
13824do :
13825  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13827if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13828  cat >>confdefs.h <<_ACEOF
13829#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13830_ACEOF
13831
13832fi
13833done
13834
13835
13836# Check for the availability of libz (aka zlib)
13837
13838for ac_header in zlib.h
13839do :
13840  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13841if test "x$ac_cv_header_zlib_h" = xyes; then :
13842  cat >>confdefs.h <<_ACEOF
13843#define HAVE_ZLIB_H 1
13844_ACEOF
13845 HAVE_ZLIB_H=1
13846fi
13847
13848done
13849
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
13851$as_echo_n "checking for gzopen in -lz... " >&6; }
13852if ${ac_cv_lib_z_gzopen+:} false; then :
13853  $as_echo_n "(cached) " >&6
13854else
13855  ac_check_lib_save_LIBS=$LIBS
13856LIBS="-lz  $LIBS"
13857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859
13860/* Override any GCC internal prototype to avoid an error.
13861   Use char because int might match the return type of a GCC
13862   builtin and then its argument prototype would still apply.  */
13863#ifdef __cplusplus
13864extern "C"
13865#endif
13866char gzopen ();
13867int
13868main ()
13869{
13870return gzopen ();
13871  ;
13872  return 0;
13873}
13874_ACEOF
13875if ac_fn_c_try_link "$LINENO"; then :
13876  ac_cv_lib_z_gzopen=yes
13877else
13878  ac_cv_lib_z_gzopen=no
13879fi
13880rm -f core conftest.err conftest.$ac_objext \
13881    conftest$ac_exeext conftest.$ac_ext
13882LIBS=$ac_check_lib_save_LIBS
13883fi
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
13885$as_echo "$ac_cv_lib_z_gzopen" >&6; }
13886if test "x$ac_cv_lib_z_gzopen" = xyes; then :
13887  HAVE_LIBZ=1
13888fi
13889
13890
13891# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
13892# as for libz. However, this had the following problem, diagnosed and fixed by
13893# a user:
13894#
13895#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
13896#     under Win32.
13897#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
13898#     therefore missing the function definition.
13899#   - The compiler thus generates a "C" signature for the test function.
13900#   - The linker fails to find the "C" function.
13901#   - PCRE2 fails to configure if asked to do so against libbz2.
13902#
13903# Solution:
13904#
13905#   - Replace the AC_CHECK_LIB test with a custom test.
13906
13907for ac_header in bzlib.h
13908do :
13909  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13910if test "x$ac_cv_header_bzlib_h" = xyes; then :
13911  cat >>confdefs.h <<_ACEOF
13912#define HAVE_BZLIB_H 1
13913_ACEOF
13914 HAVE_BZLIB_H=1
13915fi
13916
13917done
13918
13919# Original test
13920# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
13921#
13922# Custom test follows
13923
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
13925$as_echo_n "checking for libbz2... " >&6; }
13926OLD_LIBS="$LIBS"
13927LIBS="$LIBS -lbz2"
13928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930
13931#ifdef HAVE_BZLIB_H
13932#include <bzlib.h>
13933#endif
13934int
13935main ()
13936{
13937return (int)BZ2_bzopen("conftest", "rb");
13938  ;
13939  return 0;
13940}
13941_ACEOF
13942if ac_fn_c_try_link "$LINENO"; then :
13943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13944$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
13945else
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
13948fi
13949rm -f core conftest.err conftest.$ac_objext \
13950    conftest$ac_exeext conftest.$ac_ext
13951LIBS="$OLD_LIBS"
13952
13953# Check for the availabiity of libreadline
13954
13955if test "$enable_pcre2test_libreadline" = "yes"; then
13956 for ac_header in readline/readline.h
13957do :
13958  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13959if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13960  cat >>confdefs.h <<_ACEOF
13961#define HAVE_READLINE_READLINE_H 1
13962_ACEOF
13963 HAVE_READLINE_H=1
13964fi
13965
13966done
13967
13968 for ac_header in readline/history.h
13969do :
13970  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13971if test "x$ac_cv_header_readline_history_h" = xyes; then :
13972  cat >>confdefs.h <<_ACEOF
13973#define HAVE_READLINE_HISTORY_H 1
13974_ACEOF
13975 HAVE_HISTORY_H=1
13976fi
13977
13978done
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13981$as_echo_n "checking for readline in -lreadline... " >&6; }
13982if ${ac_cv_lib_readline_readline+:} false; then :
13983  $as_echo_n "(cached) " >&6
13984else
13985  ac_check_lib_save_LIBS=$LIBS
13986LIBS="-lreadline  $LIBS"
13987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989
13990/* Override any GCC internal prototype to avoid an error.
13991   Use char because int might match the return type of a GCC
13992   builtin and then its argument prototype would still apply.  */
13993#ifdef __cplusplus
13994extern "C"
13995#endif
13996char readline ();
13997int
13998main ()
13999{
14000return readline ();
14001  ;
14002  return 0;
14003}
14004_ACEOF
14005if ac_fn_c_try_link "$LINENO"; then :
14006  ac_cv_lib_readline_readline=yes
14007else
14008  ac_cv_lib_readline_readline=no
14009fi
14010rm -f core conftest.err conftest.$ac_objext \
14011    conftest$ac_exeext conftest.$ac_ext
14012LIBS=$ac_check_lib_save_LIBS
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14015$as_echo "$ac_cv_lib_readline_readline" >&6; }
14016if test "x$ac_cv_lib_readline_readline" = xyes; then :
14017  LIBREADLINE="-lreadline"
14018else
14019  unset ac_cv_lib_readline_readline;
14020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14021$as_echo_n "checking for readline in -lreadline... " >&6; }
14022if ${ac_cv_lib_readline_readline+:} false; then :
14023  $as_echo_n "(cached) " >&6
14024else
14025  ac_check_lib_save_LIBS=$LIBS
14026LIBS="-lreadline -ltinfo $LIBS"
14027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029
14030/* Override any GCC internal prototype to avoid an error.
14031   Use char because int might match the return type of a GCC
14032   builtin and then its argument prototype would still apply.  */
14033#ifdef __cplusplus
14034extern "C"
14035#endif
14036char readline ();
14037int
14038main ()
14039{
14040return readline ();
14041  ;
14042  return 0;
14043}
14044_ACEOF
14045if ac_fn_c_try_link "$LINENO"; then :
14046  ac_cv_lib_readline_readline=yes
14047else
14048  ac_cv_lib_readline_readline=no
14049fi
14050rm -f core conftest.err conftest.$ac_objext \
14051    conftest$ac_exeext conftest.$ac_ext
14052LIBS=$ac_check_lib_save_LIBS
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14055$as_echo "$ac_cv_lib_readline_readline" >&6; }
14056if test "x$ac_cv_lib_readline_readline" = xyes; then :
14057  LIBREADLINE="-ltinfo"
14058else
14059  unset ac_cv_lib_readline_readline;
14060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14061$as_echo_n "checking for readline in -lreadline... " >&6; }
14062if ${ac_cv_lib_readline_readline+:} false; then :
14063  $as_echo_n "(cached) " >&6
14064else
14065  ac_check_lib_save_LIBS=$LIBS
14066LIBS="-lreadline -lcurses $LIBS"
14067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068/* end confdefs.h.  */
14069
14070/* Override any GCC internal prototype to avoid an error.
14071   Use char because int might match the return type of a GCC
14072   builtin and then its argument prototype would still apply.  */
14073#ifdef __cplusplus
14074extern "C"
14075#endif
14076char readline ();
14077int
14078main ()
14079{
14080return readline ();
14081  ;
14082  return 0;
14083}
14084_ACEOF
14085if ac_fn_c_try_link "$LINENO"; then :
14086  ac_cv_lib_readline_readline=yes
14087else
14088  ac_cv_lib_readline_readline=no
14089fi
14090rm -f core conftest.err conftest.$ac_objext \
14091    conftest$ac_exeext conftest.$ac_ext
14092LIBS=$ac_check_lib_save_LIBS
14093fi
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14095$as_echo "$ac_cv_lib_readline_readline" >&6; }
14096if test "x$ac_cv_lib_readline_readline" = xyes; then :
14097  LIBREADLINE="-lcurses"
14098else
14099  unset ac_cv_lib_readline_readline;
14100        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14101$as_echo_n "checking for readline in -lreadline... " >&6; }
14102if ${ac_cv_lib_readline_readline+:} false; then :
14103  $as_echo_n "(cached) " >&6
14104else
14105  ac_check_lib_save_LIBS=$LIBS
14106LIBS="-lreadline -lncurses $LIBS"
14107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109
14110/* Override any GCC internal prototype to avoid an error.
14111   Use char because int might match the return type of a GCC
14112   builtin and then its argument prototype would still apply.  */
14113#ifdef __cplusplus
14114extern "C"
14115#endif
14116char readline ();
14117int
14118main ()
14119{
14120return readline ();
14121  ;
14122  return 0;
14123}
14124_ACEOF
14125if ac_fn_c_try_link "$LINENO"; then :
14126  ac_cv_lib_readline_readline=yes
14127else
14128  ac_cv_lib_readline_readline=no
14129fi
14130rm -f core conftest.err conftest.$ac_objext \
14131    conftest$ac_exeext conftest.$ac_ext
14132LIBS=$ac_check_lib_save_LIBS
14133fi
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14135$as_echo "$ac_cv_lib_readline_readline" >&6; }
14136if test "x$ac_cv_lib_readline_readline" = xyes; then :
14137  LIBREADLINE="-lncurses"
14138else
14139  unset ac_cv_lib_readline_readline;
14140	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14141$as_echo_n "checking for readline in -lreadline... " >&6; }
14142if ${ac_cv_lib_readline_readline+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  ac_check_lib_save_LIBS=$LIBS
14146LIBS="-lreadline -lncursesw $LIBS"
14147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149
14150/* Override any GCC internal prototype to avoid an error.
14151   Use char because int might match the return type of a GCC
14152   builtin and then its argument prototype would still apply.  */
14153#ifdef __cplusplus
14154extern "C"
14155#endif
14156char readline ();
14157int
14158main ()
14159{
14160return readline ();
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165if ac_fn_c_try_link "$LINENO"; then :
14166  ac_cv_lib_readline_readline=yes
14167else
14168  ac_cv_lib_readline_readline=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext \
14171    conftest$ac_exeext conftest.$ac_ext
14172LIBS=$ac_check_lib_save_LIBS
14173fi
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14175$as_echo "$ac_cv_lib_readline_readline" >&6; }
14176if test "x$ac_cv_lib_readline_readline" = xyes; then :
14177  LIBREADLINE="-lncursesw"
14178else
14179  unset ac_cv_lib_readline_readline;
14180	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14181$as_echo_n "checking for readline in -lreadline... " >&6; }
14182if ${ac_cv_lib_readline_readline+:} false; then :
14183  $as_echo_n "(cached) " >&6
14184else
14185  ac_check_lib_save_LIBS=$LIBS
14186LIBS="-lreadline -ltermcap $LIBS"
14187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188/* end confdefs.h.  */
14189
14190/* Override any GCC internal prototype to avoid an error.
14191   Use char because int might match the return type of a GCC
14192   builtin and then its argument prototype would still apply.  */
14193#ifdef __cplusplus
14194extern "C"
14195#endif
14196char readline ();
14197int
14198main ()
14199{
14200return readline ();
14201  ;
14202  return 0;
14203}
14204_ACEOF
14205if ac_fn_c_try_link "$LINENO"; then :
14206  ac_cv_lib_readline_readline=yes
14207else
14208  ac_cv_lib_readline_readline=no
14209fi
14210rm -f core conftest.err conftest.$ac_objext \
14211    conftest$ac_exeext conftest.$ac_ext
14212LIBS=$ac_check_lib_save_LIBS
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14215$as_echo "$ac_cv_lib_readline_readline" >&6; }
14216if test "x$ac_cv_lib_readline_readline" = xyes; then :
14217  LIBREADLINE="-ltermcap"
14218else
14219  LIBREADLINE=""
14220fi
14221
14222fi
14223
14224fi
14225
14226fi
14227
14228fi
14229
14230fi
14231
14232
14233 if test -n "$LIBREADLINE"; then
14234   if test "$LIBREADLINE" != "-lreadline"; then
14235     echo "-lreadline needs $LIBREADLINE"
14236     LIBREADLINE="-lreadline $LIBREADLINE"
14237   fi
14238 fi
14239fi
14240
14241
14242# Check for the availability of libedit. Different distributions put its
14243# headers in different places. Try to cover the most common ones.
14244
14245if test "$enable_pcre2test_libedit" = "yes"; then
14246  for ac_header in editline/readline.h
14247do :
14248  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
14249if test "x$ac_cv_header_editline_readline_h" = xyes; then :
14250  cat >>confdefs.h <<_ACEOF
14251#define HAVE_EDITLINE_READLINE_H 1
14252_ACEOF
14253 HAVE_EDITLINE_READLINE_H=1
14254else
14255  for ac_header in edit/readline/readline.h
14256do :
14257  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
14258if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
14259  cat >>confdefs.h <<_ACEOF
14260#define HAVE_EDIT_READLINE_READLINE_H 1
14261_ACEOF
14262 HAVE_READLINE_READLINE_H=1
14263else
14264  for ac_header in readline/readline.h
14265do :
14266  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14267if test "x$ac_cv_header_readline_readline_h" = xyes; then :
14268  cat >>confdefs.h <<_ACEOF
14269#define HAVE_READLINE_READLINE_H 1
14270_ACEOF
14271 HAVE_READLINE_READLINE_H=1
14272fi
14273
14274done
14275
14276fi
14277
14278done
14279
14280fi
14281
14282done
14283
14284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
14285$as_echo_n "checking for readline in -ledit... " >&6; }
14286if ${ac_cv_lib_edit_readline+:} false; then :
14287  $as_echo_n "(cached) " >&6
14288else
14289  ac_check_lib_save_LIBS=$LIBS
14290LIBS="-ledit  $LIBS"
14291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293
14294/* Override any GCC internal prototype to avoid an error.
14295   Use char because int might match the return type of a GCC
14296   builtin and then its argument prototype would still apply.  */
14297#ifdef __cplusplus
14298extern "C"
14299#endif
14300char readline ();
14301int
14302main ()
14303{
14304return readline ();
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_link "$LINENO"; then :
14310  ac_cv_lib_edit_readline=yes
14311else
14312  ac_cv_lib_edit_readline=no
14313fi
14314rm -f core conftest.err conftest.$ac_objext \
14315    conftest$ac_exeext conftest.$ac_ext
14316LIBS=$ac_check_lib_save_LIBS
14317fi
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
14319$as_echo "$ac_cv_lib_edit_readline" >&6; }
14320if test "x$ac_cv_lib_edit_readline" = xyes; then :
14321  LIBEDIT="-ledit"
14322fi
14323
14324fi
14325
14326PCRE2_STATIC_CFLAG=""
14327if test "x$enable_shared" = "xno" ; then
14328
14329$as_echo "#define PCRE2_STATIC 1" >>confdefs.h
14330
14331  PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
14332fi
14333
14334
14335# Here is where PCRE2-specific defines are handled
14336
14337if test "$enable_pcre2_8" = "yes"; then
14338
14339$as_echo "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
14340
14341fi
14342
14343if test "$enable_pcre2_16" = "yes"; then
14344
14345$as_echo "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
14346
14347fi
14348
14349if test "$enable_pcre2_32" = "yes"; then
14350
14351$as_echo "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
14352
14353fi
14354
14355if test "$enable_debug" = "yes"; then
14356
14357$as_echo "#define PCRE2_DEBUG /**/" >>confdefs.h
14358
14359fi
14360
14361# Unless running under Windows, JIT support requires pthreads.
14362
14363if test "$enable_jit" = "yes"; then
14364  if test "$HAVE_WINDOWS_H" != "1"; then
14365
14366
14367ac_ext=c
14368ac_cpp='$CPP $CPPFLAGS'
14369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373ax_pthread_ok=no
14374
14375# We used to check for pthread.h first, but this fails if pthread.h
14376# requires special compiler flags (e.g. on True64 or Sequent).
14377# It gets checked for in the link test anyway.
14378
14379# First of all, check if the user has set any of the PTHREAD_LIBS,
14380# etcetera environment variables, and if threads linking works using
14381# them:
14382if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14383        save_CFLAGS="$CFLAGS"
14384        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14385        save_LIBS="$LIBS"
14386        LIBS="$PTHREAD_LIBS $LIBS"
14387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14388$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14389        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390/* end confdefs.h.  */
14391
14392/* Override any GCC internal prototype to avoid an error.
14393   Use char because int might match the return type of a GCC
14394   builtin and then its argument prototype would still apply.  */
14395#ifdef __cplusplus
14396extern "C"
14397#endif
14398char pthread_join ();
14399int
14400main ()
14401{
14402return pthread_join ();
14403  ;
14404  return 0;
14405}
14406_ACEOF
14407if ac_fn_c_try_link "$LINENO"; then :
14408  ax_pthread_ok=yes
14409fi
14410rm -f core conftest.err conftest.$ac_objext \
14411    conftest$ac_exeext conftest.$ac_ext
14412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14413$as_echo "$ax_pthread_ok" >&6; }
14414        if test x"$ax_pthread_ok" = xno; then
14415                PTHREAD_LIBS=""
14416                PTHREAD_CFLAGS=""
14417        fi
14418        LIBS="$save_LIBS"
14419        CFLAGS="$save_CFLAGS"
14420fi
14421
14422# We must check for the threads library under a number of different
14423# names; the ordering is very important because some systems
14424# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14425# libraries is broken (non-POSIX).
14426
14427# Create a list of thread flags to try.  Items starting with a "-" are
14428# C compiler flags, and other items are library names, except for "none"
14429# which indicates that we try without any flags at all, and "pthread-config"
14430# which is a program returning the flags for the Pth emulation library.
14431
14432ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14433
14434# The ordering *is* (sometimes) important.  Some notes on the
14435# individual items follow:
14436
14437# pthreads: AIX (must check this before -lpthread)
14438# none: in case threads are in libc; should be tried before -Kthread and
14439#       other compiler flags to prevent continual compiler warnings
14440# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14441# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14442# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14443# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14444# -pthreads: Solaris/gcc
14445# -mthreads: Mingw32/gcc, Lynx/gcc
14446# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14447#      doesn't hurt to check since this sometimes defines pthreads too;
14448#      also defines -D_REENTRANT)
14449#      ... -mt is also the pthreads flag for HP/aCC
14450# pthread: Linux, etcetera
14451# --thread-safe: KAI C++
14452# pthread-config: use pthread-config program (for GNU Pth library)
14453
14454case ${host_os} in
14455        solaris*)
14456
14457        # On Solaris (at least, for some versions), libc contains stubbed
14458        # (non-functional) versions of the pthreads routines, so link-based
14459        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14460        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14461        # a function called by this macro, so we could check for that, but
14462        # who knows whether they'll stub that too in a future libc.)  So,
14463        # we'll just look for -pthreads and -lpthread first:
14464
14465        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14466        ;;
14467
14468        darwin*)
14469        ax_pthread_flags="-pthread $ax_pthread_flags"
14470        ;;
14471esac
14472
14473if test x"$ax_pthread_ok" = xno; then
14474for flag in $ax_pthread_flags; do
14475
14476        case $flag in
14477                none)
14478                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14479$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14480                ;;
14481
14482                -*)
14483                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14484$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14485                PTHREAD_CFLAGS="$flag"
14486                ;;
14487
14488                pthread-config)
14489                # Extract the first word of "pthread-config", so it can be a program name with args.
14490set dummy pthread-config; ac_word=$2
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492$as_echo_n "checking for $ac_word... " >&6; }
14493if ${ac_cv_prog_ax_pthread_config+:} false; then :
14494  $as_echo_n "(cached) " >&6
14495else
14496  if test -n "$ax_pthread_config"; then
14497  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14498else
14499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500for as_dir in $PATH
14501do
14502  IFS=$as_save_IFS
14503  test -z "$as_dir" && as_dir=.
14504    for ac_exec_ext in '' $ac_executable_extensions; do
14505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14506    ac_cv_prog_ax_pthread_config="yes"
14507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508    break 2
14509  fi
14510done
14511  done
14512IFS=$as_save_IFS
14513
14514  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14515fi
14516fi
14517ax_pthread_config=$ac_cv_prog_ax_pthread_config
14518if test -n "$ax_pthread_config"; then
14519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14520$as_echo "$ax_pthread_config" >&6; }
14521else
14522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523$as_echo "no" >&6; }
14524fi
14525
14526
14527                if test x"$ax_pthread_config" = xno; then continue; fi
14528                PTHREAD_CFLAGS="`pthread-config --cflags`"
14529                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14530                ;;
14531
14532                *)
14533                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14534$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14535                PTHREAD_LIBS="-l$flag"
14536                ;;
14537        esac
14538
14539        save_LIBS="$LIBS"
14540        save_CFLAGS="$CFLAGS"
14541        LIBS="$PTHREAD_LIBS $LIBS"
14542        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14543
14544        # Check for various functions.  We must include pthread.h,
14545        # since some functions may be macros.  (On the Sequent, we
14546        # need a special flag -Kthread to make this header compile.)
14547        # We check for pthread_join because it is in -lpthread on IRIX
14548        # while pthread_create is in libc.  We check for pthread_attr_init
14549        # due to DEC craziness with -lpthreads.  We check for
14550        # pthread_cleanup_push because it is one of the few pthread
14551        # functions on Solaris that doesn't have a non-functional libc stub.
14552        # We try pthread_create on general principles.
14553        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* end confdefs.h.  */
14555#include <pthread.h>
14556                        static void routine(void *a) { a = 0; }
14557                        static void *start_routine(void *a) { return a; }
14558int
14559main ()
14560{
14561pthread_t th; pthread_attr_t attr;
14562                        pthread_create(&th, 0, start_routine, 0);
14563                        pthread_join(th, 0);
14564                        pthread_attr_init(&attr);
14565                        pthread_cleanup_push(routine, 0);
14566                        pthread_cleanup_pop(0) /* ; */
14567  ;
14568  return 0;
14569}
14570_ACEOF
14571if ac_fn_c_try_link "$LINENO"; then :
14572  ax_pthread_ok=yes
14573fi
14574rm -f core conftest.err conftest.$ac_objext \
14575    conftest$ac_exeext conftest.$ac_ext
14576
14577        LIBS="$save_LIBS"
14578        CFLAGS="$save_CFLAGS"
14579
14580        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14581$as_echo "$ax_pthread_ok" >&6; }
14582        if test "x$ax_pthread_ok" = xyes; then
14583                break;
14584        fi
14585
14586        PTHREAD_LIBS=""
14587        PTHREAD_CFLAGS=""
14588done
14589fi
14590
14591# Various other checks:
14592if test "x$ax_pthread_ok" = xyes; then
14593        save_LIBS="$LIBS"
14594        LIBS="$PTHREAD_LIBS $LIBS"
14595        save_CFLAGS="$CFLAGS"
14596        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14597
14598        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14599        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14600$as_echo_n "checking for joinable pthread attribute... " >&6; }
14601        attr_name=unknown
14602        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14603            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604/* end confdefs.h.  */
14605#include <pthread.h>
14606int
14607main ()
14608{
14609int attr = $attr; return attr /* ; */
14610  ;
14611  return 0;
14612}
14613_ACEOF
14614if ac_fn_c_try_link "$LINENO"; then :
14615  attr_name=$attr; break
14616fi
14617rm -f core conftest.err conftest.$ac_objext \
14618    conftest$ac_exeext conftest.$ac_ext
14619        done
14620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14621$as_echo "$attr_name" >&6; }
14622        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14623
14624cat >>confdefs.h <<_ACEOF
14625#define PTHREAD_CREATE_JOINABLE $attr_name
14626_ACEOF
14627
14628        fi
14629
14630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14631$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14632        flag=no
14633        case ${host_os} in
14634            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
14635            osf* | hpux*) flag="-D_REENTRANT";;
14636            solaris*)
14637            if test "$GCC" = "yes"; then
14638                flag="-D_REENTRANT"
14639            else
14640                flag="-mt -D_REENTRANT"
14641            fi
14642            ;;
14643        esac
14644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14645$as_echo "${flag}" >&6; }
14646        if test "x$flag" != xno; then
14647            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14648        fi
14649
14650        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14651$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14652if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655
14656                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657/* end confdefs.h.  */
14658
14659                    #include <pthread.h>
14660int
14661main ()
14662{
14663int i = PTHREAD_PRIO_INHERIT;
14664  ;
14665  return 0;
14666}
14667_ACEOF
14668if ac_fn_c_try_link "$LINENO"; then :
14669  ax_cv_PTHREAD_PRIO_INHERIT=yes
14670else
14671  ax_cv_PTHREAD_PRIO_INHERIT=no
14672fi
14673rm -f core conftest.err conftest.$ac_objext \
14674    conftest$ac_exeext conftest.$ac_ext
14675
14676fi
14677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14678$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14679        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
14680
14681$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14682
14683fi
14684
14685        LIBS="$save_LIBS"
14686        CFLAGS="$save_CFLAGS"
14687
14688        # More AIX lossage: must compile with xlc_r or cc_r
14689        if test x"$GCC" != xyes; then
14690          for ac_prog in xlc_r cc_r
14691do
14692  # Extract the first word of "$ac_prog", so it can be a program name with args.
14693set dummy $ac_prog; ac_word=$2
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695$as_echo_n "checking for $ac_word... " >&6; }
14696if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  if test -n "$PTHREAD_CC"; then
14700  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14701else
14702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14703for as_dir in $PATH
14704do
14705  IFS=$as_save_IFS
14706  test -z "$as_dir" && as_dir=.
14707    for ac_exec_ext in '' $ac_executable_extensions; do
14708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14709    ac_cv_prog_PTHREAD_CC="$ac_prog"
14710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14711    break 2
14712  fi
14713done
14714  done
14715IFS=$as_save_IFS
14716
14717fi
14718fi
14719PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14720if test -n "$PTHREAD_CC"; then
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14722$as_echo "$PTHREAD_CC" >&6; }
14723else
14724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725$as_echo "no" >&6; }
14726fi
14727
14728
14729  test -n "$PTHREAD_CC" && break
14730done
14731test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14732
14733        else
14734          PTHREAD_CC=$CC
14735        fi
14736else
14737        PTHREAD_CC="$CC"
14738fi
14739
14740
14741
14742
14743
14744# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14745if test x"$ax_pthread_ok" = xyes; then
14746
14747$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14748
14749        :
14750else
14751        ax_pthread_ok=no
14752        as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
14753fi
14754ac_ext=c
14755ac_cpp='$CPP $CPPFLAGS'
14756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14758ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759
14760
14761    CC="$PTHREAD_CC"
14762    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14763    LIBS="$PTHREAD_LIBS $LIBS"
14764  fi
14765
14766$as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
14767
14768else
14769  enable_pcre2grep_jit="no"
14770fi
14771
14772if test "$enable_jit_sealloc" = "yes"; then
14773
14774$as_echo "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
14775
14776fi
14777
14778if test "$enable_pcre2grep_jit" = "yes"; then
14779
14780$as_echo "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
14781
14782fi
14783
14784if test "$enable_pcre2grep_callout" = "yes"; then
14785  if test "$HAVE_WINDOWS_H" != "1"; then
14786    if test "$HAVE_SYS_WAIT_H" != "1"; then
14787      as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
14788    fi
14789  fi
14790
14791$as_echo "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
14792
14793fi
14794
14795if test "$enable_unicode" = "yes"; then
14796
14797$as_echo "#define SUPPORT_UNICODE /**/" >>confdefs.h
14798
14799fi
14800
14801if test "$enable_pcre2grep_libz" = "yes"; then
14802
14803$as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
14804
14805fi
14806
14807if test "$enable_pcre2grep_libbz2" = "yes"; then
14808
14809$as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
14810
14811fi
14812
14813if test $with_pcre2grep_bufsize -lt 8192 ; then
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
14815$as_echo "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
14816  with_pcre2grep_bufsize="8192"
14817else
14818  if test $? -gt 1 ; then
14819  as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
14820  fi
14821fi
14822
14823if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
14824  with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
14825else
14826  if test $? -gt 1 ; then
14827  as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
14828  fi
14829fi
14830
14831
14832cat >>confdefs.h <<_ACEOF
14833#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize
14834_ACEOF
14835
14836
14837
14838cat >>confdefs.h <<_ACEOF
14839#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize
14840_ACEOF
14841
14842
14843if test "$enable_pcre2test_libedit" = "yes"; then
14844
14845$as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
14846
14847  LIBREADLINE="$LIBEDIT"
14848elif test "$enable_pcre2test_libreadline" = "yes"; then
14849
14850$as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
14851
14852fi
14853
14854
14855cat >>confdefs.h <<_ACEOF
14856#define NEWLINE_DEFAULT $ac_pcre2_newline_value
14857_ACEOF
14858
14859
14860if test "$enable_bsr_anycrlf" = "yes"; then
14861
14862$as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
14863
14864fi
14865
14866if test "$enable_never_backslash_C" = "yes"; then
14867
14868$as_echo "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
14869
14870fi
14871
14872
14873cat >>confdefs.h <<_ACEOF
14874#define LINK_SIZE $with_link_size
14875_ACEOF
14876
14877
14878
14879cat >>confdefs.h <<_ACEOF
14880#define PARENS_NEST_LIMIT $with_parens_nest_limit
14881_ACEOF
14882
14883
14884
14885cat >>confdefs.h <<_ACEOF
14886#define MATCH_LIMIT $with_match_limit
14887_ACEOF
14888
14889
14890# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
14891
14892if test "$with_match_limit_recursion" != "UNSET"; then
14893cat <<EOF
14894
14895WARNING: --with-match-limit-recursion is an obsolete option. Please use
14896  --with-match-limit-depth in future. If both are set, --with-match-limit-depth
14897  will be used. See also --with-heap-limit.
14898
14899EOF
14900if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
14901  with_match_limit_depth=$with_match_limit_recursion
14902fi
14903fi
14904
14905
14906cat >>confdefs.h <<_ACEOF
14907#define MATCH_LIMIT_DEPTH $with_match_limit_depth
14908_ACEOF
14909
14910
14911
14912cat >>confdefs.h <<_ACEOF
14913#define HEAP_LIMIT $with_heap_limit
14914_ACEOF
14915
14916
14917
14918$as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
14919
14920
14921
14922$as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
14923
14924
14925
14926
14927if test "$enable_ebcdic" = "yes"; then
14928
14929cat >>confdefs.h <<_ACEOF
14930#define EBCDIC /**/
14931_ACEOF
14932
14933fi
14934
14935if test "$enable_ebcdic_nl25" = "yes"; then
14936
14937cat >>confdefs.h <<_ACEOF
14938#define EBCDIC_NL25 /**/
14939_ACEOF
14940
14941fi
14942
14943if test "$enable_valgrind" = "yes"; then
14944
14945cat >>confdefs.h <<_ACEOF
14946#define SUPPORT_VALGRIND /**/
14947_ACEOF
14948
14949fi
14950
14951# Platform specific issues
14952NO_UNDEFINED=
14953EXPORT_ALL_SYMBOLS=
14954case $host_os in
14955  cygwin* | mingw* )
14956    if test X"$enable_shared" = Xyes; then
14957      NO_UNDEFINED="-no-undefined"
14958      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
14959    fi
14960    ;;
14961esac
14962
14963# The extra LDFLAGS for each particular library. The libpcre2*_version values
14964# are m4 variables, assigned above.
14965
14966EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
14967  $NO_UNDEFINED -version-info 7:1:7"
14968
14969EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
14970  $NO_UNDEFINED -version-info 7:1:7"
14971
14972EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
14973  $NO_UNDEFINED -version-info 7:1:7"
14974
14975EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
14976  $NO_UNDEFINED -version-info 2:1:0"
14977
14978
14979
14980
14981
14982
14983# When we run 'make distcheck', use these arguments. Turning off compiler
14984# optimization makes it run faster.
14985DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
14986
14987
14988# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
14989# specified, the relevant library is available.
14990
14991if test "$enable_pcre2grep_libz" = "yes"; then
14992  if test "$HAVE_ZLIB_H" != "1"; then
14993    echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
14994    exit 1
14995  fi
14996  if test "$HAVE_LIBZ" != "1"; then
14997    echo "** Cannot --enable-pcre2grep-libz because libz was not found"
14998    exit 1
14999  fi
15000  LIBZ="-lz"
15001fi
15002
15003
15004if test "$enable_pcre2grep_libbz2" = "yes"; then
15005  if test "$HAVE_BZLIB_H" != "1"; then
15006    echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
15007    exit 1
15008  fi
15009  if test "$HAVE_LIBBZ2" != "1"; then
15010    echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
15011    exit 1
15012  fi
15013  LIBBZ2="-lbz2"
15014fi
15015
15016
15017# Similarly for --enable-pcre2test-readline
15018
15019if test "$enable_pcre2test_libedit" = "yes"; then
15020  if test "$enable_pcre2test_libreadline" = "yes"; then
15021    echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
15022    exit 1
15023  fi
15024  if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
15025          "$HAVE_READLINE_READLINE_H" != "1"; then
15026    echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h"
15027    echo "** nor readline/readline.h was found."
15028    exit 1
15029  fi
15030  if test -z "$LIBEDIT"; then
15031    echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
15032    exit 1
15033  fi
15034fi
15035
15036if test "$enable_pcre2test_libreadline" = "yes"; then
15037  if test "$HAVE_READLINE_H" != "1"; then
15038    echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
15039    exit 1
15040  fi
15041  if test "$HAVE_HISTORY_H" != "1"; then
15042    echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
15043    exit 1
15044  fi
15045  if test -z "$LIBREADLINE"; then
15046    echo "** Cannot --enable-pcre2test-readline because readline library was not found."
15047    exit 1
15048  fi
15049fi
15050
15051# Handle valgrind support
15052
15053if test "$enable_valgrind" = "yes"; then
15054
15055
15056
15057
15058
15059
15060
15061if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15062	if test -n "$ac_tool_prefix"; then
15063  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15064set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15066$as_echo_n "checking for $ac_word... " >&6; }
15067if ${ac_cv_path_PKG_CONFIG+:} false; then :
15068  $as_echo_n "(cached) " >&6
15069else
15070  case $PKG_CONFIG in
15071  [\\/]* | ?:[\\/]*)
15072  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15073  ;;
15074  *)
15075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076for as_dir in $PATH
15077do
15078  IFS=$as_save_IFS
15079  test -z "$as_dir" && as_dir=.
15080    for ac_exec_ext in '' $ac_executable_extensions; do
15081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15082    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15084    break 2
15085  fi
15086done
15087  done
15088IFS=$as_save_IFS
15089
15090  ;;
15091esac
15092fi
15093PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15094if test -n "$PKG_CONFIG"; then
15095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15096$as_echo "$PKG_CONFIG" >&6; }
15097else
15098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099$as_echo "no" >&6; }
15100fi
15101
15102
15103fi
15104if test -z "$ac_cv_path_PKG_CONFIG"; then
15105  ac_pt_PKG_CONFIG=$PKG_CONFIG
15106  # Extract the first word of "pkg-config", so it can be a program name with args.
15107set dummy pkg-config; ac_word=$2
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15109$as_echo_n "checking for $ac_word... " >&6; }
15110if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15111  $as_echo_n "(cached) " >&6
15112else
15113  case $ac_pt_PKG_CONFIG in
15114  [\\/]* | ?:[\\/]*)
15115  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15116  ;;
15117  *)
15118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15119for as_dir in $PATH
15120do
15121  IFS=$as_save_IFS
15122  test -z "$as_dir" && as_dir=.
15123    for ac_exec_ext in '' $ac_executable_extensions; do
15124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15125    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15127    break 2
15128  fi
15129done
15130  done
15131IFS=$as_save_IFS
15132
15133  ;;
15134esac
15135fi
15136ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15137if test -n "$ac_pt_PKG_CONFIG"; then
15138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15139$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15140else
15141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142$as_echo "no" >&6; }
15143fi
15144
15145  if test "x$ac_pt_PKG_CONFIG" = x; then
15146    PKG_CONFIG=""
15147  else
15148    case $cross_compiling:$ac_tool_warned in
15149yes:)
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15152ac_tool_warned=yes ;;
15153esac
15154    PKG_CONFIG=$ac_pt_PKG_CONFIG
15155  fi
15156else
15157  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15158fi
15159
15160fi
15161if test -n "$PKG_CONFIG"; then
15162	_pkg_min_version=0.9.0
15163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15164$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15165	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15167$as_echo "yes" >&6; }
15168	else
15169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170$as_echo "no" >&6; }
15171		PKG_CONFIG=""
15172	fi
15173fi
15174
15175pkg_failed=no
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
15177$as_echo_n "checking for VALGRIND... " >&6; }
15178
15179if test -n "$VALGRIND_CFLAGS"; then
15180    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
15181 elif test -n "$PKG_CONFIG"; then
15182    if test -n "$PKG_CONFIG" && \
15183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15184  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15185  ac_status=$?
15186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15187  test $ac_status = 0; }; then
15188  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
15189		      test "x$?" != "x0" && pkg_failed=yes
15190else
15191  pkg_failed=yes
15192fi
15193 else
15194    pkg_failed=untried
15195fi
15196if test -n "$VALGRIND_LIBS"; then
15197    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
15198 elif test -n "$PKG_CONFIG"; then
15199    if test -n "$PKG_CONFIG" && \
15200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
15201  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
15202  ac_status=$?
15203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15204  test $ac_status = 0; }; then
15205  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
15206		      test "x$?" != "x0" && pkg_failed=yes
15207else
15208  pkg_failed=yes
15209fi
15210 else
15211    pkg_failed=untried
15212fi
15213
15214
15215
15216if test $pkg_failed = yes; then
15217   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218$as_echo "no" >&6; }
15219
15220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15221        _pkg_short_errors_supported=yes
15222else
15223        _pkg_short_errors_supported=no
15224fi
15225        if test $_pkg_short_errors_supported = yes; then
15226	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
15227        else
15228	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
15229        fi
15230	# Put the nasty error message in config.log where it belongs
15231	echo "$VALGRIND_PKG_ERRORS" >&5
15232
15233	as_fn_error $? "Package requirements (valgrind) were not met:
15234
15235$VALGRIND_PKG_ERRORS
15236
15237Consider adjusting the PKG_CONFIG_PATH environment variable if you
15238installed software in a non-standard prefix.
15239
15240Alternatively, you may set the environment variables VALGRIND_CFLAGS
15241and VALGRIND_LIBS to avoid the need to call pkg-config.
15242See the pkg-config man page for more details." "$LINENO" 5
15243elif test $pkg_failed = untried; then
15244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245$as_echo "no" >&6; }
15246	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15249is in your PATH or set the PKG_CONFIG environment variable to the full
15250path to pkg-config.
15251
15252Alternatively, you may set the environment variables VALGRIND_CFLAGS
15253and VALGRIND_LIBS to avoid the need to call pkg-config.
15254See the pkg-config man page for more details.
15255
15256To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15257See \`config.log' for more details" "$LINENO" 5; }
15258else
15259	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
15260	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
15261        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15262$as_echo "yes" >&6; }
15263
15264fi
15265fi
15266
15267# Handle code coverage reporting support
15268if test "$enable_coverage" = "yes"; then
15269  if test "x$GCC" != "xyes"; then
15270    as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
15271  fi
15272
15273  # ccache is incompatible with gcov
15274  # Extract the first word of "shtool", so it can be a program name with args.
15275set dummy shtool; ac_word=$2
15276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15277$as_echo_n "checking for $ac_word... " >&6; }
15278if ${ac_cv_path_SHTOOL+:} false; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  case $SHTOOL in
15282  [\\/]* | ?:[\\/]*)
15283  ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
15284  ;;
15285  *)
15286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287for as_dir in $PATH
15288do
15289  IFS=$as_save_IFS
15290  test -z "$as_dir" && as_dir=.
15291    for ac_exec_ext in '' $ac_executable_extensions; do
15292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293    ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
15294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15295    break 2
15296  fi
15297done
15298  done
15299IFS=$as_save_IFS
15300
15301  test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
15302  ;;
15303esac
15304fi
15305SHTOOL=$ac_cv_path_SHTOOL
15306if test -n "$SHTOOL"; then
15307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
15308$as_echo "$SHTOOL" >&6; }
15309else
15310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311$as_echo "no" >&6; }
15312fi
15313
15314
15315  case `$SHTOOL path $CC` in
15316    *ccache*) cc_ccache=yes;;
15317    *) cc_ccache=no;;
15318  esac
15319
15320  if test "$cc_ccache" = "yes"; then
15321    if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
15322      as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
15323    fi
15324  fi
15325
15326
15327  # Extract the first word of "lcov", so it can be a program name with args.
15328set dummy lcov; ac_word=$2
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15330$as_echo_n "checking for $ac_word... " >&6; }
15331if ${ac_cv_path_LCOV+:} false; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  case $LCOV in
15335  [\\/]* | ?:[\\/]*)
15336  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
15337  ;;
15338  *)
15339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340for as_dir in $PATH
15341do
15342  IFS=$as_save_IFS
15343  test -z "$as_dir" && as_dir=.
15344    for ac_exec_ext in '' $ac_executable_extensions; do
15345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15346    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
15347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15348    break 2
15349  fi
15350done
15351  done
15352IFS=$as_save_IFS
15353
15354  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
15355  ;;
15356esac
15357fi
15358LCOV=$ac_cv_path_LCOV
15359if test -n "$LCOV"; then
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15361$as_echo "$LCOV" >&6; }
15362else
15363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364$as_echo "no" >&6; }
15365fi
15366
15367
15368  if test "x$LCOV" = "xfalse"; then
15369    as_fn_error $? "lcov not found" "$LINENO" 5
15370  fi
15371
15372
15373  # Extract the first word of "genhtml", so it can be a program name with args.
15374set dummy genhtml; ac_word=$2
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15376$as_echo_n "checking for $ac_word... " >&6; }
15377if ${ac_cv_path_GENHTML+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  case $GENHTML in
15381  [\\/]* | ?:[\\/]*)
15382  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
15383  ;;
15384  *)
15385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386for as_dir in $PATH
15387do
15388  IFS=$as_save_IFS
15389  test -z "$as_dir" && as_dir=.
15390    for ac_exec_ext in '' $ac_executable_extensions; do
15391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392    ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
15393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15394    break 2
15395  fi
15396done
15397  done
15398IFS=$as_save_IFS
15399
15400  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
15401  ;;
15402esac
15403fi
15404GENHTML=$ac_cv_path_GENHTML
15405if test -n "$GENHTML"; then
15406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15407$as_echo "$GENHTML" >&6; }
15408else
15409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410$as_echo "no" >&6; }
15411fi
15412
15413
15414  if test "x$GENHTML" = "xfalse"; then
15415    as_fn_error $? "genhtml not found" "$LINENO" 5
15416  fi
15417
15418  # Set flags needed for gcov
15419  GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
15420  GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
15421  GCOV_LIBS="-lgcov"
15422
15423
15424
15425fi # enable_coverage
15426
15427 if test "x$enable_coverage" = "xyes"; then
15428  WITH_GCOV_TRUE=
15429  WITH_GCOV_FALSE='#'
15430else
15431  WITH_GCOV_TRUE='#'
15432  WITH_GCOV_FALSE=
15433fi
15434
15435
15436# Produce these files, in addition to config.h.
15437ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
15438
15439
15440# Make the generated script files executable.
15441ac_config_commands="$ac_config_commands script-chmod"
15442
15443
15444# Make sure that pcre2_chartables.c is removed in case the method for
15445# creating it was changed by reconfiguration.
15446ac_config_commands="$ac_config_commands delete-old-chartables"
15447
15448
15449cat >confcache <<\_ACEOF
15450# This file is a shell script that caches the results of configure
15451# tests run on this system so they can be shared between configure
15452# scripts and configure runs, see configure's option --config-cache.
15453# It is not useful on other systems.  If it contains results you don't
15454# want to keep, you may remove or edit it.
15455#
15456# config.status only pays attention to the cache file if you give it
15457# the --recheck option to rerun configure.
15458#
15459# `ac_cv_env_foo' variables (set or unset) will be overridden when
15460# loading this file, other *unset* `ac_cv_foo' will be assigned the
15461# following values.
15462
15463_ACEOF
15464
15465# The following way of writing the cache mishandles newlines in values,
15466# but we know of no workaround that is simple, portable, and efficient.
15467# So, we kill variables containing newlines.
15468# Ultrix sh set writes to stderr and can't be redirected directly,
15469# and sets the high bit in the cache file unless we assign to the vars.
15470(
15471  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15472    eval ac_val=\$$ac_var
15473    case $ac_val in #(
15474    *${as_nl}*)
15475      case $ac_var in #(
15476      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15477$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15478      esac
15479      case $ac_var in #(
15480      _ | IFS | as_nl) ;; #(
15481      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15482      *) { eval $ac_var=; unset $ac_var;} ;;
15483      esac ;;
15484    esac
15485  done
15486
15487  (set) 2>&1 |
15488    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15489    *${as_nl}ac_space=\ *)
15490      # `set' does not quote correctly, so add quotes: double-quote
15491      # substitution turns \\\\ into \\, and sed turns \\ into \.
15492      sed -n \
15493	"s/'/'\\\\''/g;
15494	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15495      ;; #(
15496    *)
15497      # `set' quotes correctly as required by POSIX, so do not add quotes.
15498      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15499      ;;
15500    esac |
15501    sort
15502) |
15503  sed '
15504     /^ac_cv_env_/b end
15505     t clear
15506     :clear
15507     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15508     t end
15509     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15510     :end' >>confcache
15511if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15512  if test -w "$cache_file"; then
15513    if test "x$cache_file" != "x/dev/null"; then
15514      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15515$as_echo "$as_me: updating cache $cache_file" >&6;}
15516      if test ! -f "$cache_file" || test -h "$cache_file"; then
15517	cat confcache >"$cache_file"
15518      else
15519        case $cache_file in #(
15520        */* | ?:*)
15521	  mv -f confcache "$cache_file"$$ &&
15522	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15523        *)
15524	  mv -f confcache "$cache_file" ;;
15525	esac
15526      fi
15527    fi
15528  else
15529    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15530$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15531  fi
15532fi
15533rm -f confcache
15534
15535test "x$prefix" = xNONE && prefix=$ac_default_prefix
15536# Let make expand exec_prefix.
15537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15538
15539DEFS=-DHAVE_CONFIG_H
15540
15541ac_libobjs=
15542ac_ltlibobjs=
15543U=
15544for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15545  # 1. Remove the extension, and $U if already installed.
15546  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15547  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15548  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15549  #    will be set to the directory where LIBOBJS objects are built.
15550  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15551  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15552done
15553LIBOBJS=$ac_libobjs
15554
15555LTLIBOBJS=$ac_ltlibobjs
15556
15557
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15559$as_echo_n "checking that generated files are newer than configure... " >&6; }
15560   if test -n "$am_sleep_pid"; then
15561     # Hide warnings about reused PIDs.
15562     wait $am_sleep_pid 2>/dev/null
15563   fi
15564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15565$as_echo "done" >&6; }
15566 if test -n "$EXEEXT"; then
15567  am__EXEEXT_TRUE=
15568  am__EXEEXT_FALSE='#'
15569else
15570  am__EXEEXT_TRUE='#'
15571  am__EXEEXT_FALSE=
15572fi
15573
15574if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15575  as_fn_error $? "conditional \"AMDEP\" was never defined.
15576Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577fi
15578if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15579  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15580Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581fi
15582if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
15583  as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
15584Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585fi
15586if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
15587  as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
15588Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589fi
15590if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
15591  as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
15592Usually this means the macro was only invoked conditionally." "$LINENO" 5
15593fi
15594if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
15595  as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
15596Usually this means the macro was only invoked conditionally." "$LINENO" 5
15597fi
15598if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
15599  as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
15600Usually this means the macro was only invoked conditionally." "$LINENO" 5
15601fi
15602if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
15603  as_fn_error $? "conditional \"WITH_JIT\" was never defined.
15604Usually this means the macro was only invoked conditionally." "$LINENO" 5
15605fi
15606if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
15607  as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
15608Usually this means the macro was only invoked conditionally." "$LINENO" 5
15609fi
15610if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
15611  as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
15612Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613fi
15614if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
15615  as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
15616Usually this means the macro was only invoked conditionally." "$LINENO" 5
15617fi
15618if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
15619  as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
15620Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621fi
15622
15623: "${CONFIG_STATUS=./config.status}"
15624ac_write_fail=0
15625ac_clean_files_save=$ac_clean_files
15626ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15628$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15629as_write_fail=0
15630cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15631#! $SHELL
15632# Generated by $as_me.
15633# Run this file to recreate the current configuration.
15634# Compiler output produced by configure, useful for debugging
15635# configure, is in config.log if it exists.
15636
15637debug=false
15638ac_cs_recheck=false
15639ac_cs_silent=false
15640
15641SHELL=\${CONFIG_SHELL-$SHELL}
15642export SHELL
15643_ASEOF
15644cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15645## -------------------- ##
15646## M4sh Initialization. ##
15647## -------------------- ##
15648
15649# Be more Bourne compatible
15650DUALCASE=1; export DUALCASE # for MKS sh
15651if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15652  emulate sh
15653  NULLCMD=:
15654  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15655  # is contrary to our usage.  Disable this feature.
15656  alias -g '${1+"$@"}'='"$@"'
15657  setopt NO_GLOB_SUBST
15658else
15659  case `(set -o) 2>/dev/null` in #(
15660  *posix*) :
15661    set -o posix ;; #(
15662  *) :
15663     ;;
15664esac
15665fi
15666
15667
15668as_nl='
15669'
15670export as_nl
15671# Printing a long string crashes Solaris 7 /usr/bin/printf.
15672as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15673as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15675# Prefer a ksh shell builtin over an external printf program on Solaris,
15676# but without wasting forks for bash or zsh.
15677if test -z "$BASH_VERSION$ZSH_VERSION" \
15678    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15679  as_echo='print -r --'
15680  as_echo_n='print -rn --'
15681elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15682  as_echo='printf %s\n'
15683  as_echo_n='printf %s'
15684else
15685  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15686    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15687    as_echo_n='/usr/ucb/echo -n'
15688  else
15689    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15690    as_echo_n_body='eval
15691      arg=$1;
15692      case $arg in #(
15693      *"$as_nl"*)
15694	expr "X$arg" : "X\\(.*\\)$as_nl";
15695	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15696      esac;
15697      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15698    '
15699    export as_echo_n_body
15700    as_echo_n='sh -c $as_echo_n_body as_echo'
15701  fi
15702  export as_echo_body
15703  as_echo='sh -c $as_echo_body as_echo'
15704fi
15705
15706# The user is always right.
15707if test "${PATH_SEPARATOR+set}" != set; then
15708  PATH_SEPARATOR=:
15709  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15710    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15711      PATH_SEPARATOR=';'
15712  }
15713fi
15714
15715
15716# IFS
15717# We need space, tab and new line, in precisely that order.  Quoting is
15718# there to prevent editors from complaining about space-tab.
15719# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15720# splitting by setting IFS to empty value.)
15721IFS=" ""	$as_nl"
15722
15723# Find who we are.  Look in the path if we contain no directory separator.
15724as_myself=
15725case $0 in #((
15726  *[\\/]* ) as_myself=$0 ;;
15727  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728for as_dir in $PATH
15729do
15730  IFS=$as_save_IFS
15731  test -z "$as_dir" && as_dir=.
15732    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15733  done
15734IFS=$as_save_IFS
15735
15736     ;;
15737esac
15738# We did not find ourselves, most probably we were run as `sh COMMAND'
15739# in which case we are not to be found in the path.
15740if test "x$as_myself" = x; then
15741  as_myself=$0
15742fi
15743if test ! -f "$as_myself"; then
15744  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15745  exit 1
15746fi
15747
15748# Unset variables that we do not need and which cause bugs (e.g. in
15749# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15750# suppresses any "Segmentation fault" message there.  '((' could
15751# trigger a bug in pdksh 5.2.14.
15752for as_var in BASH_ENV ENV MAIL MAILPATH
15753do eval test x\${$as_var+set} = xset \
15754  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15755done
15756PS1='$ '
15757PS2='> '
15758PS4='+ '
15759
15760# NLS nuisances.
15761LC_ALL=C
15762export LC_ALL
15763LANGUAGE=C
15764export LANGUAGE
15765
15766# CDPATH.
15767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15768
15769
15770# as_fn_error STATUS ERROR [LINENO LOG_FD]
15771# ----------------------------------------
15772# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15773# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15774# script with STATUS, using 1 if that was 0.
15775as_fn_error ()
15776{
15777  as_status=$1; test $as_status -eq 0 && as_status=1
15778  if test "$4"; then
15779    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15780    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15781  fi
15782  $as_echo "$as_me: error: $2" >&2
15783  as_fn_exit $as_status
15784} # as_fn_error
15785
15786
15787# as_fn_set_status STATUS
15788# -----------------------
15789# Set $? to STATUS, without forking.
15790as_fn_set_status ()
15791{
15792  return $1
15793} # as_fn_set_status
15794
15795# as_fn_exit STATUS
15796# -----------------
15797# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15798as_fn_exit ()
15799{
15800  set +e
15801  as_fn_set_status $1
15802  exit $1
15803} # as_fn_exit
15804
15805# as_fn_unset VAR
15806# ---------------
15807# Portably unset VAR.
15808as_fn_unset ()
15809{
15810  { eval $1=; unset $1;}
15811}
15812as_unset=as_fn_unset
15813# as_fn_append VAR VALUE
15814# ----------------------
15815# Append the text in VALUE to the end of the definition contained in VAR. Take
15816# advantage of any shell optimizations that allow amortized linear growth over
15817# repeated appends, instead of the typical quadratic growth present in naive
15818# implementations.
15819if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15820  eval 'as_fn_append ()
15821  {
15822    eval $1+=\$2
15823  }'
15824else
15825  as_fn_append ()
15826  {
15827    eval $1=\$$1\$2
15828  }
15829fi # as_fn_append
15830
15831# as_fn_arith ARG...
15832# ------------------
15833# Perform arithmetic evaluation on the ARGs, and store the result in the
15834# global $as_val. Take advantage of shells that can avoid forks. The arguments
15835# must be portable across $(()) and expr.
15836if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15837  eval 'as_fn_arith ()
15838  {
15839    as_val=$(( $* ))
15840  }'
15841else
15842  as_fn_arith ()
15843  {
15844    as_val=`expr "$@" || test $? -eq 1`
15845  }
15846fi # as_fn_arith
15847
15848
15849if expr a : '\(a\)' >/dev/null 2>&1 &&
15850   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15851  as_expr=expr
15852else
15853  as_expr=false
15854fi
15855
15856if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15857  as_basename=basename
15858else
15859  as_basename=false
15860fi
15861
15862if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15863  as_dirname=dirname
15864else
15865  as_dirname=false
15866fi
15867
15868as_me=`$as_basename -- "$0" ||
15869$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15870	 X"$0" : 'X\(//\)$' \| \
15871	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15872$as_echo X/"$0" |
15873    sed '/^.*\/\([^/][^/]*\)\/*$/{
15874	    s//\1/
15875	    q
15876	  }
15877	  /^X\/\(\/\/\)$/{
15878	    s//\1/
15879	    q
15880	  }
15881	  /^X\/\(\/\).*/{
15882	    s//\1/
15883	    q
15884	  }
15885	  s/.*/./; q'`
15886
15887# Avoid depending upon Character Ranges.
15888as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15889as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15890as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15891as_cr_digits='0123456789'
15892as_cr_alnum=$as_cr_Letters$as_cr_digits
15893
15894ECHO_C= ECHO_N= ECHO_T=
15895case `echo -n x` in #(((((
15896-n*)
15897  case `echo 'xy\c'` in
15898  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15899  xy)  ECHO_C='\c';;
15900  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15901       ECHO_T='	';;
15902  esac;;
15903*)
15904  ECHO_N='-n';;
15905esac
15906
15907rm -f conf$$ conf$$.exe conf$$.file
15908if test -d conf$$.dir; then
15909  rm -f conf$$.dir/conf$$.file
15910else
15911  rm -f conf$$.dir
15912  mkdir conf$$.dir 2>/dev/null
15913fi
15914if (echo >conf$$.file) 2>/dev/null; then
15915  if ln -s conf$$.file conf$$ 2>/dev/null; then
15916    as_ln_s='ln -s'
15917    # ... but there are two gotchas:
15918    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15919    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15920    # In both cases, we have to default to `cp -pR'.
15921    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15922      as_ln_s='cp -pR'
15923  elif ln conf$$.file conf$$ 2>/dev/null; then
15924    as_ln_s=ln
15925  else
15926    as_ln_s='cp -pR'
15927  fi
15928else
15929  as_ln_s='cp -pR'
15930fi
15931rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15932rmdir conf$$.dir 2>/dev/null
15933
15934
15935# as_fn_mkdir_p
15936# -------------
15937# Create "$as_dir" as a directory, including parents if necessary.
15938as_fn_mkdir_p ()
15939{
15940
15941  case $as_dir in #(
15942  -*) as_dir=./$as_dir;;
15943  esac
15944  test -d "$as_dir" || eval $as_mkdir_p || {
15945    as_dirs=
15946    while :; do
15947      case $as_dir in #(
15948      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15949      *) as_qdir=$as_dir;;
15950      esac
15951      as_dirs="'$as_qdir' $as_dirs"
15952      as_dir=`$as_dirname -- "$as_dir" ||
15953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15954	 X"$as_dir" : 'X\(//\)[^/]' \| \
15955	 X"$as_dir" : 'X\(//\)$' \| \
15956	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15957$as_echo X"$as_dir" |
15958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15959	    s//\1/
15960	    q
15961	  }
15962	  /^X\(\/\/\)[^/].*/{
15963	    s//\1/
15964	    q
15965	  }
15966	  /^X\(\/\/\)$/{
15967	    s//\1/
15968	    q
15969	  }
15970	  /^X\(\/\).*/{
15971	    s//\1/
15972	    q
15973	  }
15974	  s/.*/./; q'`
15975      test -d "$as_dir" && break
15976    done
15977    test -z "$as_dirs" || eval "mkdir $as_dirs"
15978  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15979
15980
15981} # as_fn_mkdir_p
15982if mkdir -p . 2>/dev/null; then
15983  as_mkdir_p='mkdir -p "$as_dir"'
15984else
15985  test -d ./-p && rmdir ./-p
15986  as_mkdir_p=false
15987fi
15988
15989
15990# as_fn_executable_p FILE
15991# -----------------------
15992# Test if FILE is an executable regular file.
15993as_fn_executable_p ()
15994{
15995  test -f "$1" && test -x "$1"
15996} # as_fn_executable_p
15997as_test_x='test -x'
15998as_executable_p=as_fn_executable_p
15999
16000# Sed expression to map a string onto a valid CPP name.
16001as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16002
16003# Sed expression to map a string onto a valid variable name.
16004as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16005
16006
16007exec 6>&1
16008## ----------------------------------- ##
16009## Main body of $CONFIG_STATUS script. ##
16010## ----------------------------------- ##
16011_ASEOF
16012test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16013
16014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16015# Save the log message, to keep $0 and so on meaningful, and to
16016# report actual input values of CONFIG_FILES etc. instead of their
16017# values after options handling.
16018ac_log="
16019This file was extended by PCRE2 $as_me 10.32, which was
16020generated by GNU Autoconf 2.69.  Invocation command line was
16021
16022  CONFIG_FILES    = $CONFIG_FILES
16023  CONFIG_HEADERS  = $CONFIG_HEADERS
16024  CONFIG_LINKS    = $CONFIG_LINKS
16025  CONFIG_COMMANDS = $CONFIG_COMMANDS
16026  $ $0 $@
16027
16028on `(hostname || uname -n) 2>/dev/null | sed 1q`
16029"
16030
16031_ACEOF
16032
16033case $ac_config_files in *"
16034"*) set x $ac_config_files; shift; ac_config_files=$*;;
16035esac
16036
16037case $ac_config_headers in *"
16038"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16039esac
16040
16041
16042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043# Files that config.status was made for.
16044config_files="$ac_config_files"
16045config_headers="$ac_config_headers"
16046config_commands="$ac_config_commands"
16047
16048_ACEOF
16049
16050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16051ac_cs_usage="\
16052\`$as_me' instantiates files and other configuration actions
16053from templates according to the current configuration.  Unless the files
16054and actions are specified as TAGs, all are instantiated by default.
16055
16056Usage: $0 [OPTION]... [TAG]...
16057
16058  -h, --help       print this help, then exit
16059  -V, --version    print version number and configuration settings, then exit
16060      --config     print configuration, then exit
16061  -q, --quiet, --silent
16062                   do not print progress messages
16063  -d, --debug      don't remove temporary files
16064      --recheck    update $as_me by reconfiguring in the same conditions
16065      --file=FILE[:TEMPLATE]
16066                   instantiate the configuration file FILE
16067      --header=FILE[:TEMPLATE]
16068                   instantiate the configuration header FILE
16069
16070Configuration files:
16071$config_files
16072
16073Configuration headers:
16074$config_headers
16075
16076Configuration commands:
16077$config_commands
16078
16079Report bugs to the package provider."
16080
16081_ACEOF
16082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16083ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16084ac_cs_version="\\
16085PCRE2 config.status 10.32
16086configured by $0, generated by GNU Autoconf 2.69,
16087  with options \\"\$ac_cs_config\\"
16088
16089Copyright (C) 2012 Free Software Foundation, Inc.
16090This config.status script is free software; the Free Software Foundation
16091gives unlimited permission to copy, distribute and modify it."
16092
16093ac_pwd='$ac_pwd'
16094srcdir='$srcdir'
16095INSTALL='$INSTALL'
16096MKDIR_P='$MKDIR_P'
16097AWK='$AWK'
16098test -n "\$AWK" || AWK=awk
16099_ACEOF
16100
16101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16102# The default lists apply if the user does not specify any file.
16103ac_need_defaults=:
16104while test $# != 0
16105do
16106  case $1 in
16107  --*=?*)
16108    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16109    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16110    ac_shift=:
16111    ;;
16112  --*=)
16113    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16114    ac_optarg=
16115    ac_shift=:
16116    ;;
16117  *)
16118    ac_option=$1
16119    ac_optarg=$2
16120    ac_shift=shift
16121    ;;
16122  esac
16123
16124  case $ac_option in
16125  # Handling of the options.
16126  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16127    ac_cs_recheck=: ;;
16128  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16129    $as_echo "$ac_cs_version"; exit ;;
16130  --config | --confi | --conf | --con | --co | --c )
16131    $as_echo "$ac_cs_config"; exit ;;
16132  --debug | --debu | --deb | --de | --d | -d )
16133    debug=: ;;
16134  --file | --fil | --fi | --f )
16135    $ac_shift
16136    case $ac_optarg in
16137    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16138    '') as_fn_error $? "missing file argument" ;;
16139    esac
16140    as_fn_append CONFIG_FILES " '$ac_optarg'"
16141    ac_need_defaults=false;;
16142  --header | --heade | --head | --hea )
16143    $ac_shift
16144    case $ac_optarg in
16145    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16146    esac
16147    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16148    ac_need_defaults=false;;
16149  --he | --h)
16150    # Conflict between --help and --header
16151    as_fn_error $? "ambiguous option: \`$1'
16152Try \`$0 --help' for more information.";;
16153  --help | --hel | -h )
16154    $as_echo "$ac_cs_usage"; exit ;;
16155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16156  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16157    ac_cs_silent=: ;;
16158
16159  # This is an error.
16160  -*) as_fn_error $? "unrecognized option: \`$1'
16161Try \`$0 --help' for more information." ;;
16162
16163  *) as_fn_append ac_config_targets " $1"
16164     ac_need_defaults=false ;;
16165
16166  esac
16167  shift
16168done
16169
16170ac_configure_extra_args=
16171
16172if $ac_cs_silent; then
16173  exec 6>/dev/null
16174  ac_configure_extra_args="$ac_configure_extra_args --silent"
16175fi
16176
16177_ACEOF
16178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16179if \$ac_cs_recheck; then
16180  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16181  shift
16182  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16183  CONFIG_SHELL='$SHELL'
16184  export CONFIG_SHELL
16185  exec "\$@"
16186fi
16187
16188_ACEOF
16189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190exec 5>>config.log
16191{
16192  echo
16193  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16194## Running $as_me. ##
16195_ASBOX
16196  $as_echo "$ac_log"
16197} >&5
16198
16199_ACEOF
16200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201#
16202# INIT-COMMANDS
16203#
16204AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16205
16206
16207# The HP-UX ksh and POSIX shell print the target directory to stdout
16208# if CDPATH is set.
16209(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16210
16211sed_quote_subst='$sed_quote_subst'
16212double_quote_subst='$double_quote_subst'
16213delay_variable_subst='$delay_variable_subst'
16214AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16215DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16216OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16217macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16218macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16219enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16220enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16221pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16222enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16223shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16224SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16225ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16226PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16227host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16228host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16229host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16230build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16231build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16232build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16233SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16234Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16235GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16236EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16237FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16238LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16239NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16240LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16241max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16242ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16243exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16244lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16245lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16246lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16247lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16248lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16249reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16250reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16251deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16252file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16253file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16254want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16255sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16256AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16257lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16258AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16259archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16260STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16273lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16274lt_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"`'
16275lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16276nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16277lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16278lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16279objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16280MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16281lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16282lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16283lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16284lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16285lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16286need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16287MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16288DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16289NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16290LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16291OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16292OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16293libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16294shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16295extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16296archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16297enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16298export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16299whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16300compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16301old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16302old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16303archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16304archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16305module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16306module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16307with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16308allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16309no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16310hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16311hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16312hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16313hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16314hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16315hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16316hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16317inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16318link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16319always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16320export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16321exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16322include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16323prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16324postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16325file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16326variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16327need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16328need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16329version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16330runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16331shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16332shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16333libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16334library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16335soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16336install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16337postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16338postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16339finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16340finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16341hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16342sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16343configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16344configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16345hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16346enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16347enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16348enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16349old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16350striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16351
16352LTCC='$LTCC'
16353LTCFLAGS='$LTCFLAGS'
16354compiler='$compiler_DEFAULT'
16355
16356# A function that is used when there is no print builtin or printf.
16357func_fallback_echo ()
16358{
16359  eval 'cat <<_LTECHO_EOF
16360\$1
16361_LTECHO_EOF'
16362}
16363
16364# Quote evaled strings.
16365for var in AS \
16366DLLTOOL \
16367OBJDUMP \
16368SHELL \
16369ECHO \
16370PATH_SEPARATOR \
16371SED \
16372GREP \
16373EGREP \
16374FGREP \
16375LD \
16376NM \
16377LN_S \
16378lt_SP2NL \
16379lt_NL2SP \
16380reload_flag \
16381deplibs_check_method \
16382file_magic_cmd \
16383file_magic_glob \
16384want_nocaseglob \
16385sharedlib_from_linklib_cmd \
16386AR \
16387archiver_list_spec \
16388STRIP \
16389RANLIB \
16390CC \
16391CFLAGS \
16392compiler \
16393lt_cv_sys_global_symbol_pipe \
16394lt_cv_sys_global_symbol_to_cdecl \
16395lt_cv_sys_global_symbol_to_import \
16396lt_cv_sys_global_symbol_to_c_name_address \
16397lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16398lt_cv_nm_interface \
16399nm_file_list_spec \
16400lt_cv_truncate_bin \
16401lt_prog_compiler_no_builtin_flag \
16402lt_prog_compiler_pic \
16403lt_prog_compiler_wl \
16404lt_prog_compiler_static \
16405lt_cv_prog_compiler_c_o \
16406need_locks \
16407MANIFEST_TOOL \
16408DSYMUTIL \
16409NMEDIT \
16410LIPO \
16411OTOOL \
16412OTOOL64 \
16413shrext_cmds \
16414export_dynamic_flag_spec \
16415whole_archive_flag_spec \
16416compiler_needs_object \
16417with_gnu_ld \
16418allow_undefined_flag \
16419no_undefined_flag \
16420hardcode_libdir_flag_spec \
16421hardcode_libdir_separator \
16422exclude_expsyms \
16423include_expsyms \
16424file_list_spec \
16425variables_saved_for_relink \
16426libname_spec \
16427library_names_spec \
16428soname_spec \
16429install_override_mode \
16430finish_eval \
16431old_striplib \
16432striplib; do
16433    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16434    *[\\\\\\\`\\"\\\$]*)
16435      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16436      ;;
16437    *)
16438      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16439      ;;
16440    esac
16441done
16442
16443# Double-quote double-evaled strings.
16444for var in reload_cmds \
16445old_postinstall_cmds \
16446old_postuninstall_cmds \
16447old_archive_cmds \
16448extract_expsyms_cmds \
16449old_archive_from_new_cmds \
16450old_archive_from_expsyms_cmds \
16451archive_cmds \
16452archive_expsym_cmds \
16453module_cmds \
16454module_expsym_cmds \
16455export_symbols_cmds \
16456prelink_cmds \
16457postlink_cmds \
16458postinstall_cmds \
16459postuninstall_cmds \
16460finish_cmds \
16461sys_lib_search_path_spec \
16462configure_time_dlsearch_path \
16463configure_time_lt_sys_library_path; do
16464    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16465    *[\\\\\\\`\\"\\\$]*)
16466      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16467      ;;
16468    *)
16469      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16470      ;;
16471    esac
16472done
16473
16474ac_aux_dir='$ac_aux_dir'
16475
16476# See if we are running on zsh, and set the options that allow our
16477# commands through without removal of \ escapes INIT.
16478if test -n "\${ZSH_VERSION+set}"; then
16479   setopt NO_GLOB_SUBST
16480fi
16481
16482
16483    PACKAGE='$PACKAGE'
16484    VERSION='$VERSION'
16485    RM='$RM'
16486    ofile='$ofile'
16487
16488
16489
16490
16491_ACEOF
16492
16493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16494
16495# Handling of arguments.
16496for ac_config_target in $ac_config_targets
16497do
16498  case $ac_config_target in
16499    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16500    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16501    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16502    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16503    "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
16504    "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
16505    "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
16506    "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
16507    "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
16508    "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
16509    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
16510    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
16511
16512  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16513  esac
16514done
16515
16516
16517# If the user did not use the arguments to specify the items to instantiate,
16518# then the envvar interface is used.  Set only those that are not.
16519# We use the long form for the default assignment because of an extremely
16520# bizarre bug on SunOS 4.1.3.
16521if $ac_need_defaults; then
16522  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16523  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16524  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16525fi
16526
16527# Have a temporary directory for convenience.  Make it in the build tree
16528# simply because there is no reason against having it here, and in addition,
16529# creating and moving files from /tmp can sometimes cause problems.
16530# Hook for its removal unless debugging.
16531# Note that there is a small window in which the directory will not be cleaned:
16532# after its creation but before its name has been assigned to `$tmp'.
16533$debug ||
16534{
16535  tmp= ac_tmp=
16536  trap 'exit_status=$?
16537  : "${ac_tmp:=$tmp}"
16538  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16539' 0
16540  trap 'as_fn_exit 1' 1 2 13 15
16541}
16542# Create a (secure) tmp directory for tmp files.
16543
16544{
16545  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16546  test -d "$tmp"
16547}  ||
16548{
16549  tmp=./conf$$-$RANDOM
16550  (umask 077 && mkdir "$tmp")
16551} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16552ac_tmp=$tmp
16553
16554# Set up the scripts for CONFIG_FILES section.
16555# No need to generate them if there are no CONFIG_FILES.
16556# This happens for instance with `./config.status config.h'.
16557if test -n "$CONFIG_FILES"; then
16558
16559
16560ac_cr=`echo X | tr X '\015'`
16561# On cygwin, bash can eat \r inside `` if the user requested igncr.
16562# But we know of no other shell where ac_cr would be empty at this
16563# point, so we can use a bashism as a fallback.
16564if test "x$ac_cr" = x; then
16565  eval ac_cr=\$\'\\r\'
16566fi
16567ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16568if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16569  ac_cs_awk_cr='\\r'
16570else
16571  ac_cs_awk_cr=$ac_cr
16572fi
16573
16574echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16575_ACEOF
16576
16577
16578{
16579  echo "cat >conf$$subs.awk <<_ACEOF" &&
16580  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16581  echo "_ACEOF"
16582} >conf$$subs.sh ||
16583  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16584ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16585ac_delim='%!_!# '
16586for ac_last_try in false false false false false :; do
16587  . ./conf$$subs.sh ||
16588    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16589
16590  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16591  if test $ac_delim_n = $ac_delim_num; then
16592    break
16593  elif $ac_last_try; then
16594    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16595  else
16596    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16597  fi
16598done
16599rm -f conf$$subs.sh
16600
16601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16602cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16603_ACEOF
16604sed -n '
16605h
16606s/^/S["/; s/!.*/"]=/
16607p
16608g
16609s/^[^!]*!//
16610:repl
16611t repl
16612s/'"$ac_delim"'$//
16613t delim
16614:nl
16615h
16616s/\(.\{148\}\)..*/\1/
16617t more1
16618s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16619p
16620n
16621b repl
16622:more1
16623s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16624p
16625g
16626s/.\{148\}//
16627t nl
16628:delim
16629h
16630s/\(.\{148\}\)..*/\1/
16631t more2
16632s/["\\]/\\&/g; s/^/"/; s/$/"/
16633p
16634b
16635:more2
16636s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16637p
16638g
16639s/.\{148\}//
16640t delim
16641' <conf$$subs.awk | sed '
16642/^[^""]/{
16643  N
16644  s/\n//
16645}
16646' >>$CONFIG_STATUS || ac_write_fail=1
16647rm -f conf$$subs.awk
16648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16649_ACAWK
16650cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16651  for (key in S) S_is_set[key] = 1
16652  FS = ""
16653
16654}
16655{
16656  line = $ 0
16657  nfields = split(line, field, "@")
16658  substed = 0
16659  len = length(field[1])
16660  for (i = 2; i < nfields; i++) {
16661    key = field[i]
16662    keylen = length(key)
16663    if (S_is_set[key]) {
16664      value = S[key]
16665      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16666      len += length(value) + length(field[++i])
16667      substed = 1
16668    } else
16669      len += 1 + keylen
16670  }
16671
16672  print line
16673}
16674
16675_ACAWK
16676_ACEOF
16677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16678if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16679  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16680else
16681  cat
16682fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16683  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16684_ACEOF
16685
16686# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16687# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16688# trailing colons and then remove the whole line if VPATH becomes empty
16689# (actually we leave an empty line to preserve line numbers).
16690if test "x$srcdir" = x.; then
16691  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16692h
16693s///
16694s/^/:/
16695s/[	 ]*$/:/
16696s/:\$(srcdir):/:/g
16697s/:\${srcdir}:/:/g
16698s/:@srcdir@:/:/g
16699s/^:*//
16700s/:*$//
16701x
16702s/\(=[	 ]*\).*/\1/
16703G
16704s/\n//
16705s/^[^=]*=[	 ]*$//
16706}'
16707fi
16708
16709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16710fi # test -n "$CONFIG_FILES"
16711
16712# Set up the scripts for CONFIG_HEADERS section.
16713# No need to generate them if there are no CONFIG_HEADERS.
16714# This happens for instance with `./config.status Makefile'.
16715if test -n "$CONFIG_HEADERS"; then
16716cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16717BEGIN {
16718_ACEOF
16719
16720# Transform confdefs.h into an awk script `defines.awk', embedded as
16721# here-document in config.status, that substitutes the proper values into
16722# config.h.in to produce config.h.
16723
16724# Create a delimiter string that does not exist in confdefs.h, to ease
16725# handling of long lines.
16726ac_delim='%!_!# '
16727for ac_last_try in false false :; do
16728  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16729  if test -z "$ac_tt"; then
16730    break
16731  elif $ac_last_try; then
16732    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16733  else
16734    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16735  fi
16736done
16737
16738# For the awk script, D is an array of macro values keyed by name,
16739# likewise P contains macro parameters if any.  Preserve backslash
16740# newline sequences.
16741
16742ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16743sed -n '
16744s/.\{148\}/&'"$ac_delim"'/g
16745t rset
16746:rset
16747s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16748t def
16749d
16750:def
16751s/\\$//
16752t bsnl
16753s/["\\]/\\&/g
16754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16755D["\1"]=" \3"/p
16756s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16757d
16758:bsnl
16759s/["\\]/\\&/g
16760s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16761D["\1"]=" \3\\\\\\n"\\/p
16762t cont
16763s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16764t cont
16765d
16766:cont
16767n
16768s/.\{148\}/&'"$ac_delim"'/g
16769t clear
16770:clear
16771s/\\$//
16772t bsnlc
16773s/["\\]/\\&/g; s/^/"/; s/$/"/p
16774d
16775:bsnlc
16776s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16777b cont
16778' <confdefs.h | sed '
16779s/'"$ac_delim"'/"\\\
16780"/g' >>$CONFIG_STATUS || ac_write_fail=1
16781
16782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783  for (key in D) D_is_set[key] = 1
16784  FS = ""
16785}
16786/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16787  line = \$ 0
16788  split(line, arg, " ")
16789  if (arg[1] == "#") {
16790    defundef = arg[2]
16791    mac1 = arg[3]
16792  } else {
16793    defundef = substr(arg[1], 2)
16794    mac1 = arg[2]
16795  }
16796  split(mac1, mac2, "(") #)
16797  macro = mac2[1]
16798  prefix = substr(line, 1, index(line, defundef) - 1)
16799  if (D_is_set[macro]) {
16800    # Preserve the white space surrounding the "#".
16801    print prefix "define", macro P[macro] D[macro]
16802    next
16803  } else {
16804    # Replace #undef with comments.  This is necessary, for example,
16805    # in the case of _POSIX_SOURCE, which is predefined and required
16806    # on some systems where configure will not decide to define it.
16807    if (defundef == "undef") {
16808      print "/*", prefix defundef, macro, "*/"
16809      next
16810    }
16811  }
16812}
16813{ print }
16814_ACAWK
16815_ACEOF
16816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16818fi # test -n "$CONFIG_HEADERS"
16819
16820
16821eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16822shift
16823for ac_tag
16824do
16825  case $ac_tag in
16826  :[FHLC]) ac_mode=$ac_tag; continue;;
16827  esac
16828  case $ac_mode$ac_tag in
16829  :[FHL]*:*);;
16830  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16831  :[FH]-) ac_tag=-:-;;
16832  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16833  esac
16834  ac_save_IFS=$IFS
16835  IFS=:
16836  set x $ac_tag
16837  IFS=$ac_save_IFS
16838  shift
16839  ac_file=$1
16840  shift
16841
16842  case $ac_mode in
16843  :L) ac_source=$1;;
16844  :[FH])
16845    ac_file_inputs=
16846    for ac_f
16847    do
16848      case $ac_f in
16849      -) ac_f="$ac_tmp/stdin";;
16850      *) # Look for the file first in the build tree, then in the source tree
16851	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16852	 # because $ac_f cannot contain `:'.
16853	 test -f "$ac_f" ||
16854	   case $ac_f in
16855	   [\\/$]*) false;;
16856	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16857	   esac ||
16858	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16859      esac
16860      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16861      as_fn_append ac_file_inputs " '$ac_f'"
16862    done
16863
16864    # Let's still pretend it is `configure' which instantiates (i.e., don't
16865    # use $as_me), people would be surprised to read:
16866    #    /* config.h.  Generated by config.status.  */
16867    configure_input='Generated from '`
16868	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16869	`' by configure.'
16870    if test x"$ac_file" != x-; then
16871      configure_input="$ac_file.  $configure_input"
16872      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16873$as_echo "$as_me: creating $ac_file" >&6;}
16874    fi
16875    # Neutralize special characters interpreted by sed in replacement strings.
16876    case $configure_input in #(
16877    *\&* | *\|* | *\\* )
16878       ac_sed_conf_input=`$as_echo "$configure_input" |
16879       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16880    *) ac_sed_conf_input=$configure_input;;
16881    esac
16882
16883    case $ac_tag in
16884    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16885      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16886    esac
16887    ;;
16888  esac
16889
16890  ac_dir=`$as_dirname -- "$ac_file" ||
16891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16892	 X"$ac_file" : 'X\(//\)[^/]' \| \
16893	 X"$ac_file" : 'X\(//\)$' \| \
16894	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16895$as_echo X"$ac_file" |
16896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16897	    s//\1/
16898	    q
16899	  }
16900	  /^X\(\/\/\)[^/].*/{
16901	    s//\1/
16902	    q
16903	  }
16904	  /^X\(\/\/\)$/{
16905	    s//\1/
16906	    q
16907	  }
16908	  /^X\(\/\).*/{
16909	    s//\1/
16910	    q
16911	  }
16912	  s/.*/./; q'`
16913  as_dir="$ac_dir"; as_fn_mkdir_p
16914  ac_builddir=.
16915
16916case "$ac_dir" in
16917.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16918*)
16919  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16920  # A ".." for each directory in $ac_dir_suffix.
16921  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16922  case $ac_top_builddir_sub in
16923  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16924  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16925  esac ;;
16926esac
16927ac_abs_top_builddir=$ac_pwd
16928ac_abs_builddir=$ac_pwd$ac_dir_suffix
16929# for backward compatibility:
16930ac_top_builddir=$ac_top_build_prefix
16931
16932case $srcdir in
16933  .)  # We are building in place.
16934    ac_srcdir=.
16935    ac_top_srcdir=$ac_top_builddir_sub
16936    ac_abs_top_srcdir=$ac_pwd ;;
16937  [\\/]* | ?:[\\/]* )  # Absolute name.
16938    ac_srcdir=$srcdir$ac_dir_suffix;
16939    ac_top_srcdir=$srcdir
16940    ac_abs_top_srcdir=$srcdir ;;
16941  *) # Relative name.
16942    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16943    ac_top_srcdir=$ac_top_build_prefix$srcdir
16944    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16945esac
16946ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16947
16948
16949  case $ac_mode in
16950  :F)
16951  #
16952  # CONFIG_FILE
16953  #
16954
16955  case $INSTALL in
16956  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16957  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16958  esac
16959  ac_MKDIR_P=$MKDIR_P
16960  case $MKDIR_P in
16961  [\\/$]* | ?:[\\/]* ) ;;
16962  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16963  esac
16964_ACEOF
16965
16966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967# If the template does not know about datarootdir, expand it.
16968# FIXME: This hack should be removed a few years after 2.60.
16969ac_datarootdir_hack=; ac_datarootdir_seen=
16970ac_sed_dataroot='
16971/datarootdir/ {
16972  p
16973  q
16974}
16975/@datadir@/p
16976/@docdir@/p
16977/@infodir@/p
16978/@localedir@/p
16979/@mandir@/p'
16980case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16981*datarootdir*) ac_datarootdir_seen=yes;;
16982*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16983  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16984$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16985_ACEOF
16986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16987  ac_datarootdir_hack='
16988  s&@datadir@&$datadir&g
16989  s&@docdir@&$docdir&g
16990  s&@infodir@&$infodir&g
16991  s&@localedir@&$localedir&g
16992  s&@mandir@&$mandir&g
16993  s&\\\${datarootdir}&$datarootdir&g' ;;
16994esac
16995_ACEOF
16996
16997# Neutralize VPATH when `$srcdir' = `.'.
16998# Shell code in configure.ac might set extrasub.
16999# FIXME: do we really want to maintain this feature?
17000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17001ac_sed_extra="$ac_vpsub
17002$extrasub
17003_ACEOF
17004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17005:t
17006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17007s|@configure_input@|$ac_sed_conf_input|;t t
17008s&@top_builddir@&$ac_top_builddir_sub&;t t
17009s&@top_build_prefix@&$ac_top_build_prefix&;t t
17010s&@srcdir@&$ac_srcdir&;t t
17011s&@abs_srcdir@&$ac_abs_srcdir&;t t
17012s&@top_srcdir@&$ac_top_srcdir&;t t
17013s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17014s&@builddir@&$ac_builddir&;t t
17015s&@abs_builddir@&$ac_abs_builddir&;t t
17016s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17017s&@INSTALL@&$ac_INSTALL&;t t
17018s&@MKDIR_P@&$ac_MKDIR_P&;t t
17019$ac_datarootdir_hack
17020"
17021eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17022  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17023
17024test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17025  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17026  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17027      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17028  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17029which seems to be undefined.  Please make sure it is defined" >&5
17030$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17031which seems to be undefined.  Please make sure it is defined" >&2;}
17032
17033  rm -f "$ac_tmp/stdin"
17034  case $ac_file in
17035  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17036  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17037  esac \
17038  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17039 ;;
17040  :H)
17041  #
17042  # CONFIG_HEADER
17043  #
17044  if test x"$ac_file" != x-; then
17045    {
17046      $as_echo "/* $configure_input  */" \
17047      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17048    } >"$ac_tmp/config.h" \
17049      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17050    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17051      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17052$as_echo "$as_me: $ac_file is unchanged" >&6;}
17053    else
17054      rm -f "$ac_file"
17055      mv "$ac_tmp/config.h" "$ac_file" \
17056	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17057    fi
17058  else
17059    $as_echo "/* $configure_input  */" \
17060      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17061      || as_fn_error $? "could not create -" "$LINENO" 5
17062  fi
17063# Compute "$ac_file"'s index in $config_headers.
17064_am_arg="$ac_file"
17065_am_stamp_count=1
17066for _am_header in $config_headers :; do
17067  case $_am_header in
17068    $_am_arg | $_am_arg:* )
17069      break ;;
17070    * )
17071      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17072  esac
17073done
17074echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17075$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17076	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17077	 X"$_am_arg" : 'X\(//\)$' \| \
17078	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17079$as_echo X"$_am_arg" |
17080    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17081	    s//\1/
17082	    q
17083	  }
17084	  /^X\(\/\/\)[^/].*/{
17085	    s//\1/
17086	    q
17087	  }
17088	  /^X\(\/\/\)$/{
17089	    s//\1/
17090	    q
17091	  }
17092	  /^X\(\/\).*/{
17093	    s//\1/
17094	    q
17095	  }
17096	  s/.*/./; q'`/stamp-h$_am_stamp_count
17097 ;;
17098
17099  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17100$as_echo "$as_me: executing $ac_file commands" >&6;}
17101 ;;
17102  esac
17103
17104
17105  case $ac_file$ac_mode in
17106    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17107  # Older Autoconf quotes --file arguments for eval, but not when files
17108  # are listed without --file.  Let's play safe and only enable the eval
17109  # if we detect the quoting.
17110  case $CONFIG_FILES in
17111  *\'*) eval set x "$CONFIG_FILES" ;;
17112  *)   set x $CONFIG_FILES ;;
17113  esac
17114  shift
17115  for mf
17116  do
17117    # Strip MF so we end up with the name of the file.
17118    mf=`echo "$mf" | sed -e 's/:.*$//'`
17119    # Check whether this is an Automake generated Makefile or not.
17120    # We used to match only the files named 'Makefile.in', but
17121    # some people rename them; so instead we look at the file content.
17122    # Grep'ing the first line is not enough: some people post-process
17123    # each Makefile.in and add a new line on top of each file to say so.
17124    # Grep'ing the whole file is not good either: AIX grep has a line
17125    # limit of 2048, but all sed's we know have understand at least 4000.
17126    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17127      dirpart=`$as_dirname -- "$mf" ||
17128$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17129	 X"$mf" : 'X\(//\)[^/]' \| \
17130	 X"$mf" : 'X\(//\)$' \| \
17131	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17132$as_echo X"$mf" |
17133    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17134	    s//\1/
17135	    q
17136	  }
17137	  /^X\(\/\/\)[^/].*/{
17138	    s//\1/
17139	    q
17140	  }
17141	  /^X\(\/\/\)$/{
17142	    s//\1/
17143	    q
17144	  }
17145	  /^X\(\/\).*/{
17146	    s//\1/
17147	    q
17148	  }
17149	  s/.*/./; q'`
17150    else
17151      continue
17152    fi
17153    # Extract the definition of DEPDIR, am__include, and am__quote
17154    # from the Makefile without running 'make'.
17155    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17156    test -z "$DEPDIR" && continue
17157    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17158    test -z "$am__include" && continue
17159    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17160    # Find all dependency output files, they are included files with
17161    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17162    # simplest approach to changing $(DEPDIR) to its actual value in the
17163    # expansion.
17164    for file in `sed -n "
17165      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17166	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17167      # Make sure the directory exists.
17168      test -f "$dirpart/$file" && continue
17169      fdir=`$as_dirname -- "$file" ||
17170$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171	 X"$file" : 'X\(//\)[^/]' \| \
17172	 X"$file" : 'X\(//\)$' \| \
17173	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17174$as_echo X"$file" |
17175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176	    s//\1/
17177	    q
17178	  }
17179	  /^X\(\/\/\)[^/].*/{
17180	    s//\1/
17181	    q
17182	  }
17183	  /^X\(\/\/\)$/{
17184	    s//\1/
17185	    q
17186	  }
17187	  /^X\(\/\).*/{
17188	    s//\1/
17189	    q
17190	  }
17191	  s/.*/./; q'`
17192      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17193      # echo "creating $dirpart/$file"
17194      echo '# dummy' > "$dirpart/$file"
17195    done
17196  done
17197}
17198 ;;
17199    "libtool":C)
17200
17201    # See if we are running on zsh, and set the options that allow our
17202    # commands through without removal of \ escapes.
17203    if test -n "${ZSH_VERSION+set}"; then
17204      setopt NO_GLOB_SUBST
17205    fi
17206
17207    cfgfile=${ofile}T
17208    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17209    $RM "$cfgfile"
17210
17211    cat <<_LT_EOF >> "$cfgfile"
17212#! $SHELL
17213# Generated automatically by $as_me ($PACKAGE) $VERSION
17214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17215# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17216
17217# Provide generalized library-building support services.
17218# Written by Gordon Matzigkeit, 1996
17219
17220# Copyright (C) 2014 Free Software Foundation, Inc.
17221# This is free software; see the source for copying conditions.  There is NO
17222# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17223
17224# GNU Libtool is free software; you can redistribute it and/or modify
17225# it under the terms of the GNU General Public License as published by
17226# the Free Software Foundation; either version 2 of of the License, or
17227# (at your option) any later version.
17228#
17229# As a special exception to the GNU General Public License, if you
17230# distribute this file as part of a program or library that is built
17231# using GNU Libtool, you may include this file under the  same
17232# distribution terms that you use for the rest of that program.
17233#
17234# GNU Libtool is distributed in the hope that it will be useful, but
17235# WITHOUT ANY WARRANTY; without even the implied warranty of
17236# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17237# GNU General Public License for more details.
17238#
17239# You should have received a copy of the GNU General Public License
17240# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17241
17242
17243# The names of the tagged configurations supported by this script.
17244available_tags=''
17245
17246# Configured defaults for sys_lib_dlsearch_path munging.
17247: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17248
17249# ### BEGIN LIBTOOL CONFIG
17250
17251# Assembler program.
17252AS=$lt_AS
17253
17254# DLL creation program.
17255DLLTOOL=$lt_DLLTOOL
17256
17257# Object dumper program.
17258OBJDUMP=$lt_OBJDUMP
17259
17260# Which release of libtool.m4 was used?
17261macro_version=$macro_version
17262macro_revision=$macro_revision
17263
17264# Whether or not to build shared libraries.
17265build_libtool_libs=$enable_shared
17266
17267# Whether or not to build static libraries.
17268build_old_libs=$enable_static
17269
17270# What type of objects to build.
17271pic_mode=$pic_mode
17272
17273# Whether or not to optimize for fast installation.
17274fast_install=$enable_fast_install
17275
17276# Shared archive member basename,for filename based shared library versioning on AIX.
17277shared_archive_member_spec=$shared_archive_member_spec
17278
17279# Shell to use when invoking shell scripts.
17280SHELL=$lt_SHELL
17281
17282# An echo program that protects backslashes.
17283ECHO=$lt_ECHO
17284
17285# The PATH separator for the build system.
17286PATH_SEPARATOR=$lt_PATH_SEPARATOR
17287
17288# The host system.
17289host_alias=$host_alias
17290host=$host
17291host_os=$host_os
17292
17293# The build system.
17294build_alias=$build_alias
17295build=$build
17296build_os=$build_os
17297
17298# A sed program that does not truncate output.
17299SED=$lt_SED
17300
17301# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17302Xsed="\$SED -e 1s/^X//"
17303
17304# A grep program that handles long lines.
17305GREP=$lt_GREP
17306
17307# An ERE matcher.
17308EGREP=$lt_EGREP
17309
17310# A literal string matcher.
17311FGREP=$lt_FGREP
17312
17313# A BSD- or MS-compatible name lister.
17314NM=$lt_NM
17315
17316# Whether we need soft or hard links.
17317LN_S=$lt_LN_S
17318
17319# What is the maximum length of a command?
17320max_cmd_len=$max_cmd_len
17321
17322# Object file suffix (normally "o").
17323objext=$ac_objext
17324
17325# Executable file suffix (normally "").
17326exeext=$exeext
17327
17328# whether the shell understands "unset".
17329lt_unset=$lt_unset
17330
17331# turn spaces into newlines.
17332SP2NL=$lt_lt_SP2NL
17333
17334# turn newlines into spaces.
17335NL2SP=$lt_lt_NL2SP
17336
17337# convert \$build file names to \$host format.
17338to_host_file_cmd=$lt_cv_to_host_file_cmd
17339
17340# convert \$build files to toolchain format.
17341to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17342
17343# Method to check whether dependent libraries are shared objects.
17344deplibs_check_method=$lt_deplibs_check_method
17345
17346# Command to use when deplibs_check_method = "file_magic".
17347file_magic_cmd=$lt_file_magic_cmd
17348
17349# How to find potential files when deplibs_check_method = "file_magic".
17350file_magic_glob=$lt_file_magic_glob
17351
17352# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17353want_nocaseglob=$lt_want_nocaseglob
17354
17355# Command to associate shared and link libraries.
17356sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17357
17358# The archiver.
17359AR=$lt_AR
17360
17361# Flags to create an archive (by configure).
17362lt_ar_flags=$lt_ar_flags
17363
17364# Flags to create an archive.
17365AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17366
17367# How to feed a file listing to the archiver.
17368archiver_list_spec=$lt_archiver_list_spec
17369
17370# A symbol stripping program.
17371STRIP=$lt_STRIP
17372
17373# Commands used to install an old-style archive.
17374RANLIB=$lt_RANLIB
17375old_postinstall_cmds=$lt_old_postinstall_cmds
17376old_postuninstall_cmds=$lt_old_postuninstall_cmds
17377
17378# Whether to use a lock for old archive extraction.
17379lock_old_archive_extraction=$lock_old_archive_extraction
17380
17381# A C compiler.
17382LTCC=$lt_CC
17383
17384# LTCC compiler flags.
17385LTCFLAGS=$lt_CFLAGS
17386
17387# Take the output of nm and produce a listing of raw symbols and C names.
17388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17389
17390# Transform the output of nm in a proper C declaration.
17391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17392
17393# Transform the output of nm into a list of symbols to manually relocate.
17394global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17395
17396# Transform the output of nm in a C name address pair.
17397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17398
17399# Transform the output of nm in a C name address pair when lib prefix is needed.
17400global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17401
17402# The name lister interface.
17403nm_interface=$lt_lt_cv_nm_interface
17404
17405# Specify filename containing input files for \$NM.
17406nm_file_list_spec=$lt_nm_file_list_spec
17407
17408# The root where to search for dependent libraries,and where our libraries should be installed.
17409lt_sysroot=$lt_sysroot
17410
17411# Command to truncate a binary pipe.
17412lt_truncate_bin=$lt_lt_cv_truncate_bin
17413
17414# The name of the directory that contains temporary libtool files.
17415objdir=$objdir
17416
17417# Used to examine libraries when file_magic_cmd begins with "file".
17418MAGIC_CMD=$MAGIC_CMD
17419
17420# Must we lock files when doing compilation?
17421need_locks=$lt_need_locks
17422
17423# Manifest tool.
17424MANIFEST_TOOL=$lt_MANIFEST_TOOL
17425
17426# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17427DSYMUTIL=$lt_DSYMUTIL
17428
17429# Tool to change global to local symbols on Mac OS X.
17430NMEDIT=$lt_NMEDIT
17431
17432# Tool to manipulate fat objects and archives on Mac OS X.
17433LIPO=$lt_LIPO
17434
17435# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17436OTOOL=$lt_OTOOL
17437
17438# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17439OTOOL64=$lt_OTOOL64
17440
17441# Old archive suffix (normally "a").
17442libext=$libext
17443
17444# Shared library suffix (normally ".so").
17445shrext_cmds=$lt_shrext_cmds
17446
17447# The commands to extract the exported symbol list from a shared archive.
17448extract_expsyms_cmds=$lt_extract_expsyms_cmds
17449
17450# Variables whose values should be saved in libtool wrapper scripts and
17451# restored at link time.
17452variables_saved_for_relink=$lt_variables_saved_for_relink
17453
17454# Do we need the "lib" prefix for modules?
17455need_lib_prefix=$need_lib_prefix
17456
17457# Do we need a version for libraries?
17458need_version=$need_version
17459
17460# Library versioning type.
17461version_type=$version_type
17462
17463# Shared library runtime path variable.
17464runpath_var=$runpath_var
17465
17466# Shared library path variable.
17467shlibpath_var=$shlibpath_var
17468
17469# Is shlibpath searched before the hard-coded library search path?
17470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17471
17472# Format of library name prefix.
17473libname_spec=$lt_libname_spec
17474
17475# List of archive names.  First name is the real one, the rest are links.
17476# The last name is the one that the linker finds with -lNAME
17477library_names_spec=$lt_library_names_spec
17478
17479# The coded name of the library, if different from the real name.
17480soname_spec=$lt_soname_spec
17481
17482# Permission mode override for installation of shared libraries.
17483install_override_mode=$lt_install_override_mode
17484
17485# Command to use after installation of a shared archive.
17486postinstall_cmds=$lt_postinstall_cmds
17487
17488# Command to use after uninstallation of a shared archive.
17489postuninstall_cmds=$lt_postuninstall_cmds
17490
17491# Commands used to finish a libtool library installation in a directory.
17492finish_cmds=$lt_finish_cmds
17493
17494# As "finish_cmds", except a single script fragment to be evaled but
17495# not shown.
17496finish_eval=$lt_finish_eval
17497
17498# Whether we should hardcode library paths into libraries.
17499hardcode_into_libs=$hardcode_into_libs
17500
17501# Compile-time system search path for libraries.
17502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17503
17504# Detected run-time system search path for libraries.
17505sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17506
17507# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17508configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17509
17510# Whether dlopen is supported.
17511dlopen_support=$enable_dlopen
17512
17513# Whether dlopen of programs is supported.
17514dlopen_self=$enable_dlopen_self
17515
17516# Whether dlopen of statically linked programs is supported.
17517dlopen_self_static=$enable_dlopen_self_static
17518
17519# Commands to strip libraries.
17520old_striplib=$lt_old_striplib
17521striplib=$lt_striplib
17522
17523
17524# The linker used to build libraries.
17525LD=$lt_LD
17526
17527# How to create reloadable object files.
17528reload_flag=$lt_reload_flag
17529reload_cmds=$lt_reload_cmds
17530
17531# Commands used to build an old-style archive.
17532old_archive_cmds=$lt_old_archive_cmds
17533
17534# A language specific compiler.
17535CC=$lt_compiler
17536
17537# Is the compiler the GNU compiler?
17538with_gcc=$GCC
17539
17540# Compiler flag to turn off builtin functions.
17541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17542
17543# Additional compiler flags for building library objects.
17544pic_flag=$lt_lt_prog_compiler_pic
17545
17546# How to pass a linker flag through the compiler.
17547wl=$lt_lt_prog_compiler_wl
17548
17549# Compiler flag to prevent dynamic linking.
17550link_static_flag=$lt_lt_prog_compiler_static
17551
17552# Does compiler simultaneously support -c and -o options?
17553compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17554
17555# Whether or not to add -lc for building shared libraries.
17556build_libtool_need_lc=$archive_cmds_need_lc
17557
17558# Whether or not to disallow shared libs when runtime libs are static.
17559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17560
17561# Compiler flag to allow reflexive dlopens.
17562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17563
17564# Compiler flag to generate shared objects directly from archives.
17565whole_archive_flag_spec=$lt_whole_archive_flag_spec
17566
17567# Whether the compiler copes with passing no objects directly.
17568compiler_needs_object=$lt_compiler_needs_object
17569
17570# Create an old-style archive from a shared archive.
17571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17572
17573# Create a temporary old-style archive to link instead of a shared archive.
17574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17575
17576# Commands used to build a shared archive.
17577archive_cmds=$lt_archive_cmds
17578archive_expsym_cmds=$lt_archive_expsym_cmds
17579
17580# Commands used to build a loadable module if different from building
17581# a shared archive.
17582module_cmds=$lt_module_cmds
17583module_expsym_cmds=$lt_module_expsym_cmds
17584
17585# Whether we are building with GNU ld or not.
17586with_gnu_ld=$lt_with_gnu_ld
17587
17588# Flag that allows shared libraries with undefined symbols to be built.
17589allow_undefined_flag=$lt_allow_undefined_flag
17590
17591# Flag that enforces no undefined symbols.
17592no_undefined_flag=$lt_no_undefined_flag
17593
17594# Flag to hardcode \$libdir into a binary during linking.
17595# This must work even if \$libdir does not exist
17596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17597
17598# Whether we need a single "-rpath" flag with a separated argument.
17599hardcode_libdir_separator=$lt_hardcode_libdir_separator
17600
17601# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17602# DIR into the resulting binary.
17603hardcode_direct=$hardcode_direct
17604
17605# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17606# DIR into the resulting binary and the resulting library dependency is
17607# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17608# library is relocated.
17609hardcode_direct_absolute=$hardcode_direct_absolute
17610
17611# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17612# into the resulting binary.
17613hardcode_minus_L=$hardcode_minus_L
17614
17615# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17616# into the resulting binary.
17617hardcode_shlibpath_var=$hardcode_shlibpath_var
17618
17619# Set to "yes" if building a shared library automatically hardcodes DIR
17620# into the library and all subsequent libraries and executables linked
17621# against it.
17622hardcode_automatic=$hardcode_automatic
17623
17624# Set to yes if linker adds runtime paths of dependent libraries
17625# to runtime path list.
17626inherit_rpath=$inherit_rpath
17627
17628# Whether libtool must link a program against all its dependency libraries.
17629link_all_deplibs=$link_all_deplibs
17630
17631# Set to "yes" if exported symbols are required.
17632always_export_symbols=$always_export_symbols
17633
17634# The commands to list exported symbols.
17635export_symbols_cmds=$lt_export_symbols_cmds
17636
17637# Symbols that should not be listed in the preloaded symbols.
17638exclude_expsyms=$lt_exclude_expsyms
17639
17640# Symbols that must always be exported.
17641include_expsyms=$lt_include_expsyms
17642
17643# Commands necessary for linking programs (against libraries) with templates.
17644prelink_cmds=$lt_prelink_cmds
17645
17646# Commands necessary for finishing linking programs.
17647postlink_cmds=$lt_postlink_cmds
17648
17649# Specify filename containing input files.
17650file_list_spec=$lt_file_list_spec
17651
17652# How to hardcode a shared library path into an executable.
17653hardcode_action=$hardcode_action
17654
17655# ### END LIBTOOL CONFIG
17656
17657_LT_EOF
17658
17659    cat <<'_LT_EOF' >> "$cfgfile"
17660
17661# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17662
17663# func_munge_path_list VARIABLE PATH
17664# -----------------------------------
17665# VARIABLE is name of variable containing _space_ separated list of
17666# directories to be munged by the contents of PATH, which is string
17667# having a format:
17668# "DIR[:DIR]:"
17669#       string "DIR[ DIR]" will be prepended to VARIABLE
17670# ":DIR[:DIR]"
17671#       string "DIR[ DIR]" will be appended to VARIABLE
17672# "DIRP[:DIRP]::[DIRA:]DIRA"
17673#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17674#       "DIRA[ DIRA]" will be appended to VARIABLE
17675# "DIR[:DIR]"
17676#       VARIABLE will be replaced by "DIR[ DIR]"
17677func_munge_path_list ()
17678{
17679    case x$2 in
17680    x)
17681        ;;
17682    *:)
17683        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17684        ;;
17685    x:*)
17686        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17687        ;;
17688    *::*)
17689        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17690        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17691        ;;
17692    *)
17693        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17694        ;;
17695    esac
17696}
17697
17698
17699# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17700func_cc_basename ()
17701{
17702    for cc_temp in $*""; do
17703      case $cc_temp in
17704        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17705        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17706        \-*) ;;
17707        *) break;;
17708      esac
17709    done
17710    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17711}
17712
17713
17714# ### END FUNCTIONS SHARED WITH CONFIGURE
17715
17716_LT_EOF
17717
17718  case $host_os in
17719  aix3*)
17720    cat <<\_LT_EOF >> "$cfgfile"
17721# AIX sometimes has problems with the GCC collect2 program.  For some
17722# reason, if we set the COLLECT_NAMES environment variable, the problems
17723# vanish in a puff of smoke.
17724if test set != "${COLLECT_NAMES+set}"; then
17725  COLLECT_NAMES=
17726  export COLLECT_NAMES
17727fi
17728_LT_EOF
17729    ;;
17730  esac
17731
17732
17733ltmain=$ac_aux_dir/ltmain.sh
17734
17735
17736  # We use sed instead of cat because bash on DJGPP gets confused if
17737  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17738  # text mode, it properly converts lines to CR/LF.  This bash problem
17739  # is reportedly fixed, but why not run on old versions too?
17740  sed '$q' "$ltmain" >> "$cfgfile" \
17741     || (rm -f "$cfgfile"; exit 1)
17742
17743   mv -f "$cfgfile" "$ofile" ||
17744    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17745  chmod +x "$ofile"
17746
17747 ;;
17748    "script-chmod":C) chmod a+x pcre2-config ;;
17749    "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
17750
17751  esac
17752done # for ac_tag
17753
17754
17755as_fn_exit 0
17756_ACEOF
17757ac_clean_files=$ac_clean_files_save
17758
17759test $ac_write_fail = 0 ||
17760  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17761
17762
17763# configure is writing to config.log, and then calls config.status.
17764# config.status does its own redirection, appending to config.log.
17765# Unfortunately, on DOS this fails, as config.log is still kept open
17766# by configure, so config.status won't be able to write to it; its
17767# output is simply discarded.  So we exec the FD to /dev/null,
17768# effectively closing config.log, so it can be properly (re)opened and
17769# appended to by config.status.  When coming back to configure, we
17770# need to make the FD available again.
17771if test "$no_create" != yes; then
17772  ac_cs_success=:
17773  ac_config_status_args=
17774  test "$silent" = yes &&
17775    ac_config_status_args="$ac_config_status_args --quiet"
17776  exec 5>/dev/null
17777  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17778  exec 5>>config.log
17779  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17780  # would make configure fail if this is the last instruction.
17781  $ac_cs_success || as_fn_exit 1
17782fi
17783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17784  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17786fi
17787
17788
17789# --disable-stack-for-recursion is obsolete and has no effect.
17790
17791if test "$enable_stack_for_recursion" = "no"; then
17792cat <<EOF
17793
17794WARNING: --disable-stack-for-recursion is obsolete and has no effect.
17795EOF
17796fi
17797
17798# Print out a nice little message after configure is run displaying the
17799# chosen options.
17800
17801ebcdic_nl_code=n/a
17802if test "$enable_ebcdic_nl25" = "yes"; then
17803  ebcdic_nl_code=0x25
17804elif test "$enable_ebcdic" = "yes"; then
17805  ebcdic_nl_code=0x15
17806fi
17807
17808cat <<EOF
17809
17810$PACKAGE-$VERSION configuration summary:
17811
17812    Install prefix ..................... : ${prefix}
17813    C preprocessor ..................... : ${CPP}
17814    C compiler ......................... : ${CC}
17815    Linker ............................. : ${LD}
17816    C preprocessor flags ............... : ${CPPFLAGS}
17817    C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
17818    Linker flags ....................... : ${LDFLAGS}
17819    Extra libraries .................... : ${LIBS}
17820
17821    Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
17822    Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
17823    Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
17824    Include debugging code ............. : ${enable_debug}
17825    Enable JIT compiling support ....... : ${enable_jit}
17826    Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
17827    Enable Unicode support ............. : ${enable_unicode}
17828    Newline char/sequence .............. : ${enable_newline}
17829    \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
17830    \C is disabled ..................... : ${enable_never_backslash_C}
17831    EBCDIC coding ...................... : ${enable_ebcdic}
17832    EBCDIC code for NL ................. : ${ebcdic_nl_code}
17833    Rebuild char tables ................ : ${enable_rebuild_chartables}
17834    Internal link size ................. : ${with_link_size}
17835    Nested parentheses limit ........... : ${with_parens_nest_limit}
17836    Heap limit ......................... : ${with_heap_limit} kibibytes
17837    Match limit ........................ : ${with_match_limit}
17838    Match depth limit .................. : ${with_match_limit_depth}
17839    Build shared libs .................. : ${enable_shared}
17840    Build static libs .................. : ${enable_static}
17841    Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
17842    Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
17843    Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
17844    Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
17845    Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
17846    Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
17847    Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
17848    Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
17849    Valgrind support ................... : ${enable_valgrind}
17850    Code coverage ...................... : ${enable_coverage}
17851    Fuzzer support ..................... : ${enable_fuzz_support}
17852
17853EOF
17854
17855