1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for PCRE 8.36.
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='PCRE'
589PACKAGE_TARNAME='pcre'
590PACKAGE_VERSION='8.36'
591PACKAGE_STRING='PCRE 8.36'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="pcre.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_LIBPCRECPP_LDFLAGS
653EXTRA_LIBPCREPOSIX_LDFLAGS
654EXTRA_LIBPCRE32_LDFLAGS
655EXTRA_LIBPCRE16_LDFLAGS
656EXTRA_LIBPCRE_LDFLAGS
657PTHREAD_CFLAGS
658PTHREAD_LIBS
659PTHREAD_CC
660ax_pthread_config
661PCRE_STATIC_CFLAG
662LIBREADLINE
663WITH_VALGRIND_FALSE
664WITH_VALGRIND_TRUE
665WITH_UTF_FALSE
666WITH_UTF_TRUE
667WITH_JIT_FALSE
668WITH_JIT_TRUE
669WITH_REBUILD_CHARTABLES_FALSE
670WITH_REBUILD_CHARTABLES_TRUE
671WITH_PCRE_CPP_FALSE
672WITH_PCRE_CPP_TRUE
673WITH_PCRE32_FALSE
674WITH_PCRE32_TRUE
675WITH_PCRE16_FALSE
676WITH_PCRE16_TRUE
677WITH_PCRE8_FALSE
678WITH_PCRE8_TRUE
679pcre_have_bits_type_traits
680pcre_have_type_traits
681pcre_have_ulong_long
682pcre_have_long_long
683enable_cpp
684enable_pcre32
685enable_pcre16
686enable_pcre8
687PCRE_DATE
688PCRE_PRERELEASE
689PCRE_MINOR
690PCRE_MAJOR
691HAVE_VISIBILITY
692VISIBILITY_CXXFLAGS
693VISIBILITY_CFLAGS
694CXXCPP
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702LN_S
703NM
704ac_ct_DUMPBIN
705DUMPBIN
706LD
707FGREP
708SED
709LIBTOOL
710OBJDUMP
711DLLTOOL
712AS
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721EGREP
722GREP
723CPP
724am__fastdepCXX_FALSE
725am__fastdepCXX_TRUE
726CXXDEPMODE
727ac_ct_CXX
728CXXFLAGS
729CXX
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__quote
738am__include
739DEPDIR
740OBJEXT
741EXEEXT
742ac_ct_CC
743CPPFLAGS
744LDFLAGS
745CFLAGS
746CC
747ac_ct_AR
748AR
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_URL
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL'
814ac_subst_files=''
815ac_user_opts='
816enable_option_checking
817enable_silent_rules
818enable_dependency_tracking
819enable_shared
820enable_static
821with_pic
822enable_fast_install
823with_gnu_ld
824with_sysroot
825enable_libtool_lock
826enable_pcre8
827enable_pcre16
828enable_pcre32
829enable_cpp
830enable_jit
831enable_pcregrep_jit
832enable_rebuild_chartables
833enable_utf8
834enable_utf
835enable_unicode_properties
836enable_newline_is_cr
837enable_newline_is_lf
838enable_newline_is_crlf
839enable_newline_is_anycrlf
840enable_newline_is_any
841enable_bsr_anycrlf
842enable_ebcdic
843enable_ebcdic_nl25
844enable_stack_for_recursion
845enable_pcregrep_libz
846enable_pcregrep_libbz2
847with_pcregrep_bufsize
848enable_pcretest_libedit
849enable_pcretest_libreadline
850with_posix_malloc_threshold
851with_link_size
852with_parens_nest_limit
853with_match_limit
854with_match_limit_recursion
855enable_valgrind
856enable_coverage
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CXX
867CXXFLAGS
868CCC
869CPP
870CXXCPP
871PKG_CONFIG
872PKG_CONFIG_PATH
873PKG_CONFIG_LIBDIR
874VALGRIND_CFLAGS
875VALGRIND_LIBS
876LCOV
877GENHTML'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932  # If the previous option needs an argument, assign it.
933  if test -n "$ac_prev"; then
934    eval $ac_prev=\$ac_option
935    ac_prev=
936    continue
937  fi
938
939  case $ac_option in
940  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941  *=)   ac_optarg= ;;
942  *)    ac_optarg=yes ;;
943  esac
944
945  # Accept the important Cygnus configure options, so we can diagnose typos.
946
947  case $ac_dashdash$ac_option in
948  --)
949    ac_dashdash=yes ;;
950
951  -bindir | --bindir | --bindi | --bind | --bin | --bi)
952    ac_prev=bindir ;;
953  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954    bindir=$ac_optarg ;;
955
956  -build | --build | --buil | --bui | --bu)
957    ac_prev=build_alias ;;
958  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959    build_alias=$ac_optarg ;;
960
961  -cache-file | --cache-file | --cache-fil | --cache-fi \
962  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963    ac_prev=cache_file ;;
964  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966    cache_file=$ac_optarg ;;
967
968  --config-cache | -C)
969    cache_file=config.cache ;;
970
971  -datadir | --datadir | --datadi | --datad)
972    ac_prev=datadir ;;
973  -datadir=* | --datadir=* | --datadi=* | --datad=*)
974    datadir=$ac_optarg ;;
975
976  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977  | --dataroo | --dataro | --datar)
978    ac_prev=datarootdir ;;
979  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981    datarootdir=$ac_optarg ;;
982
983  -disable-* | --disable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: $ac_useropt"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=no ;;
998
999  -docdir | --docdir | --docdi | --doc | --do)
1000    ac_prev=docdir ;;
1001  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002    docdir=$ac_optarg ;;
1003
1004  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005    ac_prev=dvidir ;;
1006  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007    dvidir=$ac_optarg ;;
1008
1009  -enable-* | --enable-*)
1010    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013      as_fn_error $? "invalid feature name: $ac_useropt"
1014    ac_useropt_orig=$ac_useropt
1015    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016    case $ac_user_opts in
1017      *"
1018"enable_$ac_useropt"
1019"*) ;;
1020      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021	 ac_unrecognized_sep=', ';;
1022    esac
1023    eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027  | --exec | --exe | --ex)
1028    ac_prev=exec_prefix ;;
1029  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031  | --exec=* | --exe=* | --ex=*)
1032    exec_prefix=$ac_optarg ;;
1033
1034  -gas | --gas | --ga | --g)
1035    # Obsolete; use --with-gas.
1036    with_gas=yes ;;
1037
1038  -help | --help | --hel | --he | -h)
1039    ac_init_help=long ;;
1040  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041    ac_init_help=recursive ;;
1042  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043    ac_init_help=short ;;
1044
1045  -host | --host | --hos | --ho)
1046    ac_prev=host_alias ;;
1047  -host=* | --host=* | --hos=* | --ho=*)
1048    host_alias=$ac_optarg ;;
1049
1050  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051    ac_prev=htmldir ;;
1052  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053  | --ht=*)
1054    htmldir=$ac_optarg ;;
1055
1056  -includedir | --includedir | --includedi | --included | --include \
1057  | --includ | --inclu | --incl | --inc)
1058    ac_prev=includedir ;;
1059  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060  | --includ=* | --inclu=* | --incl=* | --inc=*)
1061    includedir=$ac_optarg ;;
1062
1063  -infodir | --infodir | --infodi | --infod | --info | --inf)
1064    ac_prev=infodir ;;
1065  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066    infodir=$ac_optarg ;;
1067
1068  -libdir | --libdir | --libdi | --libd)
1069    ac_prev=libdir ;;
1070  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071    libdir=$ac_optarg ;;
1072
1073  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074  | --libexe | --libex | --libe)
1075    ac_prev=libexecdir ;;
1076  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077  | --libexe=* | --libex=* | --libe=*)
1078    libexecdir=$ac_optarg ;;
1079
1080  -localedir | --localedir | --localedi | --localed | --locale)
1081    ac_prev=localedir ;;
1082  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083    localedir=$ac_optarg ;;
1084
1085  -localstatedir | --localstatedir | --localstatedi | --localstated \
1086  | --localstate | --localstat | --localsta | --localst | --locals)
1087    ac_prev=localstatedir ;;
1088  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090    localstatedir=$ac_optarg ;;
1091
1092  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093    ac_prev=mandir ;;
1094  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095    mandir=$ac_optarg ;;
1096
1097  -nfp | --nfp | --nf)
1098    # Obsolete; use --without-fp.
1099    with_fp=no ;;
1100
1101  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102  | --no-cr | --no-c | -n)
1103    no_create=yes ;;
1104
1105  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107    no_recursion=yes ;;
1108
1109  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111  | --oldin | --oldi | --old | --ol | --o)
1112    ac_prev=oldincludedir ;;
1113  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116    oldincludedir=$ac_optarg ;;
1117
1118  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119    ac_prev=prefix ;;
1120  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121    prefix=$ac_optarg ;;
1122
1123  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124  | --program-pre | --program-pr | --program-p)
1125    ac_prev=program_prefix ;;
1126  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128    program_prefix=$ac_optarg ;;
1129
1130  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131  | --program-suf | --program-su | --program-s)
1132    ac_prev=program_suffix ;;
1133  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135    program_suffix=$ac_optarg ;;
1136
1137  -program-transform-name | --program-transform-name \
1138  | --program-transform-nam | --program-transform-na \
1139  | --program-transform-n | --program-transform- \
1140  | --program-transform | --program-transfor \
1141  | --program-transfo | --program-transf \
1142  | --program-trans | --program-tran \
1143  | --progr-tra | --program-tr | --program-t)
1144    ac_prev=program_transform_name ;;
1145  -program-transform-name=* | --program-transform-name=* \
1146  | --program-transform-nam=* | --program-transform-na=* \
1147  | --program-transform-n=* | --program-transform-=* \
1148  | --program-transform=* | --program-transfor=* \
1149  | --program-transfo=* | --program-transf=* \
1150  | --program-trans=* | --program-tran=* \
1151  | --progr-tra=* | --program-tr=* | --program-t=*)
1152    program_transform_name=$ac_optarg ;;
1153
1154  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155    ac_prev=pdfdir ;;
1156  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157    pdfdir=$ac_optarg ;;
1158
1159  -psdir | --psdir | --psdi | --psd | --ps)
1160    ac_prev=psdir ;;
1161  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162    psdir=$ac_optarg ;;
1163
1164  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165  | -silent | --silent | --silen | --sile | --sil)
1166    silent=yes ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: $ac_useropt"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=\$ac_optarg ;;
1228
1229  -without-* | --without-*)
1230    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233      as_fn_error $? "invalid package name: $ac_useropt"
1234    ac_useropt_orig=$ac_useropt
1235    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236    case $ac_user_opts in
1237      *"
1238"with_$ac_useropt"
1239"*) ;;
1240      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241	 ac_unrecognized_sep=', ';;
1242    esac
1243    eval with_$ac_useropt=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265    ;;
1266
1267  *=*)
1268    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269    # Reject names that are not valid shell variable names.
1270    case $ac_envvar in #(
1271      '' | [0-9]* | *[!_$as_cr_alnum]* )
1272      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273    esac
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294  case $enable_option_checking in
1295    no) ;;
1296    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298  esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303		datadir sysconfdir sharedstatedir localstatedir includedir \
1304		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305		libdir localedir mandir
1306do
1307  eval ac_val=\$$ac_var
1308  # Remove trailing slashes.
1309  case $ac_val in
1310    */ )
1311      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312      eval $ac_var=\$ac_val;;
1313  esac
1314  # Be sure to have absolute directory names.
1315  case $ac_val in
1316    [\\/$]* | ?:[\\/]* )  continue;;
1317    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318  esac
1319  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331  if test "x$build_alias" = x; then
1332    cross_compiling=maybe
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures PCRE 8.36 to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487  case $ac_init_help in
1488     short | recursive ) echo "Configuration of PCRE 8.36:";;
1489   esac
1490  cat <<\_ACEOF
1491
1492Optional Features:
1493  --disable-option-checking  ignore unrecognized --enable/--with options
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --enable-silent-rules   less verbose build output (undo: "make V=1")
1497  --disable-silent-rules  verbose build output (undo: "make V=0")
1498  --enable-dependency-tracking
1499                          do not reject slow dependency extractors
1500  --disable-dependency-tracking
1501                          speeds up one-time build
1502  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503  --enable-static[=PKGS]  build static libraries [default=yes]
1504  --enable-fast-install[=PKGS]
1505                          optimize for fast installation [default=yes]
1506  --disable-libtool-lock  avoid locking (might break parallel builds)
1507  --disable-pcre8         disable 8 bit character support
1508  --enable-pcre16         enable 16 bit character support
1509  --enable-pcre32         enable 32 bit character support
1510  --disable-cpp           disable C++ support
1511  --enable-jit            enable Just-In-Time compiling support
1512  --disable-pcregrep-jit  disable JIT support in pcregrep
1513  --enable-rebuild-chartables
1514                          rebuild character tables in current locale
1515  --enable-utf8           another name for --enable-utf. Kept only for
1516                          compatibility reasons
1517  --enable-utf            enable UTF-8/16/32 support (incompatible with
1518                          --enable-ebcdic)
1519  --enable-unicode-properties
1520                          enable Unicode properties support (implies
1521                          --enable-utf)
1522  --enable-newline-is-cr  use CR as newline character
1523  --enable-newline-is-lf  use LF as newline character (default)
1524  --enable-newline-is-crlf
1525                          use CRLF as newline sequence
1526  --enable-newline-is-anycrlf
1527                          use CR, LF, or CRLF as newline sequence
1528  --enable-newline-is-any use any valid Unicode newline sequence
1529  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1530  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1531                          with --enable-utf; use only in (uncommon) EBCDIC
1532                          environments; it implies --enable-rebuild-chartables
1533  --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1534                          implies --enable-ebcdic
1535  --disable-stack-for-recursion
1536                          don't use stack recursion when matching
1537  --enable-pcregrep-libz  link pcregrep with libz to handle .gz files
1538  --enable-pcregrep-libbz2
1539                          link pcregrep with libbz2 to handle .bz2 files
1540  --enable-pcretest-libedit
1541                          link pcretest with libedit
1542  --enable-pcretest-libreadline
1543                          link pcretest with libreadline
1544  --enable-valgrind       valgrind support
1545  --enable-coverage       enable code coverage reports using gcov
1546
1547Optional Packages:
1548  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1549  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1550  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1551                          both]
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553  --with-sysroot=DIR Search for dependent libraries within DIR
1554                        (or the compiler's sysroot if not specified).
1555  --with-pcregrep-bufsize=N
1556                          pcregrep buffer size (default=20480, minimum=8192)
1557  --with-posix-malloc-threshold=NBYTES
1558                          threshold for POSIX malloc usage (default=10)
1559  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1560  --with-parens-nest-limit=N
1561                          nested parentheses limit (default=250)
1562  --with-match-limit=N    default limit on internal looping (default=10000000)
1563  --with-match-limit-recursion=N
1564                          default limit on internal recursion
1565                          (default=MATCH_LIMIT)
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CXX         C++ compiler command
1576  CXXFLAGS    C++ compiler flags
1577  CPP         C preprocessor
1578  CXXCPP      C++ preprocessor
1579  PKG_CONFIG  path to pkg-config utility
1580  PKG_CONFIG_PATH
1581              directories to add to pkg-config's search path
1582  PKG_CONFIG_LIBDIR
1583              path overriding pkg-config's built-in search path
1584  VALGRIND_CFLAGS
1585              C compiler flags for VALGRIND, overriding pkg-config
1586  VALGRIND_LIBS
1587              linker flags for VALGRIND, overriding pkg-config
1588  LCOV        the ltp lcov program
1589  GENHTML     the ltp genhtml program
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to the package provider.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" ||
1603      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604      continue
1605    ac_builddir=.
1606
1607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611  # A ".." for each directory in $ac_dir_suffix.
1612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613  case $ac_top_builddir_sub in
1614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616  esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
1622
1623case $srcdir in
1624  .)  # We are building in place.
1625    ac_srcdir=.
1626    ac_top_srcdir=$ac_top_builddir_sub
1627    ac_abs_top_srcdir=$ac_pwd ;;
1628  [\\/]* | ?:[\\/]* )  # Absolute name.
1629    ac_srcdir=$srcdir$ac_dir_suffix;
1630    ac_top_srcdir=$srcdir
1631    ac_abs_top_srcdir=$srcdir ;;
1632  *) # Relative name.
1633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636esac
1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639    cd "$ac_dir" || { ac_status=$?; continue; }
1640    # Check for guested configure.
1641    if test -f "$ac_srcdir/configure.gnu"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644    elif test -f "$ac_srcdir/configure"; then
1645      echo &&
1646      $SHELL "$ac_srcdir/configure" --help=recursive
1647    else
1648      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649    fi || ac_status=$?
1650    cd "$ac_pwd" || { ac_status=$?; break; }
1651  done
1652fi
1653
1654test -n "$ac_init_help" && exit $ac_status
1655if $ac_init_version; then
1656  cat <<\_ACEOF
1657PCRE configure 8.36
1658generated by GNU Autoconf 2.69
1659
1660Copyright (C) 2012 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  rm -f conftest.$ac_objext
1678  if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_compile") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && {
1694	 test -z "$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       } && test -s conftest.$ac_objext; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702	ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_cxx_try_compile LINENO
1710# ----------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_cxx_try_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext
1716  if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_compile") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_cxx_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest.$ac_objext; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740	ac_retval=1
1741fi
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_cxx_try_compile
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761  ac_status=$?
1762  if test -s conftest.err; then
1763    grep -v '^ *+' conftest.err >conftest.er1
1764    cat conftest.er1 >&5
1765    mv -f conftest.er1 conftest.err
1766  fi
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; } > conftest.i && {
1769	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770	 test ! -s conftest.err
1771       }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777    ac_retval=1
1778fi
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_link") 2>&5
1799  ac_status=$?
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802  { { case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_try") 2>&5
1809  ac_status=$?
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; }; }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: program exited with status $ac_status" >&5
1815       $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818       ac_retval=$ac_status
1819fi
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827# -------------------------------------------------------
1828# Tests whether HEADER exists and can be compiled using the include files in
1829# INCLUDES, setting the cache variable VAR accordingly.
1830ac_fn_c_check_header_compile ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if eval \${$3+:} false; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840$4
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  eval "$3=yes"
1845else
1846  eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_header_compile
1856
1857# ac_fn_c_find_intX_t LINENO BITS VAR
1858# -----------------------------------
1859# Finds a signed integer type with width BITS, setting cache variable VAR
1860# accordingly.
1861ac_fn_c_find_intX_t ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1865$as_echo_n "checking for int$2_t... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  eval "$3=no"
1870     # Order is important - never check a type that is potentially smaller
1871     # than half of the expected target width.
1872     for ac_type in int$2_t 'int' 'long int' \
1873	 'long long int' 'short int' 'signed char'; do
1874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$ac_includes_default
1877	     enum { N = $2 / 2 - 1 };
1878int
1879main ()
1880{
1881static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1882test_array [0] = 0;
1883return test_array [0];
1884
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$ac_includes_default
1893	        enum { N = $2 / 2 - 1 };
1894int
1895main ()
1896{
1897static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1898		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1899test_array [0] = 0;
1900return test_array [0];
1901
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907
1908else
1909  case $ac_type in #(
1910  int$2_t) :
1911    eval "$3=yes" ;; #(
1912  *) :
1913    eval "$3=\$ac_type" ;;
1914esac
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919       if eval test \"x\$"$3"\" = x"no"; then :
1920
1921else
1922  break
1923fi
1924     done
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_find_intX_t
1932
1933# ac_fn_c_try_link LINENO
1934# -----------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_c_try_link ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  rm -f conftest.$ac_objext conftest$ac_exeext
1940  if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_link") 2>conftest.err
1948  ac_status=$?
1949  if test -s conftest.err; then
1950    grep -v '^ *+' conftest.err >conftest.er1
1951    cat conftest.er1 >&5
1952    mv -f conftest.er1 conftest.err
1953  fi
1954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955  test $ac_status = 0; } && {
1956	 test -z "$ac_c_werror_flag" ||
1957	 test ! -s conftest.err
1958       } && test -s conftest$ac_exeext && {
1959	 test "$cross_compiling" = yes ||
1960	 test -x conftest$ac_exeext
1961       }; then :
1962  ac_retval=0
1963else
1964  $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967	ac_retval=1
1968fi
1969  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971  # interfere with the next link command; also delete a directory that is
1972  # left behind by Apple's compiler.  We do this before executing the actions.
1973  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_c_try_link
1978
1979# ac_fn_c_check_func LINENO FUNC VAR
1980# ----------------------------------
1981# Tests whether FUNC exists, setting the cache variable VAR accordingly
1982ac_fn_c_check_func ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988  $as_echo_n "(cached) " >&6
1989else
1990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1994#define $2 innocuous_$2
1995
1996/* System header to define __stub macros and hopefully few prototypes,
1997    which can conflict with char $2 (); below.
1998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1999    <limits.h> exists even on freestanding compilers.  */
2000
2001#ifdef __STDC__
2002# include <limits.h>
2003#else
2004# include <assert.h>
2005#endif
2006
2007#undef $2
2008
2009/* Override any GCC internal prototype to avoid an error.
2010   Use char because int might match the return type of a GCC
2011   builtin and then its argument prototype would still apply.  */
2012#ifdef __cplusplus
2013extern "C"
2014#endif
2015char $2 ();
2016/* The GNU C library defines this for functions which it implements
2017    to always fail with ENOSYS.  Some functions are actually named
2018    something starting with __ and the normal name is an alias.  */
2019#if defined __stub_$2 || defined __stub___$2
2020choke me
2021#endif
2022
2023int
2024main ()
2025{
2026return $2 ();
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_link "$LINENO"; then :
2032  eval "$3=yes"
2033else
2034  eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext \
2037    conftest$ac_exeext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044} # ac_fn_c_check_func
2045
2046# ac_fn_cxx_try_cpp LINENO
2047# ------------------------
2048# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049ac_fn_cxx_try_cpp ()
2050{
2051  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052  if { { ac_try="$ac_cpp conftest.$ac_ext"
2053case "(($ac_try" in
2054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055  *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060  ac_status=$?
2061  if test -s conftest.err; then
2062    grep -v '^ *+' conftest.err >conftest.er1
2063    cat conftest.er1 >&5
2064    mv -f conftest.er1 conftest.err
2065  fi
2066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067  test $ac_status = 0; } > conftest.i && {
2068	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069	 test ! -s conftest.err
2070       }; then :
2071  ac_retval=0
2072else
2073  $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076    ac_retval=1
2077fi
2078  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079  as_fn_set_status $ac_retval
2080
2081} # ac_fn_cxx_try_cpp
2082
2083# ac_fn_cxx_try_link LINENO
2084# -------------------------
2085# Try to link conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_cxx_try_link ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  rm -f conftest.$ac_objext conftest$ac_exeext
2090  if { { ac_try="$ac_link"
2091case "(($ac_try" in
2092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093  *) ac_try_echo=$ac_try;;
2094esac
2095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096$as_echo "$ac_try_echo"; } >&5
2097  (eval "$ac_link") 2>conftest.err
2098  ac_status=$?
2099  if test -s conftest.err; then
2100    grep -v '^ *+' conftest.err >conftest.er1
2101    cat conftest.er1 >&5
2102    mv -f conftest.er1 conftest.err
2103  fi
2104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105  test $ac_status = 0; } && {
2106	 test -z "$ac_cxx_werror_flag" ||
2107	 test ! -s conftest.err
2108       } && test -s conftest$ac_exeext && {
2109	 test "$cross_compiling" = yes ||
2110	 test -x conftest$ac_exeext
2111       }; then :
2112  ac_retval=0
2113else
2114  $as_echo "$as_me: failed program was:" >&5
2115sed 's/^/| /' conftest.$ac_ext >&5
2116
2117	ac_retval=1
2118fi
2119  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2120  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2121  # interfere with the next link command; also delete a directory that is
2122  # left behind by Apple's compiler.  We do this before executing the actions.
2123  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125  as_fn_set_status $ac_retval
2126
2127} # ac_fn_cxx_try_link
2128
2129# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2130# -------------------------------------------------------
2131# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2132# the include files in INCLUDES and setting the cache variable VAR
2133# accordingly.
2134ac_fn_c_check_header_mongrel ()
2135{
2136  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137  if eval \${$3+:} false; then :
2138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
2140if eval \${$3+:} false; then :
2141  $as_echo_n "(cached) " >&6
2142fi
2143eval ac_res=\$$3
2144	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145$as_echo "$ac_res" >&6; }
2146else
2147  # Is the header compilable?
2148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2149$as_echo_n "checking $2 usability... " >&6; }
2150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153#include <$2>
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156  ac_header_compiler=yes
2157else
2158  ac_header_compiler=no
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2162$as_echo "$ac_header_compiler" >&6; }
2163
2164# Is the header present?
2165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2166$as_echo_n "checking $2 presence... " >&6; }
2167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169#include <$2>
2170_ACEOF
2171if ac_fn_c_try_cpp "$LINENO"; then :
2172  ac_header_preproc=yes
2173else
2174  ac_header_preproc=no
2175fi
2176rm -f conftest.err conftest.i conftest.$ac_ext
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178$as_echo "$ac_header_preproc" >&6; }
2179
2180# So?  What about this header?
2181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2182  yes:no: )
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2184$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2185    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187    ;;
2188  no:yes:* )
2189    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2190$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2191    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2192$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2194$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2195    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2196$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199    ;;
2200esac
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202$as_echo_n "checking for $2... " >&6; }
2203if eval \${$3+:} false; then :
2204  $as_echo_n "(cached) " >&6
2205else
2206  eval "$3=\$ac_header_compiler"
2207fi
2208eval ac_res=\$$3
2209	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211fi
2212  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214} # ac_fn_c_check_header_mongrel
2215
2216# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2217# ---------------------------------------------------------
2218# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2219# the include files in INCLUDES and setting the cache variable VAR
2220# accordingly.
2221ac_fn_cxx_check_header_mongrel ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  if eval \${$3+:} false; then :
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226$as_echo_n "checking for $2... " >&6; }
2227if eval \${$3+:} false; then :
2228  $as_echo_n "(cached) " >&6
2229fi
2230eval ac_res=\$$3
2231	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233else
2234  # Is the header compilable?
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2236$as_echo_n "checking $2 usability... " >&6; }
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h.  */
2239$4
2240#include <$2>
2241_ACEOF
2242if ac_fn_cxx_try_compile "$LINENO"; then :
2243  ac_header_compiler=yes
2244else
2245  ac_header_compiler=no
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2249$as_echo "$ac_header_compiler" >&6; }
2250
2251# Is the header present?
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2253$as_echo_n "checking $2 presence... " >&6; }
2254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256#include <$2>
2257_ACEOF
2258if ac_fn_cxx_try_cpp "$LINENO"; then :
2259  ac_header_preproc=yes
2260else
2261  ac_header_preproc=no
2262fi
2263rm -f conftest.err conftest.i conftest.$ac_ext
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2265$as_echo "$ac_header_preproc" >&6; }
2266
2267# So?  What about this header?
2268case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2269  yes:no: )
2270    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2271$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2272    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2273$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2274    ;;
2275  no:yes:* )
2276    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2277$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2279$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2280    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2281$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2283$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2284    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2285$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2286    ;;
2287esac
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289$as_echo_n "checking for $2... " >&6; }
2290if eval \${$3+:} false; then :
2291  $as_echo_n "(cached) " >&6
2292else
2293  eval "$3=\$ac_header_compiler"
2294fi
2295eval ac_res=\$$3
2296	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297$as_echo "$ac_res" >&6; }
2298fi
2299  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300
2301} # ac_fn_cxx_check_header_mongrel
2302
2303# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2304# ---------------------------------------------
2305# Tests whether TYPE exists after having included INCLUDES, setting cache
2306# variable VAR accordingly.
2307ac_fn_cxx_check_type ()
2308{
2309  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311$as_echo_n "checking for $2... " >&6; }
2312if eval \${$3+:} false; then :
2313  $as_echo_n "(cached) " >&6
2314else
2315  eval "$3=no"
2316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h.  */
2318$4
2319int
2320main ()
2321{
2322if (sizeof ($2))
2323	 return 0;
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328if ac_fn_cxx_try_compile "$LINENO"; then :
2329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330/* end confdefs.h.  */
2331$4
2332int
2333main ()
2334{
2335if (sizeof (($2)))
2336	    return 0;
2337  ;
2338  return 0;
2339}
2340_ACEOF
2341if ac_fn_cxx_try_compile "$LINENO"; then :
2342
2343else
2344  eval "$3=yes"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$3
2351	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
2353  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354
2355} # ac_fn_cxx_check_type
2356
2357# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358# -------------------------------------------
2359# Tests whether TYPE exists after having included INCLUDES, setting cache
2360# variable VAR accordingly.
2361ac_fn_c_check_type ()
2362{
2363  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365$as_echo_n "checking for $2... " >&6; }
2366if eval \${$3+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  eval "$3=no"
2370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371/* end confdefs.h.  */
2372$4
2373int
2374main ()
2375{
2376if (sizeof ($2))
2377	 return 0;
2378  ;
2379  return 0;
2380}
2381_ACEOF
2382if ac_fn_c_try_compile "$LINENO"; then :
2383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384/* end confdefs.h.  */
2385$4
2386int
2387main ()
2388{
2389if (sizeof (($2)))
2390	    return 0;
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395if ac_fn_c_try_compile "$LINENO"; then :
2396
2397else
2398  eval "$3=yes"
2399fi
2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403fi
2404eval ac_res=\$$3
2405	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406$as_echo "$ac_res" >&6; }
2407  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408
2409} # ac_fn_c_check_type
2410cat >config.log <<_ACEOF
2411This file contains any messages produced by compilers while
2412running configure, to aid debugging if configure makes a mistake.
2413
2414It was created by PCRE $as_me 8.36, which was
2415generated by GNU Autoconf 2.69.  Invocation command line was
2416
2417  $ $0 $@
2418
2419_ACEOF
2420exec 5>>config.log
2421{
2422cat <<_ASUNAME
2423## --------- ##
2424## Platform. ##
2425## --------- ##
2426
2427hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2428uname -m = `(uname -m) 2>/dev/null || echo unknown`
2429uname -r = `(uname -r) 2>/dev/null || echo unknown`
2430uname -s = `(uname -s) 2>/dev/null || echo unknown`
2431uname -v = `(uname -v) 2>/dev/null || echo unknown`
2432
2433/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2434/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2435
2436/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2437/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2438/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2439/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2440/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2441/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2442/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2443
2444_ASUNAME
2445
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449  IFS=$as_save_IFS
2450  test -z "$as_dir" && as_dir=.
2451    $as_echo "PATH: $as_dir"
2452  done
2453IFS=$as_save_IFS
2454
2455} >&5
2456
2457cat >&5 <<_ACEOF
2458
2459
2460## ----------- ##
2461## Core tests. ##
2462## ----------- ##
2463
2464_ACEOF
2465
2466
2467# Keep a trace of the command line.
2468# Strip out --no-create and --no-recursion so they do not pile up.
2469# Strip out --silent because we don't want to record it for future runs.
2470# Also quote any args containing shell meta-characters.
2471# Make two passes to allow for proper duplicate-argument suppression.
2472ac_configure_args=
2473ac_configure_args0=
2474ac_configure_args1=
2475ac_must_keep_next=false
2476for ac_pass in 1 2
2477do
2478  for ac_arg
2479  do
2480    case $ac_arg in
2481    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483    | -silent | --silent | --silen | --sile | --sil)
2484      continue ;;
2485    *\'*)
2486      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487    esac
2488    case $ac_pass in
2489    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2490    2)
2491      as_fn_append ac_configure_args1 " '$ac_arg'"
2492      if test $ac_must_keep_next = true; then
2493	ac_must_keep_next=false # Got value, back to normal.
2494      else
2495	case $ac_arg in
2496	  *=* | --config-cache | -C | -disable-* | --disable-* \
2497	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499	  | -with-* | --with-* | -without-* | --without-* | --x)
2500	    case "$ac_configure_args0 " in
2501	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502	    esac
2503	    ;;
2504	  -* ) ac_must_keep_next=true ;;
2505	esac
2506      fi
2507      as_fn_append ac_configure_args " '$ac_arg'"
2508      ;;
2509    esac
2510  done
2511done
2512{ ac_configure_args0=; unset ac_configure_args0;}
2513{ ac_configure_args1=; unset ac_configure_args1;}
2514
2515# When interrupted or exit'd, cleanup temporary files, and complete
2516# config.log.  We remove comments because anyway the quotes in there
2517# would cause problems or look ugly.
2518# WARNING: Use '\'' to represent an apostrophe within the trap.
2519# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520trap 'exit_status=$?
2521  # Save into config.log some information that might help in debugging.
2522  {
2523    echo
2524
2525    $as_echo "## ---------------- ##
2526## Cache variables. ##
2527## ---------------- ##"
2528    echo
2529    # The following way of writing the cache mishandles newlines in values,
2530(
2531  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2532    eval ac_val=\$$ac_var
2533    case $ac_val in #(
2534    *${as_nl}*)
2535      case $ac_var in #(
2536      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538      esac
2539      case $ac_var in #(
2540      _ | IFS | as_nl) ;; #(
2541      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2542      *) { eval $ac_var=; unset $ac_var;} ;;
2543      esac ;;
2544    esac
2545  done
2546  (set) 2>&1 |
2547    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2548    *${as_nl}ac_space=\ *)
2549      sed -n \
2550	"s/'\''/'\''\\\\'\'''\''/g;
2551	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552      ;; #(
2553    *)
2554      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2555      ;;
2556    esac |
2557    sort
2558)
2559    echo
2560
2561    $as_echo "## ----------------- ##
2562## Output variables. ##
2563## ----------------- ##"
2564    echo
2565    for ac_var in $ac_subst_vars
2566    do
2567      eval ac_val=\$$ac_var
2568      case $ac_val in
2569      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2570      esac
2571      $as_echo "$ac_var='\''$ac_val'\''"
2572    done | sort
2573    echo
2574
2575    if test -n "$ac_subst_files"; then
2576      $as_echo "## ------------------- ##
2577## File substitutions. ##
2578## ------------------- ##"
2579      echo
2580      for ac_var in $ac_subst_files
2581      do
2582	eval ac_val=\$$ac_var
2583	case $ac_val in
2584	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585	esac
2586	$as_echo "$ac_var='\''$ac_val'\''"
2587      done | sort
2588      echo
2589    fi
2590
2591    if test -s confdefs.h; then
2592      $as_echo "## ----------- ##
2593## confdefs.h. ##
2594## ----------- ##"
2595      echo
2596      cat confdefs.h
2597      echo
2598    fi
2599    test "$ac_signal" != 0 &&
2600      $as_echo "$as_me: caught signal $ac_signal"
2601    $as_echo "$as_me: exit $exit_status"
2602  } >&5
2603  rm -f core *.core core.conftest.* &&
2604    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2605    exit $exit_status
2606' 0
2607for ac_signal in 1 2 13 15; do
2608  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2609done
2610ac_signal=0
2611
2612# confdefs.h avoids OS command line length limits that DEFS can exceed.
2613rm -f -r conftest* confdefs.h
2614
2615$as_echo "/* confdefs.h */" > confdefs.h
2616
2617# Predefined preprocessor variables.
2618
2619cat >>confdefs.h <<_ACEOF
2620#define PACKAGE_NAME "$PACKAGE_NAME"
2621_ACEOF
2622
2623cat >>confdefs.h <<_ACEOF
2624#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2625_ACEOF
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE_VERSION "$PACKAGE_VERSION"
2629_ACEOF
2630
2631cat >>confdefs.h <<_ACEOF
2632#define PACKAGE_STRING "$PACKAGE_STRING"
2633_ACEOF
2634
2635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_URL "$PACKAGE_URL"
2641_ACEOF
2642
2643
2644# Let the site file select an alternate cache file if it wants to.
2645# Prefer an explicitly selected file to automatically selected ones.
2646ac_site_file1=NONE
2647ac_site_file2=NONE
2648if test -n "$CONFIG_SITE"; then
2649  # We do not want a PATH search for config.site.
2650  case $CONFIG_SITE in #((
2651    -*)  ac_site_file1=./$CONFIG_SITE;;
2652    */*) ac_site_file1=$CONFIG_SITE;;
2653    *)   ac_site_file1=./$CONFIG_SITE;;
2654  esac
2655elif test "x$prefix" != xNONE; then
2656  ac_site_file1=$prefix/share/config.site
2657  ac_site_file2=$prefix/etc/config.site
2658else
2659  ac_site_file1=$ac_default_prefix/share/config.site
2660  ac_site_file2=$ac_default_prefix/etc/config.site
2661fi
2662for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2663do
2664  test "x$ac_site_file" = xNONE && continue
2665  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2666    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668    sed 's/^/| /' "$ac_site_file" >&5
2669    . "$ac_site_file" \
2670      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672as_fn_error $? "failed to load site script $ac_site_file
2673See \`config.log' for more details" "$LINENO" 5; }
2674  fi
2675done
2676
2677if test -r "$cache_file"; then
2678  # Some versions of bash will fail to source /dev/null (special files
2679  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2680  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2681    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2682$as_echo "$as_me: loading cache $cache_file" >&6;}
2683    case $cache_file in
2684      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2685      *)                      . "./$cache_file";;
2686    esac
2687  fi
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2690$as_echo "$as_me: creating cache $cache_file" >&6;}
2691  >$cache_file
2692fi
2693
2694# Check that the precious variables saved in the cache have kept the same
2695# value.
2696ac_cache_corrupted=false
2697for ac_var in $ac_precious_vars; do
2698  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699  eval ac_new_set=\$ac_env_${ac_var}_set
2700  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701  eval ac_new_val=\$ac_env_${ac_var}_value
2702  case $ac_old_set,$ac_new_set in
2703    set,)
2704      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706      ac_cache_corrupted=: ;;
2707    ,set)
2708      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710      ac_cache_corrupted=: ;;
2711    ,);;
2712    *)
2713      if test "x$ac_old_val" != "x$ac_new_val"; then
2714	# differences in whitespace do not lead to failure.
2715	ac_old_val_w=`echo x $ac_old_val`
2716	ac_new_val_w=`echo x $ac_new_val`
2717	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720	  ac_cache_corrupted=:
2721	else
2722	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724	  eval $ac_var=\$ac_old_val
2725	fi
2726	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2727$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2728	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2729$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2730      fi;;
2731  esac
2732  # Pass precious variables to config.status.
2733  if test "$ac_new_set" = set; then
2734    case $ac_new_val in
2735    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736    *) ac_arg=$ac_var=$ac_new_val ;;
2737    esac
2738    case " $ac_configure_args " in
2739      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2740      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2741    esac
2742  fi
2743done
2744if $ac_cache_corrupted; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2750fi
2751## -------------------- ##
2752## Main body of script. ##
2753## -------------------- ##
2754
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761
2762
2763am__api_version='1.14'
2764
2765ac_aux_dir=
2766for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767  if test -f "$ac_dir/install-sh"; then
2768    ac_aux_dir=$ac_dir
2769    ac_install_sh="$ac_aux_dir/install-sh -c"
2770    break
2771  elif test -f "$ac_dir/install.sh"; then
2772    ac_aux_dir=$ac_dir
2773    ac_install_sh="$ac_aux_dir/install.sh -c"
2774    break
2775  elif test -f "$ac_dir/shtool"; then
2776    ac_aux_dir=$ac_dir
2777    ac_install_sh="$ac_aux_dir/shtool install -c"
2778    break
2779  fi
2780done
2781if test -z "$ac_aux_dir"; then
2782  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2783fi
2784
2785# These three variables are undocumented and unsupported,
2786# and are intended to be withdrawn in a future Autoconf release.
2787# They can cause serious problems if a builder's source tree is in a directory
2788# whose full name contains unusual characters.
2789ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2790ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2791ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2792
2793
2794# Find a good install program.  We prefer a C program (faster),
2795# so one script is as good as another.  But avoid the broken or
2796# incompatible versions:
2797# SysV /etc/install, /usr/sbin/install
2798# SunOS /usr/etc/install
2799# IRIX /sbin/install
2800# AIX /bin/install
2801# AmigaOS /C/install, which installs bootblocks on floppy discs
2802# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2803# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2804# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2805# OS/2's system install, which has a completely different semantic
2806# ./install, which can be erroneously created by make from ./install.sh.
2807# Reject install programs that cannot install multiple files.
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2809$as_echo_n "checking for a BSD-compatible install... " >&6; }
2810if test -z "$INSTALL"; then
2811if ${ac_cv_path_install+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    # Account for people who put trailing slashes in PATH elements.
2820case $as_dir/ in #((
2821  ./ | .// | /[cC]/* | \
2822  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2823  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2824  /usr/ucb/* ) ;;
2825  *)
2826    # OSF1 and SCO ODT 3.0 have their own names for install.
2827    # Don't use installbsd from OSF since it installs stuff as root
2828    # by default.
2829    for ac_prog in ginstall scoinst install; do
2830      for ac_exec_ext in '' $ac_executable_extensions; do
2831	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2832	  if test $ac_prog = install &&
2833	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834	    # AIX install.  It has an incompatible calling convention.
2835	    :
2836	  elif test $ac_prog = install &&
2837	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838	    # program-specific install script used by HP pwplus--don't use.
2839	    :
2840	  else
2841	    rm -rf conftest.one conftest.two conftest.dir
2842	    echo one > conftest.one
2843	    echo two > conftest.two
2844	    mkdir conftest.dir
2845	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2846	      test -s conftest.one && test -s conftest.two &&
2847	      test -s conftest.dir/conftest.one &&
2848	      test -s conftest.dir/conftest.two
2849	    then
2850	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2851	      break 3
2852	    fi
2853	  fi
2854	fi
2855      done
2856    done
2857    ;;
2858esac
2859
2860  done
2861IFS=$as_save_IFS
2862
2863rm -rf conftest.one conftest.two conftest.dir
2864
2865fi
2866  if test "${ac_cv_path_install+set}" = set; then
2867    INSTALL=$ac_cv_path_install
2868  else
2869    # As a last resort, use the slow shell script.  Don't cache a
2870    # value for INSTALL within a source directory, because that will
2871    # break other packages using the cache if that directory is
2872    # removed, or if the value is a relative name.
2873    INSTALL=$ac_install_sh
2874  fi
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2877$as_echo "$INSTALL" >&6; }
2878
2879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880# It thinks the first close brace ends the variable substitution.
2881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2882
2883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2884
2885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2888$as_echo_n "checking whether build environment is sane... " >&6; }
2889# Reject unsafe characters in $srcdir or the absolute working directory
2890# name.  Accept space and tab only in the latter.
2891am_lf='
2892'
2893case `pwd` in
2894  *[\\\"\#\$\&\'\`$am_lf]*)
2895    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2896esac
2897case $srcdir in
2898  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2899    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2900esac
2901
2902# Do 'set' in a subshell so we don't clobber the current shell's
2903# arguments.  Must try -L first in case configure is actually a
2904# symlink; some systems play weird games with the mod time of symlinks
2905# (eg FreeBSD returns the mod time of the symlink's containing
2906# directory).
2907if (
2908   am_has_slept=no
2909   for am_try in 1 2; do
2910     echo "timestamp, slept: $am_has_slept" > conftest.file
2911     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2912     if test "$*" = "X"; then
2913	# -L didn't work.
2914	set X `ls -t "$srcdir/configure" conftest.file`
2915     fi
2916     if test "$*" != "X $srcdir/configure conftest.file" \
2917	&& test "$*" != "X conftest.file $srcdir/configure"; then
2918
2919	# If neither matched, then we have a broken ls.  This can happen
2920	# if, for instance, CONFIG_SHELL is bash and it inherits a
2921	# broken ls alias from the environment.  This has actually
2922	# happened.  Such a system could not be considered "sane".
2923	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2924  alias in your environment" "$LINENO" 5
2925     fi
2926     if test "$2" = conftest.file || test $am_try -eq 2; then
2927       break
2928     fi
2929     # Just in case.
2930     sleep 1
2931     am_has_slept=yes
2932   done
2933   test "$2" = conftest.file
2934   )
2935then
2936   # Ok.
2937   :
2938else
2939   as_fn_error $? "newly created file is older than distributed files!
2940Check your system clock" "$LINENO" 5
2941fi
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943$as_echo "yes" >&6; }
2944# If we didn't sleep, we still need to ensure time stamps of config.status and
2945# generated files are strictly newer.
2946am_sleep_pid=
2947if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2948  ( sleep 1 ) &
2949  am_sleep_pid=$!
2950fi
2951
2952rm -f conftest.file
2953
2954test "$program_prefix" != NONE &&
2955  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2956# Use a double $ so make ignores it.
2957test "$program_suffix" != NONE &&
2958  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2959# Double any \ or $.
2960# By default was `s,x,x', remove it if useless.
2961ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2962program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2963
2964# expand $ac_aux_dir to an absolute path
2965am_aux_dir=`cd $ac_aux_dir && pwd`
2966
2967if test x"${MISSING+set}" != xset; then
2968  case $am_aux_dir in
2969  *\ * | *\	*)
2970    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2971  *)
2972    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2973  esac
2974fi
2975# Use eval to expand $SHELL
2976if eval "$MISSING --is-lightweight"; then
2977  am_missing_run="$MISSING "
2978else
2979  am_missing_run=
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2981$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2982fi
2983
2984if test x"${install_sh}" != xset; then
2985  case $am_aux_dir in
2986  *\ * | *\	*)
2987    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2988  *)
2989    install_sh="\${SHELL} $am_aux_dir/install-sh"
2990  esac
2991fi
2992
2993# Installed binaries are usually stripped using 'strip' when the user
2994# run "make install-strip".  However 'strip' might not be the right
2995# tool to use in cross-compilation environments, therefore Automake
2996# will honor the 'STRIP' environment variable to overrule this program.
2997if test "$cross_compiling" != no; then
2998  if test -n "$ac_tool_prefix"; then
2999  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3000set dummy ${ac_tool_prefix}strip; ac_word=$2
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002$as_echo_n "checking for $ac_word... " >&6; }
3003if ${ac_cv_prog_STRIP+:} false; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  if test -n "$STRIP"; then
3007  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  test -z "$as_dir" && as_dir=.
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026STRIP=$ac_cv_prog_STRIP
3027if test -n "$STRIP"; then
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3029$as_echo "$STRIP" >&6; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036fi
3037if test -z "$ac_cv_prog_STRIP"; then
3038  ac_ct_STRIP=$STRIP
3039  # Extract the first word of "strip", so it can be a program name with args.
3040set dummy strip; ac_word=$2
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042$as_echo_n "checking for $ac_word... " >&6; }
3043if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  if test -n "$ac_ct_STRIP"; then
3047  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054    for ac_exec_ext in '' $ac_executable_extensions; do
3055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056    ac_cv_prog_ac_ct_STRIP="strip"
3057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061  done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3067if test -n "$ac_ct_STRIP"; then
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069$as_echo "$ac_ct_STRIP" >&6; }
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075  if test "x$ac_ct_STRIP" = x; then
3076    STRIP=":"
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    STRIP=$ac_ct_STRIP
3085  fi
3086else
3087  STRIP="$ac_cv_prog_STRIP"
3088fi
3089
3090fi
3091INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3094$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3095if test -z "$MKDIR_P"; then
3096  if ${ac_cv_path_mkdir+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104    for ac_prog in mkdir gmkdir; do
3105	 for ac_exec_ext in '' $ac_executable_extensions; do
3106	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3107	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108	     'mkdir (GNU coreutils) '* | \
3109	     'mkdir (coreutils) '* | \
3110	     'mkdir (fileutils) '4.1*)
3111	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3112	       break 3;;
3113	   esac
3114	 done
3115       done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120
3121  test -d ./--version && rmdir ./--version
3122  if test "${ac_cv_path_mkdir+set}" = set; then
3123    MKDIR_P="$ac_cv_path_mkdir -p"
3124  else
3125    # As a last resort, use the slow shell script.  Don't cache a
3126    # value for MKDIR_P within a source directory, because that will
3127    # break other packages using the cache if that directory is
3128    # removed, or if the value is a relative name.
3129    MKDIR_P="$ac_install_sh -d"
3130  fi
3131fi
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3133$as_echo "$MKDIR_P" >&6; }
3134
3135for ac_prog in gawk mawk nawk awk
3136do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138set dummy $ac_prog; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if ${ac_cv_prog_AWK+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test -n "$AWK"; then
3145  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154    ac_cv_prog_AWK="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164AWK=$ac_cv_prog_AWK
3165if test -n "$AWK"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167$as_echo "$AWK" >&6; }
3168else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174  test -n "$AWK" && break
3175done
3176
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3179set x ${MAKE-make}
3180ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  cat >conftest.make <<\_ACEOF
3185SHELL = /bin/sh
3186all:
3187	@echo '@@@%%%=$(MAKE)=@@@%%%'
3188_ACEOF
3189# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190case `${MAKE-make} -f conftest.make 2>/dev/null` in
3191  *@@@%%%=?*=@@@%%%*)
3192    eval ac_cv_prog_make_${ac_make}_set=yes;;
3193  *)
3194    eval ac_cv_prog_make_${ac_make}_set=no;;
3195esac
3196rm -f conftest.make
3197fi
3198if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200$as_echo "yes" >&6; }
3201  SET_MAKE=
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205  SET_MAKE="MAKE=${MAKE-make}"
3206fi
3207
3208rm -rf .tst 2>/dev/null
3209mkdir .tst 2>/dev/null
3210if test -d .tst; then
3211  am__leading_dot=.
3212else
3213  am__leading_dot=_
3214fi
3215rmdir .tst 2>/dev/null
3216
3217# Check whether --enable-silent-rules was given.
3218if test "${enable_silent_rules+set}" = set; then :
3219  enableval=$enable_silent_rules;
3220fi
3221
3222case $enable_silent_rules in # (((
3223  yes) AM_DEFAULT_VERBOSITY=0;;
3224   no) AM_DEFAULT_VERBOSITY=1;;
3225    *) AM_DEFAULT_VERBOSITY=1;;
3226esac
3227am_make=${MAKE-make}
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3229$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3230if ${am_cv_make_support_nested_variables+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  if $as_echo 'TRUE=$(BAR$(V))
3234BAR0=false
3235BAR1=true
3236V=1
3237am__doit:
3238	@$(TRUE)
3239.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3240  am_cv_make_support_nested_variables=yes
3241else
3242  am_cv_make_support_nested_variables=no
3243fi
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246$as_echo "$am_cv_make_support_nested_variables" >&6; }
3247if test $am_cv_make_support_nested_variables = yes; then
3248    AM_V='$(V)'
3249  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3250else
3251  AM_V=$AM_DEFAULT_VERBOSITY
3252  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3253fi
3254AM_BACKSLASH='\'
3255
3256if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258  # is not polluted with repeated "-I."
3259  am__isrc=' -I$(srcdir)'
3260  # test to see if srcdir already configured
3261  if test -f $srcdir/config.status; then
3262    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3263  fi
3264fi
3265
3266# test whether we have cygpath
3267if test -z "$CYGPATH_W"; then
3268  if (cygpath --version) >/dev/null 2>/dev/null; then
3269    CYGPATH_W='cygpath -w'
3270  else
3271    CYGPATH_W=echo
3272  fi
3273fi
3274
3275
3276# Define the identity of the package.
3277 PACKAGE='pcre'
3278 VERSION='8.36'
3279
3280
3281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE "$PACKAGE"
3283_ACEOF
3284
3285
3286cat >>confdefs.h <<_ACEOF
3287#define VERSION "$VERSION"
3288_ACEOF
3289
3290# Some tools Automake needs.
3291
3292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3293
3294
3295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3296
3297
3298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3299
3300
3301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3302
3303
3304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3305
3306# For better backward compatibility.  To be removed once Automake 1.9.x
3307# dies out for good.  For more background, see:
3308# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3309# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3310mkdir_p='$(MKDIR_P)'
3311
3312# We need awk for the "check" target.  The system "awk" is bad on
3313# some platforms.
3314# Always define AMTAR for backward compatibility.  Yes, it's still used
3315# in the wild :-(  We should find a proper way to deprecate it ...
3316AMTAR='$${TAR-tar}'
3317
3318
3319# We'll loop over all known methods to create a tar archive until one works.
3320_am_tools='gnutar  pax cpio none'
3321
3322am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3323
3324
3325
3326
3327
3328
3329# POSIX will say in a future version that running "rm -f" with no argument
3330# is OK; and we want to be able to make that assumption in our Makefile
3331# recipes.  So use an aggressive probe to check that the usage we want is
3332# actually supported "in the wild" to an acceptable degree.
3333# See automake bug#10828.
3334# To make any issue more visible, cause the running configure to be aborted
3335# by default if the 'rm' program in use doesn't match our expectations; the
3336# user can still override this though.
3337if rm -f && rm -fr && rm -rf; then : OK; else
3338  cat >&2 <<'END'
3339Oops!
3340
3341Your 'rm' program seems unable to run without file operands specified
3342on the command line, even when the '-f' option is present.  This is contrary
3343to the behaviour of most rm programs out there, and not conforming with
3344the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3345
3346Please tell bug-automake@gnu.org about your system, including the value
3347of your $PATH and any error possibly output before this message.  This
3348can help us improve future automake versions.
3349
3350END
3351  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3352    echo 'Configuration will proceed anyway, since you have set the' >&2
3353    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3354    echo >&2
3355  else
3356    cat >&2 <<'END'
3357Aborting the configuration process, to ensure you take notice of the issue.
3358
3359You can download and install GNU coreutils to get an 'rm' implementation
3360that behaves properly: <http://www.gnu.org/software/coreutils/>.
3361
3362If you want to complete the configuration process using your problematic
3363'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3364to "yes", and re-run configure.
3365
3366END
3367    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3368  fi
3369fi
3370# Check whether --enable-silent-rules was given.
3371if test "${enable_silent_rules+set}" = set; then :
3372  enableval=$enable_silent_rules;
3373fi
3374
3375case $enable_silent_rules in # (((
3376  yes) AM_DEFAULT_VERBOSITY=0;;
3377   no) AM_DEFAULT_VERBOSITY=1;;
3378    *) AM_DEFAULT_VERBOSITY=0;;
3379esac
3380am_make=${MAKE-make}
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383if ${am_cv_make_support_nested_variables+:} false; then :
3384  $as_echo_n "(cached) " >&6
3385else
3386  if $as_echo 'TRUE=$(BAR$(V))
3387BAR0=false
3388BAR1=true
3389V=1
3390am__doit:
3391	@$(TRUE)
3392.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3393  am_cv_make_support_nested_variables=yes
3394else
3395  am_cv_make_support_nested_variables=no
3396fi
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399$as_echo "$am_cv_make_support_nested_variables" >&6; }
3400if test $am_cv_make_support_nested_variables = yes; then
3401    AM_V='$(V)'
3402  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3403else
3404  AM_V=$AM_DEFAULT_VERBOSITY
3405  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3406fi
3407AM_BACKSLASH='\'
3408
3409ac_config_headers="$ac_config_headers config.h"
3410
3411
3412# This is a new thing required to stop a warning from automake 1.12
3413DEPDIR="${am__leading_dot}deps"
3414
3415ac_config_commands="$ac_config_commands depfiles"
3416
3417
3418am_make=${MAKE-make}
3419cat > confinc << 'END'
3420am__doit:
3421	@echo this is the am__doit target
3422.PHONY: am__doit
3423END
3424# If we don't find an include directive, just comment out the code.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3426$as_echo_n "checking for style of include used by $am_make... " >&6; }
3427am__include="#"
3428am__quote=
3429_am_result=none
3430# First try GNU make style include.
3431echo "include confinc" > confmf
3432# Ignore all kinds of additional output from 'make'.
3433case `$am_make -s -f confmf 2> /dev/null` in #(
3434*the\ am__doit\ target*)
3435  am__include=include
3436  am__quote=
3437  _am_result=GNU
3438  ;;
3439esac
3440# Now try BSD make style include.
3441if test "$am__include" = "#"; then
3442   echo '.include "confinc"' > confmf
3443   case `$am_make -s -f confmf 2> /dev/null` in #(
3444   *the\ am__doit\ target*)
3445     am__include=.include
3446     am__quote="\""
3447     _am_result=BSD
3448     ;;
3449   esac
3450fi
3451
3452
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3454$as_echo "$_am_result" >&6; }
3455rm -f confinc confmf
3456
3457# Check whether --enable-dependency-tracking was given.
3458if test "${enable_dependency_tracking+set}" = set; then :
3459  enableval=$enable_dependency_tracking;
3460fi
3461
3462if test "x$enable_dependency_tracking" != xno; then
3463  am_depcomp="$ac_aux_dir/depcomp"
3464  AMDEPBACKSLASH='\'
3465  am__nodep='_no'
3466fi
3467 if test "x$enable_dependency_tracking" != xno; then
3468  AMDEP_TRUE=
3469  AMDEP_FALSE='#'
3470else
3471  AMDEP_TRUE='#'
3472  AMDEP_FALSE=
3473fi
3474
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481if test -n "$ac_tool_prefix"; then
3482  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485$as_echo_n "checking for $ac_word... " >&6; }
3486if ${ac_cv_prog_CC+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  if test -n "$CC"; then
3490  ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  test -z "$as_dir" && as_dir=.
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512$as_echo "$CC" >&6; }
3513else
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516fi
3517
3518
3519fi
3520if test -z "$ac_cv_prog_CC"; then
3521  ac_ct_CC=$CC
3522  # Extract the first word of "gcc", so it can be a program name with args.
3523set dummy gcc; ac_word=$2
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525$as_echo_n "checking for $ac_word... " >&6; }
3526if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  if test -n "$ac_ct_CC"; then
3530  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_ac_ct_CC="gcc"
3540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550if test -n "$ac_ct_CC"; then
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552$as_echo "$ac_ct_CC" >&6; }
3553else
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558  if test "x$ac_ct_CC" = x; then
3559    CC=""
3560  else
3561    case $cross_compiling:$ac_tool_warned in
3562yes:)
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567    CC=$ac_ct_CC
3568  fi
3569else
3570  CC="$ac_cv_prog_CC"
3571fi
3572
3573if test -z "$CC"; then
3574          if test -n "$ac_tool_prefix"; then
3575    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576set dummy ${ac_tool_prefix}cc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_CC+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -n "$CC"; then
3583  ac_cv_prog_CC="$CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590    for ac_exec_ext in '' $ac_executable_extensions; do
3591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592    ac_cv_prog_CC="${ac_tool_prefix}cc"
3593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597  done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605$as_echo "$CC" >&6; }
3606else
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611
3612  fi
3613fi
3614if test -z "$CC"; then
3615  # Extract the first word of "cc", so it can be a program name with args.
3616set dummy cc; ac_word=$2
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618$as_echo_n "checking for $ac_word... " >&6; }
3619if ${ac_cv_prog_CC+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -n "$CC"; then
3623  ac_cv_prog_CC="$CC" # Let the user override the test.
3624else
3625  ac_prog_rejected=no
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634       ac_prog_rejected=yes
3635       continue
3636     fi
3637    ac_cv_prog_CC="cc"
3638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642  done
3643IFS=$as_save_IFS
3644
3645if test $ac_prog_rejected = yes; then
3646  # We found a bogon in the path, so make sure we never use it.
3647  set dummy $ac_cv_prog_CC
3648  shift
3649  if test $# != 0; then
3650    # We chose a different compiler from the bogus one.
3651    # However, it has the same basename, so the bogon will be chosen
3652    # first if we set CC to just the basename; use the full file name.
3653    shift
3654    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655  fi
3656fi
3657fi
3658fi
3659CC=$ac_cv_prog_CC
3660if test -n "$CC"; then
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662$as_echo "$CC" >&6; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
3667
3668
3669fi
3670if test -z "$CC"; then
3671  if test -n "$ac_tool_prefix"; then
3672  for ac_prog in cl.exe
3673  do
3674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677$as_echo_n "checking for $ac_word... " >&6; }
3678if ${ac_cv_prog_CC+:} false; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$CC"; then
3682  ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704$as_echo "$CC" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711    test -n "$CC" && break
3712  done
3713fi
3714if test -z "$CC"; then
3715  ac_ct_CC=$CC
3716  for ac_prog in cl.exe
3717do
3718  # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721$as_echo_n "checking for $ac_word... " >&6; }
3722if ${ac_cv_prog_ac_ct_CC+:} false; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  if test -n "$ac_ct_CC"; then
3726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  test -z "$as_dir" && as_dir=.
3733    for ac_exec_ext in '' $ac_executable_extensions; do
3734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735    ac_cv_prog_ac_ct_CC="$ac_prog"
3736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740  done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746if test -n "$ac_ct_CC"; then
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3748$as_echo "$ac_ct_CC" >&6; }
3749else
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753
3754
3755  test -n "$ac_ct_CC" && break
3756done
3757
3758  if test "x$ac_ct_CC" = x; then
3759    CC=""
3760  else
3761    case $cross_compiling:$ac_tool_warned in
3762yes:)
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765ac_tool_warned=yes ;;
3766esac
3767    CC=$ac_ct_CC
3768  fi
3769fi
3770
3771fi
3772
3773
3774test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776as_fn_error $? "no acceptable C compiler found in \$PATH
3777See \`config.log' for more details" "$LINENO" 5; }
3778
3779# Provide some information about the compiler.
3780$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3781set X $ac_compile
3782ac_compiler=$2
3783for ac_option in --version -v -V -qversion; do
3784  { { ac_try="$ac_compiler $ac_option >&5"
3785case "(($ac_try" in
3786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787  *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3792  ac_status=$?
3793  if test -s conftest.err; then
3794    sed '10a\
3795... rest of stderr output deleted ...
3796         10q' conftest.err >conftest.er1
3797    cat conftest.er1 >&5
3798  fi
3799  rm -f conftest.er1 conftest.err
3800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801  test $ac_status = 0; }
3802done
3803
3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806
3807int
3808main ()
3809{
3810
3811  ;
3812  return 0;
3813}
3814_ACEOF
3815ac_clean_files_save=$ac_clean_files
3816ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3817# Try to create an executable without -o first, disregard a.out.
3818# It will help us diagnose broken compilers, and finding out an intuition
3819# of exeext.
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821$as_echo_n "checking whether the C compiler works... " >&6; }
3822ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3823
3824# The possible output files:
3825ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3826
3827ac_rmfiles=
3828for ac_file in $ac_files
3829do
3830  case $ac_file in
3831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3833  esac
3834done
3835rm -f $ac_rmfiles
3836
3837if { { ac_try="$ac_link_default"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844  (eval "$ac_link_default") 2>&5
3845  ac_status=$?
3846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847  test $ac_status = 0; }; then :
3848  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3849# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3850# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3851# so that the user can short-circuit this test for compilers unknown to
3852# Autoconf.
3853for ac_file in $ac_files ''
3854do
3855  test -f "$ac_file" || continue
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3858	;;
3859    [ab].out )
3860	# We found the default executable, but exeext='' is most
3861	# certainly right.
3862	break;;
3863    *.* )
3864	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3865	then :; else
3866	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867	fi
3868	# We set ac_cv_exeext here because the later test for it is not
3869	# safe: cross compilers may not add the suffix if given an `-o'
3870	# argument, so we may need to know it at that point already.
3871	# Even if this section looks crufty: it has the advantage of
3872	# actually working.
3873	break;;
3874    * )
3875	break;;
3876  esac
3877done
3878test "$ac_cv_exeext" = no && ac_cv_exeext=
3879
3880else
3881  ac_file=''
3882fi
3883if test -z "$ac_file"; then :
3884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886$as_echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891as_fn_error 77 "C compiler cannot create executables
3892See \`config.log' for more details" "$LINENO" 5; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3895$as_echo "yes" >&6; }
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3898$as_echo_n "checking for C compiler default output file name... " >&6; }
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900$as_echo "$ac_file" >&6; }
3901ac_exeext=$ac_cv_exeext
3902
3903rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3904ac_clean_files=$ac_clean_files_save
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3906$as_echo_n "checking for suffix of executables... " >&6; }
3907if { { ac_try="$ac_link"
3908case "(($ac_try" in
3909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910  *) ac_try_echo=$ac_try;;
3911esac
3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913$as_echo "$ac_try_echo"; } >&5
3914  (eval "$ac_link") 2>&5
3915  ac_status=$?
3916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917  test $ac_status = 0; }; then :
3918  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3919# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3920# work properly (i.e., refer to `conftest.exe'), while it won't with
3921# `rm'.
3922for ac_file in conftest.exe conftest conftest.*; do
3923  test -f "$ac_file" || continue
3924  case $ac_file in
3925    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3926    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927	  break;;
3928    * ) break;;
3929  esac
3930done
3931else
3932  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937rm -f conftest conftest$ac_cv_exeext
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3939$as_echo "$ac_cv_exeext" >&6; }
3940
3941rm -f conftest.$ac_ext
3942EXEEXT=$ac_cv_exeext
3943ac_exeext=$EXEEXT
3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h.  */
3946#include <stdio.h>
3947int
3948main ()
3949{
3950FILE *f = fopen ("conftest.out", "w");
3951 return ferror (f) || fclose (f) != 0;
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957ac_clean_files="$ac_clean_files conftest.out"
3958# Check that the compiler produces executables we can run.  If not, either
3959# the compiler is broken, or we cross compile.
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961$as_echo_n "checking whether we are cross compiling... " >&6; }
3962if test "$cross_compiling" != yes; then
3963  { { ac_try="$ac_link"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970  (eval "$ac_link") 2>&5
3971  ac_status=$?
3972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973  test $ac_status = 0; }
3974  if { ac_try='./conftest$ac_cv_exeext'
3975  { { case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5
3981  (eval "$ac_try") 2>&5
3982  ac_status=$?
3983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984  test $ac_status = 0; }; }; then
3985    cross_compiling=no
3986  else
3987    if test "$cross_compiling" = maybe; then
3988	cross_compiling=yes
3989    else
3990	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992as_fn_error $? "cannot run C compiled programs.
3993If you meant to cross compile, use \`--host'.
3994See \`config.log' for more details" "$LINENO" 5; }
3995    fi
3996  fi
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999$as_echo "$cross_compiling" >&6; }
4000
4001rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4002ac_clean_files=$ac_clean_files_save
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4004$as_echo_n "checking for suffix of object files... " >&6; }
4005if ${ac_cv_objext+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010
4011int
4012main ()
4013{
4014
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019rm -f conftest.o conftest.obj
4020if { { ac_try="$ac_compile"
4021case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026$as_echo "$ac_try_echo"; } >&5
4027  (eval "$ac_compile") 2>&5
4028  ac_status=$?
4029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030  test $ac_status = 0; }; then :
4031  for ac_file in conftest.o conftest.obj conftest.*; do
4032  test -f "$ac_file" || continue;
4033  case $ac_file in
4034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4035    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036       break;;
4037  esac
4038done
4039else
4040  $as_echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045as_fn_error $? "cannot compute suffix of object files: cannot compile
4046See \`config.log' for more details" "$LINENO" 5; }
4047fi
4048rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4051$as_echo "$ac_cv_objext" >&6; }
4052OBJEXT=$ac_cv_objext
4053ac_objext=$OBJEXT
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4055$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4056if ${ac_cv_c_compiler_gnu+:} false; then :
4057  $as_echo_n "(cached) " >&6
4058else
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061
4062int
4063main ()
4064{
4065#ifndef __GNUC__
4066       choke me
4067#endif
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074  ac_compiler_gnu=yes
4075else
4076  ac_compiler_gnu=no
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079ac_cv_c_compiler_gnu=$ac_compiler_gnu
4080
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084if test $ac_compiler_gnu = yes; then
4085  GCC=yes
4086else
4087  GCC=
4088fi
4089ac_test_CFLAGS=${CFLAGS+set}
4090ac_save_CFLAGS=$CFLAGS
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092$as_echo_n "checking whether $CC accepts -g... " >&6; }
4093if ${ac_cv_prog_cc_g+:} false; then :
4094  $as_echo_n "(cached) " >&6
4095else
4096  ac_save_c_werror_flag=$ac_c_werror_flag
4097   ac_c_werror_flag=yes
4098   ac_cv_prog_cc_g=no
4099   CFLAGS="-g"
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112  ac_cv_prog_cc_g=yes
4113else
4114  CFLAGS=""
4115      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127
4128else
4129  ac_c_werror_flag=$ac_save_c_werror_flag
4130	 CFLAGS="-g"
4131	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main ()
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"; then :
4143  ac_cv_prog_cc_g=yes
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146fi
4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150   ac_c_werror_flag=$ac_save_c_werror_flag
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153$as_echo "$ac_cv_prog_cc_g" >&6; }
4154if test "$ac_test_CFLAGS" = set; then
4155  CFLAGS=$ac_save_CFLAGS
4156elif test $ac_cv_prog_cc_g = yes; then
4157  if test "$GCC" = yes; then
4158    CFLAGS="-g -O2"
4159  else
4160    CFLAGS="-g"
4161  fi
4162else
4163  if test "$GCC" = yes; then
4164    CFLAGS="-O2"
4165  else
4166    CFLAGS=
4167  fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4170$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4171if ${ac_cv_prog_cc_c89+:} false; then :
4172  $as_echo_n "(cached) " >&6
4173else
4174  ac_cv_prog_cc_c89=no
4175ac_save_CC=$CC
4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178#include <stdarg.h>
4179#include <stdio.h>
4180struct stat;
4181/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4182struct buf { int x; };
4183FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184static char *e (p, i)
4185     char **p;
4186     int i;
4187{
4188  return p[i];
4189}
4190static char *f (char * (*g) (char **, int), char **p, ...)
4191{
4192  char *s;
4193  va_list v;
4194  va_start (v,p);
4195  s = g (p, va_arg (v,int));
4196  va_end (v);
4197  return s;
4198}
4199
4200/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4201   function prototypes and stuff, but not '\xHH' hex character constants.
4202   These don't provoke an error unfortunately, instead are silently treated
4203   as 'x'.  The following induces an error, until -std is added to get
4204   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4205   array size at least.  It's necessary to write '\x00'==0 to get something
4206   that's true only with -std.  */
4207int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4208
4209/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210   inside strings and character constants.  */
4211#define FOO(x) 'x'
4212int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4213
4214int test (int i, double x);
4215struct s1 {int (*f) (int a);};
4216struct s2 {int (*f) (double a);};
4217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218int argc;
4219char **argv;
4220int
4221main ()
4222{
4223return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4230do
4231  CC="$ac_save_CC $ac_arg"
4232  if ac_fn_c_try_compile "$LINENO"; then :
4233  ac_cv_prog_cc_c89=$ac_arg
4234fi
4235rm -f core conftest.err conftest.$ac_objext
4236  test "x$ac_cv_prog_cc_c89" != "xno" && break
4237done
4238rm -f conftest.$ac_ext
4239CC=$ac_save_CC
4240
4241fi
4242# AC_CACHE_VAL
4243case "x$ac_cv_prog_cc_c89" in
4244  x)
4245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246$as_echo "none needed" >&6; } ;;
4247  xno)
4248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249$as_echo "unsupported" >&6; } ;;
4250  *)
4251    CC="$CC $ac_cv_prog_cc_c89"
4252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4254esac
4255if test "x$ac_cv_prog_cc_c89" != xno; then :
4256
4257fi
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4271$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4272if ${am_cv_prog_cc_c_o+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286  # Make sure it works both with $CC and with simple cc.
4287  # Following AC_PROG_CC_C_O, we do the test twice because some
4288  # compilers refuse to overwrite an existing .o file with -o,
4289  # though they will create one.
4290  am_cv_prog_cc_c_o=yes
4291  for am_i in 1 2; do
4292    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } \
4297         && test -f conftest2.$ac_objext; then
4298      : OK
4299    else
4300      am_cv_prog_cc_c_o=no
4301      break
4302    fi
4303  done
4304  rm -f core conftest*
4305  unset am_i
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308$as_echo "$am_cv_prog_cc_c_o" >&6; }
4309if test "$am_cv_prog_cc_c_o" != yes; then
4310   # Losing compiler, so override with the script.
4311   # FIXME: It is wrong to rewrite CC.
4312   # But if we don't then we get into trouble of one sort or another.
4313   # A longer-term fix would be to have automake use am__CC in this case,
4314   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315   CC="$am_aux_dir/compile $CC"
4316fi
4317ac_ext=c
4318ac_cpp='$CPP $CPPFLAGS'
4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323
4324depcc="$CC"   am_compiler_list=
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
4328if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332  # We make a subdir and do the tests there.  Otherwise we can end up
4333  # making bogus files that we don't know about and never remove.  For
4334  # instance it was reported that on HP-UX the gcc test will end up
4335  # making a dummy file named 'D' -- because '-MD' means "put the output
4336  # in D".
4337  rm -rf conftest.dir
4338  mkdir conftest.dir
4339  # Copy depcomp to subdir because otherwise we won't find it if we're
4340  # using a relative directory.
4341  cp "$am_depcomp" conftest.dir
4342  cd conftest.dir
4343  # We will build objects and dependencies in a subdirectory because
4344  # it helps to detect inapplicable dependency modes.  For instance
4345  # both Tru64's cc and ICC support -MD to output dependencies as a
4346  # side effect of compilation, but ICC will put the dependencies in
4347  # the current directory while Tru64 will put them in the object
4348  # directory.
4349  mkdir sub
4350
4351  am_cv_CC_dependencies_compiler_type=none
4352  if test "$am_compiler_list" = ""; then
4353     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354  fi
4355  am__universal=false
4356  case " $depcc " in #(
4357     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358     esac
4359
4360  for depmode in $am_compiler_list; do
4361    # Setup a source with many dependencies, because some compilers
4362    # like to wrap large dependency lists on column 80 (with \), and
4363    # we should not choose a depcomp mode which is confused by this.
4364    #
4365    # We need to recreate these files for each test, as the compiler may
4366    # overwrite some of them when testing with obscure command lines.
4367    # This happens at least with the AIX C compiler.
4368    : > sub/conftest.c
4369    for i in 1 2 3 4 5 6; do
4370      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4371      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372      # Solaris 10 /bin/sh.
4373      echo '/* dummy */' > sub/conftst$i.h
4374    done
4375    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376
4377    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4378    # mode.  It turns out that the SunPro C++ compiler does not properly
4379    # handle '-M -o', and we need to detect this.  Also, some Intel
4380    # versions had trouble with output in subdirs.
4381    am__obj=sub/conftest.${OBJEXT-o}
4382    am__minus_obj="-o $am__obj"
4383    case $depmode in
4384    gcc)
4385      # This depmode causes a compiler race in universal mode.
4386      test "$am__universal" = false || continue
4387      ;;
4388    nosideeffect)
4389      # After this tag, mechanisms are not by side-effect, so they'll
4390      # only be used when explicitly requested.
4391      if test "x$enable_dependency_tracking" = xyes; then
4392	continue
4393      else
4394	break
4395      fi
4396      ;;
4397    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4398      # This compiler won't grok '-c -o', but also, the minuso test has
4399      # not run yet.  These depmodes are late enough in the game, and
4400      # so weak that their functioning should not be impacted.
4401      am__obj=conftest.${OBJEXT-o}
4402      am__minus_obj=
4403      ;;
4404    none) break ;;
4405    esac
4406    if depmode=$depmode \
4407       source=sub/conftest.c object=$am__obj \
4408       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410         >/dev/null 2>conftest.err &&
4411       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415      # icc doesn't choke on unknown options, it will just issue warnings
4416      # or remarks (even with -Werror).  So we grep stderr for any message
4417      # that says an option was ignored or not supported.
4418      # When given -MP, icc 7.0 and 7.1 complain thusly:
4419      #   icc: Command line warning: ignoring option '-M'; no argument required
4420      # The diagnosis changed in icc 8.0:
4421      #   icc: Command line remark: option '-MP' not supported
4422      if (grep 'ignoring option' conftest.err ||
4423          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424        am_cv_CC_dependencies_compiler_type=$depmode
4425        break
4426      fi
4427    fi
4428  done
4429
4430  cd ..
4431  rm -rf conftest.dir
4432else
4433  am_cv_CC_dependencies_compiler_type=none
4434fi
4435
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440
4441 if
4442  test "x$enable_dependency_tracking" != xno \
4443  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444  am__fastdepCC_TRUE=
4445  am__fastdepCC_FALSE='#'
4446else
4447  am__fastdepCC_TRUE='#'
4448  am__fastdepCC_FALSE=
4449fi
4450
4451
4452
4453if test -n "$ac_tool_prefix"; then
4454  for ac_prog in ar lib "link -lib"
4455  do
4456    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459$as_echo_n "checking for $ac_word... " >&6; }
4460if ${ac_cv_prog_AR+:} false; then :
4461  $as_echo_n "(cached) " >&6
4462else
4463  if test -n "$AR"; then
4464  ac_cv_prog_AR="$AR" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471    for ac_exec_ext in '' $ac_executable_extensions; do
4472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475    break 2
4476  fi
4477done
4478  done
4479IFS=$as_save_IFS
4480
4481fi
4482fi
4483AR=$ac_cv_prog_AR
4484if test -n "$AR"; then
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4486$as_echo "$AR" >&6; }
4487else
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
4491
4492
4493    test -n "$AR" && break
4494  done
4495fi
4496if test -z "$AR"; then
4497  ac_ct_AR=$AR
4498  for ac_prog in ar lib "link -lib"
4499do
4500  # Extract the first word of "$ac_prog", so it can be a program name with args.
4501set dummy $ac_prog; ac_word=$2
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if ${ac_cv_prog_ac_ct_AR+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if test -n "$ac_ct_AR"; then
4508  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_prog_ac_ct_AR="$ac_prog"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525fi
4526fi
4527ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528if test -n "$ac_ct_AR"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4530$as_echo "$ac_ct_AR" >&6; }
4531else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534fi
4535
4536
4537  test -n "$ac_ct_AR" && break
4538done
4539
4540  if test "x$ac_ct_AR" = x; then
4541    AR="false"
4542  else
4543    case $cross_compiling:$ac_tool_warned in
4544yes:)
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547ac_tool_warned=yes ;;
4548esac
4549    AR=$ac_ct_AR
4550  fi
4551fi
4552
4553: ${AR=ar}
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4556$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4557if ${am_cv_ar_interface+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  ac_ext=c
4561ac_cpp='$CPP $CPPFLAGS'
4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565
4566   am_cv_ar_interface=ar
4567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h.  */
4569int some_variable = 0;
4570_ACEOF
4571if ac_fn_c_try_compile "$LINENO"; then :
4572  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4573      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4574  (eval $am_ar_try) 2>&5
4575  ac_status=$?
4576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577  test $ac_status = 0; }
4578      if test "$ac_status" -eq 0; then
4579        am_cv_ar_interface=ar
4580      else
4581        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4582        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583  (eval $am_ar_try) 2>&5
4584  ac_status=$?
4585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586  test $ac_status = 0; }
4587        if test "$ac_status" -eq 0; then
4588          am_cv_ar_interface=lib
4589        else
4590          am_cv_ar_interface=unknown
4591        fi
4592      fi
4593      rm -f conftest.lib libconftest.a
4594
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597   ac_ext=c
4598ac_cpp='$CPP $CPPFLAGS'
4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4605$as_echo "$am_cv_ar_interface" >&6; }
4606
4607case $am_cv_ar_interface in
4608ar)
4609  ;;
4610lib)
4611  # Microsoft lib, so override with the ar-lib wrapper script.
4612  # FIXME: It is wrong to rewrite AR.
4613  # But if we don't then we get into trouble of one sort or another.
4614  # A longer-term fix would be to have automake use am__AR in this case,
4615  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4616  # similar.
4617  AR="$am_aux_dir/ar-lib $AR"
4618  ;;
4619unknown)
4620  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4621  ;;
4622esac
4623
4624
4625# This was added at the suggestion of libtoolize (03-Jan-10)
4626
4627
4628# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4629# "-g" for any other compiler. There doesn't seem to be a standard way of
4630# getting rid of the -g (which I don't think is needed for a production
4631# library). This fudge seems to achieve the necessary. First, we remember the
4632# externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4633# AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4634# set, they will be set to Autoconf's defaults. Afterwards, if the original
4635# values were not set, remove the -g from the Autoconf defaults.
4636# (PH 02-May-07)
4637
4638remember_set_CFLAGS="$CFLAGS"
4639remember_set_CXXFLAGS="$CXXFLAGS"
4640
4641ac_ext=c
4642ac_cpp='$CPP $CPPFLAGS'
4643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646if test -n "$ac_tool_prefix"; then
4647  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_prog_CC+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -n "$CC"; then
4655  ac_cv_prog_CC="$CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674CC=$ac_cv_prog_CC
4675if test -n "$CC"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677$as_echo "$CC" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$ac_cv_prog_CC"; then
4686  ac_ct_CC=$CC
4687  # Extract the first word of "gcc", so it can be a program name with args.
4688set dummy gcc; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -n "$ac_ct_CC"; then
4695  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702    for ac_exec_ext in '' $ac_executable_extensions; do
4703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704    ac_cv_prog_ac_ct_CC="gcc"
4705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709  done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715if test -n "$ac_ct_CC"; then
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717$as_echo "$ac_ct_CC" >&6; }
4718else
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723  if test "x$ac_ct_CC" = x; then
4724    CC=""
4725  else
4726    case $cross_compiling:$ac_tool_warned in
4727yes:)
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730ac_tool_warned=yes ;;
4731esac
4732    CC=$ac_ct_CC
4733  fi
4734else
4735  CC="$ac_cv_prog_CC"
4736fi
4737
4738if test -z "$CC"; then
4739          if test -n "$ac_tool_prefix"; then
4740    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741set dummy ${ac_tool_prefix}cc; ac_word=$2
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if ${ac_cv_prog_CC+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  if test -n "$CC"; then
4748  ac_cv_prog_CC="$CC" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  test -z "$as_dir" && as_dir=.
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757    ac_cv_prog_CC="${ac_tool_prefix}cc"
4758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765fi
4766fi
4767CC=$ac_cv_prog_CC
4768if test -n "$CC"; then
4769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770$as_echo "$CC" >&6; }
4771else
4772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777  fi
4778fi
4779if test -z "$CC"; then
4780  # Extract the first word of "cc", so it can be a program name with args.
4781set dummy cc; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if ${ac_cv_prog_CC+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  if test -n "$CC"; then
4788  ac_cv_prog_CC="$CC" # Let the user override the test.
4789else
4790  ac_prog_rejected=no
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794  IFS=$as_save_IFS
4795  test -z "$as_dir" && as_dir=.
4796    for ac_exec_ext in '' $ac_executable_extensions; do
4797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799       ac_prog_rejected=yes
4800       continue
4801     fi
4802    ac_cv_prog_CC="cc"
4803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804    break 2
4805  fi
4806done
4807  done
4808IFS=$as_save_IFS
4809
4810if test $ac_prog_rejected = yes; then
4811  # We found a bogon in the path, so make sure we never use it.
4812  set dummy $ac_cv_prog_CC
4813  shift
4814  if test $# != 0; then
4815    # We chose a different compiler from the bogus one.
4816    # However, it has the same basename, so the bogon will be chosen
4817    # first if we set CC to just the basename; use the full file name.
4818    shift
4819    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4820  fi
4821fi
4822fi
4823fi
4824CC=$ac_cv_prog_CC
4825if test -n "$CC"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827$as_echo "$CC" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834fi
4835if test -z "$CC"; then
4836  if test -n "$ac_tool_prefix"; then
4837  for ac_prog in cl.exe
4838  do
4839    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842$as_echo_n "checking for $ac_word... " >&6; }
4843if ${ac_cv_prog_CC+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  if test -n "$CC"; then
4847  ac_cv_prog_CC="$CC" # Let the user override the test.
4848else
4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852  IFS=$as_save_IFS
4853  test -z "$as_dir" && as_dir=.
4854    for ac_exec_ext in '' $ac_executable_extensions; do
4855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858    break 2
4859  fi
4860done
4861  done
4862IFS=$as_save_IFS
4863
4864fi
4865fi
4866CC=$ac_cv_prog_CC
4867if test -n "$CC"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869$as_echo "$CC" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872$as_echo "no" >&6; }
4873fi
4874
4875
4876    test -n "$CC" && break
4877  done
4878fi
4879if test -z "$CC"; then
4880  ac_ct_CC=$CC
4881  for ac_prog in cl.exe
4882do
4883  # Extract the first word of "$ac_prog", so it can be a program name with args.
4884set dummy $ac_prog; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -n "$ac_ct_CC"; then
4891  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4892else
4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898    for ac_exec_ext in '' $ac_executable_extensions; do
4899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900    ac_cv_prog_ac_ct_CC="$ac_prog"
4901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902    break 2
4903  fi
4904done
4905  done
4906IFS=$as_save_IFS
4907
4908fi
4909fi
4910ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911if test -n "$ac_ct_CC"; then
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913$as_echo "$ac_ct_CC" >&6; }
4914else
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917fi
4918
4919
4920  test -n "$ac_ct_CC" && break
4921done
4922
4923  if test "x$ac_ct_CC" = x; then
4924    CC=""
4925  else
4926    case $cross_compiling:$ac_tool_warned in
4927yes:)
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930ac_tool_warned=yes ;;
4931esac
4932    CC=$ac_ct_CC
4933  fi
4934fi
4935
4936fi
4937
4938
4939test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941as_fn_error $? "no acceptable C compiler found in \$PATH
4942See \`config.log' for more details" "$LINENO" 5; }
4943
4944# Provide some information about the compiler.
4945$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4946set X $ac_compile
4947ac_compiler=$2
4948for ac_option in --version -v -V -qversion; do
4949  { { ac_try="$ac_compiler $ac_option >&5"
4950case "(($ac_try" in
4951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952  *) ac_try_echo=$ac_try;;
4953esac
4954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955$as_echo "$ac_try_echo"; } >&5
4956  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4957  ac_status=$?
4958  if test -s conftest.err; then
4959    sed '10a\
4960... rest of stderr output deleted ...
4961         10q' conftest.err >conftest.er1
4962    cat conftest.er1 >&5
4963  fi
4964  rm -f conftest.er1 conftest.err
4965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966  test $ac_status = 0; }
4967done
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971if ${ac_cv_c_compiler_gnu+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976
4977int
4978main ()
4979{
4980#ifndef __GNUC__
4981       choke me
4982#endif
4983
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988if ac_fn_c_try_compile "$LINENO"; then :
4989  ac_compiler_gnu=yes
4990else
4991  ac_compiler_gnu=no
4992fi
4993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994ac_cv_c_compiler_gnu=$ac_compiler_gnu
4995
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999if test $ac_compiler_gnu = yes; then
5000  GCC=yes
5001else
5002  GCC=
5003fi
5004ac_test_CFLAGS=${CFLAGS+set}
5005ac_save_CFLAGS=$CFLAGS
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007$as_echo_n "checking whether $CC accepts -g... " >&6; }
5008if ${ac_cv_prog_cc_g+:} false; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  ac_save_c_werror_flag=$ac_c_werror_flag
5012   ac_c_werror_flag=yes
5013   ac_cv_prog_cc_g=no
5014   CFLAGS="-g"
5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h.  */
5017
5018int
5019main ()
5020{
5021
5022  ;
5023  return 0;
5024}
5025_ACEOF
5026if ac_fn_c_try_compile "$LINENO"; then :
5027  ac_cv_prog_cc_g=yes
5028else
5029  CFLAGS=""
5030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032
5033int
5034main ()
5035{
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042
5043else
5044  ac_c_werror_flag=$ac_save_c_werror_flag
5045	 CFLAGS="-g"
5046	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048
5049int
5050main ()
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057if ac_fn_c_try_compile "$LINENO"; then :
5058  ac_cv_prog_cc_g=yes
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065   ac_c_werror_flag=$ac_save_c_werror_flag
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068$as_echo "$ac_cv_prog_cc_g" >&6; }
5069if test "$ac_test_CFLAGS" = set; then
5070  CFLAGS=$ac_save_CFLAGS
5071elif test $ac_cv_prog_cc_g = yes; then
5072  if test "$GCC" = yes; then
5073    CFLAGS="-g -O2"
5074  else
5075    CFLAGS="-g"
5076  fi
5077else
5078  if test "$GCC" = yes; then
5079    CFLAGS="-O2"
5080  else
5081    CFLAGS=
5082  fi
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086if ${ac_cv_prog_cc_c89+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  ac_cv_prog_cc_c89=no
5090ac_save_CC=$CC
5091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093#include <stdarg.h>
5094#include <stdio.h>
5095struct stat;
5096/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5097struct buf { int x; };
5098FILE * (*rcsopen) (struct buf *, struct stat *, int);
5099static char *e (p, i)
5100     char **p;
5101     int i;
5102{
5103  return p[i];
5104}
5105static char *f (char * (*g) (char **, int), char **p, ...)
5106{
5107  char *s;
5108  va_list v;
5109  va_start (v,p);
5110  s = g (p, va_arg (v,int));
5111  va_end (v);
5112  return s;
5113}
5114
5115/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5116   function prototypes and stuff, but not '\xHH' hex character constants.
5117   These don't provoke an error unfortunately, instead are silently treated
5118   as 'x'.  The following induces an error, until -std is added to get
5119   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5120   array size at least.  It's necessary to write '\x00'==0 to get something
5121   that's true only with -std.  */
5122int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5123
5124/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5125   inside strings and character constants.  */
5126#define FOO(x) 'x'
5127int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5128
5129int test (int i, double x);
5130struct s1 {int (*f) (int a);};
5131struct s2 {int (*f) (double a);};
5132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5133int argc;
5134char **argv;
5135int
5136main ()
5137{
5138return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5144	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5145do
5146  CC="$ac_save_CC $ac_arg"
5147  if ac_fn_c_try_compile "$LINENO"; then :
5148  ac_cv_prog_cc_c89=$ac_arg
5149fi
5150rm -f core conftest.err conftest.$ac_objext
5151  test "x$ac_cv_prog_cc_c89" != "xno" && break
5152done
5153rm -f conftest.$ac_ext
5154CC=$ac_save_CC
5155
5156fi
5157# AC_CACHE_VAL
5158case "x$ac_cv_prog_cc_c89" in
5159  x)
5160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5161$as_echo "none needed" >&6; } ;;
5162  xno)
5163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5164$as_echo "unsupported" >&6; } ;;
5165  *)
5166    CC="$CC $ac_cv_prog_cc_c89"
5167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5168$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5169esac
5170if test "x$ac_cv_prog_cc_c89" != xno; then :
5171
5172fi
5173
5174ac_ext=c
5175ac_cpp='$CPP $CPPFLAGS'
5176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180ac_ext=c
5181ac_cpp='$CPP $CPPFLAGS'
5182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5186$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5187if ${am_cv_prog_cc_c_o+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192
5193int
5194main ()
5195{
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201  # Make sure it works both with $CC and with simple cc.
5202  # Following AC_PROG_CC_C_O, we do the test twice because some
5203  # compilers refuse to overwrite an existing .o file with -o,
5204  # though they will create one.
5205  am_cv_prog_cc_c_o=yes
5206  for am_i in 1 2; do
5207    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5208   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } \
5212         && test -f conftest2.$ac_objext; then
5213      : OK
5214    else
5215      am_cv_prog_cc_c_o=no
5216      break
5217    fi
5218  done
5219  rm -f core conftest*
5220  unset am_i
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5223$as_echo "$am_cv_prog_cc_c_o" >&6; }
5224if test "$am_cv_prog_cc_c_o" != yes; then
5225   # Losing compiler, so override with the script.
5226   # FIXME: It is wrong to rewrite CC.
5227   # But if we don't then we get into trouble of one sort or another.
5228   # A longer-term fix would be to have automake use am__CC in this case,
5229   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5230   CC="$am_aux_dir/compile $CC"
5231fi
5232ac_ext=c
5233ac_cpp='$CPP $CPPFLAGS'
5234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237
5238
5239depcc="$CC"   am_compiler_list=
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5242$as_echo_n "checking dependency style of $depcc... " >&6; }
5243if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5247  # We make a subdir and do the tests there.  Otherwise we can end up
5248  # making bogus files that we don't know about and never remove.  For
5249  # instance it was reported that on HP-UX the gcc test will end up
5250  # making a dummy file named 'D' -- because '-MD' means "put the output
5251  # in D".
5252  rm -rf conftest.dir
5253  mkdir conftest.dir
5254  # Copy depcomp to subdir because otherwise we won't find it if we're
5255  # using a relative directory.
5256  cp "$am_depcomp" conftest.dir
5257  cd conftest.dir
5258  # We will build objects and dependencies in a subdirectory because
5259  # it helps to detect inapplicable dependency modes.  For instance
5260  # both Tru64's cc and ICC support -MD to output dependencies as a
5261  # side effect of compilation, but ICC will put the dependencies in
5262  # the current directory while Tru64 will put them in the object
5263  # directory.
5264  mkdir sub
5265
5266  am_cv_CC_dependencies_compiler_type=none
5267  if test "$am_compiler_list" = ""; then
5268     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5269  fi
5270  am__universal=false
5271  case " $depcc " in #(
5272     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5273     esac
5274
5275  for depmode in $am_compiler_list; do
5276    # Setup a source with many dependencies, because some compilers
5277    # like to wrap large dependency lists on column 80 (with \), and
5278    # we should not choose a depcomp mode which is confused by this.
5279    #
5280    # We need to recreate these files for each test, as the compiler may
5281    # overwrite some of them when testing with obscure command lines.
5282    # This happens at least with the AIX C compiler.
5283    : > sub/conftest.c
5284    for i in 1 2 3 4 5 6; do
5285      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5286      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5287      # Solaris 10 /bin/sh.
5288      echo '/* dummy */' > sub/conftst$i.h
5289    done
5290    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5291
5292    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5293    # mode.  It turns out that the SunPro C++ compiler does not properly
5294    # handle '-M -o', and we need to detect this.  Also, some Intel
5295    # versions had trouble with output in subdirs.
5296    am__obj=sub/conftest.${OBJEXT-o}
5297    am__minus_obj="-o $am__obj"
5298    case $depmode in
5299    gcc)
5300      # This depmode causes a compiler race in universal mode.
5301      test "$am__universal" = false || continue
5302      ;;
5303    nosideeffect)
5304      # After this tag, mechanisms are not by side-effect, so they'll
5305      # only be used when explicitly requested.
5306      if test "x$enable_dependency_tracking" = xyes; then
5307	continue
5308      else
5309	break
5310      fi
5311      ;;
5312    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5313      # This compiler won't grok '-c -o', but also, the minuso test has
5314      # not run yet.  These depmodes are late enough in the game, and
5315      # so weak that their functioning should not be impacted.
5316      am__obj=conftest.${OBJEXT-o}
5317      am__minus_obj=
5318      ;;
5319    none) break ;;
5320    esac
5321    if depmode=$depmode \
5322       source=sub/conftest.c object=$am__obj \
5323       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5324       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5325         >/dev/null 2>conftest.err &&
5326       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5327       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5328       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5329       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5330      # icc doesn't choke on unknown options, it will just issue warnings
5331      # or remarks (even with -Werror).  So we grep stderr for any message
5332      # that says an option was ignored or not supported.
5333      # When given -MP, icc 7.0 and 7.1 complain thusly:
5334      #   icc: Command line warning: ignoring option '-M'; no argument required
5335      # The diagnosis changed in icc 8.0:
5336      #   icc: Command line remark: option '-MP' not supported
5337      if (grep 'ignoring option' conftest.err ||
5338          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5339        am_cv_CC_dependencies_compiler_type=$depmode
5340        break
5341      fi
5342    fi
5343  done
5344
5345  cd ..
5346  rm -rf conftest.dir
5347else
5348  am_cv_CC_dependencies_compiler_type=none
5349fi
5350
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5353$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5355
5356 if
5357  test "x$enable_dependency_tracking" != xno \
5358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5359  am__fastdepCC_TRUE=
5360  am__fastdepCC_FALSE='#'
5361else
5362  am__fastdepCC_TRUE='#'
5363  am__fastdepCC_FALSE=
5364fi
5365
5366
5367ac_ext=cpp
5368ac_cpp='$CXXCPP $CPPFLAGS'
5369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372if test -z "$CXX"; then
5373  if test -n "$CCC"; then
5374    CXX=$CCC
5375  else
5376    if test -n "$ac_tool_prefix"; then
5377  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5378  do
5379    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382$as_echo_n "checking for $ac_word... " >&6; }
5383if ${ac_cv_prog_CXX+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386  if test -n "$CXX"; then
5387  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5388else
5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392  IFS=$as_save_IFS
5393  test -z "$as_dir" && as_dir=.
5394    for ac_exec_ext in '' $ac_executable_extensions; do
5395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398    break 2
5399  fi
5400done
5401  done
5402IFS=$as_save_IFS
5403
5404fi
5405fi
5406CXX=$ac_cv_prog_CXX
5407if test -n "$CXX"; then
5408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5409$as_echo "$CXX" >&6; }
5410else
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
5413fi
5414
5415
5416    test -n "$CXX" && break
5417  done
5418fi
5419if test -z "$CXX"; then
5420  ac_ct_CXX=$CXX
5421  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5422do
5423  # Extract the first word of "$ac_prog", so it can be a program name with args.
5424set dummy $ac_prog; ac_word=$2
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426$as_echo_n "checking for $ac_word... " >&6; }
5427if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  if test -n "$ac_ct_CXX"; then
5431  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436  IFS=$as_save_IFS
5437  test -z "$as_dir" && as_dir=.
5438    for ac_exec_ext in '' $ac_executable_extensions; do
5439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440    ac_cv_prog_ac_ct_CXX="$ac_prog"
5441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442    break 2
5443  fi
5444done
5445  done
5446IFS=$as_save_IFS
5447
5448fi
5449fi
5450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5451if test -n "$ac_ct_CXX"; then
5452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5453$as_echo "$ac_ct_CXX" >&6; }
5454else
5455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456$as_echo "no" >&6; }
5457fi
5458
5459
5460  test -n "$ac_ct_CXX" && break
5461done
5462
5463  if test "x$ac_ct_CXX" = x; then
5464    CXX="g++"
5465  else
5466    case $cross_compiling:$ac_tool_warned in
5467yes:)
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470ac_tool_warned=yes ;;
5471esac
5472    CXX=$ac_ct_CXX
5473  fi
5474fi
5475
5476  fi
5477fi
5478# Provide some information about the compiler.
5479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5480set X $ac_compile
5481ac_compiler=$2
5482for ac_option in --version -v -V -qversion; do
5483  { { ac_try="$ac_compiler $ac_option >&5"
5484case "(($ac_try" in
5485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486  *) ac_try_echo=$ac_try;;
5487esac
5488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5489$as_echo "$ac_try_echo"; } >&5
5490  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5491  ac_status=$?
5492  if test -s conftest.err; then
5493    sed '10a\
5494... rest of stderr output deleted ...
5495         10q' conftest.err >conftest.er1
5496    cat conftest.er1 >&5
5497  fi
5498  rm -f conftest.er1 conftest.err
5499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500  test $ac_status = 0; }
5501done
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5505if ${ac_cv_cxx_compiler_gnu+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514#ifndef __GNUC__
5515       choke me
5516#endif
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522if ac_fn_cxx_try_compile "$LINENO"; then :
5523  ac_compiler_gnu=yes
5524else
5525  ac_compiler_gnu=no
5526fi
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5529
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5532$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5533if test $ac_compiler_gnu = yes; then
5534  GXX=yes
5535else
5536  GXX=
5537fi
5538ac_test_CXXFLAGS=${CXXFLAGS+set}
5539ac_save_CXXFLAGS=$CXXFLAGS
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5541$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5542if ${ac_cv_prog_cxx_g+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5546   ac_cxx_werror_flag=yes
5547   ac_cv_prog_cxx_g=no
5548   CXXFLAGS="-g"
5549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551
5552int
5553main ()
5554{
5555
5556  ;
5557  return 0;
5558}
5559_ACEOF
5560if ac_fn_cxx_try_compile "$LINENO"; then :
5561  ac_cv_prog_cxx_g=yes
5562else
5563  CXXFLAGS=""
5564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566
5567int
5568main ()
5569{
5570
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575if ac_fn_cxx_try_compile "$LINENO"; then :
5576
5577else
5578  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5579	 CXXFLAGS="-g"
5580	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582
5583int
5584main ()
5585{
5586
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591if ac_fn_cxx_try_compile "$LINENO"; then :
5592  ac_cv_prog_cxx_g=yes
5593fi
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595fi
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5600fi
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5602$as_echo "$ac_cv_prog_cxx_g" >&6; }
5603if test "$ac_test_CXXFLAGS" = set; then
5604  CXXFLAGS=$ac_save_CXXFLAGS
5605elif test $ac_cv_prog_cxx_g = yes; then
5606  if test "$GXX" = yes; then
5607    CXXFLAGS="-g -O2"
5608  else
5609    CXXFLAGS="-g"
5610  fi
5611else
5612  if test "$GXX" = yes; then
5613    CXXFLAGS="-O2"
5614  else
5615    CXXFLAGS=
5616  fi
5617fi
5618ac_ext=c
5619ac_cpp='$CPP $CPPFLAGS'
5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623
5624depcc="$CXX"  am_compiler_list=
5625
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627$as_echo_n "checking dependency style of $depcc... " >&6; }
5628if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632  # We make a subdir and do the tests there.  Otherwise we can end up
5633  # making bogus files that we don't know about and never remove.  For
5634  # instance it was reported that on HP-UX the gcc test will end up
5635  # making a dummy file named 'D' -- because '-MD' means "put the output
5636  # in D".
5637  rm -rf conftest.dir
5638  mkdir conftest.dir
5639  # Copy depcomp to subdir because otherwise we won't find it if we're
5640  # using a relative directory.
5641  cp "$am_depcomp" conftest.dir
5642  cd conftest.dir
5643  # We will build objects and dependencies in a subdirectory because
5644  # it helps to detect inapplicable dependency modes.  For instance
5645  # both Tru64's cc and ICC support -MD to output dependencies as a
5646  # side effect of compilation, but ICC will put the dependencies in
5647  # the current directory while Tru64 will put them in the object
5648  # directory.
5649  mkdir sub
5650
5651  am_cv_CXX_dependencies_compiler_type=none
5652  if test "$am_compiler_list" = ""; then
5653     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5654  fi
5655  am__universal=false
5656  case " $depcc " in #(
5657     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5658     esac
5659
5660  for depmode in $am_compiler_list; do
5661    # Setup a source with many dependencies, because some compilers
5662    # like to wrap large dependency lists on column 80 (with \), and
5663    # we should not choose a depcomp mode which is confused by this.
5664    #
5665    # We need to recreate these files for each test, as the compiler may
5666    # overwrite some of them when testing with obscure command lines.
5667    # This happens at least with the AIX C compiler.
5668    : > sub/conftest.c
5669    for i in 1 2 3 4 5 6; do
5670      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672      # Solaris 10 /bin/sh.
5673      echo '/* dummy */' > sub/conftst$i.h
5674    done
5675    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5676
5677    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678    # mode.  It turns out that the SunPro C++ compiler does not properly
5679    # handle '-M -o', and we need to detect this.  Also, some Intel
5680    # versions had trouble with output in subdirs.
5681    am__obj=sub/conftest.${OBJEXT-o}
5682    am__minus_obj="-o $am__obj"
5683    case $depmode in
5684    gcc)
5685      # This depmode causes a compiler race in universal mode.
5686      test "$am__universal" = false || continue
5687      ;;
5688    nosideeffect)
5689      # After this tag, mechanisms are not by side-effect, so they'll
5690      # only be used when explicitly requested.
5691      if test "x$enable_dependency_tracking" = xyes; then
5692	continue
5693      else
5694	break
5695      fi
5696      ;;
5697    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698      # This compiler won't grok '-c -o', but also, the minuso test has
5699      # not run yet.  These depmodes are late enough in the game, and
5700      # so weak that their functioning should not be impacted.
5701      am__obj=conftest.${OBJEXT-o}
5702      am__minus_obj=
5703      ;;
5704    none) break ;;
5705    esac
5706    if depmode=$depmode \
5707       source=sub/conftest.c object=$am__obj \
5708       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710         >/dev/null 2>conftest.err &&
5711       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715      # icc doesn't choke on unknown options, it will just issue warnings
5716      # or remarks (even with -Werror).  So we grep stderr for any message
5717      # that says an option was ignored or not supported.
5718      # When given -MP, icc 7.0 and 7.1 complain thusly:
5719      #   icc: Command line warning: ignoring option '-M'; no argument required
5720      # The diagnosis changed in icc 8.0:
5721      #   icc: Command line remark: option '-MP' not supported
5722      if (grep 'ignoring option' conftest.err ||
5723          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724        am_cv_CXX_dependencies_compiler_type=$depmode
5725        break
5726      fi
5727    fi
5728  done
5729
5730  cd ..
5731  rm -rf conftest.dir
5732else
5733  am_cv_CXX_dependencies_compiler_type=none
5734fi
5735
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5738$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5739CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5740
5741 if
5742  test "x$enable_dependency_tracking" != xno \
5743  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5744  am__fastdepCXX_TRUE=
5745  am__fastdepCXX_FALSE='#'
5746else
5747  am__fastdepCXX_TRUE='#'
5748  am__fastdepCXX_FALSE=
5749fi
5750
5751
5752
5753
5754if test "x$remember_set_CFLAGS" = "x"
5755then
5756  if test "$CFLAGS" = "-g -O2"
5757  then
5758    CFLAGS="-O2"
5759  elif test "$CFLAGS" = "-g"
5760  then
5761    CFLAGS=""
5762  fi
5763fi
5764
5765if test "x$remember_set_CXXFLAGS" = "x"
5766then
5767  if test "$CXXFLAGS" = "-g -O2"
5768  then
5769    CXXFLAGS="-O2"
5770  elif test "$CXXFLAGS" = "-g"
5771  then
5772    CXXFLAGS=""
5773  fi
5774fi
5775
5776# AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5777# Check for that case, and just disable c++ code if g++ doesn't run.
5778ac_ext=cpp
5779ac_cpp='$CXXCPP $CPPFLAGS'
5780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5783
5784
5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h.  */
5787
5788int
5789main ()
5790{
5791
5792  ;
5793  return 0;
5794}
5795_ACEOF
5796if ac_fn_cxx_try_compile "$LINENO"; then :
5797
5798else
5799  CXX=""; CXXCP=""; CXXFLAGS=""
5800fi
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802ac_ext=c
5803ac_cpp='$CPP $CPPFLAGS'
5804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807
5808
5809# Check for a 64-bit integer type
5810ac_ext=c
5811ac_cpp='$CPP $CPPFLAGS'
5812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5816$as_echo_n "checking how to run the C preprocessor... " >&6; }
5817# On Suns, sometimes $CPP names a directory.
5818if test -n "$CPP" && test -d "$CPP"; then
5819  CPP=
5820fi
5821if test -z "$CPP"; then
5822  if ${ac_cv_prog_CPP+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825      # Double quotes because CPP needs to be expanded
5826    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827    do
5828      ac_preproc_ok=false
5829for ac_c_preproc_warn_flag in '' yes
5830do
5831  # Use a header file that comes with gcc, so configuring glibc
5832  # with a fresh cross-compiler works.
5833  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834  # <limits.h> exists even on freestanding compilers.
5835  # On the NeXT, cc -E runs the code through the compiler's parser,
5836  # not just through cpp. "Syntax error" is here to catch this case.
5837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839#ifdef __STDC__
5840# include <limits.h>
5841#else
5842# include <assert.h>
5843#endif
5844		     Syntax error
5845_ACEOF
5846if ac_fn_c_try_cpp "$LINENO"; then :
5847
5848else
5849  # Broken: fails on valid input.
5850continue
5851fi
5852rm -f conftest.err conftest.i conftest.$ac_ext
5853
5854  # OK, works on sane cases.  Now check whether nonexistent headers
5855  # can be detected and how.
5856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h.  */
5858#include <ac_nonexistent.h>
5859_ACEOF
5860if ac_fn_c_try_cpp "$LINENO"; then :
5861  # Broken: success on invalid input.
5862continue
5863else
5864  # Passes both tests.
5865ac_preproc_ok=:
5866break
5867fi
5868rm -f conftest.err conftest.i conftest.$ac_ext
5869
5870done
5871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872rm -f conftest.i conftest.err conftest.$ac_ext
5873if $ac_preproc_ok; then :
5874  break
5875fi
5876
5877    done
5878    ac_cv_prog_CPP=$CPP
5879
5880fi
5881  CPP=$ac_cv_prog_CPP
5882else
5883  ac_cv_prog_CPP=$CPP
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5886$as_echo "$CPP" >&6; }
5887ac_preproc_ok=false
5888for ac_c_preproc_warn_flag in '' yes
5889do
5890  # Use a header file that comes with gcc, so configuring glibc
5891  # with a fresh cross-compiler works.
5892  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893  # <limits.h> exists even on freestanding compilers.
5894  # On the NeXT, cc -E runs the code through the compiler's parser,
5895  # not just through cpp. "Syntax error" is here to catch this case.
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
5903		     Syntax error
5904_ACEOF
5905if ac_fn_c_try_cpp "$LINENO"; then :
5906
5907else
5908  # Broken: fails on valid input.
5909continue
5910fi
5911rm -f conftest.err conftest.i conftest.$ac_ext
5912
5913  # OK, works on sane cases.  Now check whether nonexistent headers
5914  # can be detected and how.
5915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917#include <ac_nonexistent.h>
5918_ACEOF
5919if ac_fn_c_try_cpp "$LINENO"; then :
5920  # Broken: success on invalid input.
5921continue
5922else
5923  # Passes both tests.
5924ac_preproc_ok=:
5925break
5926fi
5927rm -f conftest.err conftest.i conftest.$ac_ext
5928
5929done
5930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5931rm -f conftest.i conftest.err conftest.$ac_ext
5932if $ac_preproc_ok; then :
5933
5934else
5935  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5938See \`config.log' for more details" "$LINENO" 5; }
5939fi
5940
5941ac_ext=c
5942ac_cpp='$CPP $CPPFLAGS'
5943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5949$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5950if ${ac_cv_path_GREP+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  if test -z "$GREP"; then
5954  ac_path_GREP_found=false
5955  # Loop through the user's path and test for each of PROGNAME-LIST
5956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961    for ac_prog in grep ggrep; do
5962    for ac_exec_ext in '' $ac_executable_extensions; do
5963      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5964      as_fn_executable_p "$ac_path_GREP" || continue
5965# Check for GNU ac_path_GREP and select it if it is found.
5966  # Check for GNU $ac_path_GREP
5967case `"$ac_path_GREP" --version 2>&1` in
5968*GNU*)
5969  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5970*)
5971  ac_count=0
5972  $as_echo_n 0123456789 >"conftest.in"
5973  while :
5974  do
5975    cat "conftest.in" "conftest.in" >"conftest.tmp"
5976    mv "conftest.tmp" "conftest.in"
5977    cp "conftest.in" "conftest.nl"
5978    $as_echo 'GREP' >> "conftest.nl"
5979    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5980    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5981    as_fn_arith $ac_count + 1 && ac_count=$as_val
5982    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5983      # Best one so far, save it but keep looking for a better one
5984      ac_cv_path_GREP="$ac_path_GREP"
5985      ac_path_GREP_max=$ac_count
5986    fi
5987    # 10*(2^10) chars as input seems more than enough
5988    test $ac_count -gt 10 && break
5989  done
5990  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5991esac
5992
5993      $ac_path_GREP_found && break 3
5994    done
5995  done
5996  done
5997IFS=$as_save_IFS
5998  if test -z "$ac_cv_path_GREP"; then
5999    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6000  fi
6001else
6002  ac_cv_path_GREP=$GREP
6003fi
6004
6005fi
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6007$as_echo "$ac_cv_path_GREP" >&6; }
6008 GREP="$ac_cv_path_GREP"
6009
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6012$as_echo_n "checking for egrep... " >&6; }
6013if ${ac_cv_path_EGREP+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6017   then ac_cv_path_EGREP="$GREP -E"
6018   else
6019     if test -z "$EGREP"; then
6020  ac_path_EGREP_found=false
6021  # Loop through the user's path and test for each of PROGNAME-LIST
6022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6024do
6025  IFS=$as_save_IFS
6026  test -z "$as_dir" && as_dir=.
6027    for ac_prog in egrep; do
6028    for ac_exec_ext in '' $ac_executable_extensions; do
6029      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6030      as_fn_executable_p "$ac_path_EGREP" || continue
6031# Check for GNU ac_path_EGREP and select it if it is found.
6032  # Check for GNU $ac_path_EGREP
6033case `"$ac_path_EGREP" --version 2>&1` in
6034*GNU*)
6035  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6036*)
6037  ac_count=0
6038  $as_echo_n 0123456789 >"conftest.in"
6039  while :
6040  do
6041    cat "conftest.in" "conftest.in" >"conftest.tmp"
6042    mv "conftest.tmp" "conftest.in"
6043    cp "conftest.in" "conftest.nl"
6044    $as_echo 'EGREP' >> "conftest.nl"
6045    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047    as_fn_arith $ac_count + 1 && ac_count=$as_val
6048    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6049      # Best one so far, save it but keep looking for a better one
6050      ac_cv_path_EGREP="$ac_path_EGREP"
6051      ac_path_EGREP_max=$ac_count
6052    fi
6053    # 10*(2^10) chars as input seems more than enough
6054    test $ac_count -gt 10 && break
6055  done
6056  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057esac
6058
6059      $ac_path_EGREP_found && break 3
6060    done
6061  done
6062  done
6063IFS=$as_save_IFS
6064  if test -z "$ac_cv_path_EGREP"; then
6065    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6066  fi
6067else
6068  ac_cv_path_EGREP=$EGREP
6069fi
6070
6071   fi
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6074$as_echo "$ac_cv_path_EGREP" >&6; }
6075 EGREP="$ac_cv_path_EGREP"
6076
6077
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6079$as_echo_n "checking for ANSI C header files... " >&6; }
6080if ${ac_cv_header_stdc+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085#include <stdlib.h>
6086#include <stdarg.h>
6087#include <string.h>
6088#include <float.h>
6089
6090int
6091main ()
6092{
6093
6094  ;
6095  return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099  ac_cv_header_stdc=yes
6100else
6101  ac_cv_header_stdc=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104
6105if test $ac_cv_header_stdc = yes; then
6106  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109#include <string.h>
6110
6111_ACEOF
6112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113  $EGREP "memchr" >/dev/null 2>&1; then :
6114
6115else
6116  ac_cv_header_stdc=no
6117fi
6118rm -f conftest*
6119
6120fi
6121
6122if test $ac_cv_header_stdc = yes; then
6123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126#include <stdlib.h>
6127
6128_ACEOF
6129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130  $EGREP "free" >/dev/null 2>&1; then :
6131
6132else
6133  ac_cv_header_stdc=no
6134fi
6135rm -f conftest*
6136
6137fi
6138
6139if test $ac_cv_header_stdc = yes; then
6140  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141  if test "$cross_compiling" = yes; then :
6142  :
6143else
6144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h.  */
6146#include <ctype.h>
6147#include <stdlib.h>
6148#if ((' ' & 0x0FF) == 0x020)
6149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6151#else
6152# define ISLOWER(c) \
6153		   (('a' <= (c) && (c) <= 'i') \
6154		     || ('j' <= (c) && (c) <= 'r') \
6155		     || ('s' <= (c) && (c) <= 'z'))
6156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6157#endif
6158
6159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6160int
6161main ()
6162{
6163  int i;
6164  for (i = 0; i < 256; i++)
6165    if (XOR (islower (i), ISLOWER (i))
6166	|| toupper (i) != TOUPPER (i))
6167      return 2;
6168  return 0;
6169}
6170_ACEOF
6171if ac_fn_c_try_run "$LINENO"; then :
6172
6173else
6174  ac_cv_header_stdc=no
6175fi
6176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6177  conftest.$ac_objext conftest.beam conftest.$ac_ext
6178fi
6179
6180fi
6181fi
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6183$as_echo "$ac_cv_header_stdc" >&6; }
6184if test $ac_cv_header_stdc = yes; then
6185
6186$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6187
6188fi
6189
6190# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6192		  inttypes.h stdint.h unistd.h
6193do :
6194  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6196"
6197if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6198  cat >>confdefs.h <<_ACEOF
6199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6200_ACEOF
6201
6202fi
6203
6204done
6205
6206
6207ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6208case $ac_cv_c_int64_t in #(
6209  no|yes) ;; #(
6210  *)
6211
6212cat >>confdefs.h <<_ACEOF
6213#define int64_t $ac_cv_c_int64_t
6214_ACEOF
6215;;
6216esac
6217
6218
6219
6220# Make sure we can run config.sub.
6221$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6222  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6225$as_echo_n "checking build system type... " >&6; }
6226if ${ac_cv_build+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  ac_build_alias=$build_alias
6230test "x$ac_build_alias" = x &&
6231  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6232test "x$ac_build_alias" = x &&
6233  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6234ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6235  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6236
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6239$as_echo "$ac_cv_build" >&6; }
6240case $ac_cv_build in
6241*-*-*) ;;
6242*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6243esac
6244build=$ac_cv_build
6245ac_save_IFS=$IFS; IFS='-'
6246set x $ac_cv_build
6247shift
6248build_cpu=$1
6249build_vendor=$2
6250shift; shift
6251# Remember, the first character of IFS is used to create $*,
6252# except with old shells:
6253build_os=$*
6254IFS=$ac_save_IFS
6255case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6256
6257
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6259$as_echo_n "checking host system type... " >&6; }
6260if ${ac_cv_host+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test "x$host_alias" = x; then
6264  ac_cv_host=$ac_cv_build
6265else
6266  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6267    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6268fi
6269
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6272$as_echo "$ac_cv_host" >&6; }
6273case $ac_cv_host in
6274*-*-*) ;;
6275*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6276esac
6277host=$ac_cv_host
6278ac_save_IFS=$IFS; IFS='-'
6279set x $ac_cv_host
6280shift
6281host_cpu=$1
6282host_vendor=$2
6283shift; shift
6284# Remember, the first character of IFS is used to create $*,
6285# except with old shells:
6286host_os=$*
6287IFS=$ac_save_IFS
6288case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6289
6290
6291enable_win32_dll=yes
6292
6293case $host in
6294*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6295  if test -n "$ac_tool_prefix"; then
6296  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}as; ac_word=$2
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299$as_echo_n "checking for $ac_word... " >&6; }
6300if ${ac_cv_prog_AS+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  if test -n "$AS"; then
6304  ac_cv_prog_AS="$AS" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311    for ac_exec_ext in '' $ac_executable_extensions; do
6312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_AS="${ac_tool_prefix}as"
6314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318  done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323AS=$ac_cv_prog_AS
6324if test -n "$AS"; then
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6326$as_echo "$AS" >&6; }
6327else
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330fi
6331
6332
6333fi
6334if test -z "$ac_cv_prog_AS"; then
6335  ac_ct_AS=$AS
6336  # Extract the first word of "as", so it can be a program name with args.
6337set dummy as; ac_word=$2
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339$as_echo_n "checking for $ac_word... " >&6; }
6340if ${ac_cv_prog_ac_ct_AS+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  if test -n "$ac_ct_AS"; then
6344  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6345else
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349  IFS=$as_save_IFS
6350  test -z "$as_dir" && as_dir=.
6351    for ac_exec_ext in '' $ac_executable_extensions; do
6352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353    ac_cv_prog_ac_ct_AS="as"
6354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355    break 2
6356  fi
6357done
6358  done
6359IFS=$as_save_IFS
6360
6361fi
6362fi
6363ac_ct_AS=$ac_cv_prog_ac_ct_AS
6364if test -n "$ac_ct_AS"; then
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6366$as_echo "$ac_ct_AS" >&6; }
6367else
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369$as_echo "no" >&6; }
6370fi
6371
6372  if test "x$ac_ct_AS" = x; then
6373    AS="false"
6374  else
6375    case $cross_compiling:$ac_tool_warned in
6376yes:)
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379ac_tool_warned=yes ;;
6380esac
6381    AS=$ac_ct_AS
6382  fi
6383else
6384  AS="$ac_cv_prog_AS"
6385fi
6386
6387  if test -n "$ac_tool_prefix"; then
6388  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6389set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if ${ac_cv_prog_DLLTOOL+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -n "$DLLTOOL"; then
6396  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401  IFS=$as_save_IFS
6402  test -z "$as_dir" && as_dir=.
6403    for ac_exec_ext in '' $ac_executable_extensions; do
6404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407    break 2
6408  fi
6409done
6410  done
6411IFS=$as_save_IFS
6412
6413fi
6414fi
6415DLLTOOL=$ac_cv_prog_DLLTOOL
6416if test -n "$DLLTOOL"; then
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6418$as_echo "$DLLTOOL" >&6; }
6419else
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425fi
6426if test -z "$ac_cv_prog_DLLTOOL"; then
6427  ac_ct_DLLTOOL=$DLLTOOL
6428  # Extract the first word of "dlltool", so it can be a program name with args.
6429set dummy dlltool; ac_word=$2
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431$as_echo_n "checking for $ac_word... " >&6; }
6432if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  if test -n "$ac_ct_DLLTOOL"; then
6436  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443    for ac_exec_ext in '' $ac_executable_extensions; do
6444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450  done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6456if test -n "$ac_ct_DLLTOOL"; then
6457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6458$as_echo "$ac_ct_DLLTOOL" >&6; }
6459else
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
6462fi
6463
6464  if test "x$ac_ct_DLLTOOL" = x; then
6465    DLLTOOL="false"
6466  else
6467    case $cross_compiling:$ac_tool_warned in
6468yes:)
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471ac_tool_warned=yes ;;
6472esac
6473    DLLTOOL=$ac_ct_DLLTOOL
6474  fi
6475else
6476  DLLTOOL="$ac_cv_prog_DLLTOOL"
6477fi
6478
6479  if test -n "$ac_tool_prefix"; then
6480  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}objdump; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if ${ac_cv_prog_OBJDUMP+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$OBJDUMP"; then
6488  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507OBJDUMP=$ac_cv_prog_OBJDUMP
6508if test -n "$OBJDUMP"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6510$as_echo "$OBJDUMP" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_OBJDUMP"; then
6519  ac_ct_OBJDUMP=$OBJDUMP
6520  # Extract the first word of "objdump", so it can be a program name with args.
6521set dummy objdump; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$ac_ct_OBJDUMP"; then
6528  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6548if test -n "$ac_ct_OBJDUMP"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6550$as_echo "$ac_ct_OBJDUMP" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556  if test "x$ac_ct_OBJDUMP" = x; then
6557    OBJDUMP="false"
6558  else
6559    case $cross_compiling:$ac_tool_warned in
6560yes:)
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563ac_tool_warned=yes ;;
6564esac
6565    OBJDUMP=$ac_ct_OBJDUMP
6566  fi
6567else
6568  OBJDUMP="$ac_cv_prog_OBJDUMP"
6569fi
6570
6571  ;;
6572esac
6573
6574test -z "$AS" && AS=as
6575
6576
6577
6578
6579
6580test -z "$DLLTOOL" && DLLTOOL=dlltool
6581
6582
6583
6584
6585
6586test -z "$OBJDUMP" && OBJDUMP=objdump
6587
6588
6589
6590
6591
6592
6593
6594case `pwd` in
6595  *\ * | *\	*)
6596    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6597$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6598esac
6599
6600
6601
6602macro_version='2.4.2'
6603macro_revision='1.3337'
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617ltmain="$ac_aux_dir/ltmain.sh"
6618
6619# Backslashify metacharacters that are still active within
6620# double-quoted strings.
6621sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6622
6623# Same as above, but do not quote variable references.
6624double_quote_subst='s/\(["`\\]\)/\\\1/g'
6625
6626# Sed substitution to delay expansion of an escaped shell variable in a
6627# double_quote_subst'ed string.
6628delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6629
6630# Sed substitution to delay expansion of an escaped single quote.
6631delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6632
6633# Sed substitution to avoid accidental globbing in evaled expressions
6634no_glob_subst='s/\*/\\\*/g'
6635
6636ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6637ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6638ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6639
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6641$as_echo_n "checking how to print strings... " >&6; }
6642# Test print first, because it will be a builtin if present.
6643if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6644   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6645  ECHO='print -r --'
6646elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6647  ECHO='printf %s\n'
6648else
6649  # Use this function as a fallback that always works.
6650  func_fallback_echo ()
6651  {
6652    eval 'cat <<_LTECHO_EOF
6653$1
6654_LTECHO_EOF'
6655  }
6656  ECHO='func_fallback_echo'
6657fi
6658
6659# func_echo_all arg...
6660# Invoke $ECHO with all args, space-separated.
6661func_echo_all ()
6662{
6663    $ECHO ""
6664}
6665
6666case "$ECHO" in
6667  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6668$as_echo "printf" >&6; } ;;
6669  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6670$as_echo "print -r" >&6; } ;;
6671  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6672$as_echo "cat" >&6; } ;;
6673esac
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6689$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6690if ${ac_cv_path_SED+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6694     for ac_i in 1 2 3 4 5 6 7; do
6695       ac_script="$ac_script$as_nl$ac_script"
6696     done
6697     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6698     { ac_script=; unset ac_script;}
6699     if test -z "$SED"; then
6700  ac_path_SED_found=false
6701  # Loop through the user's path and test for each of PROGNAME-LIST
6702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_prog in sed gsed; do
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6710      as_fn_executable_p "$ac_path_SED" || continue
6711# Check for GNU ac_path_SED and select it if it is found.
6712  # Check for GNU $ac_path_SED
6713case `"$ac_path_SED" --version 2>&1` in
6714*GNU*)
6715  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6716*)
6717  ac_count=0
6718  $as_echo_n 0123456789 >"conftest.in"
6719  while :
6720  do
6721    cat "conftest.in" "conftest.in" >"conftest.tmp"
6722    mv "conftest.tmp" "conftest.in"
6723    cp "conftest.in" "conftest.nl"
6724    $as_echo '' >> "conftest.nl"
6725    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6726    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6727    as_fn_arith $ac_count + 1 && ac_count=$as_val
6728    if test $ac_count -gt ${ac_path_SED_max-0}; then
6729      # Best one so far, save it but keep looking for a better one
6730      ac_cv_path_SED="$ac_path_SED"
6731      ac_path_SED_max=$ac_count
6732    fi
6733    # 10*(2^10) chars as input seems more than enough
6734    test $ac_count -gt 10 && break
6735  done
6736  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6737esac
6738
6739      $ac_path_SED_found && break 3
6740    done
6741  done
6742  done
6743IFS=$as_save_IFS
6744  if test -z "$ac_cv_path_SED"; then
6745    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6746  fi
6747else
6748  ac_cv_path_SED=$SED
6749fi
6750
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6753$as_echo "$ac_cv_path_SED" >&6; }
6754 SED="$ac_cv_path_SED"
6755  rm -f conftest.sed
6756
6757test -z "$SED" && SED=sed
6758Xsed="$SED -e 1s/^X//"
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6771$as_echo_n "checking for fgrep... " >&6; }
6772if ${ac_cv_path_FGREP+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6776   then ac_cv_path_FGREP="$GREP -F"
6777   else
6778     if test -z "$FGREP"; then
6779  ac_path_FGREP_found=false
6780  # Loop through the user's path and test for each of PROGNAME-LIST
6781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6783do
6784  IFS=$as_save_IFS
6785  test -z "$as_dir" && as_dir=.
6786    for ac_prog in fgrep; do
6787    for ac_exec_ext in '' $ac_executable_extensions; do
6788      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6789      as_fn_executable_p "$ac_path_FGREP" || continue
6790# Check for GNU ac_path_FGREP and select it if it is found.
6791  # Check for GNU $ac_path_FGREP
6792case `"$ac_path_FGREP" --version 2>&1` in
6793*GNU*)
6794  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6795*)
6796  ac_count=0
6797  $as_echo_n 0123456789 >"conftest.in"
6798  while :
6799  do
6800    cat "conftest.in" "conftest.in" >"conftest.tmp"
6801    mv "conftest.tmp" "conftest.in"
6802    cp "conftest.in" "conftest.nl"
6803    $as_echo 'FGREP' >> "conftest.nl"
6804    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6806    as_fn_arith $ac_count + 1 && ac_count=$as_val
6807    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6808      # Best one so far, save it but keep looking for a better one
6809      ac_cv_path_FGREP="$ac_path_FGREP"
6810      ac_path_FGREP_max=$ac_count
6811    fi
6812    # 10*(2^10) chars as input seems more than enough
6813    test $ac_count -gt 10 && break
6814  done
6815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6816esac
6817
6818      $ac_path_FGREP_found && break 3
6819    done
6820  done
6821  done
6822IFS=$as_save_IFS
6823  if test -z "$ac_cv_path_FGREP"; then
6824    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6825  fi
6826else
6827  ac_cv_path_FGREP=$FGREP
6828fi
6829
6830   fi
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6833$as_echo "$ac_cv_path_FGREP" >&6; }
6834 FGREP="$ac_cv_path_FGREP"
6835
6836
6837test -z "$GREP" && GREP=grep
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857# Check whether --with-gnu-ld was given.
6858if test "${with_gnu_ld+set}" = set; then :
6859  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6860else
6861  with_gnu_ld=no
6862fi
6863
6864ac_prog=ld
6865if test "$GCC" = yes; then
6866  # Check if gcc -print-prog-name=ld gives a path.
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6868$as_echo_n "checking for ld used by $CC... " >&6; }
6869  case $host in
6870  *-*-mingw*)
6871    # gcc leaves a trailing carriage return which upsets mingw
6872    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6873  *)
6874    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6875  esac
6876  case $ac_prog in
6877    # Accept absolute paths.
6878    [\\/]* | ?:[\\/]*)
6879      re_direlt='/[^/][^/]*/\.\./'
6880      # Canonicalize the pathname of ld
6881      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6882      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6883	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6884      done
6885      test -z "$LD" && LD="$ac_prog"
6886      ;;
6887  "")
6888    # If it fails, then pretend we aren't using GCC.
6889    ac_prog=ld
6890    ;;
6891  *)
6892    # If it is relative, then search for the first ld in PATH.
6893    with_gnu_ld=unknown
6894    ;;
6895  esac
6896elif test "$with_gnu_ld" = yes; then
6897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6898$as_echo_n "checking for GNU ld... " >&6; }
6899else
6900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6901$as_echo_n "checking for non-GNU ld... " >&6; }
6902fi
6903if ${lt_cv_path_LD+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -z "$LD"; then
6907  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908  for ac_dir in $PATH; do
6909    IFS="$lt_save_ifs"
6910    test -z "$ac_dir" && ac_dir=.
6911    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6912      lt_cv_path_LD="$ac_dir/$ac_prog"
6913      # Check to see if the program is GNU ld.  I'd rather use --version,
6914      # but apparently some variants of GNU ld only accept -v.
6915      # Break only if it was the GNU/non-GNU ld that we prefer.
6916      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6917      *GNU* | *'with BFD'*)
6918	test "$with_gnu_ld" != no && break
6919	;;
6920      *)
6921	test "$with_gnu_ld" != yes && break
6922	;;
6923      esac
6924    fi
6925  done
6926  IFS="$lt_save_ifs"
6927else
6928  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6929fi
6930fi
6931
6932LD="$lt_cv_path_LD"
6933if test -n "$LD"; then
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6935$as_echo "$LD" >&6; }
6936else
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938$as_echo "no" >&6; }
6939fi
6940test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6942$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6943if ${lt_cv_prog_gnu_ld+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6947case `$LD -v 2>&1 </dev/null` in
6948*GNU* | *'with BFD'*)
6949  lt_cv_prog_gnu_ld=yes
6950  ;;
6951*)
6952  lt_cv_prog_gnu_ld=no
6953  ;;
6954esac
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6957$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6958with_gnu_ld=$lt_cv_prog_gnu_ld
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6969$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6970if ${lt_cv_path_NM+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  if test -n "$NM"; then
6974  # Let the user override the test.
6975  lt_cv_path_NM="$NM"
6976else
6977  lt_nm_to_check="${ac_tool_prefix}nm"
6978  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6979    lt_nm_to_check="$lt_nm_to_check nm"
6980  fi
6981  for lt_tmp_nm in $lt_nm_to_check; do
6982    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6983    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6984      IFS="$lt_save_ifs"
6985      test -z "$ac_dir" && ac_dir=.
6986      tmp_nm="$ac_dir/$lt_tmp_nm"
6987      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6988	# Check to see if the nm accepts a BSD-compat flag.
6989	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6990	#   nm: unknown option "B" ignored
6991	# Tru64's nm complains that /dev/null is an invalid object file
6992	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6993	*/dev/null* | *'Invalid file or object type'*)
6994	  lt_cv_path_NM="$tmp_nm -B"
6995	  break
6996	  ;;
6997	*)
6998	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6999	  */dev/null*)
7000	    lt_cv_path_NM="$tmp_nm -p"
7001	    break
7002	    ;;
7003	  *)
7004	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7005	    continue # so that we can try to find one that supports BSD flags
7006	    ;;
7007	  esac
7008	  ;;
7009	esac
7010      fi
7011    done
7012    IFS="$lt_save_ifs"
7013  done
7014  : ${lt_cv_path_NM=no}
7015fi
7016fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7018$as_echo "$lt_cv_path_NM" >&6; }
7019if test "$lt_cv_path_NM" != "no"; then
7020  NM="$lt_cv_path_NM"
7021else
7022  # Didn't find any BSD compatible name lister, look for dumpbin.
7023  if test -n "$DUMPBIN"; then :
7024    # Let the user override the test.
7025  else
7026    if test -n "$ac_tool_prefix"; then
7027  for ac_prog in dumpbin "link -dump"
7028  do
7029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if ${ac_cv_prog_DUMPBIN+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  if test -n "$DUMPBIN"; then
7037  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042  IFS=$as_save_IFS
7043  test -z "$as_dir" && as_dir=.
7044    for ac_exec_ext in '' $ac_executable_extensions; do
7045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048    break 2
7049  fi
7050done
7051  done
7052IFS=$as_save_IFS
7053
7054fi
7055fi
7056DUMPBIN=$ac_cv_prog_DUMPBIN
7057if test -n "$DUMPBIN"; then
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7059$as_echo "$DUMPBIN" >&6; }
7060else
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
7063fi
7064
7065
7066    test -n "$DUMPBIN" && break
7067  done
7068fi
7069if test -z "$DUMPBIN"; then
7070  ac_ct_DUMPBIN=$DUMPBIN
7071  for ac_prog in dumpbin "link -dump"
7072do
7073  # Extract the first word of "$ac_prog", so it can be a program name with args.
7074set dummy $ac_prog; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$ac_ct_DUMPBIN"; then
7081  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088    for ac_exec_ext in '' $ac_executable_extensions; do
7089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095  done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7101if test -n "$ac_ct_DUMPBIN"; then
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7103$as_echo "$ac_ct_DUMPBIN" >&6; }
7104else
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109
7110  test -n "$ac_ct_DUMPBIN" && break
7111done
7112
7113  if test "x$ac_ct_DUMPBIN" = x; then
7114    DUMPBIN=":"
7115  else
7116    case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120ac_tool_warned=yes ;;
7121esac
7122    DUMPBIN=$ac_ct_DUMPBIN
7123  fi
7124fi
7125
7126    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7127    *COFF*)
7128      DUMPBIN="$DUMPBIN -symbols"
7129      ;;
7130    *)
7131      DUMPBIN=:
7132      ;;
7133    esac
7134  fi
7135
7136  if test "$DUMPBIN" != ":"; then
7137    NM="$DUMPBIN"
7138  fi
7139fi
7140test -z "$NM" && NM=nm
7141
7142
7143
7144
7145
7146
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7148$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7149if ${lt_cv_nm_interface+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  lt_cv_nm_interface="BSD nm"
7153  echo "int some_variable = 0;" > conftest.$ac_ext
7154  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7155  (eval "$ac_compile" 2>conftest.err)
7156  cat conftest.err >&5
7157  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7158  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7159  cat conftest.err >&5
7160  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7161  cat conftest.out >&5
7162  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7163    lt_cv_nm_interface="MS dumpbin"
7164  fi
7165  rm -f conftest*
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7168$as_echo "$lt_cv_nm_interface" >&6; }
7169
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171$as_echo_n "checking whether ln -s works... " >&6; }
7172LN_S=$as_ln_s
7173if test "$LN_S" = "ln -s"; then
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175$as_echo "yes" >&6; }
7176else
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178$as_echo "no, using $LN_S" >&6; }
7179fi
7180
7181# find the maximum length of command line arguments
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7183$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7184if ${lt_cv_sys_max_cmd_len+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187    i=0
7188  teststring="ABCD"
7189
7190  case $build_os in
7191  msdosdjgpp*)
7192    # On DJGPP, this test can blow up pretty badly due to problems in libc
7193    # (any single argument exceeding 2000 bytes causes a buffer overrun
7194    # during glob expansion).  Even if it were fixed, the result of this
7195    # check would be larger than it should be.
7196    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7197    ;;
7198
7199  gnu*)
7200    # Under GNU Hurd, this test is not required because there is
7201    # no limit to the length of command line arguments.
7202    # Libtool will interpret -1 as no limit whatsoever
7203    lt_cv_sys_max_cmd_len=-1;
7204    ;;
7205
7206  cygwin* | mingw* | cegcc*)
7207    # On Win9x/ME, this test blows up -- it succeeds, but takes
7208    # about 5 minutes as the teststring grows exponentially.
7209    # Worse, since 9x/ME are not pre-emptively multitasking,
7210    # you end up with a "frozen" computer, even though with patience
7211    # the test eventually succeeds (with a max line length of 256k).
7212    # Instead, let's just punt: use the minimum linelength reported by
7213    # all of the supported platforms: 8192 (on NT/2K/XP).
7214    lt_cv_sys_max_cmd_len=8192;
7215    ;;
7216
7217  mint*)
7218    # On MiNT this can take a long time and run out of memory.
7219    lt_cv_sys_max_cmd_len=8192;
7220    ;;
7221
7222  amigaos*)
7223    # On AmigaOS with pdksh, this test takes hours, literally.
7224    # So we just punt and use a minimum line length of 8192.
7225    lt_cv_sys_max_cmd_len=8192;
7226    ;;
7227
7228  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7229    # This has been around since 386BSD, at least.  Likely further.
7230    if test -x /sbin/sysctl; then
7231      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7232    elif test -x /usr/sbin/sysctl; then
7233      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7234    else
7235      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7236    fi
7237    # And add a safety zone
7238    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7240    ;;
7241
7242  interix*)
7243    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7244    lt_cv_sys_max_cmd_len=196608
7245    ;;
7246
7247  os2*)
7248    # The test takes a long time on OS/2.
7249    lt_cv_sys_max_cmd_len=8192
7250    ;;
7251
7252  osf*)
7253    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7254    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7255    # nice to cause kernel panics so lets avoid the loop below.
7256    # First set a reasonable default.
7257    lt_cv_sys_max_cmd_len=16384
7258    #
7259    if test -x /sbin/sysconfig; then
7260      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7261        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7262      esac
7263    fi
7264    ;;
7265  sco3.2v5*)
7266    lt_cv_sys_max_cmd_len=102400
7267    ;;
7268  sysv5* | sco5v6* | sysv4.2uw2*)
7269    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7270    if test -n "$kargmax"; then
7271      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7272    else
7273      lt_cv_sys_max_cmd_len=32768
7274    fi
7275    ;;
7276  *)
7277    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7278    if test -n "$lt_cv_sys_max_cmd_len"; then
7279      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7280      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7281    else
7282      # Make teststring a little bigger before we do anything with it.
7283      # a 1K string should be a reasonable start.
7284      for i in 1 2 3 4 5 6 7 8 ; do
7285        teststring=$teststring$teststring
7286      done
7287      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7288      # If test is not a shell built-in, we'll probably end up computing a
7289      # maximum length that is only half of the actual maximum length, but
7290      # we can't tell.
7291      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7292	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7293	      test $i != 17 # 1/2 MB should be enough
7294      do
7295        i=`expr $i + 1`
7296        teststring=$teststring$teststring
7297      done
7298      # Only check the string length outside the loop.
7299      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7300      teststring=
7301      # Add a significant safety factor because C++ compilers can tack on
7302      # massive amounts of additional arguments before passing them to the
7303      # linker.  It appears as though 1/2 is a usable value.
7304      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7305    fi
7306    ;;
7307  esac
7308
7309fi
7310
7311if test -n $lt_cv_sys_max_cmd_len ; then
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7313$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7314else
7315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7316$as_echo "none" >&6; }
7317fi
7318max_cmd_len=$lt_cv_sys_max_cmd_len
7319
7320
7321
7322
7323
7324
7325: ${CP="cp -f"}
7326: ${MV="mv -f"}
7327: ${RM="rm -f"}
7328
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7330$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7331# Try some XSI features
7332xsi_shell=no
7333( _lt_dummy="a/b/c"
7334  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7335      = c,a/b,b/c, \
7336    && eval 'test $(( 1 + 1 )) -eq 2 \
7337    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7338  && xsi_shell=yes
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7340$as_echo "$xsi_shell" >&6; }
7341
7342
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7344$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7345lt_shell_append=no
7346( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7347    >/dev/null 2>&1 \
7348  && lt_shell_append=yes
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7350$as_echo "$lt_shell_append" >&6; }
7351
7352
7353if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7354  lt_unset=unset
7355else
7356  lt_unset=false
7357fi
7358
7359
7360
7361
7362
7363# test EBCDIC or ASCII
7364case `echo X|tr X '\101'` in
7365 A) # ASCII based system
7366    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7367  lt_SP2NL='tr \040 \012'
7368  lt_NL2SP='tr \015\012 \040\040'
7369  ;;
7370 *) # EBCDIC based system
7371  lt_SP2NL='tr \100 \n'
7372  lt_NL2SP='tr \r\n \100\100'
7373  ;;
7374esac
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7385$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7386if ${lt_cv_to_host_file_cmd+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  case $host in
7390  *-*-mingw* )
7391    case $build in
7392      *-*-mingw* ) # actually msys
7393        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7394        ;;
7395      *-*-cygwin* )
7396        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7397        ;;
7398      * ) # otherwise, assume *nix
7399        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7400        ;;
7401    esac
7402    ;;
7403  *-*-cygwin* )
7404    case $build in
7405      *-*-mingw* ) # actually msys
7406        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7407        ;;
7408      *-*-cygwin* )
7409        lt_cv_to_host_file_cmd=func_convert_file_noop
7410        ;;
7411      * ) # otherwise, assume *nix
7412        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7413        ;;
7414    esac
7415    ;;
7416  * ) # unhandled hosts (and "normal" native builds)
7417    lt_cv_to_host_file_cmd=func_convert_file_noop
7418    ;;
7419esac
7420
7421fi
7422
7423to_host_file_cmd=$lt_cv_to_host_file_cmd
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7425$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7426
7427
7428
7429
7430
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7432$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7433if ${lt_cv_to_tool_file_cmd+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  #assume ordinary cross tools, or native build.
7437lt_cv_to_tool_file_cmd=func_convert_file_noop
7438case $host in
7439  *-*-mingw* )
7440    case $build in
7441      *-*-mingw* ) # actually msys
7442        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7443        ;;
7444    esac
7445    ;;
7446esac
7447
7448fi
7449
7450to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7452$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7453
7454
7455
7456
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7459$as_echo_n "checking for $LD option to reload object files... " >&6; }
7460if ${lt_cv_ld_reload_flag+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  lt_cv_ld_reload_flag='-r'
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7466$as_echo "$lt_cv_ld_reload_flag" >&6; }
7467reload_flag=$lt_cv_ld_reload_flag
7468case $reload_flag in
7469"" | " "*) ;;
7470*) reload_flag=" $reload_flag" ;;
7471esac
7472reload_cmds='$LD$reload_flag -o $output$reload_objs'
7473case $host_os in
7474  cygwin* | mingw* | pw32* | cegcc*)
7475    if test "$GCC" != yes; then
7476      reload_cmds=false
7477    fi
7478    ;;
7479  darwin*)
7480    if test "$GCC" = yes; then
7481      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7482    else
7483      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7484    fi
7485    ;;
7486esac
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496if test -n "$ac_tool_prefix"; then
7497  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7498set dummy ${ac_tool_prefix}objdump; ac_word=$2
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500$as_echo_n "checking for $ac_word... " >&6; }
7501if ${ac_cv_prog_OBJDUMP+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  if test -n "$OBJDUMP"; then
7505  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510  IFS=$as_save_IFS
7511  test -z "$as_dir" && as_dir=.
7512    for ac_exec_ext in '' $ac_executable_extensions; do
7513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516    break 2
7517  fi
7518done
7519  done
7520IFS=$as_save_IFS
7521
7522fi
7523fi
7524OBJDUMP=$ac_cv_prog_OBJDUMP
7525if test -n "$OBJDUMP"; then
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7527$as_echo "$OBJDUMP" >&6; }
7528else
7529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530$as_echo "no" >&6; }
7531fi
7532
7533
7534fi
7535if test -z "$ac_cv_prog_OBJDUMP"; then
7536  ac_ct_OBJDUMP=$OBJDUMP
7537  # Extract the first word of "objdump", so it can be a program name with args.
7538set dummy objdump; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$ac_ct_OBJDUMP"; then
7545  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7565if test -n "$ac_ct_OBJDUMP"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7567$as_echo "$ac_ct_OBJDUMP" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573  if test "x$ac_ct_OBJDUMP" = x; then
7574    OBJDUMP="false"
7575  else
7576    case $cross_compiling:$ac_tool_warned in
7577yes:)
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580ac_tool_warned=yes ;;
7581esac
7582    OBJDUMP=$ac_ct_OBJDUMP
7583  fi
7584else
7585  OBJDUMP="$ac_cv_prog_OBJDUMP"
7586fi
7587
7588test -z "$OBJDUMP" && OBJDUMP=objdump
7589
7590
7591
7592
7593
7594
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7596$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7597if ${lt_cv_deplibs_check_method+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  lt_cv_file_magic_cmd='$MAGIC_CMD'
7601lt_cv_file_magic_test_file=
7602lt_cv_deplibs_check_method='unknown'
7603# Need to set the preceding variable on all platforms that support
7604# interlibrary dependencies.
7605# 'none' -- dependencies not supported.
7606# `unknown' -- same as none, but documents that we really don't know.
7607# 'pass_all' -- all dependencies passed with no checks.
7608# 'test_compile' -- check by making test program.
7609# 'file_magic [[regex]]' -- check by looking for files in library path
7610# which responds to the $file_magic_cmd with a given extended regex.
7611# If you have `file' or equivalent on your system and you're not sure
7612# whether `pass_all' will *always* work, you probably want this one.
7613
7614case $host_os in
7615aix[4-9]*)
7616  lt_cv_deplibs_check_method=pass_all
7617  ;;
7618
7619beos*)
7620  lt_cv_deplibs_check_method=pass_all
7621  ;;
7622
7623bsdi[45]*)
7624  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7625  lt_cv_file_magic_cmd='/usr/bin/file -L'
7626  lt_cv_file_magic_test_file=/shlib/libc.so
7627  ;;
7628
7629cygwin*)
7630  # func_win32_libid is a shell function defined in ltmain.sh
7631  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7632  lt_cv_file_magic_cmd='func_win32_libid'
7633  ;;
7634
7635mingw* | pw32*)
7636  # Base MSYS/MinGW do not provide the 'file' command needed by
7637  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7638  # unless we find 'file', for example because we are cross-compiling.
7639  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7640  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7641    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7642    lt_cv_file_magic_cmd='func_win32_libid'
7643  else
7644    # Keep this pattern in sync with the one in func_win32_libid.
7645    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7646    lt_cv_file_magic_cmd='$OBJDUMP -f'
7647  fi
7648  ;;
7649
7650cegcc*)
7651  # use the weaker test based on 'objdump'. See mingw*.
7652  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7653  lt_cv_file_magic_cmd='$OBJDUMP -f'
7654  ;;
7655
7656darwin* | rhapsody*)
7657  lt_cv_deplibs_check_method=pass_all
7658  ;;
7659
7660freebsd* | dragonfly*)
7661  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7662    case $host_cpu in
7663    i*86 )
7664      # Not sure whether the presence of OpenBSD here was a mistake.
7665      # Let's accept both of them until this is cleared up.
7666      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7667      lt_cv_file_magic_cmd=/usr/bin/file
7668      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7669      ;;
7670    esac
7671  else
7672    lt_cv_deplibs_check_method=pass_all
7673  fi
7674  ;;
7675
7676gnu*)
7677  lt_cv_deplibs_check_method=pass_all
7678  ;;
7679
7680haiku*)
7681  lt_cv_deplibs_check_method=pass_all
7682  ;;
7683
7684hpux10.20* | hpux11*)
7685  lt_cv_file_magic_cmd=/usr/bin/file
7686  case $host_cpu in
7687  ia64*)
7688    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7689    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7690    ;;
7691  hppa*64*)
7692    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]'
7693    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7694    ;;
7695  *)
7696    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7697    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7698    ;;
7699  esac
7700  ;;
7701
7702interix[3-9]*)
7703  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7704  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7705  ;;
7706
7707irix5* | irix6* | nonstopux*)
7708  case $LD in
7709  *-32|*"-32 ") libmagic=32-bit;;
7710  *-n32|*"-n32 ") libmagic=N32;;
7711  *-64|*"-64 ") libmagic=64-bit;;
7712  *) libmagic=never-match;;
7713  esac
7714  lt_cv_deplibs_check_method=pass_all
7715  ;;
7716
7717# This must be glibc/ELF.
7718linux* | k*bsd*-gnu | kopensolaris*-gnu)
7719  lt_cv_deplibs_check_method=pass_all
7720  ;;
7721
7722netbsd*)
7723  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7724    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7725  else
7726    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7727  fi
7728  ;;
7729
7730newos6*)
7731  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7732  lt_cv_file_magic_cmd=/usr/bin/file
7733  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7734  ;;
7735
7736*nto* | *qnx*)
7737  lt_cv_deplibs_check_method=pass_all
7738  ;;
7739
7740openbsd*)
7741  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7742    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7743  else
7744    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7745  fi
7746  ;;
7747
7748osf3* | osf4* | osf5*)
7749  lt_cv_deplibs_check_method=pass_all
7750  ;;
7751
7752rdos*)
7753  lt_cv_deplibs_check_method=pass_all
7754  ;;
7755
7756solaris*)
7757  lt_cv_deplibs_check_method=pass_all
7758  ;;
7759
7760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7761  lt_cv_deplibs_check_method=pass_all
7762  ;;
7763
7764sysv4 | sysv4.3*)
7765  case $host_vendor in
7766  motorola)
7767    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]'
7768    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7769    ;;
7770  ncr)
7771    lt_cv_deplibs_check_method=pass_all
7772    ;;
7773  sequent)
7774    lt_cv_file_magic_cmd='/bin/file'
7775    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7776    ;;
7777  sni)
7778    lt_cv_file_magic_cmd='/bin/file'
7779    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7780    lt_cv_file_magic_test_file=/lib/libc.so
7781    ;;
7782  siemens)
7783    lt_cv_deplibs_check_method=pass_all
7784    ;;
7785  pc)
7786    lt_cv_deplibs_check_method=pass_all
7787    ;;
7788  esac
7789  ;;
7790
7791tpf*)
7792  lt_cv_deplibs_check_method=pass_all
7793  ;;
7794esac
7795
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7798$as_echo "$lt_cv_deplibs_check_method" >&6; }
7799
7800file_magic_glob=
7801want_nocaseglob=no
7802if test "$build" = "$host"; then
7803  case $host_os in
7804  mingw* | pw32*)
7805    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7806      want_nocaseglob=yes
7807    else
7808      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7809    fi
7810    ;;
7811  esac
7812fi
7813
7814file_magic_cmd=$lt_cv_file_magic_cmd
7815deplibs_check_method=$lt_cv_deplibs_check_method
7816test -z "$deplibs_check_method" && deplibs_check_method=unknown
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839if test -n "$ac_tool_prefix"; then
7840  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7841set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843$as_echo_n "checking for $ac_word... " >&6; }
7844if ${ac_cv_prog_DLLTOOL+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  if test -n "$DLLTOOL"; then
7848  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855    for ac_exec_ext in '' $ac_executable_extensions; do
7856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862  done
7863IFS=$as_save_IFS
7864
7865fi
7866fi
7867DLLTOOL=$ac_cv_prog_DLLTOOL
7868if test -n "$DLLTOOL"; then
7869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7870$as_echo "$DLLTOOL" >&6; }
7871else
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877fi
7878if test -z "$ac_cv_prog_DLLTOOL"; then
7879  ac_ct_DLLTOOL=$DLLTOOL
7880  # Extract the first word of "dlltool", so it can be a program name with args.
7881set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  if test -n "$ac_ct_DLLTOOL"; then
7888  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
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
7907ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7908if test -n "$ac_ct_DLLTOOL"; then
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7910$as_echo "$ac_ct_DLLTOOL" >&6; }
7911else
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914fi
7915
7916  if test "x$ac_ct_DLLTOOL" = x; then
7917    DLLTOOL="false"
7918  else
7919    case $cross_compiling:$ac_tool_warned in
7920yes:)
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923ac_tool_warned=yes ;;
7924esac
7925    DLLTOOL=$ac_ct_DLLTOOL
7926  fi
7927else
7928  DLLTOOL="$ac_cv_prog_DLLTOOL"
7929fi
7930
7931test -z "$DLLTOOL" && DLLTOOL=dlltool
7932
7933
7934
7935
7936
7937
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7940$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7941if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  lt_cv_sharedlib_from_linklib_cmd='unknown'
7945
7946case $host_os in
7947cygwin* | mingw* | pw32* | cegcc*)
7948  # two different shell functions defined in ltmain.sh
7949  # decide which to use based on capabilities of $DLLTOOL
7950  case `$DLLTOOL --help 2>&1` in
7951  *--identify-strict*)
7952    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7953    ;;
7954  *)
7955    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7956    ;;
7957  esac
7958  ;;
7959*)
7960  # fallback: assume linklib IS sharedlib
7961  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7962  ;;
7963esac
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7967$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7968sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7969test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7970
7971
7972
7973
7974
7975
7976
7977if test -n "$ac_tool_prefix"; then
7978  for ac_prog in ar
7979  do
7980    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if ${ac_cv_prog_AR+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$AR"; then
7988  ac_cv_prog_AR="$AR" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007AR=$ac_cv_prog_AR
8008if test -n "$AR"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8010$as_echo "$AR" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016
8017    test -n "$AR" && break
8018  done
8019fi
8020if test -z "$AR"; then
8021  ac_ct_AR=$AR
8022  for ac_prog in ar
8023do
8024  # Extract the first word of "$ac_prog", so it can be a program name with args.
8025set dummy $ac_prog; ac_word=$2
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
8028if ${ac_cv_prog_ac_ct_AR+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  if test -n "$ac_ct_AR"; then
8032  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037  IFS=$as_save_IFS
8038  test -z "$as_dir" && as_dir=.
8039    for ac_exec_ext in '' $ac_executable_extensions; do
8040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041    ac_cv_prog_ac_ct_AR="$ac_prog"
8042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043    break 2
8044  fi
8045done
8046  done
8047IFS=$as_save_IFS
8048
8049fi
8050fi
8051ac_ct_AR=$ac_cv_prog_ac_ct_AR
8052if test -n "$ac_ct_AR"; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8054$as_echo "$ac_ct_AR" >&6; }
8055else
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
8058fi
8059
8060
8061  test -n "$ac_ct_AR" && break
8062done
8063
8064  if test "x$ac_ct_AR" = x; then
8065    AR="false"
8066  else
8067    case $cross_compiling:$ac_tool_warned in
8068yes:)
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071ac_tool_warned=yes ;;
8072esac
8073    AR=$ac_ct_AR
8074  fi
8075fi
8076
8077: ${AR=ar}
8078: ${AR_FLAGS=cru}
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8091$as_echo_n "checking for archiver @FILE support... " >&6; }
8092if ${lt_cv_ar_at_file+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  lt_cv_ar_at_file=no
8096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098
8099int
8100main ()
8101{
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_c_try_compile "$LINENO"; then :
8108  echo conftest.$ac_objext > conftest.lst
8109      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8110      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8111  (eval $lt_ar_try) 2>&5
8112  ac_status=$?
8113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114  test $ac_status = 0; }
8115      if test "$ac_status" -eq 0; then
8116	# Ensure the archiver fails upon bogus file names.
8117	rm -f conftest.$ac_objext libconftest.a
8118	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8119  (eval $lt_ar_try) 2>&5
8120  ac_status=$?
8121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8122  test $ac_status = 0; }
8123	if test "$ac_status" -ne 0; then
8124          lt_cv_ar_at_file=@
8125        fi
8126      fi
8127      rm -f conftest.* libconftest.a
8128
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8134$as_echo "$lt_cv_ar_at_file" >&6; }
8135
8136if test "x$lt_cv_ar_at_file" = xno; then
8137  archiver_list_spec=
8138else
8139  archiver_list_spec=$lt_cv_ar_at_file
8140fi
8141
8142
8143
8144
8145
8146
8147
8148if test -n "$ac_tool_prefix"; then
8149  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8150set dummy ${ac_tool_prefix}strip; ac_word=$2
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152$as_echo_n "checking for $ac_word... " >&6; }
8153if ${ac_cv_prog_STRIP+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156  if test -n "$STRIP"; then
8157  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8158else
8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162  IFS=$as_save_IFS
8163  test -z "$as_dir" && as_dir=.
8164    for ac_exec_ext in '' $ac_executable_extensions; do
8165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168    break 2
8169  fi
8170done
8171  done
8172IFS=$as_save_IFS
8173
8174fi
8175fi
8176STRIP=$ac_cv_prog_STRIP
8177if test -n "$STRIP"; then
8178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8179$as_echo "$STRIP" >&6; }
8180else
8181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182$as_echo "no" >&6; }
8183fi
8184
8185
8186fi
8187if test -z "$ac_cv_prog_STRIP"; then
8188  ac_ct_STRIP=$STRIP
8189  # Extract the first word of "strip", so it can be a program name with args.
8190set dummy strip; ac_word=$2
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192$as_echo_n "checking for $ac_word... " >&6; }
8193if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8194  $as_echo_n "(cached) " >&6
8195else
8196  if test -n "$ac_ct_STRIP"; then
8197  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202  IFS=$as_save_IFS
8203  test -z "$as_dir" && as_dir=.
8204    for ac_exec_ext in '' $ac_executable_extensions; do
8205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206    ac_cv_prog_ac_ct_STRIP="strip"
8207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208    break 2
8209  fi
8210done
8211  done
8212IFS=$as_save_IFS
8213
8214fi
8215fi
8216ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8217if test -n "$ac_ct_STRIP"; then
8218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8219$as_echo "$ac_ct_STRIP" >&6; }
8220else
8221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
8223fi
8224
8225  if test "x$ac_ct_STRIP" = x; then
8226    STRIP=":"
8227  else
8228    case $cross_compiling:$ac_tool_warned in
8229yes:)
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232ac_tool_warned=yes ;;
8233esac
8234    STRIP=$ac_ct_STRIP
8235  fi
8236else
8237  STRIP="$ac_cv_prog_STRIP"
8238fi
8239
8240test -z "$STRIP" && STRIP=:
8241
8242
8243
8244
8245
8246
8247if test -n "$ac_tool_prefix"; then
8248  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8249set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  if test -n "$RANLIB"; then
8256  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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
8275RANLIB=$ac_cv_prog_RANLIB
8276if test -n "$RANLIB"; then
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8278$as_echo "$RANLIB" >&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_RANLIB"; then
8287  ac_ct_RANLIB=$RANLIB
8288  # Extract the first word of "ranlib", so it can be a program name with args.
8289set dummy ranlib; 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_RANLIB+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  if test -n "$ac_ct_RANLIB"; then
8296  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8316if test -n "$ac_ct_RANLIB"; then
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8318$as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then
8325    RANLIB=":"
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    RANLIB=$ac_ct_RANLIB
8334  fi
8335else
8336  RANLIB="$ac_cv_prog_RANLIB"
8337fi
8338
8339test -z "$RANLIB" && RANLIB=:
8340
8341
8342
8343
8344
8345
8346# Determine commands to create old-style static archives.
8347old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8348old_postinstall_cmds='chmod 644 $oldlib'
8349old_postuninstall_cmds=
8350
8351if test -n "$RANLIB"; then
8352  case $host_os in
8353  openbsd*)
8354    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8355    ;;
8356  *)
8357    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8358    ;;
8359  esac
8360  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8361fi
8362
8363case $host_os in
8364  darwin*)
8365    lock_old_archive_extraction=yes ;;
8366  *)
8367    lock_old_archive_extraction=no ;;
8368esac
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408# If no C compiler was specified, use CC.
8409LTCC=${LTCC-"$CC"}
8410
8411# If no C compiler flags were specified, use CFLAGS.
8412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8413
8414# Allow CC to be a program name with arguments.
8415compiler=$CC
8416
8417
8418# Check for command to grab the raw symbol name followed by C symbol from nm.
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8420$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8421if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424
8425# These are sane defaults that work on at least a few old systems.
8426# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8427
8428# Character class describing NM global symbol codes.
8429symcode='[BCDEGRST]'
8430
8431# Regexp to match symbols that can be accessed directly from C.
8432sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8433
8434# Define system-specific variables.
8435case $host_os in
8436aix*)
8437  symcode='[BCDT]'
8438  ;;
8439cygwin* | mingw* | pw32* | cegcc*)
8440  symcode='[ABCDGISTW]'
8441  ;;
8442hpux*)
8443  if test "$host_cpu" = ia64; then
8444    symcode='[ABCDEGRST]'
8445  fi
8446  ;;
8447irix* | nonstopux*)
8448  symcode='[BCDEGRST]'
8449  ;;
8450osf*)
8451  symcode='[BCDEGQRST]'
8452  ;;
8453solaris*)
8454  symcode='[BDRT]'
8455  ;;
8456sco3.2v5*)
8457  symcode='[DT]'
8458  ;;
8459sysv4.2uw2*)
8460  symcode='[DT]'
8461  ;;
8462sysv5* | sco5v6* | unixware* | OpenUNIX*)
8463  symcode='[ABDT]'
8464  ;;
8465sysv4)
8466  symcode='[DFNSTU]'
8467  ;;
8468esac
8469
8470# If we're using GNU nm, then use its standard symbol codes.
8471case `$NM -V 2>&1` in
8472*GNU* | *'with BFD'*)
8473  symcode='[ABCDGIRSTW]' ;;
8474esac
8475
8476# Transform an extracted symbol line into a proper C declaration.
8477# Some systems (esp. on ia64) link data and code symbols differently,
8478# so use this general approach.
8479lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8480
8481# Transform an extracted symbol line into symbol name and symbol address
8482lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8483lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8484
8485# Handle CRLF in mingw tool chain
8486opt_cr=
8487case $build_os in
8488mingw*)
8489  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8490  ;;
8491esac
8492
8493# Try without a prefix underscore, then with it.
8494for ac_symprfx in "" "_"; do
8495
8496  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8497  symxfrm="\\1 $ac_symprfx\\2 \\2"
8498
8499  # Write the raw and C identifiers.
8500  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8501    # Fake it for dumpbin and say T for any non-static function
8502    # and D for any global variable.
8503    # Also find C++ and __fastcall symbols from MSVC++,
8504    # which start with @ or ?.
8505    lt_cv_sys_global_symbol_pipe="$AWK '"\
8506"     {last_section=section; section=\$ 3};"\
8507"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8508"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8509"     \$ 0!~/External *\|/{next};"\
8510"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8511"     {if(hide[section]) next};"\
8512"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8513"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8514"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8515"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8516"     ' prfx=^$ac_symprfx"
8517  else
8518    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8519  fi
8520  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8521
8522  # Check to see that the pipe works correctly.
8523  pipe_works=no
8524
8525  rm -f conftest*
8526  cat > conftest.$ac_ext <<_LT_EOF
8527#ifdef __cplusplus
8528extern "C" {
8529#endif
8530char nm_test_var;
8531void nm_test_func(void);
8532void nm_test_func(void){}
8533#ifdef __cplusplus
8534}
8535#endif
8536int main(){nm_test_var='a';nm_test_func();return(0);}
8537_LT_EOF
8538
8539  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8540  (eval $ac_compile) 2>&5
8541  ac_status=$?
8542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8543  test $ac_status = 0; }; then
8544    # Now try to grab the symbols.
8545    nlist=conftest.nm
8546    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8547  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8548  ac_status=$?
8549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550  test $ac_status = 0; } && test -s "$nlist"; then
8551      # Try sorting and uniquifying the output.
8552      if sort "$nlist" | uniq > "$nlist"T; then
8553	mv -f "$nlist"T "$nlist"
8554      else
8555	rm -f "$nlist"T
8556      fi
8557
8558      # Make sure that we snagged all the symbols we need.
8559      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8560	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8561	  cat <<_LT_EOF > conftest.$ac_ext
8562/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8563#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8564/* DATA imports from DLLs on WIN32 con't be const, because runtime
8565   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8566# define LT_DLSYM_CONST
8567#elif defined(__osf__)
8568/* This system does not cope well with relocations in const data.  */
8569# define LT_DLSYM_CONST
8570#else
8571# define LT_DLSYM_CONST const
8572#endif
8573
8574#ifdef __cplusplus
8575extern "C" {
8576#endif
8577
8578_LT_EOF
8579	  # Now generate the symbol file.
8580	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8581
8582	  cat <<_LT_EOF >> conftest.$ac_ext
8583
8584/* The mapping between symbol names and symbols.  */
8585LT_DLSYM_CONST struct {
8586  const char *name;
8587  void       *address;
8588}
8589lt__PROGRAM__LTX_preloaded_symbols[] =
8590{
8591  { "@PROGRAM@", (void *) 0 },
8592_LT_EOF
8593	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8594	  cat <<\_LT_EOF >> conftest.$ac_ext
8595  {0, (void *) 0}
8596};
8597
8598/* This works around a problem in FreeBSD linker */
8599#ifdef FREEBSD_WORKAROUND
8600static const void *lt_preloaded_setup() {
8601  return lt__PROGRAM__LTX_preloaded_symbols;
8602}
8603#endif
8604
8605#ifdef __cplusplus
8606}
8607#endif
8608_LT_EOF
8609	  # Now try linking the two files.
8610	  mv conftest.$ac_objext conftstm.$ac_objext
8611	  lt_globsym_save_LIBS=$LIBS
8612	  lt_globsym_save_CFLAGS=$CFLAGS
8613	  LIBS="conftstm.$ac_objext"
8614	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8615	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8616  (eval $ac_link) 2>&5
8617  ac_status=$?
8618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8620	    pipe_works=yes
8621	  fi
8622	  LIBS=$lt_globsym_save_LIBS
8623	  CFLAGS=$lt_globsym_save_CFLAGS
8624	else
8625	  echo "cannot find nm_test_func in $nlist" >&5
8626	fi
8627      else
8628	echo "cannot find nm_test_var in $nlist" >&5
8629      fi
8630    else
8631      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8632    fi
8633  else
8634    echo "$progname: failed program was:" >&5
8635    cat conftest.$ac_ext >&5
8636  fi
8637  rm -rf conftest* conftst*
8638
8639  # Do not use the global_symbol_pipe unless it works.
8640  if test "$pipe_works" = yes; then
8641    break
8642  else
8643    lt_cv_sys_global_symbol_pipe=
8644  fi
8645done
8646
8647fi
8648
8649if test -z "$lt_cv_sys_global_symbol_pipe"; then
8650  lt_cv_sys_global_symbol_to_cdecl=
8651fi
8652if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8654$as_echo "failed" >&6; }
8655else
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8657$as_echo "ok" >&6; }
8658fi
8659
8660# Response file support.
8661if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8662  nm_file_list_spec='@'
8663elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8664  nm_file_list_spec='@'
8665fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8694$as_echo_n "checking for sysroot... " >&6; }
8695
8696# Check whether --with-sysroot was given.
8697if test "${with_sysroot+set}" = set; then :
8698  withval=$with_sysroot;
8699else
8700  with_sysroot=no
8701fi
8702
8703
8704lt_sysroot=
8705case ${with_sysroot} in #(
8706 yes)
8707   if test "$GCC" = yes; then
8708     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8709   fi
8710   ;; #(
8711 /*)
8712   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8713   ;; #(
8714 no|'')
8715   ;; #(
8716 *)
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8718$as_echo "${with_sysroot}" >&6; }
8719   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8720   ;;
8721esac
8722
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8724$as_echo "${lt_sysroot:-no}" >&6; }
8725
8726
8727
8728
8729
8730# Check whether --enable-libtool-lock was given.
8731if test "${enable_libtool_lock+set}" = set; then :
8732  enableval=$enable_libtool_lock;
8733fi
8734
8735test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8736
8737# Some flags need to be propagated to the compiler or linker for good
8738# libtool support.
8739case $host in
8740ia64-*-hpux*)
8741  # Find out which ABI we are using.
8742  echo 'int i;' > conftest.$ac_ext
8743  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744  (eval $ac_compile) 2>&5
8745  ac_status=$?
8746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747  test $ac_status = 0; }; then
8748    case `/usr/bin/file conftest.$ac_objext` in
8749      *ELF-32*)
8750	HPUX_IA64_MODE="32"
8751	;;
8752      *ELF-64*)
8753	HPUX_IA64_MODE="64"
8754	;;
8755    esac
8756  fi
8757  rm -rf conftest*
8758  ;;
8759*-*-irix6*)
8760  # Find out which ABI we are using.
8761  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8762  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8763  (eval $ac_compile) 2>&5
8764  ac_status=$?
8765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766  test $ac_status = 0; }; then
8767    if test "$lt_cv_prog_gnu_ld" = yes; then
8768      case `/usr/bin/file conftest.$ac_objext` in
8769	*32-bit*)
8770	  LD="${LD-ld} -melf32bsmip"
8771	  ;;
8772	*N32*)
8773	  LD="${LD-ld} -melf32bmipn32"
8774	  ;;
8775	*64-bit*)
8776	  LD="${LD-ld} -melf64bmip"
8777	;;
8778      esac
8779    else
8780      case `/usr/bin/file conftest.$ac_objext` in
8781	*32-bit*)
8782	  LD="${LD-ld} -32"
8783	  ;;
8784	*N32*)
8785	  LD="${LD-ld} -n32"
8786	  ;;
8787	*64-bit*)
8788	  LD="${LD-ld} -64"
8789	  ;;
8790      esac
8791    fi
8792  fi
8793  rm -rf conftest*
8794  ;;
8795
8796x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8797s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8798  # Find out which ABI we are using.
8799  echo 'int i;' > conftest.$ac_ext
8800  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8801  (eval $ac_compile) 2>&5
8802  ac_status=$?
8803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8804  test $ac_status = 0; }; then
8805    case `/usr/bin/file conftest.o` in
8806      *32-bit*)
8807	case $host in
8808	  x86_64-*kfreebsd*-gnu)
8809	    LD="${LD-ld} -m elf_i386_fbsd"
8810	    ;;
8811	  x86_64-*linux*)
8812	    LD="${LD-ld} -m elf_i386"
8813	    ;;
8814	  ppc64-*linux*|powerpc64-*linux*)
8815	    LD="${LD-ld} -m elf32ppclinux"
8816	    ;;
8817	  s390x-*linux*)
8818	    LD="${LD-ld} -m elf_s390"
8819	    ;;
8820	  sparc64-*linux*)
8821	    LD="${LD-ld} -m elf32_sparc"
8822	    ;;
8823	esac
8824	;;
8825      *64-bit*)
8826	case $host in
8827	  x86_64-*kfreebsd*-gnu)
8828	    LD="${LD-ld} -m elf_x86_64_fbsd"
8829	    ;;
8830	  x86_64-*linux*)
8831	    LD="${LD-ld} -m elf_x86_64"
8832	    ;;
8833	  ppc*-*linux*|powerpc*-*linux*)
8834	    LD="${LD-ld} -m elf64ppc"
8835	    ;;
8836	  s390*-*linux*|s390*-*tpf*)
8837	    LD="${LD-ld} -m elf64_s390"
8838	    ;;
8839	  sparc*-*linux*)
8840	    LD="${LD-ld} -m elf64_sparc"
8841	    ;;
8842	esac
8843	;;
8844    esac
8845  fi
8846  rm -rf conftest*
8847  ;;
8848
8849*-*-sco3.2v5*)
8850  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8851  SAVE_CFLAGS="$CFLAGS"
8852  CFLAGS="$CFLAGS -belf"
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8854$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8855if ${lt_cv_cc_needs_belf+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  ac_ext=c
8859ac_cpp='$CPP $CPPFLAGS'
8860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863
8864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866
8867int
8868main ()
8869{
8870
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875if ac_fn_c_try_link "$LINENO"; then :
8876  lt_cv_cc_needs_belf=yes
8877else
8878  lt_cv_cc_needs_belf=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext \
8881    conftest$ac_exeext conftest.$ac_ext
8882     ac_ext=c
8883ac_cpp='$CPP $CPPFLAGS'
8884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8886ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8890$as_echo "$lt_cv_cc_needs_belf" >&6; }
8891  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8892    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8893    CFLAGS="$SAVE_CFLAGS"
8894  fi
8895  ;;
8896*-*solaris*)
8897  # Find out which ABI we are using.
8898  echo 'int i;' > conftest.$ac_ext
8899  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8900  (eval $ac_compile) 2>&5
8901  ac_status=$?
8902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8903  test $ac_status = 0; }; then
8904    case `/usr/bin/file conftest.o` in
8905    *64-bit*)
8906      case $lt_cv_prog_gnu_ld in
8907      yes*)
8908        case $host in
8909        i?86-*-solaris*)
8910          LD="${LD-ld} -m elf_x86_64"
8911          ;;
8912        sparc*-*-solaris*)
8913          LD="${LD-ld} -m elf64_sparc"
8914          ;;
8915        esac
8916        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8917        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8918          LD="${LD-ld}_sol2"
8919        fi
8920        ;;
8921      *)
8922	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8923	  LD="${LD-ld} -64"
8924	fi
8925	;;
8926      esac
8927      ;;
8928    esac
8929  fi
8930  rm -rf conftest*
8931  ;;
8932esac
8933
8934need_locks="$enable_libtool_lock"
8935
8936if test -n "$ac_tool_prefix"; then
8937  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8938set dummy ${ac_tool_prefix}mt; ac_word=$2
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940$as_echo_n "checking for $ac_word... " >&6; }
8941if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8942  $as_echo_n "(cached) " >&6
8943else
8944  if test -n "$MANIFEST_TOOL"; then
8945  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8946else
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950  IFS=$as_save_IFS
8951  test -z "$as_dir" && as_dir=.
8952    for ac_exec_ext in '' $ac_executable_extensions; do
8953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956    break 2
8957  fi
8958done
8959  done
8960IFS=$as_save_IFS
8961
8962fi
8963fi
8964MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8965if test -n "$MANIFEST_TOOL"; then
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8967$as_echo "$MANIFEST_TOOL" >&6; }
8968else
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971fi
8972
8973
8974fi
8975if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8976  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8977  # Extract the first word of "mt", so it can be a program name with args.
8978set dummy mt; ac_word=$2
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
8981if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  if test -n "$ac_ct_MANIFEST_TOOL"; then
8985  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990  IFS=$as_save_IFS
8991  test -z "$as_dir" && as_dir=.
8992    for ac_exec_ext in '' $ac_executable_extensions; do
8993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996    break 2
8997  fi
8998done
8999  done
9000IFS=$as_save_IFS
9001
9002fi
9003fi
9004ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9005if test -n "$ac_ct_MANIFEST_TOOL"; then
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9007$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9008else
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9011fi
9012
9013  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9014    MANIFEST_TOOL=":"
9015  else
9016    case $cross_compiling:$ac_tool_warned in
9017yes:)
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020ac_tool_warned=yes ;;
9021esac
9022    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9023  fi
9024else
9025  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9026fi
9027
9028test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9030$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9031if ${lt_cv_path_mainfest_tool+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  lt_cv_path_mainfest_tool=no
9035  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9036  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9037  cat conftest.err >&5
9038  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9039    lt_cv_path_mainfest_tool=yes
9040  fi
9041  rm -f conftest*
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9044$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9045if test "x$lt_cv_path_mainfest_tool" != xyes; then
9046  MANIFEST_TOOL=:
9047fi
9048
9049
9050
9051
9052
9053
9054  case $host_os in
9055    rhapsody* | darwin*)
9056    if test -n "$ac_tool_prefix"; then
9057  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9058set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if ${ac_cv_prog_DSYMUTIL+:} false; then :
9062  $as_echo_n "(cached) " >&6
9063else
9064  if test -n "$DSYMUTIL"; then
9065  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9066else
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070  IFS=$as_save_IFS
9071  test -z "$as_dir" && as_dir=.
9072    for ac_exec_ext in '' $ac_executable_extensions; do
9073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076    break 2
9077  fi
9078done
9079  done
9080IFS=$as_save_IFS
9081
9082fi
9083fi
9084DSYMUTIL=$ac_cv_prog_DSYMUTIL
9085if test -n "$DSYMUTIL"; then
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9087$as_echo "$DSYMUTIL" >&6; }
9088else
9089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
9091fi
9092
9093
9094fi
9095if test -z "$ac_cv_prog_DSYMUTIL"; then
9096  ac_ct_DSYMUTIL=$DSYMUTIL
9097  # Extract the first word of "dsymutil", so it can be a program name with args.
9098set dummy dsymutil; ac_word=$2
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
9101if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  if test -n "$ac_ct_DSYMUTIL"; then
9105  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9106else
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110  IFS=$as_save_IFS
9111  test -z "$as_dir" && as_dir=.
9112    for ac_exec_ext in '' $ac_executable_extensions; do
9113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9114    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116    break 2
9117  fi
9118done
9119  done
9120IFS=$as_save_IFS
9121
9122fi
9123fi
9124ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9125if test -n "$ac_ct_DSYMUTIL"; then
9126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9127$as_echo "$ac_ct_DSYMUTIL" >&6; }
9128else
9129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
9131fi
9132
9133  if test "x$ac_ct_DSYMUTIL" = x; then
9134    DSYMUTIL=":"
9135  else
9136    case $cross_compiling:$ac_tool_warned in
9137yes:)
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9140ac_tool_warned=yes ;;
9141esac
9142    DSYMUTIL=$ac_ct_DSYMUTIL
9143  fi
9144else
9145  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9146fi
9147
9148    if test -n "$ac_tool_prefix"; then
9149  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9150set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
9153if ${ac_cv_prog_NMEDIT+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  if test -n "$NMEDIT"; then
9157  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9158else
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162  IFS=$as_save_IFS
9163  test -z "$as_dir" && as_dir=.
9164    for ac_exec_ext in '' $ac_executable_extensions; do
9165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168    break 2
9169  fi
9170done
9171  done
9172IFS=$as_save_IFS
9173
9174fi
9175fi
9176NMEDIT=$ac_cv_prog_NMEDIT
9177if test -n "$NMEDIT"; then
9178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9179$as_echo "$NMEDIT" >&6; }
9180else
9181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
9183fi
9184
9185
9186fi
9187if test -z "$ac_cv_prog_NMEDIT"; then
9188  ac_ct_NMEDIT=$NMEDIT
9189  # Extract the first word of "nmedit", so it can be a program name with args.
9190set dummy nmedit; ac_word=$2
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192$as_echo_n "checking for $ac_word... " >&6; }
9193if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9194  $as_echo_n "(cached) " >&6
9195else
9196  if test -n "$ac_ct_NMEDIT"; then
9197  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9198else
9199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $PATH
9201do
9202  IFS=$as_save_IFS
9203  test -z "$as_dir" && as_dir=.
9204    for ac_exec_ext in '' $ac_executable_extensions; do
9205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208    break 2
9209  fi
9210done
9211  done
9212IFS=$as_save_IFS
9213
9214fi
9215fi
9216ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9217if test -n "$ac_ct_NMEDIT"; then
9218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9219$as_echo "$ac_ct_NMEDIT" >&6; }
9220else
9221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222$as_echo "no" >&6; }
9223fi
9224
9225  if test "x$ac_ct_NMEDIT" = x; then
9226    NMEDIT=":"
9227  else
9228    case $cross_compiling:$ac_tool_warned in
9229yes:)
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9232ac_tool_warned=yes ;;
9233esac
9234    NMEDIT=$ac_ct_NMEDIT
9235  fi
9236else
9237  NMEDIT="$ac_cv_prog_NMEDIT"
9238fi
9239
9240    if test -n "$ac_tool_prefix"; then
9241  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9242set dummy ${ac_tool_prefix}lipo; ac_word=$2
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if ${ac_cv_prog_LIPO+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  if test -n "$LIPO"; then
9249  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9250else
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254  IFS=$as_save_IFS
9255  test -z "$as_dir" && as_dir=.
9256    for ac_exec_ext in '' $ac_executable_extensions; do
9257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260    break 2
9261  fi
9262done
9263  done
9264IFS=$as_save_IFS
9265
9266fi
9267fi
9268LIPO=$ac_cv_prog_LIPO
9269if test -n "$LIPO"; then
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9271$as_echo "$LIPO" >&6; }
9272else
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
9275fi
9276
9277
9278fi
9279if test -z "$ac_cv_prog_LIPO"; then
9280  ac_ct_LIPO=$LIPO
9281  # Extract the first word of "lipo", so it can be a program name with args.
9282set dummy lipo; ac_word=$2
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284$as_echo_n "checking for $ac_word... " >&6; }
9285if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  if test -n "$ac_ct_LIPO"; then
9289  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9290else
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294  IFS=$as_save_IFS
9295  test -z "$as_dir" && as_dir=.
9296    for ac_exec_ext in '' $ac_executable_extensions; do
9297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298    ac_cv_prog_ac_ct_LIPO="lipo"
9299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300    break 2
9301  fi
9302done
9303  done
9304IFS=$as_save_IFS
9305
9306fi
9307fi
9308ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9309if test -n "$ac_ct_LIPO"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9311$as_echo "$ac_ct_LIPO" >&6; }
9312else
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314$as_echo "no" >&6; }
9315fi
9316
9317  if test "x$ac_ct_LIPO" = x; then
9318    LIPO=":"
9319  else
9320    case $cross_compiling:$ac_tool_warned in
9321yes:)
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9324ac_tool_warned=yes ;;
9325esac
9326    LIPO=$ac_ct_LIPO
9327  fi
9328else
9329  LIPO="$ac_cv_prog_LIPO"
9330fi
9331
9332    if test -n "$ac_tool_prefix"; then
9333  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9334set dummy ${ac_tool_prefix}otool; ac_word=$2
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if ${ac_cv_prog_OTOOL+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  if test -n "$OTOOL"; then
9341  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346  IFS=$as_save_IFS
9347  test -z "$as_dir" && as_dir=.
9348    for ac_exec_ext in '' $ac_executable_extensions; do
9349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352    break 2
9353  fi
9354done
9355  done
9356IFS=$as_save_IFS
9357
9358fi
9359fi
9360OTOOL=$ac_cv_prog_OTOOL
9361if test -n "$OTOOL"; then
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9363$as_echo "$OTOOL" >&6; }
9364else
9365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
9367fi
9368
9369
9370fi
9371if test -z "$ac_cv_prog_OTOOL"; then
9372  ac_ct_OTOOL=$OTOOL
9373  # Extract the first word of "otool", so it can be a program name with args.
9374set dummy otool; ac_word=$2
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376$as_echo_n "checking for $ac_word... " >&6; }
9377if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9378  $as_echo_n "(cached) " >&6
9379else
9380  if test -n "$ac_ct_OTOOL"; then
9381  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9382else
9383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384for as_dir in $PATH
9385do
9386  IFS=$as_save_IFS
9387  test -z "$as_dir" && as_dir=.
9388    for ac_exec_ext in '' $ac_executable_extensions; do
9389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390    ac_cv_prog_ac_ct_OTOOL="otool"
9391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392    break 2
9393  fi
9394done
9395  done
9396IFS=$as_save_IFS
9397
9398fi
9399fi
9400ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9401if test -n "$ac_ct_OTOOL"; then
9402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9403$as_echo "$ac_ct_OTOOL" >&6; }
9404else
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406$as_echo "no" >&6; }
9407fi
9408
9409  if test "x$ac_ct_OTOOL" = x; then
9410    OTOOL=":"
9411  else
9412    case $cross_compiling:$ac_tool_warned in
9413yes:)
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9416ac_tool_warned=yes ;;
9417esac
9418    OTOOL=$ac_ct_OTOOL
9419  fi
9420else
9421  OTOOL="$ac_cv_prog_OTOOL"
9422fi
9423
9424    if test -n "$ac_tool_prefix"; then
9425  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9426set dummy ${ac_tool_prefix}otool64; ac_word=$2
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if ${ac_cv_prog_OTOOL64+:} false; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  if test -n "$OTOOL64"; then
9433  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9434else
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438  IFS=$as_save_IFS
9439  test -z "$as_dir" && as_dir=.
9440    for ac_exec_ext in '' $ac_executable_extensions; do
9441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444    break 2
9445  fi
9446done
9447  done
9448IFS=$as_save_IFS
9449
9450fi
9451fi
9452OTOOL64=$ac_cv_prog_OTOOL64
9453if test -n "$OTOOL64"; then
9454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9455$as_echo "$OTOOL64" >&6; }
9456else
9457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
9459fi
9460
9461
9462fi
9463if test -z "$ac_cv_prog_OTOOL64"; then
9464  ac_ct_OTOOL64=$OTOOL64
9465  # Extract the first word of "otool64", so it can be a program name with args.
9466set dummy otool64; ac_word=$2
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468$as_echo_n "checking for $ac_word... " >&6; }
9469if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  if test -n "$ac_ct_OTOOL64"; then
9473  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478  IFS=$as_save_IFS
9479  test -z "$as_dir" && as_dir=.
9480    for ac_exec_ext in '' $ac_executable_extensions; do
9481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482    ac_cv_prog_ac_ct_OTOOL64="otool64"
9483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484    break 2
9485  fi
9486done
9487  done
9488IFS=$as_save_IFS
9489
9490fi
9491fi
9492ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9493if test -n "$ac_ct_OTOOL64"; then
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9495$as_echo "$ac_ct_OTOOL64" >&6; }
9496else
9497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498$as_echo "no" >&6; }
9499fi
9500
9501  if test "x$ac_ct_OTOOL64" = x; then
9502    OTOOL64=":"
9503  else
9504    case $cross_compiling:$ac_tool_warned in
9505yes:)
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9508ac_tool_warned=yes ;;
9509esac
9510    OTOOL64=$ac_ct_OTOOL64
9511  fi
9512else
9513  OTOOL64="$ac_cv_prog_OTOOL64"
9514fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9543$as_echo_n "checking for -single_module linker flag... " >&6; }
9544if ${lt_cv_apple_cc_single_mod+:} false; then :
9545  $as_echo_n "(cached) " >&6
9546else
9547  lt_cv_apple_cc_single_mod=no
9548      if test -z "${LT_MULTI_MODULE}"; then
9549	# By default we will add the -single_module flag. You can override
9550	# by either setting the environment variable LT_MULTI_MODULE
9551	# non-empty at configure time, or by adding -multi_module to the
9552	# link flags.
9553	rm -rf libconftest.dylib*
9554	echo "int foo(void){return 1;}" > conftest.c
9555	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9556-dynamiclib -Wl,-single_module conftest.c" >&5
9557	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9558	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9559        _lt_result=$?
9560	# If there is a non-empty error log, and "single_module"
9561	# appears in it, assume the flag caused a linker warning
9562        if test -s conftest.err && $GREP single_module conftest.err; then
9563	  cat conftest.err >&5
9564	# Otherwise, if the output was created with a 0 exit code from
9565	# the compiler, it worked.
9566	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9567	  lt_cv_apple_cc_single_mod=yes
9568	else
9569	  cat conftest.err >&5
9570	fi
9571	rm -rf libconftest.dylib*
9572	rm -f conftest.*
9573      fi
9574fi
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9576$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9577
9578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9579$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9580if ${lt_cv_ld_exported_symbols_list+:} false; then :
9581  $as_echo_n "(cached) " >&6
9582else
9583  lt_cv_ld_exported_symbols_list=no
9584      save_LDFLAGS=$LDFLAGS
9585      echo "_main" > conftest.sym
9586      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9587      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h.  */
9589
9590int
9591main ()
9592{
9593
9594  ;
9595  return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"; then :
9599  lt_cv_ld_exported_symbols_list=yes
9600else
9601  lt_cv_ld_exported_symbols_list=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604    conftest$ac_exeext conftest.$ac_ext
9605	LDFLAGS="$save_LDFLAGS"
9606
9607fi
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9609$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9610
9611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9612$as_echo_n "checking for -force_load linker flag... " >&6; }
9613if ${lt_cv_ld_force_load+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  lt_cv_ld_force_load=no
9617      cat > conftest.c << _LT_EOF
9618int forced_loaded() { return 2;}
9619_LT_EOF
9620      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9621      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9622      echo "$AR cru libconftest.a conftest.o" >&5
9623      $AR cru libconftest.a conftest.o 2>&5
9624      echo "$RANLIB libconftest.a" >&5
9625      $RANLIB libconftest.a 2>&5
9626      cat > conftest.c << _LT_EOF
9627int main() { return 0;}
9628_LT_EOF
9629      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9630      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9631      _lt_result=$?
9632      if test -s conftest.err && $GREP force_load conftest.err; then
9633	cat conftest.err >&5
9634      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9635	lt_cv_ld_force_load=yes
9636      else
9637	cat conftest.err >&5
9638      fi
9639        rm -f conftest.err libconftest.a conftest conftest.c
9640        rm -rf conftest.dSYM
9641
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9644$as_echo "$lt_cv_ld_force_load" >&6; }
9645    case $host_os in
9646    rhapsody* | darwin1.[012])
9647      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9648    darwin1.*)
9649      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9650    darwin*) # darwin 5.x on
9651      # if running on 10.5 or later, the deployment target defaults
9652      # to the OS version, if on x86, and 10.4, the deployment
9653      # target defaults to 10.4. Don't you love it?
9654      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9655	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9656	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9657	10.[012]*)
9658	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9659	10.*)
9660	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9661      esac
9662    ;;
9663  esac
9664    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9665      _lt_dar_single_mod='$single_module'
9666    fi
9667    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9668      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9669    else
9670      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9671    fi
9672    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9673      _lt_dsymutil='~$DSYMUTIL $lib || :'
9674    else
9675      _lt_dsymutil=
9676    fi
9677    ;;
9678  esac
9679
9680for ac_header in dlfcn.h
9681do :
9682  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9683"
9684if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9685  cat >>confdefs.h <<_ACEOF
9686#define HAVE_DLFCN_H 1
9687_ACEOF
9688
9689fi
9690
9691done
9692
9693
9694
9695func_stripname_cnf ()
9696{
9697  case ${2} in
9698  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9699  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9700  esac
9701} # func_stripname_cnf
9702
9703
9704
9705
9706
9707# Set options
9708
9709
9710
9711        enable_dlopen=no
9712
9713
9714
9715            # Check whether --enable-shared was given.
9716if test "${enable_shared+set}" = set; then :
9717  enableval=$enable_shared; p=${PACKAGE-default}
9718    case $enableval in
9719    yes) enable_shared=yes ;;
9720    no) enable_shared=no ;;
9721    *)
9722      enable_shared=no
9723      # Look at the argument we got.  We use all the common list separators.
9724      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725      for pkg in $enableval; do
9726	IFS="$lt_save_ifs"
9727	if test "X$pkg" = "X$p"; then
9728	  enable_shared=yes
9729	fi
9730      done
9731      IFS="$lt_save_ifs"
9732      ;;
9733    esac
9734else
9735  enable_shared=yes
9736fi
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746  # Check whether --enable-static was given.
9747if test "${enable_static+set}" = set; then :
9748  enableval=$enable_static; p=${PACKAGE-default}
9749    case $enableval in
9750    yes) enable_static=yes ;;
9751    no) enable_static=no ;;
9752    *)
9753     enable_static=no
9754      # Look at the argument we got.  We use all the common list separators.
9755      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756      for pkg in $enableval; do
9757	IFS="$lt_save_ifs"
9758	if test "X$pkg" = "X$p"; then
9759	  enable_static=yes
9760	fi
9761      done
9762      IFS="$lt_save_ifs"
9763      ;;
9764    esac
9765else
9766  enable_static=yes
9767fi
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778# Check whether --with-pic was given.
9779if test "${with_pic+set}" = set; then :
9780  withval=$with_pic; lt_p=${PACKAGE-default}
9781    case $withval in
9782    yes|no) pic_mode=$withval ;;
9783    *)
9784      pic_mode=default
9785      # Look at the argument we got.  We use all the common list separators.
9786      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787      for lt_pkg in $withval; do
9788	IFS="$lt_save_ifs"
9789	if test "X$lt_pkg" = "X$lt_p"; then
9790	  pic_mode=yes
9791	fi
9792      done
9793      IFS="$lt_save_ifs"
9794      ;;
9795    esac
9796else
9797  pic_mode=default
9798fi
9799
9800
9801test -z "$pic_mode" && pic_mode=default
9802
9803
9804
9805
9806
9807
9808
9809  # Check whether --enable-fast-install was given.
9810if test "${enable_fast_install+set}" = set; then :
9811  enableval=$enable_fast_install; p=${PACKAGE-default}
9812    case $enableval in
9813    yes) enable_fast_install=yes ;;
9814    no) enable_fast_install=no ;;
9815    *)
9816      enable_fast_install=no
9817      # Look at the argument we got.  We use all the common list separators.
9818      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819      for pkg in $enableval; do
9820	IFS="$lt_save_ifs"
9821	if test "X$pkg" = "X$p"; then
9822	  enable_fast_install=yes
9823	fi
9824      done
9825      IFS="$lt_save_ifs"
9826      ;;
9827    esac
9828else
9829  enable_fast_install=yes
9830fi
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842# This can be used to rebuild libtool when needed
9843LIBTOOL_DEPS="$ltmain"
9844
9845# Always use our own libtool.
9846LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877test -z "$LN_S" && LN_S="ln -s"
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892if test -n "${ZSH_VERSION+set}" ; then
9893   setopt NO_GLOB_SUBST
9894fi
9895
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9897$as_echo_n "checking for objdir... " >&6; }
9898if ${lt_cv_objdir+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  rm -f .libs 2>/dev/null
9902mkdir .libs 2>/dev/null
9903if test -d .libs; then
9904  lt_cv_objdir=.libs
9905else
9906  # MS-DOS does not allow filenames that begin with a dot.
9907  lt_cv_objdir=_libs
9908fi
9909rmdir .libs 2>/dev/null
9910fi
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9912$as_echo "$lt_cv_objdir" >&6; }
9913objdir=$lt_cv_objdir
9914
9915
9916
9917
9918
9919cat >>confdefs.h <<_ACEOF
9920#define LT_OBJDIR "$lt_cv_objdir/"
9921_ACEOF
9922
9923
9924
9925
9926case $host_os in
9927aix3*)
9928  # AIX sometimes has problems with the GCC collect2 program.  For some
9929  # reason, if we set the COLLECT_NAMES environment variable, the problems
9930  # vanish in a puff of smoke.
9931  if test "X${COLLECT_NAMES+set}" != Xset; then
9932    COLLECT_NAMES=
9933    export COLLECT_NAMES
9934  fi
9935  ;;
9936esac
9937
9938# Global variables:
9939ofile=libtool
9940can_build_shared=yes
9941
9942# All known linkers require a `.a' archive for static linking (except MSVC,
9943# which needs '.lib').
9944libext=a
9945
9946with_gnu_ld="$lt_cv_prog_gnu_ld"
9947
9948old_CC="$CC"
9949old_CFLAGS="$CFLAGS"
9950
9951# Set sane defaults for various variables
9952test -z "$CC" && CC=cc
9953test -z "$LTCC" && LTCC=$CC
9954test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9955test -z "$LD" && LD=ld
9956test -z "$ac_objext" && ac_objext=o
9957
9958for cc_temp in $compiler""; do
9959  case $cc_temp in
9960    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9961    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9962    \-*) ;;
9963    *) break;;
9964  esac
9965done
9966cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9967
9968
9969# Only perform the check for file, if the check method requires it
9970test -z "$MAGIC_CMD" && MAGIC_CMD=file
9971case $deplibs_check_method in
9972file_magic*)
9973  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9975$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9976if ${lt_cv_path_MAGIC_CMD+:} false; then :
9977  $as_echo_n "(cached) " >&6
9978else
9979  case $MAGIC_CMD in
9980[\\/*] |  ?:[\\/]*)
9981  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9982  ;;
9983*)
9984  lt_save_MAGIC_CMD="$MAGIC_CMD"
9985  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9986  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9987  for ac_dir in $ac_dummy; do
9988    IFS="$lt_save_ifs"
9989    test -z "$ac_dir" && ac_dir=.
9990    if test -f $ac_dir/${ac_tool_prefix}file; then
9991      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9992      if test -n "$file_magic_test_file"; then
9993	case $deplibs_check_method in
9994	"file_magic "*)
9995	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9996	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9997	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9998	    $EGREP "$file_magic_regex" > /dev/null; then
9999	    :
10000	  else
10001	    cat <<_LT_EOF 1>&2
10002
10003*** Warning: the command libtool uses to detect shared libraries,
10004*** $file_magic_cmd, produces output that libtool cannot recognize.
10005*** The result is that libtool may fail to recognize shared libraries
10006*** as such.  This will affect the creation of libtool libraries that
10007*** depend on shared libraries, but programs linked with such libtool
10008*** libraries will work regardless of this problem.  Nevertheless, you
10009*** may want to report the problem to your system manager and/or to
10010*** bug-libtool@gnu.org
10011
10012_LT_EOF
10013	  fi ;;
10014	esac
10015      fi
10016      break
10017    fi
10018  done
10019  IFS="$lt_save_ifs"
10020  MAGIC_CMD="$lt_save_MAGIC_CMD"
10021  ;;
10022esac
10023fi
10024
10025MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10026if test -n "$MAGIC_CMD"; then
10027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10028$as_echo "$MAGIC_CMD" >&6; }
10029else
10030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032fi
10033
10034
10035
10036
10037
10038if test -z "$lt_cv_path_MAGIC_CMD"; then
10039  if test -n "$ac_tool_prefix"; then
10040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10041$as_echo_n "checking for file... " >&6; }
10042if ${lt_cv_path_MAGIC_CMD+:} false; then :
10043  $as_echo_n "(cached) " >&6
10044else
10045  case $MAGIC_CMD in
10046[\\/*] |  ?:[\\/]*)
10047  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10048  ;;
10049*)
10050  lt_save_MAGIC_CMD="$MAGIC_CMD"
10051  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10052  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10053  for ac_dir in $ac_dummy; do
10054    IFS="$lt_save_ifs"
10055    test -z "$ac_dir" && ac_dir=.
10056    if test -f $ac_dir/file; then
10057      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10058      if test -n "$file_magic_test_file"; then
10059	case $deplibs_check_method in
10060	"file_magic "*)
10061	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10062	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10063	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10064	    $EGREP "$file_magic_regex" > /dev/null; then
10065	    :
10066	  else
10067	    cat <<_LT_EOF 1>&2
10068
10069*** Warning: the command libtool uses to detect shared libraries,
10070*** $file_magic_cmd, produces output that libtool cannot recognize.
10071*** The result is that libtool may fail to recognize shared libraries
10072*** as such.  This will affect the creation of libtool libraries that
10073*** depend on shared libraries, but programs linked with such libtool
10074*** libraries will work regardless of this problem.  Nevertheless, you
10075*** may want to report the problem to your system manager and/or to
10076*** bug-libtool@gnu.org
10077
10078_LT_EOF
10079	  fi ;;
10080	esac
10081      fi
10082      break
10083    fi
10084  done
10085  IFS="$lt_save_ifs"
10086  MAGIC_CMD="$lt_save_MAGIC_CMD"
10087  ;;
10088esac
10089fi
10090
10091MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10092if test -n "$MAGIC_CMD"; then
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10094$as_echo "$MAGIC_CMD" >&6; }
10095else
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
10098fi
10099
10100
10101  else
10102    MAGIC_CMD=:
10103  fi
10104fi
10105
10106  fi
10107  ;;
10108esac
10109
10110# Use C for the default configuration in the libtool script
10111
10112lt_save_CC="$CC"
10113ac_ext=c
10114ac_cpp='$CPP $CPPFLAGS'
10115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10117ac_compiler_gnu=$ac_cv_c_compiler_gnu
10118
10119
10120# Source file extension for C test sources.
10121ac_ext=c
10122
10123# Object file extension for compiled C test sources.
10124objext=o
10125objext=$objext
10126
10127# Code to be used in simple compile tests
10128lt_simple_compile_test_code="int some_variable = 0;"
10129
10130# Code to be used in simple link tests
10131lt_simple_link_test_code='int main(){return(0);}'
10132
10133
10134
10135
10136
10137
10138
10139# If no C compiler was specified, use CC.
10140LTCC=${LTCC-"$CC"}
10141
10142# If no C compiler flags were specified, use CFLAGS.
10143LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10144
10145# Allow CC to be a program name with arguments.
10146compiler=$CC
10147
10148# Save the default compiler, since it gets overwritten when the other
10149# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10150compiler_DEFAULT=$CC
10151
10152# save warnings/boilerplate of simple test code
10153ac_outfile=conftest.$ac_objext
10154echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10156_lt_compiler_boilerplate=`cat conftest.err`
10157$RM conftest*
10158
10159ac_outfile=conftest.$ac_objext
10160echo "$lt_simple_link_test_code" >conftest.$ac_ext
10161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10162_lt_linker_boilerplate=`cat conftest.err`
10163$RM -r conftest*
10164
10165
10166## CAVEAT EMPTOR:
10167## There is no encapsulation within the following macros, do not change
10168## the running order or otherwise move them around unless you know exactly
10169## what you are doing...
10170if test -n "$compiler"; then
10171
10172lt_prog_compiler_no_builtin_flag=
10173
10174if test "$GCC" = yes; then
10175  case $cc_basename in
10176  nvcc*)
10177    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10178  *)
10179    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10180  esac
10181
10182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10183$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10184if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10185  $as_echo_n "(cached) " >&6
10186else
10187  lt_cv_prog_compiler_rtti_exceptions=no
10188   ac_outfile=conftest.$ac_objext
10189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10190   lt_compiler_flag="-fno-rtti -fno-exceptions"
10191   # Insert the option either (1) after the last *FLAGS variable, or
10192   # (2) before a word containing "conftest.", or (3) at the end.
10193   # Note that $ac_compile itself does not contain backslashes and begins
10194   # with a dollar sign (not a hyphen), so the echo should work correctly.
10195   # The option is referenced via a variable to avoid confusing sed.
10196   lt_compile=`echo "$ac_compile" | $SED \
10197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10199   -e 's:$: $lt_compiler_flag:'`
10200   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10201   (eval "$lt_compile" 2>conftest.err)
10202   ac_status=$?
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   if (exit $ac_status) && test -s "$ac_outfile"; then
10206     # The compiler can only warn and ignore the option if not recognized
10207     # So say no if there are warnings other than the usual output.
10208     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10209     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10211       lt_cv_prog_compiler_rtti_exceptions=yes
10212     fi
10213   fi
10214   $RM conftest*
10215
10216fi
10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10218$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10219
10220if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10221    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10222else
10223    :
10224fi
10225
10226fi
10227
10228
10229
10230
10231
10232
10233  lt_prog_compiler_wl=
10234lt_prog_compiler_pic=
10235lt_prog_compiler_static=
10236
10237
10238  if test "$GCC" = yes; then
10239    lt_prog_compiler_wl='-Wl,'
10240    lt_prog_compiler_static='-static'
10241
10242    case $host_os in
10243      aix*)
10244      # All AIX code is PIC.
10245      if test "$host_cpu" = ia64; then
10246	# AIX 5 now supports IA64 processor
10247	lt_prog_compiler_static='-Bstatic'
10248      fi
10249      ;;
10250
10251    amigaos*)
10252      case $host_cpu in
10253      powerpc)
10254            # see comment about AmigaOS4 .so support
10255            lt_prog_compiler_pic='-fPIC'
10256        ;;
10257      m68k)
10258            # FIXME: we need at least 68020 code to build shared libraries, but
10259            # adding the `-m68020' flag to GCC prevents building anything better,
10260            # like `-m68040'.
10261            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10262        ;;
10263      esac
10264      ;;
10265
10266    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10267      # PIC is the default for these OSes.
10268      ;;
10269
10270    mingw* | cygwin* | pw32* | os2* | cegcc*)
10271      # This hack is so that the source file can tell whether it is being
10272      # built for inclusion in a dll (and should export symbols for example).
10273      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10274      # (--disable-auto-import) libraries
10275      lt_prog_compiler_pic='-DDLL_EXPORT'
10276      ;;
10277
10278    darwin* | rhapsody*)
10279      # PIC is the default on this platform
10280      # Common symbols not allowed in MH_DYLIB files
10281      lt_prog_compiler_pic='-fno-common'
10282      ;;
10283
10284    haiku*)
10285      # PIC is the default for Haiku.
10286      # The "-static" flag exists, but is broken.
10287      lt_prog_compiler_static=
10288      ;;
10289
10290    hpux*)
10291      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10292      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10293      # sets the default TLS model and affects inlining.
10294      case $host_cpu in
10295      hppa*64*)
10296	# +Z the default
10297	;;
10298      *)
10299	lt_prog_compiler_pic='-fPIC'
10300	;;
10301      esac
10302      ;;
10303
10304    interix[3-9]*)
10305      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10306      # Instead, we relocate shared libraries at runtime.
10307      ;;
10308
10309    msdosdjgpp*)
10310      # Just because we use GCC doesn't mean we suddenly get shared libraries
10311      # on systems that don't support them.
10312      lt_prog_compiler_can_build_shared=no
10313      enable_shared=no
10314      ;;
10315
10316    *nto* | *qnx*)
10317      # QNX uses GNU C++, but need to define -shared option too, otherwise
10318      # it will coredump.
10319      lt_prog_compiler_pic='-fPIC -shared'
10320      ;;
10321
10322    sysv4*MP*)
10323      if test -d /usr/nec; then
10324	lt_prog_compiler_pic=-Kconform_pic
10325      fi
10326      ;;
10327
10328    *)
10329      lt_prog_compiler_pic='-fPIC'
10330      ;;
10331    esac
10332
10333    case $cc_basename in
10334    nvcc*) # Cuda Compiler Driver 2.2
10335      lt_prog_compiler_wl='-Xlinker '
10336      if test -n "$lt_prog_compiler_pic"; then
10337        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10338      fi
10339      ;;
10340    esac
10341  else
10342    # PORTME Check for flag to pass linker flags through the system compiler.
10343    case $host_os in
10344    aix*)
10345      lt_prog_compiler_wl='-Wl,'
10346      if test "$host_cpu" = ia64; then
10347	# AIX 5 now supports IA64 processor
10348	lt_prog_compiler_static='-Bstatic'
10349      else
10350	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10351      fi
10352      ;;
10353
10354    mingw* | cygwin* | pw32* | os2* | cegcc*)
10355      # This hack is so that the source file can tell whether it is being
10356      # built for inclusion in a dll (and should export symbols for example).
10357      lt_prog_compiler_pic='-DDLL_EXPORT'
10358      ;;
10359
10360    hpux9* | hpux10* | hpux11*)
10361      lt_prog_compiler_wl='-Wl,'
10362      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10363      # not for PA HP-UX.
10364      case $host_cpu in
10365      hppa*64*|ia64*)
10366	# +Z the default
10367	;;
10368      *)
10369	lt_prog_compiler_pic='+Z'
10370	;;
10371      esac
10372      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10373      lt_prog_compiler_static='${wl}-a ${wl}archive'
10374      ;;
10375
10376    irix5* | irix6* | nonstopux*)
10377      lt_prog_compiler_wl='-Wl,'
10378      # PIC (with -KPIC) is the default.
10379      lt_prog_compiler_static='-non_shared'
10380      ;;
10381
10382    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10383      case $cc_basename in
10384      # old Intel for x86_64 which still supported -KPIC.
10385      ecc*)
10386	lt_prog_compiler_wl='-Wl,'
10387	lt_prog_compiler_pic='-KPIC'
10388	lt_prog_compiler_static='-static'
10389        ;;
10390      # icc used to be incompatible with GCC.
10391      # ICC 10 doesn't accept -KPIC any more.
10392      icc* | ifort*)
10393	lt_prog_compiler_wl='-Wl,'
10394	lt_prog_compiler_pic='-fPIC'
10395	lt_prog_compiler_static='-static'
10396        ;;
10397      # Lahey Fortran 8.1.
10398      lf95*)
10399	lt_prog_compiler_wl='-Wl,'
10400	lt_prog_compiler_pic='--shared'
10401	lt_prog_compiler_static='--static'
10402	;;
10403      nagfor*)
10404	# NAG Fortran compiler
10405	lt_prog_compiler_wl='-Wl,-Wl,,'
10406	lt_prog_compiler_pic='-PIC'
10407	lt_prog_compiler_static='-Bstatic'
10408	;;
10409      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10410        # Portland Group compilers (*not* the Pentium gcc compiler,
10411	# which looks to be a dead project)
10412	lt_prog_compiler_wl='-Wl,'
10413	lt_prog_compiler_pic='-fpic'
10414	lt_prog_compiler_static='-Bstatic'
10415        ;;
10416      ccc*)
10417        lt_prog_compiler_wl='-Wl,'
10418        # All Alpha code is PIC.
10419        lt_prog_compiler_static='-non_shared'
10420        ;;
10421      xl* | bgxl* | bgf* | mpixl*)
10422	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10423	lt_prog_compiler_wl='-Wl,'
10424	lt_prog_compiler_pic='-qpic'
10425	lt_prog_compiler_static='-qstaticlink'
10426	;;
10427      *)
10428	case `$CC -V 2>&1 | sed 5q` in
10429	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10430	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10431	  lt_prog_compiler_pic='-KPIC'
10432	  lt_prog_compiler_static='-Bstatic'
10433	  lt_prog_compiler_wl=''
10434	  ;;
10435	*Sun\ F* | *Sun*Fortran*)
10436	  lt_prog_compiler_pic='-KPIC'
10437	  lt_prog_compiler_static='-Bstatic'
10438	  lt_prog_compiler_wl='-Qoption ld '
10439	  ;;
10440	*Sun\ C*)
10441	  # Sun C 5.9
10442	  lt_prog_compiler_pic='-KPIC'
10443	  lt_prog_compiler_static='-Bstatic'
10444	  lt_prog_compiler_wl='-Wl,'
10445	  ;;
10446        *Intel*\ [CF]*Compiler*)
10447	  lt_prog_compiler_wl='-Wl,'
10448	  lt_prog_compiler_pic='-fPIC'
10449	  lt_prog_compiler_static='-static'
10450	  ;;
10451	*Portland\ Group*)
10452	  lt_prog_compiler_wl='-Wl,'
10453	  lt_prog_compiler_pic='-fpic'
10454	  lt_prog_compiler_static='-Bstatic'
10455	  ;;
10456	esac
10457	;;
10458      esac
10459      ;;
10460
10461    newsos6)
10462      lt_prog_compiler_pic='-KPIC'
10463      lt_prog_compiler_static='-Bstatic'
10464      ;;
10465
10466    *nto* | *qnx*)
10467      # QNX uses GNU C++, but need to define -shared option too, otherwise
10468      # it will coredump.
10469      lt_prog_compiler_pic='-fPIC -shared'
10470      ;;
10471
10472    osf3* | osf4* | osf5*)
10473      lt_prog_compiler_wl='-Wl,'
10474      # All OSF/1 code is PIC.
10475      lt_prog_compiler_static='-non_shared'
10476      ;;
10477
10478    rdos*)
10479      lt_prog_compiler_static='-non_shared'
10480      ;;
10481
10482    solaris*)
10483      lt_prog_compiler_pic='-KPIC'
10484      lt_prog_compiler_static='-Bstatic'
10485      case $cc_basename in
10486      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10487	lt_prog_compiler_wl='-Qoption ld ';;
10488      *)
10489	lt_prog_compiler_wl='-Wl,';;
10490      esac
10491      ;;
10492
10493    sunos4*)
10494      lt_prog_compiler_wl='-Qoption ld '
10495      lt_prog_compiler_pic='-PIC'
10496      lt_prog_compiler_static='-Bstatic'
10497      ;;
10498
10499    sysv4 | sysv4.2uw2* | sysv4.3*)
10500      lt_prog_compiler_wl='-Wl,'
10501      lt_prog_compiler_pic='-KPIC'
10502      lt_prog_compiler_static='-Bstatic'
10503      ;;
10504
10505    sysv4*MP*)
10506      if test -d /usr/nec ;then
10507	lt_prog_compiler_pic='-Kconform_pic'
10508	lt_prog_compiler_static='-Bstatic'
10509      fi
10510      ;;
10511
10512    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10513      lt_prog_compiler_wl='-Wl,'
10514      lt_prog_compiler_pic='-KPIC'
10515      lt_prog_compiler_static='-Bstatic'
10516      ;;
10517
10518    unicos*)
10519      lt_prog_compiler_wl='-Wl,'
10520      lt_prog_compiler_can_build_shared=no
10521      ;;
10522
10523    uts4*)
10524      lt_prog_compiler_pic='-pic'
10525      lt_prog_compiler_static='-Bstatic'
10526      ;;
10527
10528    *)
10529      lt_prog_compiler_can_build_shared=no
10530      ;;
10531    esac
10532  fi
10533
10534case $host_os in
10535  # For platforms which do not support PIC, -DPIC is meaningless:
10536  *djgpp*)
10537    lt_prog_compiler_pic=
10538    ;;
10539  *)
10540    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10541    ;;
10542esac
10543
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10545$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10546if ${lt_cv_prog_compiler_pic+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10552$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10553lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10554
10555#
10556# Check to make sure the PIC flag actually works.
10557#
10558if test -n "$lt_prog_compiler_pic"; then
10559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10560$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10561if ${lt_cv_prog_compiler_pic_works+:} false; then :
10562  $as_echo_n "(cached) " >&6
10563else
10564  lt_cv_prog_compiler_pic_works=no
10565   ac_outfile=conftest.$ac_objext
10566   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10567   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10568   # Insert the option either (1) after the last *FLAGS variable, or
10569   # (2) before a word containing "conftest.", or (3) at the end.
10570   # Note that $ac_compile itself does not contain backslashes and begins
10571   # with a dollar sign (not a hyphen), so the echo should work correctly.
10572   # The option is referenced via a variable to avoid confusing sed.
10573   lt_compile=`echo "$ac_compile" | $SED \
10574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10576   -e 's:$: $lt_compiler_flag:'`
10577   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10578   (eval "$lt_compile" 2>conftest.err)
10579   ac_status=$?
10580   cat conftest.err >&5
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   if (exit $ac_status) && test -s "$ac_outfile"; then
10583     # The compiler can only warn and ignore the option if not recognized
10584     # So say no if there are warnings other than the usual output.
10585     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10586     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10587     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10588       lt_cv_prog_compiler_pic_works=yes
10589     fi
10590   fi
10591   $RM conftest*
10592
10593fi
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10595$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10596
10597if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10598    case $lt_prog_compiler_pic in
10599     "" | " "*) ;;
10600     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10601     esac
10602else
10603    lt_prog_compiler_pic=
10604     lt_prog_compiler_can_build_shared=no
10605fi
10606
10607fi
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619#
10620# Check to make sure the static flag actually works.
10621#
10622wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10625if ${lt_cv_prog_compiler_static_works+:} false; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  lt_cv_prog_compiler_static_works=no
10629   save_LDFLAGS="$LDFLAGS"
10630   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10631   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633     # The linker can only warn and ignore the option if not recognized
10634     # So say no if there are warnings
10635     if test -s conftest.err; then
10636       # Append any errors to the config.log.
10637       cat conftest.err 1>&5
10638       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640       if diff conftest.exp conftest.er2 >/dev/null; then
10641         lt_cv_prog_compiler_static_works=yes
10642       fi
10643     else
10644       lt_cv_prog_compiler_static_works=yes
10645     fi
10646   fi
10647   $RM -r conftest*
10648   LDFLAGS="$save_LDFLAGS"
10649
10650fi
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10652$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10653
10654if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10655    :
10656else
10657    lt_prog_compiler_static=
10658fi
10659
10660
10661
10662
10663
10664
10665
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668if ${lt_cv_prog_compiler_c_o+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671  lt_cv_prog_compiler_c_o=no
10672   $RM -r conftest 2>/dev/null
10673   mkdir conftest
10674   cd conftest
10675   mkdir out
10676   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10677
10678   lt_compiler_flag="-o out/conftest2.$ac_objext"
10679   # Insert the option either (1) after the last *FLAGS variable, or
10680   # (2) before a word containing "conftest.", or (3) at the end.
10681   # Note that $ac_compile itself does not contain backslashes and begins
10682   # with a dollar sign (not a hyphen), so the echo should work correctly.
10683   lt_compile=`echo "$ac_compile" | $SED \
10684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10686   -e 's:$: $lt_compiler_flag:'`
10687   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10688   (eval "$lt_compile" 2>out/conftest.err)
10689   ac_status=$?
10690   cat out/conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10693   then
10694     # The compiler can only warn and ignore the option if not recognized
10695     # So say no if there are warnings
10696     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10697     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10698     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10699       lt_cv_prog_compiler_c_o=yes
10700     fi
10701   fi
10702   chmod u+w . 2>&5
10703   $RM conftest*
10704   # SGI C++ compiler will create directory out/ii_files/ for
10705   # template instantiation
10706   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10707   $RM out/* && rmdir out
10708   cd ..
10709   $RM -r conftest
10710   $RM conftest*
10711
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10714$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10715
10716
10717
10718
10719
10720
10721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10722$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10723if ${lt_cv_prog_compiler_c_o+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  lt_cv_prog_compiler_c_o=no
10727   $RM -r conftest 2>/dev/null
10728   mkdir conftest
10729   cd conftest
10730   mkdir out
10731   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10732
10733   lt_compiler_flag="-o out/conftest2.$ac_objext"
10734   # Insert the option either (1) after the last *FLAGS variable, or
10735   # (2) before a word containing "conftest.", or (3) at the end.
10736   # Note that $ac_compile itself does not contain backslashes and begins
10737   # with a dollar sign (not a hyphen), so the echo should work correctly.
10738   lt_compile=`echo "$ac_compile" | $SED \
10739   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741   -e 's:$: $lt_compiler_flag:'`
10742   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10743   (eval "$lt_compile" 2>out/conftest.err)
10744   ac_status=$?
10745   cat out/conftest.err >&5
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10748   then
10749     # The compiler can only warn and ignore the option if not recognized
10750     # So say no if there are warnings
10751     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10752     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10753     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10754       lt_cv_prog_compiler_c_o=yes
10755     fi
10756   fi
10757   chmod u+w . 2>&5
10758   $RM conftest*
10759   # SGI C++ compiler will create directory out/ii_files/ for
10760   # template instantiation
10761   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10762   $RM out/* && rmdir out
10763   cd ..
10764   $RM -r conftest
10765   $RM conftest*
10766
10767fi
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10769$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10770
10771
10772
10773
10774hard_links="nottested"
10775if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10776  # do not overwrite the value of need_locks provided by the user
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10778$as_echo_n "checking if we can lock with hard links... " >&6; }
10779  hard_links=yes
10780  $RM conftest*
10781  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10782  touch conftest.a
10783  ln conftest.a conftest.b 2>&5 || hard_links=no
10784  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10786$as_echo "$hard_links" >&6; }
10787  if test "$hard_links" = no; then
10788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10789$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10790    need_locks=warn
10791  fi
10792else
10793  need_locks=no
10794fi
10795
10796
10797
10798
10799
10800
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10802$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10803
10804  runpath_var=
10805  allow_undefined_flag=
10806  always_export_symbols=no
10807  archive_cmds=
10808  archive_expsym_cmds=
10809  compiler_needs_object=no
10810  enable_shared_with_static_runtimes=no
10811  export_dynamic_flag_spec=
10812  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10813  hardcode_automatic=no
10814  hardcode_direct=no
10815  hardcode_direct_absolute=no
10816  hardcode_libdir_flag_spec=
10817  hardcode_libdir_separator=
10818  hardcode_minus_L=no
10819  hardcode_shlibpath_var=unsupported
10820  inherit_rpath=no
10821  link_all_deplibs=unknown
10822  module_cmds=
10823  module_expsym_cmds=
10824  old_archive_from_new_cmds=
10825  old_archive_from_expsyms_cmds=
10826  thread_safe_flag_spec=
10827  whole_archive_flag_spec=
10828  # include_expsyms should be a list of space-separated symbols to be *always*
10829  # included in the symbol list
10830  include_expsyms=
10831  # exclude_expsyms can be an extended regexp of symbols to exclude
10832  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10833  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10834  # as well as any symbol that contains `d'.
10835  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10836  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10837  # platforms (ab)use it in PIC code, but their linkers get confused if
10838  # the symbol is explicitly referenced.  Since portable code cannot
10839  # rely on this symbol name, it's probably fine to never include it in
10840  # preloaded symbol tables.
10841  # Exclude shared library initialization/finalization symbols.
10842  extract_expsyms_cmds=
10843
10844  case $host_os in
10845  cygwin* | mingw* | pw32* | cegcc*)
10846    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10847    # When not using gcc, we currently assume that we are using
10848    # Microsoft Visual C++.
10849    if test "$GCC" != yes; then
10850      with_gnu_ld=no
10851    fi
10852    ;;
10853  interix*)
10854    # we just hope/assume this is gcc and not c89 (= MSVC++)
10855    with_gnu_ld=yes
10856    ;;
10857  openbsd*)
10858    with_gnu_ld=no
10859    ;;
10860  esac
10861
10862  ld_shlibs=yes
10863
10864  # On some targets, GNU ld is compatible enough with the native linker
10865  # that we're better off using the native interface for both.
10866  lt_use_gnu_ld_interface=no
10867  if test "$with_gnu_ld" = yes; then
10868    case $host_os in
10869      aix*)
10870	# The AIX port of GNU ld has always aspired to compatibility
10871	# with the native linker.  However, as the warning in the GNU ld
10872	# block says, versions before 2.19.5* couldn't really create working
10873	# shared libraries, regardless of the interface used.
10874	case `$LD -v 2>&1` in
10875	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10876	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10877	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10878	  *)
10879	    lt_use_gnu_ld_interface=yes
10880	    ;;
10881	esac
10882	;;
10883      *)
10884	lt_use_gnu_ld_interface=yes
10885	;;
10886    esac
10887  fi
10888
10889  if test "$lt_use_gnu_ld_interface" = yes; then
10890    # If archive_cmds runs LD, not CC, wlarc should be empty
10891    wlarc='${wl}'
10892
10893    # Set some defaults for GNU ld with shared library support. These
10894    # are reset later if shared libraries are not supported. Putting them
10895    # here allows them to be overridden if necessary.
10896    runpath_var=LD_RUN_PATH
10897    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898    export_dynamic_flag_spec='${wl}--export-dynamic'
10899    # ancient GNU ld didn't support --whole-archive et. al.
10900    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10901      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10902    else
10903      whole_archive_flag_spec=
10904    fi
10905    supports_anon_versioning=no
10906    case `$LD -v 2>&1` in
10907      *GNU\ gold*) supports_anon_versioning=yes ;;
10908      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10909      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10910      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10911      *\ 2.11.*) ;; # other 2.11 versions
10912      *) supports_anon_versioning=yes ;;
10913    esac
10914
10915    # See if GNU ld supports shared libraries.
10916    case $host_os in
10917    aix[3-9]*)
10918      # On AIX/PPC, the GNU linker is very broken
10919      if test "$host_cpu" != ia64; then
10920	ld_shlibs=no
10921	cat <<_LT_EOF 1>&2
10922
10923*** Warning: the GNU linker, at least up to release 2.19, is reported
10924*** to be unable to reliably create shared libraries on AIX.
10925*** Therefore, libtool is disabling shared libraries support.  If you
10926*** really care for shared libraries, you may want to install binutils
10927*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10928*** You will then need to restart the configuration process.
10929
10930_LT_EOF
10931      fi
10932      ;;
10933
10934    amigaos*)
10935      case $host_cpu in
10936      powerpc)
10937            # see comment about AmigaOS4 .so support
10938            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939            archive_expsym_cmds=''
10940        ;;
10941      m68k)
10942            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)'
10943            hardcode_libdir_flag_spec='-L$libdir'
10944            hardcode_minus_L=yes
10945        ;;
10946      esac
10947      ;;
10948
10949    beos*)
10950      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951	allow_undefined_flag=unsupported
10952	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953	# support --undefined.  This deserves some investigation.  FIXME
10954	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10955      else
10956	ld_shlibs=no
10957      fi
10958      ;;
10959
10960    cygwin* | mingw* | pw32* | cegcc*)
10961      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10962      # as there is no search path for DLLs.
10963      hardcode_libdir_flag_spec='-L$libdir'
10964      export_dynamic_flag_spec='${wl}--export-all-symbols'
10965      allow_undefined_flag=unsupported
10966      always_export_symbols=no
10967      enable_shared_with_static_runtimes=yes
10968      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'
10969      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10970
10971      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10972        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10973	# If the export-symbols file already is a .def file (1st line
10974	# is EXPORTS), use it as is; otherwise, prepend...
10975	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10976	  cp $export_symbols $output_objdir/$soname.def;
10977	else
10978	  echo EXPORTS > $output_objdir/$soname.def;
10979	  cat $export_symbols >> $output_objdir/$soname.def;
10980	fi~
10981	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10982      else
10983	ld_shlibs=no
10984      fi
10985      ;;
10986
10987    haiku*)
10988      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989      link_all_deplibs=yes
10990      ;;
10991
10992    interix[3-9]*)
10993      hardcode_direct=no
10994      hardcode_shlibpath_var=no
10995      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10996      export_dynamic_flag_spec='${wl}-E'
10997      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10998      # Instead, shared libraries are loaded at an image base (0x10000000 by
10999      # default) and relocated if they conflict, which is a slow very memory
11000      # consuming and fragmenting process.  To avoid this, we pick a random,
11001      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11002      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11003      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11004      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'
11005      ;;
11006
11007    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11008      tmp_diet=no
11009      if test "$host_os" = linux-dietlibc; then
11010	case $cc_basename in
11011	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11012	esac
11013      fi
11014      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11015	 && test "$tmp_diet" = no
11016      then
11017	tmp_addflag=' $pic_flag'
11018	tmp_sharedflag='-shared'
11019	case $cc_basename,$host_cpu in
11020        pgcc*)				# Portland Group C compiler
11021	  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'
11022	  tmp_addflag=' $pic_flag'
11023	  ;;
11024	pgf77* | pgf90* | pgf95* | pgfortran*)
11025					# Portland Group f77 and f90 compilers
11026	  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'
11027	  tmp_addflag=' $pic_flag -Mnomain' ;;
11028	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11029	  tmp_addflag=' -i_dynamic' ;;
11030	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11031	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11032	ifc* | ifort*)			# Intel Fortran compiler
11033	  tmp_addflag=' -nofor_main' ;;
11034	lf95*)				# Lahey Fortran 8.1
11035	  whole_archive_flag_spec=
11036	  tmp_sharedflag='--shared' ;;
11037	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11038	  tmp_sharedflag='-qmkshrobj'
11039	  tmp_addflag= ;;
11040	nvcc*)	# Cuda Compiler Driver 2.2
11041	  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'
11042	  compiler_needs_object=yes
11043	  ;;
11044	esac
11045	case `$CC -V 2>&1 | sed 5q` in
11046	*Sun\ C*)			# Sun C 5.9
11047	  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'
11048	  compiler_needs_object=yes
11049	  tmp_sharedflag='-G' ;;
11050	*Sun\ F*)			# Sun Fortran 8.3
11051	  tmp_sharedflag='-G' ;;
11052	esac
11053	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11054
11055        if test "x$supports_anon_versioning" = xyes; then
11056          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11057	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11058	    echo "local: *; };" >> $output_objdir/$libname.ver~
11059	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11060        fi
11061
11062	case $cc_basename in
11063	xlf* | bgf* | bgxlf* | mpixlf*)
11064	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11065	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11066	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11068	  if test "x$supports_anon_versioning" = xyes; then
11069	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11070	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071	      echo "local: *; };" >> $output_objdir/$libname.ver~
11072	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11073	  fi
11074	  ;;
11075	esac
11076      else
11077        ld_shlibs=no
11078      fi
11079      ;;
11080
11081    netbsd*)
11082      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11083	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11084	wlarc=
11085      else
11086	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088      fi
11089      ;;
11090
11091    solaris*)
11092      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11093	ld_shlibs=no
11094	cat <<_LT_EOF 1>&2
11095
11096*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11097*** create shared libraries on Solaris systems.  Therefore, libtool
11098*** is disabling shared libraries support.  We urge you to upgrade GNU
11099*** binutils to release 2.9.1 or newer.  Another option is to modify
11100*** your PATH or compiler configuration so that the native linker is
11101*** used, and then restart.
11102
11103_LT_EOF
11104      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11105	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11107      else
11108	ld_shlibs=no
11109      fi
11110      ;;
11111
11112    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11113      case `$LD -v 2>&1` in
11114        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11115	ld_shlibs=no
11116	cat <<_LT_EOF 1>&2
11117
11118*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11119*** reliably create shared libraries on SCO systems.  Therefore, libtool
11120*** is disabling shared libraries support.  We urge you to upgrade GNU
11121*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11122*** your PATH or compiler configuration so that the native linker is
11123*** used, and then restart.
11124
11125_LT_EOF
11126	;;
11127	*)
11128	  # For security reasons, it is highly recommended that you always
11129	  # use absolute paths for naming shared libraries, and exclude the
11130	  # DT_RUNPATH tag from executables and libraries.  But doing so
11131	  # requires that you compile everything twice, which is a pain.
11132	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11134	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11136	  else
11137	    ld_shlibs=no
11138	  fi
11139	;;
11140      esac
11141      ;;
11142
11143    sunos4*)
11144      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11145      wlarc=
11146      hardcode_direct=yes
11147      hardcode_shlibpath_var=no
11148      ;;
11149
11150    *)
11151      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11152	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11154      else
11155	ld_shlibs=no
11156      fi
11157      ;;
11158    esac
11159
11160    if test "$ld_shlibs" = no; then
11161      runpath_var=
11162      hardcode_libdir_flag_spec=
11163      export_dynamic_flag_spec=
11164      whole_archive_flag_spec=
11165    fi
11166  else
11167    # PORTME fill in a description of your system's linker (not GNU ld)
11168    case $host_os in
11169    aix3*)
11170      allow_undefined_flag=unsupported
11171      always_export_symbols=yes
11172      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'
11173      # Note: this linker hardcodes the directories in LIBPATH if there
11174      # are no directories specified by -L.
11175      hardcode_minus_L=yes
11176      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11177	# Neither direct hardcoding nor static linking is supported with a
11178	# broken collect2.
11179	hardcode_direct=unsupported
11180      fi
11181      ;;
11182
11183    aix[4-9]*)
11184      if test "$host_cpu" = ia64; then
11185	# On IA64, the linker does run time linking by default, so we don't
11186	# have to do anything special.
11187	aix_use_runtimelinking=no
11188	exp_sym_flag='-Bexport'
11189	no_entry_flag=""
11190      else
11191	# If we're using GNU nm, then we don't want the "-C" option.
11192	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11193	# Also, AIX nm treats weak defined symbols like other global
11194	# defined symbols, whereas GNU nm marks them as "W".
11195	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11196	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11197	else
11198	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11199	fi
11200	aix_use_runtimelinking=no
11201
11202	# Test if we are trying to use run time linking or normal
11203	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11204	# need to do runtime linking.
11205	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11206	  for ld_flag in $LDFLAGS; do
11207	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11208	    aix_use_runtimelinking=yes
11209	    break
11210	  fi
11211	  done
11212	  ;;
11213	esac
11214
11215	exp_sym_flag='-bexport'
11216	no_entry_flag='-bnoentry'
11217      fi
11218
11219      # When large executables or shared objects are built, AIX ld can
11220      # have problems creating the table of contents.  If linking a library
11221      # or program results in "error TOC overflow" add -mminimal-toc to
11222      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11223      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11224
11225      archive_cmds=''
11226      hardcode_direct=yes
11227      hardcode_direct_absolute=yes
11228      hardcode_libdir_separator=':'
11229      link_all_deplibs=yes
11230      file_list_spec='${wl}-f,'
11231
11232      if test "$GCC" = yes; then
11233	case $host_os in aix4.[012]|aix4.[012].*)
11234	# We only want to do this on AIX 4.2 and lower, the check
11235	# below for broken collect2 doesn't work under 4.3+
11236	  collect2name=`${CC} -print-prog-name=collect2`
11237	  if test -f "$collect2name" &&
11238	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11239	  then
11240	  # We have reworked collect2
11241	  :
11242	  else
11243	  # We have old collect2
11244	  hardcode_direct=unsupported
11245	  # It fails to find uninstalled libraries when the uninstalled
11246	  # path is not listed in the libpath.  Setting hardcode_minus_L
11247	  # to unsupported forces relinking
11248	  hardcode_minus_L=yes
11249	  hardcode_libdir_flag_spec='-L$libdir'
11250	  hardcode_libdir_separator=
11251	  fi
11252	  ;;
11253	esac
11254	shared_flag='-shared'
11255	if test "$aix_use_runtimelinking" = yes; then
11256	  shared_flag="$shared_flag "'${wl}-G'
11257	fi
11258      else
11259	# not using gcc
11260	if test "$host_cpu" = ia64; then
11261	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11262	# chokes on -Wl,-G. The following line is correct:
11263	  shared_flag='-G'
11264	else
11265	  if test "$aix_use_runtimelinking" = yes; then
11266	    shared_flag='${wl}-G'
11267	  else
11268	    shared_flag='${wl}-bM:SRE'
11269	  fi
11270	fi
11271      fi
11272
11273      export_dynamic_flag_spec='${wl}-bexpall'
11274      # It seems that -bexpall does not export symbols beginning with
11275      # underscore (_), so it is better to generate a list of symbols to export.
11276      always_export_symbols=yes
11277      if test "$aix_use_runtimelinking" = yes; then
11278	# Warning - without using the other runtime loading flags (-brtl),
11279	# -berok will link without error, but may produce a broken library.
11280	allow_undefined_flag='-berok'
11281        # Determine the default libpath from the value encoded in an
11282        # empty executable.
11283        if test "${lt_cv_aix_libpath+set}" = set; then
11284  aix_libpath=$lt_cv_aix_libpath
11285else
11286  if ${lt_cv_aix_libpath_+:} false; then :
11287  $as_echo_n "(cached) " >&6
11288else
11289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290/* end confdefs.h.  */
11291
11292int
11293main ()
11294{
11295
11296  ;
11297  return 0;
11298}
11299_ACEOF
11300if ac_fn_c_try_link "$LINENO"; then :
11301
11302  lt_aix_libpath_sed='
11303      /Import File Strings/,/^$/ {
11304	  /^0/ {
11305	      s/^0  *\([^ ]*\) *$/\1/
11306	      p
11307	  }
11308      }'
11309  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11310  # Check for a 64-bit object if we didn't find anything.
11311  if test -z "$lt_cv_aix_libpath_"; then
11312    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11313  fi
11314fi
11315rm -f core conftest.err conftest.$ac_objext \
11316    conftest$ac_exeext conftest.$ac_ext
11317  if test -z "$lt_cv_aix_libpath_"; then
11318    lt_cv_aix_libpath_="/usr/lib:/lib"
11319  fi
11320
11321fi
11322
11323  aix_libpath=$lt_cv_aix_libpath_
11324fi
11325
11326        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11327        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11328      else
11329	if test "$host_cpu" = ia64; then
11330	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11331	  allow_undefined_flag="-z nodefs"
11332	  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"
11333	else
11334	 # Determine the default libpath from the value encoded in an
11335	 # empty executable.
11336	 if test "${lt_cv_aix_libpath+set}" = set; then
11337  aix_libpath=$lt_cv_aix_libpath
11338else
11339  if ${lt_cv_aix_libpath_+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345int
11346main ()
11347{
11348
11349  ;
11350  return 0;
11351}
11352_ACEOF
11353if ac_fn_c_try_link "$LINENO"; then :
11354
11355  lt_aix_libpath_sed='
11356      /Import File Strings/,/^$/ {
11357	  /^0/ {
11358	      s/^0  *\([^ ]*\) *$/\1/
11359	      p
11360	  }
11361      }'
11362  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11363  # Check for a 64-bit object if we didn't find anything.
11364  if test -z "$lt_cv_aix_libpath_"; then
11365    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11366  fi
11367fi
11368rm -f core conftest.err conftest.$ac_objext \
11369    conftest$ac_exeext conftest.$ac_ext
11370  if test -z "$lt_cv_aix_libpath_"; then
11371    lt_cv_aix_libpath_="/usr/lib:/lib"
11372  fi
11373
11374fi
11375
11376  aix_libpath=$lt_cv_aix_libpath_
11377fi
11378
11379	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11380	  # Warning - without using the other run time loading flags,
11381	  # -berok will link without error, but may produce a broken library.
11382	  no_undefined_flag=' ${wl}-bernotok'
11383	  allow_undefined_flag=' ${wl}-berok'
11384	  if test "$with_gnu_ld" = yes; then
11385	    # We only use this code for GNU lds that support --whole-archive.
11386	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11387	  else
11388	    # Exported symbols can be pulled into shared objects from archives
11389	    whole_archive_flag_spec='$convenience'
11390	  fi
11391	  archive_cmds_need_lc=yes
11392	  # This is similar to how AIX traditionally builds its shared libraries.
11393	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11394	fi
11395      fi
11396      ;;
11397
11398    amigaos*)
11399      case $host_cpu in
11400      powerpc)
11401            # see comment about AmigaOS4 .so support
11402            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11403            archive_expsym_cmds=''
11404        ;;
11405      m68k)
11406            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)'
11407            hardcode_libdir_flag_spec='-L$libdir'
11408            hardcode_minus_L=yes
11409        ;;
11410      esac
11411      ;;
11412
11413    bsdi[45]*)
11414      export_dynamic_flag_spec=-rdynamic
11415      ;;
11416
11417    cygwin* | mingw* | pw32* | cegcc*)
11418      # When not using gcc, we currently assume that we are using
11419      # Microsoft Visual C++.
11420      # hardcode_libdir_flag_spec is actually meaningless, as there is
11421      # no search path for DLLs.
11422      case $cc_basename in
11423      cl*)
11424	# Native MSVC
11425	hardcode_libdir_flag_spec=' '
11426	allow_undefined_flag=unsupported
11427	always_export_symbols=yes
11428	file_list_spec='@'
11429	# Tell ltmain to make .lib files, not .a files.
11430	libext=lib
11431	# Tell ltmain to make .dll files, not .so files.
11432	shrext_cmds=".dll"
11433	# FIXME: Setting linknames here is a bad hack.
11434	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11435	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11436	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11437	  else
11438	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11439	  fi~
11440	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11441	  linknames='
11442	# The linker will not automatically build a static lib if we build a DLL.
11443	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11444	enable_shared_with_static_runtimes=yes
11445	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11446	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11447	# Don't use ranlib
11448	old_postinstall_cmds='chmod 644 $oldlib'
11449	postlink_cmds='lt_outputfile="@OUTPUT@"~
11450	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11451	  case $lt_outputfile in
11452	    *.exe|*.EXE) ;;
11453	    *)
11454	      lt_outputfile="$lt_outputfile.exe"
11455	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11456	      ;;
11457	  esac~
11458	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11459	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11460	    $RM "$lt_outputfile.manifest";
11461	  fi'
11462	;;
11463      *)
11464	# Assume MSVC wrapper
11465	hardcode_libdir_flag_spec=' '
11466	allow_undefined_flag=unsupported
11467	# Tell ltmain to make .lib files, not .a files.
11468	libext=lib
11469	# Tell ltmain to make .dll files, not .so files.
11470	shrext_cmds=".dll"
11471	# FIXME: Setting linknames here is a bad hack.
11472	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11473	# The linker will automatically build a .lib file if we build a DLL.
11474	old_archive_from_new_cmds='true'
11475	# FIXME: Should let the user specify the lib program.
11476	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11477	enable_shared_with_static_runtimes=yes
11478	;;
11479      esac
11480      ;;
11481
11482    darwin* | rhapsody*)
11483
11484
11485  archive_cmds_need_lc=no
11486  hardcode_direct=no
11487  hardcode_automatic=yes
11488  hardcode_shlibpath_var=unsupported
11489  if test "$lt_cv_ld_force_load" = "yes"; then
11490    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\"`'
11491
11492  else
11493    whole_archive_flag_spec=''
11494  fi
11495  link_all_deplibs=yes
11496  allow_undefined_flag="$_lt_dar_allow_undefined"
11497  case $cc_basename in
11498     ifort*) _lt_dar_can_shared=yes ;;
11499     *) _lt_dar_can_shared=$GCC ;;
11500  esac
11501  if test "$_lt_dar_can_shared" = "yes"; then
11502    output_verbose_link_cmd=func_echo_all
11503    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11504    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11505    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}"
11506    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}"
11507
11508  else
11509  ld_shlibs=no
11510  fi
11511
11512      ;;
11513
11514    dgux*)
11515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11516      hardcode_libdir_flag_spec='-L$libdir'
11517      hardcode_shlibpath_var=no
11518      ;;
11519
11520    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11521    # support.  Future versions do this automatically, but an explicit c++rt0.o
11522    # does not break anything, and helps significantly (at the cost of a little
11523    # extra space).
11524    freebsd2.2*)
11525      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11526      hardcode_libdir_flag_spec='-R$libdir'
11527      hardcode_direct=yes
11528      hardcode_shlibpath_var=no
11529      ;;
11530
11531    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11532    freebsd2.*)
11533      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11534      hardcode_direct=yes
11535      hardcode_minus_L=yes
11536      hardcode_shlibpath_var=no
11537      ;;
11538
11539    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11540    freebsd* | dragonfly*)
11541      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11542      hardcode_libdir_flag_spec='-R$libdir'
11543      hardcode_direct=yes
11544      hardcode_shlibpath_var=no
11545      ;;
11546
11547    hpux9*)
11548      if test "$GCC" = yes; then
11549	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11550      else
11551	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11552      fi
11553      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11554      hardcode_libdir_separator=:
11555      hardcode_direct=yes
11556
11557      # hardcode_minus_L: Not really in the search PATH,
11558      # but as the default location of the library.
11559      hardcode_minus_L=yes
11560      export_dynamic_flag_spec='${wl}-E'
11561      ;;
11562
11563    hpux10*)
11564      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11565	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11566      else
11567	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11568      fi
11569      if test "$with_gnu_ld" = no; then
11570	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11571	hardcode_libdir_separator=:
11572	hardcode_direct=yes
11573	hardcode_direct_absolute=yes
11574	export_dynamic_flag_spec='${wl}-E'
11575	# hardcode_minus_L: Not really in the search PATH,
11576	# but as the default location of the library.
11577	hardcode_minus_L=yes
11578      fi
11579      ;;
11580
11581    hpux11*)
11582      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11583	case $host_cpu in
11584	hppa*64*)
11585	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11586	  ;;
11587	ia64*)
11588	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11589	  ;;
11590	*)
11591	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11592	  ;;
11593	esac
11594      else
11595	case $host_cpu in
11596	hppa*64*)
11597	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11598	  ;;
11599	ia64*)
11600	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11601	  ;;
11602	*)
11603
11604	  # Older versions of the 11.00 compiler do not understand -b yet
11605	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11606	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11607$as_echo_n "checking if $CC understands -b... " >&6; }
11608if ${lt_cv_prog_compiler__b+:} false; then :
11609  $as_echo_n "(cached) " >&6
11610else
11611  lt_cv_prog_compiler__b=no
11612   save_LDFLAGS="$LDFLAGS"
11613   LDFLAGS="$LDFLAGS -b"
11614   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11615   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11616     # The linker can only warn and ignore the option if not recognized
11617     # So say no if there are warnings
11618     if test -s conftest.err; then
11619       # Append any errors to the config.log.
11620       cat conftest.err 1>&5
11621       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11622       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11623       if diff conftest.exp conftest.er2 >/dev/null; then
11624         lt_cv_prog_compiler__b=yes
11625       fi
11626     else
11627       lt_cv_prog_compiler__b=yes
11628     fi
11629   fi
11630   $RM -r conftest*
11631   LDFLAGS="$save_LDFLAGS"
11632
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11635$as_echo "$lt_cv_prog_compiler__b" >&6; }
11636
11637if test x"$lt_cv_prog_compiler__b" = xyes; then
11638    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11639else
11640    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11641fi
11642
11643	  ;;
11644	esac
11645      fi
11646      if test "$with_gnu_ld" = no; then
11647	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11648	hardcode_libdir_separator=:
11649
11650	case $host_cpu in
11651	hppa*64*|ia64*)
11652	  hardcode_direct=no
11653	  hardcode_shlibpath_var=no
11654	  ;;
11655	*)
11656	  hardcode_direct=yes
11657	  hardcode_direct_absolute=yes
11658	  export_dynamic_flag_spec='${wl}-E'
11659
11660	  # hardcode_minus_L: Not really in the search PATH,
11661	  # but as the default location of the library.
11662	  hardcode_minus_L=yes
11663	  ;;
11664	esac
11665      fi
11666      ;;
11667
11668    irix5* | irix6* | nonstopux*)
11669      if test "$GCC" = yes; then
11670	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'
11671	# Try to use the -exported_symbol ld option, if it does not
11672	# work, assume that -exports_file does not work either and
11673	# implicitly export all symbols.
11674	# This should be the same for all languages, so no per-tag cache variable.
11675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11676$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11677if ${lt_cv_irix_exported_symbol+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  save_LDFLAGS="$LDFLAGS"
11681	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11682	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h.  */
11684int foo (void) { return 0; }
11685_ACEOF
11686if ac_fn_c_try_link "$LINENO"; then :
11687  lt_cv_irix_exported_symbol=yes
11688else
11689  lt_cv_irix_exported_symbol=no
11690fi
11691rm -f core conftest.err conftest.$ac_objext \
11692    conftest$ac_exeext conftest.$ac_ext
11693           LDFLAGS="$save_LDFLAGS"
11694fi
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11696$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11697	if test "$lt_cv_irix_exported_symbol" = yes; then
11698          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'
11699	fi
11700      else
11701	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'
11702	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'
11703      fi
11704      archive_cmds_need_lc='no'
11705      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11706      hardcode_libdir_separator=:
11707      inherit_rpath=yes
11708      link_all_deplibs=yes
11709      ;;
11710
11711    netbsd*)
11712      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11714      else
11715	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11716      fi
11717      hardcode_libdir_flag_spec='-R$libdir'
11718      hardcode_direct=yes
11719      hardcode_shlibpath_var=no
11720      ;;
11721
11722    newsos6)
11723      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724      hardcode_direct=yes
11725      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11726      hardcode_libdir_separator=:
11727      hardcode_shlibpath_var=no
11728      ;;
11729
11730    *nto* | *qnx*)
11731      ;;
11732
11733    openbsd*)
11734      if test -f /usr/libexec/ld.so; then
11735	hardcode_direct=yes
11736	hardcode_shlibpath_var=no
11737	hardcode_direct_absolute=yes
11738	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11741	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11742	  export_dynamic_flag_spec='${wl}-E'
11743	else
11744	  case $host_os in
11745	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11746	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11747	     hardcode_libdir_flag_spec='-R$libdir'
11748	     ;;
11749	   *)
11750	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11752	     ;;
11753	  esac
11754	fi
11755      else
11756	ld_shlibs=no
11757      fi
11758      ;;
11759
11760    os2*)
11761      hardcode_libdir_flag_spec='-L$libdir'
11762      hardcode_minus_L=yes
11763      allow_undefined_flag=unsupported
11764      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11765      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11766      ;;
11767
11768    osf3*)
11769      if test "$GCC" = yes; then
11770	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11771	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'
11772      else
11773	allow_undefined_flag=' -expect_unresolved \*'
11774	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'
11775      fi
11776      archive_cmds_need_lc='no'
11777      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11778      hardcode_libdir_separator=:
11779      ;;
11780
11781    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11782      if test "$GCC" = yes; then
11783	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11784	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'
11785	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11786      else
11787	allow_undefined_flag=' -expect_unresolved \*'
11788	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'
11789	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~
11790	$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'
11791
11792	# Both c and cxx compiler support -rpath directly
11793	hardcode_libdir_flag_spec='-rpath $libdir'
11794      fi
11795      archive_cmds_need_lc='no'
11796      hardcode_libdir_separator=:
11797      ;;
11798
11799    solaris*)
11800      no_undefined_flag=' -z defs'
11801      if test "$GCC" = yes; then
11802	wlarc='${wl}'
11803	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11805	  $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'
11806      else
11807	case `$CC -V 2>&1` in
11808	*"Compilers 5.0"*)
11809	  wlarc=''
11810	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11812	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11813	  ;;
11814	*)
11815	  wlarc='${wl}'
11816	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11817	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11819	  ;;
11820	esac
11821      fi
11822      hardcode_libdir_flag_spec='-R$libdir'
11823      hardcode_shlibpath_var=no
11824      case $host_os in
11825      solaris2.[0-5] | solaris2.[0-5].*) ;;
11826      *)
11827	# The compiler driver will combine and reorder linker options,
11828	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11829	# but is careful enough not to reorder.
11830	# Supported since Solaris 2.6 (maybe 2.5.1?)
11831	if test "$GCC" = yes; then
11832	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11833	else
11834	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11835	fi
11836	;;
11837      esac
11838      link_all_deplibs=yes
11839      ;;
11840
11841    sunos4*)
11842      if test "x$host_vendor" = xsequent; then
11843	# Use $CC to link under sequent, because it throws in some extra .o
11844	# files that make .init and .fini sections work.
11845	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11846      else
11847	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11848      fi
11849      hardcode_libdir_flag_spec='-L$libdir'
11850      hardcode_direct=yes
11851      hardcode_minus_L=yes
11852      hardcode_shlibpath_var=no
11853      ;;
11854
11855    sysv4)
11856      case $host_vendor in
11857	sni)
11858	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11859	  hardcode_direct=yes # is this really true???
11860	;;
11861	siemens)
11862	  ## LD is ld it makes a PLAMLIB
11863	  ## CC just makes a GrossModule.
11864	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11865	  reload_cmds='$CC -r -o $output$reload_objs'
11866	  hardcode_direct=no
11867        ;;
11868	motorola)
11869	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11871	;;
11872      esac
11873      runpath_var='LD_RUN_PATH'
11874      hardcode_shlibpath_var=no
11875      ;;
11876
11877    sysv4.3*)
11878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879      hardcode_shlibpath_var=no
11880      export_dynamic_flag_spec='-Bexport'
11881      ;;
11882
11883    sysv4*MP*)
11884      if test -d /usr/nec; then
11885	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886	hardcode_shlibpath_var=no
11887	runpath_var=LD_RUN_PATH
11888	hardcode_runpath_var=yes
11889	ld_shlibs=yes
11890      fi
11891      ;;
11892
11893    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11894      no_undefined_flag='${wl}-z,text'
11895      archive_cmds_need_lc=no
11896      hardcode_shlibpath_var=no
11897      runpath_var='LD_RUN_PATH'
11898
11899      if test "$GCC" = yes; then
11900	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11902      else
11903	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905      fi
11906      ;;
11907
11908    sysv5* | sco3.2v5* | sco5v6*)
11909      # Note: We can NOT use -z defs as we might desire, because we do not
11910      # link with -lc, and that would cause any symbols used from libc to
11911      # always be unresolved, which means just about no library would
11912      # ever link correctly.  If we're not using GNU ld we use -z text
11913      # though, which does catch some bad symbols but isn't as heavy-handed
11914      # as -z defs.
11915      no_undefined_flag='${wl}-z,text'
11916      allow_undefined_flag='${wl}-z,nodefs'
11917      archive_cmds_need_lc=no
11918      hardcode_shlibpath_var=no
11919      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11920      hardcode_libdir_separator=':'
11921      link_all_deplibs=yes
11922      export_dynamic_flag_spec='${wl}-Bexport'
11923      runpath_var='LD_RUN_PATH'
11924
11925      if test "$GCC" = yes; then
11926	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928      else
11929	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931      fi
11932      ;;
11933
11934    uts4*)
11935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11936      hardcode_libdir_flag_spec='-L$libdir'
11937      hardcode_shlibpath_var=no
11938      ;;
11939
11940    *)
11941      ld_shlibs=no
11942      ;;
11943    esac
11944
11945    if test x$host_vendor = xsni; then
11946      case $host in
11947      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11948	export_dynamic_flag_spec='${wl}-Blargedynsym'
11949	;;
11950      esac
11951    fi
11952  fi
11953
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11955$as_echo "$ld_shlibs" >&6; }
11956test "$ld_shlibs" = no && can_build_shared=no
11957
11958with_gnu_ld=$with_gnu_ld
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974#
11975# Do we need to explicitly link libc?
11976#
11977case "x$archive_cmds_need_lc" in
11978x|xyes)
11979  # Assume -lc should be added
11980  archive_cmds_need_lc=yes
11981
11982  if test "$enable_shared" = yes && test "$GCC" = yes; then
11983    case $archive_cmds in
11984    *'~'*)
11985      # FIXME: we may have to deal with multi-command sequences.
11986      ;;
11987    '$CC '*)
11988      # Test whether the compiler implicitly links with -lc since on some
11989      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990      # to ld, don't add -lc before -lgcc.
11991      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11992$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11993if ${lt_cv_archive_cmds_need_lc+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  $RM conftest*
11997	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11998
11999	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12000  (eval $ac_compile) 2>&5
12001  ac_status=$?
12002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003  test $ac_status = 0; } 2>conftest.err; then
12004	  soname=conftest
12005	  lib=conftest
12006	  libobjs=conftest.$ac_objext
12007	  deplibs=
12008	  wl=$lt_prog_compiler_wl
12009	  pic_flag=$lt_prog_compiler_pic
12010	  compiler_flags=-v
12011	  linker_flags=-v
12012	  verstring=
12013	  output_objdir=.
12014	  libname=conftest
12015	  lt_save_allow_undefined_flag=$allow_undefined_flag
12016	  allow_undefined_flag=
12017	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12018  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12019  ac_status=$?
12020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021  test $ac_status = 0; }
12022	  then
12023	    lt_cv_archive_cmds_need_lc=no
12024	  else
12025	    lt_cv_archive_cmds_need_lc=yes
12026	  fi
12027	  allow_undefined_flag=$lt_save_allow_undefined_flag
12028	else
12029	  cat conftest.err 1>&5
12030	fi
12031	$RM conftest*
12032
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12035$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12036      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12037      ;;
12038    esac
12039  fi
12040  ;;
12041esac
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
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
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12195$as_echo_n "checking dynamic linker characteristics... " >&6; }
12196
12197if test "$GCC" = yes; then
12198  case $host_os in
12199    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12200    *) lt_awk_arg="/^libraries:/" ;;
12201  esac
12202  case $host_os in
12203    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12204    *) lt_sed_strip_eq="s,=/,/,g" ;;
12205  esac
12206  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12207  case $lt_search_path_spec in
12208  *\;*)
12209    # if the path contains ";" then we assume it to be the separator
12210    # otherwise default to the standard path separator (i.e. ":") - it is
12211    # assumed that no part of a normal pathname contains ";" but that should
12212    # okay in the real world where ";" in dirpaths is itself problematic.
12213    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12214    ;;
12215  *)
12216    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12217    ;;
12218  esac
12219  # Ok, now we have the path, separated by spaces, we can step through it
12220  # and add multilib dir if necessary.
12221  lt_tmp_lt_search_path_spec=
12222  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12223  for lt_sys_path in $lt_search_path_spec; do
12224    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12225      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12226    else
12227      test -d "$lt_sys_path" && \
12228	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12229    fi
12230  done
12231  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12232BEGIN {RS=" "; FS="/|\n";} {
12233  lt_foo="";
12234  lt_count=0;
12235  for (lt_i = NF; lt_i > 0; lt_i--) {
12236    if ($lt_i != "" && $lt_i != ".") {
12237      if ($lt_i == "..") {
12238        lt_count++;
12239      } else {
12240        if (lt_count == 0) {
12241          lt_foo="/" $lt_i lt_foo;
12242        } else {
12243          lt_count--;
12244        }
12245      }
12246    }
12247  }
12248  if (lt_foo != "") { lt_freq[lt_foo]++; }
12249  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12250}'`
12251  # AWK program above erroneously prepends '/' to C:/dos/paths
12252  # for these hosts.
12253  case $host_os in
12254    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12255      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12256  esac
12257  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12258else
12259  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12260fi
12261library_names_spec=
12262libname_spec='lib$name'
12263soname_spec=
12264shrext_cmds=".so"
12265postinstall_cmds=
12266postuninstall_cmds=
12267finish_cmds=
12268finish_eval=
12269shlibpath_var=
12270shlibpath_overrides_runpath=unknown
12271version_type=none
12272dynamic_linker="$host_os ld.so"
12273sys_lib_dlsearch_path_spec="/lib /usr/lib"
12274need_lib_prefix=unknown
12275hardcode_into_libs=no
12276
12277# when you set need_version to no, make sure it does not cause -set_version
12278# flags to be left without arguments
12279need_version=unknown
12280
12281case $host_os in
12282aix3*)
12283  version_type=linux # correct to gnu/linux during the next big refactor
12284  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12285  shlibpath_var=LIBPATH
12286
12287  # AIX 3 has no versioning support, so we append a major version to the name.
12288  soname_spec='${libname}${release}${shared_ext}$major'
12289  ;;
12290
12291aix[4-9]*)
12292  version_type=linux # correct to gnu/linux during the next big refactor
12293  need_lib_prefix=no
12294  need_version=no
12295  hardcode_into_libs=yes
12296  if test "$host_cpu" = ia64; then
12297    # AIX 5 supports IA64
12298    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299    shlibpath_var=LD_LIBRARY_PATH
12300  else
12301    # With GCC up to 2.95.x, collect2 would create an import file
12302    # for dependence libraries.  The import file would start with
12303    # the line `#! .'.  This would cause the generated library to
12304    # depend on `.', always an invalid library.  This was fixed in
12305    # development snapshots of GCC prior to 3.0.
12306    case $host_os in
12307      aix4 | aix4.[01] | aix4.[01].*)
12308      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12309	   echo ' yes '
12310	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12311	:
12312      else
12313	can_build_shared=no
12314      fi
12315      ;;
12316    esac
12317    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318    # soname into executable. Probably we can add versioning support to
12319    # collect2, so additional links can be useful in future.
12320    if test "$aix_use_runtimelinking" = yes; then
12321      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322      # instead of lib<name>.a to let people know that these are not
12323      # typical AIX shared libraries.
12324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325    else
12326      # We preserve .a as extension for shared libraries through AIX4.2
12327      # and later when we are not doing run time linking.
12328      library_names_spec='${libname}${release}.a $libname.a'
12329      soname_spec='${libname}${release}${shared_ext}$major'
12330    fi
12331    shlibpath_var=LIBPATH
12332  fi
12333  ;;
12334
12335amigaos*)
12336  case $host_cpu in
12337  powerpc)
12338    # Since July 2007 AmigaOS4 officially supports .so libraries.
12339    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341    ;;
12342  m68k)
12343    library_names_spec='$libname.ixlibrary $libname.a'
12344    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12345    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12346    ;;
12347  esac
12348  ;;
12349
12350beos*)
12351  library_names_spec='${libname}${shared_ext}'
12352  dynamic_linker="$host_os ld.so"
12353  shlibpath_var=LIBRARY_PATH
12354  ;;
12355
12356bsdi[45]*)
12357  version_type=linux # correct to gnu/linux during the next big refactor
12358  need_version=no
12359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360  soname_spec='${libname}${release}${shared_ext}$major'
12361  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12362  shlibpath_var=LD_LIBRARY_PATH
12363  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12364  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12365  # the default ld.so.conf also contains /usr/contrib/lib and
12366  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12367  # libtool to hard-code these into programs
12368  ;;
12369
12370cygwin* | mingw* | pw32* | cegcc*)
12371  version_type=windows
12372  shrext_cmds=".dll"
12373  need_version=no
12374  need_lib_prefix=no
12375
12376  case $GCC,$cc_basename in
12377  yes,*)
12378    # gcc
12379    library_names_spec='$libname.dll.a'
12380    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12381    postinstall_cmds='base_file=`basename \${file}`~
12382      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12383      dldir=$destdir/`dirname \$dlpath`~
12384      test -d \$dldir || mkdir -p \$dldir~
12385      $install_prog $dir/$dlname \$dldir/$dlname~
12386      chmod a+x \$dldir/$dlname~
12387      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12388        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12389      fi'
12390    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12391      dlpath=$dir/\$dldll~
12392       $RM \$dlpath'
12393    shlibpath_overrides_runpath=yes
12394
12395    case $host_os in
12396    cygwin*)
12397      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12398      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12399
12400      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12401      ;;
12402    mingw* | cegcc*)
12403      # MinGW DLLs use traditional 'lib' prefix
12404      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12405      ;;
12406    pw32*)
12407      # pw32 DLLs use 'pw' prefix rather than 'lib'
12408      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12409      ;;
12410    esac
12411    dynamic_linker='Win32 ld.exe'
12412    ;;
12413
12414  *,cl*)
12415    # Native MSVC
12416    libname_spec='$name'
12417    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12418    library_names_spec='${libname}.dll.lib'
12419
12420    case $build_os in
12421    mingw*)
12422      sys_lib_search_path_spec=
12423      lt_save_ifs=$IFS
12424      IFS=';'
12425      for lt_path in $LIB
12426      do
12427        IFS=$lt_save_ifs
12428        # Let DOS variable expansion print the short 8.3 style file name.
12429        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12430        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12431      done
12432      IFS=$lt_save_ifs
12433      # Convert to MSYS style.
12434      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12435      ;;
12436    cygwin*)
12437      # Convert to unix form, then to dos form, then back to unix form
12438      # but this time dos style (no spaces!) so that the unix form looks
12439      # like /cygdrive/c/PROGRA~1:/cygdr...
12440      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12441      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12442      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12443      ;;
12444    *)
12445      sys_lib_search_path_spec="$LIB"
12446      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12447        # It is most probably a Windows format PATH.
12448        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12449      else
12450        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12451      fi
12452      # FIXME: find the short name or the path components, as spaces are
12453      # common. (e.g. "Program Files" -> "PROGRA~1")
12454      ;;
12455    esac
12456
12457    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12458    postinstall_cmds='base_file=`basename \${file}`~
12459      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12460      dldir=$destdir/`dirname \$dlpath`~
12461      test -d \$dldir || mkdir -p \$dldir~
12462      $install_prog $dir/$dlname \$dldir/$dlname'
12463    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12464      dlpath=$dir/\$dldll~
12465       $RM \$dlpath'
12466    shlibpath_overrides_runpath=yes
12467    dynamic_linker='Win32 link.exe'
12468    ;;
12469
12470  *)
12471    # Assume MSVC wrapper
12472    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12473    dynamic_linker='Win32 ld.exe'
12474    ;;
12475  esac
12476  # FIXME: first we should search . and the directory the executable is in
12477  shlibpath_var=PATH
12478  ;;
12479
12480darwin* | rhapsody*)
12481  dynamic_linker="$host_os dyld"
12482  version_type=darwin
12483  need_lib_prefix=no
12484  need_version=no
12485  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12486  soname_spec='${libname}${release}${major}$shared_ext'
12487  shlibpath_overrides_runpath=yes
12488  shlibpath_var=DYLD_LIBRARY_PATH
12489  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12490
12491  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12492  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12493  ;;
12494
12495dgux*)
12496  version_type=linux # correct to gnu/linux during the next big refactor
12497  need_lib_prefix=no
12498  need_version=no
12499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12500  soname_spec='${libname}${release}${shared_ext}$major'
12501  shlibpath_var=LD_LIBRARY_PATH
12502  ;;
12503
12504freebsd* | dragonfly*)
12505  # DragonFly does not have aout.  When/if they implement a new
12506  # versioning mechanism, adjust this.
12507  if test -x /usr/bin/objformat; then
12508    objformat=`/usr/bin/objformat`
12509  else
12510    case $host_os in
12511    freebsd[23].*) objformat=aout ;;
12512    *) objformat=elf ;;
12513    esac
12514  fi
12515  version_type=freebsd-$objformat
12516  case $version_type in
12517    freebsd-elf*)
12518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12519      need_version=no
12520      need_lib_prefix=no
12521      ;;
12522    freebsd-*)
12523      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12524      need_version=yes
12525      ;;
12526  esac
12527  shlibpath_var=LD_LIBRARY_PATH
12528  case $host_os in
12529  freebsd2.*)
12530    shlibpath_overrides_runpath=yes
12531    ;;
12532  freebsd3.[01]* | freebsdelf3.[01]*)
12533    shlibpath_overrides_runpath=yes
12534    hardcode_into_libs=yes
12535    ;;
12536  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12537  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12538    shlibpath_overrides_runpath=no
12539    hardcode_into_libs=yes
12540    ;;
12541  *) # from 4.6 on, and DragonFly
12542    shlibpath_overrides_runpath=yes
12543    hardcode_into_libs=yes
12544    ;;
12545  esac
12546  ;;
12547
12548gnu*)
12549  version_type=linux # correct to gnu/linux during the next big refactor
12550  need_lib_prefix=no
12551  need_version=no
12552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12553  soname_spec='${libname}${release}${shared_ext}$major'
12554  shlibpath_var=LD_LIBRARY_PATH
12555  shlibpath_overrides_runpath=no
12556  hardcode_into_libs=yes
12557  ;;
12558
12559haiku*)
12560  version_type=linux # correct to gnu/linux during the next big refactor
12561  need_lib_prefix=no
12562  need_version=no
12563  dynamic_linker="$host_os runtime_loader"
12564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12565  soname_spec='${libname}${release}${shared_ext}$major'
12566  shlibpath_var=LIBRARY_PATH
12567  shlibpath_overrides_runpath=yes
12568  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12569  hardcode_into_libs=yes
12570  ;;
12571
12572hpux9* | hpux10* | hpux11*)
12573  # Give a soname corresponding to the major version so that dld.sl refuses to
12574  # link against other versions.
12575  version_type=sunos
12576  need_lib_prefix=no
12577  need_version=no
12578  case $host_cpu in
12579  ia64*)
12580    shrext_cmds='.so'
12581    hardcode_into_libs=yes
12582    dynamic_linker="$host_os dld.so"
12583    shlibpath_var=LD_LIBRARY_PATH
12584    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586    soname_spec='${libname}${release}${shared_ext}$major'
12587    if test "X$HPUX_IA64_MODE" = X32; then
12588      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12589    else
12590      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12591    fi
12592    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12593    ;;
12594  hppa*64*)
12595    shrext_cmds='.sl'
12596    hardcode_into_libs=yes
12597    dynamic_linker="$host_os dld.sl"
12598    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12599    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601    soname_spec='${libname}${release}${shared_ext}$major'
12602    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12603    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12604    ;;
12605  *)
12606    shrext_cmds='.sl'
12607    dynamic_linker="$host_os dld.sl"
12608    shlibpath_var=SHLIB_PATH
12609    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611    soname_spec='${libname}${release}${shared_ext}$major'
12612    ;;
12613  esac
12614  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12615  postinstall_cmds='chmod 555 $lib'
12616  # or fails outright, so override atomically:
12617  install_override_mode=555
12618  ;;
12619
12620interix[3-9]*)
12621  version_type=linux # correct to gnu/linux during the next big refactor
12622  need_lib_prefix=no
12623  need_version=no
12624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625  soname_spec='${libname}${release}${shared_ext}$major'
12626  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12627  shlibpath_var=LD_LIBRARY_PATH
12628  shlibpath_overrides_runpath=no
12629  hardcode_into_libs=yes
12630  ;;
12631
12632irix5* | irix6* | nonstopux*)
12633  case $host_os in
12634    nonstopux*) version_type=nonstopux ;;
12635    *)
12636	if test "$lt_cv_prog_gnu_ld" = yes; then
12637		version_type=linux # correct to gnu/linux during the next big refactor
12638	else
12639		version_type=irix
12640	fi ;;
12641  esac
12642  need_lib_prefix=no
12643  need_version=no
12644  soname_spec='${libname}${release}${shared_ext}$major'
12645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12646  case $host_os in
12647  irix5* | nonstopux*)
12648    libsuff= shlibsuff=
12649    ;;
12650  *)
12651    case $LD in # libtool.m4 will add one of these switches to LD
12652    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12653      libsuff= shlibsuff= libmagic=32-bit;;
12654    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12655      libsuff=32 shlibsuff=N32 libmagic=N32;;
12656    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12657      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12658    *) libsuff= shlibsuff= libmagic=never-match;;
12659    esac
12660    ;;
12661  esac
12662  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12663  shlibpath_overrides_runpath=no
12664  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12665  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12666  hardcode_into_libs=yes
12667  ;;
12668
12669# No shared lib support for Linux oldld, aout, or coff.
12670linux*oldld* | linux*aout* | linux*coff*)
12671  dynamic_linker=no
12672  ;;
12673
12674# This must be glibc/ELF.
12675linux* | k*bsd*-gnu | kopensolaris*-gnu)
12676  version_type=linux # correct to gnu/linux during the next big refactor
12677  need_lib_prefix=no
12678  need_version=no
12679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680  soname_spec='${libname}${release}${shared_ext}$major'
12681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12682  shlibpath_var=LD_LIBRARY_PATH
12683  shlibpath_overrides_runpath=no
12684
12685  # Some binutils ld are patched to set DT_RUNPATH
12686  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  lt_cv_shlibpath_overrides_runpath=no
12690    save_LDFLAGS=$LDFLAGS
12691    save_libdir=$libdir
12692    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12693	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h.  */
12696
12697int
12698main ()
12699{
12700
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705if ac_fn_c_try_link "$LINENO"; then :
12706  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12707  lt_cv_shlibpath_overrides_runpath=yes
12708fi
12709fi
12710rm -f core conftest.err conftest.$ac_objext \
12711    conftest$ac_exeext conftest.$ac_ext
12712    LDFLAGS=$save_LDFLAGS
12713    libdir=$save_libdir
12714
12715fi
12716
12717  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12718
12719  # This implies no fast_install, which is unacceptable.
12720  # Some rework will be needed to allow for fast_install
12721  # before this can be enabled.
12722  hardcode_into_libs=yes
12723
12724  # Append ld.so.conf contents to the search path
12725  if test -f /etc/ld.so.conf; then
12726    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' ' '`
12727    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12728  fi
12729
12730  # We used to test for /lib/ld.so.1 and disable shared libraries on
12731  # powerpc, because MkLinux only supported shared libraries with the
12732  # GNU dynamic linker.  Since this was broken with cross compilers,
12733  # most powerpc-linux boxes support dynamic linking these days and
12734  # people can always --disable-shared, the test was removed, and we
12735  # assume the GNU/Linux dynamic linker is in use.
12736  dynamic_linker='GNU/Linux ld.so'
12737  ;;
12738
12739netbsd*)
12740  version_type=sunos
12741  need_lib_prefix=no
12742  need_version=no
12743  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12744    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12745    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12746    dynamic_linker='NetBSD (a.out) ld.so'
12747  else
12748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12749    soname_spec='${libname}${release}${shared_ext}$major'
12750    dynamic_linker='NetBSD ld.elf_so'
12751  fi
12752  shlibpath_var=LD_LIBRARY_PATH
12753  shlibpath_overrides_runpath=yes
12754  hardcode_into_libs=yes
12755  ;;
12756
12757newsos6)
12758  version_type=linux # correct to gnu/linux during the next big refactor
12759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12760  shlibpath_var=LD_LIBRARY_PATH
12761  shlibpath_overrides_runpath=yes
12762  ;;
12763
12764*nto* | *qnx*)
12765  version_type=qnx
12766  need_lib_prefix=no
12767  need_version=no
12768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12769  soname_spec='${libname}${release}${shared_ext}$major'
12770  shlibpath_var=LD_LIBRARY_PATH
12771  shlibpath_overrides_runpath=no
12772  hardcode_into_libs=yes
12773  dynamic_linker='ldqnx.so'
12774  ;;
12775
12776openbsd*)
12777  version_type=sunos
12778  sys_lib_dlsearch_path_spec="/usr/lib"
12779  need_lib_prefix=no
12780  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12781  case $host_os in
12782    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12783    *)				need_version=no  ;;
12784  esac
12785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12786  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787  shlibpath_var=LD_LIBRARY_PATH
12788  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12789    case $host_os in
12790      openbsd2.[89] | openbsd2.[89].*)
12791	shlibpath_overrides_runpath=no
12792	;;
12793      *)
12794	shlibpath_overrides_runpath=yes
12795	;;
12796      esac
12797  else
12798    shlibpath_overrides_runpath=yes
12799  fi
12800  ;;
12801
12802os2*)
12803  libname_spec='$name'
12804  shrext_cmds=".dll"
12805  need_lib_prefix=no
12806  library_names_spec='$libname${shared_ext} $libname.a'
12807  dynamic_linker='OS/2 ld.exe'
12808  shlibpath_var=LIBPATH
12809  ;;
12810
12811osf3* | osf4* | osf5*)
12812  version_type=osf
12813  need_lib_prefix=no
12814  need_version=no
12815  soname_spec='${libname}${release}${shared_ext}$major'
12816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817  shlibpath_var=LD_LIBRARY_PATH
12818  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12819  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12820  ;;
12821
12822rdos*)
12823  dynamic_linker=no
12824  ;;
12825
12826solaris*)
12827  version_type=linux # correct to gnu/linux during the next big refactor
12828  need_lib_prefix=no
12829  need_version=no
12830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831  soname_spec='${libname}${release}${shared_ext}$major'
12832  shlibpath_var=LD_LIBRARY_PATH
12833  shlibpath_overrides_runpath=yes
12834  hardcode_into_libs=yes
12835  # ldd complains unless libraries are executable
12836  postinstall_cmds='chmod +x $lib'
12837  ;;
12838
12839sunos4*)
12840  version_type=sunos
12841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12842  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12843  shlibpath_var=LD_LIBRARY_PATH
12844  shlibpath_overrides_runpath=yes
12845  if test "$with_gnu_ld" = yes; then
12846    need_lib_prefix=no
12847  fi
12848  need_version=yes
12849  ;;
12850
12851sysv4 | sysv4.3*)
12852  version_type=linux # correct to gnu/linux during the next big refactor
12853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854  soname_spec='${libname}${release}${shared_ext}$major'
12855  shlibpath_var=LD_LIBRARY_PATH
12856  case $host_vendor in
12857    sni)
12858      shlibpath_overrides_runpath=no
12859      need_lib_prefix=no
12860      runpath_var=LD_RUN_PATH
12861      ;;
12862    siemens)
12863      need_lib_prefix=no
12864      ;;
12865    motorola)
12866      need_lib_prefix=no
12867      need_version=no
12868      shlibpath_overrides_runpath=no
12869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12870      ;;
12871  esac
12872  ;;
12873
12874sysv4*MP*)
12875  if test -d /usr/nec ;then
12876    version_type=linux # correct to gnu/linux during the next big refactor
12877    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12878    soname_spec='$libname${shared_ext}.$major'
12879    shlibpath_var=LD_LIBRARY_PATH
12880  fi
12881  ;;
12882
12883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12884  version_type=freebsd-elf
12885  need_lib_prefix=no
12886  need_version=no
12887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12888  soname_spec='${libname}${release}${shared_ext}$major'
12889  shlibpath_var=LD_LIBRARY_PATH
12890  shlibpath_overrides_runpath=yes
12891  hardcode_into_libs=yes
12892  if test "$with_gnu_ld" = yes; then
12893    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12894  else
12895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12896    case $host_os in
12897      sco3.2v5*)
12898        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12899	;;
12900    esac
12901  fi
12902  sys_lib_dlsearch_path_spec='/usr/lib'
12903  ;;
12904
12905tpf*)
12906  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12907  version_type=linux # correct to gnu/linux during the next big refactor
12908  need_lib_prefix=no
12909  need_version=no
12910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911  shlibpath_var=LD_LIBRARY_PATH
12912  shlibpath_overrides_runpath=no
12913  hardcode_into_libs=yes
12914  ;;
12915
12916uts4*)
12917  version_type=linux # correct to gnu/linux during the next big refactor
12918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919  soname_spec='${libname}${release}${shared_ext}$major'
12920  shlibpath_var=LD_LIBRARY_PATH
12921  ;;
12922
12923*)
12924  dynamic_linker=no
12925  ;;
12926esac
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12928$as_echo "$dynamic_linker" >&6; }
12929test "$dynamic_linker" = no && can_build_shared=no
12930
12931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932if test "$GCC" = yes; then
12933  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934fi
12935
12936if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12937  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12938fi
12939if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12940  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12941fi
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13035$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13036hardcode_action=
13037if test -n "$hardcode_libdir_flag_spec" ||
13038   test -n "$runpath_var" ||
13039   test "X$hardcode_automatic" = "Xyes" ; then
13040
13041  # We can hardcode non-existent directories.
13042  if test "$hardcode_direct" != no &&
13043     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13044     # have to relink, otherwise we might link with an installed library
13045     # when we should be linking with a yet-to-be-installed one
13046     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13047     test "$hardcode_minus_L" != no; then
13048    # Linking always hardcodes the temporary library directory.
13049    hardcode_action=relink
13050  else
13051    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13052    hardcode_action=immediate
13053  fi
13054else
13055  # We cannot hardcode anything, or else we can only hardcode existing
13056  # directories.
13057  hardcode_action=unsupported
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13060$as_echo "$hardcode_action" >&6; }
13061
13062if test "$hardcode_action" = relink ||
13063   test "$inherit_rpath" = yes; then
13064  # Fast installation is not supported
13065  enable_fast_install=no
13066elif test "$shlibpath_overrides_runpath" = yes ||
13067     test "$enable_shared" = no; then
13068  # Fast installation is not necessary
13069  enable_fast_install=needless
13070fi
13071
13072
13073
13074
13075
13076
13077  if test "x$enable_dlopen" != xyes; then
13078  enable_dlopen=unknown
13079  enable_dlopen_self=unknown
13080  enable_dlopen_self_static=unknown
13081else
13082  lt_cv_dlopen=no
13083  lt_cv_dlopen_libs=
13084
13085  case $host_os in
13086  beos*)
13087    lt_cv_dlopen="load_add_on"
13088    lt_cv_dlopen_libs=
13089    lt_cv_dlopen_self=yes
13090    ;;
13091
13092  mingw* | pw32* | cegcc*)
13093    lt_cv_dlopen="LoadLibrary"
13094    lt_cv_dlopen_libs=
13095    ;;
13096
13097  cygwin*)
13098    lt_cv_dlopen="dlopen"
13099    lt_cv_dlopen_libs=
13100    ;;
13101
13102  darwin*)
13103  # if libdl is installed we need to link against it
13104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13105$as_echo_n "checking for dlopen in -ldl... " >&6; }
13106if ${ac_cv_lib_dl_dlopen+:} false; then :
13107  $as_echo_n "(cached) " >&6
13108else
13109  ac_check_lib_save_LIBS=$LIBS
13110LIBS="-ldl  $LIBS"
13111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112/* end confdefs.h.  */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115   Use char because int might match the return type of a GCC
13116   builtin and then its argument prototype would still apply.  */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char dlopen ();
13121int
13122main ()
13123{
13124return dlopen ();
13125  ;
13126  return 0;
13127}
13128_ACEOF
13129if ac_fn_c_try_link "$LINENO"; then :
13130  ac_cv_lib_dl_dlopen=yes
13131else
13132  ac_cv_lib_dl_dlopen=no
13133fi
13134rm -f core conftest.err conftest.$ac_objext \
13135    conftest$ac_exeext conftest.$ac_ext
13136LIBS=$ac_check_lib_save_LIBS
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13139$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13140if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13141  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13142else
13143
13144    lt_cv_dlopen="dyld"
13145    lt_cv_dlopen_libs=
13146    lt_cv_dlopen_self=yes
13147
13148fi
13149
13150    ;;
13151
13152  *)
13153    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13154if test "x$ac_cv_func_shl_load" = xyes; then :
13155  lt_cv_dlopen="shl_load"
13156else
13157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13158$as_echo_n "checking for shl_load in -ldld... " >&6; }
13159if ${ac_cv_lib_dld_shl_load+:} false; then :
13160  $as_echo_n "(cached) " >&6
13161else
13162  ac_check_lib_save_LIBS=$LIBS
13163LIBS="-ldld  $LIBS"
13164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166
13167/* Override any GCC internal prototype to avoid an error.
13168   Use char because int might match the return type of a GCC
13169   builtin and then its argument prototype would still apply.  */
13170#ifdef __cplusplus
13171extern "C"
13172#endif
13173char shl_load ();
13174int
13175main ()
13176{
13177return shl_load ();
13178  ;
13179  return 0;
13180}
13181_ACEOF
13182if ac_fn_c_try_link "$LINENO"; then :
13183  ac_cv_lib_dld_shl_load=yes
13184else
13185  ac_cv_lib_dld_shl_load=no
13186fi
13187rm -f core conftest.err conftest.$ac_objext \
13188    conftest$ac_exeext conftest.$ac_ext
13189LIBS=$ac_check_lib_save_LIBS
13190fi
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13192$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13193if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13194  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13195else
13196  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13197if test "x$ac_cv_func_dlopen" = xyes; then :
13198  lt_cv_dlopen="dlopen"
13199else
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13201$as_echo_n "checking for dlopen in -ldl... " >&6; }
13202if ${ac_cv_lib_dl_dlopen+:} false; then :
13203  $as_echo_n "(cached) " >&6
13204else
13205  ac_check_lib_save_LIBS=$LIBS
13206LIBS="-ldl  $LIBS"
13207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208/* end confdefs.h.  */
13209
13210/* Override any GCC internal prototype to avoid an error.
13211   Use char because int might match the return type of a GCC
13212   builtin and then its argument prototype would still apply.  */
13213#ifdef __cplusplus
13214extern "C"
13215#endif
13216char dlopen ();
13217int
13218main ()
13219{
13220return dlopen ();
13221  ;
13222  return 0;
13223}
13224_ACEOF
13225if ac_fn_c_try_link "$LINENO"; then :
13226  ac_cv_lib_dl_dlopen=yes
13227else
13228  ac_cv_lib_dl_dlopen=no
13229fi
13230rm -f core conftest.err conftest.$ac_objext \
13231    conftest$ac_exeext conftest.$ac_ext
13232LIBS=$ac_check_lib_save_LIBS
13233fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13235$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13236if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13237  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13238else
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13240$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13241if ${ac_cv_lib_svld_dlopen+:} false; then :
13242  $as_echo_n "(cached) " >&6
13243else
13244  ac_check_lib_save_LIBS=$LIBS
13245LIBS="-lsvld  $LIBS"
13246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h.  */
13248
13249/* Override any GCC internal prototype to avoid an error.
13250   Use char because int might match the return type of a GCC
13251   builtin and then its argument prototype would still apply.  */
13252#ifdef __cplusplus
13253extern "C"
13254#endif
13255char dlopen ();
13256int
13257main ()
13258{
13259return dlopen ();
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264if ac_fn_c_try_link "$LINENO"; then :
13265  ac_cv_lib_svld_dlopen=yes
13266else
13267  ac_cv_lib_svld_dlopen=no
13268fi
13269rm -f core conftest.err conftest.$ac_objext \
13270    conftest$ac_exeext conftest.$ac_ext
13271LIBS=$ac_check_lib_save_LIBS
13272fi
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13274$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13275if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13277else
13278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13279$as_echo_n "checking for dld_link in -ldld... " >&6; }
13280if ${ac_cv_lib_dld_dld_link+:} false; then :
13281  $as_echo_n "(cached) " >&6
13282else
13283  ac_check_lib_save_LIBS=$LIBS
13284LIBS="-ldld  $LIBS"
13285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h.  */
13287
13288/* Override any GCC internal prototype to avoid an error.
13289   Use char because int might match the return type of a GCC
13290   builtin and then its argument prototype would still apply.  */
13291#ifdef __cplusplus
13292extern "C"
13293#endif
13294char dld_link ();
13295int
13296main ()
13297{
13298return dld_link ();
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"; then :
13304  ac_cv_lib_dld_dld_link=yes
13305else
13306  ac_cv_lib_dld_dld_link=no
13307fi
13308rm -f core conftest.err conftest.$ac_objext \
13309    conftest$ac_exeext conftest.$ac_ext
13310LIBS=$ac_check_lib_save_LIBS
13311fi
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13313$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13314if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13315  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13316fi
13317
13318
13319fi
13320
13321
13322fi
13323
13324
13325fi
13326
13327
13328fi
13329
13330
13331fi
13332
13333    ;;
13334  esac
13335
13336  if test "x$lt_cv_dlopen" != xno; then
13337    enable_dlopen=yes
13338  else
13339    enable_dlopen=no
13340  fi
13341
13342  case $lt_cv_dlopen in
13343  dlopen)
13344    save_CPPFLAGS="$CPPFLAGS"
13345    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13346
13347    save_LDFLAGS="$LDFLAGS"
13348    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13349
13350    save_LIBS="$LIBS"
13351    LIBS="$lt_cv_dlopen_libs $LIBS"
13352
13353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13354$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13355if ${lt_cv_dlopen_self+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  	  if test "$cross_compiling" = yes; then :
13359  lt_cv_dlopen_self=cross
13360else
13361  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13362  lt_status=$lt_dlunknown
13363  cat > conftest.$ac_ext <<_LT_EOF
13364#line $LINENO "configure"
13365#include "confdefs.h"
13366
13367#if HAVE_DLFCN_H
13368#include <dlfcn.h>
13369#endif
13370
13371#include <stdio.h>
13372
13373#ifdef RTLD_GLOBAL
13374#  define LT_DLGLOBAL		RTLD_GLOBAL
13375#else
13376#  ifdef DL_GLOBAL
13377#    define LT_DLGLOBAL		DL_GLOBAL
13378#  else
13379#    define LT_DLGLOBAL		0
13380#  endif
13381#endif
13382
13383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13384   find out it does not work in some platform. */
13385#ifndef LT_DLLAZY_OR_NOW
13386#  ifdef RTLD_LAZY
13387#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13388#  else
13389#    ifdef DL_LAZY
13390#      define LT_DLLAZY_OR_NOW		DL_LAZY
13391#    else
13392#      ifdef RTLD_NOW
13393#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13394#      else
13395#        ifdef DL_NOW
13396#          define LT_DLLAZY_OR_NOW	DL_NOW
13397#        else
13398#          define LT_DLLAZY_OR_NOW	0
13399#        endif
13400#      endif
13401#    endif
13402#  endif
13403#endif
13404
13405/* When -fvisbility=hidden is used, assume the code has been annotated
13406   correspondingly for the symbols needed.  */
13407#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13408int fnord () __attribute__((visibility("default")));
13409#endif
13410
13411int fnord () { return 42; }
13412int main ()
13413{
13414  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13415  int status = $lt_dlunknown;
13416
13417  if (self)
13418    {
13419      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13420      else
13421        {
13422	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13423          else puts (dlerror ());
13424	}
13425      /* dlclose (self); */
13426    }
13427  else
13428    puts (dlerror ());
13429
13430  return status;
13431}
13432_LT_EOF
13433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13434  (eval $ac_link) 2>&5
13435  ac_status=$?
13436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13438    (./conftest; exit; ) >&5 2>/dev/null
13439    lt_status=$?
13440    case x$lt_status in
13441      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13442      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13443      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13444    esac
13445  else :
13446    # compilation failed
13447    lt_cv_dlopen_self=no
13448  fi
13449fi
13450rm -fr conftest*
13451
13452
13453fi
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13455$as_echo "$lt_cv_dlopen_self" >&6; }
13456
13457    if test "x$lt_cv_dlopen_self" = xyes; then
13458      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13460$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13461if ${lt_cv_dlopen_self_static+:} false; then :
13462  $as_echo_n "(cached) " >&6
13463else
13464  	  if test "$cross_compiling" = yes; then :
13465  lt_cv_dlopen_self_static=cross
13466else
13467  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13468  lt_status=$lt_dlunknown
13469  cat > conftest.$ac_ext <<_LT_EOF
13470#line $LINENO "configure"
13471#include "confdefs.h"
13472
13473#if HAVE_DLFCN_H
13474#include <dlfcn.h>
13475#endif
13476
13477#include <stdio.h>
13478
13479#ifdef RTLD_GLOBAL
13480#  define LT_DLGLOBAL		RTLD_GLOBAL
13481#else
13482#  ifdef DL_GLOBAL
13483#    define LT_DLGLOBAL		DL_GLOBAL
13484#  else
13485#    define LT_DLGLOBAL		0
13486#  endif
13487#endif
13488
13489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13490   find out it does not work in some platform. */
13491#ifndef LT_DLLAZY_OR_NOW
13492#  ifdef RTLD_LAZY
13493#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13494#  else
13495#    ifdef DL_LAZY
13496#      define LT_DLLAZY_OR_NOW		DL_LAZY
13497#    else
13498#      ifdef RTLD_NOW
13499#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13500#      else
13501#        ifdef DL_NOW
13502#          define LT_DLLAZY_OR_NOW	DL_NOW
13503#        else
13504#          define LT_DLLAZY_OR_NOW	0
13505#        endif
13506#      endif
13507#    endif
13508#  endif
13509#endif
13510
13511/* When -fvisbility=hidden is used, assume the code has been annotated
13512   correspondingly for the symbols needed.  */
13513#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13514int fnord () __attribute__((visibility("default")));
13515#endif
13516
13517int fnord () { return 42; }
13518int main ()
13519{
13520  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13521  int status = $lt_dlunknown;
13522
13523  if (self)
13524    {
13525      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13526      else
13527        {
13528	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13529          else puts (dlerror ());
13530	}
13531      /* dlclose (self); */
13532    }
13533  else
13534    puts (dlerror ());
13535
13536  return status;
13537}
13538_LT_EOF
13539  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13540  (eval $ac_link) 2>&5
13541  ac_status=$?
13542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13544    (./conftest; exit; ) >&5 2>/dev/null
13545    lt_status=$?
13546    case x$lt_status in
13547      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13548      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13549      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13550    esac
13551  else :
13552    # compilation failed
13553    lt_cv_dlopen_self_static=no
13554  fi
13555fi
13556rm -fr conftest*
13557
13558
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13561$as_echo "$lt_cv_dlopen_self_static" >&6; }
13562    fi
13563
13564    CPPFLAGS="$save_CPPFLAGS"
13565    LDFLAGS="$save_LDFLAGS"
13566    LIBS="$save_LIBS"
13567    ;;
13568  esac
13569
13570  case $lt_cv_dlopen_self in
13571  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13572  *) enable_dlopen_self=unknown ;;
13573  esac
13574
13575  case $lt_cv_dlopen_self_static in
13576  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13577  *) enable_dlopen_self_static=unknown ;;
13578  esac
13579fi
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597striplib=
13598old_striplib=
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13600$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13601if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13602  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13603  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605$as_echo "yes" >&6; }
13606else
13607# FIXME - insert some real tests, host_os isn't really good enough
13608  case $host_os in
13609  darwin*)
13610    if test -n "$STRIP" ; then
13611      striplib="$STRIP -x"
13612      old_striplib="$STRIP -S"
13613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614$as_echo "yes" >&6; }
13615    else
13616      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617$as_echo "no" >&6; }
13618    fi
13619    ;;
13620  *)
13621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622$as_echo "no" >&6; }
13623    ;;
13624  esac
13625fi
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638  # Report which library types will actually be built
13639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13640$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13642$as_echo "$can_build_shared" >&6; }
13643
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13645$as_echo_n "checking whether to build shared libraries... " >&6; }
13646  test "$can_build_shared" = "no" && enable_shared=no
13647
13648  # On AIX, shared libraries and static libraries use the same namespace, and
13649  # are all built from PIC.
13650  case $host_os in
13651  aix3*)
13652    test "$enable_shared" = yes && enable_static=no
13653    if test -n "$RANLIB"; then
13654      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13655      postinstall_cmds='$RANLIB $lib'
13656    fi
13657    ;;
13658
13659  aix[4-9]*)
13660    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13661      test "$enable_shared" = yes && enable_static=no
13662    fi
13663    ;;
13664  esac
13665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13666$as_echo "$enable_shared" >&6; }
13667
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13669$as_echo_n "checking whether to build static libraries... " >&6; }
13670  # Make sure either enable_shared or enable_static is yes.
13671  test "$enable_shared" = yes || enable_static=yes
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13673$as_echo "$enable_static" >&6; }
13674
13675
13676
13677
13678fi
13679ac_ext=c
13680ac_cpp='$CPP $CPPFLAGS'
13681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683ac_compiler_gnu=$ac_cv_c_compiler_gnu
13684
13685CC="$lt_save_CC"
13686
13687      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13688    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13689    (test "X$CXX" != "Xg++"))) ; then
13690  ac_ext=cpp
13691ac_cpp='$CXXCPP $CPPFLAGS'
13692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13696$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13697if test -z "$CXXCPP"; then
13698  if ${ac_cv_prog_CXXCPP+:} false; then :
13699  $as_echo_n "(cached) " >&6
13700else
13701      # Double quotes because CXXCPP needs to be expanded
13702    for CXXCPP in "$CXX -E" "/lib/cpp"
13703    do
13704      ac_preproc_ok=false
13705for ac_cxx_preproc_warn_flag in '' yes
13706do
13707  # Use a header file that comes with gcc, so configuring glibc
13708  # with a fresh cross-compiler works.
13709  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710  # <limits.h> exists even on freestanding compilers.
13711  # On the NeXT, cc -E runs the code through the compiler's parser,
13712  # not just through cpp. "Syntax error" is here to catch this case.
13713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715#ifdef __STDC__
13716# include <limits.h>
13717#else
13718# include <assert.h>
13719#endif
13720		     Syntax error
13721_ACEOF
13722if ac_fn_cxx_try_cpp "$LINENO"; then :
13723
13724else
13725  # Broken: fails on valid input.
13726continue
13727fi
13728rm -f conftest.err conftest.i conftest.$ac_ext
13729
13730  # OK, works on sane cases.  Now check whether nonexistent headers
13731  # can be detected and how.
13732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h.  */
13734#include <ac_nonexistent.h>
13735_ACEOF
13736if ac_fn_cxx_try_cpp "$LINENO"; then :
13737  # Broken: success on invalid input.
13738continue
13739else
13740  # Passes both tests.
13741ac_preproc_ok=:
13742break
13743fi
13744rm -f conftest.err conftest.i conftest.$ac_ext
13745
13746done
13747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13748rm -f conftest.i conftest.err conftest.$ac_ext
13749if $ac_preproc_ok; then :
13750  break
13751fi
13752
13753    done
13754    ac_cv_prog_CXXCPP=$CXXCPP
13755
13756fi
13757  CXXCPP=$ac_cv_prog_CXXCPP
13758else
13759  ac_cv_prog_CXXCPP=$CXXCPP
13760fi
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13762$as_echo "$CXXCPP" >&6; }
13763ac_preproc_ok=false
13764for ac_cxx_preproc_warn_flag in '' yes
13765do
13766  # Use a header file that comes with gcc, so configuring glibc
13767  # with a fresh cross-compiler works.
13768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13769  # <limits.h> exists even on freestanding compilers.
13770  # On the NeXT, cc -E runs the code through the compiler's parser,
13771  # not just through cpp. "Syntax error" is here to catch this case.
13772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774#ifdef __STDC__
13775# include <limits.h>
13776#else
13777# include <assert.h>
13778#endif
13779		     Syntax error
13780_ACEOF
13781if ac_fn_cxx_try_cpp "$LINENO"; then :
13782
13783else
13784  # Broken: fails on valid input.
13785continue
13786fi
13787rm -f conftest.err conftest.i conftest.$ac_ext
13788
13789  # OK, works on sane cases.  Now check whether nonexistent headers
13790  # can be detected and how.
13791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793#include <ac_nonexistent.h>
13794_ACEOF
13795if ac_fn_cxx_try_cpp "$LINENO"; then :
13796  # Broken: success on invalid input.
13797continue
13798else
13799  # Passes both tests.
13800ac_preproc_ok=:
13801break
13802fi
13803rm -f conftest.err conftest.i conftest.$ac_ext
13804
13805done
13806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13807rm -f conftest.i conftest.err conftest.$ac_ext
13808if $ac_preproc_ok; then :
13809
13810else
13811  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13813as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13814See \`config.log' for more details" "$LINENO" 5; }
13815fi
13816
13817ac_ext=c
13818ac_cpp='$CPP $CPPFLAGS'
13819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822
13823else
13824  _lt_caught_CXX_error=yes
13825fi
13826
13827ac_ext=cpp
13828ac_cpp='$CXXCPP $CPPFLAGS'
13829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13832
13833archive_cmds_need_lc_CXX=no
13834allow_undefined_flag_CXX=
13835always_export_symbols_CXX=no
13836archive_expsym_cmds_CXX=
13837compiler_needs_object_CXX=no
13838export_dynamic_flag_spec_CXX=
13839hardcode_direct_CXX=no
13840hardcode_direct_absolute_CXX=no
13841hardcode_libdir_flag_spec_CXX=
13842hardcode_libdir_separator_CXX=
13843hardcode_minus_L_CXX=no
13844hardcode_shlibpath_var_CXX=unsupported
13845hardcode_automatic_CXX=no
13846inherit_rpath_CXX=no
13847module_cmds_CXX=
13848module_expsym_cmds_CXX=
13849link_all_deplibs_CXX=unknown
13850old_archive_cmds_CXX=$old_archive_cmds
13851reload_flag_CXX=$reload_flag
13852reload_cmds_CXX=$reload_cmds
13853no_undefined_flag_CXX=
13854whole_archive_flag_spec_CXX=
13855enable_shared_with_static_runtimes_CXX=no
13856
13857# Source file extension for C++ test sources.
13858ac_ext=cpp
13859
13860# Object file extension for compiled C++ test sources.
13861objext=o
13862objext_CXX=$objext
13863
13864# No sense in running all these tests if we already determined that
13865# the CXX compiler isn't working.  Some variables (like enable_shared)
13866# are currently assumed to apply to all compilers on this platform,
13867# and will be corrupted by setting them based on a non-working compiler.
13868if test "$_lt_caught_CXX_error" != yes; then
13869  # Code to be used in simple compile tests
13870  lt_simple_compile_test_code="int some_variable = 0;"
13871
13872  # Code to be used in simple link tests
13873  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13874
13875  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13876
13877
13878
13879
13880
13881
13882# If no C compiler was specified, use CC.
13883LTCC=${LTCC-"$CC"}
13884
13885# If no C compiler flags were specified, use CFLAGS.
13886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13887
13888# Allow CC to be a program name with arguments.
13889compiler=$CC
13890
13891
13892  # save warnings/boilerplate of simple test code
13893  ac_outfile=conftest.$ac_objext
13894echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13896_lt_compiler_boilerplate=`cat conftest.err`
13897$RM conftest*
13898
13899  ac_outfile=conftest.$ac_objext
13900echo "$lt_simple_link_test_code" >conftest.$ac_ext
13901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13902_lt_linker_boilerplate=`cat conftest.err`
13903$RM -r conftest*
13904
13905
13906  # Allow CC to be a program name with arguments.
13907  lt_save_CC=$CC
13908  lt_save_CFLAGS=$CFLAGS
13909  lt_save_LD=$LD
13910  lt_save_GCC=$GCC
13911  GCC=$GXX
13912  lt_save_with_gnu_ld=$with_gnu_ld
13913  lt_save_path_LD=$lt_cv_path_LD
13914  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13915    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13916  else
13917    $as_unset lt_cv_prog_gnu_ld
13918  fi
13919  if test -n "${lt_cv_path_LDCXX+set}"; then
13920    lt_cv_path_LD=$lt_cv_path_LDCXX
13921  else
13922    $as_unset lt_cv_path_LD
13923  fi
13924  test -z "${LDCXX+set}" || LD=$LDCXX
13925  CC=${CXX-"c++"}
13926  CFLAGS=$CXXFLAGS
13927  compiler=$CC
13928  compiler_CXX=$CC
13929  for cc_temp in $compiler""; do
13930  case $cc_temp in
13931    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13932    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13933    \-*) ;;
13934    *) break;;
13935  esac
13936done
13937cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13938
13939
13940  if test -n "$compiler"; then
13941    # We don't want -fno-exception when compiling C++ code, so set the
13942    # no_builtin_flag separately
13943    if test "$GXX" = yes; then
13944      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13945    else
13946      lt_prog_compiler_no_builtin_flag_CXX=
13947    fi
13948
13949    if test "$GXX" = yes; then
13950      # Set up default GNU C++ configuration
13951
13952
13953
13954# Check whether --with-gnu-ld was given.
13955if test "${with_gnu_ld+set}" = set; then :
13956  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13957else
13958  with_gnu_ld=no
13959fi
13960
13961ac_prog=ld
13962if test "$GCC" = yes; then
13963  # Check if gcc -print-prog-name=ld gives a path.
13964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13965$as_echo_n "checking for ld used by $CC... " >&6; }
13966  case $host in
13967  *-*-mingw*)
13968    # gcc leaves a trailing carriage return which upsets mingw
13969    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13970  *)
13971    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13972  esac
13973  case $ac_prog in
13974    # Accept absolute paths.
13975    [\\/]* | ?:[\\/]*)
13976      re_direlt='/[^/][^/]*/\.\./'
13977      # Canonicalize the pathname of ld
13978      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13979      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13980	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13981      done
13982      test -z "$LD" && LD="$ac_prog"
13983      ;;
13984  "")
13985    # If it fails, then pretend we aren't using GCC.
13986    ac_prog=ld
13987    ;;
13988  *)
13989    # If it is relative, then search for the first ld in PATH.
13990    with_gnu_ld=unknown
13991    ;;
13992  esac
13993elif test "$with_gnu_ld" = yes; then
13994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13995$as_echo_n "checking for GNU ld... " >&6; }
13996else
13997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13998$as_echo_n "checking for non-GNU ld... " >&6; }
13999fi
14000if ${lt_cv_path_LD+:} false; then :
14001  $as_echo_n "(cached) " >&6
14002else
14003  if test -z "$LD"; then
14004  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005  for ac_dir in $PATH; do
14006    IFS="$lt_save_ifs"
14007    test -z "$ac_dir" && ac_dir=.
14008    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14009      lt_cv_path_LD="$ac_dir/$ac_prog"
14010      # Check to see if the program is GNU ld.  I'd rather use --version,
14011      # but apparently some variants of GNU ld only accept -v.
14012      # Break only if it was the GNU/non-GNU ld that we prefer.
14013      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14014      *GNU* | *'with BFD'*)
14015	test "$with_gnu_ld" != no && break
14016	;;
14017      *)
14018	test "$with_gnu_ld" != yes && break
14019	;;
14020      esac
14021    fi
14022  done
14023  IFS="$lt_save_ifs"
14024else
14025  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14026fi
14027fi
14028
14029LD="$lt_cv_path_LD"
14030if test -n "$LD"; then
14031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14032$as_echo "$LD" >&6; }
14033else
14034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035$as_echo "no" >&6; }
14036fi
14037test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14039$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14040if ${lt_cv_prog_gnu_ld+:} false; then :
14041  $as_echo_n "(cached) " >&6
14042else
14043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14044case `$LD -v 2>&1 </dev/null` in
14045*GNU* | *'with BFD'*)
14046  lt_cv_prog_gnu_ld=yes
14047  ;;
14048*)
14049  lt_cv_prog_gnu_ld=no
14050  ;;
14051esac
14052fi
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14054$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14055with_gnu_ld=$lt_cv_prog_gnu_ld
14056
14057
14058
14059
14060
14061
14062
14063      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14064      # archiving commands below assume that GNU ld is being used.
14065      if test "$with_gnu_ld" = yes; then
14066        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14068
14069        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14070        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14071
14072        # If archive_cmds runs LD, not CC, wlarc should be empty
14073        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14074        #     investigate it a little bit more. (MM)
14075        wlarc='${wl}'
14076
14077        # ancient GNU ld didn't support --whole-archive et. al.
14078        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14079	  $GREP 'no-whole-archive' > /dev/null; then
14080          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14081        else
14082          whole_archive_flag_spec_CXX=
14083        fi
14084      else
14085        with_gnu_ld=no
14086        wlarc=
14087
14088        # A generic and very simple default shared library creation
14089        # command for GNU C++ for the case where it uses the native
14090        # linker, instead of GNU ld.  If possible, this setting should
14091        # overridden to take advantage of the native linker features on
14092        # the platform it is being used on.
14093        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14094      fi
14095
14096      # Commands to make compiler produce verbose output that lists
14097      # what "hidden" libraries, object files and flags are used when
14098      # linking a shared library.
14099      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14100
14101    else
14102      GXX=no
14103      with_gnu_ld=no
14104      wlarc=
14105    fi
14106
14107    # PORTME: fill in a description of your system's C++ link characteristics
14108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14109$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14110    ld_shlibs_CXX=yes
14111    case $host_os in
14112      aix3*)
14113        # FIXME: insert proper C++ library support
14114        ld_shlibs_CXX=no
14115        ;;
14116      aix[4-9]*)
14117        if test "$host_cpu" = ia64; then
14118          # On IA64, the linker does run time linking by default, so we don't
14119          # have to do anything special.
14120          aix_use_runtimelinking=no
14121          exp_sym_flag='-Bexport'
14122          no_entry_flag=""
14123        else
14124          aix_use_runtimelinking=no
14125
14126          # Test if we are trying to use run time linking or normal
14127          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14128          # need to do runtime linking.
14129          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14130	    for ld_flag in $LDFLAGS; do
14131	      case $ld_flag in
14132	      *-brtl*)
14133	        aix_use_runtimelinking=yes
14134	        break
14135	        ;;
14136	      esac
14137	    done
14138	    ;;
14139          esac
14140
14141          exp_sym_flag='-bexport'
14142          no_entry_flag='-bnoentry'
14143        fi
14144
14145        # When large executables or shared objects are built, AIX ld can
14146        # have problems creating the table of contents.  If linking a library
14147        # or program results in "error TOC overflow" add -mminimal-toc to
14148        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14149        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14150
14151        archive_cmds_CXX=''
14152        hardcode_direct_CXX=yes
14153        hardcode_direct_absolute_CXX=yes
14154        hardcode_libdir_separator_CXX=':'
14155        link_all_deplibs_CXX=yes
14156        file_list_spec_CXX='${wl}-f,'
14157
14158        if test "$GXX" = yes; then
14159          case $host_os in aix4.[012]|aix4.[012].*)
14160          # We only want to do this on AIX 4.2 and lower, the check
14161          # below for broken collect2 doesn't work under 4.3+
14162	  collect2name=`${CC} -print-prog-name=collect2`
14163	  if test -f "$collect2name" &&
14164	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14165	  then
14166	    # We have reworked collect2
14167	    :
14168	  else
14169	    # We have old collect2
14170	    hardcode_direct_CXX=unsupported
14171	    # It fails to find uninstalled libraries when the uninstalled
14172	    # path is not listed in the libpath.  Setting hardcode_minus_L
14173	    # to unsupported forces relinking
14174	    hardcode_minus_L_CXX=yes
14175	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14176	    hardcode_libdir_separator_CXX=
14177	  fi
14178          esac
14179          shared_flag='-shared'
14180	  if test "$aix_use_runtimelinking" = yes; then
14181	    shared_flag="$shared_flag "'${wl}-G'
14182	  fi
14183        else
14184          # not using gcc
14185          if test "$host_cpu" = ia64; then
14186	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14187	  # chokes on -Wl,-G. The following line is correct:
14188	  shared_flag='-G'
14189          else
14190	    if test "$aix_use_runtimelinking" = yes; then
14191	      shared_flag='${wl}-G'
14192	    else
14193	      shared_flag='${wl}-bM:SRE'
14194	    fi
14195          fi
14196        fi
14197
14198        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14199        # It seems that -bexpall does not export symbols beginning with
14200        # underscore (_), so it is better to generate a list of symbols to
14201	# export.
14202        always_export_symbols_CXX=yes
14203        if test "$aix_use_runtimelinking" = yes; then
14204          # Warning - without using the other runtime loading flags (-brtl),
14205          # -berok will link without error, but may produce a broken library.
14206          allow_undefined_flag_CXX='-berok'
14207          # Determine the default libpath from the value encoded in an empty
14208          # executable.
14209          if test "${lt_cv_aix_libpath+set}" = set; then
14210  aix_libpath=$lt_cv_aix_libpath
14211else
14212  if ${lt_cv_aix_libpath__CXX+:} false; then :
14213  $as_echo_n "(cached) " >&6
14214else
14215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217
14218int
14219main ()
14220{
14221
14222  ;
14223  return 0;
14224}
14225_ACEOF
14226if ac_fn_cxx_try_link "$LINENO"; then :
14227
14228  lt_aix_libpath_sed='
14229      /Import File Strings/,/^$/ {
14230	  /^0/ {
14231	      s/^0  *\([^ ]*\) *$/\1/
14232	      p
14233	  }
14234      }'
14235  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236  # Check for a 64-bit object if we didn't find anything.
14237  if test -z "$lt_cv_aix_libpath__CXX"; then
14238    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14239  fi
14240fi
14241rm -f core conftest.err conftest.$ac_objext \
14242    conftest$ac_exeext conftest.$ac_ext
14243  if test -z "$lt_cv_aix_libpath__CXX"; then
14244    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14245  fi
14246
14247fi
14248
14249  aix_libpath=$lt_cv_aix_libpath__CXX
14250fi
14251
14252          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14253
14254          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14255        else
14256          if test "$host_cpu" = ia64; then
14257	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14258	    allow_undefined_flag_CXX="-z nodefs"
14259	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14260          else
14261	    # Determine the default libpath from the value encoded in an
14262	    # empty executable.
14263	    if test "${lt_cv_aix_libpath+set}" = set; then
14264  aix_libpath=$lt_cv_aix_libpath
14265else
14266  if ${lt_cv_aix_libpath__CXX+:} false; then :
14267  $as_echo_n "(cached) " >&6
14268else
14269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270/* end confdefs.h.  */
14271
14272int
14273main ()
14274{
14275
14276  ;
14277  return 0;
14278}
14279_ACEOF
14280if ac_fn_cxx_try_link "$LINENO"; then :
14281
14282  lt_aix_libpath_sed='
14283      /Import File Strings/,/^$/ {
14284	  /^0/ {
14285	      s/^0  *\([^ ]*\) *$/\1/
14286	      p
14287	  }
14288      }'
14289  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14290  # Check for a 64-bit object if we didn't find anything.
14291  if test -z "$lt_cv_aix_libpath__CXX"; then
14292    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14293  fi
14294fi
14295rm -f core conftest.err conftest.$ac_objext \
14296    conftest$ac_exeext conftest.$ac_ext
14297  if test -z "$lt_cv_aix_libpath__CXX"; then
14298    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14299  fi
14300
14301fi
14302
14303  aix_libpath=$lt_cv_aix_libpath__CXX
14304fi
14305
14306	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14307	    # Warning - without using the other run time loading flags,
14308	    # -berok will link without error, but may produce a broken library.
14309	    no_undefined_flag_CXX=' ${wl}-bernotok'
14310	    allow_undefined_flag_CXX=' ${wl}-berok'
14311	    if test "$with_gnu_ld" = yes; then
14312	      # We only use this code for GNU lds that support --whole-archive.
14313	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14314	    else
14315	      # Exported symbols can be pulled into shared objects from archives
14316	      whole_archive_flag_spec_CXX='$convenience'
14317	    fi
14318	    archive_cmds_need_lc_CXX=yes
14319	    # This is similar to how AIX traditionally builds its shared
14320	    # libraries.
14321	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14322          fi
14323        fi
14324        ;;
14325
14326      beos*)
14327	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14328	  allow_undefined_flag_CXX=unsupported
14329	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14330	  # support --undefined.  This deserves some investigation.  FIXME
14331	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14332	else
14333	  ld_shlibs_CXX=no
14334	fi
14335	;;
14336
14337      chorus*)
14338        case $cc_basename in
14339          *)
14340	  # FIXME: insert proper C++ library support
14341	  ld_shlibs_CXX=no
14342	  ;;
14343        esac
14344        ;;
14345
14346      cygwin* | mingw* | pw32* | cegcc*)
14347	case $GXX,$cc_basename in
14348	,cl* | no,cl*)
14349	  # Native MSVC
14350	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14351	  # no search path for DLLs.
14352	  hardcode_libdir_flag_spec_CXX=' '
14353	  allow_undefined_flag_CXX=unsupported
14354	  always_export_symbols_CXX=yes
14355	  file_list_spec_CXX='@'
14356	  # Tell ltmain to make .lib files, not .a files.
14357	  libext=lib
14358	  # Tell ltmain to make .dll files, not .so files.
14359	  shrext_cmds=".dll"
14360	  # FIXME: Setting linknames here is a bad hack.
14361	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14362	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14363	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14364	    else
14365	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14366	    fi~
14367	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14368	    linknames='
14369	  # The linker will not automatically build a static lib if we build a DLL.
14370	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14371	  enable_shared_with_static_runtimes_CXX=yes
14372	  # Don't use ranlib
14373	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14374	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14375	    lt_tool_outputfile="@TOOL_OUTPUT@"~
14376	    case $lt_outputfile in
14377	      *.exe|*.EXE) ;;
14378	      *)
14379		lt_outputfile="$lt_outputfile.exe"
14380		lt_tool_outputfile="$lt_tool_outputfile.exe"
14381		;;
14382	    esac~
14383	    func_to_tool_file "$lt_outputfile"~
14384	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14385	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14386	      $RM "$lt_outputfile.manifest";
14387	    fi'
14388	  ;;
14389	*)
14390	  # g++
14391	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14392	  # as there is no search path for DLLs.
14393	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14394	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14395	  allow_undefined_flag_CXX=unsupported
14396	  always_export_symbols_CXX=no
14397	  enable_shared_with_static_runtimes_CXX=yes
14398
14399	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14400	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14401	    # If the export-symbols file already is a .def file (1st line
14402	    # is EXPORTS), use it as is; otherwise, prepend...
14403	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14404	      cp $export_symbols $output_objdir/$soname.def;
14405	    else
14406	      echo EXPORTS > $output_objdir/$soname.def;
14407	      cat $export_symbols >> $output_objdir/$soname.def;
14408	    fi~
14409	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14410	  else
14411	    ld_shlibs_CXX=no
14412	  fi
14413	  ;;
14414	esac
14415	;;
14416      darwin* | rhapsody*)
14417
14418
14419  archive_cmds_need_lc_CXX=no
14420  hardcode_direct_CXX=no
14421  hardcode_automatic_CXX=yes
14422  hardcode_shlibpath_var_CXX=unsupported
14423  if test "$lt_cv_ld_force_load" = "yes"; then
14424    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14425
14426  else
14427    whole_archive_flag_spec_CXX=''
14428  fi
14429  link_all_deplibs_CXX=yes
14430  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14431  case $cc_basename in
14432     ifort*) _lt_dar_can_shared=yes ;;
14433     *) _lt_dar_can_shared=$GCC ;;
14434  esac
14435  if test "$_lt_dar_can_shared" = "yes"; then
14436    output_verbose_link_cmd=func_echo_all
14437    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14438    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14439    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14440    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14441       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14442      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14443      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14444    fi
14445
14446  else
14447  ld_shlibs_CXX=no
14448  fi
14449
14450	;;
14451
14452      dgux*)
14453        case $cc_basename in
14454          ec++*)
14455	    # FIXME: insert proper C++ library support
14456	    ld_shlibs_CXX=no
14457	    ;;
14458          ghcx*)
14459	    # Green Hills C++ Compiler
14460	    # FIXME: insert proper C++ library support
14461	    ld_shlibs_CXX=no
14462	    ;;
14463          *)
14464	    # FIXME: insert proper C++ library support
14465	    ld_shlibs_CXX=no
14466	    ;;
14467        esac
14468        ;;
14469
14470      freebsd2.*)
14471        # C++ shared libraries reported to be fairly broken before
14472	# switch to ELF
14473        ld_shlibs_CXX=no
14474        ;;
14475
14476      freebsd-elf*)
14477        archive_cmds_need_lc_CXX=no
14478        ;;
14479
14480      freebsd* | dragonfly*)
14481        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14482        # conventions
14483        ld_shlibs_CXX=yes
14484        ;;
14485
14486      gnu*)
14487        ;;
14488
14489      haiku*)
14490        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491        link_all_deplibs_CXX=yes
14492        ;;
14493
14494      hpux9*)
14495        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14496        hardcode_libdir_separator_CXX=:
14497        export_dynamic_flag_spec_CXX='${wl}-E'
14498        hardcode_direct_CXX=yes
14499        hardcode_minus_L_CXX=yes # Not in the search PATH,
14500				             # but as the default
14501				             # location of the library.
14502
14503        case $cc_basename in
14504          CC*)
14505            # FIXME: insert proper C++ library support
14506            ld_shlibs_CXX=no
14507            ;;
14508          aCC*)
14509            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14510            # Commands to make compiler produce verbose output that lists
14511            # what "hidden" libraries, object files and flags are used when
14512            # linking a shared library.
14513            #
14514            # There doesn't appear to be a way to prevent this compiler from
14515            # explicitly linking system object files so we need to strip them
14516            # from the output so that they don't get included in the library
14517            # dependencies.
14518            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14519            ;;
14520          *)
14521            if test "$GXX" = yes; then
14522              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14523            else
14524              # FIXME: insert proper C++ library support
14525              ld_shlibs_CXX=no
14526            fi
14527            ;;
14528        esac
14529        ;;
14530
14531      hpux10*|hpux11*)
14532        if test $with_gnu_ld = no; then
14533	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14534	  hardcode_libdir_separator_CXX=:
14535
14536          case $host_cpu in
14537            hppa*64*|ia64*)
14538              ;;
14539            *)
14540	      export_dynamic_flag_spec_CXX='${wl}-E'
14541              ;;
14542          esac
14543        fi
14544        case $host_cpu in
14545          hppa*64*|ia64*)
14546            hardcode_direct_CXX=no
14547            hardcode_shlibpath_var_CXX=no
14548            ;;
14549          *)
14550            hardcode_direct_CXX=yes
14551            hardcode_direct_absolute_CXX=yes
14552            hardcode_minus_L_CXX=yes # Not in the search PATH,
14553					         # but as the default
14554					         # location of the library.
14555            ;;
14556        esac
14557
14558        case $cc_basename in
14559          CC*)
14560	    # FIXME: insert proper C++ library support
14561	    ld_shlibs_CXX=no
14562	    ;;
14563          aCC*)
14564	    case $host_cpu in
14565	      hppa*64*)
14566	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14567	        ;;
14568	      ia64*)
14569	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14570	        ;;
14571	      *)
14572	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14573	        ;;
14574	    esac
14575	    # Commands to make compiler produce verbose output that lists
14576	    # what "hidden" libraries, object files and flags are used when
14577	    # linking a shared library.
14578	    #
14579	    # There doesn't appear to be a way to prevent this compiler from
14580	    # explicitly linking system object files so we need to strip them
14581	    # from the output so that they don't get included in the library
14582	    # dependencies.
14583	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14584	    ;;
14585          *)
14586	    if test "$GXX" = yes; then
14587	      if test $with_gnu_ld = no; then
14588	        case $host_cpu in
14589	          hppa*64*)
14590	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14591	            ;;
14592	          ia64*)
14593	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14594	            ;;
14595	          *)
14596	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14597	            ;;
14598	        esac
14599	      fi
14600	    else
14601	      # FIXME: insert proper C++ library support
14602	      ld_shlibs_CXX=no
14603	    fi
14604	    ;;
14605        esac
14606        ;;
14607
14608      interix[3-9]*)
14609	hardcode_direct_CXX=no
14610	hardcode_shlibpath_var_CXX=no
14611	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14612	export_dynamic_flag_spec_CXX='${wl}-E'
14613	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14614	# Instead, shared libraries are loaded at an image base (0x10000000 by
14615	# default) and relocated if they conflict, which is a slow very memory
14616	# consuming and fragmenting process.  To avoid this, we pick a random,
14617	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14618	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14619	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14620	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14621	;;
14622      irix5* | irix6*)
14623        case $cc_basename in
14624          CC*)
14625	    # SGI C++
14626	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14627
14628	    # Archives containing C++ object files must be created using
14629	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14630	    # necessary to make sure instantiated templates are included
14631	    # in the archive.
14632	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14633	    ;;
14634          *)
14635	    if test "$GXX" = yes; then
14636	      if test "$with_gnu_ld" = no; then
14637	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14638	      else
14639	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14640	      fi
14641	    fi
14642	    link_all_deplibs_CXX=yes
14643	    ;;
14644        esac
14645        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14646        hardcode_libdir_separator_CXX=:
14647        inherit_rpath_CXX=yes
14648        ;;
14649
14650      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14651        case $cc_basename in
14652          KCC*)
14653	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14654
14655	    # KCC will only create a shared library if the output file
14656	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14657	    # to its proper name (with version) after linking.
14658	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14659	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14660	    # Commands to make compiler produce verbose output that lists
14661	    # what "hidden" libraries, object files and flags are used when
14662	    # linking a shared library.
14663	    #
14664	    # There doesn't appear to be a way to prevent this compiler from
14665	    # explicitly linking system object files so we need to strip them
14666	    # from the output so that they don't get included in the library
14667	    # dependencies.
14668	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14669
14670	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14671	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14672
14673	    # Archives containing C++ object files must be created using
14674	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14675	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14676	    ;;
14677	  icpc* | ecpc* )
14678	    # Intel C++
14679	    with_gnu_ld=yes
14680	    # version 8.0 and above of icpc choke on multiply defined symbols
14681	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14682	    # earlier do not add the objects themselves.
14683	    case `$CC -V 2>&1` in
14684	      *"Version 7."*)
14685	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14687		;;
14688	      *)  # Version 8.0 or newer
14689	        tmp_idyn=
14690	        case $host_cpu in
14691		  ia64*) tmp_idyn=' -i_dynamic';;
14692		esac
14693	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14695		;;
14696	    esac
14697	    archive_cmds_need_lc_CXX=no
14698	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14699	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14700	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14701	    ;;
14702          pgCC* | pgcpp*)
14703            # Portland Group C++ compiler
14704	    case `$CC -V` in
14705	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14706	      prelink_cmds_CXX='tpldir=Template.dir~
14707		rm -rf $tpldir~
14708		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14709		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14710	      old_archive_cmds_CXX='tpldir=Template.dir~
14711		rm -rf $tpldir~
14712		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14713		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14714		$RANLIB $oldlib'
14715	      archive_cmds_CXX='tpldir=Template.dir~
14716		rm -rf $tpldir~
14717		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14718		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14719	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14720		rm -rf $tpldir~
14721		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14722		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14723	      ;;
14724	    *) # Version 6 and above use weak symbols
14725	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14726	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14727	      ;;
14728	    esac
14729
14730	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14731	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14732	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14733            ;;
14734	  cxx*)
14735	    # Compaq C++
14736	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14737	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14738
14739	    runpath_var=LD_RUN_PATH
14740	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14741	    hardcode_libdir_separator_CXX=:
14742
14743	    # Commands to make compiler produce verbose output that lists
14744	    # what "hidden" libraries, object files and flags are used when
14745	    # linking a shared library.
14746	    #
14747	    # There doesn't appear to be a way to prevent this compiler from
14748	    # explicitly linking system object files so we need to strip them
14749	    # from the output so that they don't get included in the library
14750	    # dependencies.
14751	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14752	    ;;
14753	  xl* | mpixl* | bgxl*)
14754	    # IBM XL 8.0 on PPC, with GNU ld
14755	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14756	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758	    if test "x$supports_anon_versioning" = xyes; then
14759	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14760		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761		echo "local: *; };" >> $output_objdir/$libname.ver~
14762		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14763	    fi
14764	    ;;
14765	  *)
14766	    case `$CC -V 2>&1 | sed 5q` in
14767	    *Sun\ C*)
14768	      # Sun C++ 5.9
14769	      no_undefined_flag_CXX=' -zdefs'
14770	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14771	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14772	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14773	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14774	      compiler_needs_object_CXX=yes
14775
14776	      # Not sure whether something based on
14777	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14778	      # would be better.
14779	      output_verbose_link_cmd='func_echo_all'
14780
14781	      # Archives containing C++ object files must be created using
14782	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14783	      # necessary to make sure instantiated templates are included
14784	      # in the archive.
14785	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14786	      ;;
14787	    esac
14788	    ;;
14789	esac
14790	;;
14791
14792      lynxos*)
14793        # FIXME: insert proper C++ library support
14794	ld_shlibs_CXX=no
14795	;;
14796
14797      m88k*)
14798        # FIXME: insert proper C++ library support
14799        ld_shlibs_CXX=no
14800	;;
14801
14802      mvs*)
14803        case $cc_basename in
14804          cxx*)
14805	    # FIXME: insert proper C++ library support
14806	    ld_shlibs_CXX=no
14807	    ;;
14808	  *)
14809	    # FIXME: insert proper C++ library support
14810	    ld_shlibs_CXX=no
14811	    ;;
14812	esac
14813	;;
14814
14815      netbsd*)
14816        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14817	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14818	  wlarc=
14819	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14820	  hardcode_direct_CXX=yes
14821	  hardcode_shlibpath_var_CXX=no
14822	fi
14823	# Workaround some broken pre-1.5 toolchains
14824	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14825	;;
14826
14827      *nto* | *qnx*)
14828        ld_shlibs_CXX=yes
14829	;;
14830
14831      openbsd2*)
14832        # C++ shared libraries are fairly broken
14833	ld_shlibs_CXX=no
14834	;;
14835
14836      openbsd*)
14837	if test -f /usr/libexec/ld.so; then
14838	  hardcode_direct_CXX=yes
14839	  hardcode_shlibpath_var_CXX=no
14840	  hardcode_direct_absolute_CXX=yes
14841	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14842	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14843	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14844	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14845	    export_dynamic_flag_spec_CXX='${wl}-E'
14846	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14847	  fi
14848	  output_verbose_link_cmd=func_echo_all
14849	else
14850	  ld_shlibs_CXX=no
14851	fi
14852	;;
14853
14854      osf3* | osf4* | osf5*)
14855        case $cc_basename in
14856          KCC*)
14857	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14858
14859	    # KCC will only create a shared library if the output file
14860	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14861	    # to its proper name (with version) after linking.
14862	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14863
14864	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14865	    hardcode_libdir_separator_CXX=:
14866
14867	    # Archives containing C++ object files must be created using
14868	    # the KAI C++ compiler.
14869	    case $host in
14870	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14871	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14872	    esac
14873	    ;;
14874          RCC*)
14875	    # Rational C++ 2.4.1
14876	    # FIXME: insert proper C++ library support
14877	    ld_shlibs_CXX=no
14878	    ;;
14879          cxx*)
14880	    case $host in
14881	      osf3*)
14882	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14883	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14884	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14885		;;
14886	      *)
14887	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14888	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14889	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14890	          echo "-hidden">> $lib.exp~
14891	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14892	          $RM $lib.exp'
14893	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14894		;;
14895	    esac
14896
14897	    hardcode_libdir_separator_CXX=:
14898
14899	    # Commands to make compiler produce verbose output that lists
14900	    # what "hidden" libraries, object files and flags are used when
14901	    # linking a shared library.
14902	    #
14903	    # There doesn't appear to be a way to prevent this compiler from
14904	    # explicitly linking system object files so we need to strip them
14905	    # from the output so that they don't get included in the library
14906	    # dependencies.
14907	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14908	    ;;
14909	  *)
14910	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14911	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14912	      case $host in
14913	        osf3*)
14914	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14915		  ;;
14916	        *)
14917	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14918		  ;;
14919	      esac
14920
14921	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14922	      hardcode_libdir_separator_CXX=:
14923
14924	      # Commands to make compiler produce verbose output that lists
14925	      # what "hidden" libraries, object files and flags are used when
14926	      # linking a shared library.
14927	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14928
14929	    else
14930	      # FIXME: insert proper C++ library support
14931	      ld_shlibs_CXX=no
14932	    fi
14933	    ;;
14934        esac
14935        ;;
14936
14937      psos*)
14938        # FIXME: insert proper C++ library support
14939        ld_shlibs_CXX=no
14940        ;;
14941
14942      sunos4*)
14943        case $cc_basename in
14944          CC*)
14945	    # Sun C++ 4.x
14946	    # FIXME: insert proper C++ library support
14947	    ld_shlibs_CXX=no
14948	    ;;
14949          lcc*)
14950	    # Lucid
14951	    # FIXME: insert proper C++ library support
14952	    ld_shlibs_CXX=no
14953	    ;;
14954          *)
14955	    # FIXME: insert proper C++ library support
14956	    ld_shlibs_CXX=no
14957	    ;;
14958        esac
14959        ;;
14960
14961      solaris*)
14962        case $cc_basename in
14963          CC* | sunCC*)
14964	    # Sun C++ 4.2, 5.x and Centerline C++
14965            archive_cmds_need_lc_CXX=yes
14966	    no_undefined_flag_CXX=' -zdefs'
14967	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14968	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14969	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14970
14971	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14972	    hardcode_shlibpath_var_CXX=no
14973	    case $host_os in
14974	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14975	      *)
14976		# The compiler driver will combine and reorder linker options,
14977		# but understands `-z linker_flag'.
14978	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14979		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14980	        ;;
14981	    esac
14982	    link_all_deplibs_CXX=yes
14983
14984	    output_verbose_link_cmd='func_echo_all'
14985
14986	    # Archives containing C++ object files must be created using
14987	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14988	    # necessary to make sure instantiated templates are included
14989	    # in the archive.
14990	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14991	    ;;
14992          gcx*)
14993	    # Green Hills C++ Compiler
14994	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14995
14996	    # The C++ compiler must be used to create the archive.
14997	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14998	    ;;
14999          *)
15000	    # GNU C++ compiler with Solaris linker
15001	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15002	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15003	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15004	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15005	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15006		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15007
15008	        # Commands to make compiler produce verbose output that lists
15009	        # what "hidden" libraries, object files and flags are used when
15010	        # linking a shared library.
15011	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15012	      else
15013	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15014	        # platform.
15015	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15016	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15017		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15018
15019	        # Commands to make compiler produce verbose output that lists
15020	        # what "hidden" libraries, object files and flags are used when
15021	        # linking a shared library.
15022	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15023	      fi
15024
15025	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15026	      case $host_os in
15027		solaris2.[0-5] | solaris2.[0-5].*) ;;
15028		*)
15029		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15030		  ;;
15031	      esac
15032	    fi
15033	    ;;
15034        esac
15035        ;;
15036
15037    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15038      no_undefined_flag_CXX='${wl}-z,text'
15039      archive_cmds_need_lc_CXX=no
15040      hardcode_shlibpath_var_CXX=no
15041      runpath_var='LD_RUN_PATH'
15042
15043      case $cc_basename in
15044        CC*)
15045	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047	  ;;
15048	*)
15049	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15051	  ;;
15052      esac
15053      ;;
15054
15055      sysv5* | sco3.2v5* | sco5v6*)
15056	# Note: We can NOT use -z defs as we might desire, because we do not
15057	# link with -lc, and that would cause any symbols used from libc to
15058	# always be unresolved, which means just about no library would
15059	# ever link correctly.  If we're not using GNU ld we use -z text
15060	# though, which does catch some bad symbols but isn't as heavy-handed
15061	# as -z defs.
15062	no_undefined_flag_CXX='${wl}-z,text'
15063	allow_undefined_flag_CXX='${wl}-z,nodefs'
15064	archive_cmds_need_lc_CXX=no
15065	hardcode_shlibpath_var_CXX=no
15066	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15067	hardcode_libdir_separator_CXX=':'
15068	link_all_deplibs_CXX=yes
15069	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15070	runpath_var='LD_RUN_PATH'
15071
15072	case $cc_basename in
15073          CC*)
15074	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15076	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15077	      '"$old_archive_cmds_CXX"
15078	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15079	      '"$reload_cmds_CXX"
15080	    ;;
15081	  *)
15082	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15083	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15084	    ;;
15085	esac
15086      ;;
15087
15088      tandem*)
15089        case $cc_basename in
15090          NCC*)
15091	    # NonStop-UX NCC 3.20
15092	    # FIXME: insert proper C++ library support
15093	    ld_shlibs_CXX=no
15094	    ;;
15095          *)
15096	    # FIXME: insert proper C++ library support
15097	    ld_shlibs_CXX=no
15098	    ;;
15099        esac
15100        ;;
15101
15102      vxworks*)
15103        # FIXME: insert proper C++ library support
15104        ld_shlibs_CXX=no
15105        ;;
15106
15107      *)
15108        # FIXME: insert proper C++ library support
15109        ld_shlibs_CXX=no
15110        ;;
15111    esac
15112
15113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15114$as_echo "$ld_shlibs_CXX" >&6; }
15115    test "$ld_shlibs_CXX" = no && can_build_shared=no
15116
15117    GCC_CXX="$GXX"
15118    LD_CXX="$LD"
15119
15120    ## CAVEAT EMPTOR:
15121    ## There is no encapsulation within the following macros, do not change
15122    ## the running order or otherwise move them around unless you know exactly
15123    ## what you are doing...
15124    # Dependencies to place before and after the object being linked:
15125predep_objects_CXX=
15126postdep_objects_CXX=
15127predeps_CXX=
15128postdeps_CXX=
15129compiler_lib_search_path_CXX=
15130
15131cat > conftest.$ac_ext <<_LT_EOF
15132class Foo
15133{
15134public:
15135  Foo (void) { a = 0; }
15136private:
15137  int a;
15138};
15139_LT_EOF
15140
15141
15142_lt_libdeps_save_CFLAGS=$CFLAGS
15143case "$CC $CFLAGS " in #(
15144*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15145*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15146*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15147esac
15148
15149if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15150  (eval $ac_compile) 2>&5
15151  ac_status=$?
15152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15153  test $ac_status = 0; }; then
15154  # Parse the compiler output and extract the necessary
15155  # objects, libraries and library flags.
15156
15157  # Sentinel used to keep track of whether or not we are before
15158  # the conftest object file.
15159  pre_test_object_deps_done=no
15160
15161  for p in `eval "$output_verbose_link_cmd"`; do
15162    case ${prev}${p} in
15163
15164    -L* | -R* | -l*)
15165       # Some compilers place space between "-{L,R}" and the path.
15166       # Remove the space.
15167       if test $p = "-L" ||
15168          test $p = "-R"; then
15169	 prev=$p
15170	 continue
15171       fi
15172
15173       # Expand the sysroot to ease extracting the directories later.
15174       if test -z "$prev"; then
15175         case $p in
15176         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15177         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15178         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15179         esac
15180       fi
15181       case $p in
15182       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15183       esac
15184       if test "$pre_test_object_deps_done" = no; then
15185	 case ${prev} in
15186	 -L | -R)
15187	   # Internal compiler library paths should come after those
15188	   # provided the user.  The postdeps already come after the
15189	   # user supplied libs so there is no need to process them.
15190	   if test -z "$compiler_lib_search_path_CXX"; then
15191	     compiler_lib_search_path_CXX="${prev}${p}"
15192	   else
15193	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15194	   fi
15195	   ;;
15196	 # The "-l" case would never come before the object being
15197	 # linked, so don't bother handling this case.
15198	 esac
15199       else
15200	 if test -z "$postdeps_CXX"; then
15201	   postdeps_CXX="${prev}${p}"
15202	 else
15203	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15204	 fi
15205       fi
15206       prev=
15207       ;;
15208
15209    *.lto.$objext) ;; # Ignore GCC LTO objects
15210    *.$objext)
15211       # This assumes that the test object file only shows up
15212       # once in the compiler output.
15213       if test "$p" = "conftest.$objext"; then
15214	 pre_test_object_deps_done=yes
15215	 continue
15216       fi
15217
15218       if test "$pre_test_object_deps_done" = no; then
15219	 if test -z "$predep_objects_CXX"; then
15220	   predep_objects_CXX="$p"
15221	 else
15222	   predep_objects_CXX="$predep_objects_CXX $p"
15223	 fi
15224       else
15225	 if test -z "$postdep_objects_CXX"; then
15226	   postdep_objects_CXX="$p"
15227	 else
15228	   postdep_objects_CXX="$postdep_objects_CXX $p"
15229	 fi
15230       fi
15231       ;;
15232
15233    *) ;; # Ignore the rest.
15234
15235    esac
15236  done
15237
15238  # Clean up.
15239  rm -f a.out a.exe
15240else
15241  echo "libtool.m4: error: problem compiling CXX test program"
15242fi
15243
15244$RM -f confest.$objext
15245CFLAGS=$_lt_libdeps_save_CFLAGS
15246
15247# PORTME: override above test on systems where it is broken
15248case $host_os in
15249interix[3-9]*)
15250  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15251  # hack all around it, let's just trust "g++" to DTRT.
15252  predep_objects_CXX=
15253  postdep_objects_CXX=
15254  postdeps_CXX=
15255  ;;
15256
15257linux*)
15258  case `$CC -V 2>&1 | sed 5q` in
15259  *Sun\ C*)
15260    # Sun C++ 5.9
15261
15262    # The more standards-conforming stlport4 library is
15263    # incompatible with the Cstd library. Avoid specifying
15264    # it if it's in CXXFLAGS. Ignore libCrun as
15265    # -library=stlport4 depends on it.
15266    case " $CXX $CXXFLAGS " in
15267    *" -library=stlport4 "*)
15268      solaris_use_stlport4=yes
15269      ;;
15270    esac
15271
15272    if test "$solaris_use_stlport4" != yes; then
15273      postdeps_CXX='-library=Cstd -library=Crun'
15274    fi
15275    ;;
15276  esac
15277  ;;
15278
15279solaris*)
15280  case $cc_basename in
15281  CC* | sunCC*)
15282    # The more standards-conforming stlport4 library is
15283    # incompatible with the Cstd library. Avoid specifying
15284    # it if it's in CXXFLAGS. Ignore libCrun as
15285    # -library=stlport4 depends on it.
15286    case " $CXX $CXXFLAGS " in
15287    *" -library=stlport4 "*)
15288      solaris_use_stlport4=yes
15289      ;;
15290    esac
15291
15292    # Adding this requires a known-good setup of shared libraries for
15293    # Sun compiler versions before 5.6, else PIC objects from an old
15294    # archive will be linked into the output, leading to subtle bugs.
15295    if test "$solaris_use_stlport4" != yes; then
15296      postdeps_CXX='-library=Cstd -library=Crun'
15297    fi
15298    ;;
15299  esac
15300  ;;
15301esac
15302
15303
15304case " $postdeps_CXX " in
15305*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15306esac
15307 compiler_lib_search_dirs_CXX=
15308if test -n "${compiler_lib_search_path_CXX}"; then
15309 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15310fi
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342    lt_prog_compiler_wl_CXX=
15343lt_prog_compiler_pic_CXX=
15344lt_prog_compiler_static_CXX=
15345
15346
15347  # C++ specific cases for pic, static, wl, etc.
15348  if test "$GXX" = yes; then
15349    lt_prog_compiler_wl_CXX='-Wl,'
15350    lt_prog_compiler_static_CXX='-static'
15351
15352    case $host_os in
15353    aix*)
15354      # All AIX code is PIC.
15355      if test "$host_cpu" = ia64; then
15356	# AIX 5 now supports IA64 processor
15357	lt_prog_compiler_static_CXX='-Bstatic'
15358      fi
15359      ;;
15360
15361    amigaos*)
15362      case $host_cpu in
15363      powerpc)
15364            # see comment about AmigaOS4 .so support
15365            lt_prog_compiler_pic_CXX='-fPIC'
15366        ;;
15367      m68k)
15368            # FIXME: we need at least 68020 code to build shared libraries, but
15369            # adding the `-m68020' flag to GCC prevents building anything better,
15370            # like `-m68040'.
15371            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15372        ;;
15373      esac
15374      ;;
15375
15376    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15377      # PIC is the default for these OSes.
15378      ;;
15379    mingw* | cygwin* | os2* | pw32* | cegcc*)
15380      # This hack is so that the source file can tell whether it is being
15381      # built for inclusion in a dll (and should export symbols for example).
15382      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15383      # (--disable-auto-import) libraries
15384      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15385      ;;
15386    darwin* | rhapsody*)
15387      # PIC is the default on this platform
15388      # Common symbols not allowed in MH_DYLIB files
15389      lt_prog_compiler_pic_CXX='-fno-common'
15390      ;;
15391    *djgpp*)
15392      # DJGPP does not support shared libraries at all
15393      lt_prog_compiler_pic_CXX=
15394      ;;
15395    haiku*)
15396      # PIC is the default for Haiku.
15397      # The "-static" flag exists, but is broken.
15398      lt_prog_compiler_static_CXX=
15399      ;;
15400    interix[3-9]*)
15401      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15402      # Instead, we relocate shared libraries at runtime.
15403      ;;
15404    sysv4*MP*)
15405      if test -d /usr/nec; then
15406	lt_prog_compiler_pic_CXX=-Kconform_pic
15407      fi
15408      ;;
15409    hpux*)
15410      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15411      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15412      # sets the default TLS model and affects inlining.
15413      case $host_cpu in
15414      hppa*64*)
15415	;;
15416      *)
15417	lt_prog_compiler_pic_CXX='-fPIC'
15418	;;
15419      esac
15420      ;;
15421    *qnx* | *nto*)
15422      # QNX uses GNU C++, but need to define -shared option too, otherwise
15423      # it will coredump.
15424      lt_prog_compiler_pic_CXX='-fPIC -shared'
15425      ;;
15426    *)
15427      lt_prog_compiler_pic_CXX='-fPIC'
15428      ;;
15429    esac
15430  else
15431    case $host_os in
15432      aix[4-9]*)
15433	# All AIX code is PIC.
15434	if test "$host_cpu" = ia64; then
15435	  # AIX 5 now supports IA64 processor
15436	  lt_prog_compiler_static_CXX='-Bstatic'
15437	else
15438	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15439	fi
15440	;;
15441      chorus*)
15442	case $cc_basename in
15443	cxch68*)
15444	  # Green Hills C++ Compiler
15445	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15446	  ;;
15447	esac
15448	;;
15449      mingw* | cygwin* | os2* | pw32* | cegcc*)
15450	# This hack is so that the source file can tell whether it is being
15451	# built for inclusion in a dll (and should export symbols for example).
15452	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15453	;;
15454      dgux*)
15455	case $cc_basename in
15456	  ec++*)
15457	    lt_prog_compiler_pic_CXX='-KPIC'
15458	    ;;
15459	  ghcx*)
15460	    # Green Hills C++ Compiler
15461	    lt_prog_compiler_pic_CXX='-pic'
15462	    ;;
15463	  *)
15464	    ;;
15465	esac
15466	;;
15467      freebsd* | dragonfly*)
15468	# FreeBSD uses GNU C++
15469	;;
15470      hpux9* | hpux10* | hpux11*)
15471	case $cc_basename in
15472	  CC*)
15473	    lt_prog_compiler_wl_CXX='-Wl,'
15474	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15475	    if test "$host_cpu" != ia64; then
15476	      lt_prog_compiler_pic_CXX='+Z'
15477	    fi
15478	    ;;
15479	  aCC*)
15480	    lt_prog_compiler_wl_CXX='-Wl,'
15481	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15482	    case $host_cpu in
15483	    hppa*64*|ia64*)
15484	      # +Z the default
15485	      ;;
15486	    *)
15487	      lt_prog_compiler_pic_CXX='+Z'
15488	      ;;
15489	    esac
15490	    ;;
15491	  *)
15492	    ;;
15493	esac
15494	;;
15495      interix*)
15496	# This is c89, which is MS Visual C++ (no shared libs)
15497	# Anyone wants to do a port?
15498	;;
15499      irix5* | irix6* | nonstopux*)
15500	case $cc_basename in
15501	  CC*)
15502	    lt_prog_compiler_wl_CXX='-Wl,'
15503	    lt_prog_compiler_static_CXX='-non_shared'
15504	    # CC pic flag -KPIC is the default.
15505	    ;;
15506	  *)
15507	    ;;
15508	esac
15509	;;
15510      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15511	case $cc_basename in
15512	  KCC*)
15513	    # KAI C++ Compiler
15514	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15515	    lt_prog_compiler_pic_CXX='-fPIC'
15516	    ;;
15517	  ecpc* )
15518	    # old Intel C++ for x86_64 which still supported -KPIC.
15519	    lt_prog_compiler_wl_CXX='-Wl,'
15520	    lt_prog_compiler_pic_CXX='-KPIC'
15521	    lt_prog_compiler_static_CXX='-static'
15522	    ;;
15523	  icpc* )
15524	    # Intel C++, used to be incompatible with GCC.
15525	    # ICC 10 doesn't accept -KPIC any more.
15526	    lt_prog_compiler_wl_CXX='-Wl,'
15527	    lt_prog_compiler_pic_CXX='-fPIC'
15528	    lt_prog_compiler_static_CXX='-static'
15529	    ;;
15530	  pgCC* | pgcpp*)
15531	    # Portland Group C++ compiler
15532	    lt_prog_compiler_wl_CXX='-Wl,'
15533	    lt_prog_compiler_pic_CXX='-fpic'
15534	    lt_prog_compiler_static_CXX='-Bstatic'
15535	    ;;
15536	  cxx*)
15537	    # Compaq C++
15538	    # Make sure the PIC flag is empty.  It appears that all Alpha
15539	    # Linux and Compaq Tru64 Unix objects are PIC.
15540	    lt_prog_compiler_pic_CXX=
15541	    lt_prog_compiler_static_CXX='-non_shared'
15542	    ;;
15543	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15544	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15545	    lt_prog_compiler_wl_CXX='-Wl,'
15546	    lt_prog_compiler_pic_CXX='-qpic'
15547	    lt_prog_compiler_static_CXX='-qstaticlink'
15548	    ;;
15549	  *)
15550	    case `$CC -V 2>&1 | sed 5q` in
15551	    *Sun\ C*)
15552	      # Sun C++ 5.9
15553	      lt_prog_compiler_pic_CXX='-KPIC'
15554	      lt_prog_compiler_static_CXX='-Bstatic'
15555	      lt_prog_compiler_wl_CXX='-Qoption ld '
15556	      ;;
15557	    esac
15558	    ;;
15559	esac
15560	;;
15561      lynxos*)
15562	;;
15563      m88k*)
15564	;;
15565      mvs*)
15566	case $cc_basename in
15567	  cxx*)
15568	    lt_prog_compiler_pic_CXX='-W c,exportall'
15569	    ;;
15570	  *)
15571	    ;;
15572	esac
15573	;;
15574      netbsd*)
15575	;;
15576      *qnx* | *nto*)
15577        # QNX uses GNU C++, but need to define -shared option too, otherwise
15578        # it will coredump.
15579        lt_prog_compiler_pic_CXX='-fPIC -shared'
15580        ;;
15581      osf3* | osf4* | osf5*)
15582	case $cc_basename in
15583	  KCC*)
15584	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15585	    ;;
15586	  RCC*)
15587	    # Rational C++ 2.4.1
15588	    lt_prog_compiler_pic_CXX='-pic'
15589	    ;;
15590	  cxx*)
15591	    # Digital/Compaq C++
15592	    lt_prog_compiler_wl_CXX='-Wl,'
15593	    # Make sure the PIC flag is empty.  It appears that all Alpha
15594	    # Linux and Compaq Tru64 Unix objects are PIC.
15595	    lt_prog_compiler_pic_CXX=
15596	    lt_prog_compiler_static_CXX='-non_shared'
15597	    ;;
15598	  *)
15599	    ;;
15600	esac
15601	;;
15602      psos*)
15603	;;
15604      solaris*)
15605	case $cc_basename in
15606	  CC* | sunCC*)
15607	    # Sun C++ 4.2, 5.x and Centerline C++
15608	    lt_prog_compiler_pic_CXX='-KPIC'
15609	    lt_prog_compiler_static_CXX='-Bstatic'
15610	    lt_prog_compiler_wl_CXX='-Qoption ld '
15611	    ;;
15612	  gcx*)
15613	    # Green Hills C++ Compiler
15614	    lt_prog_compiler_pic_CXX='-PIC'
15615	    ;;
15616	  *)
15617	    ;;
15618	esac
15619	;;
15620      sunos4*)
15621	case $cc_basename in
15622	  CC*)
15623	    # Sun C++ 4.x
15624	    lt_prog_compiler_pic_CXX='-pic'
15625	    lt_prog_compiler_static_CXX='-Bstatic'
15626	    ;;
15627	  lcc*)
15628	    # Lucid
15629	    lt_prog_compiler_pic_CXX='-pic'
15630	    ;;
15631	  *)
15632	    ;;
15633	esac
15634	;;
15635      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15636	case $cc_basename in
15637	  CC*)
15638	    lt_prog_compiler_wl_CXX='-Wl,'
15639	    lt_prog_compiler_pic_CXX='-KPIC'
15640	    lt_prog_compiler_static_CXX='-Bstatic'
15641	    ;;
15642	esac
15643	;;
15644      tandem*)
15645	case $cc_basename in
15646	  NCC*)
15647	    # NonStop-UX NCC 3.20
15648	    lt_prog_compiler_pic_CXX='-KPIC'
15649	    ;;
15650	  *)
15651	    ;;
15652	esac
15653	;;
15654      vxworks*)
15655	;;
15656      *)
15657	lt_prog_compiler_can_build_shared_CXX=no
15658	;;
15659    esac
15660  fi
15661
15662case $host_os in
15663  # For platforms which do not support PIC, -DPIC is meaningless:
15664  *djgpp*)
15665    lt_prog_compiler_pic_CXX=
15666    ;;
15667  *)
15668    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15669    ;;
15670esac
15671
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15674if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15675  $as_echo_n "(cached) " >&6
15676else
15677  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15678fi
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15680$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15681lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15682
15683#
15684# Check to make sure the PIC flag actually works.
15685#
15686if test -n "$lt_prog_compiler_pic_CXX"; then
15687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15689if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15690  $as_echo_n "(cached) " >&6
15691else
15692  lt_cv_prog_compiler_pic_works_CXX=no
15693   ac_outfile=conftest.$ac_objext
15694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15695   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15696   # Insert the option either (1) after the last *FLAGS variable, or
15697   # (2) before a word containing "conftest.", or (3) at the end.
15698   # Note that $ac_compile itself does not contain backslashes and begins
15699   # with a dollar sign (not a hyphen), so the echo should work correctly.
15700   # The option is referenced via a variable to avoid confusing sed.
15701   lt_compile=`echo "$ac_compile" | $SED \
15702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15704   -e 's:$: $lt_compiler_flag:'`
15705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15706   (eval "$lt_compile" 2>conftest.err)
15707   ac_status=$?
15708   cat conftest.err >&5
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   if (exit $ac_status) && test -s "$ac_outfile"; then
15711     # The compiler can only warn and ignore the option if not recognized
15712     # So say no if there are warnings other than the usual output.
15713     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15716       lt_cv_prog_compiler_pic_works_CXX=yes
15717     fi
15718   fi
15719   $RM conftest*
15720
15721fi
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15723$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15724
15725if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15726    case $lt_prog_compiler_pic_CXX in
15727     "" | " "*) ;;
15728     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15729     esac
15730else
15731    lt_prog_compiler_pic_CXX=
15732     lt_prog_compiler_can_build_shared_CXX=no
15733fi
15734
15735fi
15736
15737
15738
15739
15740
15741#
15742# Check to make sure the static flag actually works.
15743#
15744wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15746$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15747if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15748  $as_echo_n "(cached) " >&6
15749else
15750  lt_cv_prog_compiler_static_works_CXX=no
15751   save_LDFLAGS="$LDFLAGS"
15752   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15753   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15754   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15755     # The linker can only warn and ignore the option if not recognized
15756     # So say no if there are warnings
15757     if test -s conftest.err; then
15758       # Append any errors to the config.log.
15759       cat conftest.err 1>&5
15760       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15761       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15762       if diff conftest.exp conftest.er2 >/dev/null; then
15763         lt_cv_prog_compiler_static_works_CXX=yes
15764       fi
15765     else
15766       lt_cv_prog_compiler_static_works_CXX=yes
15767     fi
15768   fi
15769   $RM -r conftest*
15770   LDFLAGS="$save_LDFLAGS"
15771
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15774$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15775
15776if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15777    :
15778else
15779    lt_prog_compiler_static_CXX=
15780fi
15781
15782
15783
15784
15785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15787if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15788  $as_echo_n "(cached) " >&6
15789else
15790  lt_cv_prog_compiler_c_o_CXX=no
15791   $RM -r conftest 2>/dev/null
15792   mkdir conftest
15793   cd conftest
15794   mkdir out
15795   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15796
15797   lt_compiler_flag="-o out/conftest2.$ac_objext"
15798   # Insert the option either (1) after the last *FLAGS variable, or
15799   # (2) before a word containing "conftest.", or (3) at the end.
15800   # Note that $ac_compile itself does not contain backslashes and begins
15801   # with a dollar sign (not a hyphen), so the echo should work correctly.
15802   lt_compile=`echo "$ac_compile" | $SED \
15803   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15805   -e 's:$: $lt_compiler_flag:'`
15806   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15807   (eval "$lt_compile" 2>out/conftest.err)
15808   ac_status=$?
15809   cat out/conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15812   then
15813     # The compiler can only warn and ignore the option if not recognized
15814     # So say no if there are warnings
15815     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15816     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15817     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15818       lt_cv_prog_compiler_c_o_CXX=yes
15819     fi
15820   fi
15821   chmod u+w . 2>&5
15822   $RM conftest*
15823   # SGI C++ compiler will create directory out/ii_files/ for
15824   # template instantiation
15825   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15826   $RM out/* && rmdir out
15827   cd ..
15828   $RM -r conftest
15829   $RM conftest*
15830
15831fi
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15833$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15834
15835
15836
15837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15839if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15840  $as_echo_n "(cached) " >&6
15841else
15842  lt_cv_prog_compiler_c_o_CXX=no
15843   $RM -r conftest 2>/dev/null
15844   mkdir conftest
15845   cd conftest
15846   mkdir out
15847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15848
15849   lt_compiler_flag="-o out/conftest2.$ac_objext"
15850   # Insert the option either (1) after the last *FLAGS variable, or
15851   # (2) before a word containing "conftest.", or (3) at the end.
15852   # Note that $ac_compile itself does not contain backslashes and begins
15853   # with a dollar sign (not a hyphen), so the echo should work correctly.
15854   lt_compile=`echo "$ac_compile" | $SED \
15855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15857   -e 's:$: $lt_compiler_flag:'`
15858   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15859   (eval "$lt_compile" 2>out/conftest.err)
15860   ac_status=$?
15861   cat out/conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15864   then
15865     # The compiler can only warn and ignore the option if not recognized
15866     # So say no if there are warnings
15867     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15868     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15869     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15870       lt_cv_prog_compiler_c_o_CXX=yes
15871     fi
15872   fi
15873   chmod u+w . 2>&5
15874   $RM conftest*
15875   # SGI C++ compiler will create directory out/ii_files/ for
15876   # template instantiation
15877   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15878   $RM out/* && rmdir out
15879   cd ..
15880   $RM -r conftest
15881   $RM conftest*
15882
15883fi
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15885$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15886
15887
15888
15889
15890hard_links="nottested"
15891if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15892  # do not overwrite the value of need_locks provided by the user
15893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15894$as_echo_n "checking if we can lock with hard links... " >&6; }
15895  hard_links=yes
15896  $RM conftest*
15897  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15898  touch conftest.a
15899  ln conftest.a conftest.b 2>&5 || hard_links=no
15900  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15902$as_echo "$hard_links" >&6; }
15903  if test "$hard_links" = no; then
15904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15905$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15906    need_locks=warn
15907  fi
15908else
15909  need_locks=no
15910fi
15911
15912
15913
15914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15915$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15916
15917  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15918  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15919  case $host_os in
15920  aix[4-9]*)
15921    # If we're using GNU nm, then we don't want the "-C" option.
15922    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15923    # Also, AIX nm treats weak defined symbols like other global defined
15924    # symbols, whereas GNU nm marks them as "W".
15925    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15926      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15927    else
15928      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15929    fi
15930    ;;
15931  pw32*)
15932    export_symbols_cmds_CXX="$ltdll_cmds"
15933    ;;
15934  cygwin* | mingw* | cegcc*)
15935    case $cc_basename in
15936    cl*)
15937      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15938      ;;
15939    *)
15940      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15941      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15942      ;;
15943    esac
15944    ;;
15945  *)
15946    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15947    ;;
15948  esac
15949
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15951$as_echo "$ld_shlibs_CXX" >&6; }
15952test "$ld_shlibs_CXX" = no && can_build_shared=no
15953
15954with_gnu_ld_CXX=$with_gnu_ld
15955
15956
15957
15958
15959
15960
15961#
15962# Do we need to explicitly link libc?
15963#
15964case "x$archive_cmds_need_lc_CXX" in
15965x|xyes)
15966  # Assume -lc should be added
15967  archive_cmds_need_lc_CXX=yes
15968
15969  if test "$enable_shared" = yes && test "$GCC" = yes; then
15970    case $archive_cmds_CXX in
15971    *'~'*)
15972      # FIXME: we may have to deal with multi-command sequences.
15973      ;;
15974    '$CC '*)
15975      # Test whether the compiler implicitly links with -lc since on some
15976      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15977      # to ld, don't add -lc before -lgcc.
15978      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15979$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15980if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15981  $as_echo_n "(cached) " >&6
15982else
15983  $RM conftest*
15984	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15985
15986	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15987  (eval $ac_compile) 2>&5
15988  ac_status=$?
15989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15990  test $ac_status = 0; } 2>conftest.err; then
15991	  soname=conftest
15992	  lib=conftest
15993	  libobjs=conftest.$ac_objext
15994	  deplibs=
15995	  wl=$lt_prog_compiler_wl_CXX
15996	  pic_flag=$lt_prog_compiler_pic_CXX
15997	  compiler_flags=-v
15998	  linker_flags=-v
15999	  verstring=
16000	  output_objdir=.
16001	  libname=conftest
16002	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16003	  allow_undefined_flag_CXX=
16004	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16005  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16006  ac_status=$?
16007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008  test $ac_status = 0; }
16009	  then
16010	    lt_cv_archive_cmds_need_lc_CXX=no
16011	  else
16012	    lt_cv_archive_cmds_need_lc_CXX=yes
16013	  fi
16014	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16015	else
16016	  cat conftest.err 1>&5
16017	fi
16018	$RM conftest*
16019
16020fi
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16022$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16023      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16024      ;;
16025    esac
16026  fi
16027  ;;
16028esac
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16092$as_echo_n "checking dynamic linker characteristics... " >&6; }
16093
16094library_names_spec=
16095libname_spec='lib$name'
16096soname_spec=
16097shrext_cmds=".so"
16098postinstall_cmds=
16099postuninstall_cmds=
16100finish_cmds=
16101finish_eval=
16102shlibpath_var=
16103shlibpath_overrides_runpath=unknown
16104version_type=none
16105dynamic_linker="$host_os ld.so"
16106sys_lib_dlsearch_path_spec="/lib /usr/lib"
16107need_lib_prefix=unknown
16108hardcode_into_libs=no
16109
16110# when you set need_version to no, make sure it does not cause -set_version
16111# flags to be left without arguments
16112need_version=unknown
16113
16114case $host_os in
16115aix3*)
16116  version_type=linux # correct to gnu/linux during the next big refactor
16117  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16118  shlibpath_var=LIBPATH
16119
16120  # AIX 3 has no versioning support, so we append a major version to the name.
16121  soname_spec='${libname}${release}${shared_ext}$major'
16122  ;;
16123
16124aix[4-9]*)
16125  version_type=linux # correct to gnu/linux during the next big refactor
16126  need_lib_prefix=no
16127  need_version=no
16128  hardcode_into_libs=yes
16129  if test "$host_cpu" = ia64; then
16130    # AIX 5 supports IA64
16131    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16132    shlibpath_var=LD_LIBRARY_PATH
16133  else
16134    # With GCC up to 2.95.x, collect2 would create an import file
16135    # for dependence libraries.  The import file would start with
16136    # the line `#! .'.  This would cause the generated library to
16137    # depend on `.', always an invalid library.  This was fixed in
16138    # development snapshots of GCC prior to 3.0.
16139    case $host_os in
16140      aix4 | aix4.[01] | aix4.[01].*)
16141      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16142	   echo ' yes '
16143	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16144	:
16145      else
16146	can_build_shared=no
16147      fi
16148      ;;
16149    esac
16150    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16151    # soname into executable. Probably we can add versioning support to
16152    # collect2, so additional links can be useful in future.
16153    if test "$aix_use_runtimelinking" = yes; then
16154      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16155      # instead of lib<name>.a to let people know that these are not
16156      # typical AIX shared libraries.
16157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158    else
16159      # We preserve .a as extension for shared libraries through AIX4.2
16160      # and later when we are not doing run time linking.
16161      library_names_spec='${libname}${release}.a $libname.a'
16162      soname_spec='${libname}${release}${shared_ext}$major'
16163    fi
16164    shlibpath_var=LIBPATH
16165  fi
16166  ;;
16167
16168amigaos*)
16169  case $host_cpu in
16170  powerpc)
16171    # Since July 2007 AmigaOS4 officially supports .so libraries.
16172    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174    ;;
16175  m68k)
16176    library_names_spec='$libname.ixlibrary $libname.a'
16177    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16178    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16179    ;;
16180  esac
16181  ;;
16182
16183beos*)
16184  library_names_spec='${libname}${shared_ext}'
16185  dynamic_linker="$host_os ld.so"
16186  shlibpath_var=LIBRARY_PATH
16187  ;;
16188
16189bsdi[45]*)
16190  version_type=linux # correct to gnu/linux during the next big refactor
16191  need_version=no
16192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193  soname_spec='${libname}${release}${shared_ext}$major'
16194  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16195  shlibpath_var=LD_LIBRARY_PATH
16196  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16197  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16198  # the default ld.so.conf also contains /usr/contrib/lib and
16199  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16200  # libtool to hard-code these into programs
16201  ;;
16202
16203cygwin* | mingw* | pw32* | cegcc*)
16204  version_type=windows
16205  shrext_cmds=".dll"
16206  need_version=no
16207  need_lib_prefix=no
16208
16209  case $GCC,$cc_basename in
16210  yes,*)
16211    # gcc
16212    library_names_spec='$libname.dll.a'
16213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16214    postinstall_cmds='base_file=`basename \${file}`~
16215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16216      dldir=$destdir/`dirname \$dlpath`~
16217      test -d \$dldir || mkdir -p \$dldir~
16218      $install_prog $dir/$dlname \$dldir/$dlname~
16219      chmod a+x \$dldir/$dlname~
16220      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16221        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16222      fi'
16223    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16224      dlpath=$dir/\$dldll~
16225       $RM \$dlpath'
16226    shlibpath_overrides_runpath=yes
16227
16228    case $host_os in
16229    cygwin*)
16230      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16231      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16232
16233      ;;
16234    mingw* | cegcc*)
16235      # MinGW DLLs use traditional 'lib' prefix
16236      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16237      ;;
16238    pw32*)
16239      # pw32 DLLs use 'pw' prefix rather than 'lib'
16240      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16241      ;;
16242    esac
16243    dynamic_linker='Win32 ld.exe'
16244    ;;
16245
16246  *,cl*)
16247    # Native MSVC
16248    libname_spec='$name'
16249    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16250    library_names_spec='${libname}.dll.lib'
16251
16252    case $build_os in
16253    mingw*)
16254      sys_lib_search_path_spec=
16255      lt_save_ifs=$IFS
16256      IFS=';'
16257      for lt_path in $LIB
16258      do
16259        IFS=$lt_save_ifs
16260        # Let DOS variable expansion print the short 8.3 style file name.
16261        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16262        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16263      done
16264      IFS=$lt_save_ifs
16265      # Convert to MSYS style.
16266      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16267      ;;
16268    cygwin*)
16269      # Convert to unix form, then to dos form, then back to unix form
16270      # but this time dos style (no spaces!) so that the unix form looks
16271      # like /cygdrive/c/PROGRA~1:/cygdr...
16272      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16273      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16274      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16275      ;;
16276    *)
16277      sys_lib_search_path_spec="$LIB"
16278      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16279        # It is most probably a Windows format PATH.
16280        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16281      else
16282        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16283      fi
16284      # FIXME: find the short name or the path components, as spaces are
16285      # common. (e.g. "Program Files" -> "PROGRA~1")
16286      ;;
16287    esac
16288
16289    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16290    postinstall_cmds='base_file=`basename \${file}`~
16291      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16292      dldir=$destdir/`dirname \$dlpath`~
16293      test -d \$dldir || mkdir -p \$dldir~
16294      $install_prog $dir/$dlname \$dldir/$dlname'
16295    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16296      dlpath=$dir/\$dldll~
16297       $RM \$dlpath'
16298    shlibpath_overrides_runpath=yes
16299    dynamic_linker='Win32 link.exe'
16300    ;;
16301
16302  *)
16303    # Assume MSVC wrapper
16304    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16305    dynamic_linker='Win32 ld.exe'
16306    ;;
16307  esac
16308  # FIXME: first we should search . and the directory the executable is in
16309  shlibpath_var=PATH
16310  ;;
16311
16312darwin* | rhapsody*)
16313  dynamic_linker="$host_os dyld"
16314  version_type=darwin
16315  need_lib_prefix=no
16316  need_version=no
16317  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16318  soname_spec='${libname}${release}${major}$shared_ext'
16319  shlibpath_overrides_runpath=yes
16320  shlibpath_var=DYLD_LIBRARY_PATH
16321  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16322
16323  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16324  ;;
16325
16326dgux*)
16327  version_type=linux # correct to gnu/linux during the next big refactor
16328  need_lib_prefix=no
16329  need_version=no
16330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16331  soname_spec='${libname}${release}${shared_ext}$major'
16332  shlibpath_var=LD_LIBRARY_PATH
16333  ;;
16334
16335freebsd* | dragonfly*)
16336  # DragonFly does not have aout.  When/if they implement a new
16337  # versioning mechanism, adjust this.
16338  if test -x /usr/bin/objformat; then
16339    objformat=`/usr/bin/objformat`
16340  else
16341    case $host_os in
16342    freebsd[23].*) objformat=aout ;;
16343    *) objformat=elf ;;
16344    esac
16345  fi
16346  version_type=freebsd-$objformat
16347  case $version_type in
16348    freebsd-elf*)
16349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16350      need_version=no
16351      need_lib_prefix=no
16352      ;;
16353    freebsd-*)
16354      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16355      need_version=yes
16356      ;;
16357  esac
16358  shlibpath_var=LD_LIBRARY_PATH
16359  case $host_os in
16360  freebsd2.*)
16361    shlibpath_overrides_runpath=yes
16362    ;;
16363  freebsd3.[01]* | freebsdelf3.[01]*)
16364    shlibpath_overrides_runpath=yes
16365    hardcode_into_libs=yes
16366    ;;
16367  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16368  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16369    shlibpath_overrides_runpath=no
16370    hardcode_into_libs=yes
16371    ;;
16372  *) # from 4.6 on, and DragonFly
16373    shlibpath_overrides_runpath=yes
16374    hardcode_into_libs=yes
16375    ;;
16376  esac
16377  ;;
16378
16379gnu*)
16380  version_type=linux # correct to gnu/linux during the next big refactor
16381  need_lib_prefix=no
16382  need_version=no
16383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16384  soname_spec='${libname}${release}${shared_ext}$major'
16385  shlibpath_var=LD_LIBRARY_PATH
16386  shlibpath_overrides_runpath=no
16387  hardcode_into_libs=yes
16388  ;;
16389
16390haiku*)
16391  version_type=linux # correct to gnu/linux during the next big refactor
16392  need_lib_prefix=no
16393  need_version=no
16394  dynamic_linker="$host_os runtime_loader"
16395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16396  soname_spec='${libname}${release}${shared_ext}$major'
16397  shlibpath_var=LIBRARY_PATH
16398  shlibpath_overrides_runpath=yes
16399  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16400  hardcode_into_libs=yes
16401  ;;
16402
16403hpux9* | hpux10* | hpux11*)
16404  # Give a soname corresponding to the major version so that dld.sl refuses to
16405  # link against other versions.
16406  version_type=sunos
16407  need_lib_prefix=no
16408  need_version=no
16409  case $host_cpu in
16410  ia64*)
16411    shrext_cmds='.so'
16412    hardcode_into_libs=yes
16413    dynamic_linker="$host_os dld.so"
16414    shlibpath_var=LD_LIBRARY_PATH
16415    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417    soname_spec='${libname}${release}${shared_ext}$major'
16418    if test "X$HPUX_IA64_MODE" = X32; then
16419      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16420    else
16421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16422    fi
16423    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16424    ;;
16425  hppa*64*)
16426    shrext_cmds='.sl'
16427    hardcode_into_libs=yes
16428    dynamic_linker="$host_os dld.sl"
16429    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16430    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16431    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432    soname_spec='${libname}${release}${shared_ext}$major'
16433    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16435    ;;
16436  *)
16437    shrext_cmds='.sl'
16438    dynamic_linker="$host_os dld.sl"
16439    shlibpath_var=SHLIB_PATH
16440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442    soname_spec='${libname}${release}${shared_ext}$major'
16443    ;;
16444  esac
16445  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16446  postinstall_cmds='chmod 555 $lib'
16447  # or fails outright, so override atomically:
16448  install_override_mode=555
16449  ;;
16450
16451interix[3-9]*)
16452  version_type=linux # correct to gnu/linux during the next big refactor
16453  need_lib_prefix=no
16454  need_version=no
16455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456  soname_spec='${libname}${release}${shared_ext}$major'
16457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16458  shlibpath_var=LD_LIBRARY_PATH
16459  shlibpath_overrides_runpath=no
16460  hardcode_into_libs=yes
16461  ;;
16462
16463irix5* | irix6* | nonstopux*)
16464  case $host_os in
16465    nonstopux*) version_type=nonstopux ;;
16466    *)
16467	if test "$lt_cv_prog_gnu_ld" = yes; then
16468		version_type=linux # correct to gnu/linux during the next big refactor
16469	else
16470		version_type=irix
16471	fi ;;
16472  esac
16473  need_lib_prefix=no
16474  need_version=no
16475  soname_spec='${libname}${release}${shared_ext}$major'
16476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16477  case $host_os in
16478  irix5* | nonstopux*)
16479    libsuff= shlibsuff=
16480    ;;
16481  *)
16482    case $LD in # libtool.m4 will add one of these switches to LD
16483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16484      libsuff= shlibsuff= libmagic=32-bit;;
16485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16486      libsuff=32 shlibsuff=N32 libmagic=N32;;
16487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16489    *) libsuff= shlibsuff= libmagic=never-match;;
16490    esac
16491    ;;
16492  esac
16493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16494  shlibpath_overrides_runpath=no
16495  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16496  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16497  hardcode_into_libs=yes
16498  ;;
16499
16500# No shared lib support for Linux oldld, aout, or coff.
16501linux*oldld* | linux*aout* | linux*coff*)
16502  dynamic_linker=no
16503  ;;
16504
16505# This must be glibc/ELF.
16506linux* | k*bsd*-gnu | kopensolaris*-gnu)
16507  version_type=linux # correct to gnu/linux during the next big refactor
16508  need_lib_prefix=no
16509  need_version=no
16510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511  soname_spec='${libname}${release}${shared_ext}$major'
16512  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16513  shlibpath_var=LD_LIBRARY_PATH
16514  shlibpath_overrides_runpath=no
16515
16516  # Some binutils ld are patched to set DT_RUNPATH
16517  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16518  $as_echo_n "(cached) " >&6
16519else
16520  lt_cv_shlibpath_overrides_runpath=no
16521    save_LDFLAGS=$LDFLAGS
16522    save_libdir=$libdir
16523    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16524	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526/* end confdefs.h.  */
16527
16528int
16529main ()
16530{
16531
16532  ;
16533  return 0;
16534}
16535_ACEOF
16536if ac_fn_cxx_try_link "$LINENO"; then :
16537  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16538  lt_cv_shlibpath_overrides_runpath=yes
16539fi
16540fi
16541rm -f core conftest.err conftest.$ac_objext \
16542    conftest$ac_exeext conftest.$ac_ext
16543    LDFLAGS=$save_LDFLAGS
16544    libdir=$save_libdir
16545
16546fi
16547
16548  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16549
16550  # This implies no fast_install, which is unacceptable.
16551  # Some rework will be needed to allow for fast_install
16552  # before this can be enabled.
16553  hardcode_into_libs=yes
16554
16555  # Append ld.so.conf contents to the search path
16556  if test -f /etc/ld.so.conf; then
16557    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' ' '`
16558    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16559  fi
16560
16561  # We used to test for /lib/ld.so.1 and disable shared libraries on
16562  # powerpc, because MkLinux only supported shared libraries with the
16563  # GNU dynamic linker.  Since this was broken with cross compilers,
16564  # most powerpc-linux boxes support dynamic linking these days and
16565  # people can always --disable-shared, the test was removed, and we
16566  # assume the GNU/Linux dynamic linker is in use.
16567  dynamic_linker='GNU/Linux ld.so'
16568  ;;
16569
16570netbsd*)
16571  version_type=sunos
16572  need_lib_prefix=no
16573  need_version=no
16574  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16576    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16577    dynamic_linker='NetBSD (a.out) ld.so'
16578  else
16579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16580    soname_spec='${libname}${release}${shared_ext}$major'
16581    dynamic_linker='NetBSD ld.elf_so'
16582  fi
16583  shlibpath_var=LD_LIBRARY_PATH
16584  shlibpath_overrides_runpath=yes
16585  hardcode_into_libs=yes
16586  ;;
16587
16588newsos6)
16589  version_type=linux # correct to gnu/linux during the next big refactor
16590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591  shlibpath_var=LD_LIBRARY_PATH
16592  shlibpath_overrides_runpath=yes
16593  ;;
16594
16595*nto* | *qnx*)
16596  version_type=qnx
16597  need_lib_prefix=no
16598  need_version=no
16599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600  soname_spec='${libname}${release}${shared_ext}$major'
16601  shlibpath_var=LD_LIBRARY_PATH
16602  shlibpath_overrides_runpath=no
16603  hardcode_into_libs=yes
16604  dynamic_linker='ldqnx.so'
16605  ;;
16606
16607openbsd*)
16608  version_type=sunos
16609  sys_lib_dlsearch_path_spec="/usr/lib"
16610  need_lib_prefix=no
16611  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16612  case $host_os in
16613    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16614    *)				need_version=no  ;;
16615  esac
16616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16617  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16618  shlibpath_var=LD_LIBRARY_PATH
16619  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16620    case $host_os in
16621      openbsd2.[89] | openbsd2.[89].*)
16622	shlibpath_overrides_runpath=no
16623	;;
16624      *)
16625	shlibpath_overrides_runpath=yes
16626	;;
16627      esac
16628  else
16629    shlibpath_overrides_runpath=yes
16630  fi
16631  ;;
16632
16633os2*)
16634  libname_spec='$name'
16635  shrext_cmds=".dll"
16636  need_lib_prefix=no
16637  library_names_spec='$libname${shared_ext} $libname.a'
16638  dynamic_linker='OS/2 ld.exe'
16639  shlibpath_var=LIBPATH
16640  ;;
16641
16642osf3* | osf4* | osf5*)
16643  version_type=osf
16644  need_lib_prefix=no
16645  need_version=no
16646  soname_spec='${libname}${release}${shared_ext}$major'
16647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648  shlibpath_var=LD_LIBRARY_PATH
16649  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16650  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16651  ;;
16652
16653rdos*)
16654  dynamic_linker=no
16655  ;;
16656
16657solaris*)
16658  version_type=linux # correct to gnu/linux during the next big refactor
16659  need_lib_prefix=no
16660  need_version=no
16661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662  soname_spec='${libname}${release}${shared_ext}$major'
16663  shlibpath_var=LD_LIBRARY_PATH
16664  shlibpath_overrides_runpath=yes
16665  hardcode_into_libs=yes
16666  # ldd complains unless libraries are executable
16667  postinstall_cmds='chmod +x $lib'
16668  ;;
16669
16670sunos4*)
16671  version_type=sunos
16672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16673  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16674  shlibpath_var=LD_LIBRARY_PATH
16675  shlibpath_overrides_runpath=yes
16676  if test "$with_gnu_ld" = yes; then
16677    need_lib_prefix=no
16678  fi
16679  need_version=yes
16680  ;;
16681
16682sysv4 | sysv4.3*)
16683  version_type=linux # correct to gnu/linux during the next big refactor
16684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685  soname_spec='${libname}${release}${shared_ext}$major'
16686  shlibpath_var=LD_LIBRARY_PATH
16687  case $host_vendor in
16688    sni)
16689      shlibpath_overrides_runpath=no
16690      need_lib_prefix=no
16691      runpath_var=LD_RUN_PATH
16692      ;;
16693    siemens)
16694      need_lib_prefix=no
16695      ;;
16696    motorola)
16697      need_lib_prefix=no
16698      need_version=no
16699      shlibpath_overrides_runpath=no
16700      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16701      ;;
16702  esac
16703  ;;
16704
16705sysv4*MP*)
16706  if test -d /usr/nec ;then
16707    version_type=linux # correct to gnu/linux during the next big refactor
16708    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16709    soname_spec='$libname${shared_ext}.$major'
16710    shlibpath_var=LD_LIBRARY_PATH
16711  fi
16712  ;;
16713
16714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16715  version_type=freebsd-elf
16716  need_lib_prefix=no
16717  need_version=no
16718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16719  soname_spec='${libname}${release}${shared_ext}$major'
16720  shlibpath_var=LD_LIBRARY_PATH
16721  shlibpath_overrides_runpath=yes
16722  hardcode_into_libs=yes
16723  if test "$with_gnu_ld" = yes; then
16724    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16725  else
16726    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16727    case $host_os in
16728      sco3.2v5*)
16729        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16730	;;
16731    esac
16732  fi
16733  sys_lib_dlsearch_path_spec='/usr/lib'
16734  ;;
16735
16736tpf*)
16737  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16738  version_type=linux # correct to gnu/linux during the next big refactor
16739  need_lib_prefix=no
16740  need_version=no
16741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742  shlibpath_var=LD_LIBRARY_PATH
16743  shlibpath_overrides_runpath=no
16744  hardcode_into_libs=yes
16745  ;;
16746
16747uts4*)
16748  version_type=linux # correct to gnu/linux during the next big refactor
16749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750  soname_spec='${libname}${release}${shared_ext}$major'
16751  shlibpath_var=LD_LIBRARY_PATH
16752  ;;
16753
16754*)
16755  dynamic_linker=no
16756  ;;
16757esac
16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16759$as_echo "$dynamic_linker" >&6; }
16760test "$dynamic_linker" = no && can_build_shared=no
16761
16762variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16763if test "$GCC" = yes; then
16764  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16765fi
16766
16767if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16768  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16769fi
16770if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16771  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16772fi
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16812$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16813hardcode_action_CXX=
16814if test -n "$hardcode_libdir_flag_spec_CXX" ||
16815   test -n "$runpath_var_CXX" ||
16816   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16817
16818  # We can hardcode non-existent directories.
16819  if test "$hardcode_direct_CXX" != no &&
16820     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16821     # have to relink, otherwise we might link with an installed library
16822     # when we should be linking with a yet-to-be-installed one
16823     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16824     test "$hardcode_minus_L_CXX" != no; then
16825    # Linking always hardcodes the temporary library directory.
16826    hardcode_action_CXX=relink
16827  else
16828    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16829    hardcode_action_CXX=immediate
16830  fi
16831else
16832  # We cannot hardcode anything, or else we can only hardcode existing
16833  # directories.
16834  hardcode_action_CXX=unsupported
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16837$as_echo "$hardcode_action_CXX" >&6; }
16838
16839if test "$hardcode_action_CXX" = relink ||
16840   test "$inherit_rpath_CXX" = yes; then
16841  # Fast installation is not supported
16842  enable_fast_install=no
16843elif test "$shlibpath_overrides_runpath" = yes ||
16844     test "$enable_shared" = no; then
16845  # Fast installation is not necessary
16846  enable_fast_install=needless
16847fi
16848
16849
16850
16851
16852
16853
16854
16855  fi # test -n "$compiler"
16856
16857  CC=$lt_save_CC
16858  CFLAGS=$lt_save_CFLAGS
16859  LDCXX=$LD
16860  LD=$lt_save_LD
16861  GCC=$lt_save_GCC
16862  with_gnu_ld=$lt_save_with_gnu_ld
16863  lt_cv_path_LDCXX=$lt_cv_path_LD
16864  lt_cv_path_LD=$lt_save_path_LD
16865  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16866  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16867fi # test "$_lt_caught_CXX_error" != yes
16868
16869ac_ext=c
16870ac_cpp='$CPP $CPPFLAGS'
16871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16873ac_compiler_gnu=$ac_cv_c_compiler_gnu
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889        ac_config_commands="$ac_config_commands libtool"
16890
16891
16892
16893
16894# Only expand once:
16895
16896
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16898$as_echo_n "checking whether ln -s works... " >&6; }
16899LN_S=$as_ln_s
16900if test "$LN_S" = "ln -s"; then
16901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902$as_echo "yes" >&6; }
16903else
16904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16905$as_echo "no, using $LN_S" >&6; }
16906fi
16907
16908
16909# Check for GCC visibility feature
16910
16911
16912
16913  VISIBILITY_CFLAGS=
16914  VISIBILITY_CXXFLAGS=
16915  HAVE_VISIBILITY=0
16916  if test -n "$GCC"; then
16917                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
16918$as_echo_n "checking whether the -Werror option is usable... " >&6; }
16919    if ${pcre_cv_cc_vis_werror+:} false; then :
16920  $as_echo_n "(cached) " >&6
16921else
16922
16923      pcre_save_CFLAGS="$CFLAGS"
16924      CFLAGS="$CFLAGS -Werror"
16925      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h.  */
16927
16928int
16929main ()
16930{
16931
16932  ;
16933  return 0;
16934}
16935_ACEOF
16936if ac_fn_c_try_compile "$LINENO"; then :
16937  pcre_cv_cc_vis_werror=yes
16938else
16939  pcre_cv_cc_vis_werror=no
16940fi
16941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16942      CFLAGS="$pcre_save_CFLAGS"
16943fi
16944
16945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
16946$as_echo "$pcre_cv_cc_vis_werror" >&6; }
16947        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16948$as_echo_n "checking for simple visibility declarations... " >&6; }
16949    if ${pcre_cv_cc_visibility+:} false; then :
16950  $as_echo_n "(cached) " >&6
16951else
16952
16953      pcre_save_CFLAGS="$CFLAGS"
16954      CFLAGS="$CFLAGS -fvisibility=hidden"
16955                                    if test $pcre_cv_cc_vis_werror = yes; then
16956        CFLAGS="$CFLAGS -Werror"
16957      fi
16958      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16961             extern __attribute__((__visibility__("default"))) int exportedvar;
16962             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16963             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16964             void dummyfunc (void) {}
16965
16966int
16967main ()
16968{
16969
16970  ;
16971  return 0;
16972}
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"; then :
16975  pcre_cv_cc_visibility=yes
16976else
16977  pcre_cv_cc_visibility=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980      CFLAGS="$pcre_save_CFLAGS"
16981fi
16982
16983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
16984$as_echo "$pcre_cv_cc_visibility" >&6; }
16985    if test $pcre_cv_cc_visibility = yes; then
16986      VISIBILITY_CFLAGS="-fvisibility=hidden"
16987      VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
16988      HAVE_VISIBILITY=1
16989
16990$as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16991
16992
16993$as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16994
16995
16996$as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16997
16998
16999$as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17000
17001
17002$as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17003
17004
17005$as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17006
17007
17008$as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17009
17010    fi
17011  fi
17012
17013
17014
17015
17016cat >>confdefs.h <<_ACEOF
17017#define HAVE_VISIBILITY $HAVE_VISIBILITY
17018_ACEOF
17019
17020
17021
17022# Versioning
17023
17024PCRE_MAJOR="8"
17025PCRE_MINOR="36"
17026PCRE_PRERELEASE=""
17027PCRE_DATE="2014-09-26"
17028
17029if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17030then
17031  echo "***"
17032  echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17033  echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17034  echo "***"
17035  exit 1
17036fi
17037
17038
17039
17040
17041
17042
17043# Set a more sensible default value for $(htmldir).
17044if test "x$htmldir" = 'x${docdir}'
17045then
17046  htmldir='${docdir}/html'
17047fi
17048
17049# Handle --disable-pcre8 (enabled by default)
17050# Check whether --enable-pcre8 was given.
17051if test "${enable_pcre8+set}" = set; then :
17052  enableval=$enable_pcre8;
17053else
17054  enable_pcre8=unset
17055fi
17056
17057
17058
17059# Handle --enable-pcre16 (disabled by default)
17060# Check whether --enable-pcre16 was given.
17061if test "${enable_pcre16+set}" = set; then :
17062  enableval=$enable_pcre16;
17063else
17064  enable_pcre16=unset
17065fi
17066
17067
17068
17069# Handle --enable-pcre32 (disabled by default)
17070# Check whether --enable-pcre32 was given.
17071if test "${enable_pcre32+set}" = set; then :
17072  enableval=$enable_pcre32;
17073else
17074  enable_pcre32=unset
17075fi
17076
17077
17078
17079# Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17080# pcre-config.
17081# Check whether --enable-cpp was given.
17082if test "${enable_cpp+set}" = set; then :
17083  enableval=$enable_cpp;
17084else
17085  enable_cpp=unset
17086fi
17087
17088
17089
17090# Handle --enable-jit (disabled by default)
17091# Check whether --enable-jit was given.
17092if test "${enable_jit+set}" = set; then :
17093  enableval=$enable_jit;
17094else
17095  enable_jit=no
17096fi
17097
17098
17099# Handle --disable-pcregrep-jit (enabled by default)
17100# Check whether --enable-pcregrep-jit was given.
17101if test "${enable_pcregrep_jit+set}" = set; then :
17102  enableval=$enable_pcregrep_jit;
17103else
17104  enable_pcregrep_jit=yes
17105fi
17106
17107
17108# Handle --enable-rebuild-chartables
17109# Check whether --enable-rebuild-chartables was given.
17110if test "${enable_rebuild_chartables+set}" = set; then :
17111  enableval=$enable_rebuild_chartables;
17112else
17113  enable_rebuild_chartables=no
17114fi
17115
17116
17117# Handle --enable-utf8 (disabled by default)
17118# Check whether --enable-utf8 was given.
17119if test "${enable_utf8+set}" = set; then :
17120  enableval=$enable_utf8;
17121else
17122  enable_utf8=unset
17123fi
17124
17125
17126# Handle --enable-utf (disabled by default)
17127# Check whether --enable-utf was given.
17128if test "${enable_utf+set}" = set; then :
17129  enableval=$enable_utf;
17130else
17131  enable_utf=unset
17132fi
17133
17134
17135# Handle --enable-unicode-properties
17136# Check whether --enable-unicode-properties was given.
17137if test "${enable_unicode_properties+set}" = set; then :
17138  enableval=$enable_unicode_properties;
17139else
17140  enable_unicode_properties=no
17141fi
17142
17143
17144# Handle newline options
17145ac_pcre_newline=lf
17146# Check whether --enable-newline-is-cr was given.
17147if test "${enable_newline_is_cr+set}" = set; then :
17148  enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17149fi
17150
17151# Check whether --enable-newline-is-lf was given.
17152if test "${enable_newline_is_lf+set}" = set; then :
17153  enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17154fi
17155
17156# Check whether --enable-newline-is-crlf was given.
17157if test "${enable_newline_is_crlf+set}" = set; then :
17158  enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17159fi
17160
17161# Check whether --enable-newline-is-anycrlf was given.
17162if test "${enable_newline_is_anycrlf+set}" = set; then :
17163  enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17164fi
17165
17166# Check whether --enable-newline-is-any was given.
17167if test "${enable_newline_is_any+set}" = set; then :
17168  enableval=$enable_newline_is_any; ac_pcre_newline=any
17169fi
17170
17171enable_newline="$ac_pcre_newline"
17172
17173# Handle --enable-bsr-anycrlf
17174# Check whether --enable-bsr-anycrlf was given.
17175if test "${enable_bsr_anycrlf+set}" = set; then :
17176  enableval=$enable_bsr_anycrlf;
17177else
17178  enable_bsr_anycrlf=no
17179fi
17180
17181
17182# Handle --enable-ebcdic
17183# Check whether --enable-ebcdic was given.
17184if test "${enable_ebcdic+set}" = set; then :
17185  enableval=$enable_ebcdic;
17186else
17187  enable_ebcdic=no
17188fi
17189
17190
17191# Handle --enable-ebcdic-nl25
17192# Check whether --enable-ebcdic-nl25 was given.
17193if test "${enable_ebcdic_nl25+set}" = set; then :
17194  enableval=$enable_ebcdic_nl25;
17195else
17196  enable_ebcdic_nl25=no
17197fi
17198
17199
17200# Handle --disable-stack-for-recursion
17201# Check whether --enable-stack-for-recursion was given.
17202if test "${enable_stack_for_recursion+set}" = set; then :
17203  enableval=$enable_stack_for_recursion;
17204else
17205  enable_stack_for_recursion=yes
17206fi
17207
17208
17209# Handle --enable-pcregrep-libz
17210# Check whether --enable-pcregrep-libz was given.
17211if test "${enable_pcregrep_libz+set}" = set; then :
17212  enableval=$enable_pcregrep_libz;
17213else
17214  enable_pcregrep_libz=no
17215fi
17216
17217
17218# Handle --enable-pcregrep-libbz2
17219# Check whether --enable-pcregrep-libbz2 was given.
17220if test "${enable_pcregrep_libbz2+set}" = set; then :
17221  enableval=$enable_pcregrep_libbz2;
17222else
17223  enable_pcregrep_libbz2=no
17224fi
17225
17226
17227# Handle --with-pcregrep-bufsize=N
17228
17229# Check whether --with-pcregrep-bufsize was given.
17230if test "${with_pcregrep_bufsize+set}" = set; then :
17231  withval=$with_pcregrep_bufsize;
17232else
17233  with_pcregrep_bufsize=20480
17234fi
17235
17236
17237# Handle --enable-pcretest-libedit
17238# Check whether --enable-pcretest-libedit was given.
17239if test "${enable_pcretest_libedit+set}" = set; then :
17240  enableval=$enable_pcretest_libedit;
17241else
17242  enable_pcretest_libedit=no
17243fi
17244
17245
17246# Handle --enable-pcretest-libreadline
17247# Check whether --enable-pcretest-libreadline was given.
17248if test "${enable_pcretest_libreadline+set}" = set; then :
17249  enableval=$enable_pcretest_libreadline;
17250else
17251  enable_pcretest_libreadline=no
17252fi
17253
17254
17255# Handle --with-posix-malloc-threshold=NBYTES
17256
17257# Check whether --with-posix-malloc-threshold was given.
17258if test "${with_posix_malloc_threshold+set}" = set; then :
17259  withval=$with_posix_malloc_threshold;
17260else
17261  with_posix_malloc_threshold=10
17262fi
17263
17264
17265# Handle --with-link-size=N
17266
17267# Check whether --with-link-size was given.
17268if test "${with_link_size+set}" = set; then :
17269  withval=$with_link_size;
17270else
17271  with_link_size=2
17272fi
17273
17274
17275# Handle --with-parens-nest-limit=N
17276
17277# Check whether --with-parens-nest-limit was given.
17278if test "${with_parens_nest_limit+set}" = set; then :
17279  withval=$with_parens_nest_limit;
17280else
17281  with_parens_nest_limit=250
17282fi
17283
17284
17285# Handle --with-match-limit=N
17286
17287# Check whether --with-match-limit was given.
17288if test "${with_match_limit+set}" = set; then :
17289  withval=$with_match_limit;
17290else
17291  with_match_limit=10000000
17292fi
17293
17294
17295# Handle --with-match-limit_recursion=N
17296#
17297# Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17298# symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17299# value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17300# different numeric value (or even the same numeric value as MATCH_LIMIT,
17301# though no longer defined in terms of the latter).
17302#
17303
17304# Check whether --with-match-limit-recursion was given.
17305if test "${with_match_limit_recursion+set}" = set; then :
17306  withval=$with_match_limit_recursion;
17307else
17308  with_match_limit_recursion=MATCH_LIMIT
17309fi
17310
17311
17312# Handle --enable-valgrind
17313# Check whether --enable-valgrind was given.
17314if test "${enable_valgrind+set}" = set; then :
17315  enableval=$enable_valgrind;
17316else
17317  enable_valgrind=no
17318fi
17319
17320
17321# Enable code coverage reports using gcov
17322# Check whether --enable-coverage was given.
17323if test "${enable_coverage+set}" = set; then :
17324  enableval=$enable_coverage;
17325else
17326  enable_coverage=no
17327fi
17328
17329
17330# Copy enable_utf8 value to enable_utf for compatibility reasons
17331if test "x$enable_utf8" != "xunset"
17332then
17333  if test "x$enable_utf" != "xunset"
17334  then
17335    as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
17336  fi
17337  enable_utf=$enable_utf8
17338fi
17339
17340# Set the default value for pcre8
17341if test "x$enable_pcre8" = "xunset"
17342then
17343  enable_pcre8=yes
17344fi
17345
17346# Set the default value for pcre16
17347if test "x$enable_pcre16" = "xunset"
17348then
17349  enable_pcre16=no
17350fi
17351
17352# Set the default value for pcre32
17353if test "x$enable_pcre32" = "xunset"
17354then
17355  enable_pcre32=no
17356fi
17357
17358# Make sure enable_pcre8 or enable_pcre16 was set
17359if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17360then
17361  as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17362fi
17363
17364# Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17365if test "x$enable_unicode_properties" = "xyes"
17366then
17367  if test "x$enable_utf" = "xno"
17368  then
17369    as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17370  fi
17371  enable_utf=yes
17372fi
17373
17374# enable_utf is disabled by default.
17375if test "x$enable_utf" = "xunset"
17376then
17377  enable_utf=no
17378fi
17379
17380# enable_cpp copies the value of enable_pcre8 by default
17381if test "x$enable_cpp" = "xunset"
17382then
17383  enable_cpp=$enable_pcre8
17384fi
17385
17386# Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17387if test "x$enable_cpp" = "xyes"
17388then
17389  if test "x$enable_pcre8" = "xno"
17390  then
17391    as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
17392  fi
17393fi
17394
17395# Convert the newline identifier into the appropriate integer value. The first
17396# three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
17397# are changed below.
17398
17399case "$enable_newline" in
17400  lf)      ac_pcre_newline_value=10   ;;
17401  cr)      ac_pcre_newline_value=13   ;;
17402  crlf)    ac_pcre_newline_value=3338 ;;
17403  anycrlf) ac_pcre_newline_value=-2   ;;
17404  any)     ac_pcre_newline_value=-1   ;;
17405  *)
17406  as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
17407  ;;
17408esac
17409
17410# --enable-ebcdic-nl25 implies --enable-ebcdic
17411if test "x$enable_ebcdic_nl25" = "xyes"; then
17412  enable_ebcdic=yes
17413fi
17414
17415# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
17416# and the newline value is adjusted appropriately (CR is still 13, but LF is
17417# 21 or 37). Also check that UTF support is not requested, because PCRE cannot
17418# handle EBCDIC and UTF in the same build. To do so it would need to use
17419# different character constants depending on the mode.
17420#
17421if test "x$enable_ebcdic" = "xyes"; then
17422  enable_rebuild_chartables=yes
17423
17424  if test "x$enable_utf" = "xyes"; then
17425    as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
17426  fi
17427
17428  if test "x$enable_ebcdic_nl25" = "xno"; then
17429    case "$ac_pcre_newline_value" in
17430      10)   ac_pcre_newline_value=21 ;;
17431      3338) ac_pcre_newline_value=3349 ;;
17432    esac
17433  else
17434    case "$ac_pcre_newline_value" in
17435      10)   ac_pcre_newline_value=37 ;;
17436      3338) ac_pcre_newline_value=3365 ;;
17437    esac
17438  fi
17439fi
17440
17441# Check argument to --with-link-size
17442case "$with_link_size" in
17443  2|3|4) ;;
17444  *)
17445  as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
17446  ;;
17447esac
17448
17449
17450
17451# Checks for header files.
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17453$as_echo_n "checking for ANSI C header files... " >&6; }
17454if ${ac_cv_header_stdc+:} false; then :
17455  $as_echo_n "(cached) " >&6
17456else
17457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h.  */
17459#include <stdlib.h>
17460#include <stdarg.h>
17461#include <string.h>
17462#include <float.h>
17463
17464int
17465main ()
17466{
17467
17468  ;
17469  return 0;
17470}
17471_ACEOF
17472if ac_fn_c_try_compile "$LINENO"; then :
17473  ac_cv_header_stdc=yes
17474else
17475  ac_cv_header_stdc=no
17476fi
17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479if test $ac_cv_header_stdc = yes; then
17480  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482/* end confdefs.h.  */
17483#include <string.h>
17484
17485_ACEOF
17486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17487  $EGREP "memchr" >/dev/null 2>&1; then :
17488
17489else
17490  ac_cv_header_stdc=no
17491fi
17492rm -f conftest*
17493
17494fi
17495
17496if test $ac_cv_header_stdc = yes; then
17497  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499/* end confdefs.h.  */
17500#include <stdlib.h>
17501
17502_ACEOF
17503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17504  $EGREP "free" >/dev/null 2>&1; then :
17505
17506else
17507  ac_cv_header_stdc=no
17508fi
17509rm -f conftest*
17510
17511fi
17512
17513if test $ac_cv_header_stdc = yes; then
17514  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17515  if test "$cross_compiling" = yes; then :
17516  :
17517else
17518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h.  */
17520#include <ctype.h>
17521#include <stdlib.h>
17522#if ((' ' & 0x0FF) == 0x020)
17523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17525#else
17526# define ISLOWER(c) \
17527		   (('a' <= (c) && (c) <= 'i') \
17528		     || ('j' <= (c) && (c) <= 'r') \
17529		     || ('s' <= (c) && (c) <= 'z'))
17530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17531#endif
17532
17533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17534int
17535main ()
17536{
17537  int i;
17538  for (i = 0; i < 256; i++)
17539    if (XOR (islower (i), ISLOWER (i))
17540	|| toupper (i) != TOUPPER (i))
17541      return 2;
17542  return 0;
17543}
17544_ACEOF
17545if ac_fn_c_try_run "$LINENO"; then :
17546
17547else
17548  ac_cv_header_stdc=no
17549fi
17550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17551  conftest.$ac_objext conftest.beam conftest.$ac_ext
17552fi
17553
17554fi
17555fi
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17557$as_echo "$ac_cv_header_stdc" >&6; }
17558if test $ac_cv_header_stdc = yes; then
17559
17560$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17561
17562fi
17563
17564for ac_header in limits.h sys/types.h sys/stat.h dirent.h
17565do :
17566  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17569  cat >>confdefs.h <<_ACEOF
17570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17571_ACEOF
17572
17573fi
17574
17575done
17576
17577for ac_header in windows.h
17578do :
17579  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17580if test "x$ac_cv_header_windows_h" = xyes; then :
17581  cat >>confdefs.h <<_ACEOF
17582#define HAVE_WINDOWS_H 1
17583_ACEOF
17584 HAVE_WINDOWS_H=1
17585fi
17586
17587done
17588
17589
17590# The files below are C++ header files.
17591pcre_have_type_traits="0"
17592pcre_have_bits_type_traits="0"
17593
17594if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
17595   as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
17596fi
17597
17598if test "x$enable_cpp" = "xyes" -a -n "$CXX"
17599then
17600ac_ext=cpp
17601ac_cpp='$CXXCPP $CPPFLAGS'
17602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605
17606
17607# Older versions of pcre defined pcrecpp::no_arg, but in new versions
17608# it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
17609# we want to make one an alias for the other.  Different systems do
17610# this in different ways.  Some systems, for instance, can do it via
17611# a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
17612OLD_LDFLAGS="$LDFLAGS"
17613for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
17614            "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
17615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
17616$as_echo_n "checking for alias support in the linker... " >&6; }
17617  LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
17618  # We try to run the linker with this new ld flag.  If the link fails,
17619  # we give up and remove the new flag from LDFLAGS.
17620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621/* end confdefs.h.  */
17622namespace pcrecpp {
17623                                    class RE { static int no_arg; };
17624                                    int RE::no_arg;
17625                                  }
17626int
17627main ()
17628{
17629
17630  ;
17631  return 0;
17632}
17633_ACEOF
17634if ac_fn_cxx_try_link "$LINENO"; then :
17635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636$as_echo "yes" >&6; };
17637                  EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
17638                  break;
17639else
17640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17641$as_echo "no" >&6; }
17642fi
17643rm -f core conftest.err conftest.$ac_objext \
17644    conftest$ac_exeext conftest.$ac_ext
17645done
17646LDFLAGS="$OLD_LDFLAGS"
17647
17648# We could be more clever here, given we're doing AC_SUBST with this
17649# (eg set a var to be the name of the include file we want). But we're not
17650# so it's easy to change back to 'regular' autoconf vars if we needed to.
17651
17652for ac_header in string
17653do :
17654  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17655if test "x$ac_cv_header_string" = xyes; then :
17656  cat >>confdefs.h <<_ACEOF
17657#define HAVE_STRING 1
17658_ACEOF
17659 pcre_have_cpp_headers="1"
17660else
17661  pcre_have_cpp_headers="0"
17662fi
17663
17664done
17665
17666for ac_header in bits/type_traits.h
17667do :
17668  ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
17669if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
17670  cat >>confdefs.h <<_ACEOF
17671#define HAVE_BITS_TYPE_TRAITS_H 1
17672_ACEOF
17673 pcre_have_bits_type_traits="1"
17674else
17675  pcre_have_bits_type_traits="0"
17676fi
17677
17678done
17679
17680for ac_header in type_traits.h
17681do :
17682  ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
17683if test "x$ac_cv_header_type_traits_h" = xyes; then :
17684  cat >>confdefs.h <<_ACEOF
17685#define HAVE_TYPE_TRAITS_H 1
17686_ACEOF
17687 pcre_have_type_traits="1"
17688else
17689  pcre_have_type_traits="0"
17690fi
17691
17692done
17693
17694
17695# (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17696# in a c++ context.  This matters becuase strtoimax is C99 and may not
17697# be supported by the C++ compiler.)
17698# Figure out how to create a longlong from a string: strtoll and
17699# equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
17700# strtoll, for instance, but it only takes 2 args instead of 3!
17701# We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17702
17703
17704
17705
17706have_strto_fn=0
17707for fn in strtoq strtoll _strtoi64 strtoimax; do
17708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
17709$as_echo_n "checking for $fn... " >&6; }
17710  if test "$fn" = strtoimax; then
17711    include=stdint.h
17712  else
17713    include=stdlib.h
17714  fi
17715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h.  */
17717#include <$include>
17718int
17719main ()
17720{
17721char* e; return $fn("100", &e, 10)
17722  ;
17723  return 0;
17724}
17725_ACEOF
17726if ac_fn_cxx_try_compile "$LINENO"; then :
17727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17728$as_echo "yes" >&6; }
17729
17730cat >>confdefs.h <<_ACEOF
17731#define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17732_ACEOF
17733
17734                     have_strto_fn=1
17735                     break
17736else
17737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738$as_echo "no" >&6; }
17739fi
17740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741done
17742
17743if test "$have_strto_fn" = 1; then
17744  ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17745if test "x$ac_cv_type_long_long" = xyes; then :
17746
17747cat >>confdefs.h <<_ACEOF
17748#define HAVE_LONG_LONG 1
17749_ACEOF
17750
17751pcre_have_long_long="1"
17752else
17753  pcre_have_long_long="0"
17754fi
17755
17756  ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17757if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
17758
17759cat >>confdefs.h <<_ACEOF
17760#define HAVE_UNSIGNED_LONG_LONG 1
17761_ACEOF
17762
17763pcre_have_ulong_long="1"
17764else
17765  pcre_have_ulong_long="0"
17766fi
17767
17768else
17769  pcre_have_long_long="0"
17770  pcre_have_ulong_long="0"
17771fi
17772
17773
17774
17775ac_ext=c
17776ac_cpp='$CPP $CPPFLAGS'
17777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779ac_compiler_gnu=$ac_cv_c_compiler_gnu
17780
17781fi
17782# Using AC_SUBST eliminates the need to include config.h in a public .h file
17783
17784
17785
17786# Conditional compilation
17787 if test "x$enable_pcre8" = "xyes"; then
17788  WITH_PCRE8_TRUE=
17789  WITH_PCRE8_FALSE='#'
17790else
17791  WITH_PCRE8_TRUE='#'
17792  WITH_PCRE8_FALSE=
17793fi
17794
17795 if test "x$enable_pcre16" = "xyes"; then
17796  WITH_PCRE16_TRUE=
17797  WITH_PCRE16_FALSE='#'
17798else
17799  WITH_PCRE16_TRUE='#'
17800  WITH_PCRE16_FALSE=
17801fi
17802
17803 if test "x$enable_pcre32" = "xyes"; then
17804  WITH_PCRE32_TRUE=
17805  WITH_PCRE32_FALSE='#'
17806else
17807  WITH_PCRE32_TRUE='#'
17808  WITH_PCRE32_FALSE=
17809fi
17810
17811 if test "x$enable_cpp" = "xyes"; then
17812  WITH_PCRE_CPP_TRUE=
17813  WITH_PCRE_CPP_FALSE='#'
17814else
17815  WITH_PCRE_CPP_TRUE='#'
17816  WITH_PCRE_CPP_FALSE=
17817fi
17818
17819 if test "x$enable_rebuild_chartables" = "xyes"; then
17820  WITH_REBUILD_CHARTABLES_TRUE=
17821  WITH_REBUILD_CHARTABLES_FALSE='#'
17822else
17823  WITH_REBUILD_CHARTABLES_TRUE='#'
17824  WITH_REBUILD_CHARTABLES_FALSE=
17825fi
17826
17827 if test "x$enable_jit" = "xyes"; then
17828  WITH_JIT_TRUE=
17829  WITH_JIT_FALSE='#'
17830else
17831  WITH_JIT_TRUE='#'
17832  WITH_JIT_FALSE=
17833fi
17834
17835 if test "x$enable_utf" = "xyes"; then
17836  WITH_UTF_TRUE=
17837  WITH_UTF_FALSE='#'
17838else
17839  WITH_UTF_TRUE='#'
17840  WITH_UTF_FALSE=
17841fi
17842
17843 if test "x$enable_valgrind" = "xyes"; then
17844  WITH_VALGRIND_TRUE=
17845  WITH_VALGRIND_FALSE='#'
17846else
17847  WITH_VALGRIND_TRUE='#'
17848  WITH_VALGRIND_FALSE=
17849fi
17850
17851
17852# Checks for typedefs, structures, and compiler characteristics.
17853
17854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17855$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17856if ${ac_cv_c_const+:} false; then :
17857  $as_echo_n "(cached) " >&6
17858else
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861
17862int
17863main ()
17864{
17865
17866#ifndef __cplusplus
17867  /* Ultrix mips cc rejects this sort of thing.  */
17868  typedef int charset[2];
17869  const charset cs = { 0, 0 };
17870  /* SunOS 4.1.1 cc rejects this.  */
17871  char const *const *pcpcc;
17872  char **ppc;
17873  /* NEC SVR4.0.2 mips cc rejects this.  */
17874  struct point {int x, y;};
17875  static struct point const zero = {0,0};
17876  /* AIX XL C 1.02.0.0 rejects this.
17877     It does not let you subtract one const X* pointer from another in
17878     an arm of an if-expression whose if-part is not a constant
17879     expression */
17880  const char *g = "string";
17881  pcpcc = &g + (g ? g-g : 0);
17882  /* HPUX 7.0 cc rejects these. */
17883  ++pcpcc;
17884  ppc = (char**) pcpcc;
17885  pcpcc = (char const *const *) ppc;
17886  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17887    char tx;
17888    char *t = &tx;
17889    char const *s = 0 ? (char *) 0 : (char const *) 0;
17890
17891    *t++ = 0;
17892    if (s) return 0;
17893  }
17894  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17895    int x[] = {25, 17};
17896    const int *foo = &x[0];
17897    ++foo;
17898  }
17899  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17900    typedef const int *iptr;
17901    iptr p = 0;
17902    ++p;
17903  }
17904  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17905       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17906    struct s { int j; const int *ap[3]; } bx;
17907    struct s *b = &bx; b->j = 5;
17908  }
17909  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17910    const int foo = 10;
17911    if (!foo) return 0;
17912  }
17913  return !cs[0] && !zero.x;
17914#endif
17915
17916  ;
17917  return 0;
17918}
17919_ACEOF
17920if ac_fn_c_try_compile "$LINENO"; then :
17921  ac_cv_c_const=yes
17922else
17923  ac_cv_c_const=no
17924fi
17925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926fi
17927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17928$as_echo "$ac_cv_c_const" >&6; }
17929if test $ac_cv_c_const = no; then
17930
17931$as_echo "#define const /**/" >>confdefs.h
17932
17933fi
17934
17935ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17936if test "x$ac_cv_type_size_t" = xyes; then :
17937
17938else
17939
17940cat >>confdefs.h <<_ACEOF
17941#define size_t unsigned int
17942_ACEOF
17943
17944fi
17945
17946
17947# Checks for library functions.
17948
17949for ac_func in bcopy memmove strerror
17950do :
17951  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17954  cat >>confdefs.h <<_ACEOF
17955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956_ACEOF
17957
17958fi
17959done
17960
17961
17962# Check for the availability of libz (aka zlib)
17963
17964for ac_header in zlib.h
17965do :
17966  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17967if test "x$ac_cv_header_zlib_h" = xyes; then :
17968  cat >>confdefs.h <<_ACEOF
17969#define HAVE_ZLIB_H 1
17970_ACEOF
17971 HAVE_ZLIB_H=1
17972fi
17973
17974done
17975
17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17977$as_echo_n "checking for gzopen in -lz... " >&6; }
17978if ${ac_cv_lib_z_gzopen+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  ac_check_lib_save_LIBS=$LIBS
17982LIBS="-lz  $LIBS"
17983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985
17986/* Override any GCC internal prototype to avoid an error.
17987   Use char because int might match the return type of a GCC
17988   builtin and then its argument prototype would still apply.  */
17989#ifdef __cplusplus
17990extern "C"
17991#endif
17992char gzopen ();
17993int
17994main ()
17995{
17996return gzopen ();
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001if ac_fn_c_try_link "$LINENO"; then :
18002  ac_cv_lib_z_gzopen=yes
18003else
18004  ac_cv_lib_z_gzopen=no
18005fi
18006rm -f core conftest.err conftest.$ac_objext \
18007    conftest$ac_exeext conftest.$ac_ext
18008LIBS=$ac_check_lib_save_LIBS
18009fi
18010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18011$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18012if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18013  HAVE_LIBZ=1
18014fi
18015
18016
18017# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18018# as for libz. However, this had the following problem, diagnosed and fixed by
18019# a user:
18020#
18021#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18022#     under Win32.
18023#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18024#     therefore missing the function definition.
18025#   - The compiler thus generates a "C" signature for the test function.
18026#   - The linker fails to find the "C" function.
18027#   - PCRE fails to configure if asked to do so against libbz2.
18028#
18029# Solution:
18030#
18031#   - Replace the AC_CHECK_LIB test with a custom test.
18032
18033for ac_header in bzlib.h
18034do :
18035  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18036if test "x$ac_cv_header_bzlib_h" = xyes; then :
18037  cat >>confdefs.h <<_ACEOF
18038#define HAVE_BZLIB_H 1
18039_ACEOF
18040 HAVE_BZLIB_H=1
18041fi
18042
18043done
18044
18045# Original test
18046# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18047#
18048# Custom test follows
18049
18050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18051$as_echo_n "checking for libbz2... " >&6; }
18052OLD_LIBS="$LIBS"
18053LIBS="$LIBS -lbz2"
18054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h.  */
18056
18057#ifdef HAVE_BZLIB_H
18058#include <bzlib.h>
18059#endif
18060int
18061main ()
18062{
18063return (int)BZ2_bzopen("conftest", "rb");
18064  ;
18065  return 0;
18066}
18067_ACEOF
18068if ac_fn_c_try_link "$LINENO"; then :
18069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18071else
18072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18073$as_echo "no" >&6; }
18074fi
18075rm -f core conftest.err conftest.$ac_objext \
18076    conftest$ac_exeext conftest.$ac_ext
18077LIBS="$OLD_LIBS"
18078
18079# Check for the availabiity of libreadline
18080
18081if test "$enable_pcretest_libreadline" = "yes"; then
18082 for ac_header in readline/readline.h
18083do :
18084  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18085if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18086  cat >>confdefs.h <<_ACEOF
18087#define HAVE_READLINE_READLINE_H 1
18088_ACEOF
18089 HAVE_READLINE_H=1
18090fi
18091
18092done
18093
18094 for ac_header in readline/history.h
18095do :
18096  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18097if test "x$ac_cv_header_readline_history_h" = xyes; then :
18098  cat >>confdefs.h <<_ACEOF
18099#define HAVE_READLINE_HISTORY_H 1
18100_ACEOF
18101 HAVE_HISTORY_H=1
18102fi
18103
18104done
18105
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18107$as_echo_n "checking for readline in -lreadline... " >&6; }
18108if ${ac_cv_lib_readline_readline+:} false; then :
18109  $as_echo_n "(cached) " >&6
18110else
18111  ac_check_lib_save_LIBS=$LIBS
18112LIBS="-lreadline  $LIBS"
18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114/* end confdefs.h.  */
18115
18116/* Override any GCC internal prototype to avoid an error.
18117   Use char because int might match the return type of a GCC
18118   builtin and then its argument prototype would still apply.  */
18119#ifdef __cplusplus
18120extern "C"
18121#endif
18122char readline ();
18123int
18124main ()
18125{
18126return readline ();
18127  ;
18128  return 0;
18129}
18130_ACEOF
18131if ac_fn_c_try_link "$LINENO"; then :
18132  ac_cv_lib_readline_readline=yes
18133else
18134  ac_cv_lib_readline_readline=no
18135fi
18136rm -f core conftest.err conftest.$ac_objext \
18137    conftest$ac_exeext conftest.$ac_ext
18138LIBS=$ac_check_lib_save_LIBS
18139fi
18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18141$as_echo "$ac_cv_lib_readline_readline" >&6; }
18142if test "x$ac_cv_lib_readline_readline" = xyes; then :
18143  LIBREADLINE="-lreadline"
18144else
18145  unset ac_cv_lib_readline_readline;
18146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18147$as_echo_n "checking for readline in -lreadline... " >&6; }
18148if ${ac_cv_lib_readline_readline+:} false; then :
18149  $as_echo_n "(cached) " >&6
18150else
18151  ac_check_lib_save_LIBS=$LIBS
18152LIBS="-lreadline -ltinfo $LIBS"
18153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155
18156/* Override any GCC internal prototype to avoid an error.
18157   Use char because int might match the return type of a GCC
18158   builtin and then its argument prototype would still apply.  */
18159#ifdef __cplusplus
18160extern "C"
18161#endif
18162char readline ();
18163int
18164main ()
18165{
18166return readline ();
18167  ;
18168  return 0;
18169}
18170_ACEOF
18171if ac_fn_c_try_link "$LINENO"; then :
18172  ac_cv_lib_readline_readline=yes
18173else
18174  ac_cv_lib_readline_readline=no
18175fi
18176rm -f core conftest.err conftest.$ac_objext \
18177    conftest$ac_exeext conftest.$ac_ext
18178LIBS=$ac_check_lib_save_LIBS
18179fi
18180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18181$as_echo "$ac_cv_lib_readline_readline" >&6; }
18182if test "x$ac_cv_lib_readline_readline" = xyes; then :
18183  LIBREADLINE="-ltinfo"
18184else
18185  unset ac_cv_lib_readline_readline;
18186      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18187$as_echo_n "checking for readline in -lreadline... " >&6; }
18188if ${ac_cv_lib_readline_readline+:} false; then :
18189  $as_echo_n "(cached) " >&6
18190else
18191  ac_check_lib_save_LIBS=$LIBS
18192LIBS="-lreadline -lcurses $LIBS"
18193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h.  */
18195
18196/* Override any GCC internal prototype to avoid an error.
18197   Use char because int might match the return type of a GCC
18198   builtin and then its argument prototype would still apply.  */
18199#ifdef __cplusplus
18200extern "C"
18201#endif
18202char readline ();
18203int
18204main ()
18205{
18206return readline ();
18207  ;
18208  return 0;
18209}
18210_ACEOF
18211if ac_fn_c_try_link "$LINENO"; then :
18212  ac_cv_lib_readline_readline=yes
18213else
18214  ac_cv_lib_readline_readline=no
18215fi
18216rm -f core conftest.err conftest.$ac_objext \
18217    conftest$ac_exeext conftest.$ac_ext
18218LIBS=$ac_check_lib_save_LIBS
18219fi
18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18221$as_echo "$ac_cv_lib_readline_readline" >&6; }
18222if test "x$ac_cv_lib_readline_readline" = xyes; then :
18223  LIBREADLINE="-lcurses"
18224else
18225  unset ac_cv_lib_readline_readline;
18226        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18227$as_echo_n "checking for readline in -lreadline... " >&6; }
18228if ${ac_cv_lib_readline_readline+:} false; then :
18229  $as_echo_n "(cached) " >&6
18230else
18231  ac_check_lib_save_LIBS=$LIBS
18232LIBS="-lreadline -lncurses $LIBS"
18233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234/* end confdefs.h.  */
18235
18236/* Override any GCC internal prototype to avoid an error.
18237   Use char because int might match the return type of a GCC
18238   builtin and then its argument prototype would still apply.  */
18239#ifdef __cplusplus
18240extern "C"
18241#endif
18242char readline ();
18243int
18244main ()
18245{
18246return readline ();
18247  ;
18248  return 0;
18249}
18250_ACEOF
18251if ac_fn_c_try_link "$LINENO"; then :
18252  ac_cv_lib_readline_readline=yes
18253else
18254  ac_cv_lib_readline_readline=no
18255fi
18256rm -f core conftest.err conftest.$ac_objext \
18257    conftest$ac_exeext conftest.$ac_ext
18258LIBS=$ac_check_lib_save_LIBS
18259fi
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18261$as_echo "$ac_cv_lib_readline_readline" >&6; }
18262if test "x$ac_cv_lib_readline_readline" = xyes; then :
18263  LIBREADLINE="-lncurses"
18264else
18265  unset ac_cv_lib_readline_readline;
18266	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18267$as_echo_n "checking for readline in -lreadline... " >&6; }
18268if ${ac_cv_lib_readline_readline+:} false; then :
18269  $as_echo_n "(cached) " >&6
18270else
18271  ac_check_lib_save_LIBS=$LIBS
18272LIBS="-lreadline -lncursesw $LIBS"
18273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274/* end confdefs.h.  */
18275
18276/* Override any GCC internal prototype to avoid an error.
18277   Use char because int might match the return type of a GCC
18278   builtin and then its argument prototype would still apply.  */
18279#ifdef __cplusplus
18280extern "C"
18281#endif
18282char readline ();
18283int
18284main ()
18285{
18286return readline ();
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291if ac_fn_c_try_link "$LINENO"; then :
18292  ac_cv_lib_readline_readline=yes
18293else
18294  ac_cv_lib_readline_readline=no
18295fi
18296rm -f core conftest.err conftest.$ac_objext \
18297    conftest$ac_exeext conftest.$ac_ext
18298LIBS=$ac_check_lib_save_LIBS
18299fi
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18301$as_echo "$ac_cv_lib_readline_readline" >&6; }
18302if test "x$ac_cv_lib_readline_readline" = xyes; then :
18303  LIBREADLINE="-lncursesw"
18304else
18305  unset ac_cv_lib_readline_readline;
18306	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18307$as_echo_n "checking for readline in -lreadline... " >&6; }
18308if ${ac_cv_lib_readline_readline+:} false; then :
18309  $as_echo_n "(cached) " >&6
18310else
18311  ac_check_lib_save_LIBS=$LIBS
18312LIBS="-lreadline -ltermcap $LIBS"
18313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314/* end confdefs.h.  */
18315
18316/* Override any GCC internal prototype to avoid an error.
18317   Use char because int might match the return type of a GCC
18318   builtin and then its argument prototype would still apply.  */
18319#ifdef __cplusplus
18320extern "C"
18321#endif
18322char readline ();
18323int
18324main ()
18325{
18326return readline ();
18327  ;
18328  return 0;
18329}
18330_ACEOF
18331if ac_fn_c_try_link "$LINENO"; then :
18332  ac_cv_lib_readline_readline=yes
18333else
18334  ac_cv_lib_readline_readline=no
18335fi
18336rm -f core conftest.err conftest.$ac_objext \
18337    conftest$ac_exeext conftest.$ac_ext
18338LIBS=$ac_check_lib_save_LIBS
18339fi
18340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18341$as_echo "$ac_cv_lib_readline_readline" >&6; }
18342if test "x$ac_cv_lib_readline_readline" = xyes; then :
18343  LIBREADLINE="-ltermcap"
18344else
18345  LIBREADLINE=""
18346fi
18347
18348fi
18349
18350fi
18351
18352fi
18353
18354fi
18355
18356fi
18357
18358
18359 if test -n "$LIBREADLINE"; then
18360   if test "$LIBREADLINE" != "-lreadline"; then
18361     echo "-lreadline needs $LIBREADLINE"
18362     LIBREADLINE="-lreadline $LIBREADLINE"
18363   fi
18364 fi
18365fi
18366
18367
18368# Check for the availability of libedit. Different distributions put its
18369# headers in different places. Try to cover the most common ones.
18370
18371if test "$enable_pcretest_libedit" = "yes"; then
18372  for ac_header in editline/readline.h
18373do :
18374  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18375if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18376  cat >>confdefs.h <<_ACEOF
18377#define HAVE_EDITLINE_READLINE_H 1
18378_ACEOF
18379 HAVE_EDITLINE_READLINE_H=1
18380else
18381  for ac_header in edit/readline/readline.h
18382do :
18383  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18384if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18385  cat >>confdefs.h <<_ACEOF
18386#define HAVE_EDIT_READLINE_READLINE_H 1
18387_ACEOF
18388 HAVE_READLINE_READLINE_H=1
18389else
18390  for ac_header in readline/readline.h
18391do :
18392  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18393if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18394  cat >>confdefs.h <<_ACEOF
18395#define HAVE_READLINE_READLINE_H 1
18396_ACEOF
18397 HAVE_READLINE_READLINE_H=1
18398fi
18399
18400done
18401
18402fi
18403
18404done
18405
18406fi
18407
18408done
18409
18410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
18411$as_echo_n "checking for readline in -ledit... " >&6; }
18412if ${ac_cv_lib_edit_readline+:} false; then :
18413  $as_echo_n "(cached) " >&6
18414else
18415  ac_check_lib_save_LIBS=$LIBS
18416LIBS="-ledit  $LIBS"
18417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418/* end confdefs.h.  */
18419
18420/* Override any GCC internal prototype to avoid an error.
18421   Use char because int might match the return type of a GCC
18422   builtin and then its argument prototype would still apply.  */
18423#ifdef __cplusplus
18424extern "C"
18425#endif
18426char readline ();
18427int
18428main ()
18429{
18430return readline ();
18431  ;
18432  return 0;
18433}
18434_ACEOF
18435if ac_fn_c_try_link "$LINENO"; then :
18436  ac_cv_lib_edit_readline=yes
18437else
18438  ac_cv_lib_edit_readline=no
18439fi
18440rm -f core conftest.err conftest.$ac_objext \
18441    conftest$ac_exeext conftest.$ac_ext
18442LIBS=$ac_check_lib_save_LIBS
18443fi
18444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
18445$as_echo "$ac_cv_lib_edit_readline" >&6; }
18446if test "x$ac_cv_lib_edit_readline" = xyes; then :
18447  LIBEDIT="-ledit"
18448fi
18449
18450fi
18451
18452# This facilitates -ansi builds under Linux
18453
18454PCRE_STATIC_CFLAG=""
18455if test "x$enable_shared" = "xno" ; then
18456
18457$as_echo "#define PCRE_STATIC 1" >>confdefs.h
18458
18459  PCRE_STATIC_CFLAG="-DPCRE_STATIC"
18460fi
18461
18462
18463# Here is where pcre specific defines are handled
18464
18465if test "$enable_pcre8" = "yes"; then
18466
18467$as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
18468
18469fi
18470
18471if test "$enable_pcre16" = "yes"; then
18472
18473$as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
18474
18475fi
18476
18477if test "$enable_pcre32" = "yes"; then
18478
18479$as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
18480
18481fi
18482
18483# Unless running under Windows, JIT support requires pthreads.
18484
18485if test "$enable_jit" = "yes"; then
18486  if test "$HAVE_WINDOWS_H" != "1"; then
18487
18488
18489ac_ext=c
18490ac_cpp='$CPP $CPPFLAGS'
18491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494
18495ax_pthread_ok=no
18496
18497# We used to check for pthread.h first, but this fails if pthread.h
18498# requires special compiler flags (e.g. on True64 or Sequent).
18499# It gets checked for in the link test anyway.
18500
18501# First of all, check if the user has set any of the PTHREAD_LIBS,
18502# etcetera environment variables, and if threads linking works using
18503# them:
18504if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18505        save_CFLAGS="$CFLAGS"
18506        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18507        save_LIBS="$LIBS"
18508        LIBS="$PTHREAD_LIBS $LIBS"
18509        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18510$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18511        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512/* end confdefs.h.  */
18513
18514/* Override any GCC internal prototype to avoid an error.
18515   Use char because int might match the return type of a GCC
18516   builtin and then its argument prototype would still apply.  */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520char pthread_join ();
18521int
18522main ()
18523{
18524return pthread_join ();
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529if ac_fn_c_try_link "$LINENO"; then :
18530  ax_pthread_ok=yes
18531fi
18532rm -f core conftest.err conftest.$ac_objext \
18533    conftest$ac_exeext conftest.$ac_ext
18534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18535$as_echo "$ax_pthread_ok" >&6; }
18536        if test x"$ax_pthread_ok" = xno; then
18537                PTHREAD_LIBS=""
18538                PTHREAD_CFLAGS=""
18539        fi
18540        LIBS="$save_LIBS"
18541        CFLAGS="$save_CFLAGS"
18542fi
18543
18544# We must check for the threads library under a number of different
18545# names; the ordering is very important because some systems
18546# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18547# libraries is broken (non-POSIX).
18548
18549# Create a list of thread flags to try.  Items starting with a "-" are
18550# C compiler flags, and other items are library names, except for "none"
18551# which indicates that we try without any flags at all, and "pthread-config"
18552# which is a program returning the flags for the Pth emulation library.
18553
18554ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18555
18556# The ordering *is* (sometimes) important.  Some notes on the
18557# individual items follow:
18558
18559# pthreads: AIX (must check this before -lpthread)
18560# none: in case threads are in libc; should be tried before -Kthread and
18561#       other compiler flags to prevent continual compiler warnings
18562# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18563# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18564# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18565# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18566# -pthreads: Solaris/gcc
18567# -mthreads: Mingw32/gcc, Lynx/gcc
18568# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18569#      doesn't hurt to check since this sometimes defines pthreads too;
18570#      also defines -D_REENTRANT)
18571#      ... -mt is also the pthreads flag for HP/aCC
18572# pthread: Linux, etcetera
18573# --thread-safe: KAI C++
18574# pthread-config: use pthread-config program (for GNU Pth library)
18575
18576case ${host_os} in
18577        solaris*)
18578
18579        # On Solaris (at least, for some versions), libc contains stubbed
18580        # (non-functional) versions of the pthreads routines, so link-based
18581        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18582        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18583        # a function called by this macro, so we could check for that, but
18584        # who knows whether they'll stub that too in a future libc.)  So,
18585        # we'll just look for -pthreads and -lpthread first:
18586
18587        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18588        ;;
18589
18590        darwin*)
18591        ax_pthread_flags="-pthread $ax_pthread_flags"
18592        ;;
18593esac
18594
18595if test x"$ax_pthread_ok" = xno; then
18596for flag in $ax_pthread_flags; do
18597
18598        case $flag in
18599                none)
18600                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18601$as_echo_n "checking whether pthreads work without any flags... " >&6; }
18602                ;;
18603
18604                -*)
18605                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18606$as_echo_n "checking whether pthreads work with $flag... " >&6; }
18607                PTHREAD_CFLAGS="$flag"
18608                ;;
18609
18610                pthread-config)
18611                # Extract the first word of "pthread-config", so it can be a program name with args.
18612set dummy pthread-config; ac_word=$2
18613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18614$as_echo_n "checking for $ac_word... " >&6; }
18615if ${ac_cv_prog_ax_pthread_config+:} false; then :
18616  $as_echo_n "(cached) " >&6
18617else
18618  if test -n "$ax_pthread_config"; then
18619  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18620else
18621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622for as_dir in $PATH
18623do
18624  IFS=$as_save_IFS
18625  test -z "$as_dir" && as_dir=.
18626    for ac_exec_ext in '' $ac_executable_extensions; do
18627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628    ac_cv_prog_ax_pthread_config="yes"
18629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18630    break 2
18631  fi
18632done
18633  done
18634IFS=$as_save_IFS
18635
18636  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18637fi
18638fi
18639ax_pthread_config=$ac_cv_prog_ax_pthread_config
18640if test -n "$ax_pthread_config"; then
18641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18642$as_echo "$ax_pthread_config" >&6; }
18643else
18644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645$as_echo "no" >&6; }
18646fi
18647
18648
18649                if test x"$ax_pthread_config" = xno; then continue; fi
18650                PTHREAD_CFLAGS="`pthread-config --cflags`"
18651                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18652                ;;
18653
18654                *)
18655                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18656$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18657                PTHREAD_LIBS="-l$flag"
18658                ;;
18659        esac
18660
18661        save_LIBS="$LIBS"
18662        save_CFLAGS="$CFLAGS"
18663        LIBS="$PTHREAD_LIBS $LIBS"
18664        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18665
18666        # Check for various functions.  We must include pthread.h,
18667        # since some functions may be macros.  (On the Sequent, we
18668        # need a special flag -Kthread to make this header compile.)
18669        # We check for pthread_join because it is in -lpthread on IRIX
18670        # while pthread_create is in libc.  We check for pthread_attr_init
18671        # due to DEC craziness with -lpthreads.  We check for
18672        # pthread_cleanup_push because it is one of the few pthread
18673        # functions on Solaris that doesn't have a non-functional libc stub.
18674        # We try pthread_create on general principles.
18675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676/* end confdefs.h.  */
18677#include <pthread.h>
18678                        static void routine(void *a) { a = 0; }
18679                        static void *start_routine(void *a) { return a; }
18680int
18681main ()
18682{
18683pthread_t th; pthread_attr_t attr;
18684                        pthread_create(&th, 0, start_routine, 0);
18685                        pthread_join(th, 0);
18686                        pthread_attr_init(&attr);
18687                        pthread_cleanup_push(routine, 0);
18688                        pthread_cleanup_pop(0) /* ; */
18689  ;
18690  return 0;
18691}
18692_ACEOF
18693if ac_fn_c_try_link "$LINENO"; then :
18694  ax_pthread_ok=yes
18695fi
18696rm -f core conftest.err conftest.$ac_objext \
18697    conftest$ac_exeext conftest.$ac_ext
18698
18699        LIBS="$save_LIBS"
18700        CFLAGS="$save_CFLAGS"
18701
18702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18703$as_echo "$ax_pthread_ok" >&6; }
18704        if test "x$ax_pthread_ok" = xyes; then
18705                break;
18706        fi
18707
18708        PTHREAD_LIBS=""
18709        PTHREAD_CFLAGS=""
18710done
18711fi
18712
18713# Various other checks:
18714if test "x$ax_pthread_ok" = xyes; then
18715        save_LIBS="$LIBS"
18716        LIBS="$PTHREAD_LIBS $LIBS"
18717        save_CFLAGS="$CFLAGS"
18718        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18719
18720        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18721        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18722$as_echo_n "checking for joinable pthread attribute... " >&6; }
18723        attr_name=unknown
18724        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18725            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726/* end confdefs.h.  */
18727#include <pthread.h>
18728int
18729main ()
18730{
18731int attr = $attr; return attr /* ; */
18732  ;
18733  return 0;
18734}
18735_ACEOF
18736if ac_fn_c_try_link "$LINENO"; then :
18737  attr_name=$attr; break
18738fi
18739rm -f core conftest.err conftest.$ac_objext \
18740    conftest$ac_exeext conftest.$ac_ext
18741        done
18742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18743$as_echo "$attr_name" >&6; }
18744        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18745
18746cat >>confdefs.h <<_ACEOF
18747#define PTHREAD_CREATE_JOINABLE $attr_name
18748_ACEOF
18749
18750        fi
18751
18752        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18753$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18754        flag=no
18755        case ${host_os} in
18756            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18757            osf* | hpux*) flag="-D_REENTRANT";;
18758            solaris*)
18759            if test "$GCC" = "yes"; then
18760                flag="-D_REENTRANT"
18761            else
18762                flag="-mt -D_REENTRANT"
18763            fi
18764            ;;
18765        esac
18766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18767$as_echo "${flag}" >&6; }
18768        if test "x$flag" != xno; then
18769            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18770        fi
18771
18772        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18773$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18774if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18775  $as_echo_n "(cached) " >&6
18776else
18777
18778                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h.  */
18780
18781                    #include <pthread.h>
18782int
18783main ()
18784{
18785int i = PTHREAD_PRIO_INHERIT;
18786  ;
18787  return 0;
18788}
18789_ACEOF
18790if ac_fn_c_try_link "$LINENO"; then :
18791  ax_cv_PTHREAD_PRIO_INHERIT=yes
18792else
18793  ax_cv_PTHREAD_PRIO_INHERIT=no
18794fi
18795rm -f core conftest.err conftest.$ac_objext \
18796    conftest$ac_exeext conftest.$ac_ext
18797
18798fi
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18800$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18801        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18802
18803$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18804
18805fi
18806
18807        LIBS="$save_LIBS"
18808        CFLAGS="$save_CFLAGS"
18809
18810        # More AIX lossage: must compile with xlc_r or cc_r
18811        if test x"$GCC" != xyes; then
18812          for ac_prog in xlc_r cc_r
18813do
18814  # Extract the first word of "$ac_prog", so it can be a program name with args.
18815set dummy $ac_prog; ac_word=$2
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18817$as_echo_n "checking for $ac_word... " >&6; }
18818if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18819  $as_echo_n "(cached) " >&6
18820else
18821  if test -n "$PTHREAD_CC"; then
18822  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18823else
18824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18825for as_dir in $PATH
18826do
18827  IFS=$as_save_IFS
18828  test -z "$as_dir" && as_dir=.
18829    for ac_exec_ext in '' $ac_executable_extensions; do
18830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18831    ac_cv_prog_PTHREAD_CC="$ac_prog"
18832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18833    break 2
18834  fi
18835done
18836  done
18837IFS=$as_save_IFS
18838
18839fi
18840fi
18841PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18842if test -n "$PTHREAD_CC"; then
18843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18844$as_echo "$PTHREAD_CC" >&6; }
18845else
18846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847$as_echo "no" >&6; }
18848fi
18849
18850
18851  test -n "$PTHREAD_CC" && break
18852done
18853test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18854
18855        else
18856          PTHREAD_CC=$CC
18857        fi
18858else
18859        PTHREAD_CC="$CC"
18860fi
18861
18862
18863
18864
18865
18866# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18867if test x"$ax_pthread_ok" = xyes; then
18868
18869$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18870
18871        :
18872else
18873        ax_pthread_ok=no
18874        as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
18875fi
18876ac_ext=c
18877ac_cpp='$CPP $CPPFLAGS'
18878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18880ac_compiler_gnu=$ac_cv_c_compiler_gnu
18881
18882
18883    CC="$PTHREAD_CC"
18884    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18885    LIBS="$PTHREAD_LIBS $LIBS"
18886  fi
18887
18888$as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
18889
18890else
18891  enable_pcregrep_jit="no"
18892fi
18893
18894if test "$enable_pcregrep_jit" = "yes"; then
18895
18896$as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
18897
18898fi
18899
18900if test "$enable_utf" = "yes"; then
18901
18902$as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
18903
18904fi
18905
18906if test "$enable_unicode_properties" = "yes"; then
18907
18908$as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
18909
18910fi
18911
18912if test "$enable_stack_for_recursion" = "no"; then
18913
18914$as_echo "#define NO_RECURSE /**/" >>confdefs.h
18915
18916fi
18917
18918if test "$enable_pcregrep_libz" = "yes"; then
18919
18920$as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
18921
18922fi
18923
18924if test "$enable_pcregrep_libbz2" = "yes"; then
18925
18926$as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
18927
18928fi
18929
18930if test $with_pcregrep_bufsize -lt 8192 ; then
18931  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
18932$as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
18933  with_pcregrep_bufsize="8192"
18934else
18935  if test $? -gt 1 ; then
18936  as_fn_error $? "Bad value for  --with-pcregrep-bufsize" "$LINENO" 5
18937  fi
18938fi
18939
18940
18941cat >>confdefs.h <<_ACEOF
18942#define PCREGREP_BUFSIZE $with_pcregrep_bufsize
18943_ACEOF
18944
18945
18946if test "$enable_pcretest_libedit" = "yes"; then
18947
18948$as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
18949
18950  LIBREADLINE="$LIBEDIT"
18951elif test "$enable_pcretest_libreadline" = "yes"; then
18952
18953$as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
18954
18955fi
18956
18957
18958cat >>confdefs.h <<_ACEOF
18959#define NEWLINE $ac_pcre_newline_value
18960_ACEOF
18961
18962
18963if test "$enable_bsr_anycrlf" = "yes"; then
18964
18965$as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
18966
18967fi
18968
18969
18970cat >>confdefs.h <<_ACEOF
18971#define LINK_SIZE $with_link_size
18972_ACEOF
18973
18974
18975
18976cat >>confdefs.h <<_ACEOF
18977#define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18978_ACEOF
18979
18980
18981
18982cat >>confdefs.h <<_ACEOF
18983#define PARENS_NEST_LIMIT $with_parens_nest_limit
18984_ACEOF
18985
18986
18987
18988cat >>confdefs.h <<_ACEOF
18989#define MATCH_LIMIT $with_match_limit
18990_ACEOF
18991
18992
18993
18994cat >>confdefs.h <<_ACEOF
18995#define MATCH_LIMIT_RECURSION $with_match_limit_recursion
18996_ACEOF
18997
18998
18999
19000$as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19001
19002
19003
19004$as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19005
19006
19007
19008
19009if test "$enable_ebcdic" = "yes"; then
19010
19011cat >>confdefs.h <<_ACEOF
19012#define EBCDIC /**/
19013_ACEOF
19014
19015fi
19016
19017if test "$enable_ebcdic_nl25" = "yes"; then
19018
19019cat >>confdefs.h <<_ACEOF
19020#define EBCDIC_NL25 /**/
19021_ACEOF
19022
19023fi
19024
19025if test "$enable_valgrind" = "yes"; then
19026
19027cat >>confdefs.h <<_ACEOF
19028#define SUPPORT_VALGRIND /**/
19029_ACEOF
19030
19031fi
19032
19033# Platform specific issues
19034NO_UNDEFINED=
19035EXPORT_ALL_SYMBOLS=
19036case $host_os in
19037  cygwin* | mingw* )
19038    if test X"$enable_shared" = Xyes; then
19039      NO_UNDEFINED="-no-undefined"
19040      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19041    fi
19042    ;;
19043esac
19044
19045# The extra LDFLAGS for each particular library
19046# (Note: The libpcre*_version bits are m4 variables, assigned above)
19047
19048EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
19049                       $NO_UNDEFINED -version-info 3:4:2"
19050
19051EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
19052                       $NO_UNDEFINED -version-info 2:4:2"
19053
19054EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
19055                       $NO_UNDEFINED -version-info 0:4:0"
19056
19057EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19058                            $NO_UNDEFINED -version-info 0:3:0"
19059
19060EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19061                          $NO_UNDEFINED -version-info 0:1:0 \
19062                          $EXPORT_ALL_SYMBOLS"
19063
19064
19065
19066
19067
19068
19069
19070# When we run 'make distcheck', use these arguments. Turning off compiler
19071# optimization makes it run faster.
19072DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19073
19074
19075# Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19076# specified, the relevant library is available.
19077
19078if test "$enable_pcregrep_libz" = "yes"; then
19079  if test "$HAVE_ZLIB_H" != "1"; then
19080    echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19081    exit 1
19082  fi
19083  if test "$HAVE_LIBZ" != "1"; then
19084    echo "** Cannot --enable-pcregrep-libz because libz was not found"
19085    exit 1
19086  fi
19087  LIBZ="-lz"
19088fi
19089
19090
19091if test "$enable_pcregrep_libbz2" = "yes"; then
19092  if test "$HAVE_BZLIB_H" != "1"; then
19093    echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19094    exit 1
19095  fi
19096  if test "$HAVE_LIBBZ2" != "1"; then
19097    echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19098    exit 1
19099  fi
19100  LIBBZ2="-lbz2"
19101fi
19102
19103
19104# Similarly for --enable-pcretest-readline
19105
19106if test "$enable_pcretest_libedit" = "yes"; then
19107  if test "$enable_pcretest_libreadline" = "yes"; then
19108    echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19109    exit 1
19110  fi
19111  if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19112          "$HAVE_READLINE_READLINE_H" != "1"; then
19113    echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19114    echo "** nor readline/readline.h was found."
19115    exit 1
19116  fi
19117  if test -z "$LIBEDIT"; then
19118    echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19119    exit 1
19120  fi
19121fi
19122
19123if test "$enable_pcretest_libreadline" = "yes"; then
19124  if test "$HAVE_READLINE_H" != "1"; then
19125    echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19126    exit 1
19127  fi
19128  if test "$HAVE_HISTORY_H" != "1"; then
19129    echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19130    exit 1
19131  fi
19132  if test -z "$LIBREADLINE"; then
19133    echo "** Cannot --enable-pcretest-readline because readline library was not found."
19134    exit 1
19135  fi
19136fi
19137
19138# Handle valgrind support
19139
19140if test "$enable_valgrind" = "yes"; then
19141
19142
19143
19144
19145
19146
19147
19148if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19149	if test -n "$ac_tool_prefix"; then
19150  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19151set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19153$as_echo_n "checking for $ac_word... " >&6; }
19154if ${ac_cv_path_PKG_CONFIG+:} false; then :
19155  $as_echo_n "(cached) " >&6
19156else
19157  case $PKG_CONFIG in
19158  [\\/]* | ?:[\\/]*)
19159  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19160  ;;
19161  *)
19162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19163for as_dir in $PATH
19164do
19165  IFS=$as_save_IFS
19166  test -z "$as_dir" && as_dir=.
19167    for ac_exec_ext in '' $ac_executable_extensions; do
19168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19169    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19171    break 2
19172  fi
19173done
19174  done
19175IFS=$as_save_IFS
19176
19177  ;;
19178esac
19179fi
19180PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19181if test -n "$PKG_CONFIG"; then
19182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19183$as_echo "$PKG_CONFIG" >&6; }
19184else
19185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186$as_echo "no" >&6; }
19187fi
19188
19189
19190fi
19191if test -z "$ac_cv_path_PKG_CONFIG"; then
19192  ac_pt_PKG_CONFIG=$PKG_CONFIG
19193  # Extract the first word of "pkg-config", so it can be a program name with args.
19194set dummy pkg-config; ac_word=$2
19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19196$as_echo_n "checking for $ac_word... " >&6; }
19197if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19198  $as_echo_n "(cached) " >&6
19199else
19200  case $ac_pt_PKG_CONFIG in
19201  [\\/]* | ?:[\\/]*)
19202  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19203  ;;
19204  *)
19205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19206for as_dir in $PATH
19207do
19208  IFS=$as_save_IFS
19209  test -z "$as_dir" && as_dir=.
19210    for ac_exec_ext in '' $ac_executable_extensions; do
19211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19212    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19214    break 2
19215  fi
19216done
19217  done
19218IFS=$as_save_IFS
19219
19220  ;;
19221esac
19222fi
19223ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19224if test -n "$ac_pt_PKG_CONFIG"; then
19225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19226$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19227else
19228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19229$as_echo "no" >&6; }
19230fi
19231
19232  if test "x$ac_pt_PKG_CONFIG" = x; then
19233    PKG_CONFIG=""
19234  else
19235    case $cross_compiling:$ac_tool_warned in
19236yes:)
19237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19239ac_tool_warned=yes ;;
19240esac
19241    PKG_CONFIG=$ac_pt_PKG_CONFIG
19242  fi
19243else
19244  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19245fi
19246
19247fi
19248if test -n "$PKG_CONFIG"; then
19249	_pkg_min_version=0.9.0
19250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19251$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19252	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19254$as_echo "yes" >&6; }
19255	else
19256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257$as_echo "no" >&6; }
19258		PKG_CONFIG=""
19259	fi
19260fi
19261
19262pkg_failed=no
19263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19264$as_echo_n "checking for VALGRIND... " >&6; }
19265
19266if test -n "$VALGRIND_CFLAGS"; then
19267    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19268 elif test -n "$PKG_CONFIG"; then
19269    if test -n "$PKG_CONFIG" && \
19270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19271  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19272  ac_status=$?
19273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274  test $ac_status = 0; }; then
19275  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19276		      test "x$?" != "x0" && pkg_failed=yes
19277else
19278  pkg_failed=yes
19279fi
19280 else
19281    pkg_failed=untried
19282fi
19283if test -n "$VALGRIND_LIBS"; then
19284    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19285 elif test -n "$PKG_CONFIG"; then
19286    if test -n "$PKG_CONFIG" && \
19287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19288  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19289  ac_status=$?
19290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291  test $ac_status = 0; }; then
19292  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19293		      test "x$?" != "x0" && pkg_failed=yes
19294else
19295  pkg_failed=yes
19296fi
19297 else
19298    pkg_failed=untried
19299fi
19300
19301
19302
19303if test $pkg_failed = yes; then
19304   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305$as_echo "no" >&6; }
19306
19307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19308        _pkg_short_errors_supported=yes
19309else
19310        _pkg_short_errors_supported=no
19311fi
19312        if test $_pkg_short_errors_supported = yes; then
19313	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19314        else
19315	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19316        fi
19317	# Put the nasty error message in config.log where it belongs
19318	echo "$VALGRIND_PKG_ERRORS" >&5
19319
19320	as_fn_error $? "Package requirements (valgrind) were not met:
19321
19322$VALGRIND_PKG_ERRORS
19323
19324Consider adjusting the PKG_CONFIG_PATH environment variable if you
19325installed software in a non-standard prefix.
19326
19327Alternatively, you may set the environment variables VALGRIND_CFLAGS
19328and VALGRIND_LIBS to avoid the need to call pkg-config.
19329See the pkg-config man page for more details." "$LINENO" 5
19330elif test $pkg_failed = untried; then
19331     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332$as_echo "no" >&6; }
19333	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19335as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19336is in your PATH or set the PKG_CONFIG environment variable to the full
19337path to pkg-config.
19338
19339Alternatively, you may set the environment variables VALGRIND_CFLAGS
19340and VALGRIND_LIBS to avoid the need to call pkg-config.
19341See the pkg-config man page for more details.
19342
19343To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19344See \`config.log' for more details" "$LINENO" 5; }
19345else
19346	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19347	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19348        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349$as_echo "yes" >&6; }
19350
19351fi
19352fi
19353
19354# Handle code coverage reporting support
19355if test "$enable_coverage" = "yes"; then
19356  if test "x$GCC" != "xyes"; then
19357    as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
19358  fi
19359
19360  # ccache is incompatible with gcov
19361  # Extract the first word of "shtool", so it can be a program name with args.
19362set dummy shtool; ac_word=$2
19363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19364$as_echo_n "checking for $ac_word... " >&6; }
19365if ${ac_cv_path_SHTOOL+:} false; then :
19366  $as_echo_n "(cached) " >&6
19367else
19368  case $SHTOOL in
19369  [\\/]* | ?:[\\/]*)
19370  ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
19371  ;;
19372  *)
19373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374for as_dir in $PATH
19375do
19376  IFS=$as_save_IFS
19377  test -z "$as_dir" && as_dir=.
19378    for ac_exec_ext in '' $ac_executable_extensions; do
19379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19380    ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
19381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19382    break 2
19383  fi
19384done
19385  done
19386IFS=$as_save_IFS
19387
19388  test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
19389  ;;
19390esac
19391fi
19392SHTOOL=$ac_cv_path_SHTOOL
19393if test -n "$SHTOOL"; then
19394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
19395$as_echo "$SHTOOL" >&6; }
19396else
19397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398$as_echo "no" >&6; }
19399fi
19400
19401
19402  case `$SHTOOL path $CC` in
19403    *ccache*) cc_ccache=yes;;
19404    *) cc_ccache=no;;
19405  esac
19406
19407  if test "$cc_ccache" = "yes"; then
19408    if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
19409      as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
19410    fi
19411  fi
19412
19413
19414  # Extract the first word of "lcov", so it can be a program name with args.
19415set dummy lcov; ac_word=$2
19416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19417$as_echo_n "checking for $ac_word... " >&6; }
19418if ${ac_cv_path_LCOV+:} false; then :
19419  $as_echo_n "(cached) " >&6
19420else
19421  case $LCOV in
19422  [\\/]* | ?:[\\/]*)
19423  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
19424  ;;
19425  *)
19426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19427for as_dir in $PATH
19428do
19429  IFS=$as_save_IFS
19430  test -z "$as_dir" && as_dir=.
19431    for ac_exec_ext in '' $ac_executable_extensions; do
19432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19433    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
19434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19435    break 2
19436  fi
19437done
19438  done
19439IFS=$as_save_IFS
19440
19441  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
19442  ;;
19443esac
19444fi
19445LCOV=$ac_cv_path_LCOV
19446if test -n "$LCOV"; then
19447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
19448$as_echo "$LCOV" >&6; }
19449else
19450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451$as_echo "no" >&6; }
19452fi
19453
19454
19455  if test "x$LCOV" = "xfalse"; then
19456    as_fn_error $? "lcov not found" "$LINENO" 5
19457  fi
19458
19459
19460  # Extract the first word of "genhtml", so it can be a program name with args.
19461set dummy genhtml; ac_word=$2
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19463$as_echo_n "checking for $ac_word... " >&6; }
19464if ${ac_cv_path_GENHTML+:} false; then :
19465  $as_echo_n "(cached) " >&6
19466else
19467  case $GENHTML in
19468  [\\/]* | ?:[\\/]*)
19469  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
19470  ;;
19471  *)
19472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473for as_dir in $PATH
19474do
19475  IFS=$as_save_IFS
19476  test -z "$as_dir" && as_dir=.
19477    for ac_exec_ext in '' $ac_executable_extensions; do
19478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19479    ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
19480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19481    break 2
19482  fi
19483done
19484  done
19485IFS=$as_save_IFS
19486
19487  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
19488  ;;
19489esac
19490fi
19491GENHTML=$ac_cv_path_GENHTML
19492if test -n "$GENHTML"; then
19493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
19494$as_echo "$GENHTML" >&6; }
19495else
19496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497$as_echo "no" >&6; }
19498fi
19499
19500
19501  if test "x$GENHTML" = "xfalse"; then
19502    as_fn_error $? "genhtml not found" "$LINENO" 5
19503  fi
19504
19505  # Set flags needed for gcov
19506  GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19507  GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19508  GCOV_LIBS="-lgcov"
19509
19510
19511
19512fi # enable_coverage
19513
19514 if test "x$enable_coverage" = "xyes"; then
19515  WITH_GCOV_TRUE=
19516  WITH_GCOV_FALSE='#'
19517else
19518  WITH_GCOV_TRUE='#'
19519  WITH_GCOV_FALSE=
19520fi
19521
19522
19523# Produce these files, in addition to config.h.
19524ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
19525
19526
19527# Make the generated script files executable.
19528ac_config_commands="$ac_config_commands script-chmod"
19529
19530
19531# Make sure that pcre_chartables.c is removed in case the method for
19532# creating it was changed by reconfiguration.
19533ac_config_commands="$ac_config_commands delete-old-chartables"
19534
19535
19536cat >confcache <<\_ACEOF
19537# This file is a shell script that caches the results of configure
19538# tests run on this system so they can be shared between configure
19539# scripts and configure runs, see configure's option --config-cache.
19540# It is not useful on other systems.  If it contains results you don't
19541# want to keep, you may remove or edit it.
19542#
19543# config.status only pays attention to the cache file if you give it
19544# the --recheck option to rerun configure.
19545#
19546# `ac_cv_env_foo' variables (set or unset) will be overridden when
19547# loading this file, other *unset* `ac_cv_foo' will be assigned the
19548# following values.
19549
19550_ACEOF
19551
19552# The following way of writing the cache mishandles newlines in values,
19553# but we know of no workaround that is simple, portable, and efficient.
19554# So, we kill variables containing newlines.
19555# Ultrix sh set writes to stderr and can't be redirected directly,
19556# and sets the high bit in the cache file unless we assign to the vars.
19557(
19558  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19559    eval ac_val=\$$ac_var
19560    case $ac_val in #(
19561    *${as_nl}*)
19562      case $ac_var in #(
19563      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19564$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19565      esac
19566      case $ac_var in #(
19567      _ | IFS | as_nl) ;; #(
19568      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19569      *) { eval $ac_var=; unset $ac_var;} ;;
19570      esac ;;
19571    esac
19572  done
19573
19574  (set) 2>&1 |
19575    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19576    *${as_nl}ac_space=\ *)
19577      # `set' does not quote correctly, so add quotes: double-quote
19578      # substitution turns \\\\ into \\, and sed turns \\ into \.
19579      sed -n \
19580	"s/'/'\\\\''/g;
19581	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19582      ;; #(
19583    *)
19584      # `set' quotes correctly as required by POSIX, so do not add quotes.
19585      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19586      ;;
19587    esac |
19588    sort
19589) |
19590  sed '
19591     /^ac_cv_env_/b end
19592     t clear
19593     :clear
19594     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19595     t end
19596     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19597     :end' >>confcache
19598if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19599  if test -w "$cache_file"; then
19600    if test "x$cache_file" != "x/dev/null"; then
19601      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19602$as_echo "$as_me: updating cache $cache_file" >&6;}
19603      if test ! -f "$cache_file" || test -h "$cache_file"; then
19604	cat confcache >"$cache_file"
19605      else
19606        case $cache_file in #(
19607        */* | ?:*)
19608	  mv -f confcache "$cache_file"$$ &&
19609	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19610        *)
19611	  mv -f confcache "$cache_file" ;;
19612	esac
19613      fi
19614    fi
19615  else
19616    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19617$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19618  fi
19619fi
19620rm -f confcache
19621
19622test "x$prefix" = xNONE && prefix=$ac_default_prefix
19623# Let make expand exec_prefix.
19624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19625
19626DEFS=-DHAVE_CONFIG_H
19627
19628ac_libobjs=
19629ac_ltlibobjs=
19630U=
19631for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19632  # 1. Remove the extension, and $U if already installed.
19633  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19634  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19635  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19636  #    will be set to the directory where LIBOBJS objects are built.
19637  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19638  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19639done
19640LIBOBJS=$ac_libobjs
19641
19642LTLIBOBJS=$ac_ltlibobjs
19643
19644
19645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19646$as_echo_n "checking that generated files are newer than configure... " >&6; }
19647   if test -n "$am_sleep_pid"; then
19648     # Hide warnings about reused PIDs.
19649     wait $am_sleep_pid 2>/dev/null
19650   fi
19651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19652$as_echo "done" >&6; }
19653 if test -n "$EXEEXT"; then
19654  am__EXEEXT_TRUE=
19655  am__EXEEXT_FALSE='#'
19656else
19657  am__EXEEXT_TRUE='#'
19658  am__EXEEXT_FALSE=
19659fi
19660
19661if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19662  as_fn_error $? "conditional \"AMDEP\" was never defined.
19663Usually this means the macro was only invoked conditionally." "$LINENO" 5
19664fi
19665if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19666  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19667Usually this means the macro was only invoked conditionally." "$LINENO" 5
19668fi
19669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19670  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19671Usually this means the macro was only invoked conditionally." "$LINENO" 5
19672fi
19673if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19674  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19675Usually this means the macro was only invoked conditionally." "$LINENO" 5
19676fi
19677if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
19678  as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
19679Usually this means the macro was only invoked conditionally." "$LINENO" 5
19680fi
19681if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
19682  as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
19683Usually this means the macro was only invoked conditionally." "$LINENO" 5
19684fi
19685if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
19686  as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
19687Usually this means the macro was only invoked conditionally." "$LINENO" 5
19688fi
19689if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
19690  as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
19691Usually this means the macro was only invoked conditionally." "$LINENO" 5
19692fi
19693if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
19694  as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
19695Usually this means the macro was only invoked conditionally." "$LINENO" 5
19696fi
19697if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
19698  as_fn_error $? "conditional \"WITH_JIT\" was never defined.
19699Usually this means the macro was only invoked conditionally." "$LINENO" 5
19700fi
19701if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
19702  as_fn_error $? "conditional \"WITH_UTF\" was never defined.
19703Usually this means the macro was only invoked conditionally." "$LINENO" 5
19704fi
19705if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
19706  as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
19707Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708fi
19709if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
19710  as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
19711Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712fi
19713
19714: "${CONFIG_STATUS=./config.status}"
19715ac_write_fail=0
19716ac_clean_files_save=$ac_clean_files
19717ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19718{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19720as_write_fail=0
19721cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19722#! $SHELL
19723# Generated by $as_me.
19724# Run this file to recreate the current configuration.
19725# Compiler output produced by configure, useful for debugging
19726# configure, is in config.log if it exists.
19727
19728debug=false
19729ac_cs_recheck=false
19730ac_cs_silent=false
19731
19732SHELL=\${CONFIG_SHELL-$SHELL}
19733export SHELL
19734_ASEOF
19735cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19736## -------------------- ##
19737## M4sh Initialization. ##
19738## -------------------- ##
19739
19740# Be more Bourne compatible
19741DUALCASE=1; export DUALCASE # for MKS sh
19742if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19743  emulate sh
19744  NULLCMD=:
19745  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19746  # is contrary to our usage.  Disable this feature.
19747  alias -g '${1+"$@"}'='"$@"'
19748  setopt NO_GLOB_SUBST
19749else
19750  case `(set -o) 2>/dev/null` in #(
19751  *posix*) :
19752    set -o posix ;; #(
19753  *) :
19754     ;;
19755esac
19756fi
19757
19758
19759as_nl='
19760'
19761export as_nl
19762# Printing a long string crashes Solaris 7 /usr/bin/printf.
19763as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19766# Prefer a ksh shell builtin over an external printf program on Solaris,
19767# but without wasting forks for bash or zsh.
19768if test -z "$BASH_VERSION$ZSH_VERSION" \
19769    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19770  as_echo='print -r --'
19771  as_echo_n='print -rn --'
19772elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19773  as_echo='printf %s\n'
19774  as_echo_n='printf %s'
19775else
19776  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19777    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19778    as_echo_n='/usr/ucb/echo -n'
19779  else
19780    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19781    as_echo_n_body='eval
19782      arg=$1;
19783      case $arg in #(
19784      *"$as_nl"*)
19785	expr "X$arg" : "X\\(.*\\)$as_nl";
19786	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19787      esac;
19788      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19789    '
19790    export as_echo_n_body
19791    as_echo_n='sh -c $as_echo_n_body as_echo'
19792  fi
19793  export as_echo_body
19794  as_echo='sh -c $as_echo_body as_echo'
19795fi
19796
19797# The user is always right.
19798if test "${PATH_SEPARATOR+set}" != set; then
19799  PATH_SEPARATOR=:
19800  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19801    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19802      PATH_SEPARATOR=';'
19803  }
19804fi
19805
19806
19807# IFS
19808# We need space, tab and new line, in precisely that order.  Quoting is
19809# there to prevent editors from complaining about space-tab.
19810# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19811# splitting by setting IFS to empty value.)
19812IFS=" ""	$as_nl"
19813
19814# Find who we are.  Look in the path if we contain no directory separator.
19815as_myself=
19816case $0 in #((
19817  *[\\/]* ) as_myself=$0 ;;
19818  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819for as_dir in $PATH
19820do
19821  IFS=$as_save_IFS
19822  test -z "$as_dir" && as_dir=.
19823    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19824  done
19825IFS=$as_save_IFS
19826
19827     ;;
19828esac
19829# We did not find ourselves, most probably we were run as `sh COMMAND'
19830# in which case we are not to be found in the path.
19831if test "x$as_myself" = x; then
19832  as_myself=$0
19833fi
19834if test ! -f "$as_myself"; then
19835  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19836  exit 1
19837fi
19838
19839# Unset variables that we do not need and which cause bugs (e.g. in
19840# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19841# suppresses any "Segmentation fault" message there.  '((' could
19842# trigger a bug in pdksh 5.2.14.
19843for as_var in BASH_ENV ENV MAIL MAILPATH
19844do eval test x\${$as_var+set} = xset \
19845  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19846done
19847PS1='$ '
19848PS2='> '
19849PS4='+ '
19850
19851# NLS nuisances.
19852LC_ALL=C
19853export LC_ALL
19854LANGUAGE=C
19855export LANGUAGE
19856
19857# CDPATH.
19858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19859
19860
19861# as_fn_error STATUS ERROR [LINENO LOG_FD]
19862# ----------------------------------------
19863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19865# script with STATUS, using 1 if that was 0.
19866as_fn_error ()
19867{
19868  as_status=$1; test $as_status -eq 0 && as_status=1
19869  if test "$4"; then
19870    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19871    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19872  fi
19873  $as_echo "$as_me: error: $2" >&2
19874  as_fn_exit $as_status
19875} # as_fn_error
19876
19877
19878# as_fn_set_status STATUS
19879# -----------------------
19880# Set $? to STATUS, without forking.
19881as_fn_set_status ()
19882{
19883  return $1
19884} # as_fn_set_status
19885
19886# as_fn_exit STATUS
19887# -----------------
19888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19889as_fn_exit ()
19890{
19891  set +e
19892  as_fn_set_status $1
19893  exit $1
19894} # as_fn_exit
19895
19896# as_fn_unset VAR
19897# ---------------
19898# Portably unset VAR.
19899as_fn_unset ()
19900{
19901  { eval $1=; unset $1;}
19902}
19903as_unset=as_fn_unset
19904# as_fn_append VAR VALUE
19905# ----------------------
19906# Append the text in VALUE to the end of the definition contained in VAR. Take
19907# advantage of any shell optimizations that allow amortized linear growth over
19908# repeated appends, instead of the typical quadratic growth present in naive
19909# implementations.
19910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19911  eval 'as_fn_append ()
19912  {
19913    eval $1+=\$2
19914  }'
19915else
19916  as_fn_append ()
19917  {
19918    eval $1=\$$1\$2
19919  }
19920fi # as_fn_append
19921
19922# as_fn_arith ARG...
19923# ------------------
19924# Perform arithmetic evaluation on the ARGs, and store the result in the
19925# global $as_val. Take advantage of shells that can avoid forks. The arguments
19926# must be portable across $(()) and expr.
19927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19928  eval 'as_fn_arith ()
19929  {
19930    as_val=$(( $* ))
19931  }'
19932else
19933  as_fn_arith ()
19934  {
19935    as_val=`expr "$@" || test $? -eq 1`
19936  }
19937fi # as_fn_arith
19938
19939
19940if expr a : '\(a\)' >/dev/null 2>&1 &&
19941   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19942  as_expr=expr
19943else
19944  as_expr=false
19945fi
19946
19947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19948  as_basename=basename
19949else
19950  as_basename=false
19951fi
19952
19953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19954  as_dirname=dirname
19955else
19956  as_dirname=false
19957fi
19958
19959as_me=`$as_basename -- "$0" ||
19960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19961	 X"$0" : 'X\(//\)$' \| \
19962	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19963$as_echo X/"$0" |
19964    sed '/^.*\/\([^/][^/]*\)\/*$/{
19965	    s//\1/
19966	    q
19967	  }
19968	  /^X\/\(\/\/\)$/{
19969	    s//\1/
19970	    q
19971	  }
19972	  /^X\/\(\/\).*/{
19973	    s//\1/
19974	    q
19975	  }
19976	  s/.*/./; q'`
19977
19978# Avoid depending upon Character Ranges.
19979as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19981as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19982as_cr_digits='0123456789'
19983as_cr_alnum=$as_cr_Letters$as_cr_digits
19984
19985ECHO_C= ECHO_N= ECHO_T=
19986case `echo -n x` in #(((((
19987-n*)
19988  case `echo 'xy\c'` in
19989  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19990  xy)  ECHO_C='\c';;
19991  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19992       ECHO_T='	';;
19993  esac;;
19994*)
19995  ECHO_N='-n';;
19996esac
19997
19998rm -f conf$$ conf$$.exe conf$$.file
19999if test -d conf$$.dir; then
20000  rm -f conf$$.dir/conf$$.file
20001else
20002  rm -f conf$$.dir
20003  mkdir conf$$.dir 2>/dev/null
20004fi
20005if (echo >conf$$.file) 2>/dev/null; then
20006  if ln -s conf$$.file conf$$ 2>/dev/null; then
20007    as_ln_s='ln -s'
20008    # ... but there are two gotchas:
20009    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20010    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20011    # In both cases, we have to default to `cp -pR'.
20012    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20013      as_ln_s='cp -pR'
20014  elif ln conf$$.file conf$$ 2>/dev/null; then
20015    as_ln_s=ln
20016  else
20017    as_ln_s='cp -pR'
20018  fi
20019else
20020  as_ln_s='cp -pR'
20021fi
20022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20023rmdir conf$$.dir 2>/dev/null
20024
20025
20026# as_fn_mkdir_p
20027# -------------
20028# Create "$as_dir" as a directory, including parents if necessary.
20029as_fn_mkdir_p ()
20030{
20031
20032  case $as_dir in #(
20033  -*) as_dir=./$as_dir;;
20034  esac
20035  test -d "$as_dir" || eval $as_mkdir_p || {
20036    as_dirs=
20037    while :; do
20038      case $as_dir in #(
20039      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20040      *) as_qdir=$as_dir;;
20041      esac
20042      as_dirs="'$as_qdir' $as_dirs"
20043      as_dir=`$as_dirname -- "$as_dir" ||
20044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20045	 X"$as_dir" : 'X\(//\)[^/]' \| \
20046	 X"$as_dir" : 'X\(//\)$' \| \
20047	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20048$as_echo X"$as_dir" |
20049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20050	    s//\1/
20051	    q
20052	  }
20053	  /^X\(\/\/\)[^/].*/{
20054	    s//\1/
20055	    q
20056	  }
20057	  /^X\(\/\/\)$/{
20058	    s//\1/
20059	    q
20060	  }
20061	  /^X\(\/\).*/{
20062	    s//\1/
20063	    q
20064	  }
20065	  s/.*/./; q'`
20066      test -d "$as_dir" && break
20067    done
20068    test -z "$as_dirs" || eval "mkdir $as_dirs"
20069  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20070
20071
20072} # as_fn_mkdir_p
20073if mkdir -p . 2>/dev/null; then
20074  as_mkdir_p='mkdir -p "$as_dir"'
20075else
20076  test -d ./-p && rmdir ./-p
20077  as_mkdir_p=false
20078fi
20079
20080
20081# as_fn_executable_p FILE
20082# -----------------------
20083# Test if FILE is an executable regular file.
20084as_fn_executable_p ()
20085{
20086  test -f "$1" && test -x "$1"
20087} # as_fn_executable_p
20088as_test_x='test -x'
20089as_executable_p=as_fn_executable_p
20090
20091# Sed expression to map a string onto a valid CPP name.
20092as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20093
20094# Sed expression to map a string onto a valid variable name.
20095as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20096
20097
20098exec 6>&1
20099## ----------------------------------- ##
20100## Main body of $CONFIG_STATUS script. ##
20101## ----------------------------------- ##
20102_ASEOF
20103test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20104
20105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20106# Save the log message, to keep $0 and so on meaningful, and to
20107# report actual input values of CONFIG_FILES etc. instead of their
20108# values after options handling.
20109ac_log="
20110This file was extended by PCRE $as_me 8.36, which was
20111generated by GNU Autoconf 2.69.  Invocation command line was
20112
20113  CONFIG_FILES    = $CONFIG_FILES
20114  CONFIG_HEADERS  = $CONFIG_HEADERS
20115  CONFIG_LINKS    = $CONFIG_LINKS
20116  CONFIG_COMMANDS = $CONFIG_COMMANDS
20117  $ $0 $@
20118
20119on `(hostname || uname -n) 2>/dev/null | sed 1q`
20120"
20121
20122_ACEOF
20123
20124case $ac_config_files in *"
20125"*) set x $ac_config_files; shift; ac_config_files=$*;;
20126esac
20127
20128case $ac_config_headers in *"
20129"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20130esac
20131
20132
20133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20134# Files that config.status was made for.
20135config_files="$ac_config_files"
20136config_headers="$ac_config_headers"
20137config_commands="$ac_config_commands"
20138
20139_ACEOF
20140
20141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20142ac_cs_usage="\
20143\`$as_me' instantiates files and other configuration actions
20144from templates according to the current configuration.  Unless the files
20145and actions are specified as TAGs, all are instantiated by default.
20146
20147Usage: $0 [OPTION]... [TAG]...
20148
20149  -h, --help       print this help, then exit
20150  -V, --version    print version number and configuration settings, then exit
20151      --config     print configuration, then exit
20152  -q, --quiet, --silent
20153                   do not print progress messages
20154  -d, --debug      don't remove temporary files
20155      --recheck    update $as_me by reconfiguring in the same conditions
20156      --file=FILE[:TEMPLATE]
20157                   instantiate the configuration file FILE
20158      --header=FILE[:TEMPLATE]
20159                   instantiate the configuration header FILE
20160
20161Configuration files:
20162$config_files
20163
20164Configuration headers:
20165$config_headers
20166
20167Configuration commands:
20168$config_commands
20169
20170Report bugs to the package provider."
20171
20172_ACEOF
20173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20175ac_cs_version="\\
20176PCRE config.status 8.36
20177configured by $0, generated by GNU Autoconf 2.69,
20178  with options \\"\$ac_cs_config\\"
20179
20180Copyright (C) 2012 Free Software Foundation, Inc.
20181This config.status script is free software; the Free Software Foundation
20182gives unlimited permission to copy, distribute and modify it."
20183
20184ac_pwd='$ac_pwd'
20185srcdir='$srcdir'
20186INSTALL='$INSTALL'
20187MKDIR_P='$MKDIR_P'
20188AWK='$AWK'
20189test -n "\$AWK" || AWK=awk
20190_ACEOF
20191
20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193# The default lists apply if the user does not specify any file.
20194ac_need_defaults=:
20195while test $# != 0
20196do
20197  case $1 in
20198  --*=?*)
20199    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20200    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20201    ac_shift=:
20202    ;;
20203  --*=)
20204    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20205    ac_optarg=
20206    ac_shift=:
20207    ;;
20208  *)
20209    ac_option=$1
20210    ac_optarg=$2
20211    ac_shift=shift
20212    ;;
20213  esac
20214
20215  case $ac_option in
20216  # Handling of the options.
20217  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20218    ac_cs_recheck=: ;;
20219  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20220    $as_echo "$ac_cs_version"; exit ;;
20221  --config | --confi | --conf | --con | --co | --c )
20222    $as_echo "$ac_cs_config"; exit ;;
20223  --debug | --debu | --deb | --de | --d | -d )
20224    debug=: ;;
20225  --file | --fil | --fi | --f )
20226    $ac_shift
20227    case $ac_optarg in
20228    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20229    '') as_fn_error $? "missing file argument" ;;
20230    esac
20231    as_fn_append CONFIG_FILES " '$ac_optarg'"
20232    ac_need_defaults=false;;
20233  --header | --heade | --head | --hea )
20234    $ac_shift
20235    case $ac_optarg in
20236    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20237    esac
20238    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20239    ac_need_defaults=false;;
20240  --he | --h)
20241    # Conflict between --help and --header
20242    as_fn_error $? "ambiguous option: \`$1'
20243Try \`$0 --help' for more information.";;
20244  --help | --hel | -h )
20245    $as_echo "$ac_cs_usage"; exit ;;
20246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20247  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20248    ac_cs_silent=: ;;
20249
20250  # This is an error.
20251  -*) as_fn_error $? "unrecognized option: \`$1'
20252Try \`$0 --help' for more information." ;;
20253
20254  *) as_fn_append ac_config_targets " $1"
20255     ac_need_defaults=false ;;
20256
20257  esac
20258  shift
20259done
20260
20261ac_configure_extra_args=
20262
20263if $ac_cs_silent; then
20264  exec 6>/dev/null
20265  ac_configure_extra_args="$ac_configure_extra_args --silent"
20266fi
20267
20268_ACEOF
20269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270if \$ac_cs_recheck; then
20271  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20272  shift
20273  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20274  CONFIG_SHELL='$SHELL'
20275  export CONFIG_SHELL
20276  exec "\$@"
20277fi
20278
20279_ACEOF
20280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281exec 5>>config.log
20282{
20283  echo
20284  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20285## Running $as_me. ##
20286_ASBOX
20287  $as_echo "$ac_log"
20288} >&5
20289
20290_ACEOF
20291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292#
20293# INIT-COMMANDS
20294#
20295AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20296
20297
20298# The HP-UX ksh and POSIX shell print the target directory to stdout
20299# if CDPATH is set.
20300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20301
20302sed_quote_subst='$sed_quote_subst'
20303double_quote_subst='$double_quote_subst'
20304delay_variable_subst='$delay_variable_subst'
20305AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20306DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20307OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20308macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20309macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20310enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20311enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20312pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20313enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20314SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20315ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20316PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20317host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20318host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20319host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20320build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20321build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20322build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20323SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20324Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20325GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20326EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20327FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20328LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20329NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20330LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20331max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20332ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20333exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20334lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20335lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20336lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20337lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20338lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20339reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20340reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20341deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20342file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20343file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20344want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20345sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20346AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20347AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20348archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20349STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20350RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20351old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20352old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20353old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20354lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20355CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20356CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20357compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20358GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20359lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20360lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20361lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20362lt_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"`'
20363nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20364lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20365objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20366MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20367lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20368lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20369lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20370lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20371lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20372need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20373MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20374DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20375NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20376LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20377OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20378OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20379libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20380shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20381extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20382archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20383enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20384export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20385whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20386compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20387old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20388old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20389archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20390archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20391module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20392module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20393with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20394allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20395no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20396hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20397hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20398hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20399hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20400hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20401hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20402hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20403inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20404link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20405always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20406export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20407exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20408include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20409prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20410postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20411file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20412variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20413need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20414need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20415version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20416runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20417shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20418shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20419libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20420library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20421soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20422install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20423postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20424postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20425finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20426finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20427hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20428sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20429sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20430hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20431enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20432enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20433enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20434old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20435striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20436compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20437predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20438postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20439predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20440postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20441compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20442LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20443reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20444reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20445old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20446compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20447GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20448lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20449lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20450lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20451lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20452lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20453archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20454enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20455export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20456whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20457compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20458old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20459old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20460archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20463module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20464with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20465allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20466no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20467hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20468hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20469hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20470hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20471hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20472hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20473hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20474inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20475link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20476always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20477export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20479include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20480prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20481postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20482file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20483hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20484compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20485predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20486postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20487predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20488postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20489compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20490
20491LTCC='$LTCC'
20492LTCFLAGS='$LTCFLAGS'
20493compiler='$compiler_DEFAULT'
20494
20495# A function that is used when there is no print builtin or printf.
20496func_fallback_echo ()
20497{
20498  eval 'cat <<_LTECHO_EOF
20499\$1
20500_LTECHO_EOF'
20501}
20502
20503# Quote evaled strings.
20504for var in AS \
20505DLLTOOL \
20506OBJDUMP \
20507SHELL \
20508ECHO \
20509PATH_SEPARATOR \
20510SED \
20511GREP \
20512EGREP \
20513FGREP \
20514LD \
20515NM \
20516LN_S \
20517lt_SP2NL \
20518lt_NL2SP \
20519reload_flag \
20520deplibs_check_method \
20521file_magic_cmd \
20522file_magic_glob \
20523want_nocaseglob \
20524sharedlib_from_linklib_cmd \
20525AR \
20526AR_FLAGS \
20527archiver_list_spec \
20528STRIP \
20529RANLIB \
20530CC \
20531CFLAGS \
20532compiler \
20533lt_cv_sys_global_symbol_pipe \
20534lt_cv_sys_global_symbol_to_cdecl \
20535lt_cv_sys_global_symbol_to_c_name_address \
20536lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20537nm_file_list_spec \
20538lt_prog_compiler_no_builtin_flag \
20539lt_prog_compiler_pic \
20540lt_prog_compiler_wl \
20541lt_prog_compiler_static \
20542lt_cv_prog_compiler_c_o \
20543need_locks \
20544MANIFEST_TOOL \
20545DSYMUTIL \
20546NMEDIT \
20547LIPO \
20548OTOOL \
20549OTOOL64 \
20550shrext_cmds \
20551export_dynamic_flag_spec \
20552whole_archive_flag_spec \
20553compiler_needs_object \
20554with_gnu_ld \
20555allow_undefined_flag \
20556no_undefined_flag \
20557hardcode_libdir_flag_spec \
20558hardcode_libdir_separator \
20559exclude_expsyms \
20560include_expsyms \
20561file_list_spec \
20562variables_saved_for_relink \
20563libname_spec \
20564library_names_spec \
20565soname_spec \
20566install_override_mode \
20567finish_eval \
20568old_striplib \
20569striplib \
20570compiler_lib_search_dirs \
20571predep_objects \
20572postdep_objects \
20573predeps \
20574postdeps \
20575compiler_lib_search_path \
20576LD_CXX \
20577reload_flag_CXX \
20578compiler_CXX \
20579lt_prog_compiler_no_builtin_flag_CXX \
20580lt_prog_compiler_pic_CXX \
20581lt_prog_compiler_wl_CXX \
20582lt_prog_compiler_static_CXX \
20583lt_cv_prog_compiler_c_o_CXX \
20584export_dynamic_flag_spec_CXX \
20585whole_archive_flag_spec_CXX \
20586compiler_needs_object_CXX \
20587with_gnu_ld_CXX \
20588allow_undefined_flag_CXX \
20589no_undefined_flag_CXX \
20590hardcode_libdir_flag_spec_CXX \
20591hardcode_libdir_separator_CXX \
20592exclude_expsyms_CXX \
20593include_expsyms_CXX \
20594file_list_spec_CXX \
20595compiler_lib_search_dirs_CXX \
20596predep_objects_CXX \
20597postdep_objects_CXX \
20598predeps_CXX \
20599postdeps_CXX \
20600compiler_lib_search_path_CXX; do
20601    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20602    *[\\\\\\\`\\"\\\$]*)
20603      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20604      ;;
20605    *)
20606      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20607      ;;
20608    esac
20609done
20610
20611# Double-quote double-evaled strings.
20612for var in reload_cmds \
20613old_postinstall_cmds \
20614old_postuninstall_cmds \
20615old_archive_cmds \
20616extract_expsyms_cmds \
20617old_archive_from_new_cmds \
20618old_archive_from_expsyms_cmds \
20619archive_cmds \
20620archive_expsym_cmds \
20621module_cmds \
20622module_expsym_cmds \
20623export_symbols_cmds \
20624prelink_cmds \
20625postlink_cmds \
20626postinstall_cmds \
20627postuninstall_cmds \
20628finish_cmds \
20629sys_lib_search_path_spec \
20630sys_lib_dlsearch_path_spec \
20631reload_cmds_CXX \
20632old_archive_cmds_CXX \
20633old_archive_from_new_cmds_CXX \
20634old_archive_from_expsyms_cmds_CXX \
20635archive_cmds_CXX \
20636archive_expsym_cmds_CXX \
20637module_cmds_CXX \
20638module_expsym_cmds_CXX \
20639export_symbols_cmds_CXX \
20640prelink_cmds_CXX \
20641postlink_cmds_CXX; do
20642    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20643    *[\\\\\\\`\\"\\\$]*)
20644      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20645      ;;
20646    *)
20647      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20648      ;;
20649    esac
20650done
20651
20652ac_aux_dir='$ac_aux_dir'
20653xsi_shell='$xsi_shell'
20654lt_shell_append='$lt_shell_append'
20655
20656# See if we are running on zsh, and set the options which allow our
20657# commands through without removal of \ escapes INIT.
20658if test -n "\${ZSH_VERSION+set}" ; then
20659   setopt NO_GLOB_SUBST
20660fi
20661
20662
20663    PACKAGE='$PACKAGE'
20664    VERSION='$VERSION'
20665    TIMESTAMP='$TIMESTAMP'
20666    RM='$RM'
20667    ofile='$ofile'
20668
20669
20670
20671
20672
20673
20674_ACEOF
20675
20676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20677
20678# Handling of arguments.
20679for ac_config_target in $ac_config_targets
20680do
20681  case $ac_config_target in
20682    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20683    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20684    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20685    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20686    "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
20687    "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
20688    "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
20689    "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
20690    "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
20691    "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
20692    "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
20693    "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
20694    "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
20695    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
20696    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
20697
20698  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20699  esac
20700done
20701
20702
20703# If the user did not use the arguments to specify the items to instantiate,
20704# then the envvar interface is used.  Set only those that are not.
20705# We use the long form for the default assignment because of an extremely
20706# bizarre bug on SunOS 4.1.3.
20707if $ac_need_defaults; then
20708  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20709  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20710  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20711fi
20712
20713# Have a temporary directory for convenience.  Make it in the build tree
20714# simply because there is no reason against having it here, and in addition,
20715# creating and moving files from /tmp can sometimes cause problems.
20716# Hook for its removal unless debugging.
20717# Note that there is a small window in which the directory will not be cleaned:
20718# after its creation but before its name has been assigned to `$tmp'.
20719$debug ||
20720{
20721  tmp= ac_tmp=
20722  trap 'exit_status=$?
20723  : "${ac_tmp:=$tmp}"
20724  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20725' 0
20726  trap 'as_fn_exit 1' 1 2 13 15
20727}
20728# Create a (secure) tmp directory for tmp files.
20729
20730{
20731  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20732  test -d "$tmp"
20733}  ||
20734{
20735  tmp=./conf$$-$RANDOM
20736  (umask 077 && mkdir "$tmp")
20737} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20738ac_tmp=$tmp
20739
20740# Set up the scripts for CONFIG_FILES section.
20741# No need to generate them if there are no CONFIG_FILES.
20742# This happens for instance with `./config.status config.h'.
20743if test -n "$CONFIG_FILES"; then
20744
20745
20746ac_cr=`echo X | tr X '\015'`
20747# On cygwin, bash can eat \r inside `` if the user requested igncr.
20748# But we know of no other shell where ac_cr would be empty at this
20749# point, so we can use a bashism as a fallback.
20750if test "x$ac_cr" = x; then
20751  eval ac_cr=\$\'\\r\'
20752fi
20753ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20754if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20755  ac_cs_awk_cr='\\r'
20756else
20757  ac_cs_awk_cr=$ac_cr
20758fi
20759
20760echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20761_ACEOF
20762
20763
20764{
20765  echo "cat >conf$$subs.awk <<_ACEOF" &&
20766  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20767  echo "_ACEOF"
20768} >conf$$subs.sh ||
20769  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20770ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20771ac_delim='%!_!# '
20772for ac_last_try in false false false false false :; do
20773  . ./conf$$subs.sh ||
20774    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20775
20776  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20777  if test $ac_delim_n = $ac_delim_num; then
20778    break
20779  elif $ac_last_try; then
20780    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20781  else
20782    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20783  fi
20784done
20785rm -f conf$$subs.sh
20786
20787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20788cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20789_ACEOF
20790sed -n '
20791h
20792s/^/S["/; s/!.*/"]=/
20793p
20794g
20795s/^[^!]*!//
20796:repl
20797t repl
20798s/'"$ac_delim"'$//
20799t delim
20800:nl
20801h
20802s/\(.\{148\}\)..*/\1/
20803t more1
20804s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20805p
20806n
20807b repl
20808:more1
20809s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20810p
20811g
20812s/.\{148\}//
20813t nl
20814:delim
20815h
20816s/\(.\{148\}\)..*/\1/
20817t more2
20818s/["\\]/\\&/g; s/^/"/; s/$/"/
20819p
20820b
20821:more2
20822s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20823p
20824g
20825s/.\{148\}//
20826t delim
20827' <conf$$subs.awk | sed '
20828/^[^""]/{
20829  N
20830  s/\n//
20831}
20832' >>$CONFIG_STATUS || ac_write_fail=1
20833rm -f conf$$subs.awk
20834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20835_ACAWK
20836cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20837  for (key in S) S_is_set[key] = 1
20838  FS = ""
20839
20840}
20841{
20842  line = $ 0
20843  nfields = split(line, field, "@")
20844  substed = 0
20845  len = length(field[1])
20846  for (i = 2; i < nfields; i++) {
20847    key = field[i]
20848    keylen = length(key)
20849    if (S_is_set[key]) {
20850      value = S[key]
20851      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20852      len += length(value) + length(field[++i])
20853      substed = 1
20854    } else
20855      len += 1 + keylen
20856  }
20857
20858  print line
20859}
20860
20861_ACAWK
20862_ACEOF
20863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20864if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20865  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20866else
20867  cat
20868fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20869  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20870_ACEOF
20871
20872# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20873# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20874# trailing colons and then remove the whole line if VPATH becomes empty
20875# (actually we leave an empty line to preserve line numbers).
20876if test "x$srcdir" = x.; then
20877  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20878h
20879s///
20880s/^/:/
20881s/[	 ]*$/:/
20882s/:\$(srcdir):/:/g
20883s/:\${srcdir}:/:/g
20884s/:@srcdir@:/:/g
20885s/^:*//
20886s/:*$//
20887x
20888s/\(=[	 ]*\).*/\1/
20889G
20890s/\n//
20891s/^[^=]*=[	 ]*$//
20892}'
20893fi
20894
20895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20896fi # test -n "$CONFIG_FILES"
20897
20898# Set up the scripts for CONFIG_HEADERS section.
20899# No need to generate them if there are no CONFIG_HEADERS.
20900# This happens for instance with `./config.status Makefile'.
20901if test -n "$CONFIG_HEADERS"; then
20902cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20903BEGIN {
20904_ACEOF
20905
20906# Transform confdefs.h into an awk script `defines.awk', embedded as
20907# here-document in config.status, that substitutes the proper values into
20908# config.h.in to produce config.h.
20909
20910# Create a delimiter string that does not exist in confdefs.h, to ease
20911# handling of long lines.
20912ac_delim='%!_!# '
20913for ac_last_try in false false :; do
20914  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20915  if test -z "$ac_tt"; then
20916    break
20917  elif $ac_last_try; then
20918    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20919  else
20920    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20921  fi
20922done
20923
20924# For the awk script, D is an array of macro values keyed by name,
20925# likewise P contains macro parameters if any.  Preserve backslash
20926# newline sequences.
20927
20928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20929sed -n '
20930s/.\{148\}/&'"$ac_delim"'/g
20931t rset
20932:rset
20933s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20934t def
20935d
20936:def
20937s/\\$//
20938t bsnl
20939s/["\\]/\\&/g
20940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20941D["\1"]=" \3"/p
20942s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20943d
20944:bsnl
20945s/["\\]/\\&/g
20946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20947D["\1"]=" \3\\\\\\n"\\/p
20948t cont
20949s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20950t cont
20951d
20952:cont
20953n
20954s/.\{148\}/&'"$ac_delim"'/g
20955t clear
20956:clear
20957s/\\$//
20958t bsnlc
20959s/["\\]/\\&/g; s/^/"/; s/$/"/p
20960d
20961:bsnlc
20962s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20963b cont
20964' <confdefs.h | sed '
20965s/'"$ac_delim"'/"\\\
20966"/g' >>$CONFIG_STATUS || ac_write_fail=1
20967
20968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20969  for (key in D) D_is_set[key] = 1
20970  FS = ""
20971}
20972/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20973  line = \$ 0
20974  split(line, arg, " ")
20975  if (arg[1] == "#") {
20976    defundef = arg[2]
20977    mac1 = arg[3]
20978  } else {
20979    defundef = substr(arg[1], 2)
20980    mac1 = arg[2]
20981  }
20982  split(mac1, mac2, "(") #)
20983  macro = mac2[1]
20984  prefix = substr(line, 1, index(line, defundef) - 1)
20985  if (D_is_set[macro]) {
20986    # Preserve the white space surrounding the "#".
20987    print prefix "define", macro P[macro] D[macro]
20988    next
20989  } else {
20990    # Replace #undef with comments.  This is necessary, for example,
20991    # in the case of _POSIX_SOURCE, which is predefined and required
20992    # on some systems where configure will not decide to define it.
20993    if (defundef == "undef") {
20994      print "/*", prefix defundef, macro, "*/"
20995      next
20996    }
20997  }
20998}
20999{ print }
21000_ACAWK
21001_ACEOF
21002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21003  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21004fi # test -n "$CONFIG_HEADERS"
21005
21006
21007eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21008shift
21009for ac_tag
21010do
21011  case $ac_tag in
21012  :[FHLC]) ac_mode=$ac_tag; continue;;
21013  esac
21014  case $ac_mode$ac_tag in
21015  :[FHL]*:*);;
21016  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21017  :[FH]-) ac_tag=-:-;;
21018  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21019  esac
21020  ac_save_IFS=$IFS
21021  IFS=:
21022  set x $ac_tag
21023  IFS=$ac_save_IFS
21024  shift
21025  ac_file=$1
21026  shift
21027
21028  case $ac_mode in
21029  :L) ac_source=$1;;
21030  :[FH])
21031    ac_file_inputs=
21032    for ac_f
21033    do
21034      case $ac_f in
21035      -) ac_f="$ac_tmp/stdin";;
21036      *) # Look for the file first in the build tree, then in the source tree
21037	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21038	 # because $ac_f cannot contain `:'.
21039	 test -f "$ac_f" ||
21040	   case $ac_f in
21041	   [\\/$]*) false;;
21042	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21043	   esac ||
21044	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21045      esac
21046      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21047      as_fn_append ac_file_inputs " '$ac_f'"
21048    done
21049
21050    # Let's still pretend it is `configure' which instantiates (i.e., don't
21051    # use $as_me), people would be surprised to read:
21052    #    /* config.h.  Generated by config.status.  */
21053    configure_input='Generated from '`
21054	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21055	`' by configure.'
21056    if test x"$ac_file" != x-; then
21057      configure_input="$ac_file.  $configure_input"
21058      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21059$as_echo "$as_me: creating $ac_file" >&6;}
21060    fi
21061    # Neutralize special characters interpreted by sed in replacement strings.
21062    case $configure_input in #(
21063    *\&* | *\|* | *\\* )
21064       ac_sed_conf_input=`$as_echo "$configure_input" |
21065       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21066    *) ac_sed_conf_input=$configure_input;;
21067    esac
21068
21069    case $ac_tag in
21070    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21071      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21072    esac
21073    ;;
21074  esac
21075
21076  ac_dir=`$as_dirname -- "$ac_file" ||
21077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078	 X"$ac_file" : 'X\(//\)[^/]' \| \
21079	 X"$ac_file" : 'X\(//\)$' \| \
21080	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21081$as_echo X"$ac_file" |
21082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21083	    s//\1/
21084	    q
21085	  }
21086	  /^X\(\/\/\)[^/].*/{
21087	    s//\1/
21088	    q
21089	  }
21090	  /^X\(\/\/\)$/{
21091	    s//\1/
21092	    q
21093	  }
21094	  /^X\(\/\).*/{
21095	    s//\1/
21096	    q
21097	  }
21098	  s/.*/./; q'`
21099  as_dir="$ac_dir"; as_fn_mkdir_p
21100  ac_builddir=.
21101
21102case "$ac_dir" in
21103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21104*)
21105  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21106  # A ".." for each directory in $ac_dir_suffix.
21107  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21108  case $ac_top_builddir_sub in
21109  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21110  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21111  esac ;;
21112esac
21113ac_abs_top_builddir=$ac_pwd
21114ac_abs_builddir=$ac_pwd$ac_dir_suffix
21115# for backward compatibility:
21116ac_top_builddir=$ac_top_build_prefix
21117
21118case $srcdir in
21119  .)  # We are building in place.
21120    ac_srcdir=.
21121    ac_top_srcdir=$ac_top_builddir_sub
21122    ac_abs_top_srcdir=$ac_pwd ;;
21123  [\\/]* | ?:[\\/]* )  # Absolute name.
21124    ac_srcdir=$srcdir$ac_dir_suffix;
21125    ac_top_srcdir=$srcdir
21126    ac_abs_top_srcdir=$srcdir ;;
21127  *) # Relative name.
21128    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21129    ac_top_srcdir=$ac_top_build_prefix$srcdir
21130    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21131esac
21132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21133
21134
21135  case $ac_mode in
21136  :F)
21137  #
21138  # CONFIG_FILE
21139  #
21140
21141  case $INSTALL in
21142  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21143  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21144  esac
21145  ac_MKDIR_P=$MKDIR_P
21146  case $MKDIR_P in
21147  [\\/$]* | ?:[\\/]* ) ;;
21148  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21149  esac
21150_ACEOF
21151
21152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21153# If the template does not know about datarootdir, expand it.
21154# FIXME: This hack should be removed a few years after 2.60.
21155ac_datarootdir_hack=; ac_datarootdir_seen=
21156ac_sed_dataroot='
21157/datarootdir/ {
21158  p
21159  q
21160}
21161/@datadir@/p
21162/@docdir@/p
21163/@infodir@/p
21164/@localedir@/p
21165/@mandir@/p'
21166case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21167*datarootdir*) ac_datarootdir_seen=yes;;
21168*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21169  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21170$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21171_ACEOF
21172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173  ac_datarootdir_hack='
21174  s&@datadir@&$datadir&g
21175  s&@docdir@&$docdir&g
21176  s&@infodir@&$infodir&g
21177  s&@localedir@&$localedir&g
21178  s&@mandir@&$mandir&g
21179  s&\\\${datarootdir}&$datarootdir&g' ;;
21180esac
21181_ACEOF
21182
21183# Neutralize VPATH when `$srcdir' = `.'.
21184# Shell code in configure.ac might set extrasub.
21185# FIXME: do we really want to maintain this feature?
21186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187ac_sed_extra="$ac_vpsub
21188$extrasub
21189_ACEOF
21190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191:t
21192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21193s|@configure_input@|$ac_sed_conf_input|;t t
21194s&@top_builddir@&$ac_top_builddir_sub&;t t
21195s&@top_build_prefix@&$ac_top_build_prefix&;t t
21196s&@srcdir@&$ac_srcdir&;t t
21197s&@abs_srcdir@&$ac_abs_srcdir&;t t
21198s&@top_srcdir@&$ac_top_srcdir&;t t
21199s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21200s&@builddir@&$ac_builddir&;t t
21201s&@abs_builddir@&$ac_abs_builddir&;t t
21202s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21203s&@INSTALL@&$ac_INSTALL&;t t
21204s&@MKDIR_P@&$ac_MKDIR_P&;t t
21205$ac_datarootdir_hack
21206"
21207eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21208  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21209
21210test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21211  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21212  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21213      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21214  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21215which seems to be undefined.  Please make sure it is defined" >&5
21216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21217which seems to be undefined.  Please make sure it is defined" >&2;}
21218
21219  rm -f "$ac_tmp/stdin"
21220  case $ac_file in
21221  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21222  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21223  esac \
21224  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21225 ;;
21226  :H)
21227  #
21228  # CONFIG_HEADER
21229  #
21230  if test x"$ac_file" != x-; then
21231    {
21232      $as_echo "/* $configure_input  */" \
21233      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21234    } >"$ac_tmp/config.h" \
21235      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21236    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21237      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21238$as_echo "$as_me: $ac_file is unchanged" >&6;}
21239    else
21240      rm -f "$ac_file"
21241      mv "$ac_tmp/config.h" "$ac_file" \
21242	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21243    fi
21244  else
21245    $as_echo "/* $configure_input  */" \
21246      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21247      || as_fn_error $? "could not create -" "$LINENO" 5
21248  fi
21249# Compute "$ac_file"'s index in $config_headers.
21250_am_arg="$ac_file"
21251_am_stamp_count=1
21252for _am_header in $config_headers :; do
21253  case $_am_header in
21254    $_am_arg | $_am_arg:* )
21255      break ;;
21256    * )
21257      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21258  esac
21259done
21260echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21261$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21263	 X"$_am_arg" : 'X\(//\)$' \| \
21264	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21265$as_echo X"$_am_arg" |
21266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21267	    s//\1/
21268	    q
21269	  }
21270	  /^X\(\/\/\)[^/].*/{
21271	    s//\1/
21272	    q
21273	  }
21274	  /^X\(\/\/\)$/{
21275	    s//\1/
21276	    q
21277	  }
21278	  /^X\(\/\).*/{
21279	    s//\1/
21280	    q
21281	  }
21282	  s/.*/./; q'`/stamp-h$_am_stamp_count
21283 ;;
21284
21285  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21286$as_echo "$as_me: executing $ac_file commands" >&6;}
21287 ;;
21288  esac
21289
21290
21291  case $ac_file$ac_mode in
21292    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21293  # Older Autoconf quotes --file arguments for eval, but not when files
21294  # are listed without --file.  Let's play safe and only enable the eval
21295  # if we detect the quoting.
21296  case $CONFIG_FILES in
21297  *\'*) eval set x "$CONFIG_FILES" ;;
21298  *)   set x $CONFIG_FILES ;;
21299  esac
21300  shift
21301  for mf
21302  do
21303    # Strip MF so we end up with the name of the file.
21304    mf=`echo "$mf" | sed -e 's/:.*$//'`
21305    # Check whether this is an Automake generated Makefile or not.
21306    # We used to match only the files named 'Makefile.in', but
21307    # some people rename them; so instead we look at the file content.
21308    # Grep'ing the first line is not enough: some people post-process
21309    # each Makefile.in and add a new line on top of each file to say so.
21310    # Grep'ing the whole file is not good either: AIX grep has a line
21311    # limit of 2048, but all sed's we know have understand at least 4000.
21312    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21313      dirpart=`$as_dirname -- "$mf" ||
21314$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21315	 X"$mf" : 'X\(//\)[^/]' \| \
21316	 X"$mf" : 'X\(//\)$' \| \
21317	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21318$as_echo X"$mf" |
21319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21320	    s//\1/
21321	    q
21322	  }
21323	  /^X\(\/\/\)[^/].*/{
21324	    s//\1/
21325	    q
21326	  }
21327	  /^X\(\/\/\)$/{
21328	    s//\1/
21329	    q
21330	  }
21331	  /^X\(\/\).*/{
21332	    s//\1/
21333	    q
21334	  }
21335	  s/.*/./; q'`
21336    else
21337      continue
21338    fi
21339    # Extract the definition of DEPDIR, am__include, and am__quote
21340    # from the Makefile without running 'make'.
21341    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21342    test -z "$DEPDIR" && continue
21343    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21344    test -z "$am__include" && continue
21345    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21346    # Find all dependency output files, they are included files with
21347    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21348    # simplest approach to changing $(DEPDIR) to its actual value in the
21349    # expansion.
21350    for file in `sed -n "
21351      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21352	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21353      # Make sure the directory exists.
21354      test -f "$dirpart/$file" && continue
21355      fdir=`$as_dirname -- "$file" ||
21356$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21357	 X"$file" : 'X\(//\)[^/]' \| \
21358	 X"$file" : 'X\(//\)$' \| \
21359	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21360$as_echo X"$file" |
21361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21362	    s//\1/
21363	    q
21364	  }
21365	  /^X\(\/\/\)[^/].*/{
21366	    s//\1/
21367	    q
21368	  }
21369	  /^X\(\/\/\)$/{
21370	    s//\1/
21371	    q
21372	  }
21373	  /^X\(\/\).*/{
21374	    s//\1/
21375	    q
21376	  }
21377	  s/.*/./; q'`
21378      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21379      # echo "creating $dirpart/$file"
21380      echo '# dummy' > "$dirpart/$file"
21381    done
21382  done
21383}
21384 ;;
21385    "libtool":C)
21386
21387    # See if we are running on zsh, and set the options which allow our
21388    # commands through without removal of \ escapes.
21389    if test -n "${ZSH_VERSION+set}" ; then
21390      setopt NO_GLOB_SUBST
21391    fi
21392
21393    cfgfile="${ofile}T"
21394    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21395    $RM "$cfgfile"
21396
21397    cat <<_LT_EOF >> "$cfgfile"
21398#! $SHELL
21399
21400# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21401# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21403# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21404#
21405#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21406#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21407#                 Foundation, Inc.
21408#   Written by Gordon Matzigkeit, 1996
21409#
21410#   This file is part of GNU Libtool.
21411#
21412# GNU Libtool is free software; you can redistribute it and/or
21413# modify it under the terms of the GNU General Public License as
21414# published by the Free Software Foundation; either version 2 of
21415# the License, or (at your option) any later version.
21416#
21417# As a special exception to the GNU General Public License,
21418# if you distribute this file as part of a program or library that
21419# is built using GNU Libtool, you may include this file under the
21420# same distribution terms that you use for the rest of that program.
21421#
21422# GNU Libtool is distributed in the hope that it will be useful,
21423# but WITHOUT ANY WARRANTY; without even the implied warranty of
21424# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21425# GNU General Public License for more details.
21426#
21427# You should have received a copy of the GNU General Public License
21428# along with GNU Libtool; see the file COPYING.  If not, a copy
21429# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21430# obtained by writing to the Free Software Foundation, Inc.,
21431# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21432
21433
21434# The names of the tagged configurations supported by this script.
21435available_tags="CXX "
21436
21437# ### BEGIN LIBTOOL CONFIG
21438
21439# Assembler program.
21440AS=$lt_AS
21441
21442# DLL creation program.
21443DLLTOOL=$lt_DLLTOOL
21444
21445# Object dumper program.
21446OBJDUMP=$lt_OBJDUMP
21447
21448# Which release of libtool.m4 was used?
21449macro_version=$macro_version
21450macro_revision=$macro_revision
21451
21452# Whether or not to build shared libraries.
21453build_libtool_libs=$enable_shared
21454
21455# Whether or not to build static libraries.
21456build_old_libs=$enable_static
21457
21458# What type of objects to build.
21459pic_mode=$pic_mode
21460
21461# Whether or not to optimize for fast installation.
21462fast_install=$enable_fast_install
21463
21464# Shell to use when invoking shell scripts.
21465SHELL=$lt_SHELL
21466
21467# An echo program that protects backslashes.
21468ECHO=$lt_ECHO
21469
21470# The PATH separator for the build system.
21471PATH_SEPARATOR=$lt_PATH_SEPARATOR
21472
21473# The host system.
21474host_alias=$host_alias
21475host=$host
21476host_os=$host_os
21477
21478# The build system.
21479build_alias=$build_alias
21480build=$build
21481build_os=$build_os
21482
21483# A sed program that does not truncate output.
21484SED=$lt_SED
21485
21486# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21487Xsed="\$SED -e 1s/^X//"
21488
21489# A grep program that handles long lines.
21490GREP=$lt_GREP
21491
21492# An ERE matcher.
21493EGREP=$lt_EGREP
21494
21495# A literal string matcher.
21496FGREP=$lt_FGREP
21497
21498# A BSD- or MS-compatible name lister.
21499NM=$lt_NM
21500
21501# Whether we need soft or hard links.
21502LN_S=$lt_LN_S
21503
21504# What is the maximum length of a command?
21505max_cmd_len=$max_cmd_len
21506
21507# Object file suffix (normally "o").
21508objext=$ac_objext
21509
21510# Executable file suffix (normally "").
21511exeext=$exeext
21512
21513# whether the shell understands "unset".
21514lt_unset=$lt_unset
21515
21516# turn spaces into newlines.
21517SP2NL=$lt_lt_SP2NL
21518
21519# turn newlines into spaces.
21520NL2SP=$lt_lt_NL2SP
21521
21522# convert \$build file names to \$host format.
21523to_host_file_cmd=$lt_cv_to_host_file_cmd
21524
21525# convert \$build files to toolchain format.
21526to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21527
21528# Method to check whether dependent libraries are shared objects.
21529deplibs_check_method=$lt_deplibs_check_method
21530
21531# Command to use when deplibs_check_method = "file_magic".
21532file_magic_cmd=$lt_file_magic_cmd
21533
21534# How to find potential files when deplibs_check_method = "file_magic".
21535file_magic_glob=$lt_file_magic_glob
21536
21537# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21538want_nocaseglob=$lt_want_nocaseglob
21539
21540# Command to associate shared and link libraries.
21541sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21542
21543# The archiver.
21544AR=$lt_AR
21545
21546# Flags to create an archive.
21547AR_FLAGS=$lt_AR_FLAGS
21548
21549# How to feed a file listing to the archiver.
21550archiver_list_spec=$lt_archiver_list_spec
21551
21552# A symbol stripping program.
21553STRIP=$lt_STRIP
21554
21555# Commands used to install an old-style archive.
21556RANLIB=$lt_RANLIB
21557old_postinstall_cmds=$lt_old_postinstall_cmds
21558old_postuninstall_cmds=$lt_old_postuninstall_cmds
21559
21560# Whether to use a lock for old archive extraction.
21561lock_old_archive_extraction=$lock_old_archive_extraction
21562
21563# A C compiler.
21564LTCC=$lt_CC
21565
21566# LTCC compiler flags.
21567LTCFLAGS=$lt_CFLAGS
21568
21569# Take the output of nm and produce a listing of raw symbols and C names.
21570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21571
21572# Transform the output of nm in a proper C declaration.
21573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21574
21575# Transform the output of nm in a C name address pair.
21576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21577
21578# Transform the output of nm in a C name address pair when lib prefix is needed.
21579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21580
21581# Specify filename containing input files for \$NM.
21582nm_file_list_spec=$lt_nm_file_list_spec
21583
21584# The root where to search for dependent libraries,and in which our libraries should be installed.
21585lt_sysroot=$lt_sysroot
21586
21587# The name of the directory that contains temporary libtool files.
21588objdir=$objdir
21589
21590# Used to examine libraries when file_magic_cmd begins with "file".
21591MAGIC_CMD=$MAGIC_CMD
21592
21593# Must we lock files when doing compilation?
21594need_locks=$lt_need_locks
21595
21596# Manifest tool.
21597MANIFEST_TOOL=$lt_MANIFEST_TOOL
21598
21599# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21600DSYMUTIL=$lt_DSYMUTIL
21601
21602# Tool to change global to local symbols on Mac OS X.
21603NMEDIT=$lt_NMEDIT
21604
21605# Tool to manipulate fat objects and archives on Mac OS X.
21606LIPO=$lt_LIPO
21607
21608# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21609OTOOL=$lt_OTOOL
21610
21611# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21612OTOOL64=$lt_OTOOL64
21613
21614# Old archive suffix (normally "a").
21615libext=$libext
21616
21617# Shared library suffix (normally ".so").
21618shrext_cmds=$lt_shrext_cmds
21619
21620# The commands to extract the exported symbol list from a shared archive.
21621extract_expsyms_cmds=$lt_extract_expsyms_cmds
21622
21623# Variables whose values should be saved in libtool wrapper scripts and
21624# restored at link time.
21625variables_saved_for_relink=$lt_variables_saved_for_relink
21626
21627# Do we need the "lib" prefix for modules?
21628need_lib_prefix=$need_lib_prefix
21629
21630# Do we need a version for libraries?
21631need_version=$need_version
21632
21633# Library versioning type.
21634version_type=$version_type
21635
21636# Shared library runtime path variable.
21637runpath_var=$runpath_var
21638
21639# Shared library path variable.
21640shlibpath_var=$shlibpath_var
21641
21642# Is shlibpath searched before the hard-coded library search path?
21643shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21644
21645# Format of library name prefix.
21646libname_spec=$lt_libname_spec
21647
21648# List of archive names.  First name is the real one, the rest are links.
21649# The last name is the one that the linker finds with -lNAME
21650library_names_spec=$lt_library_names_spec
21651
21652# The coded name of the library, if different from the real name.
21653soname_spec=$lt_soname_spec
21654
21655# Permission mode override for installation of shared libraries.
21656install_override_mode=$lt_install_override_mode
21657
21658# Command to use after installation of a shared archive.
21659postinstall_cmds=$lt_postinstall_cmds
21660
21661# Command to use after uninstallation of a shared archive.
21662postuninstall_cmds=$lt_postuninstall_cmds
21663
21664# Commands used to finish a libtool library installation in a directory.
21665finish_cmds=$lt_finish_cmds
21666
21667# As "finish_cmds", except a single script fragment to be evaled but
21668# not shown.
21669finish_eval=$lt_finish_eval
21670
21671# Whether we should hardcode library paths into libraries.
21672hardcode_into_libs=$hardcode_into_libs
21673
21674# Compile-time system search path for libraries.
21675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21676
21677# Run-time system search path for libraries.
21678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21679
21680# Whether dlopen is supported.
21681dlopen_support=$enable_dlopen
21682
21683# Whether dlopen of programs is supported.
21684dlopen_self=$enable_dlopen_self
21685
21686# Whether dlopen of statically linked programs is supported.
21687dlopen_self_static=$enable_dlopen_self_static
21688
21689# Commands to strip libraries.
21690old_striplib=$lt_old_striplib
21691striplib=$lt_striplib
21692
21693
21694# The linker used to build libraries.
21695LD=$lt_LD
21696
21697# How to create reloadable object files.
21698reload_flag=$lt_reload_flag
21699reload_cmds=$lt_reload_cmds
21700
21701# Commands used to build an old-style archive.
21702old_archive_cmds=$lt_old_archive_cmds
21703
21704# A language specific compiler.
21705CC=$lt_compiler
21706
21707# Is the compiler the GNU compiler?
21708with_gcc=$GCC
21709
21710# Compiler flag to turn off builtin functions.
21711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21712
21713# Additional compiler flags for building library objects.
21714pic_flag=$lt_lt_prog_compiler_pic
21715
21716# How to pass a linker flag through the compiler.
21717wl=$lt_lt_prog_compiler_wl
21718
21719# Compiler flag to prevent dynamic linking.
21720link_static_flag=$lt_lt_prog_compiler_static
21721
21722# Does compiler simultaneously support -c and -o options?
21723compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21724
21725# Whether or not to add -lc for building shared libraries.
21726build_libtool_need_lc=$archive_cmds_need_lc
21727
21728# Whether or not to disallow shared libs when runtime libs are static.
21729allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21730
21731# Compiler flag to allow reflexive dlopens.
21732export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21733
21734# Compiler flag to generate shared objects directly from archives.
21735whole_archive_flag_spec=$lt_whole_archive_flag_spec
21736
21737# Whether the compiler copes with passing no objects directly.
21738compiler_needs_object=$lt_compiler_needs_object
21739
21740# Create an old-style archive from a shared archive.
21741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21742
21743# Create a temporary old-style archive to link instead of a shared archive.
21744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21745
21746# Commands used to build a shared archive.
21747archive_cmds=$lt_archive_cmds
21748archive_expsym_cmds=$lt_archive_expsym_cmds
21749
21750# Commands used to build a loadable module if different from building
21751# a shared archive.
21752module_cmds=$lt_module_cmds
21753module_expsym_cmds=$lt_module_expsym_cmds
21754
21755# Whether we are building with GNU ld or not.
21756with_gnu_ld=$lt_with_gnu_ld
21757
21758# Flag that allows shared libraries with undefined symbols to be built.
21759allow_undefined_flag=$lt_allow_undefined_flag
21760
21761# Flag that enforces no undefined symbols.
21762no_undefined_flag=$lt_no_undefined_flag
21763
21764# Flag to hardcode \$libdir into a binary during linking.
21765# This must work even if \$libdir does not exist
21766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21767
21768# Whether we need a single "-rpath" flag with a separated argument.
21769hardcode_libdir_separator=$lt_hardcode_libdir_separator
21770
21771# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21772# DIR into the resulting binary.
21773hardcode_direct=$hardcode_direct
21774
21775# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21776# DIR into the resulting binary and the resulting library dependency is
21777# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21778# library is relocated.
21779hardcode_direct_absolute=$hardcode_direct_absolute
21780
21781# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21782# into the resulting binary.
21783hardcode_minus_L=$hardcode_minus_L
21784
21785# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21786# into the resulting binary.
21787hardcode_shlibpath_var=$hardcode_shlibpath_var
21788
21789# Set to "yes" if building a shared library automatically hardcodes DIR
21790# into the library and all subsequent libraries and executables linked
21791# against it.
21792hardcode_automatic=$hardcode_automatic
21793
21794# Set to yes if linker adds runtime paths of dependent libraries
21795# to runtime path list.
21796inherit_rpath=$inherit_rpath
21797
21798# Whether libtool must link a program against all its dependency libraries.
21799link_all_deplibs=$link_all_deplibs
21800
21801# Set to "yes" if exported symbols are required.
21802always_export_symbols=$always_export_symbols
21803
21804# The commands to list exported symbols.
21805export_symbols_cmds=$lt_export_symbols_cmds
21806
21807# Symbols that should not be listed in the preloaded symbols.
21808exclude_expsyms=$lt_exclude_expsyms
21809
21810# Symbols that must always be exported.
21811include_expsyms=$lt_include_expsyms
21812
21813# Commands necessary for linking programs (against libraries) with templates.
21814prelink_cmds=$lt_prelink_cmds
21815
21816# Commands necessary for finishing linking programs.
21817postlink_cmds=$lt_postlink_cmds
21818
21819# Specify filename containing input files.
21820file_list_spec=$lt_file_list_spec
21821
21822# How to hardcode a shared library path into an executable.
21823hardcode_action=$hardcode_action
21824
21825# The directories searched by this compiler when creating a shared library.
21826compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21827
21828# Dependencies to place before and after the objects being linked to
21829# create a shared library.
21830predep_objects=$lt_predep_objects
21831postdep_objects=$lt_postdep_objects
21832predeps=$lt_predeps
21833postdeps=$lt_postdeps
21834
21835# The library search path used internally by the compiler when linking
21836# a shared library.
21837compiler_lib_search_path=$lt_compiler_lib_search_path
21838
21839# ### END LIBTOOL CONFIG
21840
21841_LT_EOF
21842
21843  case $host_os in
21844  aix3*)
21845    cat <<\_LT_EOF >> "$cfgfile"
21846# AIX sometimes has problems with the GCC collect2 program.  For some
21847# reason, if we set the COLLECT_NAMES environment variable, the problems
21848# vanish in a puff of smoke.
21849if test "X${COLLECT_NAMES+set}" != Xset; then
21850  COLLECT_NAMES=
21851  export COLLECT_NAMES
21852fi
21853_LT_EOF
21854    ;;
21855  esac
21856
21857
21858ltmain="$ac_aux_dir/ltmain.sh"
21859
21860
21861  # We use sed instead of cat because bash on DJGPP gets confused if
21862  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21863  # text mode, it properly converts lines to CR/LF.  This bash problem
21864  # is reportedly fixed, but why not run on old versions too?
21865  sed '$q' "$ltmain" >> "$cfgfile" \
21866     || (rm -f "$cfgfile"; exit 1)
21867
21868  if test x"$xsi_shell" = xyes; then
21869  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21870func_dirname ()\
21871{\
21872\    case ${1} in\
21873\      */*) func_dirname_result="${1%/*}${2}" ;;\
21874\      *  ) func_dirname_result="${3}" ;;\
21875\    esac\
21876} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21877  && mv -f "$cfgfile.tmp" "$cfgfile" \
21878    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21879test 0 -eq $? || _lt_function_replace_fail=:
21880
21881
21882  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21883func_basename ()\
21884{\
21885\    func_basename_result="${1##*/}"\
21886} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21887  && mv -f "$cfgfile.tmp" "$cfgfile" \
21888    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21889test 0 -eq $? || _lt_function_replace_fail=:
21890
21891
21892  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21893func_dirname_and_basename ()\
21894{\
21895\    case ${1} in\
21896\      */*) func_dirname_result="${1%/*}${2}" ;;\
21897\      *  ) func_dirname_result="${3}" ;;\
21898\    esac\
21899\    func_basename_result="${1##*/}"\
21900} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21901  && mv -f "$cfgfile.tmp" "$cfgfile" \
21902    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21903test 0 -eq $? || _lt_function_replace_fail=:
21904
21905
21906  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21907func_stripname ()\
21908{\
21909\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21910\    # positional parameters, so assign one to ordinary parameter first.\
21911\    func_stripname_result=${3}\
21912\    func_stripname_result=${func_stripname_result#"${1}"}\
21913\    func_stripname_result=${func_stripname_result%"${2}"}\
21914} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21915  && mv -f "$cfgfile.tmp" "$cfgfile" \
21916    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21917test 0 -eq $? || _lt_function_replace_fail=:
21918
21919
21920  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21921func_split_long_opt ()\
21922{\
21923\    func_split_long_opt_name=${1%%=*}\
21924\    func_split_long_opt_arg=${1#*=}\
21925} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21926  && mv -f "$cfgfile.tmp" "$cfgfile" \
21927    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21928test 0 -eq $? || _lt_function_replace_fail=:
21929
21930
21931  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21932func_split_short_opt ()\
21933{\
21934\    func_split_short_opt_arg=${1#??}\
21935\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21936} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21937  && mv -f "$cfgfile.tmp" "$cfgfile" \
21938    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21939test 0 -eq $? || _lt_function_replace_fail=:
21940
21941
21942  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21943func_lo2o ()\
21944{\
21945\    case ${1} in\
21946\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21947\      *)    func_lo2o_result=${1} ;;\
21948\    esac\
21949} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21950  && mv -f "$cfgfile.tmp" "$cfgfile" \
21951    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21952test 0 -eq $? || _lt_function_replace_fail=:
21953
21954
21955  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21956func_xform ()\
21957{\
21958    func_xform_result=${1%.*}.lo\
21959} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21960  && mv -f "$cfgfile.tmp" "$cfgfile" \
21961    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21962test 0 -eq $? || _lt_function_replace_fail=:
21963
21964
21965  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21966func_arith ()\
21967{\
21968    func_arith_result=$(( $* ))\
21969} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21970  && mv -f "$cfgfile.tmp" "$cfgfile" \
21971    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21972test 0 -eq $? || _lt_function_replace_fail=:
21973
21974
21975  sed -e '/^func_len ()$/,/^} # func_len /c\
21976func_len ()\
21977{\
21978    func_len_result=${#1}\
21979} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21980  && mv -f "$cfgfile.tmp" "$cfgfile" \
21981    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21982test 0 -eq $? || _lt_function_replace_fail=:
21983
21984fi
21985
21986if test x"$lt_shell_append" = xyes; then
21987  sed -e '/^func_append ()$/,/^} # func_append /c\
21988func_append ()\
21989{\
21990    eval "${1}+=\\${2}"\
21991} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21992  && mv -f "$cfgfile.tmp" "$cfgfile" \
21993    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21994test 0 -eq $? || _lt_function_replace_fail=:
21995
21996
21997  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21998func_append_quoted ()\
21999{\
22000\    func_quote_for_eval "${2}"\
22001\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22002} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22003  && mv -f "$cfgfile.tmp" "$cfgfile" \
22004    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22005test 0 -eq $? || _lt_function_replace_fail=:
22006
22007
22008  # Save a `func_append' function call where possible by direct use of '+='
22009  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22010    && mv -f "$cfgfile.tmp" "$cfgfile" \
22011      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22012  test 0 -eq $? || _lt_function_replace_fail=:
22013else
22014  # Save a `func_append' function call even when '+=' is not available
22015  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22016    && mv -f "$cfgfile.tmp" "$cfgfile" \
22017      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22018  test 0 -eq $? || _lt_function_replace_fail=:
22019fi
22020
22021if test x"$_lt_function_replace_fail" = x":"; then
22022  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22023$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22024fi
22025
22026
22027   mv -f "$cfgfile" "$ofile" ||
22028    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22029  chmod +x "$ofile"
22030
22031
22032    cat <<_LT_EOF >> "$ofile"
22033
22034# ### BEGIN LIBTOOL TAG CONFIG: CXX
22035
22036# The linker used to build libraries.
22037LD=$lt_LD_CXX
22038
22039# How to create reloadable object files.
22040reload_flag=$lt_reload_flag_CXX
22041reload_cmds=$lt_reload_cmds_CXX
22042
22043# Commands used to build an old-style archive.
22044old_archive_cmds=$lt_old_archive_cmds_CXX
22045
22046# A language specific compiler.
22047CC=$lt_compiler_CXX
22048
22049# Is the compiler the GNU compiler?
22050with_gcc=$GCC_CXX
22051
22052# Compiler flag to turn off builtin functions.
22053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22054
22055# Additional compiler flags for building library objects.
22056pic_flag=$lt_lt_prog_compiler_pic_CXX
22057
22058# How to pass a linker flag through the compiler.
22059wl=$lt_lt_prog_compiler_wl_CXX
22060
22061# Compiler flag to prevent dynamic linking.
22062link_static_flag=$lt_lt_prog_compiler_static_CXX
22063
22064# Does compiler simultaneously support -c and -o options?
22065compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22066
22067# Whether or not to add -lc for building shared libraries.
22068build_libtool_need_lc=$archive_cmds_need_lc_CXX
22069
22070# Whether or not to disallow shared libs when runtime libs are static.
22071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22072
22073# Compiler flag to allow reflexive dlopens.
22074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22075
22076# Compiler flag to generate shared objects directly from archives.
22077whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22078
22079# Whether the compiler copes with passing no objects directly.
22080compiler_needs_object=$lt_compiler_needs_object_CXX
22081
22082# Create an old-style archive from a shared archive.
22083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22084
22085# Create a temporary old-style archive to link instead of a shared archive.
22086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22087
22088# Commands used to build a shared archive.
22089archive_cmds=$lt_archive_cmds_CXX
22090archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22091
22092# Commands used to build a loadable module if different from building
22093# a shared archive.
22094module_cmds=$lt_module_cmds_CXX
22095module_expsym_cmds=$lt_module_expsym_cmds_CXX
22096
22097# Whether we are building with GNU ld or not.
22098with_gnu_ld=$lt_with_gnu_ld_CXX
22099
22100# Flag that allows shared libraries with undefined symbols to be built.
22101allow_undefined_flag=$lt_allow_undefined_flag_CXX
22102
22103# Flag that enforces no undefined symbols.
22104no_undefined_flag=$lt_no_undefined_flag_CXX
22105
22106# Flag to hardcode \$libdir into a binary during linking.
22107# This must work even if \$libdir does not exist
22108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22109
22110# Whether we need a single "-rpath" flag with a separated argument.
22111hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22112
22113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22114# DIR into the resulting binary.
22115hardcode_direct=$hardcode_direct_CXX
22116
22117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22118# DIR into the resulting binary and the resulting library dependency is
22119# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22120# library is relocated.
22121hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22122
22123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22124# into the resulting binary.
22125hardcode_minus_L=$hardcode_minus_L_CXX
22126
22127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22128# into the resulting binary.
22129hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22130
22131# Set to "yes" if building a shared library automatically hardcodes DIR
22132# into the library and all subsequent libraries and executables linked
22133# against it.
22134hardcode_automatic=$hardcode_automatic_CXX
22135
22136# Set to yes if linker adds runtime paths of dependent libraries
22137# to runtime path list.
22138inherit_rpath=$inherit_rpath_CXX
22139
22140# Whether libtool must link a program against all its dependency libraries.
22141link_all_deplibs=$link_all_deplibs_CXX
22142
22143# Set to "yes" if exported symbols are required.
22144always_export_symbols=$always_export_symbols_CXX
22145
22146# The commands to list exported symbols.
22147export_symbols_cmds=$lt_export_symbols_cmds_CXX
22148
22149# Symbols that should not be listed in the preloaded symbols.
22150exclude_expsyms=$lt_exclude_expsyms_CXX
22151
22152# Symbols that must always be exported.
22153include_expsyms=$lt_include_expsyms_CXX
22154
22155# Commands necessary for linking programs (against libraries) with templates.
22156prelink_cmds=$lt_prelink_cmds_CXX
22157
22158# Commands necessary for finishing linking programs.
22159postlink_cmds=$lt_postlink_cmds_CXX
22160
22161# Specify filename containing input files.
22162file_list_spec=$lt_file_list_spec_CXX
22163
22164# How to hardcode a shared library path into an executable.
22165hardcode_action=$hardcode_action_CXX
22166
22167# The directories searched by this compiler when creating a shared library.
22168compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22169
22170# Dependencies to place before and after the objects being linked to
22171# create a shared library.
22172predep_objects=$lt_predep_objects_CXX
22173postdep_objects=$lt_postdep_objects_CXX
22174predeps=$lt_predeps_CXX
22175postdeps=$lt_postdeps_CXX
22176
22177# The library search path used internally by the compiler when linking
22178# a shared library.
22179compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22180
22181# ### END LIBTOOL TAG CONFIG: CXX
22182_LT_EOF
22183
22184 ;;
22185    "script-chmod":C) chmod a+x pcre-config ;;
22186    "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22187
22188  esac
22189done # for ac_tag
22190
22191
22192as_fn_exit 0
22193_ACEOF
22194ac_clean_files=$ac_clean_files_save
22195
22196test $ac_write_fail = 0 ||
22197  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22198
22199
22200# configure is writing to config.log, and then calls config.status.
22201# config.status does its own redirection, appending to config.log.
22202# Unfortunately, on DOS this fails, as config.log is still kept open
22203# by configure, so config.status won't be able to write to it; its
22204# output is simply discarded.  So we exec the FD to /dev/null,
22205# effectively closing config.log, so it can be properly (re)opened and
22206# appended to by config.status.  When coming back to configure, we
22207# need to make the FD available again.
22208if test "$no_create" != yes; then
22209  ac_cs_success=:
22210  ac_config_status_args=
22211  test "$silent" = yes &&
22212    ac_config_status_args="$ac_config_status_args --quiet"
22213  exec 5>/dev/null
22214  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22215  exec 5>>config.log
22216  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22217  # would make configure fail if this is the last instruction.
22218  $ac_cs_success || as_fn_exit 1
22219fi
22220if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22221  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22222$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22223fi
22224
22225
22226# Print out a nice little message after configure is run displaying the
22227# chosen options.
22228
22229ebcdic_nl_code=n/a
22230if test "$enable_ebcdic_nl25" = "yes"; then
22231  ebcdic_nl_code=0x25
22232elif test "$enable_ebcdic" = "yes"; then
22233  ebcdic_nl_code=0x15
22234fi
22235
22236cat <<EOF
22237
22238$PACKAGE-$VERSION configuration summary:
22239
22240    Install prefix .................. : ${prefix}
22241    C preprocessor .................. : ${CPP}
22242    C compiler ...................... : ${CC}
22243    C++ preprocessor ................ : ${CXXCPP}
22244    C++ compiler .................... : ${CXX}
22245    Linker .......................... : ${LD}
22246    C preprocessor flags ............ : ${CPPFLAGS}
22247    C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22248    C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22249    Linker flags .................... : ${LDFLAGS}
22250    Extra libraries ................. : ${LIBS}
22251
22252    Build 8 bit pcre library ........ : ${enable_pcre8}
22253    Build 16 bit pcre library ....... : ${enable_pcre16}
22254    Build 32 bit pcre library ....... : ${enable_pcre32}
22255    Build C++ library ............... : ${enable_cpp}
22256    Enable JIT compiling support .... : ${enable_jit}
22257    Enable UTF-8/16/32 support ...... : ${enable_utf}
22258    Unicode properties .............. : ${enable_unicode_properties}
22259    Newline char/sequence ........... : ${enable_newline}
22260    \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22261    EBCDIC coding ................... : ${enable_ebcdic}
22262    EBCDIC code for NL .............. : ${ebcdic_nl_code}
22263    Rebuild char tables ............. : ${enable_rebuild_chartables}
22264    Use stack recursion ............. : ${enable_stack_for_recursion}
22265    POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22266    Internal link size .............. : ${with_link_size}
22267    Nested parentheses limit ........ : ${with_parens_nest_limit}
22268    Match limit ..................... : ${with_match_limit}
22269    Match limit recursion ........... : ${with_match_limit_recursion}
22270    Build shared libs ............... : ${enable_shared}
22271    Build static libs ............... : ${enable_static}
22272    Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22273    Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22274    Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22275    Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22276    Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22277    Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22278    Valgrind support ................ : ${enable_valgrind}
22279    Code coverage ................... : ${enable_coverage}
22280
22281EOF
22282
22283