1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libmaxminddb 1.6.0.
4#
5# Report bugs to <support@maxmind.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: support@maxmind.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libmaxminddb'
592PACKAGE_TARNAME='libmaxminddb'
593PACKAGE_VERSION='1.6.0'
594PACKAGE_STRING='libmaxminddb 1.6.0'
595PACKAGE_BUGREPORT='support@maxmind.com'
596PACKAGE_URL=''
597
598ac_unique_file="include/maxminddb.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640TESTS_FALSE
641TESTS_TRUE
642BINARIES_FALSE
643BINARIES_TRUE
644DEBUG_FALSE
645DEBUG_TRUE
646WINDOWS_FALSE
647WINDOWS_TRUE
648AM_BACKSLASH
649AM_DEFAULT_VERBOSITY
650AM_DEFAULT_V
651AM_V
652am__fastdepCC_FALSE
653am__fastdepCC_TRUE
654CCDEPMODE
655am__nodep
656AMDEPBACKSLASH
657AMDEP_FALSE
658AMDEP_TRUE
659am__include
660DEPDIR
661am__untar
662am__tar
663AMTAR
664am__leading_dot
665SET_MAKE
666mkdir_p
667MKDIR_P
668INSTALL_STRIP_PROGRAM
669install_sh
670MAKEINFO
671AUTOHEADER
672AUTOMAKE
673AUTOCONF
674ACLOCAL
675VERSION
676PACKAGE
677CYGPATH_W
678am__isrc
679INSTALL_DATA
680INSTALL_SCRIPT
681INSTALL_PROGRAM
682CPP
683LT_SYS_LIBRARY_PATH
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
689MANIFEST_TOOL
690AWK
691RANLIB
692STRIP
693ac_ct_AR
694AR
695DLLTOOL
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703EGREP
704GREP
705SED
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721LIBTOOL
722pkgconfigdir
723PKG_CONFIG_LIBDIR
724PKG_CONFIG_PATH
725PKG_CONFIG
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745runstatedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL
765am__quote'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769with_pkgconfigdir
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_aix_soname
775with_gnu_ld
776with_sysroot
777enable_libtool_lock
778enable_dependency_tracking
779enable_silent_rules
780enable_debug
781enable_binaries
782enable_tests
783'
784      ac_precious_vars='build_alias
785host_alias
786target_alias
787PKG_CONFIG
788PKG_CONFIG_PATH
789PKG_CONFIG_LIBDIR
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795LT_SYS_LIBRARY_PATH
796CPP'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -runstatedir | --runstatedir | --runstatedi | --runstated \
1089  | --runstate | --runstat | --runsta | --runst | --runs \
1090  | --run | --ru | --r)
1091    ac_prev=runstatedir ;;
1092  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094  | --run=* | --ru=* | --r=*)
1095    runstatedir=$ac_optarg ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir runstatedir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures libmaxminddb 1.6.0 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1388  --libdir=DIR            object code libraries [EPREFIX/lib]
1389  --includedir=DIR        C header files [PREFIX/include]
1390  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmaxminddb]
1397  --htmldir=DIR           html documentation [DOCDIR]
1398  --dvidir=DIR            dvi documentation [DOCDIR]
1399  --pdfdir=DIR            pdf documentation [DOCDIR]
1400  --psdir=DIR             ps documentation [DOCDIR]
1401_ACEOF
1402
1403  cat <<\_ACEOF
1404
1405Program names:
1406  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410System types:
1411  --build=BUILD     configure for building on BUILD [guessed]
1412  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417  case $ac_init_help in
1418     short | recursive ) echo "Configuration of libmaxminddb 1.6.0:";;
1419   esac
1420  cat <<\_ACEOF
1421
1422Optional Features:
1423  --disable-option-checking  ignore unrecognized --enable/--with options
1424  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-static[=PKGS]  build static libraries [default=yes]
1428  --enable-fast-install[=PKGS]
1429                          optimize for fast installation [default=yes]
1430  --disable-libtool-lock  avoid locking (might break parallel builds)
1431  --enable-dependency-tracking
1432                          do not reject slow dependency extractors
1433  --disable-dependency-tracking
1434                          speeds up one-time build
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-debug    Turn on debugging
1438  --enable-binaries       Compilation of binaries code
1439  --enable-tests          Compilation of tests code
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pkgconfigdir     pkg-config installation directory
1445                          ['${libdir}/pkgconfig']
1446  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1447                          both]
1448  --with-aix-soname=aix|svr4|both
1449                          shared library versioning (aka "SONAME") variant to
1450                          provide on AIX, [default=aix].
1451  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1453                          compiler's sysroot if not specified).
1454
1455Some influential environment variables:
1456  PKG_CONFIG  path to pkg-config utility
1457  PKG_CONFIG_PATH
1458              directories to add to pkg-config's search path
1459  PKG_CONFIG_LIBDIR
1460              path overriding pkg-config's built-in search path
1461  CC          C compiler command
1462  CFLAGS      C compiler flags
1463  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464              nonstandard directory <lib dir>
1465  LIBS        libraries to pass to the linker, e.g. -l<library>
1466  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467              you have headers in a nonstandard directory <include dir>
1468  LT_SYS_LIBRARY_PATH
1469              User-defined run-time library search path.
1470  CPP         C preprocessor
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <support@maxmind.com>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for guested configure.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538libmaxminddb configure 1.6.0
1539generated by GNU Autoconf 2.69
1540
1541Copyright (C) 2012 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  rm -f conftest.$ac_objext conftest$ac_exeext
1597  if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_link") 2>conftest.err
1605  ac_status=$?
1606  if test -s conftest.err; then
1607    grep -v '^ *+' conftest.err >conftest.er1
1608    cat conftest.er1 >&5
1609    mv -f conftest.er1 conftest.err
1610  fi
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; } && {
1613	 test -z "$ac_c_werror_flag" ||
1614	 test ! -s conftest.err
1615       } && test -s conftest$ac_exeext && {
1616	 test "$cross_compiling" = yes ||
1617	 test -x conftest$ac_exeext
1618       }; then :
1619  ac_retval=0
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624	ac_retval=1
1625fi
1626  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628  # interfere with the next link command; also delete a directory that is
1629  # left behind by Apple's compiler.  We do this before executing the actions.
1630  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_link
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
1645if eval \${$3+:} false; then :
1646  $as_echo_n "(cached) " >&6
1647else
1648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h.  */
1650$4
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654  eval "$3=yes"
1655else
1656  eval "$3=no"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660eval ac_res=\$$3
1661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665} # ac_fn_c_check_header_compile
1666
1667# ac_fn_c_try_cpp LINENO
1668# ----------------------
1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_cpp ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_cpp conftest.$ac_ext"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } > conftest.i && {
1689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690	 test ! -s conftest.err
1691       }; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697    ac_retval=1
1698fi
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_cpp
1703
1704# ac_fn_c_try_run LINENO
1705# ----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707# that executables *can* be run.
1708ac_fn_c_try_run ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_link") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722  { { case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_try") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; }; }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: program exited with status $ac_status" >&5
1735       $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738       ac_retval=$ac_status
1739fi
1740  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_run
1745
1746# ac_fn_c_check_func LINENO FUNC VAR
1747# ----------------------------------
1748# Tests whether FUNC exists, setting the cache variable VAR accordingly
1749ac_fn_c_check_func ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756else
1757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1761#define $2 innocuous_$2
1762
1763/* System header to define __stub macros and hopefully few prototypes,
1764    which can conflict with char $2 (); below.
1765    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766    <limits.h> exists even on freestanding compilers.  */
1767
1768#ifdef __STDC__
1769# include <limits.h>
1770#else
1771# include <assert.h>
1772#endif
1773
1774#undef $2
1775
1776/* Override any GCC internal prototype to avoid an error.
1777   Use char because int might match the return type of a GCC
1778   builtin and then its argument prototype would still apply.  */
1779#ifdef __cplusplus
1780extern "C"
1781#endif
1782char $2 ();
1783/* The GNU C library defines this for functions which it implements
1784    to always fail with ENOSYS.  Some functions are actually named
1785    something starting with __ and the normal name is an alias.  */
1786#if defined __stub_$2 || defined __stub___$2
1787choke me
1788#endif
1789
1790int
1791main ()
1792{
1793return $2 ();
1794  ;
1795  return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_link "$LINENO"; then :
1799  eval "$3=yes"
1800else
1801  eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext \
1804    conftest$ac_exeext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_func
1812
1813# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816# the include files in INCLUDES and setting the cache variable VAR
1817# accordingly.
1818ac_fn_c_check_header_mongrel ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  if eval \${$3+:} false; then :
1822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if eval \${$3+:} false; then :
1825  $as_echo_n "(cached) " >&6
1826fi
1827eval ac_res=\$$3
1828	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
1830else
1831  # Is the header compilable?
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833$as_echo_n "checking $2 usability... " >&6; }
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836$4
1837#include <$2>
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840  ac_header_compiler=yes
1841else
1842  ac_header_compiler=no
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846$as_echo "$ac_header_compiler" >&6; }
1847
1848# Is the header present?
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850$as_echo_n "checking $2 presence... " >&6; }
1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h.  */
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_cpp "$LINENO"; then :
1856  ac_header_preproc=yes
1857else
1858  ac_header_preproc=no
1859fi
1860rm -f conftest.err conftest.i conftest.$ac_ext
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862$as_echo "$ac_header_preproc" >&6; }
1863
1864# So?  What about this header?
1865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866  yes:no: )
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871    ;;
1872  no:yes:* )
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1876$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1880$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883( $as_echo "## ---------------------------------- ##
1884## Report this to support@maxmind.com ##
1885## ---------------------------------- ##"
1886     ) | sed "s/^/$as_me: WARNING:     /" >&2
1887    ;;
1888esac
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893else
1894  eval "$3=\$ac_header_compiler"
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899fi
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_header_mongrel
1903
1904# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905# -------------------------------------------
1906# Tests whether TYPE exists after having included INCLUDES, setting cache
1907# variable VAR accordingly.
1908ac_fn_c_check_type ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval \${$3+:} false; then :
1914  $as_echo_n "(cached) " >&6
1915else
1916  eval "$3=no"
1917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919$4
1920int
1921main ()
1922{
1923if (sizeof ($2))
1924	 return 0;
1925  ;
1926  return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h.  */
1932$4
1933int
1934main ()
1935{
1936if (sizeof (($2)))
1937	    return 0;
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943
1944else
1945  eval "$3=yes"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950fi
1951eval ac_res=\$$3
1952	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_type
1957
1958# ac_fn_c_find_uintX_t LINENO BITS VAR
1959# ------------------------------------
1960# Finds an unsigned integer type with width BITS, setting cache variable VAR
1961# accordingly.
1962ac_fn_c_find_uintX_t ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1966$as_echo_n "checking for uint$2_t... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  eval "$3=no"
1971     # Order is important - never check a type that is potentially smaller
1972     # than half of the expected target width.
1973     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1974	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h.  */
1977$ac_includes_default
1978int
1979main ()
1980{
1981static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1982test_array [0] = 0;
1983return test_array [0];
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  case $ac_type in #(
1991  uint$2_t) :
1992    eval "$3=yes" ;; #(
1993  *) :
1994    eval "$3=\$ac_type" ;;
1995esac
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998       if eval test \"x\$"$3"\" = x"no"; then :
1999
2000else
2001  break
2002fi
2003     done
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_find_uintX_t
2011cat >config.log <<_ACEOF
2012This file contains any messages produced by compilers while
2013running configure, to aid debugging if configure makes a mistake.
2014
2015It was created by libmaxminddb $as_me 1.6.0, which was
2016generated by GNU Autoconf 2.69.  Invocation command line was
2017
2018  $ $0 $@
2019
2020_ACEOF
2021exec 5>>config.log
2022{
2023cat <<_ASUNAME
2024## --------- ##
2025## Platform. ##
2026## --------- ##
2027
2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2036
2037/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2038/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2041/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2042/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2043/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2044
2045_ASUNAME
2046
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052    $as_echo "PATH: $as_dir"
2053  done
2054IFS=$as_save_IFS
2055
2056} >&5
2057
2058cat >&5 <<_ACEOF
2059
2060
2061## ----------- ##
2062## Core tests. ##
2063## ----------- ##
2064
2065_ACEOF
2066
2067
2068# Keep a trace of the command line.
2069# Strip out --no-create and --no-recursion so they do not pile up.
2070# Strip out --silent because we don't want to record it for future runs.
2071# Also quote any args containing shell meta-characters.
2072# Make two passes to allow for proper duplicate-argument suppression.
2073ac_configure_args=
2074ac_configure_args0=
2075ac_configure_args1=
2076ac_must_keep_next=false
2077for ac_pass in 1 2
2078do
2079  for ac_arg
2080  do
2081    case $ac_arg in
2082    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084    | -silent | --silent | --silen | --sile | --sil)
2085      continue ;;
2086    *\'*)
2087      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088    esac
2089    case $ac_pass in
2090    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091    2)
2092      as_fn_append ac_configure_args1 " '$ac_arg'"
2093      if test $ac_must_keep_next = true; then
2094	ac_must_keep_next=false # Got value, back to normal.
2095      else
2096	case $ac_arg in
2097	  *=* | --config-cache | -C | -disable-* | --disable-* \
2098	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100	  | -with-* | --with-* | -without-* | --without-* | --x)
2101	    case "$ac_configure_args0 " in
2102	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103	    esac
2104	    ;;
2105	  -* ) ac_must_keep_next=true ;;
2106	esac
2107      fi
2108      as_fn_append ac_configure_args " '$ac_arg'"
2109      ;;
2110    esac
2111  done
2112done
2113{ ac_configure_args0=; unset ac_configure_args0;}
2114{ ac_configure_args1=; unset ac_configure_args1;}
2115
2116# When interrupted or exit'd, cleanup temporary files, and complete
2117# config.log.  We remove comments because anyway the quotes in there
2118# would cause problems or look ugly.
2119# WARNING: Use '\'' to represent an apostrophe within the trap.
2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121trap 'exit_status=$?
2122  # Save into config.log some information that might help in debugging.
2123  {
2124    echo
2125
2126    $as_echo "## ---------------- ##
2127## Cache variables. ##
2128## ---------------- ##"
2129    echo
2130    # The following way of writing the cache mishandles newlines in values,
2131(
2132  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133    eval ac_val=\$$ac_var
2134    case $ac_val in #(
2135    *${as_nl}*)
2136      case $ac_var in #(
2137      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139      esac
2140      case $ac_var in #(
2141      _ | IFS | as_nl) ;; #(
2142      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143      *) { eval $ac_var=; unset $ac_var;} ;;
2144      esac ;;
2145    esac
2146  done
2147  (set) 2>&1 |
2148    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149    *${as_nl}ac_space=\ *)
2150      sed -n \
2151	"s/'\''/'\''\\\\'\'''\''/g;
2152	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153      ;; #(
2154    *)
2155      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156      ;;
2157    esac |
2158    sort
2159)
2160    echo
2161
2162    $as_echo "## ----------------- ##
2163## Output variables. ##
2164## ----------------- ##"
2165    echo
2166    for ac_var in $ac_subst_vars
2167    do
2168      eval ac_val=\$$ac_var
2169      case $ac_val in
2170      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171      esac
2172      $as_echo "$ac_var='\''$ac_val'\''"
2173    done | sort
2174    echo
2175
2176    if test -n "$ac_subst_files"; then
2177      $as_echo "## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##"
2180      echo
2181      for ac_var in $ac_subst_files
2182      do
2183	eval ac_val=\$$ac_var
2184	case $ac_val in
2185	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186	esac
2187	$as_echo "$ac_var='\''$ac_val'\''"
2188      done | sort
2189      echo
2190    fi
2191
2192    if test -s confdefs.h; then
2193      $as_echo "## ----------- ##
2194## confdefs.h. ##
2195## ----------- ##"
2196      echo
2197      cat confdefs.h
2198      echo
2199    fi
2200    test "$ac_signal" != 0 &&
2201      $as_echo "$as_me: caught signal $ac_signal"
2202    $as_echo "$as_me: exit $exit_status"
2203  } >&5
2204  rm -f core *.core core.conftest.* &&
2205    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206    exit $exit_status
2207' 0
2208for ac_signal in 1 2 13 15; do
2209  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210done
2211ac_signal=0
2212
2213# confdefs.h avoids OS command line length limits that DEFS can exceed.
2214rm -f -r conftest* confdefs.h
2215
2216$as_echo "/* confdefs.h */" > confdefs.h
2217
2218# Predefined preprocessor variables.
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_NAME "$PACKAGE_NAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_STRING "$PACKAGE_STRING"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_URL "$PACKAGE_URL"
2242_ACEOF
2243
2244
2245# Let the site file select an alternate cache file if it wants to.
2246# Prefer an explicitly selected file to automatically selected ones.
2247ac_site_file1=NONE
2248ac_site_file2=NONE
2249if test -n "$CONFIG_SITE"; then
2250  # We do not want a PATH search for config.site.
2251  case $CONFIG_SITE in #((
2252    -*)  ac_site_file1=./$CONFIG_SITE;;
2253    */*) ac_site_file1=$CONFIG_SITE;;
2254    *)   ac_site_file1=./$CONFIG_SITE;;
2255  esac
2256elif test "x$prefix" != xNONE; then
2257  ac_site_file1=$prefix/share/config.site
2258  ac_site_file2=$prefix/etc/config.site
2259else
2260  ac_site_file1=$ac_default_prefix/share/config.site
2261  ac_site_file2=$ac_default_prefix/etc/config.site
2262fi
2263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265  test "x$ac_site_file" = xNONE && continue
2266  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269    sed 's/^/| /' "$ac_site_file" >&5
2270    . "$ac_site_file" \
2271      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "failed to load site script $ac_site_file
2274See \`config.log' for more details" "$LINENO" 5; }
2275  fi
2276done
2277
2278if test -r "$cache_file"; then
2279  # Some versions of bash will fail to source /dev/null (special files
2280  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2281  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283$as_echo "$as_me: loading cache $cache_file" >&6;}
2284    case $cache_file in
2285      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286      *)                      . "./$cache_file";;
2287    esac
2288  fi
2289else
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291$as_echo "$as_me: creating cache $cache_file" >&6;}
2292  >$cache_file
2293fi
2294
2295as_fn_append ac_header_list " stdlib.h"
2296as_fn_append ac_header_list " unistd.h"
2297as_fn_append ac_header_list " sys/param.h"
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
2301for ac_var in $ac_precious_vars; do
2302  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303  eval ac_new_set=\$ac_env_${ac_var}_set
2304  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305  eval ac_new_val=\$ac_env_${ac_var}_value
2306  case $ac_old_set,$ac_new_set in
2307    set,)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,set)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,);;
2316    *)
2317      if test "x$ac_old_val" != "x$ac_new_val"; then
2318	# differences in whitespace do not lead to failure.
2319	ac_old_val_w=`echo x $ac_old_val`
2320	ac_new_val_w=`echo x $ac_new_val`
2321	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324	  ac_cache_corrupted=:
2325	else
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328	  eval $ac_var=\$ac_old_val
2329	fi
2330	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334      fi;;
2335  esac
2336  # Pass precious variables to config.status.
2337  if test "$ac_new_set" = set; then
2338    case $ac_new_val in
2339    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    *) ac_arg=$ac_var=$ac_new_val ;;
2341    esac
2342    case " $ac_configure_args " in
2343      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345    esac
2346  fi
2347done
2348if $ac_cache_corrupted; then
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354fi
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367ac_config_headers="$ac_config_headers config.h include/maxminddb_config.h"
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2378	if test -n "$ac_tool_prefix"; then
2379  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2380set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382$as_echo_n "checking for $ac_word... " >&6; }
2383if ${ac_cv_path_PKG_CONFIG+:} false; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  case $PKG_CONFIG in
2387  [\\/]* | ?:[\\/]*)
2388  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2389  ;;
2390  *)
2391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396    for ac_exec_ext in '' $ac_executable_extensions; do
2397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403  done
2404IFS=$as_save_IFS
2405
2406  ;;
2407esac
2408fi
2409PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2410if test -n "$PKG_CONFIG"; then
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2412$as_echo "$PKG_CONFIG" >&6; }
2413else
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415$as_echo "no" >&6; }
2416fi
2417
2418
2419fi
2420if test -z "$ac_cv_path_PKG_CONFIG"; then
2421  ac_pt_PKG_CONFIG=$PKG_CONFIG
2422  # Extract the first word of "pkg-config", so it can be a program name with args.
2423set dummy pkg-config; ac_word=$2
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
2426if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2427  $as_echo_n "(cached) " >&6
2428else
2429  case $ac_pt_PKG_CONFIG in
2430  [\\/]* | ?:[\\/]*)
2431  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2432  ;;
2433  *)
2434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439    for ac_exec_ext in '' $ac_executable_extensions; do
2440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443    break 2
2444  fi
2445done
2446  done
2447IFS=$as_save_IFS
2448
2449  ;;
2450esac
2451fi
2452ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2453if test -n "$ac_pt_PKG_CONFIG"; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2455$as_echo "$ac_pt_PKG_CONFIG" >&6; }
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461  if test "x$ac_pt_PKG_CONFIG" = x; then
2462    PKG_CONFIG=""
2463  else
2464    case $cross_compiling:$ac_tool_warned in
2465yes:)
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468ac_tool_warned=yes ;;
2469esac
2470    PKG_CONFIG=$ac_pt_PKG_CONFIG
2471  fi
2472else
2473  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2474fi
2475
2476fi
2477if test -n "$PKG_CONFIG"; then
2478	_pkg_min_version=0.9.0
2479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2480$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2481	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2483$as_echo "yes" >&6; }
2484	else
2485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
2487		PKG_CONFIG=""
2488	fi
2489fi
2490
2491
2492
2493# Check whether --with-pkgconfigdir was given.
2494if test "${with_pkgconfigdir+set}" = set; then :
2495  withval=$with_pkgconfigdir;
2496else
2497  with_pkgconfigdir='${libdir}/pkgconfig'
2498fi
2499
2500pkgconfigdir=$with_pkgconfigdir
2501
2502
2503
2504
2505ac_config_files="$ac_config_files src/libmaxminddb.pc"
2506
2507
2508ac_aux_dir=
2509for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510  if test -f "$ac_dir/install-sh"; then
2511    ac_aux_dir=$ac_dir
2512    ac_install_sh="$ac_aux_dir/install-sh -c"
2513    break
2514  elif test -f "$ac_dir/install.sh"; then
2515    ac_aux_dir=$ac_dir
2516    ac_install_sh="$ac_aux_dir/install.sh -c"
2517    break
2518  elif test -f "$ac_dir/shtool"; then
2519    ac_aux_dir=$ac_dir
2520    ac_install_sh="$ac_aux_dir/shtool install -c"
2521    break
2522  fi
2523done
2524if test -z "$ac_aux_dir"; then
2525  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526fi
2527
2528# These three variables are undocumented and unsupported,
2529# and are intended to be withdrawn in a future Autoconf release.
2530# They can cause serious problems if a builder's source tree is in a directory
2531# whose full name contains unusual characters.
2532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537case `pwd` in
2538  *\ * | *\	*)
2539    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2540$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2541esac
2542
2543
2544
2545macro_version='2.4.6'
2546macro_revision='2.4.6'
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560ltmain=$ac_aux_dir/ltmain.sh
2561
2562# Make sure we can run config.sub.
2563$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2567$as_echo_n "checking build system type... " >&6; }
2568if ${ac_cv_build+:} false; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  ac_build_alias=$build_alias
2572test "x$ac_build_alias" = x &&
2573  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2574test "x$ac_build_alias" = x &&
2575  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2576ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2581$as_echo "$ac_cv_build" >&6; }
2582case $ac_cv_build in
2583*-*-*) ;;
2584*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2585esac
2586build=$ac_cv_build
2587ac_save_IFS=$IFS; IFS='-'
2588set x $ac_cv_build
2589shift
2590build_cpu=$1
2591build_vendor=$2
2592shift; shift
2593# Remember, the first character of IFS is used to create $*,
2594# except with old shells:
2595build_os=$*
2596IFS=$ac_save_IFS
2597case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2601$as_echo_n "checking host system type... " >&6; }
2602if ${ac_cv_host+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test "x$host_alias" = x; then
2606  ac_cv_host=$ac_cv_build
2607else
2608  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610fi
2611
2612fi
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2614$as_echo "$ac_cv_host" >&6; }
2615case $ac_cv_host in
2616*-*-*) ;;
2617*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2618esac
2619host=$ac_cv_host
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_host
2622shift
2623host_cpu=$1
2624host_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628host_os=$*
2629IFS=$ac_save_IFS
2630case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633# Backslashify metacharacters that are still active within
2634# double-quoted strings.
2635sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2636
2637# Same as above, but do not quote variable references.
2638double_quote_subst='s/\(["`\\]\)/\\\1/g'
2639
2640# Sed substitution to delay expansion of an escaped shell variable in a
2641# double_quote_subst'ed string.
2642delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2643
2644# Sed substitution to delay expansion of an escaped single quote.
2645delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2646
2647# Sed substitution to avoid accidental globbing in evaled expressions
2648no_glob_subst='s/\*/\\\*/g'
2649
2650ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2651ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2652ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2655$as_echo_n "checking how to print strings... " >&6; }
2656# Test print first, because it will be a builtin if present.
2657if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2658   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2659  ECHO='print -r --'
2660elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2661  ECHO='printf %s\n'
2662else
2663  # Use this function as a fallback that always works.
2664  func_fallback_echo ()
2665  {
2666    eval 'cat <<_LTECHO_EOF
2667$1
2668_LTECHO_EOF'
2669  }
2670  ECHO='func_fallback_echo'
2671fi
2672
2673# func_echo_all arg...
2674# Invoke $ECHO with all args, space-separated.
2675func_echo_all ()
2676{
2677    $ECHO ""
2678}
2679
2680case $ECHO in
2681  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2682$as_echo "printf" >&6; } ;;
2683  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2684$as_echo "print -r" >&6; } ;;
2685  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2686$as_echo "cat" >&6; } ;;
2687esac
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702# Expand $ac_aux_dir to an absolute path.
2703am_aux_dir=`cd "$ac_aux_dir" && pwd`
2704
2705ac_ext=c
2706ac_cpp='$CPP $CPPFLAGS'
2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710if test -n "$ac_tool_prefix"; then
2711  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if ${ac_cv_prog_CC+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$CC"; then
2719  ac_cv_prog_CC="$CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741$as_echo "$CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747
2748fi
2749if test -z "$ac_cv_prog_CC"; then
2750  ac_ct_CC=$CC
2751  # Extract the first word of "gcc", so it can be a program name with args.
2752set dummy gcc; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if ${ac_cv_prog_ac_ct_CC+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$ac_ct_CC"; then
2759  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768    ac_cv_prog_ac_ct_CC="gcc"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779if test -n "$ac_ct_CC"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781$as_echo "$ac_ct_CC" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787  if test "x$ac_ct_CC" = x; then
2788    CC=""
2789  else
2790    case $cross_compiling:$ac_tool_warned in
2791yes:)
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794ac_tool_warned=yes ;;
2795esac
2796    CC=$ac_ct_CC
2797  fi
2798else
2799  CC="$ac_cv_prog_CC"
2800fi
2801
2802if test -z "$CC"; then
2803          if test -n "$ac_tool_prefix"; then
2804    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}cc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_CC+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_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    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_CC="${ac_tool_prefix}cc"
2822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834$as_echo "$CC" >&6; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841  fi
2842fi
2843if test -z "$CC"; then
2844  # Extract the first word of "cc", so it can be a program name with args.
2845set dummy cc; ac_word=$2
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if ${ac_cv_prog_CC+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$CC"; then
2852  ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
2854  ac_prog_rejected=no
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863       ac_prog_rejected=yes
2864       continue
2865     fi
2866    ac_cv_prog_CC="cc"
2867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871  done
2872IFS=$as_save_IFS
2873
2874if test $ac_prog_rejected = yes; then
2875  # We found a bogon in the path, so make sure we never use it.
2876  set dummy $ac_cv_prog_CC
2877  shift
2878  if test $# != 0; then
2879    # We chose a different compiler from the bogus one.
2880    # However, it has the same basename, so the bogon will be chosen
2881    # first if we set CC to just the basename; use the full file name.
2882    shift
2883    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884  fi
2885fi
2886fi
2887fi
2888CC=$ac_cv_prog_CC
2889if test -n "$CC"; then
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891$as_echo "$CC" >&6; }
2892else
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894$as_echo "no" >&6; }
2895fi
2896
2897
2898fi
2899if test -z "$CC"; then
2900  if test -n "$ac_tool_prefix"; then
2901  for ac_prog in cl.exe
2902  do
2903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if ${ac_cv_prog_CC+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940    test -n "$CC" && break
2941  done
2942fi
2943if test -z "$CC"; then
2944  ac_ct_CC=$CC
2945  for ac_prog in cl.exe
2946do
2947  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948set dummy $ac_prog; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_ac_ct_CC+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$ac_ct_CC"; then
2955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_ac_ct_CC="$ac_prog"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977$as_echo "$ac_ct_CC" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984  test -n "$ac_ct_CC" && break
2985done
2986
2987  if test "x$ac_ct_CC" = x; then
2988    CC=""
2989  else
2990    case $cross_compiling:$ac_tool_warned in
2991yes:)
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994ac_tool_warned=yes ;;
2995esac
2996    CC=$ac_ct_CC
2997  fi
2998fi
2999
3000fi
3001
3002
3003test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005as_fn_error $? "no acceptable C compiler found in \$PATH
3006See \`config.log' for more details" "$LINENO" 5; }
3007
3008# Provide some information about the compiler.
3009$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3010set X $ac_compile
3011ac_compiler=$2
3012for ac_option in --version -v -V -qversion; do
3013  { { ac_try="$ac_compiler $ac_option >&5"
3014case "(($ac_try" in
3015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016  *) ac_try_echo=$ac_try;;
3017esac
3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019$as_echo "$ac_try_echo"; } >&5
3020  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3021  ac_status=$?
3022  if test -s conftest.err; then
3023    sed '10a\
3024... rest of stderr output deleted ...
3025         10q' conftest.err >conftest.er1
3026    cat conftest.er1 >&5
3027  fi
3028  rm -f conftest.er1 conftest.err
3029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030  test $ac_status = 0; }
3031done
3032
3033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h.  */
3035
3036int
3037main ()
3038{
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044ac_clean_files_save=$ac_clean_files
3045ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3046# Try to create an executable without -o first, disregard a.out.
3047# It will help us diagnose broken compilers, and finding out an intuition
3048# of exeext.
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3050$as_echo_n "checking whether the C compiler works... " >&6; }
3051ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052
3053# The possible output files:
3054ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055
3056ac_rmfiles=
3057for ac_file in $ac_files
3058do
3059  case $ac_file in
3060    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3062  esac
3063done
3064rm -f $ac_rmfiles
3065
3066if { { ac_try="$ac_link_default"
3067case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073  (eval "$ac_link_default") 2>&5
3074  ac_status=$?
3075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076  test $ac_status = 0; }; then :
3077  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3078# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3079# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3080# so that the user can short-circuit this test for compilers unknown to
3081# Autoconf.
3082for ac_file in $ac_files ''
3083do
3084  test -f "$ac_file" || continue
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087	;;
3088    [ab].out )
3089	# We found the default executable, but exeext='' is most
3090	# certainly right.
3091	break;;
3092    *.* )
3093	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3094	then :; else
3095	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096	fi
3097	# We set ac_cv_exeext here because the later test for it is not
3098	# safe: cross compilers may not add the suffix if given an `-o'
3099	# argument, so we may need to know it at that point already.
3100	# Even if this section looks crufty: it has the advantage of
3101	# actually working.
3102	break;;
3103    * )
3104	break;;
3105  esac
3106done
3107test "$ac_cv_exeext" = no && ac_cv_exeext=
3108
3109else
3110  ac_file=''
3111fi
3112if test -z "$ac_file"; then :
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115$as_echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120as_fn_error 77 "C compiler cannot create executables
3121See \`config.log' for more details" "$LINENO" 5; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124$as_echo "yes" >&6; }
3125fi
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3127$as_echo_n "checking for C compiler default output file name... " >&6; }
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129$as_echo "$ac_file" >&6; }
3130ac_exeext=$ac_cv_exeext
3131
3132rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3133ac_clean_files=$ac_clean_files_save
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3135$as_echo_n "checking for suffix of executables... " >&6; }
3136if { { ac_try="$ac_link"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143  (eval "$ac_link") 2>&5
3144  ac_status=$?
3145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146  test $ac_status = 0; }; then :
3147  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3148# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3149# work properly (i.e., refer to `conftest.exe'), while it won't with
3150# `rm'.
3151for ac_file in conftest.exe conftest conftest.*; do
3152  test -f "$ac_file" || continue
3153  case $ac_file in
3154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3155    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156	  break;;
3157    * ) break;;
3158  esac
3159done
3160else
3161  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3164See \`config.log' for more details" "$LINENO" 5; }
3165fi
3166rm -f conftest conftest$ac_cv_exeext
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3168$as_echo "$ac_cv_exeext" >&6; }
3169
3170rm -f conftest.$ac_ext
3171EXEEXT=$ac_cv_exeext
3172ac_exeext=$EXEEXT
3173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174/* end confdefs.h.  */
3175#include <stdio.h>
3176int
3177main ()
3178{
3179FILE *f = fopen ("conftest.out", "w");
3180 return ferror (f) || fclose (f) != 0;
3181
3182  ;
3183  return 0;
3184}
3185_ACEOF
3186ac_clean_files="$ac_clean_files conftest.out"
3187# Check that the compiler produces executables we can run.  If not, either
3188# the compiler is broken, or we cross compile.
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3190$as_echo_n "checking whether we are cross compiling... " >&6; }
3191if test "$cross_compiling" != yes; then
3192  { { ac_try="$ac_link"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199  (eval "$ac_link") 2>&5
3200  ac_status=$?
3201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202  test $ac_status = 0; }
3203  if { ac_try='./conftest$ac_cv_exeext'
3204  { { case "(($ac_try" in
3205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206  *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210  (eval "$ac_try") 2>&5
3211  ac_status=$?
3212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213  test $ac_status = 0; }; }; then
3214    cross_compiling=no
3215  else
3216    if test "$cross_compiling" = maybe; then
3217	cross_compiling=yes
3218    else
3219	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221as_fn_error $? "cannot run C compiled programs.
3222If you meant to cross compile, use \`--host'.
3223See \`config.log' for more details" "$LINENO" 5; }
3224    fi
3225  fi
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3228$as_echo "$cross_compiling" >&6; }
3229
3230rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3231ac_clean_files=$ac_clean_files_save
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3233$as_echo_n "checking for suffix of object files... " >&6; }
3234if ${ac_cv_objext+:} false; then :
3235  $as_echo_n "(cached) " >&6
3236else
3237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h.  */
3239
3240int
3241main ()
3242{
3243
3244  ;
3245  return 0;
3246}
3247_ACEOF
3248rm -f conftest.o conftest.obj
3249if { { ac_try="$ac_compile"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256  (eval "$ac_compile") 2>&5
3257  ac_status=$?
3258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259  test $ac_status = 0; }; then :
3260  for ac_file in conftest.o conftest.obj conftest.*; do
3261  test -f "$ac_file" || continue;
3262  case $ac_file in
3263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3264    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265       break;;
3266  esac
3267done
3268else
3269  $as_echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274as_fn_error $? "cannot compute suffix of object files: cannot compile
3275See \`config.log' for more details" "$LINENO" 5; }
3276fi
3277rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3280$as_echo "$ac_cv_objext" >&6; }
3281OBJEXT=$ac_cv_objext
3282ac_objext=$OBJEXT
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3284$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3285if ${ac_cv_c_compiler_gnu+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290
3291int
3292main ()
3293{
3294#ifndef __GNUC__
3295       choke me
3296#endif
3297
3298  ;
3299  return 0;
3300}
3301_ACEOF
3302if ac_fn_c_try_compile "$LINENO"; then :
3303  ac_compiler_gnu=yes
3304else
3305  ac_compiler_gnu=no
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3312$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3313if test $ac_compiler_gnu = yes; then
3314  GCC=yes
3315else
3316  GCC=
3317fi
3318ac_test_CFLAGS=${CFLAGS+set}
3319ac_save_CFLAGS=$CFLAGS
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3321$as_echo_n "checking whether $CC accepts -g... " >&6; }
3322if ${ac_cv_prog_cc_g+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  ac_save_c_werror_flag=$ac_c_werror_flag
3326   ac_c_werror_flag=yes
3327   ac_cv_prog_cc_g=no
3328   CFLAGS="-g"
3329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341  ac_cv_prog_cc_g=yes
3342else
3343  CFLAGS=""
3344      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346
3347int
3348main ()
3349{
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355if ac_fn_c_try_compile "$LINENO"; then :
3356
3357else
3358  ac_c_werror_flag=$ac_save_c_werror_flag
3359	 CFLAGS="-g"
3360	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371if ac_fn_c_try_compile "$LINENO"; then :
3372  ac_cv_prog_cc_g=yes
3373fi
3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375fi
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379   ac_c_werror_flag=$ac_save_c_werror_flag
3380fi
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3382$as_echo "$ac_cv_prog_cc_g" >&6; }
3383if test "$ac_test_CFLAGS" = set; then
3384  CFLAGS=$ac_save_CFLAGS
3385elif test $ac_cv_prog_cc_g = yes; then
3386  if test "$GCC" = yes; then
3387    CFLAGS="-g -O2"
3388  else
3389    CFLAGS="-g"
3390  fi
3391else
3392  if test "$GCC" = yes; then
3393    CFLAGS="-O2"
3394  else
3395    CFLAGS=
3396  fi
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3399$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3400if ${ac_cv_prog_cc_c89+:} false; then :
3401  $as_echo_n "(cached) " >&6
3402else
3403  ac_cv_prog_cc_c89=no
3404ac_save_CC=$CC
3405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407#include <stdarg.h>
3408#include <stdio.h>
3409struct stat;
3410/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3411struct buf { int x; };
3412FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413static char *e (p, i)
3414     char **p;
3415     int i;
3416{
3417  return p[i];
3418}
3419static char *f (char * (*g) (char **, int), char **p, ...)
3420{
3421  char *s;
3422  va_list v;
3423  va_start (v,p);
3424  s = g (p, va_arg (v,int));
3425  va_end (v);
3426  return s;
3427}
3428
3429/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3430   function prototypes and stuff, but not '\xHH' hex character constants.
3431   These don't provoke an error unfortunately, instead are silently treated
3432   as 'x'.  The following induces an error, until -std is added to get
3433   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3434   array size at least.  It's necessary to write '\x00'==0 to get something
3435   that's true only with -std.  */
3436int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437
3438/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439   inside strings and character constants.  */
3440#define FOO(x) 'x'
3441int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442
3443int test (int i, double x);
3444struct s1 {int (*f) (int a);};
3445struct s2 {int (*f) (double a);};
3446int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447int argc;
3448char **argv;
3449int
3450main ()
3451{
3452return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459do
3460  CC="$ac_save_CC $ac_arg"
3461  if ac_fn_c_try_compile "$LINENO"; then :
3462  ac_cv_prog_cc_c89=$ac_arg
3463fi
3464rm -f core conftest.err conftest.$ac_objext
3465  test "x$ac_cv_prog_cc_c89" != "xno" && break
3466done
3467rm -f conftest.$ac_ext
3468CC=$ac_save_CC
3469
3470fi
3471# AC_CACHE_VAL
3472case "x$ac_cv_prog_cc_c89" in
3473  x)
3474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475$as_echo "none needed" >&6; } ;;
3476  xno)
3477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3478$as_echo "unsupported" >&6; } ;;
3479  *)
3480    CC="$CC $ac_cv_prog_cc_c89"
3481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3482$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483esac
3484if test "x$ac_cv_prog_cc_c89" != xno; then :
3485
3486fi
3487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3500$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3501if ${am_cv_prog_cc_c_o+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515  # Make sure it works both with $CC and with simple cc.
3516  # Following AC_PROG_CC_C_O, we do the test twice because some
3517  # compilers refuse to overwrite an existing .o file with -o,
3518  # though they will create one.
3519  am_cv_prog_cc_c_o=yes
3520  for am_i in 1 2; do
3521    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3522   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } \
3526         && test -f conftest2.$ac_objext; then
3527      : OK
3528    else
3529      am_cv_prog_cc_c_o=no
3530      break
3531    fi
3532  done
3533  rm -f core conftest*
3534  unset am_i
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3537$as_echo "$am_cv_prog_cc_c_o" >&6; }
3538if test "$am_cv_prog_cc_c_o" != yes; then
3539   # Losing compiler, so override with the script.
3540   # FIXME: It is wrong to rewrite CC.
3541   # But if we don't then we get into trouble of one sort or another.
3542   # A longer-term fix would be to have automake use am__CC in this case,
3543   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3544   CC="$am_aux_dir/compile $CC"
3545fi
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3554$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3555if ${ac_cv_path_SED+:} false; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3559     for ac_i in 1 2 3 4 5 6 7; do
3560       ac_script="$ac_script$as_nl$ac_script"
3561     done
3562     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3563     { ac_script=; unset ac_script;}
3564     if test -z "$SED"; then
3565  ac_path_SED_found=false
3566  # Loop through the user's path and test for each of PROGNAME-LIST
3567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570  IFS=$as_save_IFS
3571  test -z "$as_dir" && as_dir=.
3572    for ac_prog in sed gsed; do
3573    for ac_exec_ext in '' $ac_executable_extensions; do
3574      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3575      as_fn_executable_p "$ac_path_SED" || continue
3576# Check for GNU ac_path_SED and select it if it is found.
3577  # Check for GNU $ac_path_SED
3578case `"$ac_path_SED" --version 2>&1` in
3579*GNU*)
3580  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3581*)
3582  ac_count=0
3583  $as_echo_n 0123456789 >"conftest.in"
3584  while :
3585  do
3586    cat "conftest.in" "conftest.in" >"conftest.tmp"
3587    mv "conftest.tmp" "conftest.in"
3588    cp "conftest.in" "conftest.nl"
3589    $as_echo '' >> "conftest.nl"
3590    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3591    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3592    as_fn_arith $ac_count + 1 && ac_count=$as_val
3593    if test $ac_count -gt ${ac_path_SED_max-0}; then
3594      # Best one so far, save it but keep looking for a better one
3595      ac_cv_path_SED="$ac_path_SED"
3596      ac_path_SED_max=$ac_count
3597    fi
3598    # 10*(2^10) chars as input seems more than enough
3599    test $ac_count -gt 10 && break
3600  done
3601  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3602esac
3603
3604      $ac_path_SED_found && break 3
3605    done
3606  done
3607  done
3608IFS=$as_save_IFS
3609  if test -z "$ac_cv_path_SED"; then
3610    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3611  fi
3612else
3613  ac_cv_path_SED=$SED
3614fi
3615
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3618$as_echo "$ac_cv_path_SED" >&6; }
3619 SED="$ac_cv_path_SED"
3620  rm -f conftest.sed
3621
3622test -z "$SED" && SED=sed
3623Xsed="$SED -e 1s/^X//"
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3636$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3637if ${ac_cv_path_GREP+:} false; then :
3638  $as_echo_n "(cached) " >&6
3639else
3640  if test -z "$GREP"; then
3641  ac_path_GREP_found=false
3642  # Loop through the user's path and test for each of PROGNAME-LIST
3643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648    for ac_prog in grep ggrep; do
3649    for ac_exec_ext in '' $ac_executable_extensions; do
3650      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651      as_fn_executable_p "$ac_path_GREP" || continue
3652# Check for GNU ac_path_GREP and select it if it is found.
3653  # Check for GNU $ac_path_GREP
3654case `"$ac_path_GREP" --version 2>&1` in
3655*GNU*)
3656  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3657*)
3658  ac_count=0
3659  $as_echo_n 0123456789 >"conftest.in"
3660  while :
3661  do
3662    cat "conftest.in" "conftest.in" >"conftest.tmp"
3663    mv "conftest.tmp" "conftest.in"
3664    cp "conftest.in" "conftest.nl"
3665    $as_echo 'GREP' >> "conftest.nl"
3666    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668    as_fn_arith $ac_count + 1 && ac_count=$as_val
3669    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670      # Best one so far, save it but keep looking for a better one
3671      ac_cv_path_GREP="$ac_path_GREP"
3672      ac_path_GREP_max=$ac_count
3673    fi
3674    # 10*(2^10) chars as input seems more than enough
3675    test $ac_count -gt 10 && break
3676  done
3677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678esac
3679
3680      $ac_path_GREP_found && break 3
3681    done
3682  done
3683  done
3684IFS=$as_save_IFS
3685  if test -z "$ac_cv_path_GREP"; then
3686    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3687  fi
3688else
3689  ac_cv_path_GREP=$GREP
3690fi
3691
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3694$as_echo "$ac_cv_path_GREP" >&6; }
3695 GREP="$ac_cv_path_GREP"
3696
3697
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3699$as_echo_n "checking for egrep... " >&6; }
3700if ${ac_cv_path_EGREP+:} false; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704   then ac_cv_path_EGREP="$GREP -E"
3705   else
3706     if test -z "$EGREP"; then
3707  ac_path_EGREP_found=false
3708  # Loop through the user's path and test for each of PROGNAME-LIST
3709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711do
3712  IFS=$as_save_IFS
3713  test -z "$as_dir" && as_dir=.
3714    for ac_prog in egrep; do
3715    for ac_exec_ext in '' $ac_executable_extensions; do
3716      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717      as_fn_executable_p "$ac_path_EGREP" || continue
3718# Check for GNU ac_path_EGREP and select it if it is found.
3719  # Check for GNU $ac_path_EGREP
3720case `"$ac_path_EGREP" --version 2>&1` in
3721*GNU*)
3722  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723*)
3724  ac_count=0
3725  $as_echo_n 0123456789 >"conftest.in"
3726  while :
3727  do
3728    cat "conftest.in" "conftest.in" >"conftest.tmp"
3729    mv "conftest.tmp" "conftest.in"
3730    cp "conftest.in" "conftest.nl"
3731    $as_echo 'EGREP' >> "conftest.nl"
3732    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734    as_fn_arith $ac_count + 1 && ac_count=$as_val
3735    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736      # Best one so far, save it but keep looking for a better one
3737      ac_cv_path_EGREP="$ac_path_EGREP"
3738      ac_path_EGREP_max=$ac_count
3739    fi
3740    # 10*(2^10) chars as input seems more than enough
3741    test $ac_count -gt 10 && break
3742  done
3743  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744esac
3745
3746      $ac_path_EGREP_found && break 3
3747    done
3748  done
3749  done
3750IFS=$as_save_IFS
3751  if test -z "$ac_cv_path_EGREP"; then
3752    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3753  fi
3754else
3755  ac_cv_path_EGREP=$EGREP
3756fi
3757
3758   fi
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3761$as_echo "$ac_cv_path_EGREP" >&6; }
3762 EGREP="$ac_cv_path_EGREP"
3763
3764
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3766$as_echo_n "checking for fgrep... " >&6; }
3767if ${ac_cv_path_FGREP+:} false; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3771   then ac_cv_path_FGREP="$GREP -F"
3772   else
3773     if test -z "$FGREP"; then
3774  ac_path_FGREP_found=false
3775  # Loop through the user's path and test for each of PROGNAME-LIST
3776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778do
3779  IFS=$as_save_IFS
3780  test -z "$as_dir" && as_dir=.
3781    for ac_prog in fgrep; do
3782    for ac_exec_ext in '' $ac_executable_extensions; do
3783      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3784      as_fn_executable_p "$ac_path_FGREP" || continue
3785# Check for GNU ac_path_FGREP and select it if it is found.
3786  # Check for GNU $ac_path_FGREP
3787case `"$ac_path_FGREP" --version 2>&1` in
3788*GNU*)
3789  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3790*)
3791  ac_count=0
3792  $as_echo_n 0123456789 >"conftest.in"
3793  while :
3794  do
3795    cat "conftest.in" "conftest.in" >"conftest.tmp"
3796    mv "conftest.tmp" "conftest.in"
3797    cp "conftest.in" "conftest.nl"
3798    $as_echo 'FGREP' >> "conftest.nl"
3799    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801    as_fn_arith $ac_count + 1 && ac_count=$as_val
3802    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3803      # Best one so far, save it but keep looking for a better one
3804      ac_cv_path_FGREP="$ac_path_FGREP"
3805      ac_path_FGREP_max=$ac_count
3806    fi
3807    # 10*(2^10) chars as input seems more than enough
3808    test $ac_count -gt 10 && break
3809  done
3810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811esac
3812
3813      $ac_path_FGREP_found && break 3
3814    done
3815  done
3816  done
3817IFS=$as_save_IFS
3818  if test -z "$ac_cv_path_FGREP"; then
3819    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820  fi
3821else
3822  ac_cv_path_FGREP=$FGREP
3823fi
3824
3825   fi
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3828$as_echo "$ac_cv_path_FGREP" >&6; }
3829 FGREP="$ac_cv_path_FGREP"
3830
3831
3832test -z "$GREP" && GREP=grep
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852# Check whether --with-gnu-ld was given.
3853if test "${with_gnu_ld+set}" = set; then :
3854  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3855else
3856  with_gnu_ld=no
3857fi
3858
3859ac_prog=ld
3860if test yes = "$GCC"; then
3861  # Check if gcc -print-prog-name=ld gives a path.
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3863$as_echo_n "checking for ld used by $CC... " >&6; }
3864  case $host in
3865  *-*-mingw*)
3866    # gcc leaves a trailing carriage return, which upsets mingw
3867    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3868  *)
3869    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3870  esac
3871  case $ac_prog in
3872    # Accept absolute paths.
3873    [\\/]* | ?:[\\/]*)
3874      re_direlt='/[^/][^/]*/\.\./'
3875      # Canonicalize the pathname of ld
3876      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3877      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3878	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3879      done
3880      test -z "$LD" && LD=$ac_prog
3881      ;;
3882  "")
3883    # If it fails, then pretend we aren't using GCC.
3884    ac_prog=ld
3885    ;;
3886  *)
3887    # If it is relative, then search for the first ld in PATH.
3888    with_gnu_ld=unknown
3889    ;;
3890  esac
3891elif test yes = "$with_gnu_ld"; then
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3893$as_echo_n "checking for GNU ld... " >&6; }
3894else
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3896$as_echo_n "checking for non-GNU ld... " >&6; }
3897fi
3898if ${lt_cv_path_LD+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  if test -z "$LD"; then
3902  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3903  for ac_dir in $PATH; do
3904    IFS=$lt_save_ifs
3905    test -z "$ac_dir" && ac_dir=.
3906    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3907      lt_cv_path_LD=$ac_dir/$ac_prog
3908      # Check to see if the program is GNU ld.  I'd rather use --version,
3909      # but apparently some variants of GNU ld only accept -v.
3910      # Break only if it was the GNU/non-GNU ld that we prefer.
3911      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3912      *GNU* | *'with BFD'*)
3913	test no != "$with_gnu_ld" && break
3914	;;
3915      *)
3916	test yes != "$with_gnu_ld" && break
3917	;;
3918      esac
3919    fi
3920  done
3921  IFS=$lt_save_ifs
3922else
3923  lt_cv_path_LD=$LD # Let the user override the test with a path.
3924fi
3925fi
3926
3927LD=$lt_cv_path_LD
3928if test -n "$LD"; then
3929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3930$as_echo "$LD" >&6; }
3931else
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3937$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3938if ${lt_cv_prog_gnu_ld+:} false; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3942case `$LD -v 2>&1 </dev/null` in
3943*GNU* | *'with BFD'*)
3944  lt_cv_prog_gnu_ld=yes
3945  ;;
3946*)
3947  lt_cv_prog_gnu_ld=no
3948  ;;
3949esac
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3952$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3953with_gnu_ld=$lt_cv_prog_gnu_ld
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3964$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3965if ${lt_cv_path_NM+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  if test -n "$NM"; then
3969  # Let the user override the test.
3970  lt_cv_path_NM=$NM
3971else
3972  lt_nm_to_check=${ac_tool_prefix}nm
3973  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3974    lt_nm_to_check="$lt_nm_to_check nm"
3975  fi
3976  for lt_tmp_nm in $lt_nm_to_check; do
3977    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3978    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3979      IFS=$lt_save_ifs
3980      test -z "$ac_dir" && ac_dir=.
3981      tmp_nm=$ac_dir/$lt_tmp_nm
3982      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3983	# Check to see if the nm accepts a BSD-compat flag.
3984	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3985	#   nm: unknown option "B" ignored
3986	# Tru64's nm complains that /dev/null is an invalid object file
3987	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3988	case $build_os in
3989	mingw*) lt_bad_file=conftest.nm/nofile ;;
3990	*) lt_bad_file=/dev/null ;;
3991	esac
3992	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3993	*$lt_bad_file* | *'Invalid file or object type'*)
3994	  lt_cv_path_NM="$tmp_nm -B"
3995	  break 2
3996	  ;;
3997	*)
3998	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3999	  */dev/null*)
4000	    lt_cv_path_NM="$tmp_nm -p"
4001	    break 2
4002	    ;;
4003	  *)
4004	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4005	    continue # so that we can try to find one that supports BSD flags
4006	    ;;
4007	  esac
4008	  ;;
4009	esac
4010      fi
4011    done
4012    IFS=$lt_save_ifs
4013  done
4014  : ${lt_cv_path_NM=no}
4015fi
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4018$as_echo "$lt_cv_path_NM" >&6; }
4019if test no != "$lt_cv_path_NM"; then
4020  NM=$lt_cv_path_NM
4021else
4022  # Didn't find any BSD compatible name lister, look for dumpbin.
4023  if test -n "$DUMPBIN"; then :
4024    # Let the user override the test.
4025  else
4026    if test -n "$ac_tool_prefix"; then
4027  for ac_prog in dumpbin "link -dump"
4028  do
4029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032$as_echo_n "checking for $ac_word... " >&6; }
4033if ${ac_cv_prog_DUMPBIN+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  if test -n "$DUMPBIN"; then
4037  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4038else
4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042  IFS=$as_save_IFS
4043  test -z "$as_dir" && as_dir=.
4044    for ac_exec_ext in '' $ac_executable_extensions; do
4045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048    break 2
4049  fi
4050done
4051  done
4052IFS=$as_save_IFS
4053
4054fi
4055fi
4056DUMPBIN=$ac_cv_prog_DUMPBIN
4057if test -n "$DUMPBIN"; then
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4059$as_echo "$DUMPBIN" >&6; }
4060else
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
4063fi
4064
4065
4066    test -n "$DUMPBIN" && break
4067  done
4068fi
4069if test -z "$DUMPBIN"; then
4070  ac_ct_DUMPBIN=$DUMPBIN
4071  for ac_prog in dumpbin "link -dump"
4072do
4073  # Extract the first word of "$ac_prog", so it can be a program name with args.
4074set dummy $ac_prog; ac_word=$2
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076$as_echo_n "checking for $ac_word... " >&6; }
4077if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  if test -n "$ac_ct_DUMPBIN"; then
4081  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4082else
4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086  IFS=$as_save_IFS
4087  test -z "$as_dir" && as_dir=.
4088    for ac_exec_ext in '' $ac_executable_extensions; do
4089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092    break 2
4093  fi
4094done
4095  done
4096IFS=$as_save_IFS
4097
4098fi
4099fi
4100ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4101if test -n "$ac_ct_DUMPBIN"; then
4102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4103$as_echo "$ac_ct_DUMPBIN" >&6; }
4104else
4105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107fi
4108
4109
4110  test -n "$ac_ct_DUMPBIN" && break
4111done
4112
4113  if test "x$ac_ct_DUMPBIN" = x; then
4114    DUMPBIN=":"
4115  else
4116    case $cross_compiling:$ac_tool_warned in
4117yes:)
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4120ac_tool_warned=yes ;;
4121esac
4122    DUMPBIN=$ac_ct_DUMPBIN
4123  fi
4124fi
4125
4126    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4127    *COFF*)
4128      DUMPBIN="$DUMPBIN -symbols -headers"
4129      ;;
4130    *)
4131      DUMPBIN=:
4132      ;;
4133    esac
4134  fi
4135
4136  if test : != "$DUMPBIN"; then
4137    NM=$DUMPBIN
4138  fi
4139fi
4140test -z "$NM" && NM=nm
4141
4142
4143
4144
4145
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4148$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4149if ${lt_cv_nm_interface+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  lt_cv_nm_interface="BSD nm"
4153  echo "int some_variable = 0;" > conftest.$ac_ext
4154  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4155  (eval "$ac_compile" 2>conftest.err)
4156  cat conftest.err >&5
4157  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4158  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4159  cat conftest.err >&5
4160  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4161  cat conftest.out >&5
4162  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4163    lt_cv_nm_interface="MS dumpbin"
4164  fi
4165  rm -f conftest*
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4168$as_echo "$lt_cv_nm_interface" >&6; }
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4171$as_echo_n "checking whether ln -s works... " >&6; }
4172LN_S=$as_ln_s
4173if test "$LN_S" = "ln -s"; then
4174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4175$as_echo "yes" >&6; }
4176else
4177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4178$as_echo "no, using $LN_S" >&6; }
4179fi
4180
4181# find the maximum length of command line arguments
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4183$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4184if ${lt_cv_sys_max_cmd_len+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187    i=0
4188  teststring=ABCD
4189
4190  case $build_os in
4191  msdosdjgpp*)
4192    # On DJGPP, this test can blow up pretty badly due to problems in libc
4193    # (any single argument exceeding 2000 bytes causes a buffer overrun
4194    # during glob expansion).  Even if it were fixed, the result of this
4195    # check would be larger than it should be.
4196    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4197    ;;
4198
4199  gnu*)
4200    # Under GNU Hurd, this test is not required because there is
4201    # no limit to the length of command line arguments.
4202    # Libtool will interpret -1 as no limit whatsoever
4203    lt_cv_sys_max_cmd_len=-1;
4204    ;;
4205
4206  cygwin* | mingw* | cegcc*)
4207    # On Win9x/ME, this test blows up -- it succeeds, but takes
4208    # about 5 minutes as the teststring grows exponentially.
4209    # Worse, since 9x/ME are not pre-emptively multitasking,
4210    # you end up with a "frozen" computer, even though with patience
4211    # the test eventually succeeds (with a max line length of 256k).
4212    # Instead, let's just punt: use the minimum linelength reported by
4213    # all of the supported platforms: 8192 (on NT/2K/XP).
4214    lt_cv_sys_max_cmd_len=8192;
4215    ;;
4216
4217  mint*)
4218    # On MiNT this can take a long time and run out of memory.
4219    lt_cv_sys_max_cmd_len=8192;
4220    ;;
4221
4222  amigaos*)
4223    # On AmigaOS with pdksh, this test takes hours, literally.
4224    # So we just punt and use a minimum line length of 8192.
4225    lt_cv_sys_max_cmd_len=8192;
4226    ;;
4227
4228  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4229    # This has been around since 386BSD, at least.  Likely further.
4230    if test -x /sbin/sysctl; then
4231      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4232    elif test -x /usr/sbin/sysctl; then
4233      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4234    else
4235      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4236    fi
4237    # And add a safety zone
4238    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4240    ;;
4241
4242  interix*)
4243    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4244    lt_cv_sys_max_cmd_len=196608
4245    ;;
4246
4247  os2*)
4248    # The test takes a long time on OS/2.
4249    lt_cv_sys_max_cmd_len=8192
4250    ;;
4251
4252  osf*)
4253    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4254    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4255    # nice to cause kernel panics so lets avoid the loop below.
4256    # First set a reasonable default.
4257    lt_cv_sys_max_cmd_len=16384
4258    #
4259    if test -x /sbin/sysconfig; then
4260      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4261        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4262      esac
4263    fi
4264    ;;
4265  sco3.2v5*)
4266    lt_cv_sys_max_cmd_len=102400
4267    ;;
4268  sysv5* | sco5v6* | sysv4.2uw2*)
4269    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4270    if test -n "$kargmax"; then
4271      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4272    else
4273      lt_cv_sys_max_cmd_len=32768
4274    fi
4275    ;;
4276  *)
4277    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4278    if test -n "$lt_cv_sys_max_cmd_len" && \
4279       test undefined != "$lt_cv_sys_max_cmd_len"; then
4280      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4281      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4282    else
4283      # Make teststring a little bigger before we do anything with it.
4284      # a 1K string should be a reasonable start.
4285      for i in 1 2 3 4 5 6 7 8; do
4286        teststring=$teststring$teststring
4287      done
4288      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4289      # If test is not a shell built-in, we'll probably end up computing a
4290      # maximum length that is only half of the actual maximum length, but
4291      # we can't tell.
4292      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4293	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4294	      test 17 != "$i" # 1/2 MB should be enough
4295      do
4296        i=`expr $i + 1`
4297        teststring=$teststring$teststring
4298      done
4299      # Only check the string length outside the loop.
4300      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4301      teststring=
4302      # Add a significant safety factor because C++ compilers can tack on
4303      # massive amounts of additional arguments before passing them to the
4304      # linker.  It appears as though 1/2 is a usable value.
4305      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4306    fi
4307    ;;
4308  esac
4309
4310fi
4311
4312if test -n "$lt_cv_sys_max_cmd_len"; then
4313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4314$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4315else
4316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4317$as_echo "none" >&6; }
4318fi
4319max_cmd_len=$lt_cv_sys_max_cmd_len
4320
4321
4322
4323
4324
4325
4326: ${CP="cp -f"}
4327: ${MV="mv -f"}
4328: ${RM="rm -f"}
4329
4330if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4331  lt_unset=unset
4332else
4333  lt_unset=false
4334fi
4335
4336
4337
4338
4339
4340# test EBCDIC or ASCII
4341case `echo X|tr X '\101'` in
4342 A) # ASCII based system
4343    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4344  lt_SP2NL='tr \040 \012'
4345  lt_NL2SP='tr \015\012 \040\040'
4346  ;;
4347 *) # EBCDIC based system
4348  lt_SP2NL='tr \100 \n'
4349  lt_NL2SP='tr \r\n \100\100'
4350  ;;
4351esac
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4362$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4363if ${lt_cv_to_host_file_cmd+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  case $host in
4367  *-*-mingw* )
4368    case $build in
4369      *-*-mingw* ) # actually msys
4370        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4371        ;;
4372      *-*-cygwin* )
4373        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4374        ;;
4375      * ) # otherwise, assume *nix
4376        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4377        ;;
4378    esac
4379    ;;
4380  *-*-cygwin* )
4381    case $build in
4382      *-*-mingw* ) # actually msys
4383        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4384        ;;
4385      *-*-cygwin* )
4386        lt_cv_to_host_file_cmd=func_convert_file_noop
4387        ;;
4388      * ) # otherwise, assume *nix
4389        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4390        ;;
4391    esac
4392    ;;
4393  * ) # unhandled hosts (and "normal" native builds)
4394    lt_cv_to_host_file_cmd=func_convert_file_noop
4395    ;;
4396esac
4397
4398fi
4399
4400to_host_file_cmd=$lt_cv_to_host_file_cmd
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4402$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4403
4404
4405
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4409$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4410if ${lt_cv_to_tool_file_cmd+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  #assume ordinary cross tools, or native build.
4414lt_cv_to_tool_file_cmd=func_convert_file_noop
4415case $host in
4416  *-*-mingw* )
4417    case $build in
4418      *-*-mingw* ) # actually msys
4419        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4420        ;;
4421    esac
4422    ;;
4423esac
4424
4425fi
4426
4427to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4429$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4430
4431
4432
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4436$as_echo_n "checking for $LD option to reload object files... " >&6; }
4437if ${lt_cv_ld_reload_flag+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  lt_cv_ld_reload_flag='-r'
4441fi
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4443$as_echo "$lt_cv_ld_reload_flag" >&6; }
4444reload_flag=$lt_cv_ld_reload_flag
4445case $reload_flag in
4446"" | " "*) ;;
4447*) reload_flag=" $reload_flag" ;;
4448esac
4449reload_cmds='$LD$reload_flag -o $output$reload_objs'
4450case $host_os in
4451  cygwin* | mingw* | pw32* | cegcc*)
4452    if test yes != "$GCC"; then
4453      reload_cmds=false
4454    fi
4455    ;;
4456  darwin*)
4457    if test yes = "$GCC"; then
4458      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4459    else
4460      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4461    fi
4462    ;;
4463esac
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473if test -n "$ac_tool_prefix"; then
4474  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4475set dummy ${ac_tool_prefix}objdump; ac_word=$2
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477$as_echo_n "checking for $ac_word... " >&6; }
4478if ${ac_cv_prog_OBJDUMP+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  if test -n "$OBJDUMP"; then
4482  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487  IFS=$as_save_IFS
4488  test -z "$as_dir" && as_dir=.
4489    for ac_exec_ext in '' $ac_executable_extensions; do
4490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493    break 2
4494  fi
4495done
4496  done
4497IFS=$as_save_IFS
4498
4499fi
4500fi
4501OBJDUMP=$ac_cv_prog_OBJDUMP
4502if test -n "$OBJDUMP"; then
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4504$as_echo "$OBJDUMP" >&6; }
4505else
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507$as_echo "no" >&6; }
4508fi
4509
4510
4511fi
4512if test -z "$ac_cv_prog_OBJDUMP"; then
4513  ac_ct_OBJDUMP=$OBJDUMP
4514  # Extract the first word of "objdump", so it can be a program name with args.
4515set dummy objdump; ac_word=$2
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
4518if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test -n "$ac_ct_OBJDUMP"; then
4522  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536  done
4537IFS=$as_save_IFS
4538
4539fi
4540fi
4541ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4542if test -n "$ac_ct_OBJDUMP"; then
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4544$as_echo "$ac_ct_OBJDUMP" >&6; }
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548fi
4549
4550  if test "x$ac_ct_OBJDUMP" = x; then
4551    OBJDUMP="false"
4552  else
4553    case $cross_compiling:$ac_tool_warned in
4554yes:)
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4557ac_tool_warned=yes ;;
4558esac
4559    OBJDUMP=$ac_ct_OBJDUMP
4560  fi
4561else
4562  OBJDUMP="$ac_cv_prog_OBJDUMP"
4563fi
4564
4565test -z "$OBJDUMP" && OBJDUMP=objdump
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4576$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4577if ${lt_cv_deplibs_check_method+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  lt_cv_file_magic_cmd='$MAGIC_CMD'
4581lt_cv_file_magic_test_file=
4582lt_cv_deplibs_check_method='unknown'
4583# Need to set the preceding variable on all platforms that support
4584# interlibrary dependencies.
4585# 'none' -- dependencies not supported.
4586# 'unknown' -- same as none, but documents that we really don't know.
4587# 'pass_all' -- all dependencies passed with no checks.
4588# 'test_compile' -- check by making test program.
4589# 'file_magic [[regex]]' -- check by looking for files in library path
4590# that responds to the $file_magic_cmd with a given extended regex.
4591# If you have 'file' or equivalent on your system and you're not sure
4592# whether 'pass_all' will *always* work, you probably want this one.
4593
4594case $host_os in
4595aix[4-9]*)
4596  lt_cv_deplibs_check_method=pass_all
4597  ;;
4598
4599beos*)
4600  lt_cv_deplibs_check_method=pass_all
4601  ;;
4602
4603bsdi[45]*)
4604  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4605  lt_cv_file_magic_cmd='/usr/bin/file -L'
4606  lt_cv_file_magic_test_file=/shlib/libc.so
4607  ;;
4608
4609cygwin*)
4610  # func_win32_libid is a shell function defined in ltmain.sh
4611  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4612  lt_cv_file_magic_cmd='func_win32_libid'
4613  ;;
4614
4615mingw* | pw32*)
4616  # Base MSYS/MinGW do not provide the 'file' command needed by
4617  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4618  # unless we find 'file', for example because we are cross-compiling.
4619  if ( file / ) >/dev/null 2>&1; then
4620    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4621    lt_cv_file_magic_cmd='func_win32_libid'
4622  else
4623    # Keep this pattern in sync with the one in func_win32_libid.
4624    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4625    lt_cv_file_magic_cmd='$OBJDUMP -f'
4626  fi
4627  ;;
4628
4629cegcc*)
4630  # use the weaker test based on 'objdump'. See mingw*.
4631  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4632  lt_cv_file_magic_cmd='$OBJDUMP -f'
4633  ;;
4634
4635darwin* | rhapsody*)
4636  lt_cv_deplibs_check_method=pass_all
4637  ;;
4638
4639freebsd* | dragonfly*)
4640  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4641    case $host_cpu in
4642    i*86 )
4643      # Not sure whether the presence of OpenBSD here was a mistake.
4644      # Let's accept both of them until this is cleared up.
4645      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4646      lt_cv_file_magic_cmd=/usr/bin/file
4647      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4648      ;;
4649    esac
4650  else
4651    lt_cv_deplibs_check_method=pass_all
4652  fi
4653  ;;
4654
4655haiku*)
4656  lt_cv_deplibs_check_method=pass_all
4657  ;;
4658
4659hpux10.20* | hpux11*)
4660  lt_cv_file_magic_cmd=/usr/bin/file
4661  case $host_cpu in
4662  ia64*)
4663    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4664    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4665    ;;
4666  hppa*64*)
4667    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]'
4668    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4669    ;;
4670  *)
4671    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4672    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4673    ;;
4674  esac
4675  ;;
4676
4677interix[3-9]*)
4678  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4679  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4680  ;;
4681
4682irix5* | irix6* | nonstopux*)
4683  case $LD in
4684  *-32|*"-32 ") libmagic=32-bit;;
4685  *-n32|*"-n32 ") libmagic=N32;;
4686  *-64|*"-64 ") libmagic=64-bit;;
4687  *) libmagic=never-match;;
4688  esac
4689  lt_cv_deplibs_check_method=pass_all
4690  ;;
4691
4692# This must be glibc/ELF.
4693linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4694  lt_cv_deplibs_check_method=pass_all
4695  ;;
4696
4697netbsd* | netbsdelf*-gnu)
4698  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4700  else
4701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4702  fi
4703  ;;
4704
4705newos6*)
4706  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4707  lt_cv_file_magic_cmd=/usr/bin/file
4708  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4709  ;;
4710
4711*nto* | *qnx*)
4712  lt_cv_deplibs_check_method=pass_all
4713  ;;
4714
4715openbsd* | bitrig*)
4716  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4717    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4718  else
4719    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4720  fi
4721  ;;
4722
4723osf3* | osf4* | osf5*)
4724  lt_cv_deplibs_check_method=pass_all
4725  ;;
4726
4727rdos*)
4728  lt_cv_deplibs_check_method=pass_all
4729  ;;
4730
4731solaris*)
4732  lt_cv_deplibs_check_method=pass_all
4733  ;;
4734
4735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4736  lt_cv_deplibs_check_method=pass_all
4737  ;;
4738
4739sysv4 | sysv4.3*)
4740  case $host_vendor in
4741  motorola)
4742    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]'
4743    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4744    ;;
4745  ncr)
4746    lt_cv_deplibs_check_method=pass_all
4747    ;;
4748  sequent)
4749    lt_cv_file_magic_cmd='/bin/file'
4750    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4751    ;;
4752  sni)
4753    lt_cv_file_magic_cmd='/bin/file'
4754    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4755    lt_cv_file_magic_test_file=/lib/libc.so
4756    ;;
4757  siemens)
4758    lt_cv_deplibs_check_method=pass_all
4759    ;;
4760  pc)
4761    lt_cv_deplibs_check_method=pass_all
4762    ;;
4763  esac
4764  ;;
4765
4766tpf*)
4767  lt_cv_deplibs_check_method=pass_all
4768  ;;
4769os2*)
4770  lt_cv_deplibs_check_method=pass_all
4771  ;;
4772esac
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4776$as_echo "$lt_cv_deplibs_check_method" >&6; }
4777
4778file_magic_glob=
4779want_nocaseglob=no
4780if test "$build" = "$host"; then
4781  case $host_os in
4782  mingw* | pw32*)
4783    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4784      want_nocaseglob=yes
4785    else
4786      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4787    fi
4788    ;;
4789  esac
4790fi
4791
4792file_magic_cmd=$lt_cv_file_magic_cmd
4793deplibs_check_method=$lt_cv_deplibs_check_method
4794test -z "$deplibs_check_method" && deplibs_check_method=unknown
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817if test -n "$ac_tool_prefix"; then
4818  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4819set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if ${ac_cv_prog_DLLTOOL+:} false; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  if test -n "$DLLTOOL"; then
4826  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831  IFS=$as_save_IFS
4832  test -z "$as_dir" && as_dir=.
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837    break 2
4838  fi
4839done
4840  done
4841IFS=$as_save_IFS
4842
4843fi
4844fi
4845DLLTOOL=$ac_cv_prog_DLLTOOL
4846if test -n "$DLLTOOL"; then
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4848$as_echo "$DLLTOOL" >&6; }
4849else
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855fi
4856if test -z "$ac_cv_prog_DLLTOOL"; then
4857  ac_ct_DLLTOOL=$DLLTOOL
4858  # Extract the first word of "dlltool", so it can be a program name with args.
4859set dummy dlltool; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  if test -n "$ac_ct_DLLTOOL"; then
4866  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871  IFS=$as_save_IFS
4872  test -z "$as_dir" && as_dir=.
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877    break 2
4878  fi
4879done
4880  done
4881IFS=$as_save_IFS
4882
4883fi
4884fi
4885ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4886if test -n "$ac_ct_DLLTOOL"; then
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4888$as_echo "$ac_ct_DLLTOOL" >&6; }
4889else
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
4892fi
4893
4894  if test "x$ac_ct_DLLTOOL" = x; then
4895    DLLTOOL="false"
4896  else
4897    case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903    DLLTOOL=$ac_ct_DLLTOOL
4904  fi
4905else
4906  DLLTOOL="$ac_cv_prog_DLLTOOL"
4907fi
4908
4909test -z "$DLLTOOL" && DLLTOOL=dlltool
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4921$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4922if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  lt_cv_sharedlib_from_linklib_cmd='unknown'
4926
4927case $host_os in
4928cygwin* | mingw* | pw32* | cegcc*)
4929  # two different shell functions defined in ltmain.sh;
4930  # decide which one to use based on capabilities of $DLLTOOL
4931  case `$DLLTOOL --help 2>&1` in
4932  *--identify-strict*)
4933    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4934    ;;
4935  *)
4936    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4937    ;;
4938  esac
4939  ;;
4940*)
4941  # fallback: assume linklib IS sharedlib
4942  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4943  ;;
4944esac
4945
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4948$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4949sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4950test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4951
4952
4953
4954
4955
4956
4957
4958
4959if test -n "$ac_tool_prefix"; then
4960  for ac_prog in ar
4961  do
4962    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965$as_echo_n "checking for $ac_word... " >&6; }
4966if ${ac_cv_prog_AR+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  if test -n "$AR"; then
4970  ac_cv_prog_AR="$AR" # Let the user override the test.
4971else
4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977    for ac_exec_ext in '' $ac_executable_extensions; do
4978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981    break 2
4982  fi
4983done
4984  done
4985IFS=$as_save_IFS
4986
4987fi
4988fi
4989AR=$ac_cv_prog_AR
4990if test -n "$AR"; then
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4992$as_echo "$AR" >&6; }
4993else
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995$as_echo "no" >&6; }
4996fi
4997
4998
4999    test -n "$AR" && break
5000  done
5001fi
5002if test -z "$AR"; then
5003  ac_ct_AR=$AR
5004  for ac_prog in ar
5005do
5006  # Extract the first word of "$ac_prog", so it can be a program name with args.
5007set dummy $ac_prog; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_ac_ct_AR+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$ac_ct_AR"; then
5014  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021    for ac_exec_ext in '' $ac_executable_extensions; do
5022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_prog_ac_ct_AR="$ac_prog"
5024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028  done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033ac_ct_AR=$ac_cv_prog_ac_ct_AR
5034if test -n "$ac_ct_AR"; then
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5036$as_echo "$ac_ct_AR" >&6; }
5037else
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042
5043  test -n "$ac_ct_AR" && break
5044done
5045
5046  if test "x$ac_ct_AR" = x; then
5047    AR="false"
5048  else
5049    case $cross_compiling:$ac_tool_warned in
5050yes:)
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5053ac_tool_warned=yes ;;
5054esac
5055    AR=$ac_ct_AR
5056  fi
5057fi
5058
5059: ${AR=ar}
5060: ${AR_FLAGS=cr}
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5073$as_echo_n "checking for archiver @FILE support... " >&6; }
5074if ${lt_cv_ar_at_file+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  lt_cv_ar_at_file=no
5078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h.  */
5080
5081int
5082main ()
5083{
5084
5085  ;
5086  return 0;
5087}
5088_ACEOF
5089if ac_fn_c_try_compile "$LINENO"; then :
5090  echo conftest.$ac_objext > conftest.lst
5091      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5092      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5093  (eval $lt_ar_try) 2>&5
5094  ac_status=$?
5095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096  test $ac_status = 0; }
5097      if test 0 -eq "$ac_status"; then
5098	# Ensure the archiver fails upon bogus file names.
5099	rm -f conftest.$ac_objext libconftest.a
5100	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5101  (eval $lt_ar_try) 2>&5
5102  ac_status=$?
5103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104  test $ac_status = 0; }
5105	if test 0 -ne "$ac_status"; then
5106          lt_cv_ar_at_file=@
5107        fi
5108      fi
5109      rm -f conftest.* libconftest.a
5110
5111fi
5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5116$as_echo "$lt_cv_ar_at_file" >&6; }
5117
5118if test no = "$lt_cv_ar_at_file"; then
5119  archiver_list_spec=
5120else
5121  archiver_list_spec=$lt_cv_ar_at_file
5122fi
5123
5124
5125
5126
5127
5128
5129
5130if test -n "$ac_tool_prefix"; then
5131  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}strip; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if ${ac_cv_prog_STRIP+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -n "$STRIP"; then
5139  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153  done
5154IFS=$as_save_IFS
5155
5156fi
5157fi
5158STRIP=$ac_cv_prog_STRIP
5159if test -n "$STRIP"; then
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5161$as_echo "$STRIP" >&6; }
5162else
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165fi
5166
5167
5168fi
5169if test -z "$ac_cv_prog_STRIP"; then
5170  ac_ct_STRIP=$STRIP
5171  # Extract the first word of "strip", so it can be a program name with args.
5172set dummy strip; ac_word=$2
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174$as_echo_n "checking for $ac_word... " >&6; }
5175if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  if test -n "$ac_ct_STRIP"; then
5179  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5180else
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_ac_ct_STRIP="strip"
5189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5199if test -n "$ac_ct_STRIP"; then
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5201$as_echo "$ac_ct_STRIP" >&6; }
5202else
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204$as_echo "no" >&6; }
5205fi
5206
5207  if test "x$ac_ct_STRIP" = x; then
5208    STRIP=":"
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    STRIP=$ac_ct_STRIP
5217  fi
5218else
5219  STRIP="$ac_cv_prog_STRIP"
5220fi
5221
5222test -z "$STRIP" && STRIP=:
5223
5224
5225
5226
5227
5228
5229if test -n "$ac_tool_prefix"; then
5230  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5231set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
5234if ${ac_cv_prog_RANLIB+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  if test -n "$RANLIB"; then
5238  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  test -z "$as_dir" && as_dir=.
5245    for ac_exec_ext in '' $ac_executable_extensions; do
5246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249    break 2
5250  fi
5251done
5252  done
5253IFS=$as_save_IFS
5254
5255fi
5256fi
5257RANLIB=$ac_cv_prog_RANLIB
5258if test -n "$RANLIB"; then
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5260$as_echo "$RANLIB" >&6; }
5261else
5262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
5264fi
5265
5266
5267fi
5268if test -z "$ac_cv_prog_RANLIB"; then
5269  ac_ct_RANLIB=$RANLIB
5270  # Extract the first word of "ranlib", so it can be a program name with args.
5271set dummy ranlib; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5275  $as_echo_n "(cached) " >&6
5276else
5277  if test -n "$ac_ct_RANLIB"; then
5278  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  test -z "$as_dir" && as_dir=.
5285    for ac_exec_ext in '' $ac_executable_extensions; do
5286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287    ac_cv_prog_ac_ct_RANLIB="ranlib"
5288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289    break 2
5290  fi
5291done
5292  done
5293IFS=$as_save_IFS
5294
5295fi
5296fi
5297ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5298if test -n "$ac_ct_RANLIB"; then
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5300$as_echo "$ac_ct_RANLIB" >&6; }
5301else
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306  if test "x$ac_ct_RANLIB" = x; then
5307    RANLIB=":"
5308  else
5309    case $cross_compiling:$ac_tool_warned in
5310yes:)
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313ac_tool_warned=yes ;;
5314esac
5315    RANLIB=$ac_ct_RANLIB
5316  fi
5317else
5318  RANLIB="$ac_cv_prog_RANLIB"
5319fi
5320
5321test -z "$RANLIB" && RANLIB=:
5322
5323
5324
5325
5326
5327
5328# Determine commands to create old-style static archives.
5329old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5330old_postinstall_cmds='chmod 644 $oldlib'
5331old_postuninstall_cmds=
5332
5333if test -n "$RANLIB"; then
5334  case $host_os in
5335  bitrig* | openbsd*)
5336    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5337    ;;
5338  *)
5339    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5340    ;;
5341  esac
5342  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5343fi
5344
5345case $host_os in
5346  darwin*)
5347    lock_old_archive_extraction=yes ;;
5348  *)
5349    lock_old_archive_extraction=no ;;
5350esac
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372for ac_prog in gawk mawk nawk awk
5373do
5374  # Extract the first word of "$ac_prog", so it can be a program name with args.
5375set dummy $ac_prog; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
5378if ${ac_cv_prog_AWK+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  if test -n "$AWK"; then
5382  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387  IFS=$as_save_IFS
5388  test -z "$as_dir" && as_dir=.
5389    for ac_exec_ext in '' $ac_executable_extensions; do
5390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391    ac_cv_prog_AWK="$ac_prog"
5392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393    break 2
5394  fi
5395done
5396  done
5397IFS=$as_save_IFS
5398
5399fi
5400fi
5401AWK=$ac_cv_prog_AWK
5402if test -n "$AWK"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5404$as_echo "$AWK" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410
5411  test -n "$AWK" && break
5412done
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432# If no C compiler was specified, use CC.
5433LTCC=${LTCC-"$CC"}
5434
5435# If no C compiler flags were specified, use CFLAGS.
5436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5437
5438# Allow CC to be a program name with arguments.
5439compiler=$CC
5440
5441
5442# Check for command to grab the raw symbol name followed by C symbol from nm.
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5444$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5445if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448
5449# These are sane defaults that work on at least a few old systems.
5450# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5451
5452# Character class describing NM global symbol codes.
5453symcode='[BCDEGRST]'
5454
5455# Regexp to match symbols that can be accessed directly from C.
5456sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5457
5458# Define system-specific variables.
5459case $host_os in
5460aix*)
5461  symcode='[BCDT]'
5462  ;;
5463cygwin* | mingw* | pw32* | cegcc*)
5464  symcode='[ABCDGISTW]'
5465  ;;
5466hpux*)
5467  if test ia64 = "$host_cpu"; then
5468    symcode='[ABCDEGRST]'
5469  fi
5470  ;;
5471irix* | nonstopux*)
5472  symcode='[BCDEGRST]'
5473  ;;
5474osf*)
5475  symcode='[BCDEGQRST]'
5476  ;;
5477solaris*)
5478  symcode='[BDRT]'
5479  ;;
5480sco3.2v5*)
5481  symcode='[DT]'
5482  ;;
5483sysv4.2uw2*)
5484  symcode='[DT]'
5485  ;;
5486sysv5* | sco5v6* | unixware* | OpenUNIX*)
5487  symcode='[ABDT]'
5488  ;;
5489sysv4)
5490  symcode='[DFNSTU]'
5491  ;;
5492esac
5493
5494# If we're using GNU nm, then use its standard symbol codes.
5495case `$NM -V 2>&1` in
5496*GNU* | *'with BFD'*)
5497  symcode='[ABCDGIRSTW]' ;;
5498esac
5499
5500if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5501  # Gets list of data symbols to import.
5502  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5503  # Adjust the below global symbol transforms to fixup imported variables.
5504  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5505  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5506  lt_c_name_lib_hook="\
5507  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5508  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5509else
5510  # Disable hooks by default.
5511  lt_cv_sys_global_symbol_to_import=
5512  lt_cdecl_hook=
5513  lt_c_name_hook=
5514  lt_c_name_lib_hook=
5515fi
5516
5517# Transform an extracted symbol line into a proper C declaration.
5518# Some systems (esp. on ia64) link data and code symbols differently,
5519# so use this general approach.
5520lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5521$lt_cdecl_hook\
5522" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5523" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5524
5525# Transform an extracted symbol line into symbol name and symbol address
5526lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5527$lt_c_name_hook\
5528" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5529" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5530
5531# Transform an extracted symbol line into symbol name with lib prefix and
5532# symbol address.
5533lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5534$lt_c_name_lib_hook\
5535" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5536" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5537" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5538
5539# Handle CRLF in mingw tool chain
5540opt_cr=
5541case $build_os in
5542mingw*)
5543  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5544  ;;
5545esac
5546
5547# Try without a prefix underscore, then with it.
5548for ac_symprfx in "" "_"; do
5549
5550  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5551  symxfrm="\\1 $ac_symprfx\\2 \\2"
5552
5553  # Write the raw and C identifiers.
5554  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5555    # Fake it for dumpbin and say T for any non-static function,
5556    # D for any global variable and I for any imported variable.
5557    # Also find C++ and __fastcall symbols from MSVC++,
5558    # which start with @ or ?.
5559    lt_cv_sys_global_symbol_pipe="$AWK '"\
5560"     {last_section=section; section=\$ 3};"\
5561"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5562"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5563"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5564"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5565"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5566"     \$ 0!~/External *\|/{next};"\
5567"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5568"     {if(hide[section]) next};"\
5569"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5570"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5571"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5572"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5573"     ' prfx=^$ac_symprfx"
5574  else
5575    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5576  fi
5577  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5578
5579  # Check to see that the pipe works correctly.
5580  pipe_works=no
5581
5582  rm -f conftest*
5583  cat > conftest.$ac_ext <<_LT_EOF
5584#ifdef __cplusplus
5585extern "C" {
5586#endif
5587char nm_test_var;
5588void nm_test_func(void);
5589void nm_test_func(void){}
5590#ifdef __cplusplus
5591}
5592#endif
5593int main(){nm_test_var='a';nm_test_func();return(0);}
5594_LT_EOF
5595
5596  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5597  (eval $ac_compile) 2>&5
5598  ac_status=$?
5599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600  test $ac_status = 0; }; then
5601    # Now try to grab the symbols.
5602    nlist=conftest.nm
5603    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5604    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5605      # Try sorting and uniquifying the output.
5606      if sort "$nlist" | uniq > "$nlist"T; then
5607	mv -f "$nlist"T "$nlist"
5608      else
5609	rm -f "$nlist"T
5610      fi
5611
5612      # Make sure that we snagged all the symbols we need.
5613      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5614	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5615	  cat <<_LT_EOF > conftest.$ac_ext
5616/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5617#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5618/* DATA imports from DLLs on WIN32 can't be const, because runtime
5619   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5620# define LT_DLSYM_CONST
5621#elif defined __osf__
5622/* This system does not cope well with relocations in const data.  */
5623# define LT_DLSYM_CONST
5624#else
5625# define LT_DLSYM_CONST const
5626#endif
5627
5628#ifdef __cplusplus
5629extern "C" {
5630#endif
5631
5632_LT_EOF
5633	  # Now generate the symbol file.
5634	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5635
5636	  cat <<_LT_EOF >> conftest.$ac_ext
5637
5638/* The mapping between symbol names and symbols.  */
5639LT_DLSYM_CONST struct {
5640  const char *name;
5641  void       *address;
5642}
5643lt__PROGRAM__LTX_preloaded_symbols[] =
5644{
5645  { "@PROGRAM@", (void *) 0 },
5646_LT_EOF
5647	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5648	  cat <<\_LT_EOF >> conftest.$ac_ext
5649  {0, (void *) 0}
5650};
5651
5652/* This works around a problem in FreeBSD linker */
5653#ifdef FREEBSD_WORKAROUND
5654static const void *lt_preloaded_setup() {
5655  return lt__PROGRAM__LTX_preloaded_symbols;
5656}
5657#endif
5658
5659#ifdef __cplusplus
5660}
5661#endif
5662_LT_EOF
5663	  # Now try linking the two files.
5664	  mv conftest.$ac_objext conftstm.$ac_objext
5665	  lt_globsym_save_LIBS=$LIBS
5666	  lt_globsym_save_CFLAGS=$CFLAGS
5667	  LIBS=conftstm.$ac_objext
5668	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5669	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5670  (eval $ac_link) 2>&5
5671  ac_status=$?
5672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5674	    pipe_works=yes
5675	  fi
5676	  LIBS=$lt_globsym_save_LIBS
5677	  CFLAGS=$lt_globsym_save_CFLAGS
5678	else
5679	  echo "cannot find nm_test_func in $nlist" >&5
5680	fi
5681      else
5682	echo "cannot find nm_test_var in $nlist" >&5
5683      fi
5684    else
5685      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5686    fi
5687  else
5688    echo "$progname: failed program was:" >&5
5689    cat conftest.$ac_ext >&5
5690  fi
5691  rm -rf conftest* conftst*
5692
5693  # Do not use the global_symbol_pipe unless it works.
5694  if test yes = "$pipe_works"; then
5695    break
5696  else
5697    lt_cv_sys_global_symbol_pipe=
5698  fi
5699done
5700
5701fi
5702
5703if test -z "$lt_cv_sys_global_symbol_pipe"; then
5704  lt_cv_sys_global_symbol_to_cdecl=
5705fi
5706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5708$as_echo "failed" >&6; }
5709else
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5711$as_echo "ok" >&6; }
5712fi
5713
5714# Response file support.
5715if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5716  nm_file_list_spec='@'
5717elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5718  nm_file_list_spec='@'
5719fi
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5758$as_echo_n "checking for sysroot... " >&6; }
5759
5760# Check whether --with-sysroot was given.
5761if test "${with_sysroot+set}" = set; then :
5762  withval=$with_sysroot;
5763else
5764  with_sysroot=no
5765fi
5766
5767
5768lt_sysroot=
5769case $with_sysroot in #(
5770 yes)
5771   if test yes = "$GCC"; then
5772     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5773   fi
5774   ;; #(
5775 /*)
5776   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5777   ;; #(
5778 no|'')
5779   ;; #(
5780 *)
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5782$as_echo "$with_sysroot" >&6; }
5783   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5784   ;;
5785esac
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5788$as_echo "${lt_sysroot:-no}" >&6; }
5789
5790
5791
5792
5793
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5795$as_echo_n "checking for a working dd... " >&6; }
5796if ${ac_cv_path_lt_DD+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  printf 0123456789abcdef0123456789abcdef >conftest.i
5800cat conftest.i conftest.i >conftest2.i
5801: ${lt_DD:=$DD}
5802if test -z "$lt_DD"; then
5803  ac_path_lt_DD_found=false
5804  # Loop through the user's path and test for each of PROGNAME-LIST
5805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810    for ac_prog in dd; do
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5813      as_fn_executable_p "$ac_path_lt_DD" || continue
5814if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5815  cmp -s conftest.i conftest.out \
5816  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5817fi
5818      $ac_path_lt_DD_found && break 3
5819    done
5820  done
5821  done
5822IFS=$as_save_IFS
5823  if test -z "$ac_cv_path_lt_DD"; then
5824    :
5825  fi
5826else
5827  ac_cv_path_lt_DD=$lt_DD
5828fi
5829
5830rm -f conftest.i conftest2.i conftest.out
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5833$as_echo "$ac_cv_path_lt_DD" >&6; }
5834
5835
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5837$as_echo_n "checking how to truncate binary pipes... " >&6; }
5838if ${lt_cv_truncate_bin+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  printf 0123456789abcdef0123456789abcdef >conftest.i
5842cat conftest.i conftest.i >conftest2.i
5843lt_cv_truncate_bin=
5844if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5845  cmp -s conftest.i conftest.out \
5846  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5847fi
5848rm -f conftest.i conftest2.i conftest.out
5849test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5852$as_echo "$lt_cv_truncate_bin" >&6; }
5853
5854
5855
5856
5857
5858
5859
5860# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5861func_cc_basename ()
5862{
5863    for cc_temp in $*""; do
5864      case $cc_temp in
5865        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5866        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5867        \-*) ;;
5868        *) break;;
5869      esac
5870    done
5871    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5872}
5873
5874# Check whether --enable-libtool-lock was given.
5875if test "${enable_libtool_lock+set}" = set; then :
5876  enableval=$enable_libtool_lock;
5877fi
5878
5879test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5880
5881# Some flags need to be propagated to the compiler or linker for good
5882# libtool support.
5883case $host in
5884ia64-*-hpux*)
5885  # Find out what ABI is being produced by ac_compile, and set mode
5886  # options accordingly.
5887  echo 'int i;' > conftest.$ac_ext
5888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889  (eval $ac_compile) 2>&5
5890  ac_status=$?
5891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892  test $ac_status = 0; }; then
5893    case `/usr/bin/file conftest.$ac_objext` in
5894      *ELF-32*)
5895	HPUX_IA64_MODE=32
5896	;;
5897      *ELF-64*)
5898	HPUX_IA64_MODE=64
5899	;;
5900    esac
5901  fi
5902  rm -rf conftest*
5903  ;;
5904*-*-irix6*)
5905  # Find out what ABI is being produced by ac_compile, and set linker
5906  # options accordingly.
5907  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5909  (eval $ac_compile) 2>&5
5910  ac_status=$?
5911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912  test $ac_status = 0; }; then
5913    if test yes = "$lt_cv_prog_gnu_ld"; then
5914      case `/usr/bin/file conftest.$ac_objext` in
5915	*32-bit*)
5916	  LD="${LD-ld} -melf32bsmip"
5917	  ;;
5918	*N32*)
5919	  LD="${LD-ld} -melf32bmipn32"
5920	  ;;
5921	*64-bit*)
5922	  LD="${LD-ld} -melf64bmip"
5923	;;
5924      esac
5925    else
5926      case `/usr/bin/file conftest.$ac_objext` in
5927	*32-bit*)
5928	  LD="${LD-ld} -32"
5929	  ;;
5930	*N32*)
5931	  LD="${LD-ld} -n32"
5932	  ;;
5933	*64-bit*)
5934	  LD="${LD-ld} -64"
5935	  ;;
5936      esac
5937    fi
5938  fi
5939  rm -rf conftest*
5940  ;;
5941
5942mips64*-*linux*)
5943  # Find out what ABI is being produced by ac_compile, and set linker
5944  # options accordingly.
5945  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5947  (eval $ac_compile) 2>&5
5948  ac_status=$?
5949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950  test $ac_status = 0; }; then
5951    emul=elf
5952    case `/usr/bin/file conftest.$ac_objext` in
5953      *32-bit*)
5954	emul="${emul}32"
5955	;;
5956      *64-bit*)
5957	emul="${emul}64"
5958	;;
5959    esac
5960    case `/usr/bin/file conftest.$ac_objext` in
5961      *MSB*)
5962	emul="${emul}btsmip"
5963	;;
5964      *LSB*)
5965	emul="${emul}ltsmip"
5966	;;
5967    esac
5968    case `/usr/bin/file conftest.$ac_objext` in
5969      *N32*)
5970	emul="${emul}n32"
5971	;;
5972    esac
5973    LD="${LD-ld} -m $emul"
5974  fi
5975  rm -rf conftest*
5976  ;;
5977
5978x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5979s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5980  # Find out what ABI is being produced by ac_compile, and set linker
5981  # options accordingly.  Note that the listed cases only cover the
5982  # situations where additional linker options are needed (such as when
5983  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5984  # vice versa); the common cases where no linker options are needed do
5985  # not appear in the list.
5986  echo 'int i;' > conftest.$ac_ext
5987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5988  (eval $ac_compile) 2>&5
5989  ac_status=$?
5990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991  test $ac_status = 0; }; then
5992    case `/usr/bin/file conftest.o` in
5993      *32-bit*)
5994	case $host in
5995	  x86_64-*kfreebsd*-gnu)
5996	    LD="${LD-ld} -m elf_i386_fbsd"
5997	    ;;
5998	  x86_64-*linux*)
5999	    case `/usr/bin/file conftest.o` in
6000	      *x86-64*)
6001		LD="${LD-ld} -m elf32_x86_64"
6002		;;
6003	      *)
6004		LD="${LD-ld} -m elf_i386"
6005		;;
6006	    esac
6007	    ;;
6008	  powerpc64le-*linux*)
6009	    LD="${LD-ld} -m elf32lppclinux"
6010	    ;;
6011	  powerpc64-*linux*)
6012	    LD="${LD-ld} -m elf32ppclinux"
6013	    ;;
6014	  s390x-*linux*)
6015	    LD="${LD-ld} -m elf_s390"
6016	    ;;
6017	  sparc64-*linux*)
6018	    LD="${LD-ld} -m elf32_sparc"
6019	    ;;
6020	esac
6021	;;
6022      *64-bit*)
6023	case $host in
6024	  x86_64-*kfreebsd*-gnu)
6025	    LD="${LD-ld} -m elf_x86_64_fbsd"
6026	    ;;
6027	  x86_64-*linux*)
6028	    LD="${LD-ld} -m elf_x86_64"
6029	    ;;
6030	  powerpcle-*linux*)
6031	    LD="${LD-ld} -m elf64lppc"
6032	    ;;
6033	  powerpc-*linux*)
6034	    LD="${LD-ld} -m elf64ppc"
6035	    ;;
6036	  s390*-*linux*|s390*-*tpf*)
6037	    LD="${LD-ld} -m elf64_s390"
6038	    ;;
6039	  sparc*-*linux*)
6040	    LD="${LD-ld} -m elf64_sparc"
6041	    ;;
6042	esac
6043	;;
6044    esac
6045  fi
6046  rm -rf conftest*
6047  ;;
6048
6049*-*-sco3.2v5*)
6050  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6051  SAVE_CFLAGS=$CFLAGS
6052  CFLAGS="$CFLAGS -belf"
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6054$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6055if ${lt_cv_cc_needs_belf+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  ac_ext=c
6059ac_cpp='$CPP $CPPFLAGS'
6060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063
6064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066
6067int
6068main ()
6069{
6070
6071  ;
6072  return 0;
6073}
6074_ACEOF
6075if ac_fn_c_try_link "$LINENO"; then :
6076  lt_cv_cc_needs_belf=yes
6077else
6078  lt_cv_cc_needs_belf=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext \
6081    conftest$ac_exeext conftest.$ac_ext
6082     ac_ext=c
6083ac_cpp='$CPP $CPPFLAGS'
6084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087
6088fi
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6090$as_echo "$lt_cv_cc_needs_belf" >&6; }
6091  if test yes != "$lt_cv_cc_needs_belf"; then
6092    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6093    CFLAGS=$SAVE_CFLAGS
6094  fi
6095  ;;
6096*-*solaris*)
6097  # Find out what ABI is being produced by ac_compile, and set linker
6098  # options accordingly.
6099  echo 'int i;' > conftest.$ac_ext
6100  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101  (eval $ac_compile) 2>&5
6102  ac_status=$?
6103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104  test $ac_status = 0; }; then
6105    case `/usr/bin/file conftest.o` in
6106    *64-bit*)
6107      case $lt_cv_prog_gnu_ld in
6108      yes*)
6109        case $host in
6110        i?86-*-solaris*|x86_64-*-solaris*)
6111          LD="${LD-ld} -m elf_x86_64"
6112          ;;
6113        sparc*-*-solaris*)
6114          LD="${LD-ld} -m elf64_sparc"
6115          ;;
6116        esac
6117        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6118        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6119          LD=${LD-ld}_sol2
6120        fi
6121        ;;
6122      *)
6123	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6124	  LD="${LD-ld} -64"
6125	fi
6126	;;
6127      esac
6128      ;;
6129    esac
6130  fi
6131  rm -rf conftest*
6132  ;;
6133esac
6134
6135need_locks=$enable_libtool_lock
6136
6137if test -n "$ac_tool_prefix"; then
6138  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}mt; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  if test -n "$MANIFEST_TOOL"; then
6146  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153    for ac_exec_ext in '' $ac_executable_extensions; do
6154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160  done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6166if test -n "$MANIFEST_TOOL"; then
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6168$as_echo "$MANIFEST_TOOL" >&6; }
6169else
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6177  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6178  # Extract the first word of "mt", so it can be a program name with args.
6179set dummy mt; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$ac_ct_MANIFEST_TOOL"; then
6186  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6206if test -n "$ac_ct_MANIFEST_TOOL"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6208$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6215    MANIFEST_TOOL=":"
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6224  fi
6225else
6226  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6227fi
6228
6229test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6231$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6232if ${lt_cv_path_mainfest_tool+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  lt_cv_path_mainfest_tool=no
6236  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6237  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6238  cat conftest.err >&5
6239  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6240    lt_cv_path_mainfest_tool=yes
6241  fi
6242  rm -f conftest*
6243fi
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6245$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6246if test yes != "$lt_cv_path_mainfest_tool"; then
6247  MANIFEST_TOOL=:
6248fi
6249
6250
6251
6252
6253
6254
6255  case $host_os in
6256    rhapsody* | darwin*)
6257    if test -n "$ac_tool_prefix"; then
6258  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261$as_echo_n "checking for $ac_word... " >&6; }
6262if ${ac_cv_prog_DSYMUTIL+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  if test -n "$DSYMUTIL"; then
6266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6267else
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271  IFS=$as_save_IFS
6272  test -z "$as_dir" && as_dir=.
6273    for ac_exec_ext in '' $ac_executable_extensions; do
6274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277    break 2
6278  fi
6279done
6280  done
6281IFS=$as_save_IFS
6282
6283fi
6284fi
6285DSYMUTIL=$ac_cv_prog_DSYMUTIL
6286if test -n "$DSYMUTIL"; then
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6288$as_echo "$DSYMUTIL" >&6; }
6289else
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291$as_echo "no" >&6; }
6292fi
6293
6294
6295fi
6296if test -z "$ac_cv_prog_DSYMUTIL"; then
6297  ac_ct_DSYMUTIL=$DSYMUTIL
6298  # Extract the first word of "dsymutil", so it can be a program name with args.
6299set dummy dsymutil; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  if test -n "$ac_ct_DSYMUTIL"; then
6306  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313    for ac_exec_ext in '' $ac_executable_extensions; do
6314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320  done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6326if test -n "$ac_ct_DSYMUTIL"; then
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6328$as_echo "$ac_ct_DSYMUTIL" >&6; }
6329else
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
6333
6334  if test "x$ac_ct_DSYMUTIL" = x; then
6335    DSYMUTIL=":"
6336  else
6337    case $cross_compiling:$ac_tool_warned in
6338yes:)
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341ac_tool_warned=yes ;;
6342esac
6343    DSYMUTIL=$ac_ct_DSYMUTIL
6344  fi
6345else
6346  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6347fi
6348
6349    if test -n "$ac_tool_prefix"; then
6350  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_prog_NMEDIT+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$NMEDIT"; then
6358  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377NMEDIT=$ac_cv_prog_NMEDIT
6378if test -n "$NMEDIT"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6380$as_echo "$NMEDIT" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386
6387fi
6388if test -z "$ac_cv_prog_NMEDIT"; then
6389  ac_ct_NMEDIT=$NMEDIT
6390  # Extract the first word of "nmedit", so it can be a program name with args.
6391set dummy nmedit; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_NMEDIT"; then
6398  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405    for ac_exec_ext in '' $ac_executable_extensions; do
6406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412  done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6418if test -n "$ac_ct_NMEDIT"; then
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6420$as_echo "$ac_ct_NMEDIT" >&6; }
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426  if test "x$ac_ct_NMEDIT" = x; then
6427    NMEDIT=":"
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435    NMEDIT=$ac_ct_NMEDIT
6436  fi
6437else
6438  NMEDIT="$ac_cv_prog_NMEDIT"
6439fi
6440
6441    if test -n "$ac_tool_prefix"; then
6442  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6443set dummy ${ac_tool_prefix}lipo; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if ${ac_cv_prog_LIPO+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$LIPO"; then
6450  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457    for ac_exec_ext in '' $ac_executable_extensions; do
6458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464  done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469LIPO=$ac_cv_prog_LIPO
6470if test -n "$LIPO"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6472$as_echo "$LIPO" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479fi
6480if test -z "$ac_cv_prog_LIPO"; then
6481  ac_ct_LIPO=$LIPO
6482  # Extract the first word of "lipo", so it can be a program name with args.
6483set dummy lipo; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
6486if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  if test -n "$ac_ct_LIPO"; then
6490  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495  IFS=$as_save_IFS
6496  test -z "$as_dir" && as_dir=.
6497    for ac_exec_ext in '' $ac_executable_extensions; do
6498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499    ac_cv_prog_ac_ct_LIPO="lipo"
6500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501    break 2
6502  fi
6503done
6504  done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6510if test -n "$ac_ct_LIPO"; then
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6512$as_echo "$ac_ct_LIPO" >&6; }
6513else
6514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518  if test "x$ac_ct_LIPO" = x; then
6519    LIPO=":"
6520  else
6521    case $cross_compiling:$ac_tool_warned in
6522yes:)
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525ac_tool_warned=yes ;;
6526esac
6527    LIPO=$ac_ct_LIPO
6528  fi
6529else
6530  LIPO="$ac_cv_prog_LIPO"
6531fi
6532
6533    if test -n "$ac_tool_prefix"; then
6534  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6535set dummy ${ac_tool_prefix}otool; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_prog_OTOOL+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$OTOOL"; then
6542  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561OTOOL=$ac_cv_prog_OTOOL
6562if test -n "$OTOOL"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6564$as_echo "$OTOOL" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570
6571fi
6572if test -z "$ac_cv_prog_OTOOL"; then
6573  ac_ct_OTOOL=$OTOOL
6574  # Extract the first word of "otool", so it can be a program name with args.
6575set dummy otool; ac_word=$2
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$ac_ct_OTOOL"; then
6582  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589    for ac_exec_ext in '' $ac_executable_extensions; do
6590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591    ac_cv_prog_ac_ct_OTOOL="otool"
6592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596  done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6602if test -n "$ac_ct_OTOOL"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6604$as_echo "$ac_ct_OTOOL" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610  if test "x$ac_ct_OTOOL" = x; then
6611    OTOOL=":"
6612  else
6613    case $cross_compiling:$ac_tool_warned in
6614yes:)
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617ac_tool_warned=yes ;;
6618esac
6619    OTOOL=$ac_ct_OTOOL
6620  fi
6621else
6622  OTOOL="$ac_cv_prog_OTOOL"
6623fi
6624
6625    if test -n "$ac_tool_prefix"; then
6626  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}otool64; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if ${ac_cv_prog_OTOOL64+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$OTOOL64"; then
6634  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641    for ac_exec_ext in '' $ac_executable_extensions; do
6642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648  done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653OTOOL64=$ac_cv_prog_OTOOL64
6654if test -n "$OTOOL64"; then
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6656$as_echo "$OTOOL64" >&6; }
6657else
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_OTOOL64"; then
6665  ac_ct_OTOOL64=$OTOOL64
6666  # Extract the first word of "otool64", so it can be a program name with args.
6667set dummy otool64; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$ac_ct_OTOOL64"; then
6674  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_ac_ct_OTOOL64="otool64"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6694if test -n "$ac_ct_OTOOL64"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6696$as_echo "$ac_ct_OTOOL64" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702  if test "x$ac_ct_OTOOL64" = x; then
6703    OTOOL64=":"
6704  else
6705    case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711    OTOOL64=$ac_ct_OTOOL64
6712  fi
6713else
6714  OTOOL64="$ac_cv_prog_OTOOL64"
6715fi
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6744$as_echo_n "checking for -single_module linker flag... " >&6; }
6745if ${lt_cv_apple_cc_single_mod+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  lt_cv_apple_cc_single_mod=no
6749      if test -z "$LT_MULTI_MODULE"; then
6750	# By default we will add the -single_module flag. You can override
6751	# by either setting the environment variable LT_MULTI_MODULE
6752	# non-empty at configure time, or by adding -multi_module to the
6753	# link flags.
6754	rm -rf libconftest.dylib*
6755	echo "int foo(void){return 1;}" > conftest.c
6756	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6757-dynamiclib -Wl,-single_module conftest.c" >&5
6758	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6759	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6760        _lt_result=$?
6761	# If there is a non-empty error log, and "single_module"
6762	# appears in it, assume the flag caused a linker warning
6763        if test -s conftest.err && $GREP single_module conftest.err; then
6764	  cat conftest.err >&5
6765	# Otherwise, if the output was created with a 0 exit code from
6766	# the compiler, it worked.
6767	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6768	  lt_cv_apple_cc_single_mod=yes
6769	else
6770	  cat conftest.err >&5
6771	fi
6772	rm -rf libconftest.dylib*
6773	rm -f conftest.*
6774      fi
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6777$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6778
6779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6780$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6781if ${lt_cv_ld_exported_symbols_list+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  lt_cv_ld_exported_symbols_list=no
6785      save_LDFLAGS=$LDFLAGS
6786      echo "_main" > conftest.sym
6787      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6788      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790
6791int
6792main ()
6793{
6794
6795  ;
6796  return 0;
6797}
6798_ACEOF
6799if ac_fn_c_try_link "$LINENO"; then :
6800  lt_cv_ld_exported_symbols_list=yes
6801else
6802  lt_cv_ld_exported_symbols_list=no
6803fi
6804rm -f core conftest.err conftest.$ac_objext \
6805    conftest$ac_exeext conftest.$ac_ext
6806	LDFLAGS=$save_LDFLAGS
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6810$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6811
6812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6813$as_echo_n "checking for -force_load linker flag... " >&6; }
6814if ${lt_cv_ld_force_load+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  lt_cv_ld_force_load=no
6818      cat > conftest.c << _LT_EOF
6819int forced_loaded() { return 2;}
6820_LT_EOF
6821      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6822      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6823      echo "$AR cr libconftest.a conftest.o" >&5
6824      $AR cr libconftest.a conftest.o 2>&5
6825      echo "$RANLIB libconftest.a" >&5
6826      $RANLIB libconftest.a 2>&5
6827      cat > conftest.c << _LT_EOF
6828int main() { return 0;}
6829_LT_EOF
6830      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6831      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6832      _lt_result=$?
6833      if test -s conftest.err && $GREP force_load conftest.err; then
6834	cat conftest.err >&5
6835      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6836	lt_cv_ld_force_load=yes
6837      else
6838	cat conftest.err >&5
6839      fi
6840        rm -f conftest.err libconftest.a conftest conftest.c
6841        rm -rf conftest.dSYM
6842
6843fi
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6845$as_echo "$lt_cv_ld_force_load" >&6; }
6846    case $host_os in
6847    rhapsody* | darwin1.[012])
6848      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6849    darwin1.*)
6850      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6851    darwin*) # darwin 5.x on
6852      # if running on 10.5 or later, the deployment target defaults
6853      # to the OS version, if on x86, and 10.4, the deployment
6854      # target defaults to 10.4. Don't you love it?
6855      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6856	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
6857	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6858	10.[012][,.]*)
6859	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6860	10.*|11.*)
6861	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6862      esac
6863    ;;
6864  esac
6865    if test yes = "$lt_cv_apple_cc_single_mod"; then
6866      _lt_dar_single_mod='$single_module'
6867    fi
6868    if test yes = "$lt_cv_ld_exported_symbols_list"; then
6869      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6870    else
6871      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6872    fi
6873    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6874      _lt_dsymutil='~$DSYMUTIL $lib || :'
6875    else
6876      _lt_dsymutil=
6877    fi
6878    ;;
6879  esac
6880
6881# func_munge_path_list VARIABLE PATH
6882# -----------------------------------
6883# VARIABLE is name of variable containing _space_ separated list of
6884# directories to be munged by the contents of PATH, which is string
6885# having a format:
6886# "DIR[:DIR]:"
6887#       string "DIR[ DIR]" will be prepended to VARIABLE
6888# ":DIR[:DIR]"
6889#       string "DIR[ DIR]" will be appended to VARIABLE
6890# "DIRP[:DIRP]::[DIRA:]DIRA"
6891#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6892#       "DIRA[ DIRA]" will be appended to VARIABLE
6893# "DIR[:DIR]"
6894#       VARIABLE will be replaced by "DIR[ DIR]"
6895func_munge_path_list ()
6896{
6897    case x$2 in
6898    x)
6899        ;;
6900    *:)
6901        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6902        ;;
6903    x:*)
6904        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6905        ;;
6906    *::*)
6907        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6908        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6909        ;;
6910    *)
6911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6912        ;;
6913    esac
6914}
6915
6916ac_ext=c
6917ac_cpp='$CPP $CPPFLAGS'
6918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6922$as_echo_n "checking how to run the C preprocessor... " >&6; }
6923# On Suns, sometimes $CPP names a directory.
6924if test -n "$CPP" && test -d "$CPP"; then
6925  CPP=
6926fi
6927if test -z "$CPP"; then
6928  if ${ac_cv_prog_CPP+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931      # Double quotes because CPP needs to be expanded
6932    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6933    do
6934      ac_preproc_ok=false
6935for ac_c_preproc_warn_flag in '' yes
6936do
6937  # Use a header file that comes with gcc, so configuring glibc
6938  # with a fresh cross-compiler works.
6939  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940  # <limits.h> exists even on freestanding compilers.
6941  # On the NeXT, cc -E runs the code through the compiler's parser,
6942  # not just through cpp. "Syntax error" is here to catch this case.
6943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945#ifdef __STDC__
6946# include <limits.h>
6947#else
6948# include <assert.h>
6949#endif
6950		     Syntax error
6951_ACEOF
6952if ac_fn_c_try_cpp "$LINENO"; then :
6953
6954else
6955  # Broken: fails on valid input.
6956continue
6957fi
6958rm -f conftest.err conftest.i conftest.$ac_ext
6959
6960  # OK, works on sane cases.  Now check whether nonexistent headers
6961  # can be detected and how.
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964#include <ac_nonexistent.h>
6965_ACEOF
6966if ac_fn_c_try_cpp "$LINENO"; then :
6967  # Broken: success on invalid input.
6968continue
6969else
6970  # Passes both tests.
6971ac_preproc_ok=:
6972break
6973fi
6974rm -f conftest.err conftest.i conftest.$ac_ext
6975
6976done
6977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6978rm -f conftest.i conftest.err conftest.$ac_ext
6979if $ac_preproc_ok; then :
6980  break
6981fi
6982
6983    done
6984    ac_cv_prog_CPP=$CPP
6985
6986fi
6987  CPP=$ac_cv_prog_CPP
6988else
6989  ac_cv_prog_CPP=$CPP
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6992$as_echo "$CPP" >&6; }
6993ac_preproc_ok=false
6994for ac_c_preproc_warn_flag in '' yes
6995do
6996  # Use a header file that comes with gcc, so configuring glibc
6997  # with a fresh cross-compiler works.
6998  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999  # <limits.h> exists even on freestanding compilers.
7000  # On the NeXT, cc -E runs the code through the compiler's parser,
7001  # not just through cpp. "Syntax error" is here to catch this case.
7002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004#ifdef __STDC__
7005# include <limits.h>
7006#else
7007# include <assert.h>
7008#endif
7009		     Syntax error
7010_ACEOF
7011if ac_fn_c_try_cpp "$LINENO"; then :
7012
7013else
7014  # Broken: fails on valid input.
7015continue
7016fi
7017rm -f conftest.err conftest.i conftest.$ac_ext
7018
7019  # OK, works on sane cases.  Now check whether nonexistent headers
7020  # can be detected and how.
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023#include <ac_nonexistent.h>
7024_ACEOF
7025if ac_fn_c_try_cpp "$LINENO"; then :
7026  # Broken: success on invalid input.
7027continue
7028else
7029  # Passes both tests.
7030ac_preproc_ok=:
7031break
7032fi
7033rm -f conftest.err conftest.i conftest.$ac_ext
7034
7035done
7036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7037rm -f conftest.i conftest.err conftest.$ac_ext
7038if $ac_preproc_ok; then :
7039
7040else
7041  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7043as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7044See \`config.log' for more details" "$LINENO" 5; }
7045fi
7046
7047ac_ext=c
7048ac_cpp='$CPP $CPPFLAGS'
7049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052
7053
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7055$as_echo_n "checking for ANSI C header files... " >&6; }
7056if ${ac_cv_header_stdc+:} false; then :
7057  $as_echo_n "(cached) " >&6
7058else
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061#include <stdlib.h>
7062#include <stdarg.h>
7063#include <string.h>
7064#include <float.h>
7065
7066int
7067main ()
7068{
7069
7070  ;
7071  return 0;
7072}
7073_ACEOF
7074if ac_fn_c_try_compile "$LINENO"; then :
7075  ac_cv_header_stdc=yes
7076else
7077  ac_cv_header_stdc=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080
7081if test $ac_cv_header_stdc = yes; then
7082  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085#include <string.h>
7086
7087_ACEOF
7088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089  $EGREP "memchr" >/dev/null 2>&1; then :
7090
7091else
7092  ac_cv_header_stdc=no
7093fi
7094rm -f conftest*
7095
7096fi
7097
7098if test $ac_cv_header_stdc = yes; then
7099  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102#include <stdlib.h>
7103
7104_ACEOF
7105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106  $EGREP "free" >/dev/null 2>&1; then :
7107
7108else
7109  ac_cv_header_stdc=no
7110fi
7111rm -f conftest*
7112
7113fi
7114
7115if test $ac_cv_header_stdc = yes; then
7116  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7117  if test "$cross_compiling" = yes; then :
7118  :
7119else
7120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h.  */
7122#include <ctype.h>
7123#include <stdlib.h>
7124#if ((' ' & 0x0FF) == 0x020)
7125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7127#else
7128# define ISLOWER(c) \
7129		   (('a' <= (c) && (c) <= 'i') \
7130		     || ('j' <= (c) && (c) <= 'r') \
7131		     || ('s' <= (c) && (c) <= 'z'))
7132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7133#endif
7134
7135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7136int
7137main ()
7138{
7139  int i;
7140  for (i = 0; i < 256; i++)
7141    if (XOR (islower (i), ISLOWER (i))
7142	|| toupper (i) != TOUPPER (i))
7143      return 2;
7144  return 0;
7145}
7146_ACEOF
7147if ac_fn_c_try_run "$LINENO"; then :
7148
7149else
7150  ac_cv_header_stdc=no
7151fi
7152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7153  conftest.$ac_objext conftest.beam conftest.$ac_ext
7154fi
7155
7156fi
7157fi
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7159$as_echo "$ac_cv_header_stdc" >&6; }
7160if test $ac_cv_header_stdc = yes; then
7161
7162$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7163
7164fi
7165
7166# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7167for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7168		  inttypes.h stdint.h unistd.h
7169do :
7170  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7172"
7173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7174  cat >>confdefs.h <<_ACEOF
7175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7176_ACEOF
7177
7178fi
7179
7180done
7181
7182
7183for ac_header in dlfcn.h
7184do :
7185  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7186"
7187if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7188  cat >>confdefs.h <<_ACEOF
7189#define HAVE_DLFCN_H 1
7190_ACEOF
7191
7192fi
7193
7194done
7195
7196
7197
7198
7199
7200# Set options
7201
7202
7203
7204        enable_dlopen=no
7205
7206
7207  enable_win32_dll=no
7208
7209
7210            # Check whether --enable-shared was given.
7211if test "${enable_shared+set}" = set; then :
7212  enableval=$enable_shared; p=${PACKAGE-default}
7213    case $enableval in
7214    yes) enable_shared=yes ;;
7215    no) enable_shared=no ;;
7216    *)
7217      enable_shared=no
7218      # Look at the argument we got.  We use all the common list separators.
7219      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7220      for pkg in $enableval; do
7221	IFS=$lt_save_ifs
7222	if test "X$pkg" = "X$p"; then
7223	  enable_shared=yes
7224	fi
7225      done
7226      IFS=$lt_save_ifs
7227      ;;
7228    esac
7229else
7230  enable_shared=yes
7231fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241  # Check whether --enable-static was given.
7242if test "${enable_static+set}" = set; then :
7243  enableval=$enable_static; p=${PACKAGE-default}
7244    case $enableval in
7245    yes) enable_static=yes ;;
7246    no) enable_static=no ;;
7247    *)
7248     enable_static=no
7249      # Look at the argument we got.  We use all the common list separators.
7250      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7251      for pkg in $enableval; do
7252	IFS=$lt_save_ifs
7253	if test "X$pkg" = "X$p"; then
7254	  enable_static=yes
7255	fi
7256      done
7257      IFS=$lt_save_ifs
7258      ;;
7259    esac
7260else
7261  enable_static=yes
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273# Check whether --with-pic was given.
7274if test "${with_pic+set}" = set; then :
7275  withval=$with_pic; lt_p=${PACKAGE-default}
7276    case $withval in
7277    yes|no) pic_mode=$withval ;;
7278    *)
7279      pic_mode=default
7280      # Look at the argument we got.  We use all the common list separators.
7281      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7282      for lt_pkg in $withval; do
7283	IFS=$lt_save_ifs
7284	if test "X$lt_pkg" = "X$lt_p"; then
7285	  pic_mode=yes
7286	fi
7287      done
7288      IFS=$lt_save_ifs
7289      ;;
7290    esac
7291else
7292  pic_mode=default
7293fi
7294
7295
7296
7297
7298
7299
7300
7301
7302  # Check whether --enable-fast-install was given.
7303if test "${enable_fast_install+set}" = set; then :
7304  enableval=$enable_fast_install; p=${PACKAGE-default}
7305    case $enableval in
7306    yes) enable_fast_install=yes ;;
7307    no) enable_fast_install=no ;;
7308    *)
7309      enable_fast_install=no
7310      # Look at the argument we got.  We use all the common list separators.
7311      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7312      for pkg in $enableval; do
7313	IFS=$lt_save_ifs
7314	if test "X$pkg" = "X$p"; then
7315	  enable_fast_install=yes
7316	fi
7317      done
7318      IFS=$lt_save_ifs
7319      ;;
7320    esac
7321else
7322  enable_fast_install=yes
7323fi
7324
7325
7326
7327
7328
7329
7330
7331
7332  shared_archive_member_spec=
7333case $host,$enable_shared in
7334power*-*-aix[5-9]*,yes)
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7336$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7337
7338# Check whether --with-aix-soname was given.
7339if test "${with_aix_soname+set}" = set; then :
7340  withval=$with_aix_soname; case $withval in
7341    aix|svr4|both)
7342      ;;
7343    *)
7344      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7345      ;;
7346    esac
7347    lt_cv_with_aix_soname=$with_aix_soname
7348else
7349  if ${lt_cv_with_aix_soname+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  lt_cv_with_aix_soname=aix
7353fi
7354
7355    with_aix_soname=$lt_cv_with_aix_soname
7356fi
7357
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7359$as_echo "$with_aix_soname" >&6; }
7360  if test aix != "$with_aix_soname"; then
7361    # For the AIX way of multilib, we name the shared archive member
7362    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7363    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7364    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7365    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7366    if test 64 = "${OBJECT_MODE-32}"; then
7367      shared_archive_member_spec=shr_64
7368    else
7369      shared_archive_member_spec=shr
7370    fi
7371  fi
7372  ;;
7373*)
7374  with_aix_soname=aix
7375  ;;
7376esac
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387# This can be used to rebuild libtool when needed
7388LIBTOOL_DEPS=$ltmain
7389
7390# Always use our own libtool.
7391LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422test -z "$LN_S" && LN_S="ln -s"
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437if test -n "${ZSH_VERSION+set}"; then
7438   setopt NO_GLOB_SUBST
7439fi
7440
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7442$as_echo_n "checking for objdir... " >&6; }
7443if ${lt_cv_objdir+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  rm -f .libs 2>/dev/null
7447mkdir .libs 2>/dev/null
7448if test -d .libs; then
7449  lt_cv_objdir=.libs
7450else
7451  # MS-DOS does not allow filenames that begin with a dot.
7452  lt_cv_objdir=_libs
7453fi
7454rmdir .libs 2>/dev/null
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7457$as_echo "$lt_cv_objdir" >&6; }
7458objdir=$lt_cv_objdir
7459
7460
7461
7462
7463
7464cat >>confdefs.h <<_ACEOF
7465#define LT_OBJDIR "$lt_cv_objdir/"
7466_ACEOF
7467
7468
7469
7470
7471case $host_os in
7472aix3*)
7473  # AIX sometimes has problems with the GCC collect2 program.  For some
7474  # reason, if we set the COLLECT_NAMES environment variable, the problems
7475  # vanish in a puff of smoke.
7476  if test set != "${COLLECT_NAMES+set}"; then
7477    COLLECT_NAMES=
7478    export COLLECT_NAMES
7479  fi
7480  ;;
7481esac
7482
7483# Global variables:
7484ofile=libtool
7485can_build_shared=yes
7486
7487# All known linkers require a '.a' archive for static linking (except MSVC,
7488# which needs '.lib').
7489libext=a
7490
7491with_gnu_ld=$lt_cv_prog_gnu_ld
7492
7493old_CC=$CC
7494old_CFLAGS=$CFLAGS
7495
7496# Set sane defaults for various variables
7497test -z "$CC" && CC=cc
7498test -z "$LTCC" && LTCC=$CC
7499test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7500test -z "$LD" && LD=ld
7501test -z "$ac_objext" && ac_objext=o
7502
7503func_cc_basename $compiler
7504cc_basename=$func_cc_basename_result
7505
7506
7507# Only perform the check for file, if the check method requires it
7508test -z "$MAGIC_CMD" && MAGIC_CMD=file
7509case $deplibs_check_method in
7510file_magic*)
7511  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7513$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7514if ${lt_cv_path_MAGIC_CMD+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  case $MAGIC_CMD in
7518[\\/*] |  ?:[\\/]*)
7519  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7520  ;;
7521*)
7522  lt_save_MAGIC_CMD=$MAGIC_CMD
7523  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7524  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7525  for ac_dir in $ac_dummy; do
7526    IFS=$lt_save_ifs
7527    test -z "$ac_dir" && ac_dir=.
7528    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7529      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7530      if test -n "$file_magic_test_file"; then
7531	case $deplibs_check_method in
7532	"file_magic "*)
7533	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7534	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7535	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7536	    $EGREP "$file_magic_regex" > /dev/null; then
7537	    :
7538	  else
7539	    cat <<_LT_EOF 1>&2
7540
7541*** Warning: the command libtool uses to detect shared libraries,
7542*** $file_magic_cmd, produces output that libtool cannot recognize.
7543*** The result is that libtool may fail to recognize shared libraries
7544*** as such.  This will affect the creation of libtool libraries that
7545*** depend on shared libraries, but programs linked with such libtool
7546*** libraries will work regardless of this problem.  Nevertheless, you
7547*** may want to report the problem to your system manager and/or to
7548*** bug-libtool@gnu.org
7549
7550_LT_EOF
7551	  fi ;;
7552	esac
7553      fi
7554      break
7555    fi
7556  done
7557  IFS=$lt_save_ifs
7558  MAGIC_CMD=$lt_save_MAGIC_CMD
7559  ;;
7560esac
7561fi
7562
7563MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7564if test -n "$MAGIC_CMD"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7566$as_echo "$MAGIC_CMD" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573
7574
7575
7576if test -z "$lt_cv_path_MAGIC_CMD"; then
7577  if test -n "$ac_tool_prefix"; then
7578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7579$as_echo_n "checking for file... " >&6; }
7580if ${lt_cv_path_MAGIC_CMD+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  case $MAGIC_CMD in
7584[\\/*] |  ?:[\\/]*)
7585  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7586  ;;
7587*)
7588  lt_save_MAGIC_CMD=$MAGIC_CMD
7589  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7590  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7591  for ac_dir in $ac_dummy; do
7592    IFS=$lt_save_ifs
7593    test -z "$ac_dir" && ac_dir=.
7594    if test -f "$ac_dir/file"; then
7595      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7596      if test -n "$file_magic_test_file"; then
7597	case $deplibs_check_method in
7598	"file_magic "*)
7599	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7600	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7601	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7602	    $EGREP "$file_magic_regex" > /dev/null; then
7603	    :
7604	  else
7605	    cat <<_LT_EOF 1>&2
7606
7607*** Warning: the command libtool uses to detect shared libraries,
7608*** $file_magic_cmd, produces output that libtool cannot recognize.
7609*** The result is that libtool may fail to recognize shared libraries
7610*** as such.  This will affect the creation of libtool libraries that
7611*** depend on shared libraries, but programs linked with such libtool
7612*** libraries will work regardless of this problem.  Nevertheless, you
7613*** may want to report the problem to your system manager and/or to
7614*** bug-libtool@gnu.org
7615
7616_LT_EOF
7617	  fi ;;
7618	esac
7619      fi
7620      break
7621    fi
7622  done
7623  IFS=$lt_save_ifs
7624  MAGIC_CMD=$lt_save_MAGIC_CMD
7625  ;;
7626esac
7627fi
7628
7629MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7630if test -n "$MAGIC_CMD"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7632$as_echo "$MAGIC_CMD" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638
7639  else
7640    MAGIC_CMD=:
7641  fi
7642fi
7643
7644  fi
7645  ;;
7646esac
7647
7648# Use C for the default configuration in the libtool script
7649
7650lt_save_CC=$CC
7651ac_ext=c
7652ac_cpp='$CPP $CPPFLAGS'
7653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656
7657
7658# Source file extension for C test sources.
7659ac_ext=c
7660
7661# Object file extension for compiled C test sources.
7662objext=o
7663objext=$objext
7664
7665# Code to be used in simple compile tests
7666lt_simple_compile_test_code="int some_variable = 0;"
7667
7668# Code to be used in simple link tests
7669lt_simple_link_test_code='int main(){return(0);}'
7670
7671
7672
7673
7674
7675
7676
7677# If no C compiler was specified, use CC.
7678LTCC=${LTCC-"$CC"}
7679
7680# If no C compiler flags were specified, use CFLAGS.
7681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7682
7683# Allow CC to be a program name with arguments.
7684compiler=$CC
7685
7686# Save the default compiler, since it gets overwritten when the other
7687# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7688compiler_DEFAULT=$CC
7689
7690# save warnings/boilerplate of simple test code
7691ac_outfile=conftest.$ac_objext
7692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694_lt_compiler_boilerplate=`cat conftest.err`
7695$RM conftest*
7696
7697ac_outfile=conftest.$ac_objext
7698echo "$lt_simple_link_test_code" >conftest.$ac_ext
7699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7700_lt_linker_boilerplate=`cat conftest.err`
7701$RM -r conftest*
7702
7703
7704if test -n "$compiler"; then
7705
7706lt_prog_compiler_no_builtin_flag=
7707
7708if test yes = "$GCC"; then
7709  case $cc_basename in
7710  nvcc*)
7711    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7712  *)
7713    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7714  esac
7715
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7717$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7718if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  lt_cv_prog_compiler_rtti_exceptions=no
7722   ac_outfile=conftest.$ac_objext
7723   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7725   # Insert the option either (1) after the last *FLAGS variable, or
7726   # (2) before a word containing "conftest.", or (3) at the end.
7727   # Note that $ac_compile itself does not contain backslashes and begins
7728   # with a dollar sign (not a hyphen), so the echo should work correctly.
7729   # The option is referenced via a variable to avoid confusing sed.
7730   lt_compile=`echo "$ac_compile" | $SED \
7731   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733   -e 's:$: $lt_compiler_flag:'`
7734   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7735   (eval "$lt_compile" 2>conftest.err)
7736   ac_status=$?
7737   cat conftest.err >&5
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   if (exit $ac_status) && test -s "$ac_outfile"; then
7740     # The compiler can only warn and ignore the option if not recognized
7741     # So say no if there are warnings other than the usual output.
7742     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7743     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745       lt_cv_prog_compiler_rtti_exceptions=yes
7746     fi
7747   fi
7748   $RM conftest*
7749
7750fi
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7752$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7753
7754if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7755    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7756else
7757    :
7758fi
7759
7760fi
7761
7762
7763
7764
7765
7766
7767  lt_prog_compiler_wl=
7768lt_prog_compiler_pic=
7769lt_prog_compiler_static=
7770
7771
7772  if test yes = "$GCC"; then
7773    lt_prog_compiler_wl='-Wl,'
7774    lt_prog_compiler_static='-static'
7775
7776    case $host_os in
7777      aix*)
7778      # All AIX code is PIC.
7779      if test ia64 = "$host_cpu"; then
7780	# AIX 5 now supports IA64 processor
7781	lt_prog_compiler_static='-Bstatic'
7782      fi
7783      lt_prog_compiler_pic='-fPIC'
7784      ;;
7785
7786    amigaos*)
7787      case $host_cpu in
7788      powerpc)
7789            # see comment about AmigaOS4 .so support
7790            lt_prog_compiler_pic='-fPIC'
7791        ;;
7792      m68k)
7793            # FIXME: we need at least 68020 code to build shared libraries, but
7794            # adding the '-m68020' flag to GCC prevents building anything better,
7795            # like '-m68040'.
7796            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7797        ;;
7798      esac
7799      ;;
7800
7801    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7802      # PIC is the default for these OSes.
7803      ;;
7804
7805    mingw* | cygwin* | pw32* | os2* | cegcc*)
7806      # This hack is so that the source file can tell whether it is being
7807      # built for inclusion in a dll (and should export symbols for example).
7808      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7809      # (--disable-auto-import) libraries
7810      lt_prog_compiler_pic='-DDLL_EXPORT'
7811      case $host_os in
7812      os2*)
7813	lt_prog_compiler_static='$wl-static'
7814	;;
7815      esac
7816      ;;
7817
7818    darwin* | rhapsody*)
7819      # PIC is the default on this platform
7820      # Common symbols not allowed in MH_DYLIB files
7821      lt_prog_compiler_pic='-fno-common'
7822      ;;
7823
7824    haiku*)
7825      # PIC is the default for Haiku.
7826      # The "-static" flag exists, but is broken.
7827      lt_prog_compiler_static=
7828      ;;
7829
7830    hpux*)
7831      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7832      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7833      # sets the default TLS model and affects inlining.
7834      case $host_cpu in
7835      hppa*64*)
7836	# +Z the default
7837	;;
7838      *)
7839	lt_prog_compiler_pic='-fPIC'
7840	;;
7841      esac
7842      ;;
7843
7844    interix[3-9]*)
7845      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7846      # Instead, we relocate shared libraries at runtime.
7847      ;;
7848
7849    msdosdjgpp*)
7850      # Just because we use GCC doesn't mean we suddenly get shared libraries
7851      # on systems that don't support them.
7852      lt_prog_compiler_can_build_shared=no
7853      enable_shared=no
7854      ;;
7855
7856    *nto* | *qnx*)
7857      # QNX uses GNU C++, but need to define -shared option too, otherwise
7858      # it will coredump.
7859      lt_prog_compiler_pic='-fPIC -shared'
7860      ;;
7861
7862    sysv4*MP*)
7863      if test -d /usr/nec; then
7864	lt_prog_compiler_pic=-Kconform_pic
7865      fi
7866      ;;
7867
7868    *)
7869      lt_prog_compiler_pic='-fPIC'
7870      ;;
7871    esac
7872
7873    case $cc_basename in
7874    nvcc*) # Cuda Compiler Driver 2.2
7875      lt_prog_compiler_wl='-Xlinker '
7876      if test -n "$lt_prog_compiler_pic"; then
7877        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7878      fi
7879      ;;
7880    esac
7881  else
7882    # PORTME Check for flag to pass linker flags through the system compiler.
7883    case $host_os in
7884    aix*)
7885      lt_prog_compiler_wl='-Wl,'
7886      if test ia64 = "$host_cpu"; then
7887	# AIX 5 now supports IA64 processor
7888	lt_prog_compiler_static='-Bstatic'
7889      else
7890	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7891      fi
7892      ;;
7893
7894    darwin* | rhapsody*)
7895      # PIC is the default on this platform
7896      # Common symbols not allowed in MH_DYLIB files
7897      lt_prog_compiler_pic='-fno-common'
7898      case $cc_basename in
7899      nagfor*)
7900        # NAG Fortran compiler
7901        lt_prog_compiler_wl='-Wl,-Wl,,'
7902        lt_prog_compiler_pic='-PIC'
7903        lt_prog_compiler_static='-Bstatic'
7904        ;;
7905      esac
7906      ;;
7907
7908    mingw* | cygwin* | pw32* | os2* | cegcc*)
7909      # This hack is so that the source file can tell whether it is being
7910      # built for inclusion in a dll (and should export symbols for example).
7911      lt_prog_compiler_pic='-DDLL_EXPORT'
7912      case $host_os in
7913      os2*)
7914	lt_prog_compiler_static='$wl-static'
7915	;;
7916      esac
7917      ;;
7918
7919    hpux9* | hpux10* | hpux11*)
7920      lt_prog_compiler_wl='-Wl,'
7921      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7922      # not for PA HP-UX.
7923      case $host_cpu in
7924      hppa*64*|ia64*)
7925	# +Z the default
7926	;;
7927      *)
7928	lt_prog_compiler_pic='+Z'
7929	;;
7930      esac
7931      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932      lt_prog_compiler_static='$wl-a ${wl}archive'
7933      ;;
7934
7935    irix5* | irix6* | nonstopux*)
7936      lt_prog_compiler_wl='-Wl,'
7937      # PIC (with -KPIC) is the default.
7938      lt_prog_compiler_static='-non_shared'
7939      ;;
7940
7941    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7942      case $cc_basename in
7943      # old Intel for x86_64, which still supported -KPIC.
7944      ecc*)
7945	lt_prog_compiler_wl='-Wl,'
7946	lt_prog_compiler_pic='-KPIC'
7947	lt_prog_compiler_static='-static'
7948        ;;
7949      # flang / f18. f95 an alias for gfortran or flang on Debian
7950      flang* | f18* | f95*)
7951	lt_prog_compiler_wl='-Wl,'
7952	lt_prog_compiler_pic='-fPIC'
7953	lt_prog_compiler_static='-static'
7954        ;;
7955      # icc used to be incompatible with GCC.
7956      # ICC 10 doesn't accept -KPIC any more.
7957      icc* | ifort*)
7958	lt_prog_compiler_wl='-Wl,'
7959	lt_prog_compiler_pic='-fPIC'
7960	lt_prog_compiler_static='-static'
7961        ;;
7962      # Lahey Fortran 8.1.
7963      lf95*)
7964	lt_prog_compiler_wl='-Wl,'
7965	lt_prog_compiler_pic='--shared'
7966	lt_prog_compiler_static='--static'
7967	;;
7968      nagfor*)
7969	# NAG Fortran compiler
7970	lt_prog_compiler_wl='-Wl,-Wl,,'
7971	lt_prog_compiler_pic='-PIC'
7972	lt_prog_compiler_static='-Bstatic'
7973	;;
7974      tcc*)
7975	# Fabrice Bellard et al's Tiny C Compiler
7976	lt_prog_compiler_wl='-Wl,'
7977	lt_prog_compiler_pic='-fPIC'
7978	lt_prog_compiler_static='-static'
7979	;;
7980      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7981        # Portland Group compilers (*not* the Pentium gcc compiler,
7982	# which looks to be a dead project)
7983	lt_prog_compiler_wl='-Wl,'
7984	lt_prog_compiler_pic='-fpic'
7985	lt_prog_compiler_static='-Bstatic'
7986        ;;
7987      ccc*)
7988        lt_prog_compiler_wl='-Wl,'
7989        # All Alpha code is PIC.
7990        lt_prog_compiler_static='-non_shared'
7991        ;;
7992      xl* | bgxl* | bgf* | mpixl*)
7993	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7994	lt_prog_compiler_wl='-Wl,'
7995	lt_prog_compiler_pic='-qpic'
7996	lt_prog_compiler_static='-qstaticlink'
7997	;;
7998      *)
7999	case `$CC -V 2>&1 | sed 5q` in
8000	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8001	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8002	  lt_prog_compiler_pic='-KPIC'
8003	  lt_prog_compiler_static='-Bstatic'
8004	  lt_prog_compiler_wl=''
8005	  ;;
8006	*Sun\ F* | *Sun*Fortran*)
8007	  lt_prog_compiler_pic='-KPIC'
8008	  lt_prog_compiler_static='-Bstatic'
8009	  lt_prog_compiler_wl='-Qoption ld '
8010	  ;;
8011	*Sun\ C*)
8012	  # Sun C 5.9
8013	  lt_prog_compiler_pic='-KPIC'
8014	  lt_prog_compiler_static='-Bstatic'
8015	  lt_prog_compiler_wl='-Wl,'
8016	  ;;
8017        *Intel*\ [CF]*Compiler*)
8018	  lt_prog_compiler_wl='-Wl,'
8019	  lt_prog_compiler_pic='-fPIC'
8020	  lt_prog_compiler_static='-static'
8021	  ;;
8022	*Portland\ Group*)
8023	  lt_prog_compiler_wl='-Wl,'
8024	  lt_prog_compiler_pic='-fpic'
8025	  lt_prog_compiler_static='-Bstatic'
8026	  ;;
8027	esac
8028	;;
8029      esac
8030      ;;
8031
8032    newsos6)
8033      lt_prog_compiler_pic='-KPIC'
8034      lt_prog_compiler_static='-Bstatic'
8035      ;;
8036
8037    *nto* | *qnx*)
8038      # QNX uses GNU C++, but need to define -shared option too, otherwise
8039      # it will coredump.
8040      lt_prog_compiler_pic='-fPIC -shared'
8041      ;;
8042
8043    osf3* | osf4* | osf5*)
8044      lt_prog_compiler_wl='-Wl,'
8045      # All OSF/1 code is PIC.
8046      lt_prog_compiler_static='-non_shared'
8047      ;;
8048
8049    rdos*)
8050      lt_prog_compiler_static='-non_shared'
8051      ;;
8052
8053    solaris*)
8054      lt_prog_compiler_pic='-KPIC'
8055      lt_prog_compiler_static='-Bstatic'
8056      case $cc_basename in
8057      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8058	lt_prog_compiler_wl='-Qoption ld ';;
8059      *)
8060	lt_prog_compiler_wl='-Wl,';;
8061      esac
8062      ;;
8063
8064    sunos4*)
8065      lt_prog_compiler_wl='-Qoption ld '
8066      lt_prog_compiler_pic='-PIC'
8067      lt_prog_compiler_static='-Bstatic'
8068      ;;
8069
8070    sysv4 | sysv4.2uw2* | sysv4.3*)
8071      lt_prog_compiler_wl='-Wl,'
8072      lt_prog_compiler_pic='-KPIC'
8073      lt_prog_compiler_static='-Bstatic'
8074      ;;
8075
8076    sysv4*MP*)
8077      if test -d /usr/nec; then
8078	lt_prog_compiler_pic='-Kconform_pic'
8079	lt_prog_compiler_static='-Bstatic'
8080      fi
8081      ;;
8082
8083    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8084      lt_prog_compiler_wl='-Wl,'
8085      lt_prog_compiler_pic='-KPIC'
8086      lt_prog_compiler_static='-Bstatic'
8087      ;;
8088
8089    unicos*)
8090      lt_prog_compiler_wl='-Wl,'
8091      lt_prog_compiler_can_build_shared=no
8092      ;;
8093
8094    uts4*)
8095      lt_prog_compiler_pic='-pic'
8096      lt_prog_compiler_static='-Bstatic'
8097      ;;
8098
8099    *)
8100      lt_prog_compiler_can_build_shared=no
8101      ;;
8102    esac
8103  fi
8104
8105case $host_os in
8106  # For platforms that do not support PIC, -DPIC is meaningless:
8107  *djgpp*)
8108    lt_prog_compiler_pic=
8109    ;;
8110  *)
8111    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8112    ;;
8113esac
8114
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8116$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8117if ${lt_cv_prog_compiler_pic+:} false; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8123$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8124lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8125
8126#
8127# Check to make sure the PIC flag actually works.
8128#
8129if test -n "$lt_prog_compiler_pic"; then
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8132if ${lt_cv_prog_compiler_pic_works+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_prog_compiler_pic_works=no
8136   ac_outfile=conftest.$ac_objext
8137   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8139   # Insert the option either (1) after the last *FLAGS variable, or
8140   # (2) before a word containing "conftest.", or (3) at the end.
8141   # Note that $ac_compile itself does not contain backslashes and begins
8142   # with a dollar sign (not a hyphen), so the echo should work correctly.
8143   # The option is referenced via a variable to avoid confusing sed.
8144   lt_compile=`echo "$ac_compile" | $SED \
8145   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147   -e 's:$: $lt_compiler_flag:'`
8148   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8149   (eval "$lt_compile" 2>conftest.err)
8150   ac_status=$?
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   if (exit $ac_status) && test -s "$ac_outfile"; then
8154     # The compiler can only warn and ignore the option if not recognized
8155     # So say no if there are warnings other than the usual output.
8156     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8157     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8159       lt_cv_prog_compiler_pic_works=yes
8160     fi
8161   fi
8162   $RM conftest*
8163
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8166$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8167
8168if test yes = "$lt_cv_prog_compiler_pic_works"; then
8169    case $lt_prog_compiler_pic in
8170     "" | " "*) ;;
8171     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172     esac
8173else
8174    lt_prog_compiler_pic=
8175     lt_prog_compiler_can_build_shared=no
8176fi
8177
8178fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190#
8191# Check to make sure the static flag actually works.
8192#
8193wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8195$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8196if ${lt_cv_prog_compiler_static_works+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  lt_cv_prog_compiler_static_works=no
8200   save_LDFLAGS=$LDFLAGS
8201   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8202   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8203   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8204     # The linker can only warn and ignore the option if not recognized
8205     # So say no if there are warnings
8206     if test -s conftest.err; then
8207       # Append any errors to the config.log.
8208       cat conftest.err 1>&5
8209       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8210       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211       if diff conftest.exp conftest.er2 >/dev/null; then
8212         lt_cv_prog_compiler_static_works=yes
8213       fi
8214     else
8215       lt_cv_prog_compiler_static_works=yes
8216     fi
8217   fi
8218   $RM -r conftest*
8219   LDFLAGS=$save_LDFLAGS
8220
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8223$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8224
8225if test yes = "$lt_cv_prog_compiler_static_works"; then
8226    :
8227else
8228    lt_prog_compiler_static=
8229fi
8230
8231
8232
8233
8234
8235
8236
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8238$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8239if ${lt_cv_prog_compiler_c_o+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  lt_cv_prog_compiler_c_o=no
8243   $RM -r conftest 2>/dev/null
8244   mkdir conftest
8245   cd conftest
8246   mkdir out
8247   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249   lt_compiler_flag="-o out/conftest2.$ac_objext"
8250   # Insert the option either (1) after the last *FLAGS variable, or
8251   # (2) before a word containing "conftest.", or (3) at the end.
8252   # Note that $ac_compile itself does not contain backslashes and begins
8253   # with a dollar sign (not a hyphen), so the echo should work correctly.
8254   lt_compile=`echo "$ac_compile" | $SED \
8255   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257   -e 's:$: $lt_compiler_flag:'`
8258   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259   (eval "$lt_compile" 2>out/conftest.err)
8260   ac_status=$?
8261   cat out/conftest.err >&5
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8264   then
8265     # The compiler can only warn and ignore the option if not recognized
8266     # So say no if there are warnings
8267     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8268     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8269     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8270       lt_cv_prog_compiler_c_o=yes
8271     fi
8272   fi
8273   chmod u+w . 2>&5
8274   $RM conftest*
8275   # SGI C++ compiler will create directory out/ii_files/ for
8276   # template instantiation
8277   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8278   $RM out/* && rmdir out
8279   cd ..
8280   $RM -r conftest
8281   $RM conftest*
8282
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8285$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8286
8287
8288
8289
8290
8291
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8293$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8294if ${lt_cv_prog_compiler_c_o+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  lt_cv_prog_compiler_c_o=no
8298   $RM -r conftest 2>/dev/null
8299   mkdir conftest
8300   cd conftest
8301   mkdir out
8302   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303
8304   lt_compiler_flag="-o out/conftest2.$ac_objext"
8305   # Insert the option either (1) after the last *FLAGS variable, or
8306   # (2) before a word containing "conftest.", or (3) at the end.
8307   # Note that $ac_compile itself does not contain backslashes and begins
8308   # with a dollar sign (not a hyphen), so the echo should work correctly.
8309   lt_compile=`echo "$ac_compile" | $SED \
8310   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312   -e 's:$: $lt_compiler_flag:'`
8313   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314   (eval "$lt_compile" 2>out/conftest.err)
8315   ac_status=$?
8316   cat out/conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8319   then
8320     # The compiler can only warn and ignore the option if not recognized
8321     # So say no if there are warnings
8322     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8323     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8324     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8325       lt_cv_prog_compiler_c_o=yes
8326     fi
8327   fi
8328   chmod u+w . 2>&5
8329   $RM conftest*
8330   # SGI C++ compiler will create directory out/ii_files/ for
8331   # template instantiation
8332   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8333   $RM out/* && rmdir out
8334   cd ..
8335   $RM -r conftest
8336   $RM conftest*
8337
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8340$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8341
8342
8343
8344
8345hard_links=nottested
8346if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8347  # do not overwrite the value of need_locks provided by the user
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8349$as_echo_n "checking if we can lock with hard links... " >&6; }
8350  hard_links=yes
8351  $RM conftest*
8352  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8353  touch conftest.a
8354  ln conftest.a conftest.b 2>&5 || hard_links=no
8355  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8357$as_echo "$hard_links" >&6; }
8358  if test no = "$hard_links"; then
8359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8360$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8361    need_locks=warn
8362  fi
8363else
8364  need_locks=no
8365fi
8366
8367
8368
8369
8370
8371
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8373$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8374
8375  runpath_var=
8376  allow_undefined_flag=
8377  always_export_symbols=no
8378  archive_cmds=
8379  archive_expsym_cmds=
8380  compiler_needs_object=no
8381  enable_shared_with_static_runtimes=no
8382  export_dynamic_flag_spec=
8383  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8384  hardcode_automatic=no
8385  hardcode_direct=no
8386  hardcode_direct_absolute=no
8387  hardcode_libdir_flag_spec=
8388  hardcode_libdir_separator=
8389  hardcode_minus_L=no
8390  hardcode_shlibpath_var=unsupported
8391  inherit_rpath=no
8392  link_all_deplibs=unknown
8393  module_cmds=
8394  module_expsym_cmds=
8395  old_archive_from_new_cmds=
8396  old_archive_from_expsyms_cmds=
8397  thread_safe_flag_spec=
8398  whole_archive_flag_spec=
8399  # include_expsyms should be a list of space-separated symbols to be *always*
8400  # included in the symbol list
8401  include_expsyms=
8402  # exclude_expsyms can be an extended regexp of symbols to exclude
8403  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8404  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8405  # as well as any symbol that contains 'd'.
8406  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408  # platforms (ab)use it in PIC code, but their linkers get confused if
8409  # the symbol is explicitly referenced.  Since portable code cannot
8410  # rely on this symbol name, it's probably fine to never include it in
8411  # preloaded symbol tables.
8412  # Exclude shared library initialization/finalization symbols.
8413  extract_expsyms_cmds=
8414
8415  case $host_os in
8416  cygwin* | mingw* | pw32* | cegcc*)
8417    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418    # When not using gcc, we currently assume that we are using
8419    # Microsoft Visual C++.
8420    if test yes != "$GCC"; then
8421      with_gnu_ld=no
8422    fi
8423    ;;
8424  interix*)
8425    # we just hope/assume this is gcc and not c89 (= MSVC++)
8426    with_gnu_ld=yes
8427    ;;
8428  openbsd* | bitrig*)
8429    with_gnu_ld=no
8430    ;;
8431  linux* | k*bsd*-gnu | gnu*)
8432    link_all_deplibs=no
8433    ;;
8434  esac
8435
8436  ld_shlibs=yes
8437
8438  # On some targets, GNU ld is compatible enough with the native linker
8439  # that we're better off using the native interface for both.
8440  lt_use_gnu_ld_interface=no
8441  if test yes = "$with_gnu_ld"; then
8442    case $host_os in
8443      aix*)
8444	# The AIX port of GNU ld has always aspired to compatibility
8445	# with the native linker.  However, as the warning in the GNU ld
8446	# block says, versions before 2.19.5* couldn't really create working
8447	# shared libraries, regardless of the interface used.
8448	case `$LD -v 2>&1` in
8449	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8450	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8451	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8452	  *)
8453	    lt_use_gnu_ld_interface=yes
8454	    ;;
8455	esac
8456	;;
8457      *)
8458	lt_use_gnu_ld_interface=yes
8459	;;
8460    esac
8461  fi
8462
8463  if test yes = "$lt_use_gnu_ld_interface"; then
8464    # If archive_cmds runs LD, not CC, wlarc should be empty
8465    wlarc='$wl'
8466
8467    # Set some defaults for GNU ld with shared library support. These
8468    # are reset later if shared libraries are not supported. Putting them
8469    # here allows them to be overridden if necessary.
8470    runpath_var=LD_RUN_PATH
8471    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8472    export_dynamic_flag_spec='$wl--export-dynamic'
8473    # ancient GNU ld didn't support --whole-archive et. al.
8474    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8475      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8476    else
8477      whole_archive_flag_spec=
8478    fi
8479    supports_anon_versioning=no
8480    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8481      *GNU\ gold*) supports_anon_versioning=yes ;;
8482      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8483      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8484      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8485      *\ 2.11.*) ;; # other 2.11 versions
8486      *) supports_anon_versioning=yes ;;
8487    esac
8488
8489    # See if GNU ld supports shared libraries.
8490    case $host_os in
8491    aix[3-9]*)
8492      # On AIX/PPC, the GNU linker is very broken
8493      if test ia64 != "$host_cpu"; then
8494	ld_shlibs=no
8495	cat <<_LT_EOF 1>&2
8496
8497*** Warning: the GNU linker, at least up to release 2.19, is reported
8498*** to be unable to reliably create shared libraries on AIX.
8499*** Therefore, libtool is disabling shared libraries support.  If you
8500*** really care for shared libraries, you may want to install binutils
8501*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8502*** You will then need to restart the configuration process.
8503
8504_LT_EOF
8505      fi
8506      ;;
8507
8508    amigaos*)
8509      case $host_cpu in
8510      powerpc)
8511            # see comment about AmigaOS4 .so support
8512            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8513            archive_expsym_cmds=''
8514        ;;
8515      m68k)
8516            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)'
8517            hardcode_libdir_flag_spec='-L$libdir'
8518            hardcode_minus_L=yes
8519        ;;
8520      esac
8521      ;;
8522
8523    beos*)
8524      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8525	allow_undefined_flag=unsupported
8526	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8527	# support --undefined.  This deserves some investigation.  FIXME
8528	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8529      else
8530	ld_shlibs=no
8531      fi
8532      ;;
8533
8534    cygwin* | mingw* | pw32* | cegcc*)
8535      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8536      # as there is no search path for DLLs.
8537      hardcode_libdir_flag_spec='-L$libdir'
8538      export_dynamic_flag_spec='$wl--export-all-symbols'
8539      allow_undefined_flag=unsupported
8540      always_export_symbols=no
8541      enable_shared_with_static_runtimes=yes
8542      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'
8543      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8544
8545      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8546        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8547	# If the export-symbols file already is a .def file, use it as
8548	# is; otherwise, prepend EXPORTS...
8549	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8550          cp $export_symbols $output_objdir/$soname.def;
8551        else
8552          echo EXPORTS > $output_objdir/$soname.def;
8553          cat $export_symbols >> $output_objdir/$soname.def;
8554        fi~
8555        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8556      else
8557	ld_shlibs=no
8558      fi
8559      ;;
8560
8561    haiku*)
8562      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8563      link_all_deplibs=yes
8564      ;;
8565
8566    os2*)
8567      hardcode_libdir_flag_spec='-L$libdir'
8568      hardcode_minus_L=yes
8569      allow_undefined_flag=unsupported
8570      shrext_cmds=.dll
8571      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8572	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8573	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8574	$ECHO EXPORTS >> $output_objdir/$libname.def~
8575	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8576	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8577	emximp -o $lib $output_objdir/$libname.def'
8578      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8579	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8580	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8581	$ECHO EXPORTS >> $output_objdir/$libname.def~
8582	prefix_cmds="$SED"~
8583	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8584	  prefix_cmds="$prefix_cmds -e 1d";
8585	fi~
8586	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8587	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8589	emximp -o $lib $output_objdir/$libname.def'
8590      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8591      enable_shared_with_static_runtimes=yes
8592      ;;
8593
8594    interix[3-9]*)
8595      hardcode_direct=no
8596      hardcode_shlibpath_var=no
8597      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8598      export_dynamic_flag_spec='$wl-E'
8599      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8600      # Instead, shared libraries are loaded at an image base (0x10000000 by
8601      # default) and relocated if they conflict, which is a slow very memory
8602      # consuming and fragmenting process.  To avoid this, we pick a random,
8603      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8604      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8605      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8606      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'
8607      ;;
8608
8609    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8610      tmp_diet=no
8611      if test linux-dietlibc = "$host_os"; then
8612	case $cc_basename in
8613	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8614	esac
8615      fi
8616      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8617	 && test no = "$tmp_diet"
8618      then
8619	tmp_addflag=' $pic_flag'
8620	tmp_sharedflag='-shared'
8621	case $cc_basename,$host_cpu in
8622        pgcc*)				# Portland Group C compiler
8623	  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'
8624	  tmp_addflag=' $pic_flag'
8625	  ;;
8626	pgf77* | pgf90* | pgf95* | pgfortran*)
8627					# Portland Group f77 and f90 compilers
8628	  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'
8629	  tmp_addflag=' $pic_flag -Mnomain' ;;
8630	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8631	  tmp_addflag=' -i_dynamic' ;;
8632	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8633	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8634	ifc* | ifort*)			# Intel Fortran compiler
8635	  tmp_addflag=' -nofor_main' ;;
8636	lf95*)				# Lahey Fortran 8.1
8637	  whole_archive_flag_spec=
8638	  tmp_sharedflag='--shared' ;;
8639        nagfor*)                        # NAGFOR 5.3
8640          tmp_sharedflag='-Wl,-shared' ;;
8641	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8642	  tmp_sharedflag='-qmkshrobj'
8643	  tmp_addflag= ;;
8644	nvcc*)	# Cuda Compiler Driver 2.2
8645	  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'
8646	  compiler_needs_object=yes
8647	  ;;
8648	esac
8649	case `$CC -V 2>&1 | sed 5q` in
8650	*Sun\ C*)			# Sun C 5.9
8651	  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'
8652	  compiler_needs_object=yes
8653	  tmp_sharedflag='-G' ;;
8654	*Sun\ F*)			# Sun Fortran 8.3
8655	  tmp_sharedflag='-G' ;;
8656	esac
8657	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8658
8659        if test yes = "$supports_anon_versioning"; then
8660          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8661            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8662            echo "local: *; };" >> $output_objdir/$libname.ver~
8663            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8664        fi
8665
8666	case $cc_basename in
8667	tcc*)
8668	  export_dynamic_flag_spec='-rdynamic'
8669	  ;;
8670	xlf* | bgf* | bgxlf* | mpixlf*)
8671	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8673	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8674	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8675	  if test yes = "$supports_anon_versioning"; then
8676	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678              echo "local: *; };" >> $output_objdir/$libname.ver~
8679              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8680	  fi
8681	  ;;
8682	esac
8683      else
8684        ld_shlibs=no
8685      fi
8686      ;;
8687
8688    netbsd* | netbsdelf*-gnu)
8689      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8690	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8691	wlarc=
8692      else
8693	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8694	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8695      fi
8696      ;;
8697
8698    solaris*)
8699      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8700	ld_shlibs=no
8701	cat <<_LT_EOF 1>&2
8702
8703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8704*** create shared libraries on Solaris systems.  Therefore, libtool
8705*** is disabling shared libraries support.  We urge you to upgrade GNU
8706*** binutils to release 2.9.1 or newer.  Another option is to modify
8707*** your PATH or compiler configuration so that the native linker is
8708*** used, and then restart.
8709
8710_LT_EOF
8711      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8713	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8714      else
8715	ld_shlibs=no
8716      fi
8717      ;;
8718
8719    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8720      case `$LD -v 2>&1` in
8721        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8722	ld_shlibs=no
8723	cat <<_LT_EOF 1>&2
8724
8725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8726*** reliably create shared libraries on SCO systems.  Therefore, libtool
8727*** is disabling shared libraries support.  We urge you to upgrade GNU
8728*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8729*** your PATH or compiler configuration so that the native linker is
8730*** used, and then restart.
8731
8732_LT_EOF
8733	;;
8734	*)
8735	  # For security reasons, it is highly recommended that you always
8736	  # use absolute paths for naming shared libraries, and exclude the
8737	  # DT_RUNPATH tag from executables and libraries.  But doing so
8738	  # requires that you compile everything twice, which is a pain.
8739	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8741	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8742	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8743	  else
8744	    ld_shlibs=no
8745	  fi
8746	;;
8747      esac
8748      ;;
8749
8750    sunos4*)
8751      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752      wlarc=
8753      hardcode_direct=yes
8754      hardcode_shlibpath_var=no
8755      ;;
8756
8757    *)
8758      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8760	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8761      else
8762	ld_shlibs=no
8763      fi
8764      ;;
8765    esac
8766
8767    if test no = "$ld_shlibs"; then
8768      runpath_var=
8769      hardcode_libdir_flag_spec=
8770      export_dynamic_flag_spec=
8771      whole_archive_flag_spec=
8772    fi
8773  else
8774    # PORTME fill in a description of your system's linker (not GNU ld)
8775    case $host_os in
8776    aix3*)
8777      allow_undefined_flag=unsupported
8778      always_export_symbols=yes
8779      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'
8780      # Note: this linker hardcodes the directories in LIBPATH if there
8781      # are no directories specified by -L.
8782      hardcode_minus_L=yes
8783      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8784	# Neither direct hardcoding nor static linking is supported with a
8785	# broken collect2.
8786	hardcode_direct=unsupported
8787      fi
8788      ;;
8789
8790    aix[4-9]*)
8791      if test ia64 = "$host_cpu"; then
8792	# On IA64, the linker does run time linking by default, so we don't
8793	# have to do anything special.
8794	aix_use_runtimelinking=no
8795	exp_sym_flag='-Bexport'
8796	no_entry_flag=
8797      else
8798	# If we're using GNU nm, then we don't want the "-C" option.
8799	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8800	# Without the "-l" option, or with the "-B" option, AIX nm treats
8801	# weak defined symbols like other global defined symbols, whereas
8802	# GNU nm marks them as "W".
8803	# While the 'weak' keyword is ignored in the Export File, we need
8804	# it in the Import File for the 'aix-soname' feature, so we have
8805	# to replace the "-B" option with "-P" for AIX nm.
8806	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8807	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8808	else
8809	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8810	fi
8811	aix_use_runtimelinking=no
8812
8813	# Test if we are trying to use run time linking or normal
8814	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8815	# have runtime linking enabled, and use it for executables.
8816	# For shared libraries, we enable/disable runtime linking
8817	# depending on the kind of the shared library created -
8818	# when "with_aix_soname,aix_use_runtimelinking" is:
8819	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8820	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8821	#            lib.a           static archive
8822	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8823	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8824	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8825	#            lib.a(lib.so.V) shared, rtl:no
8826	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8827	#            lib.a           static archive
8828	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8829	  for ld_flag in $LDFLAGS; do
8830	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8831	    aix_use_runtimelinking=yes
8832	    break
8833	  fi
8834	  done
8835	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8836	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
8837	    # so we don't have lib.a shared libs to link our executables.
8838	    # We have to force runtime linking in this case.
8839	    aix_use_runtimelinking=yes
8840	    LDFLAGS="$LDFLAGS -Wl,-brtl"
8841	  fi
8842	  ;;
8843	esac
8844
8845	exp_sym_flag='-bexport'
8846	no_entry_flag='-bnoentry'
8847      fi
8848
8849      # When large executables or shared objects are built, AIX ld can
8850      # have problems creating the table of contents.  If linking a library
8851      # or program results in "error TOC overflow" add -mminimal-toc to
8852      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8853      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8854
8855      archive_cmds=''
8856      hardcode_direct=yes
8857      hardcode_direct_absolute=yes
8858      hardcode_libdir_separator=':'
8859      link_all_deplibs=yes
8860      file_list_spec='$wl-f,'
8861      case $with_aix_soname,$aix_use_runtimelinking in
8862      aix,*) ;; # traditional, no import file
8863      svr4,* | *,yes) # use import file
8864	# The Import File defines what to hardcode.
8865	hardcode_direct=no
8866	hardcode_direct_absolute=no
8867	;;
8868      esac
8869
8870      if test yes = "$GCC"; then
8871	case $host_os in aix4.[012]|aix4.[012].*)
8872	# We only want to do this on AIX 4.2 and lower, the check
8873	# below for broken collect2 doesn't work under 4.3+
8874	  collect2name=`$CC -print-prog-name=collect2`
8875	  if test -f "$collect2name" &&
8876	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8877	  then
8878	  # We have reworked collect2
8879	  :
8880	  else
8881	  # We have old collect2
8882	  hardcode_direct=unsupported
8883	  # It fails to find uninstalled libraries when the uninstalled
8884	  # path is not listed in the libpath.  Setting hardcode_minus_L
8885	  # to unsupported forces relinking
8886	  hardcode_minus_L=yes
8887	  hardcode_libdir_flag_spec='-L$libdir'
8888	  hardcode_libdir_separator=
8889	  fi
8890	  ;;
8891	esac
8892	shared_flag='-shared'
8893	if test yes = "$aix_use_runtimelinking"; then
8894	  shared_flag="$shared_flag "'$wl-G'
8895	fi
8896	# Need to ensure runtime linking is disabled for the traditional
8897	# shared library, or the linker may eventually find shared libraries
8898	# /with/ Import File - we do not want to mix them.
8899	shared_flag_aix='-shared'
8900	shared_flag_svr4='-shared $wl-G'
8901      else
8902	# not using gcc
8903	if test ia64 = "$host_cpu"; then
8904	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8905	# chokes on -Wl,-G. The following line is correct:
8906	  shared_flag='-G'
8907	else
8908	  if test yes = "$aix_use_runtimelinking"; then
8909	    shared_flag='$wl-G'
8910	  else
8911	    shared_flag='$wl-bM:SRE'
8912	  fi
8913	  shared_flag_aix='$wl-bM:SRE'
8914	  shared_flag_svr4='$wl-G'
8915	fi
8916      fi
8917
8918      export_dynamic_flag_spec='$wl-bexpall'
8919      # It seems that -bexpall does not export symbols beginning with
8920      # underscore (_), so it is better to generate a list of symbols to export.
8921      always_export_symbols=yes
8922      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8923	# Warning - without using the other runtime loading flags (-brtl),
8924	# -berok will link without error, but may produce a broken library.
8925	allow_undefined_flag='-berok'
8926        # Determine the default libpath from the value encoded in an
8927        # empty executable.
8928        if test set = "${lt_cv_aix_libpath+set}"; then
8929  aix_libpath=$lt_cv_aix_libpath
8930else
8931  if ${lt_cv_aix_libpath_+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935/* end confdefs.h.  */
8936
8937int
8938main ()
8939{
8940
8941  ;
8942  return 0;
8943}
8944_ACEOF
8945if ac_fn_c_try_link "$LINENO"; then :
8946
8947  lt_aix_libpath_sed='
8948      /Import File Strings/,/^$/ {
8949	  /^0/ {
8950	      s/^0  *\([^ ]*\) *$/\1/
8951	      p
8952	  }
8953      }'
8954  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955  # Check for a 64-bit object if we didn't find anything.
8956  if test -z "$lt_cv_aix_libpath_"; then
8957    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958  fi
8959fi
8960rm -f core conftest.err conftest.$ac_objext \
8961    conftest$ac_exeext conftest.$ac_ext
8962  if test -z "$lt_cv_aix_libpath_"; then
8963    lt_cv_aix_libpath_=/usr/lib:/lib
8964  fi
8965
8966fi
8967
8968  aix_libpath=$lt_cv_aix_libpath_
8969fi
8970
8971        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8972        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8973      else
8974	if test ia64 = "$host_cpu"; then
8975	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8976	  allow_undefined_flag="-z nodefs"
8977	  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"
8978	else
8979	 # Determine the default libpath from the value encoded in an
8980	 # empty executable.
8981	 if test set = "${lt_cv_aix_libpath+set}"; then
8982  aix_libpath=$lt_cv_aix_libpath
8983else
8984  if ${lt_cv_aix_libpath_+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999
9000  lt_aix_libpath_sed='
9001      /Import File Strings/,/^$/ {
9002	  /^0/ {
9003	      s/^0  *\([^ ]*\) *$/\1/
9004	      p
9005	  }
9006      }'
9007  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9008  # Check for a 64-bit object if we didn't find anything.
9009  if test -z "$lt_cv_aix_libpath_"; then
9010    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011  fi
9012fi
9013rm -f core conftest.err conftest.$ac_objext \
9014    conftest$ac_exeext conftest.$ac_ext
9015  if test -z "$lt_cv_aix_libpath_"; then
9016    lt_cv_aix_libpath_=/usr/lib:/lib
9017  fi
9018
9019fi
9020
9021  aix_libpath=$lt_cv_aix_libpath_
9022fi
9023
9024	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9025	  # Warning - without using the other run time loading flags,
9026	  # -berok will link without error, but may produce a broken library.
9027	  no_undefined_flag=' $wl-bernotok'
9028	  allow_undefined_flag=' $wl-berok'
9029	  if test yes = "$with_gnu_ld"; then
9030	    # We only use this code for GNU lds that support --whole-archive.
9031	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9032	  else
9033	    # Exported symbols can be pulled into shared objects from archives
9034	    whole_archive_flag_spec='$convenience'
9035	  fi
9036	  archive_cmds_need_lc=yes
9037	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9038	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9039	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9040	  if test svr4 != "$with_aix_soname"; then
9041	    # This is similar to how AIX traditionally builds its shared libraries.
9042	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9043	  fi
9044	  if test aix != "$with_aix_soname"; then
9045	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9046	  else
9047	    # used by -dlpreopen to get the symbols
9048	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9049	  fi
9050	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9051	fi
9052      fi
9053      ;;
9054
9055    amigaos*)
9056      case $host_cpu in
9057      powerpc)
9058            # see comment about AmigaOS4 .so support
9059            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9060            archive_expsym_cmds=''
9061        ;;
9062      m68k)
9063            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)'
9064            hardcode_libdir_flag_spec='-L$libdir'
9065            hardcode_minus_L=yes
9066        ;;
9067      esac
9068      ;;
9069
9070    bsdi[45]*)
9071      export_dynamic_flag_spec=-rdynamic
9072      ;;
9073
9074    cygwin* | mingw* | pw32* | cegcc*)
9075      # When not using gcc, we currently assume that we are using
9076      # Microsoft Visual C++.
9077      # hardcode_libdir_flag_spec is actually meaningless, as there is
9078      # no search path for DLLs.
9079      case $cc_basename in
9080      cl*)
9081	# Native MSVC
9082	hardcode_libdir_flag_spec=' '
9083	allow_undefined_flag=unsupported
9084	always_export_symbols=yes
9085	file_list_spec='@'
9086	# Tell ltmain to make .lib files, not .a files.
9087	libext=lib
9088	# Tell ltmain to make .dll files, not .so files.
9089	shrext_cmds=.dll
9090	# FIXME: Setting linknames here is a bad hack.
9091	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9092	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9093            cp "$export_symbols" "$output_objdir/$soname.def";
9094            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9095          else
9096            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9097          fi~
9098          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9099          linknames='
9100	# The linker will not automatically build a static lib if we build a DLL.
9101	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9102	enable_shared_with_static_runtimes=yes
9103	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9104	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9105	# Don't use ranlib
9106	old_postinstall_cmds='chmod 644 $oldlib'
9107	postlink_cmds='lt_outputfile="@OUTPUT@"~
9108          lt_tool_outputfile="@TOOL_OUTPUT@"~
9109          case $lt_outputfile in
9110            *.exe|*.EXE) ;;
9111            *)
9112              lt_outputfile=$lt_outputfile.exe
9113              lt_tool_outputfile=$lt_tool_outputfile.exe
9114              ;;
9115          esac~
9116          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9117            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9118            $RM "$lt_outputfile.manifest";
9119          fi'
9120	;;
9121      *)
9122	# Assume MSVC wrapper
9123	hardcode_libdir_flag_spec=' '
9124	allow_undefined_flag=unsupported
9125	# Tell ltmain to make .lib files, not .a files.
9126	libext=lib
9127	# Tell ltmain to make .dll files, not .so files.
9128	shrext_cmds=.dll
9129	# FIXME: Setting linknames here is a bad hack.
9130	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9131	# The linker will automatically build a .lib file if we build a DLL.
9132	old_archive_from_new_cmds='true'
9133	# FIXME: Should let the user specify the lib program.
9134	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9135	enable_shared_with_static_runtimes=yes
9136	;;
9137      esac
9138      ;;
9139
9140    darwin* | rhapsody*)
9141
9142
9143  archive_cmds_need_lc=no
9144  hardcode_direct=no
9145  hardcode_automatic=yes
9146  hardcode_shlibpath_var=unsupported
9147  if test yes = "$lt_cv_ld_force_load"; then
9148    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\"`'
9149
9150  else
9151    whole_archive_flag_spec=''
9152  fi
9153  link_all_deplibs=yes
9154  allow_undefined_flag=$_lt_dar_allow_undefined
9155  case $cc_basename in
9156     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9157     *) _lt_dar_can_shared=$GCC ;;
9158  esac
9159  if test yes = "$_lt_dar_can_shared"; then
9160    output_verbose_link_cmd=func_echo_all
9161    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9162    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9163    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"
9164    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"
9165
9166  else
9167  ld_shlibs=no
9168  fi
9169
9170      ;;
9171
9172    dgux*)
9173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174      hardcode_libdir_flag_spec='-L$libdir'
9175      hardcode_shlibpath_var=no
9176      ;;
9177
9178    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9179    # support.  Future versions do this automatically, but an explicit c++rt0.o
9180    # does not break anything, and helps significantly (at the cost of a little
9181    # extra space).
9182    freebsd2.2*)
9183      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9184      hardcode_libdir_flag_spec='-R$libdir'
9185      hardcode_direct=yes
9186      hardcode_shlibpath_var=no
9187      ;;
9188
9189    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9190    freebsd2.*)
9191      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192      hardcode_direct=yes
9193      hardcode_minus_L=yes
9194      hardcode_shlibpath_var=no
9195      ;;
9196
9197    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9198    freebsd* | dragonfly*)
9199      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200      hardcode_libdir_flag_spec='-R$libdir'
9201      hardcode_direct=yes
9202      hardcode_shlibpath_var=no
9203      ;;
9204
9205    hpux9*)
9206      if test yes = "$GCC"; then
9207	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9208      else
9209	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9210      fi
9211      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9212      hardcode_libdir_separator=:
9213      hardcode_direct=yes
9214
9215      # hardcode_minus_L: Not really in the search PATH,
9216      # but as the default location of the library.
9217      hardcode_minus_L=yes
9218      export_dynamic_flag_spec='$wl-E'
9219      ;;
9220
9221    hpux10*)
9222      if test yes,no = "$GCC,$with_gnu_ld"; then
9223	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9224      else
9225	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9226      fi
9227      if test no = "$with_gnu_ld"; then
9228	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9229	hardcode_libdir_separator=:
9230	hardcode_direct=yes
9231	hardcode_direct_absolute=yes
9232	export_dynamic_flag_spec='$wl-E'
9233	# hardcode_minus_L: Not really in the search PATH,
9234	# but as the default location of the library.
9235	hardcode_minus_L=yes
9236      fi
9237      ;;
9238
9239    hpux11*)
9240      if test yes,no = "$GCC,$with_gnu_ld"; then
9241	case $host_cpu in
9242	hppa*64*)
9243	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9244	  ;;
9245	ia64*)
9246	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9247	  ;;
9248	*)
9249	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9250	  ;;
9251	esac
9252      else
9253	case $host_cpu in
9254	hppa*64*)
9255	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9256	  ;;
9257	ia64*)
9258	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9259	  ;;
9260	*)
9261
9262	  # Older versions of the 11.00 compiler do not understand -b yet
9263	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9264	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9265$as_echo_n "checking if $CC understands -b... " >&6; }
9266if ${lt_cv_prog_compiler__b+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  lt_cv_prog_compiler__b=no
9270   save_LDFLAGS=$LDFLAGS
9271   LDFLAGS="$LDFLAGS -b"
9272   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9273   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9274     # The linker can only warn and ignore the option if not recognized
9275     # So say no if there are warnings
9276     if test -s conftest.err; then
9277       # Append any errors to the config.log.
9278       cat conftest.err 1>&5
9279       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9280       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9281       if diff conftest.exp conftest.er2 >/dev/null; then
9282         lt_cv_prog_compiler__b=yes
9283       fi
9284     else
9285       lt_cv_prog_compiler__b=yes
9286     fi
9287   fi
9288   $RM -r conftest*
9289   LDFLAGS=$save_LDFLAGS
9290
9291fi
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9293$as_echo "$lt_cv_prog_compiler__b" >&6; }
9294
9295if test yes = "$lt_cv_prog_compiler__b"; then
9296    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9297else
9298    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9299fi
9300
9301	  ;;
9302	esac
9303      fi
9304      if test no = "$with_gnu_ld"; then
9305	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9306	hardcode_libdir_separator=:
9307
9308	case $host_cpu in
9309	hppa*64*|ia64*)
9310	  hardcode_direct=no
9311	  hardcode_shlibpath_var=no
9312	  ;;
9313	*)
9314	  hardcode_direct=yes
9315	  hardcode_direct_absolute=yes
9316	  export_dynamic_flag_spec='$wl-E'
9317
9318	  # hardcode_minus_L: Not really in the search PATH,
9319	  # but as the default location of the library.
9320	  hardcode_minus_L=yes
9321	  ;;
9322	esac
9323      fi
9324      ;;
9325
9326    irix5* | irix6* | nonstopux*)
9327      if test yes = "$GCC"; then
9328	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'
9329	# Try to use the -exported_symbol ld option, if it does not
9330	# work, assume that -exports_file does not work either and
9331	# implicitly export all symbols.
9332	# This should be the same for all languages, so no per-tag cache variable.
9333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9334$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9335if ${lt_cv_irix_exported_symbol+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  save_LDFLAGS=$LDFLAGS
9339	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9340	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h.  */
9342int foo (void) { return 0; }
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345  lt_cv_irix_exported_symbol=yes
9346else
9347  lt_cv_irix_exported_symbol=no
9348fi
9349rm -f core conftest.err conftest.$ac_objext \
9350    conftest$ac_exeext conftest.$ac_ext
9351           LDFLAGS=$save_LDFLAGS
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9354$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9355	if test yes = "$lt_cv_irix_exported_symbol"; then
9356          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'
9357	fi
9358	link_all_deplibs=no
9359      else
9360	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'
9361	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'
9362      fi
9363      archive_cmds_need_lc='no'
9364      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9365      hardcode_libdir_separator=:
9366      inherit_rpath=yes
9367      link_all_deplibs=yes
9368      ;;
9369
9370    linux*)
9371      case $cc_basename in
9372      tcc*)
9373	# Fabrice Bellard et al's Tiny C Compiler
9374	ld_shlibs=yes
9375	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376	;;
9377      esac
9378      ;;
9379
9380    netbsd* | netbsdelf*-gnu)
9381      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9382	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9383      else
9384	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9385      fi
9386      hardcode_libdir_flag_spec='-R$libdir'
9387      hardcode_direct=yes
9388      hardcode_shlibpath_var=no
9389      ;;
9390
9391    newsos6)
9392      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393      hardcode_direct=yes
9394      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9395      hardcode_libdir_separator=:
9396      hardcode_shlibpath_var=no
9397      ;;
9398
9399    *nto* | *qnx*)
9400      ;;
9401
9402    openbsd* | bitrig*)
9403      if test -f /usr/libexec/ld.so; then
9404	hardcode_direct=yes
9405	hardcode_shlibpath_var=no
9406	hardcode_direct_absolute=yes
9407	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9408	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9409	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9410	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9411	  export_dynamic_flag_spec='$wl-E'
9412	else
9413	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9415	fi
9416      else
9417	ld_shlibs=no
9418      fi
9419      ;;
9420
9421    os2*)
9422      hardcode_libdir_flag_spec='-L$libdir'
9423      hardcode_minus_L=yes
9424      allow_undefined_flag=unsupported
9425      shrext_cmds=.dll
9426      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9427	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9428	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9429	$ECHO EXPORTS >> $output_objdir/$libname.def~
9430	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9431	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9432	emximp -o $lib $output_objdir/$libname.def'
9433      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9434	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9435	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9436	$ECHO EXPORTS >> $output_objdir/$libname.def~
9437	prefix_cmds="$SED"~
9438	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9439	  prefix_cmds="$prefix_cmds -e 1d";
9440	fi~
9441	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9442	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9443	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9444	emximp -o $lib $output_objdir/$libname.def'
9445      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9446      enable_shared_with_static_runtimes=yes
9447      ;;
9448
9449    osf3*)
9450      if test yes = "$GCC"; then
9451	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9452	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'
9453      else
9454	allow_undefined_flag=' -expect_unresolved \*'
9455	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'
9456      fi
9457      archive_cmds_need_lc='no'
9458      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9459      hardcode_libdir_separator=:
9460      ;;
9461
9462    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9463      if test yes = "$GCC"; then
9464	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9465	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'
9466	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9467      else
9468	allow_undefined_flag=' -expect_unresolved \*'
9469	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'
9470	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~
9471          $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'
9472
9473	# Both c and cxx compiler support -rpath directly
9474	hardcode_libdir_flag_spec='-rpath $libdir'
9475      fi
9476      archive_cmds_need_lc='no'
9477      hardcode_libdir_separator=:
9478      ;;
9479
9480    solaris*)
9481      no_undefined_flag=' -z defs'
9482      if test yes = "$GCC"; then
9483	wlarc='$wl'
9484	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9485	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9486          $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'
9487      else
9488	case `$CC -V 2>&1` in
9489	*"Compilers 5.0"*)
9490	  wlarc=''
9491	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9493            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9494	  ;;
9495	*)
9496	  wlarc='$wl'
9497	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9498	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9499            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9500	  ;;
9501	esac
9502      fi
9503      hardcode_libdir_flag_spec='-R$libdir'
9504      hardcode_shlibpath_var=no
9505      case $host_os in
9506      solaris2.[0-5] | solaris2.[0-5].*) ;;
9507      *)
9508	# The compiler driver will combine and reorder linker options,
9509	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9510	# but is careful enough not to reorder.
9511	# Supported since Solaris 2.6 (maybe 2.5.1?)
9512	if test yes = "$GCC"; then
9513	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9514	else
9515	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9516	fi
9517	;;
9518      esac
9519      link_all_deplibs=yes
9520      ;;
9521
9522    sunos4*)
9523      if test sequent = "$host_vendor"; then
9524	# Use $CC to link under sequent, because it throws in some extra .o
9525	# files that make .init and .fini sections work.
9526	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9527      else
9528	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9529      fi
9530      hardcode_libdir_flag_spec='-L$libdir'
9531      hardcode_direct=yes
9532      hardcode_minus_L=yes
9533      hardcode_shlibpath_var=no
9534      ;;
9535
9536    sysv4)
9537      case $host_vendor in
9538	sni)
9539	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540	  hardcode_direct=yes # is this really true???
9541	;;
9542	siemens)
9543	  ## LD is ld it makes a PLAMLIB
9544	  ## CC just makes a GrossModule.
9545	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9546	  reload_cmds='$CC -r -o $output$reload_objs'
9547	  hardcode_direct=no
9548        ;;
9549	motorola)
9550	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9552	;;
9553      esac
9554      runpath_var='LD_RUN_PATH'
9555      hardcode_shlibpath_var=no
9556      ;;
9557
9558    sysv4.3*)
9559      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560      hardcode_shlibpath_var=no
9561      export_dynamic_flag_spec='-Bexport'
9562      ;;
9563
9564    sysv4*MP*)
9565      if test -d /usr/nec; then
9566	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567	hardcode_shlibpath_var=no
9568	runpath_var=LD_RUN_PATH
9569	hardcode_runpath_var=yes
9570	ld_shlibs=yes
9571      fi
9572      ;;
9573
9574    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9575      no_undefined_flag='$wl-z,text'
9576      archive_cmds_need_lc=no
9577      hardcode_shlibpath_var=no
9578      runpath_var='LD_RUN_PATH'
9579
9580      if test yes = "$GCC"; then
9581	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583      else
9584	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586      fi
9587      ;;
9588
9589    sysv5* | sco3.2v5* | sco5v6*)
9590      # Note: We CANNOT use -z defs as we might desire, because we do not
9591      # link with -lc, and that would cause any symbols used from libc to
9592      # always be unresolved, which means just about no library would
9593      # ever link correctly.  If we're not using GNU ld we use -z text
9594      # though, which does catch some bad symbols but isn't as heavy-handed
9595      # as -z defs.
9596      no_undefined_flag='$wl-z,text'
9597      allow_undefined_flag='$wl-z,nodefs'
9598      archive_cmds_need_lc=no
9599      hardcode_shlibpath_var=no
9600      hardcode_libdir_flag_spec='$wl-R,$libdir'
9601      hardcode_libdir_separator=':'
9602      link_all_deplibs=yes
9603      export_dynamic_flag_spec='$wl-Bexport'
9604      runpath_var='LD_RUN_PATH'
9605
9606      if test yes = "$GCC"; then
9607	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609      else
9610	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612      fi
9613      ;;
9614
9615    uts4*)
9616      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617      hardcode_libdir_flag_spec='-L$libdir'
9618      hardcode_shlibpath_var=no
9619      ;;
9620
9621    *)
9622      ld_shlibs=no
9623      ;;
9624    esac
9625
9626    if test sni = "$host_vendor"; then
9627      case $host in
9628      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9629	export_dynamic_flag_spec='$wl-Blargedynsym'
9630	;;
9631      esac
9632    fi
9633  fi
9634
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9636$as_echo "$ld_shlibs" >&6; }
9637test no = "$ld_shlibs" && can_build_shared=no
9638
9639with_gnu_ld=$with_gnu_ld
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655#
9656# Do we need to explicitly link libc?
9657#
9658case "x$archive_cmds_need_lc" in
9659x|xyes)
9660  # Assume -lc should be added
9661  archive_cmds_need_lc=yes
9662
9663  if test yes,yes = "$GCC,$enable_shared"; then
9664    case $archive_cmds in
9665    *'~'*)
9666      # FIXME: we may have to deal with multi-command sequences.
9667      ;;
9668    '$CC '*)
9669      # Test whether the compiler implicitly links with -lc since on some
9670      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9671      # to ld, don't add -lc before -lgcc.
9672      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9673$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9674if ${lt_cv_archive_cmds_need_lc+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  $RM conftest*
9678	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9679
9680	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9681  (eval $ac_compile) 2>&5
9682  ac_status=$?
9683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684  test $ac_status = 0; } 2>conftest.err; then
9685	  soname=conftest
9686	  lib=conftest
9687	  libobjs=conftest.$ac_objext
9688	  deplibs=
9689	  wl=$lt_prog_compiler_wl
9690	  pic_flag=$lt_prog_compiler_pic
9691	  compiler_flags=-v
9692	  linker_flags=-v
9693	  verstring=
9694	  output_objdir=.
9695	  libname=conftest
9696	  lt_save_allow_undefined_flag=$allow_undefined_flag
9697	  allow_undefined_flag=
9698	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9699  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9700  ac_status=$?
9701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702  test $ac_status = 0; }
9703	  then
9704	    lt_cv_archive_cmds_need_lc=no
9705	  else
9706	    lt_cv_archive_cmds_need_lc=yes
9707	  fi
9708	  allow_undefined_flag=$lt_save_allow_undefined_flag
9709	else
9710	  cat conftest.err 1>&5
9711	fi
9712	$RM conftest*
9713
9714fi
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9716$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9717      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9718      ;;
9719    esac
9720  fi
9721  ;;
9722esac
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9876$as_echo_n "checking dynamic linker characteristics... " >&6; }
9877
9878if test yes = "$GCC"; then
9879  case $host_os in
9880    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9881    *) lt_awk_arg='/^libraries:/' ;;
9882  esac
9883  case $host_os in
9884    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9885    *) lt_sed_strip_eq='s|=/|/|g' ;;
9886  esac
9887  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9888  case $lt_search_path_spec in
9889  *\;*)
9890    # if the path contains ";" then we assume it to be the separator
9891    # otherwise default to the standard path separator (i.e. ":") - it is
9892    # assumed that no part of a normal pathname contains ";" but that should
9893    # okay in the real world where ";" in dirpaths is itself problematic.
9894    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9895    ;;
9896  *)
9897    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9898    ;;
9899  esac
9900  # Ok, now we have the path, separated by spaces, we can step through it
9901  # and add multilib dir if necessary...
9902  lt_tmp_lt_search_path_spec=
9903  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9904  # ...but if some path component already ends with the multilib dir we assume
9905  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9906  case "$lt_multi_os_dir; $lt_search_path_spec " in
9907  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9908    lt_multi_os_dir=
9909    ;;
9910  esac
9911  for lt_sys_path in $lt_search_path_spec; do
9912    if test -d "$lt_sys_path$lt_multi_os_dir"; then
9913      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9914    elif test -n "$lt_multi_os_dir"; then
9915      test -d "$lt_sys_path" && \
9916	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9917    fi
9918  done
9919  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9920BEGIN {RS = " "; FS = "/|\n";} {
9921  lt_foo = "";
9922  lt_count = 0;
9923  for (lt_i = NF; lt_i > 0; lt_i--) {
9924    if ($lt_i != "" && $lt_i != ".") {
9925      if ($lt_i == "..") {
9926        lt_count++;
9927      } else {
9928        if (lt_count == 0) {
9929          lt_foo = "/" $lt_i lt_foo;
9930        } else {
9931          lt_count--;
9932        }
9933      }
9934    }
9935  }
9936  if (lt_foo != "") { lt_freq[lt_foo]++; }
9937  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9938}'`
9939  # AWK program above erroneously prepends '/' to C:/dos/paths
9940  # for these hosts.
9941  case $host_os in
9942    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9943      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9944  esac
9945  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9946else
9947  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9948fi
9949library_names_spec=
9950libname_spec='lib$name'
9951soname_spec=
9952shrext_cmds=.so
9953postinstall_cmds=
9954postuninstall_cmds=
9955finish_cmds=
9956finish_eval=
9957shlibpath_var=
9958shlibpath_overrides_runpath=unknown
9959version_type=none
9960dynamic_linker="$host_os ld.so"
9961sys_lib_dlsearch_path_spec="/lib /usr/lib"
9962need_lib_prefix=unknown
9963hardcode_into_libs=no
9964
9965# when you set need_version to no, make sure it does not cause -set_version
9966# flags to be left without arguments
9967need_version=unknown
9968
9969
9970
9971case $host_os in
9972aix3*)
9973  version_type=linux # correct to gnu/linux during the next big refactor
9974  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9975  shlibpath_var=LIBPATH
9976
9977  # AIX 3 has no versioning support, so we append a major version to the name.
9978  soname_spec='$libname$release$shared_ext$major'
9979  ;;
9980
9981aix[4-9]*)
9982  version_type=linux # correct to gnu/linux during the next big refactor
9983  need_lib_prefix=no
9984  need_version=no
9985  hardcode_into_libs=yes
9986  if test ia64 = "$host_cpu"; then
9987    # AIX 5 supports IA64
9988    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9989    shlibpath_var=LD_LIBRARY_PATH
9990  else
9991    # With GCC up to 2.95.x, collect2 would create an import file
9992    # for dependence libraries.  The import file would start with
9993    # the line '#! .'.  This would cause the generated library to
9994    # depend on '.', always an invalid library.  This was fixed in
9995    # development snapshots of GCC prior to 3.0.
9996    case $host_os in
9997      aix4 | aix4.[01] | aix4.[01].*)
9998      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9999	   echo ' yes '
10000	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10001	:
10002      else
10003	can_build_shared=no
10004      fi
10005      ;;
10006    esac
10007    # Using Import Files as archive members, it is possible to support
10008    # filename-based versioning of shared library archives on AIX. While
10009    # this would work for both with and without runtime linking, it will
10010    # prevent static linking of such archives. So we do filename-based
10011    # shared library versioning with .so extension only, which is used
10012    # when both runtime linking and shared linking is enabled.
10013    # Unfortunately, runtime linking may impact performance, so we do
10014    # not want this to be the default eventually. Also, we use the
10015    # versioned .so libs for executables only if there is the -brtl
10016    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10017    # To allow for filename-based versioning support, we need to create
10018    # libNAME.so.V as an archive file, containing:
10019    # *) an Import File, referring to the versioned filename of the
10020    #    archive as well as the shared archive member, telling the
10021    #    bitwidth (32 or 64) of that shared object, and providing the
10022    #    list of exported symbols of that shared object, eventually
10023    #    decorated with the 'weak' keyword
10024    # *) the shared object with the F_LOADONLY flag set, to really avoid
10025    #    it being seen by the linker.
10026    # At run time we better use the real file rather than another symlink,
10027    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10028
10029    case $with_aix_soname,$aix_use_runtimelinking in
10030    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10031    # soname into executable. Probably we can add versioning support to
10032    # collect2, so additional links can be useful in future.
10033    aix,yes) # traditional libtool
10034      dynamic_linker='AIX unversionable lib.so'
10035      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10036      # instead of lib<name>.a to let people know that these are not
10037      # typical AIX shared libraries.
10038      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10039      ;;
10040    aix,no) # traditional AIX only
10041      dynamic_linker='AIX lib.a(lib.so.V)'
10042      # We preserve .a as extension for shared libraries through AIX4.2
10043      # and later when we are not doing run time linking.
10044      library_names_spec='$libname$release.a $libname.a'
10045      soname_spec='$libname$release$shared_ext$major'
10046      ;;
10047    svr4,*) # full svr4 only
10048      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10049      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10050      # We do not specify a path in Import Files, so LIBPATH fires.
10051      shlibpath_overrides_runpath=yes
10052      ;;
10053    *,yes) # both, prefer svr4
10054      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10055      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10056      # unpreferred sharedlib libNAME.a needs extra handling
10057      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10058      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10059      # We do not specify a path in Import Files, so LIBPATH fires.
10060      shlibpath_overrides_runpath=yes
10061      ;;
10062    *,no) # both, prefer aix
10063      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10064      library_names_spec='$libname$release.a $libname.a'
10065      soname_spec='$libname$release$shared_ext$major'
10066      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10067      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10068      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10069      ;;
10070    esac
10071    shlibpath_var=LIBPATH
10072  fi
10073  ;;
10074
10075amigaos*)
10076  case $host_cpu in
10077  powerpc)
10078    # Since July 2007 AmigaOS4 officially supports .so libraries.
10079    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10080    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10081    ;;
10082  m68k)
10083    library_names_spec='$libname.ixlibrary $libname.a'
10084    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10085    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10086    ;;
10087  esac
10088  ;;
10089
10090beos*)
10091  library_names_spec='$libname$shared_ext'
10092  dynamic_linker="$host_os ld.so"
10093  shlibpath_var=LIBRARY_PATH
10094  ;;
10095
10096bsdi[45]*)
10097  version_type=linux # correct to gnu/linux during the next big refactor
10098  need_version=no
10099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10100  soname_spec='$libname$release$shared_ext$major'
10101  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10104  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10105  # the default ld.so.conf also contains /usr/contrib/lib and
10106  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10107  # libtool to hard-code these into programs
10108  ;;
10109
10110cygwin* | mingw* | pw32* | cegcc*)
10111  version_type=windows
10112  shrext_cmds=.dll
10113  need_version=no
10114  need_lib_prefix=no
10115
10116  case $GCC,$cc_basename in
10117  yes,*)
10118    # gcc
10119    library_names_spec='$libname.dll.a'
10120    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10121    postinstall_cmds='base_file=`basename \$file`~
10122      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10123      dldir=$destdir/`dirname \$dlpath`~
10124      test -d \$dldir || mkdir -p \$dldir~
10125      $install_prog $dir/$dlname \$dldir/$dlname~
10126      chmod a+x \$dldir/$dlname~
10127      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10128        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10129      fi'
10130    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10131      dlpath=$dir/\$dldll~
10132       $RM \$dlpath'
10133    shlibpath_overrides_runpath=yes
10134
10135    case $host_os in
10136    cygwin*)
10137      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10138      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10139
10140      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10141      ;;
10142    mingw* | cegcc*)
10143      # MinGW DLLs use traditional 'lib' prefix
10144      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10145      ;;
10146    pw32*)
10147      # pw32 DLLs use 'pw' prefix rather than 'lib'
10148      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10149      ;;
10150    esac
10151    dynamic_linker='Win32 ld.exe'
10152    ;;
10153
10154  *,cl*)
10155    # Native MSVC
10156    libname_spec='$name'
10157    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10158    library_names_spec='$libname.dll.lib'
10159
10160    case $build_os in
10161    mingw*)
10162      sys_lib_search_path_spec=
10163      lt_save_ifs=$IFS
10164      IFS=';'
10165      for lt_path in $LIB
10166      do
10167        IFS=$lt_save_ifs
10168        # Let DOS variable expansion print the short 8.3 style file name.
10169        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10170        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10171      done
10172      IFS=$lt_save_ifs
10173      # Convert to MSYS style.
10174      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10175      ;;
10176    cygwin*)
10177      # Convert to unix form, then to dos form, then back to unix form
10178      # but this time dos style (no spaces!) so that the unix form looks
10179      # like /cygdrive/c/PROGRA~1:/cygdr...
10180      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10181      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10182      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10183      ;;
10184    *)
10185      sys_lib_search_path_spec=$LIB
10186      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10187        # It is most probably a Windows format PATH.
10188        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10189      else
10190        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10191      fi
10192      # FIXME: find the short name or the path components, as spaces are
10193      # common. (e.g. "Program Files" -> "PROGRA~1")
10194      ;;
10195    esac
10196
10197    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10198    postinstall_cmds='base_file=`basename \$file`~
10199      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10200      dldir=$destdir/`dirname \$dlpath`~
10201      test -d \$dldir || mkdir -p \$dldir~
10202      $install_prog $dir/$dlname \$dldir/$dlname'
10203    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10204      dlpath=$dir/\$dldll~
10205       $RM \$dlpath'
10206    shlibpath_overrides_runpath=yes
10207    dynamic_linker='Win32 link.exe'
10208    ;;
10209
10210  *)
10211    # Assume MSVC wrapper
10212    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10213    dynamic_linker='Win32 ld.exe'
10214    ;;
10215  esac
10216  # FIXME: first we should search . and the directory the executable is in
10217  shlibpath_var=PATH
10218  ;;
10219
10220darwin* | rhapsody*)
10221  dynamic_linker="$host_os dyld"
10222  version_type=darwin
10223  need_lib_prefix=no
10224  need_version=no
10225  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10226  soname_spec='$libname$release$major$shared_ext'
10227  shlibpath_overrides_runpath=yes
10228  shlibpath_var=DYLD_LIBRARY_PATH
10229  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10230
10231  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10232  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10233  ;;
10234
10235dgux*)
10236  version_type=linux # correct to gnu/linux during the next big refactor
10237  need_lib_prefix=no
10238  need_version=no
10239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10240  soname_spec='$libname$release$shared_ext$major'
10241  shlibpath_var=LD_LIBRARY_PATH
10242  ;;
10243
10244freebsd* | dragonfly*)
10245  # DragonFly does not have aout.  When/if they implement a new
10246  # versioning mechanism, adjust this.
10247  if test -x /usr/bin/objformat; then
10248    objformat=`/usr/bin/objformat`
10249  else
10250    case $host_os in
10251    freebsd[23].*) objformat=aout ;;
10252    *) objformat=elf ;;
10253    esac
10254  fi
10255  version_type=freebsd-$objformat
10256  case $version_type in
10257    freebsd-elf*)
10258      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10259      soname_spec='$libname$release$shared_ext$major'
10260      need_version=no
10261      need_lib_prefix=no
10262      ;;
10263    freebsd-*)
10264      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10265      need_version=yes
10266      ;;
10267  esac
10268  shlibpath_var=LD_LIBRARY_PATH
10269  case $host_os in
10270  freebsd2.*)
10271    shlibpath_overrides_runpath=yes
10272    ;;
10273  freebsd3.[01]* | freebsdelf3.[01]*)
10274    shlibpath_overrides_runpath=yes
10275    hardcode_into_libs=yes
10276    ;;
10277  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10278  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10279    shlibpath_overrides_runpath=no
10280    hardcode_into_libs=yes
10281    ;;
10282  *) # from 4.6 on, and DragonFly
10283    shlibpath_overrides_runpath=yes
10284    hardcode_into_libs=yes
10285    ;;
10286  esac
10287  ;;
10288
10289haiku*)
10290  version_type=linux # correct to gnu/linux during the next big refactor
10291  need_lib_prefix=no
10292  need_version=no
10293  dynamic_linker="$host_os runtime_loader"
10294  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10295  soname_spec='$libname$release$shared_ext$major'
10296  shlibpath_var=LIBRARY_PATH
10297  shlibpath_overrides_runpath=no
10298  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10299  hardcode_into_libs=yes
10300  ;;
10301
10302hpux9* | hpux10* | hpux11*)
10303  # Give a soname corresponding to the major version so that dld.sl refuses to
10304  # link against other versions.
10305  version_type=sunos
10306  need_lib_prefix=no
10307  need_version=no
10308  case $host_cpu in
10309  ia64*)
10310    shrext_cmds='.so'
10311    hardcode_into_libs=yes
10312    dynamic_linker="$host_os dld.so"
10313    shlibpath_var=LD_LIBRARY_PATH
10314    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10315    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10316    soname_spec='$libname$release$shared_ext$major'
10317    if test 32 = "$HPUX_IA64_MODE"; then
10318      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10319      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10320    else
10321      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10322      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10323    fi
10324    ;;
10325  hppa*64*)
10326    shrext_cmds='.sl'
10327    hardcode_into_libs=yes
10328    dynamic_linker="$host_os dld.sl"
10329    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10330    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10331    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10332    soname_spec='$libname$release$shared_ext$major'
10333    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10334    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10335    ;;
10336  *)
10337    shrext_cmds='.sl'
10338    dynamic_linker="$host_os dld.sl"
10339    shlibpath_var=SHLIB_PATH
10340    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10341    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10342    soname_spec='$libname$release$shared_ext$major'
10343    ;;
10344  esac
10345  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10346  postinstall_cmds='chmod 555 $lib'
10347  # or fails outright, so override atomically:
10348  install_override_mode=555
10349  ;;
10350
10351interix[3-9]*)
10352  version_type=linux # correct to gnu/linux during the next big refactor
10353  need_lib_prefix=no
10354  need_version=no
10355  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10356  soname_spec='$libname$release$shared_ext$major'
10357  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10358  shlibpath_var=LD_LIBRARY_PATH
10359  shlibpath_overrides_runpath=no
10360  hardcode_into_libs=yes
10361  ;;
10362
10363irix5* | irix6* | nonstopux*)
10364  case $host_os in
10365    nonstopux*) version_type=nonstopux ;;
10366    *)
10367	if test yes = "$lt_cv_prog_gnu_ld"; then
10368		version_type=linux # correct to gnu/linux during the next big refactor
10369	else
10370		version_type=irix
10371	fi ;;
10372  esac
10373  need_lib_prefix=no
10374  need_version=no
10375  soname_spec='$libname$release$shared_ext$major'
10376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10377  case $host_os in
10378  irix5* | nonstopux*)
10379    libsuff= shlibsuff=
10380    ;;
10381  *)
10382    case $LD in # libtool.m4 will add one of these switches to LD
10383    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10384      libsuff= shlibsuff= libmagic=32-bit;;
10385    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10386      libsuff=32 shlibsuff=N32 libmagic=N32;;
10387    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10388      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10389    *) libsuff= shlibsuff= libmagic=never-match;;
10390    esac
10391    ;;
10392  esac
10393  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10394  shlibpath_overrides_runpath=no
10395  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10396  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10397  hardcode_into_libs=yes
10398  ;;
10399
10400# No shared lib support for Linux oldld, aout, or coff.
10401linux*oldld* | linux*aout* | linux*coff*)
10402  dynamic_linker=no
10403  ;;
10404
10405linux*android*)
10406  version_type=none # Android doesn't support versioned libraries.
10407  need_lib_prefix=no
10408  need_version=no
10409  library_names_spec='$libname$release$shared_ext'
10410  soname_spec='$libname$release$shared_ext'
10411  finish_cmds=
10412  shlibpath_var=LD_LIBRARY_PATH
10413  shlibpath_overrides_runpath=yes
10414
10415  # This implies no fast_install, which is unacceptable.
10416  # Some rework will be needed to allow for fast_install
10417  # before this can be enabled.
10418  hardcode_into_libs=yes
10419
10420  dynamic_linker='Android linker'
10421  # Don't embed -rpath directories since the linker doesn't support them.
10422  hardcode_libdir_flag_spec='-L$libdir'
10423  ;;
10424
10425# This must be glibc/ELF.
10426linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10427  version_type=linux # correct to gnu/linux during the next big refactor
10428  need_lib_prefix=no
10429  need_version=no
10430  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10431  soname_spec='$libname$release$shared_ext$major'
10432  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=no
10435
10436  # Some binutils ld are patched to set DT_RUNPATH
10437  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  lt_cv_shlibpath_overrides_runpath=no
10441    save_LDFLAGS=$LDFLAGS
10442    save_libdir=$libdir
10443    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10444	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447
10448int
10449main ()
10450{
10451
10452  ;
10453  return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10458  lt_cv_shlibpath_overrides_runpath=yes
10459fi
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462    conftest$ac_exeext conftest.$ac_ext
10463    LDFLAGS=$save_LDFLAGS
10464    libdir=$save_libdir
10465
10466fi
10467
10468  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10469
10470  # This implies no fast_install, which is unacceptable.
10471  # Some rework will be needed to allow for fast_install
10472  # before this can be enabled.
10473  hardcode_into_libs=yes
10474
10475  # Ideally, we could use ldconfig to report *all* directores which are
10476  # searched for libraries, however this is still not possible.  Aside from not
10477  # being certain /sbin/ldconfig is available, command
10478  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10479  # even though it is searched at run-time.  Try to do the best guess by
10480  # appending ld.so.conf contents (and includes) to the search path.
10481  if test -f /etc/ld.so.conf; then
10482    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' ' '`
10483    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10484  fi
10485
10486  # We used to test for /lib/ld.so.1 and disable shared libraries on
10487  # powerpc, because MkLinux only supported shared libraries with the
10488  # GNU dynamic linker.  Since this was broken with cross compilers,
10489  # most powerpc-linux boxes support dynamic linking these days and
10490  # people can always --disable-shared, the test was removed, and we
10491  # assume the GNU/Linux dynamic linker is in use.
10492  dynamic_linker='GNU/Linux ld.so'
10493  ;;
10494
10495netbsdelf*-gnu)
10496  version_type=linux
10497  need_lib_prefix=no
10498  need_version=no
10499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500  soname_spec='${libname}${release}${shared_ext}$major'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=no
10503  hardcode_into_libs=yes
10504  dynamic_linker='NetBSD ld.elf_so'
10505  ;;
10506
10507netbsd*)
10508  version_type=sunos
10509  need_lib_prefix=no
10510  need_version=no
10511  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10513    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514    dynamic_linker='NetBSD (a.out) ld.so'
10515  else
10516    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10517    soname_spec='$libname$release$shared_ext$major'
10518    dynamic_linker='NetBSD ld.elf_so'
10519  fi
10520  shlibpath_var=LD_LIBRARY_PATH
10521  shlibpath_overrides_runpath=yes
10522  hardcode_into_libs=yes
10523  ;;
10524
10525newsos6)
10526  version_type=linux # correct to gnu/linux during the next big refactor
10527  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  shlibpath_overrides_runpath=yes
10530  ;;
10531
10532*nto* | *qnx*)
10533  version_type=qnx
10534  need_lib_prefix=no
10535  need_version=no
10536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10537  soname_spec='$libname$release$shared_ext$major'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  shlibpath_overrides_runpath=no
10540  hardcode_into_libs=yes
10541  dynamic_linker='ldqnx.so'
10542  ;;
10543
10544openbsd* | bitrig*)
10545  version_type=sunos
10546  sys_lib_dlsearch_path_spec=/usr/lib
10547  need_lib_prefix=no
10548  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10549    need_version=no
10550  else
10551    need_version=yes
10552  fi
10553  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10554  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555  shlibpath_var=LD_LIBRARY_PATH
10556  shlibpath_overrides_runpath=yes
10557  ;;
10558
10559os2*)
10560  libname_spec='$name'
10561  version_type=windows
10562  shrext_cmds=.dll
10563  need_version=no
10564  need_lib_prefix=no
10565  # OS/2 can only load a DLL with a base name of 8 characters or less.
10566  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10567    v=$($ECHO $release$versuffix | tr -d .-);
10568    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10569    $ECHO $n$v`$shared_ext'
10570  library_names_spec='${libname}_dll.$libext'
10571  dynamic_linker='OS/2 ld.exe'
10572  shlibpath_var=BEGINLIBPATH
10573  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10574  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10575  postinstall_cmds='base_file=`basename \$file`~
10576    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10577    dldir=$destdir/`dirname \$dlpath`~
10578    test -d \$dldir || mkdir -p \$dldir~
10579    $install_prog $dir/$dlname \$dldir/$dlname~
10580    chmod a+x \$dldir/$dlname~
10581    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10582      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10583    fi'
10584  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10585    dlpath=$dir/\$dldll~
10586    $RM \$dlpath'
10587  ;;
10588
10589osf3* | osf4* | osf5*)
10590  version_type=osf
10591  need_lib_prefix=no
10592  need_version=no
10593  soname_spec='$libname$release$shared_ext$major'
10594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10595  shlibpath_var=LD_LIBRARY_PATH
10596  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10597  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10598  ;;
10599
10600rdos*)
10601  dynamic_linker=no
10602  ;;
10603
10604solaris*)
10605  version_type=linux # correct to gnu/linux during the next big refactor
10606  need_lib_prefix=no
10607  need_version=no
10608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10609  soname_spec='$libname$release$shared_ext$major'
10610  shlibpath_var=LD_LIBRARY_PATH
10611  shlibpath_overrides_runpath=yes
10612  hardcode_into_libs=yes
10613  # ldd complains unless libraries are executable
10614  postinstall_cmds='chmod +x $lib'
10615  ;;
10616
10617sunos4*)
10618  version_type=sunos
10619  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10620  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10621  shlibpath_var=LD_LIBRARY_PATH
10622  shlibpath_overrides_runpath=yes
10623  if test yes = "$with_gnu_ld"; then
10624    need_lib_prefix=no
10625  fi
10626  need_version=yes
10627  ;;
10628
10629sysv4 | sysv4.3*)
10630  version_type=linux # correct to gnu/linux during the next big refactor
10631  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632  soname_spec='$libname$release$shared_ext$major'
10633  shlibpath_var=LD_LIBRARY_PATH
10634  case $host_vendor in
10635    sni)
10636      shlibpath_overrides_runpath=no
10637      need_lib_prefix=no
10638      runpath_var=LD_RUN_PATH
10639      ;;
10640    siemens)
10641      need_lib_prefix=no
10642      ;;
10643    motorola)
10644      need_lib_prefix=no
10645      need_version=no
10646      shlibpath_overrides_runpath=no
10647      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10648      ;;
10649  esac
10650  ;;
10651
10652sysv4*MP*)
10653  if test -d /usr/nec; then
10654    version_type=linux # correct to gnu/linux during the next big refactor
10655    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10656    soname_spec='$libname$shared_ext.$major'
10657    shlibpath_var=LD_LIBRARY_PATH
10658  fi
10659  ;;
10660
10661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10662  version_type=sco
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10666  soname_spec='$libname$release$shared_ext$major'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  shlibpath_overrides_runpath=yes
10669  hardcode_into_libs=yes
10670  if test yes = "$with_gnu_ld"; then
10671    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10672  else
10673    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10674    case $host_os in
10675      sco3.2v5*)
10676        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10677	;;
10678    esac
10679  fi
10680  sys_lib_dlsearch_path_spec='/usr/lib'
10681  ;;
10682
10683tpf*)
10684  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10685  version_type=linux # correct to gnu/linux during the next big refactor
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10689  shlibpath_var=LD_LIBRARY_PATH
10690  shlibpath_overrides_runpath=no
10691  hardcode_into_libs=yes
10692  ;;
10693
10694uts4*)
10695  version_type=linux # correct to gnu/linux during the next big refactor
10696  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10697  soname_spec='$libname$release$shared_ext$major'
10698  shlibpath_var=LD_LIBRARY_PATH
10699  ;;
10700
10701*)
10702  dynamic_linker=no
10703  ;;
10704esac
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10706$as_echo "$dynamic_linker" >&6; }
10707test no = "$dynamic_linker" && can_build_shared=no
10708
10709variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10710if test yes = "$GCC"; then
10711  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10712fi
10713
10714if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10715  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10716fi
10717
10718if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10719  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10720fi
10721
10722# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10723configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10724
10725# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10726func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10727
10728# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10729configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10828$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10829hardcode_action=
10830if test -n "$hardcode_libdir_flag_spec" ||
10831   test -n "$runpath_var" ||
10832   test yes = "$hardcode_automatic"; then
10833
10834  # We can hardcode non-existent directories.
10835  if test no != "$hardcode_direct" &&
10836     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10837     # have to relink, otherwise we might link with an installed library
10838     # when we should be linking with a yet-to-be-installed one
10839     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10840     test no != "$hardcode_minus_L"; then
10841    # Linking always hardcodes the temporary library directory.
10842    hardcode_action=relink
10843  else
10844    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10845    hardcode_action=immediate
10846  fi
10847else
10848  # We cannot hardcode anything, or else we can only hardcode existing
10849  # directories.
10850  hardcode_action=unsupported
10851fi
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10853$as_echo "$hardcode_action" >&6; }
10854
10855if test relink = "$hardcode_action" ||
10856   test yes = "$inherit_rpath"; then
10857  # Fast installation is not supported
10858  enable_fast_install=no
10859elif test yes = "$shlibpath_overrides_runpath" ||
10860     test no = "$enable_shared"; then
10861  # Fast installation is not necessary
10862  enable_fast_install=needless
10863fi
10864
10865
10866
10867
10868
10869
10870  if test yes != "$enable_dlopen"; then
10871  enable_dlopen=unknown
10872  enable_dlopen_self=unknown
10873  enable_dlopen_self_static=unknown
10874else
10875  lt_cv_dlopen=no
10876  lt_cv_dlopen_libs=
10877
10878  case $host_os in
10879  beos*)
10880    lt_cv_dlopen=load_add_on
10881    lt_cv_dlopen_libs=
10882    lt_cv_dlopen_self=yes
10883    ;;
10884
10885  mingw* | pw32* | cegcc*)
10886    lt_cv_dlopen=LoadLibrary
10887    lt_cv_dlopen_libs=
10888    ;;
10889
10890  cygwin*)
10891    lt_cv_dlopen=dlopen
10892    lt_cv_dlopen_libs=
10893    ;;
10894
10895  darwin*)
10896    # if libdl is installed we need to link against it
10897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10898$as_echo_n "checking for dlopen in -ldl... " >&6; }
10899if ${ac_cv_lib_dl_dlopen+:} false; then :
10900  $as_echo_n "(cached) " >&6
10901else
10902  ac_check_lib_save_LIBS=$LIBS
10903LIBS="-ldl  $LIBS"
10904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905/* end confdefs.h.  */
10906
10907/* Override any GCC internal prototype to avoid an error.
10908   Use char because int might match the return type of a GCC
10909   builtin and then its argument prototype would still apply.  */
10910#ifdef __cplusplus
10911extern "C"
10912#endif
10913char dlopen ();
10914int
10915main ()
10916{
10917return dlopen ();
10918  ;
10919  return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923  ac_cv_lib_dl_dlopen=yes
10924else
10925  ac_cv_lib_dl_dlopen=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928    conftest$ac_exeext conftest.$ac_ext
10929LIBS=$ac_check_lib_save_LIBS
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10934  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10935else
10936
10937    lt_cv_dlopen=dyld
10938    lt_cv_dlopen_libs=
10939    lt_cv_dlopen_self=yes
10940
10941fi
10942
10943    ;;
10944
10945  tpf*)
10946    # Don't try to run any link tests for TPF.  We know it's impossible
10947    # because TPF is a cross-compiler, and we know how we open DSOs.
10948    lt_cv_dlopen=dlopen
10949    lt_cv_dlopen_libs=
10950    lt_cv_dlopen_self=no
10951    ;;
10952
10953  *)
10954    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10955if test "x$ac_cv_func_shl_load" = xyes; then :
10956  lt_cv_dlopen=shl_load
10957else
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10959$as_echo_n "checking for shl_load in -ldld... " >&6; }
10960if ${ac_cv_lib_dld_shl_load+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldld  $LIBS"
10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969   Use char because int might match the return type of a GCC
10970   builtin and then its argument prototype would still apply.  */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char shl_load ();
10975int
10976main ()
10977{
10978return shl_load ();
10979  ;
10980  return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_link "$LINENO"; then :
10984  ac_cv_lib_dld_shl_load=yes
10985else
10986  ac_cv_lib_dld_shl_load=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989    conftest$ac_exeext conftest.$ac_ext
10990LIBS=$ac_check_lib_save_LIBS
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10993$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10994if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10995  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10996else
10997  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10998if test "x$ac_cv_func_dlopen" = xyes; then :
10999  lt_cv_dlopen=dlopen
11000else
11001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11002$as_echo_n "checking for dlopen in -ldl... " >&6; }
11003if ${ac_cv_lib_dl_dlopen+:} false; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  ac_check_lib_save_LIBS=$LIBS
11007LIBS="-ldl  $LIBS"
11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h.  */
11010
11011/* Override any GCC internal prototype to avoid an error.
11012   Use char because int might match the return type of a GCC
11013   builtin and then its argument prototype would still apply.  */
11014#ifdef __cplusplus
11015extern "C"
11016#endif
11017char dlopen ();
11018int
11019main ()
11020{
11021return dlopen ();
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027  ac_cv_lib_dl_dlopen=yes
11028else
11029  ac_cv_lib_dl_dlopen=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032    conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11037if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11038  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11039else
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11041$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11042if ${ac_cv_lib_svld_dlopen+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  ac_check_lib_save_LIBS=$LIBS
11046LIBS="-lsvld  $LIBS"
11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h.  */
11049
11050/* Override any GCC internal prototype to avoid an error.
11051   Use char because int might match the return type of a GCC
11052   builtin and then its argument prototype would still apply.  */
11053#ifdef __cplusplus
11054extern "C"
11055#endif
11056char dlopen ();
11057int
11058main ()
11059{
11060return dlopen ();
11061  ;
11062  return 0;
11063}
11064_ACEOF
11065if ac_fn_c_try_link "$LINENO"; then :
11066  ac_cv_lib_svld_dlopen=yes
11067else
11068  ac_cv_lib_svld_dlopen=no
11069fi
11070rm -f core conftest.err conftest.$ac_objext \
11071    conftest$ac_exeext conftest.$ac_ext
11072LIBS=$ac_check_lib_save_LIBS
11073fi
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11075$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11076if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11077  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11078else
11079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11080$as_echo_n "checking for dld_link in -ldld... " >&6; }
11081if ${ac_cv_lib_dld_dld_link+:} false; then :
11082  $as_echo_n "(cached) " >&6
11083else
11084  ac_check_lib_save_LIBS=$LIBS
11085LIBS="-ldld  $LIBS"
11086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087/* end confdefs.h.  */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090   Use char because int might match the return type of a GCC
11091   builtin and then its argument prototype would still apply.  */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char dld_link ();
11096int
11097main ()
11098{
11099return dld_link ();
11100  ;
11101  return 0;
11102}
11103_ACEOF
11104if ac_fn_c_try_link "$LINENO"; then :
11105  ac_cv_lib_dld_dld_link=yes
11106else
11107  ac_cv_lib_dld_dld_link=no
11108fi
11109rm -f core conftest.err conftest.$ac_objext \
11110    conftest$ac_exeext conftest.$ac_ext
11111LIBS=$ac_check_lib_save_LIBS
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11114$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11115if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11116  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11117fi
11118
11119
11120fi
11121
11122
11123fi
11124
11125
11126fi
11127
11128
11129fi
11130
11131
11132fi
11133
11134    ;;
11135  esac
11136
11137  if test no = "$lt_cv_dlopen"; then
11138    enable_dlopen=no
11139  else
11140    enable_dlopen=yes
11141  fi
11142
11143  case $lt_cv_dlopen in
11144  dlopen)
11145    save_CPPFLAGS=$CPPFLAGS
11146    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11147
11148    save_LDFLAGS=$LDFLAGS
11149    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11150
11151    save_LIBS=$LIBS
11152    LIBS="$lt_cv_dlopen_libs $LIBS"
11153
11154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11155$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11156if ${lt_cv_dlopen_self+:} false; then :
11157  $as_echo_n "(cached) " >&6
11158else
11159  	  if test yes = "$cross_compiling"; then :
11160  lt_cv_dlopen_self=cross
11161else
11162  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11163  lt_status=$lt_dlunknown
11164  cat > conftest.$ac_ext <<_LT_EOF
11165#line $LINENO "configure"
11166#include "confdefs.h"
11167
11168#if HAVE_DLFCN_H
11169#include <dlfcn.h>
11170#endif
11171
11172#include <stdio.h>
11173
11174#ifdef RTLD_GLOBAL
11175#  define LT_DLGLOBAL		RTLD_GLOBAL
11176#else
11177#  ifdef DL_GLOBAL
11178#    define LT_DLGLOBAL		DL_GLOBAL
11179#  else
11180#    define LT_DLGLOBAL		0
11181#  endif
11182#endif
11183
11184/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11185   find out it does not work in some platform. */
11186#ifndef LT_DLLAZY_OR_NOW
11187#  ifdef RTLD_LAZY
11188#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11189#  else
11190#    ifdef DL_LAZY
11191#      define LT_DLLAZY_OR_NOW		DL_LAZY
11192#    else
11193#      ifdef RTLD_NOW
11194#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11195#      else
11196#        ifdef DL_NOW
11197#          define LT_DLLAZY_OR_NOW	DL_NOW
11198#        else
11199#          define LT_DLLAZY_OR_NOW	0
11200#        endif
11201#      endif
11202#    endif
11203#  endif
11204#endif
11205
11206/* When -fvisibility=hidden is used, assume the code has been annotated
11207   correspondingly for the symbols needed.  */
11208#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11209int fnord () __attribute__((visibility("default")));
11210#endif
11211
11212int fnord () { return 42; }
11213int main ()
11214{
11215  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216  int status = $lt_dlunknown;
11217
11218  if (self)
11219    {
11220      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11221      else
11222        {
11223	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11224          else puts (dlerror ());
11225	}
11226      /* dlclose (self); */
11227    }
11228  else
11229    puts (dlerror ());
11230
11231  return status;
11232}
11233_LT_EOF
11234  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11235  (eval $ac_link) 2>&5
11236  ac_status=$?
11237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11238  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11239    (./conftest; exit; ) >&5 2>/dev/null
11240    lt_status=$?
11241    case x$lt_status in
11242      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11243      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11244      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11245    esac
11246  else :
11247    # compilation failed
11248    lt_cv_dlopen_self=no
11249  fi
11250fi
11251rm -fr conftest*
11252
11253
11254fi
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11256$as_echo "$lt_cv_dlopen_self" >&6; }
11257
11258    if test yes = "$lt_cv_dlopen_self"; then
11259      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11260      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11261$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11262if ${lt_cv_dlopen_self_static+:} false; then :
11263  $as_echo_n "(cached) " >&6
11264else
11265  	  if test yes = "$cross_compiling"; then :
11266  lt_cv_dlopen_self_static=cross
11267else
11268  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11269  lt_status=$lt_dlunknown
11270  cat > conftest.$ac_ext <<_LT_EOF
11271#line $LINENO "configure"
11272#include "confdefs.h"
11273
11274#if HAVE_DLFCN_H
11275#include <dlfcn.h>
11276#endif
11277
11278#include <stdio.h>
11279
11280#ifdef RTLD_GLOBAL
11281#  define LT_DLGLOBAL		RTLD_GLOBAL
11282#else
11283#  ifdef DL_GLOBAL
11284#    define LT_DLGLOBAL		DL_GLOBAL
11285#  else
11286#    define LT_DLGLOBAL		0
11287#  endif
11288#endif
11289
11290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11291   find out it does not work in some platform. */
11292#ifndef LT_DLLAZY_OR_NOW
11293#  ifdef RTLD_LAZY
11294#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11295#  else
11296#    ifdef DL_LAZY
11297#      define LT_DLLAZY_OR_NOW		DL_LAZY
11298#    else
11299#      ifdef RTLD_NOW
11300#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11301#      else
11302#        ifdef DL_NOW
11303#          define LT_DLLAZY_OR_NOW	DL_NOW
11304#        else
11305#          define LT_DLLAZY_OR_NOW	0
11306#        endif
11307#      endif
11308#    endif
11309#  endif
11310#endif
11311
11312/* When -fvisibility=hidden is used, assume the code has been annotated
11313   correspondingly for the symbols needed.  */
11314#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11315int fnord () __attribute__((visibility("default")));
11316#endif
11317
11318int fnord () { return 42; }
11319int main ()
11320{
11321  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11322  int status = $lt_dlunknown;
11323
11324  if (self)
11325    {
11326      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11327      else
11328        {
11329	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11330          else puts (dlerror ());
11331	}
11332      /* dlclose (self); */
11333    }
11334  else
11335    puts (dlerror ());
11336
11337  return status;
11338}
11339_LT_EOF
11340  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11341  (eval $ac_link) 2>&5
11342  ac_status=$?
11343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11345    (./conftest; exit; ) >&5 2>/dev/null
11346    lt_status=$?
11347    case x$lt_status in
11348      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11349      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11350      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11351    esac
11352  else :
11353    # compilation failed
11354    lt_cv_dlopen_self_static=no
11355  fi
11356fi
11357rm -fr conftest*
11358
11359
11360fi
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11362$as_echo "$lt_cv_dlopen_self_static" >&6; }
11363    fi
11364
11365    CPPFLAGS=$save_CPPFLAGS
11366    LDFLAGS=$save_LDFLAGS
11367    LIBS=$save_LIBS
11368    ;;
11369  esac
11370
11371  case $lt_cv_dlopen_self in
11372  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11373  *) enable_dlopen_self=unknown ;;
11374  esac
11375
11376  case $lt_cv_dlopen_self_static in
11377  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11378  *) enable_dlopen_self_static=unknown ;;
11379  esac
11380fi
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398striplib=
11399old_striplib=
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11401$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11402if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11403  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11404  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11406$as_echo "yes" >&6; }
11407else
11408# FIXME - insert some real tests, host_os isn't really good enough
11409  case $host_os in
11410  darwin*)
11411    if test -n "$STRIP"; then
11412      striplib="$STRIP -x"
11413      old_striplib="$STRIP -S"
11414      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
11416    else
11417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419    fi
11420    ;;
11421  *)
11422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
11424    ;;
11425  esac
11426fi
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439  # Report what library types will actually be built
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11441$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11443$as_echo "$can_build_shared" >&6; }
11444
11445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11446$as_echo_n "checking whether to build shared libraries... " >&6; }
11447  test no = "$can_build_shared" && enable_shared=no
11448
11449  # On AIX, shared libraries and static libraries use the same namespace, and
11450  # are all built from PIC.
11451  case $host_os in
11452  aix3*)
11453    test yes = "$enable_shared" && enable_static=no
11454    if test -n "$RANLIB"; then
11455      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11456      postinstall_cmds='$RANLIB $lib'
11457    fi
11458    ;;
11459
11460  aix[4-9]*)
11461    if test ia64 != "$host_cpu"; then
11462      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11463      yes,aix,yes) ;;			# shared object as lib.so file only
11464      yes,svr4,*) ;;			# shared object as lib.so archive member only
11465      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11466      esac
11467    fi
11468    ;;
11469  esac
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11471$as_echo "$enable_shared" >&6; }
11472
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11474$as_echo_n "checking whether to build static libraries... " >&6; }
11475  # Make sure either enable_shared or enable_static is yes.
11476  test yes = "$enable_shared" || enable_static=yes
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11478$as_echo "$enable_static" >&6; }
11479
11480
11481
11482
11483fi
11484ac_ext=c
11485ac_cpp='$CPP $CPPFLAGS'
11486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11488ac_compiler_gnu=$ac_cv_c_compiler_gnu
11489
11490CC=$lt_save_CC
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506        ac_config_commands="$ac_config_commands libtool"
11507
11508
11509
11510
11511# Only expand once:
11512
11513
11514am__api_version='1.16'
11515
11516# Find a good install program.  We prefer a C program (faster),
11517# so one script is as good as another.  But avoid the broken or
11518# incompatible versions:
11519# SysV /etc/install, /usr/sbin/install
11520# SunOS /usr/etc/install
11521# IRIX /sbin/install
11522# AIX /bin/install
11523# AmigaOS /C/install, which installs bootblocks on floppy discs
11524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11525# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11527# OS/2's system install, which has a completely different semantic
11528# ./install, which can be erroneously created by make from ./install.sh.
11529# Reject install programs that cannot install multiple files.
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11531$as_echo_n "checking for a BSD-compatible install... " >&6; }
11532if test -z "$INSTALL"; then
11533if ${ac_cv_path_install+:} false; then :
11534  $as_echo_n "(cached) " >&6
11535else
11536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539  IFS=$as_save_IFS
11540  test -z "$as_dir" && as_dir=.
11541    # Account for people who put trailing slashes in PATH elements.
11542case $as_dir/ in #((
11543  ./ | .// | /[cC]/* | \
11544  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11545  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11546  /usr/ucb/* ) ;;
11547  *)
11548    # OSF1 and SCO ODT 3.0 have their own names for install.
11549    # Don't use installbsd from OSF since it installs stuff as root
11550    # by default.
11551    for ac_prog in ginstall scoinst install; do
11552      for ac_exec_ext in '' $ac_executable_extensions; do
11553	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11554	  if test $ac_prog = install &&
11555	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11556	    # AIX install.  It has an incompatible calling convention.
11557	    :
11558	  elif test $ac_prog = install &&
11559	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11560	    # program-specific install script used by HP pwplus--don't use.
11561	    :
11562	  else
11563	    rm -rf conftest.one conftest.two conftest.dir
11564	    echo one > conftest.one
11565	    echo two > conftest.two
11566	    mkdir conftest.dir
11567	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11568	      test -s conftest.one && test -s conftest.two &&
11569	      test -s conftest.dir/conftest.one &&
11570	      test -s conftest.dir/conftest.two
11571	    then
11572	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11573	      break 3
11574	    fi
11575	  fi
11576	fi
11577      done
11578    done
11579    ;;
11580esac
11581
11582  done
11583IFS=$as_save_IFS
11584
11585rm -rf conftest.one conftest.two conftest.dir
11586
11587fi
11588  if test "${ac_cv_path_install+set}" = set; then
11589    INSTALL=$ac_cv_path_install
11590  else
11591    # As a last resort, use the slow shell script.  Don't cache a
11592    # value for INSTALL within a source directory, because that will
11593    # break other packages using the cache if that directory is
11594    # removed, or if the value is a relative name.
11595    INSTALL=$ac_install_sh
11596  fi
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11599$as_echo "$INSTALL" >&6; }
11600
11601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11602# It thinks the first close brace ends the variable substitution.
11603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11604
11605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11606
11607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11608
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11610$as_echo_n "checking whether build environment is sane... " >&6; }
11611# Reject unsafe characters in $srcdir or the absolute working directory
11612# name.  Accept space and tab only in the latter.
11613am_lf='
11614'
11615case `pwd` in
11616  *[\\\"\#\$\&\'\`$am_lf]*)
11617    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11618esac
11619case $srcdir in
11620  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11621    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11622esac
11623
11624# Do 'set' in a subshell so we don't clobber the current shell's
11625# arguments.  Must try -L first in case configure is actually a
11626# symlink; some systems play weird games with the mod time of symlinks
11627# (eg FreeBSD returns the mod time of the symlink's containing
11628# directory).
11629if (
11630   am_has_slept=no
11631   for am_try in 1 2; do
11632     echo "timestamp, slept: $am_has_slept" > conftest.file
11633     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11634     if test "$*" = "X"; then
11635	# -L didn't work.
11636	set X `ls -t "$srcdir/configure" conftest.file`
11637     fi
11638     if test "$*" != "X $srcdir/configure conftest.file" \
11639	&& test "$*" != "X conftest.file $srcdir/configure"; then
11640
11641	# If neither matched, then we have a broken ls.  This can happen
11642	# if, for instance, CONFIG_SHELL is bash and it inherits a
11643	# broken ls alias from the environment.  This has actually
11644	# happened.  Such a system could not be considered "sane".
11645	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11646  alias in your environment" "$LINENO" 5
11647     fi
11648     if test "$2" = conftest.file || test $am_try -eq 2; then
11649       break
11650     fi
11651     # Just in case.
11652     sleep 1
11653     am_has_slept=yes
11654   done
11655   test "$2" = conftest.file
11656   )
11657then
11658   # Ok.
11659   :
11660else
11661   as_fn_error $? "newly created file is older than distributed files!
11662Check your system clock" "$LINENO" 5
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11665$as_echo "yes" >&6; }
11666# If we didn't sleep, we still need to ensure time stamps of config.status and
11667# generated files are strictly newer.
11668am_sleep_pid=
11669if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11670  ( sleep 1 ) &
11671  am_sleep_pid=$!
11672fi
11673
11674rm -f conftest.file
11675
11676test "$program_prefix" != NONE &&
11677  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11678# Use a double $ so make ignores it.
11679test "$program_suffix" != NONE &&
11680  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11681# Double any \ or $.
11682# By default was `s,x,x', remove it if useless.
11683ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11684program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11685
11686if test x"${MISSING+set}" != xset; then
11687  MISSING="\${SHELL} '$am_aux_dir/missing'"
11688fi
11689# Use eval to expand $SHELL
11690if eval "$MISSING --is-lightweight"; then
11691  am_missing_run="$MISSING "
11692else
11693  am_missing_run=
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11695$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11696fi
11697
11698if test x"${install_sh+set}" != xset; then
11699  case $am_aux_dir in
11700  *\ * | *\	*)
11701    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11702  *)
11703    install_sh="\${SHELL} $am_aux_dir/install-sh"
11704  esac
11705fi
11706
11707# Installed binaries are usually stripped using 'strip' when the user
11708# run "make install-strip".  However 'strip' might not be the right
11709# tool to use in cross-compilation environments, therefore Automake
11710# will honor the 'STRIP' environment variable to overrule this program.
11711if test "$cross_compiling" != no; then
11712  if test -n "$ac_tool_prefix"; then
11713  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11714set dummy ${ac_tool_prefix}strip; ac_word=$2
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if ${ac_cv_prog_STRIP+:} false; then :
11718  $as_echo_n "(cached) " >&6
11719else
11720  if test -n "$STRIP"; then
11721  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11722else
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726  IFS=$as_save_IFS
11727  test -z "$as_dir" && as_dir=.
11728    for ac_exec_ext in '' $ac_executable_extensions; do
11729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732    break 2
11733  fi
11734done
11735  done
11736IFS=$as_save_IFS
11737
11738fi
11739fi
11740STRIP=$ac_cv_prog_STRIP
11741if test -n "$STRIP"; then
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11743$as_echo "$STRIP" >&6; }
11744else
11745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
11747fi
11748
11749
11750fi
11751if test -z "$ac_cv_prog_STRIP"; then
11752  ac_ct_STRIP=$STRIP
11753  # Extract the first word of "strip", so it can be a program name with args.
11754set dummy strip; ac_word=$2
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756$as_echo_n "checking for $ac_word... " >&6; }
11757if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11758  $as_echo_n "(cached) " >&6
11759else
11760  if test -n "$ac_ct_STRIP"; then
11761  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11762else
11763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $PATH
11765do
11766  IFS=$as_save_IFS
11767  test -z "$as_dir" && as_dir=.
11768    for ac_exec_ext in '' $ac_executable_extensions; do
11769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770    ac_cv_prog_ac_ct_STRIP="strip"
11771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772    break 2
11773  fi
11774done
11775  done
11776IFS=$as_save_IFS
11777
11778fi
11779fi
11780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11781if test -n "$ac_ct_STRIP"; then
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11783$as_echo "$ac_ct_STRIP" >&6; }
11784else
11785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
11787fi
11788
11789  if test "x$ac_ct_STRIP" = x; then
11790    STRIP=":"
11791  else
11792    case $cross_compiling:$ac_tool_warned in
11793yes:)
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796ac_tool_warned=yes ;;
11797esac
11798    STRIP=$ac_ct_STRIP
11799  fi
11800else
11801  STRIP="$ac_cv_prog_STRIP"
11802fi
11803
11804fi
11805INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11806
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11808$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11809if test -z "$MKDIR_P"; then
11810  if ${ac_cv_path_mkdir+:} false; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11815do
11816  IFS=$as_save_IFS
11817  test -z "$as_dir" && as_dir=.
11818    for ac_prog in mkdir gmkdir; do
11819	 for ac_exec_ext in '' $ac_executable_extensions; do
11820	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11821	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11822	     'mkdir (GNU coreutils) '* | \
11823	     'mkdir (coreutils) '* | \
11824	     'mkdir (fileutils) '4.1*)
11825	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11826	       break 3;;
11827	   esac
11828	 done
11829       done
11830  done
11831IFS=$as_save_IFS
11832
11833fi
11834
11835  test -d ./--version && rmdir ./--version
11836  if test "${ac_cv_path_mkdir+set}" = set; then
11837    MKDIR_P="$ac_cv_path_mkdir -p"
11838  else
11839    # As a last resort, use the slow shell script.  Don't cache a
11840    # value for MKDIR_P within a source directory, because that will
11841    # break other packages using the cache if that directory is
11842    # removed, or if the value is a relative name.
11843    MKDIR_P="$ac_install_sh -d"
11844  fi
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11847$as_echo "$MKDIR_P" >&6; }
11848
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11851set x ${MAKE-make}
11852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11853if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  cat >conftest.make <<\_ACEOF
11857SHELL = /bin/sh
11858all:
11859	@echo '@@@%%%=$(MAKE)=@@@%%%'
11860_ACEOF
11861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11862case `${MAKE-make} -f conftest.make 2>/dev/null` in
11863  *@@@%%%=?*=@@@%%%*)
11864    eval ac_cv_prog_make_${ac_make}_set=yes;;
11865  *)
11866    eval ac_cv_prog_make_${ac_make}_set=no;;
11867esac
11868rm -f conftest.make
11869fi
11870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872$as_echo "yes" >&6; }
11873  SET_MAKE=
11874else
11875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877  SET_MAKE="MAKE=${MAKE-make}"
11878fi
11879
11880rm -rf .tst 2>/dev/null
11881mkdir .tst 2>/dev/null
11882if test -d .tst; then
11883  am__leading_dot=.
11884else
11885  am__leading_dot=_
11886fi
11887rmdir .tst 2>/dev/null
11888
11889DEPDIR="${am__leading_dot}deps"
11890
11891ac_config_commands="$ac_config_commands depfiles"
11892
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
11894$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
11895cat > confinc.mk << 'END'
11896am__doit:
11897	@echo this is the am__doit target >confinc.out
11898.PHONY: am__doit
11899END
11900am__include="#"
11901am__quote=
11902# BSD make does it like this.
11903echo '.include "confinc.mk" # ignored' > confmf.BSD
11904# Other make implementations (GNU, Solaris 10, AIX) do it like this.
11905echo 'include confinc.mk # ignored' > confmf.GNU
11906_am_result=no
11907for s in GNU BSD; do
11908  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
11909   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }
11913  case $?:`cat confinc.out 2>/dev/null` in #(
11914  '0:this is the am__doit target') :
11915    case $s in #(
11916  BSD) :
11917    am__include='.include' am__quote='"' ;; #(
11918  *) :
11919    am__include='include' am__quote='' ;;
11920esac ;; #(
11921  *) :
11922     ;;
11923esac
11924  if test "$am__include" != "#"; then
11925    _am_result="yes ($s style)"
11926    break
11927  fi
11928done
11929rm -f confinc.* confmf.*
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
11931$as_echo "${_am_result}" >&6; }
11932
11933# Check whether --enable-dependency-tracking was given.
11934if test "${enable_dependency_tracking+set}" = set; then :
11935  enableval=$enable_dependency_tracking;
11936fi
11937
11938if test "x$enable_dependency_tracking" != xno; then
11939  am_depcomp="$ac_aux_dir/depcomp"
11940  AMDEPBACKSLASH='\'
11941  am__nodep='_no'
11942fi
11943 if test "x$enable_dependency_tracking" != xno; then
11944  AMDEP_TRUE=
11945  AMDEP_FALSE='#'
11946else
11947  AMDEP_TRUE='#'
11948  AMDEP_FALSE=
11949fi
11950
11951
11952# Check whether --enable-silent-rules was given.
11953if test "${enable_silent_rules+set}" = set; then :
11954  enableval=$enable_silent_rules;
11955fi
11956
11957case $enable_silent_rules in # (((
11958  yes) AM_DEFAULT_VERBOSITY=0;;
11959   no) AM_DEFAULT_VERBOSITY=1;;
11960    *) AM_DEFAULT_VERBOSITY=1;;
11961esac
11962am_make=${MAKE-make}
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11964$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11965if ${am_cv_make_support_nested_variables+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  if $as_echo 'TRUE=$(BAR$(V))
11969BAR0=false
11970BAR1=true
11971V=1
11972am__doit:
11973	@$(TRUE)
11974.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11975  am_cv_make_support_nested_variables=yes
11976else
11977  am_cv_make_support_nested_variables=no
11978fi
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11981$as_echo "$am_cv_make_support_nested_variables" >&6; }
11982if test $am_cv_make_support_nested_variables = yes; then
11983    AM_V='$(V)'
11984  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11985else
11986  AM_V=$AM_DEFAULT_VERBOSITY
11987  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11988fi
11989AM_BACKSLASH='\'
11990
11991if test "`cd $srcdir && pwd`" != "`pwd`"; then
11992  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11993  # is not polluted with repeated "-I."
11994  am__isrc=' -I$(srcdir)'
11995  # test to see if srcdir already configured
11996  if test -f $srcdir/config.status; then
11997    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11998  fi
11999fi
12000
12001# test whether we have cygpath
12002if test -z "$CYGPATH_W"; then
12003  if (cygpath --version) >/dev/null 2>/dev/null; then
12004    CYGPATH_W='cygpath -w'
12005  else
12006    CYGPATH_W=echo
12007  fi
12008fi
12009
12010
12011# Define the identity of the package.
12012 PACKAGE='libmaxminddb'
12013 VERSION='1.6.0'
12014
12015
12016cat >>confdefs.h <<_ACEOF
12017#define PACKAGE "$PACKAGE"
12018_ACEOF
12019
12020
12021cat >>confdefs.h <<_ACEOF
12022#define VERSION "$VERSION"
12023_ACEOF
12024
12025# Some tools Automake needs.
12026
12027ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12028
12029
12030AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12031
12032
12033AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12034
12035
12036AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12037
12038
12039MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12040
12041# For better backward compatibility.  To be removed once Automake 1.9.x
12042# dies out for good.  For more background, see:
12043# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12044# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12045mkdir_p='$(MKDIR_P)'
12046
12047# We need awk for the "check" target (and possibly the TAP driver).  The
12048# system "awk" is bad on some platforms.
12049# Always define AMTAR for backward compatibility.  Yes, it's still used
12050# in the wild :-(  We should find a proper way to deprecate it ...
12051AMTAR='$${TAR-tar}'
12052
12053
12054# We'll loop over all known methods to create a tar archive until one works.
12055_am_tools='gnutar  pax cpio none'
12056
12057am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12058
12059
12060
12061
12062
12063depcc="$CC"   am_compiler_list=
12064
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12066$as_echo_n "checking dependency style of $depcc... " >&6; }
12067if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12068  $as_echo_n "(cached) " >&6
12069else
12070  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12071  # We make a subdir and do the tests there.  Otherwise we can end up
12072  # making bogus files that we don't know about and never remove.  For
12073  # instance it was reported that on HP-UX the gcc test will end up
12074  # making a dummy file named 'D' -- because '-MD' means "put the output
12075  # in D".
12076  rm -rf conftest.dir
12077  mkdir conftest.dir
12078  # Copy depcomp to subdir because otherwise we won't find it if we're
12079  # using a relative directory.
12080  cp "$am_depcomp" conftest.dir
12081  cd conftest.dir
12082  # We will build objects and dependencies in a subdirectory because
12083  # it helps to detect inapplicable dependency modes.  For instance
12084  # both Tru64's cc and ICC support -MD to output dependencies as a
12085  # side effect of compilation, but ICC will put the dependencies in
12086  # the current directory while Tru64 will put them in the object
12087  # directory.
12088  mkdir sub
12089
12090  am_cv_CC_dependencies_compiler_type=none
12091  if test "$am_compiler_list" = ""; then
12092     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12093  fi
12094  am__universal=false
12095  case " $depcc " in #(
12096     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12097     esac
12098
12099  for depmode in $am_compiler_list; do
12100    # Setup a source with many dependencies, because some compilers
12101    # like to wrap large dependency lists on column 80 (with \), and
12102    # we should not choose a depcomp mode which is confused by this.
12103    #
12104    # We need to recreate these files for each test, as the compiler may
12105    # overwrite some of them when testing with obscure command lines.
12106    # This happens at least with the AIX C compiler.
12107    : > sub/conftest.c
12108    for i in 1 2 3 4 5 6; do
12109      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12110      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12111      # Solaris 10 /bin/sh.
12112      echo '/* dummy */' > sub/conftst$i.h
12113    done
12114    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12115
12116    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12117    # mode.  It turns out that the SunPro C++ compiler does not properly
12118    # handle '-M -o', and we need to detect this.  Also, some Intel
12119    # versions had trouble with output in subdirs.
12120    am__obj=sub/conftest.${OBJEXT-o}
12121    am__minus_obj="-o $am__obj"
12122    case $depmode in
12123    gcc)
12124      # This depmode causes a compiler race in universal mode.
12125      test "$am__universal" = false || continue
12126      ;;
12127    nosideeffect)
12128      # After this tag, mechanisms are not by side-effect, so they'll
12129      # only be used when explicitly requested.
12130      if test "x$enable_dependency_tracking" = xyes; then
12131	continue
12132      else
12133	break
12134      fi
12135      ;;
12136    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12137      # This compiler won't grok '-c -o', but also, the minuso test has
12138      # not run yet.  These depmodes are late enough in the game, and
12139      # so weak that their functioning should not be impacted.
12140      am__obj=conftest.${OBJEXT-o}
12141      am__minus_obj=
12142      ;;
12143    none) break ;;
12144    esac
12145    if depmode=$depmode \
12146       source=sub/conftest.c object=$am__obj \
12147       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12148       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12149         >/dev/null 2>conftest.err &&
12150       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12151       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12152       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12153       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12154      # icc doesn't choke on unknown options, it will just issue warnings
12155      # or remarks (even with -Werror).  So we grep stderr for any message
12156      # that says an option was ignored or not supported.
12157      # When given -MP, icc 7.0 and 7.1 complain thusly:
12158      #   icc: Command line warning: ignoring option '-M'; no argument required
12159      # The diagnosis changed in icc 8.0:
12160      #   icc: Command line remark: option '-MP' not supported
12161      if (grep 'ignoring option' conftest.err ||
12162          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12163        am_cv_CC_dependencies_compiler_type=$depmode
12164        break
12165      fi
12166    fi
12167  done
12168
12169  cd ..
12170  rm -rf conftest.dir
12171else
12172  am_cv_CC_dependencies_compiler_type=none
12173fi
12174
12175fi
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12179
12180 if
12181  test "x$enable_dependency_tracking" != xno \
12182  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12183  am__fastdepCC_TRUE=
12184  am__fastdepCC_FALSE='#'
12185else
12186  am__fastdepCC_TRUE='#'
12187  am__fastdepCC_FALSE=
12188fi
12189
12190
12191
12192# POSIX will say in a future version that running "rm -f" with no argument
12193# is OK; and we want to be able to make that assumption in our Makefile
12194# recipes.  So use an aggressive probe to check that the usage we want is
12195# actually supported "in the wild" to an acceptable degree.
12196# See automake bug#10828.
12197# To make any issue more visible, cause the running configure to be aborted
12198# by default if the 'rm' program in use doesn't match our expectations; the
12199# user can still override this though.
12200if rm -f && rm -fr && rm -rf; then : OK; else
12201  cat >&2 <<'END'
12202Oops!
12203
12204Your 'rm' program seems unable to run without file operands specified
12205on the command line, even when the '-f' option is present.  This is contrary
12206to the behaviour of most rm programs out there, and not conforming with
12207the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12208
12209Please tell bug-automake@gnu.org about your system, including the value
12210of your $PATH and any error possibly output before this message.  This
12211can help us improve future automake versions.
12212
12213END
12214  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12215    echo 'Configuration will proceed anyway, since you have set the' >&2
12216    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12217    echo >&2
12218  else
12219    cat >&2 <<'END'
12220Aborting the configuration process, to ensure you take notice of the issue.
12221
12222You can download and install GNU coreutils to get an 'rm' implementation
12223that behaves properly: <https://www.gnu.org/software/coreutils/>.
12224
12225If you want to complete the configuration process using your problematic
12226'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12227to "yes", and re-run configure.
12228
12229END
12230    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12231  fi
12232fi
12233
12234
12235# Checks for programs.
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12237$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12238if ${ac_cv_prog_cc_c99+:} false; then :
12239  $as_echo_n "(cached) " >&6
12240else
12241  ac_cv_prog_cc_c99=no
12242ac_save_CC=$CC
12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h.  */
12245#include <stdarg.h>
12246#include <stdbool.h>
12247#include <stdlib.h>
12248#include <wchar.h>
12249#include <stdio.h>
12250
12251// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12252#define debug(...) fprintf (stderr, __VA_ARGS__)
12253#define showlist(...) puts (#__VA_ARGS__)
12254#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12255static void
12256test_varargs_macros (void)
12257{
12258  int x = 1234;
12259  int y = 5678;
12260  debug ("Flag");
12261  debug ("X = %d\n", x);
12262  showlist (The first, second, and third items.);
12263  report (x>y, "x is %d but y is %d", x, y);
12264}
12265
12266// Check long long types.
12267#define BIG64 18446744073709551615ull
12268#define BIG32 4294967295ul
12269#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12270#if !BIG_OK
12271  your preprocessor is broken;
12272#endif
12273#if BIG_OK
12274#else
12275  your preprocessor is broken;
12276#endif
12277static long long int bignum = -9223372036854775807LL;
12278static unsigned long long int ubignum = BIG64;
12279
12280struct incomplete_array
12281{
12282  int datasize;
12283  double data[];
12284};
12285
12286struct named_init {
12287  int number;
12288  const wchar_t *name;
12289  double average;
12290};
12291
12292typedef const char *ccp;
12293
12294static inline int
12295test_restrict (ccp restrict text)
12296{
12297  // See if C++-style comments work.
12298  // Iterate through items via the restricted pointer.
12299  // Also check for declarations in for loops.
12300  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12301    continue;
12302  return 0;
12303}
12304
12305// Check varargs and va_copy.
12306static void
12307test_varargs (const char *format, ...)
12308{
12309  va_list args;
12310  va_start (args, format);
12311  va_list args_copy;
12312  va_copy (args_copy, args);
12313
12314  const char *str;
12315  int number;
12316  float fnumber;
12317
12318  while (*format)
12319    {
12320      switch (*format++)
12321	{
12322	case 's': // string
12323	  str = va_arg (args_copy, const char *);
12324	  break;
12325	case 'd': // int
12326	  number = va_arg (args_copy, int);
12327	  break;
12328	case 'f': // float
12329	  fnumber = va_arg (args_copy, double);
12330	  break;
12331	default:
12332	  break;
12333	}
12334    }
12335  va_end (args_copy);
12336  va_end (args);
12337}
12338
12339int
12340main ()
12341{
12342
12343  // Check bool.
12344  _Bool success = false;
12345
12346  // Check restrict.
12347  if (test_restrict ("String literal") == 0)
12348    success = true;
12349  char *restrict newvar = "Another string";
12350
12351  // Check varargs.
12352  test_varargs ("s, d' f .", "string", 65, 34.234);
12353  test_varargs_macros ();
12354
12355  // Check flexible array members.
12356  struct incomplete_array *ia =
12357    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12358  ia->datasize = 10;
12359  for (int i = 0; i < ia->datasize; ++i)
12360    ia->data[i] = i * 1.234;
12361
12362  // Check named initializers.
12363  struct named_init ni = {
12364    .number = 34,
12365    .name = L"Test wide string",
12366    .average = 543.34343,
12367  };
12368
12369  ni.number = 58;
12370
12371  int dynamic_array[ni.number];
12372  dynamic_array[ni.number - 1] = 543;
12373
12374  // work around unused variable warnings
12375  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12376	  || dynamic_array[ni.number - 1] != 543);
12377
12378  ;
12379  return 0;
12380}
12381_ACEOF
12382for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12383do
12384  CC="$ac_save_CC $ac_arg"
12385  if ac_fn_c_try_compile "$LINENO"; then :
12386  ac_cv_prog_cc_c99=$ac_arg
12387fi
12388rm -f core conftest.err conftest.$ac_objext
12389  test "x$ac_cv_prog_cc_c99" != "xno" && break
12390done
12391rm -f conftest.$ac_ext
12392CC=$ac_save_CC
12393
12394fi
12395# AC_CACHE_VAL
12396case "x$ac_cv_prog_cc_c99" in
12397  x)
12398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12399$as_echo "none needed" >&6; } ;;
12400  xno)
12401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12402$as_echo "unsupported" >&6; } ;;
12403  *)
12404    CC="$CC $ac_cv_prog_cc_c99"
12405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12406$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12407esac
12408if test "x$ac_cv_prog_cc_c99" != xno; then :
12409
12410fi
12411
12412
12413
12414# Copied from http://stackoverflow.com/a/10682813/9832 and tweaked for C (as
12415# opposed to C++)
12416#
12417# AX_CHECK_CFLAGS(ADDITIONAL-CFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
12418#
12419# checks whether the $(CC) compiler accepts the ADDITIONAL-CFLAGS
12420# if so, they are added to the CXXFLAGS
12421
12422
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts \"-fms-extensions\"" >&5
12424$as_echo_n "checking whether compiler accepts \"-fms-extensions\"... " >&6; }
12425  cat > conftest.c << EOF
12426  int main(){
12427    return 0;
12428  }
12429EOF
12430  if $CC $CFLAGS -o conftest.o conftest.c -fms-extensions > /dev/null 2>&1
12431  then
12432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433$as_echo "yes" >&6; }
12434    CFLAGS="${CFLAGS} -fms-extensions"
12435
12436  else
12437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439
12440  fi
12441
12442
12443# We will add this back for non-debug builds in the common.mk file
12444CFLAGS=`echo ${CFLAGS} | sed 's/-O2//'`
12445CXXFLAGS=`echo ${CXXFLAGS} | sed 's/-O2//'`
12446
12447# autoconf insists on giving us gnu99 if it's available
12448CC=`echo ${CC} | sed 's/-std=gnu99/-std=c99/'`
12449
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12451$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12452if ${ac_cv_c_restrict+:} false; then :
12453  $as_echo_n "(cached) " >&6
12454else
12455  ac_cv_c_restrict=no
12456   # The order here caters to the fact that C++ does not require restrict.
12457   for ac_kw in __restrict __restrict__ _Restrict restrict; do
12458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460typedef int * int_ptr;
12461	int foo (int_ptr $ac_kw ip) {
12462	return ip[0];
12463       }
12464int
12465main ()
12466{
12467int s[1];
12468	int * $ac_kw t = s;
12469	t[0] = 0;
12470	return foo(t)
12471  ;
12472  return 0;
12473}
12474_ACEOF
12475if ac_fn_c_try_compile "$LINENO"; then :
12476  ac_cv_c_restrict=$ac_kw
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479     test "$ac_cv_c_restrict" != no && break
12480   done
12481
12482fi
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12484$as_echo "$ac_cv_c_restrict" >&6; }
12485
12486 case $ac_cv_c_restrict in
12487   restrict) ;;
12488   no) $as_echo "#define restrict /**/" >>confdefs.h
12489 ;;
12490   *)  cat >>confdefs.h <<_ACEOF
12491#define restrict $ac_cv_c_restrict
12492_ACEOF
12493 ;;
12494 esac
12495
12496
12497for ac_header in arpa/inet.h assert.h fcntl.h inttypes.h libgen.h math.h netdb.h netinet/in.h stdarg.h stdbool.h stdint.h stdio.h stdlib.h string.h sys/mman.h sys/socket.h sys/stat.h sys/time.h sys/types.h unistd.h
12498do :
12499  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12501if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12502  cat >>confdefs.h <<_ACEOF
12503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504_ACEOF
12505
12506fi
12507
12508done
12509
12510
12511# configure generates an invalid config for MinGW because of the type checks
12512# so we only run them on non MinGW-Systems. For MinGW we also need to link
12513# against ws2_32.
12514
12515is_windows=false
12516case $host_os in
12517        mingw*)
12518                LDFLAGS="-lws2_32"
12519                is_windows=true
12520        ;;
12521        *)
12522                ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12523if test "x$ac_cv_type_off_t" = xyes; then :
12524
12525else
12526
12527cat >>confdefs.h <<_ACEOF
12528#define off_t long int
12529_ACEOF
12530
12531fi
12532
12533                ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12534if test "x$ac_cv_type_size_t" = xyes; then :
12535
12536else
12537
12538cat >>confdefs.h <<_ACEOF
12539#define size_t unsigned int
12540_ACEOF
12541
12542fi
12543
12544                ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12545if test "x$ac_cv_type_ssize_t" = xyes; then :
12546
12547else
12548
12549cat >>confdefs.h <<_ACEOF
12550#define ssize_t int
12551_ACEOF
12552
12553fi
12554
12555                ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12556case $ac_cv_c_uint8_t in #(
12557  no|yes) ;; #(
12558  *)
12559
12560$as_echo "#define _UINT8_T 1" >>confdefs.h
12561
12562
12563cat >>confdefs.h <<_ACEOF
12564#define uint8_t $ac_cv_c_uint8_t
12565_ACEOF
12566;;
12567  esac
12568
12569                ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12570case $ac_cv_c_uint32_t in #(
12571  no|yes) ;; #(
12572  *)
12573
12574$as_echo "#define _UINT32_T 1" >>confdefs.h
12575
12576
12577cat >>confdefs.h <<_ACEOF
12578#define uint32_t $ac_cv_c_uint32_t
12579_ACEOF
12580;;
12581  esac
12582
12583                ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12584case $ac_cv_c_uint64_t in #(
12585  no|yes) ;; #(
12586  *)
12587
12588$as_echo "#define _UINT64_T 1" >>confdefs.h
12589
12590
12591cat >>confdefs.h <<_ACEOF
12592#define uint64_t $ac_cv_c_uint64_t
12593_ACEOF
12594;;
12595  esac
12596
12597        ;;
12598esac
12599
12600 if test x$is_windows = xtrue; then
12601  WINDOWS_TRUE=
12602  WINDOWS_FALSE='#'
12603else
12604  WINDOWS_TRUE='#'
12605  WINDOWS_FALSE=
12606fi
12607
12608
12609# This check is backwards in order to make life easier for people writing
12610# extensions in other languages that link to this library. If they want to
12611# simply assume that they are using a newish compiler, they don't need to
12612# check for this type nor do they need to define anything on the CLI. They'll
12613# just get code that assumes this type exists.
12614ac_fn_c_check_type "$LINENO" "unsigned __int128" "ac_cv_type_unsigned___int128" "$ac_includes_default"
12615if test "x$ac_cv_type_unsigned___int128" = xyes; then :
12616
12617$as_echo "#define MMDB_UINT128_IS_BYTE_ARRAY 0" >>confdefs.h
12618
12619else
12620
12621$as_echo "#define MMDB_UINT128_IS_BYTE_ARRAY 1" >>confdefs.h
12622
12623fi
12624
12625
12626ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
12627if test "x$ac_cv_type_boolean" = xyes; then :
12628
12629cat >>confdefs.h <<_ACEOF
12630#define HAVE_BOOLEAN 1
12631_ACEOF
12632
12633
12634fi
12635
12636
12637for ac_func in clock_gettime open_memstream
12638do :
12639  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12642  cat >>confdefs.h <<_ACEOF
12643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644_ACEOF
12645
12646fi
12647done
12648
12649
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12651$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12652if ${ac_cv_c_bigendian+:} false; then :
12653  $as_echo_n "(cached) " >&6
12654else
12655  ac_cv_c_bigendian=unknown
12656    # See if we're dealing with a universal compiler.
12657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h.  */
12659#ifndef __APPLE_CC__
12660	       not a universal capable compiler
12661	     #endif
12662	     typedef int dummy;
12663
12664_ACEOF
12665if ac_fn_c_try_compile "$LINENO"; then :
12666
12667	# Check for potential -arch flags.  It is not universal unless
12668	# there are at least two -arch flags with different values.
12669	ac_arch=
12670	ac_prev=
12671	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12672	 if test -n "$ac_prev"; then
12673	   case $ac_word in
12674	     i?86 | x86_64 | ppc | ppc64)
12675	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12676		 ac_arch=$ac_word
12677	       else
12678		 ac_cv_c_bigendian=universal
12679		 break
12680	       fi
12681	       ;;
12682	   esac
12683	   ac_prev=
12684	 elif test "x$ac_word" = "x-arch"; then
12685	   ac_prev=arch
12686	 fi
12687       done
12688fi
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690    if test $ac_cv_c_bigendian = unknown; then
12691      # See if sys/param.h defines the BYTE_ORDER macro.
12692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694#include <sys/types.h>
12695	     #include <sys/param.h>
12696
12697int
12698main ()
12699{
12700#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12701		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12702		     && LITTLE_ENDIAN)
12703	      bogus endian macros
12704	     #endif
12705
12706  ;
12707  return 0;
12708}
12709_ACEOF
12710if ac_fn_c_try_compile "$LINENO"; then :
12711  # It does; now see whether it defined to BIG_ENDIAN or not.
12712	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714#include <sys/types.h>
12715		#include <sys/param.h>
12716
12717int
12718main ()
12719{
12720#if BYTE_ORDER != BIG_ENDIAN
12721		 not big endian
12722		#endif
12723
12724  ;
12725  return 0;
12726}
12727_ACEOF
12728if ac_fn_c_try_compile "$LINENO"; then :
12729  ac_cv_c_bigendian=yes
12730else
12731  ac_cv_c_bigendian=no
12732fi
12733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736    fi
12737    if test $ac_cv_c_bigendian = unknown; then
12738      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741#include <limits.h>
12742
12743int
12744main ()
12745{
12746#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12747	      bogus endian macros
12748	     #endif
12749
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754if ac_fn_c_try_compile "$LINENO"; then :
12755  # It does; now see whether it defined to _BIG_ENDIAN or not.
12756	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h.  */
12758#include <limits.h>
12759
12760int
12761main ()
12762{
12763#ifndef _BIG_ENDIAN
12764		 not big endian
12765		#endif
12766
12767  ;
12768  return 0;
12769}
12770_ACEOF
12771if ac_fn_c_try_compile "$LINENO"; then :
12772  ac_cv_c_bigendian=yes
12773else
12774  ac_cv_c_bigendian=no
12775fi
12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777fi
12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779    fi
12780    if test $ac_cv_c_bigendian = unknown; then
12781      # Compile a test program.
12782      if test "$cross_compiling" = yes; then :
12783  # Try to guess by grepping values from an object file.
12784	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786short int ascii_mm[] =
12787		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12788		short int ascii_ii[] =
12789		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12790		int use_ascii (int i) {
12791		  return ascii_mm[i] + ascii_ii[i];
12792		}
12793		short int ebcdic_ii[] =
12794		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12795		short int ebcdic_mm[] =
12796		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12797		int use_ebcdic (int i) {
12798		  return ebcdic_mm[i] + ebcdic_ii[i];
12799		}
12800		extern int foo;
12801
12802int
12803main ()
12804{
12805return use_ascii (foo) == use_ebcdic (foo);
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_compile "$LINENO"; then :
12811  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12812	      ac_cv_c_bigendian=yes
12813	    fi
12814	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12815	      if test "$ac_cv_c_bigendian" = unknown; then
12816		ac_cv_c_bigendian=no
12817	      else
12818		# finding both strings is unlikely to happen, but who knows?
12819		ac_cv_c_bigendian=unknown
12820	      fi
12821	    fi
12822fi
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824else
12825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h.  */
12827$ac_includes_default
12828int
12829main ()
12830{
12831
12832	     /* Are we little or big endian?  From Harbison&Steele.  */
12833	     union
12834	     {
12835	       long int l;
12836	       char c[sizeof (long int)];
12837	     } u;
12838	     u.l = 1;
12839	     return u.c[sizeof (long int) - 1] == 1;
12840
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845if ac_fn_c_try_run "$LINENO"; then :
12846  ac_cv_c_bigendian=no
12847else
12848  ac_cv_c_bigendian=yes
12849fi
12850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12851  conftest.$ac_objext conftest.beam conftest.$ac_ext
12852fi
12853
12854    fi
12855fi
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12857$as_echo "$ac_cv_c_bigendian" >&6; }
12858 case $ac_cv_c_bigendian in #(
12859   yes)
12860
12861$as_echo "#define MMDB_LITTLE_ENDIAN 0" >>confdefs.h
12862;; #(
12863   no)
12864
12865$as_echo "#define MMDB_LITTLE_ENDIAN 1" >>confdefs.h
12866 ;; #(
12867   universal)
12868
12869$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12870
12871     ;; #(
12872   *)
12873     as_fn_error $? "unknown endianness
12874 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12875 esac
12876
12877
12878
12879
12880
12881  for ac_header in $ac_header_list
12882do :
12883  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12885"
12886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12887  cat >>confdefs.h <<_ACEOF
12888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12889_ACEOF
12890
12891fi
12892
12893done
12894
12895
12896
12897
12898
12899
12900
12901
12902for ac_func in getpagesize
12903do :
12904  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12905if test "x$ac_cv_func_getpagesize" = xyes; then :
12906  cat >>confdefs.h <<_ACEOF
12907#define HAVE_GETPAGESIZE 1
12908_ACEOF
12909
12910fi
12911done
12912
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12914$as_echo_n "checking for working mmap... " >&6; }
12915if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12916  $as_echo_n "(cached) " >&6
12917else
12918  if test "$cross_compiling" = yes; then :
12919  ac_cv_func_mmap_fixed_mapped=no
12920else
12921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922/* end confdefs.h.  */
12923$ac_includes_default
12924/* malloc might have been renamed as rpl_malloc. */
12925#undef malloc
12926
12927/* Thanks to Mike Haertel and Jim Avera for this test.
12928   Here is a matrix of mmap possibilities:
12929	mmap private not fixed
12930	mmap private fixed at somewhere currently unmapped
12931	mmap private fixed at somewhere already mapped
12932	mmap shared not fixed
12933	mmap shared fixed at somewhere currently unmapped
12934	mmap shared fixed at somewhere already mapped
12935   For private mappings, we should verify that changes cannot be read()
12936   back from the file, nor mmap's back from the file at a different
12937   address.  (There have been systems where private was not correctly
12938   implemented like the infamous i386 svr4.0, and systems where the
12939   VM page cache was not coherent with the file system buffer cache
12940   like early versions of FreeBSD and possibly contemporary NetBSD.)
12941   For shared mappings, we should conversely verify that changes get
12942   propagated back to all the places they're supposed to be.
12943
12944   Grep wants private fixed already mapped.
12945   The main things grep needs to know about mmap are:
12946   * does it exist and is it safe to write into the mmap'd area
12947   * how to use it (BSD variants)  */
12948
12949#include <fcntl.h>
12950#include <sys/mman.h>
12951
12952#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12953char *malloc ();
12954#endif
12955
12956/* This mess was copied from the GNU getpagesize.h.  */
12957#ifndef HAVE_GETPAGESIZE
12958# ifdef _SC_PAGESIZE
12959#  define getpagesize() sysconf(_SC_PAGESIZE)
12960# else /* no _SC_PAGESIZE */
12961#  ifdef HAVE_SYS_PARAM_H
12962#   include <sys/param.h>
12963#   ifdef EXEC_PAGESIZE
12964#    define getpagesize() EXEC_PAGESIZE
12965#   else /* no EXEC_PAGESIZE */
12966#    ifdef NBPG
12967#     define getpagesize() NBPG * CLSIZE
12968#     ifndef CLSIZE
12969#      define CLSIZE 1
12970#     endif /* no CLSIZE */
12971#    else /* no NBPG */
12972#     ifdef NBPC
12973#      define getpagesize() NBPC
12974#     else /* no NBPC */
12975#      ifdef PAGESIZE
12976#       define getpagesize() PAGESIZE
12977#      endif /* PAGESIZE */
12978#     endif /* no NBPC */
12979#    endif /* no NBPG */
12980#   endif /* no EXEC_PAGESIZE */
12981#  else /* no HAVE_SYS_PARAM_H */
12982#   define getpagesize() 8192	/* punt totally */
12983#  endif /* no HAVE_SYS_PARAM_H */
12984# endif /* no _SC_PAGESIZE */
12985
12986#endif /* no HAVE_GETPAGESIZE */
12987
12988int
12989main ()
12990{
12991  char *data, *data2, *data3;
12992  const char *cdata2;
12993  int i, pagesize;
12994  int fd, fd2;
12995
12996  pagesize = getpagesize ();
12997
12998  /* First, make a file with some known garbage in it. */
12999  data = (char *) malloc (pagesize);
13000  if (!data)
13001    return 1;
13002  for (i = 0; i < pagesize; ++i)
13003    *(data + i) = rand ();
13004  umask (0);
13005  fd = creat ("conftest.mmap", 0600);
13006  if (fd < 0)
13007    return 2;
13008  if (write (fd, data, pagesize) != pagesize)
13009    return 3;
13010  close (fd);
13011
13012  /* Next, check that the tail of a page is zero-filled.  File must have
13013     non-zero length, otherwise we risk SIGBUS for entire page.  */
13014  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13015  if (fd2 < 0)
13016    return 4;
13017  cdata2 = "";
13018  if (write (fd2, cdata2, 1) != 1)
13019    return 5;
13020  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13021  if (data2 == MAP_FAILED)
13022    return 6;
13023  for (i = 0; i < pagesize; ++i)
13024    if (*(data2 + i))
13025      return 7;
13026  close (fd2);
13027  if (munmap (data2, pagesize))
13028    return 8;
13029
13030  /* Next, try to mmap the file at a fixed address which already has
13031     something else allocated at it.  If we can, also make sure that
13032     we see the same garbage.  */
13033  fd = open ("conftest.mmap", O_RDWR);
13034  if (fd < 0)
13035    return 9;
13036  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13037		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13038    return 10;
13039  for (i = 0; i < pagesize; ++i)
13040    if (*(data + i) != *(data2 + i))
13041      return 11;
13042
13043  /* Finally, make sure that changes to the mapped area do not
13044     percolate back to the file as seen by read().  (This is a bug on
13045     some variants of i386 svr4.0.)  */
13046  for (i = 0; i < pagesize; ++i)
13047    *(data2 + i) = *(data2 + i) + 1;
13048  data3 = (char *) malloc (pagesize);
13049  if (!data3)
13050    return 12;
13051  if (read (fd, data3, pagesize) != pagesize)
13052    return 13;
13053  for (i = 0; i < pagesize; ++i)
13054    if (*(data + i) != *(data3 + i))
13055      return 14;
13056  close (fd);
13057  free (data);
13058  free (data3);
13059  return 0;
13060}
13061_ACEOF
13062if ac_fn_c_try_run "$LINENO"; then :
13063  ac_cv_func_mmap_fixed_mapped=yes
13064else
13065  ac_cv_func_mmap_fixed_mapped=no
13066fi
13067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13068  conftest.$ac_objext conftest.beam conftest.$ac_ext
13069fi
13070
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13073$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13074if test $ac_cv_func_mmap_fixed_mapped = yes; then
13075
13076$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13077
13078fi
13079rm -f conftest.mmap conftest.txt
13080
13081
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13083$as_echo_n "checking for library containing fabs... " >&6; }
13084if ${ac_cv_search_fabs+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  ac_func_search_save_LIBS=$LIBS
13088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h.  */
13090
13091/* Override any GCC internal prototype to avoid an error.
13092   Use char because int might match the return type of a GCC
13093   builtin and then its argument prototype would still apply.  */
13094#ifdef __cplusplus
13095extern "C"
13096#endif
13097char fabs ();
13098int
13099main ()
13100{
13101return fabs ();
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106for ac_lib in '' m; do
13107  if test -z "$ac_lib"; then
13108    ac_res="none required"
13109  else
13110    ac_res=-l$ac_lib
13111    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13112  fi
13113  if ac_fn_c_try_link "$LINENO"; then :
13114  ac_cv_search_fabs=$ac_res
13115fi
13116rm -f core conftest.err conftest.$ac_objext \
13117    conftest$ac_exeext
13118  if ${ac_cv_search_fabs+:} false; then :
13119  break
13120fi
13121done
13122if ${ac_cv_search_fabs+:} false; then :
13123
13124else
13125  ac_cv_search_fabs=no
13126fi
13127rm conftest.$ac_ext
13128LIBS=$ac_func_search_save_LIBS
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13131$as_echo "$ac_cv_search_fabs" >&6; }
13132ac_res=$ac_cv_search_fabs
13133if test "$ac_res" != no; then :
13134  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135
13136fi
13137
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
13139$as_echo_n "checking for library containing fabsf... " >&6; }
13140if ${ac_cv_search_fabsf+:} false; then :
13141  $as_echo_n "(cached) " >&6
13142else
13143  ac_func_search_save_LIBS=$LIBS
13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h.  */
13146
13147/* Override any GCC internal prototype to avoid an error.
13148   Use char because int might match the return type of a GCC
13149   builtin and then its argument prototype would still apply.  */
13150#ifdef __cplusplus
13151extern "C"
13152#endif
13153char fabsf ();
13154int
13155main ()
13156{
13157return fabsf ();
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162for ac_lib in '' m; do
13163  if test -z "$ac_lib"; then
13164    ac_res="none required"
13165  else
13166    ac_res=-l$ac_lib
13167    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13168  fi
13169  if ac_fn_c_try_link "$LINENO"; then :
13170  ac_cv_search_fabsf=$ac_res
13171fi
13172rm -f core conftest.err conftest.$ac_objext \
13173    conftest$ac_exeext
13174  if ${ac_cv_search_fabsf+:} false; then :
13175  break
13176fi
13177done
13178if ${ac_cv_search_fabsf+:} false; then :
13179
13180else
13181  ac_cv_search_fabsf=no
13182fi
13183rm conftest.$ac_ext
13184LIBS=$ac_func_search_save_LIBS
13185fi
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
13187$as_echo "$ac_cv_search_fabsf" >&6; }
13188ac_res=$ac_cv_search_fabsf
13189if test "$ac_res" != no; then :
13190  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13191
13192fi
13193
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13195$as_echo_n "checking for library containing getaddrinfo... " >&6; }
13196if ${ac_cv_search_getaddrinfo+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  ac_func_search_save_LIBS=$LIBS
13200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h.  */
13202
13203/* Override any GCC internal prototype to avoid an error.
13204   Use char because int might match the return type of a GCC
13205   builtin and then its argument prototype would still apply.  */
13206#ifdef __cplusplus
13207extern "C"
13208#endif
13209char getaddrinfo ();
13210int
13211main ()
13212{
13213return getaddrinfo ();
13214  ;
13215  return 0;
13216}
13217_ACEOF
13218for ac_lib in '' socket; do
13219  if test -z "$ac_lib"; then
13220    ac_res="none required"
13221  else
13222    ac_res=-l$ac_lib
13223    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13224  fi
13225  if ac_fn_c_try_link "$LINENO"; then :
13226  ac_cv_search_getaddrinfo=$ac_res
13227fi
13228rm -f core conftest.err conftest.$ac_objext \
13229    conftest$ac_exeext
13230  if ${ac_cv_search_getaddrinfo+:} false; then :
13231  break
13232fi
13233done
13234if ${ac_cv_search_getaddrinfo+:} false; then :
13235
13236else
13237  ac_cv_search_getaddrinfo=no
13238fi
13239rm conftest.$ac_ext
13240LIBS=$ac_func_search_save_LIBS
13241fi
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13243$as_echo "$ac_cv_search_getaddrinfo" >&6; }
13244ac_res=$ac_cv_search_getaddrinfo
13245if test "$ac_res" != no; then :
13246  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13247
13248fi
13249
13250
13251# Check whether --enable-debug was given.
13252if test "${enable_debug+set}" = set; then :
13253  enableval=$enable_debug; case "${enableval}" in
13254          yes) debug=true ;;
13255          no)  debug=false ;;
13256          *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
13257        esac
13258else
13259  debug=false
13260fi
13261
13262 if test x$debug = xtrue; then
13263  DEBUG_TRUE=
13264  DEBUG_FALSE='#'
13265else
13266  DEBUG_TRUE='#'
13267  DEBUG_FALSE=
13268fi
13269
13270
13271# Check whether --enable-binaries was given.
13272if test "${enable_binaries+set}" = set; then :
13273  enableval=$enable_binaries; enable_binaries=${enableval}
13274else
13275  enable_binaries=yes
13276fi
13277
13278 if test "${enable_binaries}" = "yes"; then
13279  BINARIES_TRUE=
13280  BINARIES_FALSE='#'
13281else
13282  BINARIES_TRUE='#'
13283  BINARIES_FALSE=
13284fi
13285
13286
13287# Check whether --enable-tests was given.
13288if test "${enable_tests+set}" = set; then :
13289  enableval=$enable_tests; enable_tests=${enableval}
13290else
13291  enable_tests=yes
13292fi
13293
13294 if test "${enable_tests}" = "yes"; then
13295  TESTS_TRUE=
13296  TESTS_FALSE='#'
13297else
13298  TESTS_TRUE='#'
13299  TESTS_FALSE=
13300fi
13301
13302
13303ac_config_files="$ac_config_files Makefile src/Makefile bin/Makefile t/Makefile"
13304
13305cat >confcache <<\_ACEOF
13306# This file is a shell script that caches the results of configure
13307# tests run on this system so they can be shared between configure
13308# scripts and configure runs, see configure's option --config-cache.
13309# It is not useful on other systems.  If it contains results you don't
13310# want to keep, you may remove or edit it.
13311#
13312# config.status only pays attention to the cache file if you give it
13313# the --recheck option to rerun configure.
13314#
13315# `ac_cv_env_foo' variables (set or unset) will be overridden when
13316# loading this file, other *unset* `ac_cv_foo' will be assigned the
13317# following values.
13318
13319_ACEOF
13320
13321# The following way of writing the cache mishandles newlines in values,
13322# but we know of no workaround that is simple, portable, and efficient.
13323# So, we kill variables containing newlines.
13324# Ultrix sh set writes to stderr and can't be redirected directly,
13325# and sets the high bit in the cache file unless we assign to the vars.
13326(
13327  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13328    eval ac_val=\$$ac_var
13329    case $ac_val in #(
13330    *${as_nl}*)
13331      case $ac_var in #(
13332      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13334      esac
13335      case $ac_var in #(
13336      _ | IFS | as_nl) ;; #(
13337      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13338      *) { eval $ac_var=; unset $ac_var;} ;;
13339      esac ;;
13340    esac
13341  done
13342
13343  (set) 2>&1 |
13344    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13345    *${as_nl}ac_space=\ *)
13346      # `set' does not quote correctly, so add quotes: double-quote
13347      # substitution turns \\\\ into \\, and sed turns \\ into \.
13348      sed -n \
13349	"s/'/'\\\\''/g;
13350	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13351      ;; #(
13352    *)
13353      # `set' quotes correctly as required by POSIX, so do not add quotes.
13354      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13355      ;;
13356    esac |
13357    sort
13358) |
13359  sed '
13360     /^ac_cv_env_/b end
13361     t clear
13362     :clear
13363     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13364     t end
13365     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13366     :end' >>confcache
13367if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13368  if test -w "$cache_file"; then
13369    if test "x$cache_file" != "x/dev/null"; then
13370      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13371$as_echo "$as_me: updating cache $cache_file" >&6;}
13372      if test ! -f "$cache_file" || test -h "$cache_file"; then
13373	cat confcache >"$cache_file"
13374      else
13375        case $cache_file in #(
13376        */* | ?:*)
13377	  mv -f confcache "$cache_file"$$ &&
13378	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13379        *)
13380	  mv -f confcache "$cache_file" ;;
13381	esac
13382      fi
13383    fi
13384  else
13385    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13386$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13387  fi
13388fi
13389rm -f confcache
13390
13391test "x$prefix" = xNONE && prefix=$ac_default_prefix
13392# Let make expand exec_prefix.
13393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13394
13395DEFS=-DHAVE_CONFIG_H
13396
13397ac_libobjs=
13398ac_ltlibobjs=
13399U=
13400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13401  # 1. Remove the extension, and $U if already installed.
13402  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13403  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13404  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13405  #    will be set to the directory where LIBOBJS objects are built.
13406  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13407  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13408done
13409LIBOBJS=$ac_libobjs
13410
13411LTLIBOBJS=$ac_ltlibobjs
13412
13413
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13415$as_echo_n "checking that generated files are newer than configure... " >&6; }
13416   if test -n "$am_sleep_pid"; then
13417     # Hide warnings about reused PIDs.
13418     wait $am_sleep_pid 2>/dev/null
13419   fi
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13421$as_echo "done" >&6; }
13422if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13423  as_fn_error $? "conditional \"AMDEP\" was never defined.
13424Usually this means the macro was only invoked conditionally." "$LINENO" 5
13425fi
13426if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13427  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13428Usually this means the macro was only invoked conditionally." "$LINENO" 5
13429fi
13430 if test -n "$EXEEXT"; then
13431  am__EXEEXT_TRUE=
13432  am__EXEEXT_FALSE='#'
13433else
13434  am__EXEEXT_TRUE='#'
13435  am__EXEEXT_FALSE=
13436fi
13437
13438if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
13439  as_fn_error $? "conditional \"WINDOWS\" was never defined.
13440Usually this means the macro was only invoked conditionally." "$LINENO" 5
13441fi
13442
13443if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13444  as_fn_error $? "conditional \"DEBUG\" was never defined.
13445Usually this means the macro was only invoked conditionally." "$LINENO" 5
13446fi
13447if test -z "${BINARIES_TRUE}" && test -z "${BINARIES_FALSE}"; then
13448  as_fn_error $? "conditional \"BINARIES\" was never defined.
13449Usually this means the macro was only invoked conditionally." "$LINENO" 5
13450fi
13451if test -z "${TESTS_TRUE}" && test -z "${TESTS_FALSE}"; then
13452  as_fn_error $? "conditional \"TESTS\" was never defined.
13453Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454fi
13455
13456: "${CONFIG_STATUS=./config.status}"
13457ac_write_fail=0
13458ac_clean_files_save=$ac_clean_files
13459ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13461$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13462as_write_fail=0
13463cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13464#! $SHELL
13465# Generated by $as_me.
13466# Run this file to recreate the current configuration.
13467# Compiler output produced by configure, useful for debugging
13468# configure, is in config.log if it exists.
13469
13470debug=false
13471ac_cs_recheck=false
13472ac_cs_silent=false
13473
13474SHELL=\${CONFIG_SHELL-$SHELL}
13475export SHELL
13476_ASEOF
13477cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13478## -------------------- ##
13479## M4sh Initialization. ##
13480## -------------------- ##
13481
13482# Be more Bourne compatible
13483DUALCASE=1; export DUALCASE # for MKS sh
13484if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13485  emulate sh
13486  NULLCMD=:
13487  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13488  # is contrary to our usage.  Disable this feature.
13489  alias -g '${1+"$@"}'='"$@"'
13490  setopt NO_GLOB_SUBST
13491else
13492  case `(set -o) 2>/dev/null` in #(
13493  *posix*) :
13494    set -o posix ;; #(
13495  *) :
13496     ;;
13497esac
13498fi
13499
13500
13501as_nl='
13502'
13503export as_nl
13504# Printing a long string crashes Solaris 7 /usr/bin/printf.
13505as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13506as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13507as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13508# Prefer a ksh shell builtin over an external printf program on Solaris,
13509# but without wasting forks for bash or zsh.
13510if test -z "$BASH_VERSION$ZSH_VERSION" \
13511    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13512  as_echo='print -r --'
13513  as_echo_n='print -rn --'
13514elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13515  as_echo='printf %s\n'
13516  as_echo_n='printf %s'
13517else
13518  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13519    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13520    as_echo_n='/usr/ucb/echo -n'
13521  else
13522    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13523    as_echo_n_body='eval
13524      arg=$1;
13525      case $arg in #(
13526      *"$as_nl"*)
13527	expr "X$arg" : "X\\(.*\\)$as_nl";
13528	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13529      esac;
13530      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13531    '
13532    export as_echo_n_body
13533    as_echo_n='sh -c $as_echo_n_body as_echo'
13534  fi
13535  export as_echo_body
13536  as_echo='sh -c $as_echo_body as_echo'
13537fi
13538
13539# The user is always right.
13540if test "${PATH_SEPARATOR+set}" != set; then
13541  PATH_SEPARATOR=:
13542  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13543    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13544      PATH_SEPARATOR=';'
13545  }
13546fi
13547
13548
13549# IFS
13550# We need space, tab and new line, in precisely that order.  Quoting is
13551# there to prevent editors from complaining about space-tab.
13552# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13553# splitting by setting IFS to empty value.)
13554IFS=" ""	$as_nl"
13555
13556# Find who we are.  Look in the path if we contain no directory separator.
13557as_myself=
13558case $0 in #((
13559  *[\\/]* ) as_myself=$0 ;;
13560  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561for as_dir in $PATH
13562do
13563  IFS=$as_save_IFS
13564  test -z "$as_dir" && as_dir=.
13565    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13566  done
13567IFS=$as_save_IFS
13568
13569     ;;
13570esac
13571# We did not find ourselves, most probably we were run as `sh COMMAND'
13572# in which case we are not to be found in the path.
13573if test "x$as_myself" = x; then
13574  as_myself=$0
13575fi
13576if test ! -f "$as_myself"; then
13577  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13578  exit 1
13579fi
13580
13581# Unset variables that we do not need and which cause bugs (e.g. in
13582# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13583# suppresses any "Segmentation fault" message there.  '((' could
13584# trigger a bug in pdksh 5.2.14.
13585for as_var in BASH_ENV ENV MAIL MAILPATH
13586do eval test x\${$as_var+set} = xset \
13587  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13588done
13589PS1='$ '
13590PS2='> '
13591PS4='+ '
13592
13593# NLS nuisances.
13594LC_ALL=C
13595export LC_ALL
13596LANGUAGE=C
13597export LANGUAGE
13598
13599# CDPATH.
13600(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13601
13602
13603# as_fn_error STATUS ERROR [LINENO LOG_FD]
13604# ----------------------------------------
13605# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13606# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13607# script with STATUS, using 1 if that was 0.
13608as_fn_error ()
13609{
13610  as_status=$1; test $as_status -eq 0 && as_status=1
13611  if test "$4"; then
13612    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13613    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13614  fi
13615  $as_echo "$as_me: error: $2" >&2
13616  as_fn_exit $as_status
13617} # as_fn_error
13618
13619
13620# as_fn_set_status STATUS
13621# -----------------------
13622# Set $? to STATUS, without forking.
13623as_fn_set_status ()
13624{
13625  return $1
13626} # as_fn_set_status
13627
13628# as_fn_exit STATUS
13629# -----------------
13630# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13631as_fn_exit ()
13632{
13633  set +e
13634  as_fn_set_status $1
13635  exit $1
13636} # as_fn_exit
13637
13638# as_fn_unset VAR
13639# ---------------
13640# Portably unset VAR.
13641as_fn_unset ()
13642{
13643  { eval $1=; unset $1;}
13644}
13645as_unset=as_fn_unset
13646# as_fn_append VAR VALUE
13647# ----------------------
13648# Append the text in VALUE to the end of the definition contained in VAR. Take
13649# advantage of any shell optimizations that allow amortized linear growth over
13650# repeated appends, instead of the typical quadratic growth present in naive
13651# implementations.
13652if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13653  eval 'as_fn_append ()
13654  {
13655    eval $1+=\$2
13656  }'
13657else
13658  as_fn_append ()
13659  {
13660    eval $1=\$$1\$2
13661  }
13662fi # as_fn_append
13663
13664# as_fn_arith ARG...
13665# ------------------
13666# Perform arithmetic evaluation on the ARGs, and store the result in the
13667# global $as_val. Take advantage of shells that can avoid forks. The arguments
13668# must be portable across $(()) and expr.
13669if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13670  eval 'as_fn_arith ()
13671  {
13672    as_val=$(( $* ))
13673  }'
13674else
13675  as_fn_arith ()
13676  {
13677    as_val=`expr "$@" || test $? -eq 1`
13678  }
13679fi # as_fn_arith
13680
13681
13682if expr a : '\(a\)' >/dev/null 2>&1 &&
13683   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13684  as_expr=expr
13685else
13686  as_expr=false
13687fi
13688
13689if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13690  as_basename=basename
13691else
13692  as_basename=false
13693fi
13694
13695if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13696  as_dirname=dirname
13697else
13698  as_dirname=false
13699fi
13700
13701as_me=`$as_basename -- "$0" ||
13702$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13703	 X"$0" : 'X\(//\)$' \| \
13704	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13705$as_echo X/"$0" |
13706    sed '/^.*\/\([^/][^/]*\)\/*$/{
13707	    s//\1/
13708	    q
13709	  }
13710	  /^X\/\(\/\/\)$/{
13711	    s//\1/
13712	    q
13713	  }
13714	  /^X\/\(\/\).*/{
13715	    s//\1/
13716	    q
13717	  }
13718	  s/.*/./; q'`
13719
13720# Avoid depending upon Character Ranges.
13721as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13722as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13723as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13724as_cr_digits='0123456789'
13725as_cr_alnum=$as_cr_Letters$as_cr_digits
13726
13727ECHO_C= ECHO_N= ECHO_T=
13728case `echo -n x` in #(((((
13729-n*)
13730  case `echo 'xy\c'` in
13731  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13732  xy)  ECHO_C='\c';;
13733  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13734       ECHO_T='	';;
13735  esac;;
13736*)
13737  ECHO_N='-n';;
13738esac
13739
13740rm -f conf$$ conf$$.exe conf$$.file
13741if test -d conf$$.dir; then
13742  rm -f conf$$.dir/conf$$.file
13743else
13744  rm -f conf$$.dir
13745  mkdir conf$$.dir 2>/dev/null
13746fi
13747if (echo >conf$$.file) 2>/dev/null; then
13748  if ln -s conf$$.file conf$$ 2>/dev/null; then
13749    as_ln_s='ln -s'
13750    # ... but there are two gotchas:
13751    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13752    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13753    # In both cases, we have to default to `cp -pR'.
13754    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13755      as_ln_s='cp -pR'
13756  elif ln conf$$.file conf$$ 2>/dev/null; then
13757    as_ln_s=ln
13758  else
13759    as_ln_s='cp -pR'
13760  fi
13761else
13762  as_ln_s='cp -pR'
13763fi
13764rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13765rmdir conf$$.dir 2>/dev/null
13766
13767
13768# as_fn_mkdir_p
13769# -------------
13770# Create "$as_dir" as a directory, including parents if necessary.
13771as_fn_mkdir_p ()
13772{
13773
13774  case $as_dir in #(
13775  -*) as_dir=./$as_dir;;
13776  esac
13777  test -d "$as_dir" || eval $as_mkdir_p || {
13778    as_dirs=
13779    while :; do
13780      case $as_dir in #(
13781      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13782      *) as_qdir=$as_dir;;
13783      esac
13784      as_dirs="'$as_qdir' $as_dirs"
13785      as_dir=`$as_dirname -- "$as_dir" ||
13786$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13787	 X"$as_dir" : 'X\(//\)[^/]' \| \
13788	 X"$as_dir" : 'X\(//\)$' \| \
13789	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13790$as_echo X"$as_dir" |
13791    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13792	    s//\1/
13793	    q
13794	  }
13795	  /^X\(\/\/\)[^/].*/{
13796	    s//\1/
13797	    q
13798	  }
13799	  /^X\(\/\/\)$/{
13800	    s//\1/
13801	    q
13802	  }
13803	  /^X\(\/\).*/{
13804	    s//\1/
13805	    q
13806	  }
13807	  s/.*/./; q'`
13808      test -d "$as_dir" && break
13809    done
13810    test -z "$as_dirs" || eval "mkdir $as_dirs"
13811  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13812
13813
13814} # as_fn_mkdir_p
13815if mkdir -p . 2>/dev/null; then
13816  as_mkdir_p='mkdir -p "$as_dir"'
13817else
13818  test -d ./-p && rmdir ./-p
13819  as_mkdir_p=false
13820fi
13821
13822
13823# as_fn_executable_p FILE
13824# -----------------------
13825# Test if FILE is an executable regular file.
13826as_fn_executable_p ()
13827{
13828  test -f "$1" && test -x "$1"
13829} # as_fn_executable_p
13830as_test_x='test -x'
13831as_executable_p=as_fn_executable_p
13832
13833# Sed expression to map a string onto a valid CPP name.
13834as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13835
13836# Sed expression to map a string onto a valid variable name.
13837as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13838
13839
13840exec 6>&1
13841## ----------------------------------- ##
13842## Main body of $CONFIG_STATUS script. ##
13843## ----------------------------------- ##
13844_ASEOF
13845test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13846
13847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13848# Save the log message, to keep $0 and so on meaningful, and to
13849# report actual input values of CONFIG_FILES etc. instead of their
13850# values after options handling.
13851ac_log="
13852This file was extended by libmaxminddb $as_me 1.6.0, which was
13853generated by GNU Autoconf 2.69.  Invocation command line was
13854
13855  CONFIG_FILES    = $CONFIG_FILES
13856  CONFIG_HEADERS  = $CONFIG_HEADERS
13857  CONFIG_LINKS    = $CONFIG_LINKS
13858  CONFIG_COMMANDS = $CONFIG_COMMANDS
13859  $ $0 $@
13860
13861on `(hostname || uname -n) 2>/dev/null | sed 1q`
13862"
13863
13864_ACEOF
13865
13866case $ac_config_files in *"
13867"*) set x $ac_config_files; shift; ac_config_files=$*;;
13868esac
13869
13870case $ac_config_headers in *"
13871"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13872esac
13873
13874
13875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13876# Files that config.status was made for.
13877config_files="$ac_config_files"
13878config_headers="$ac_config_headers"
13879config_commands="$ac_config_commands"
13880
13881_ACEOF
13882
13883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13884ac_cs_usage="\
13885\`$as_me' instantiates files and other configuration actions
13886from templates according to the current configuration.  Unless the files
13887and actions are specified as TAGs, all are instantiated by default.
13888
13889Usage: $0 [OPTION]... [TAG]...
13890
13891  -h, --help       print this help, then exit
13892  -V, --version    print version number and configuration settings, then exit
13893      --config     print configuration, then exit
13894  -q, --quiet, --silent
13895                   do not print progress messages
13896  -d, --debug      don't remove temporary files
13897      --recheck    update $as_me by reconfiguring in the same conditions
13898      --file=FILE[:TEMPLATE]
13899                   instantiate the configuration file FILE
13900      --header=FILE[:TEMPLATE]
13901                   instantiate the configuration header FILE
13902
13903Configuration files:
13904$config_files
13905
13906Configuration headers:
13907$config_headers
13908
13909Configuration commands:
13910$config_commands
13911
13912Report bugs to <support@maxmind.com>."
13913
13914_ACEOF
13915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13916ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13917ac_cs_version="\\
13918libmaxminddb config.status 1.6.0
13919configured by $0, generated by GNU Autoconf 2.69,
13920  with options \\"\$ac_cs_config\\"
13921
13922Copyright (C) 2012 Free Software Foundation, Inc.
13923This config.status script is free software; the Free Software Foundation
13924gives unlimited permission to copy, distribute and modify it."
13925
13926ac_pwd='$ac_pwd'
13927srcdir='$srcdir'
13928INSTALL='$INSTALL'
13929MKDIR_P='$MKDIR_P'
13930AWK='$AWK'
13931test -n "\$AWK" || AWK=awk
13932_ACEOF
13933
13934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13935# The default lists apply if the user does not specify any file.
13936ac_need_defaults=:
13937while test $# != 0
13938do
13939  case $1 in
13940  --*=?*)
13941    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13942    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13943    ac_shift=:
13944    ;;
13945  --*=)
13946    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13947    ac_optarg=
13948    ac_shift=:
13949    ;;
13950  *)
13951    ac_option=$1
13952    ac_optarg=$2
13953    ac_shift=shift
13954    ;;
13955  esac
13956
13957  case $ac_option in
13958  # Handling of the options.
13959  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13960    ac_cs_recheck=: ;;
13961  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13962    $as_echo "$ac_cs_version"; exit ;;
13963  --config | --confi | --conf | --con | --co | --c )
13964    $as_echo "$ac_cs_config"; exit ;;
13965  --debug | --debu | --deb | --de | --d | -d )
13966    debug=: ;;
13967  --file | --fil | --fi | --f )
13968    $ac_shift
13969    case $ac_optarg in
13970    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13971    '') as_fn_error $? "missing file argument" ;;
13972    esac
13973    as_fn_append CONFIG_FILES " '$ac_optarg'"
13974    ac_need_defaults=false;;
13975  --header | --heade | --head | --hea )
13976    $ac_shift
13977    case $ac_optarg in
13978    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13979    esac
13980    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13981    ac_need_defaults=false;;
13982  --he | --h)
13983    # Conflict between --help and --header
13984    as_fn_error $? "ambiguous option: \`$1'
13985Try \`$0 --help' for more information.";;
13986  --help | --hel | -h )
13987    $as_echo "$ac_cs_usage"; exit ;;
13988  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13989  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13990    ac_cs_silent=: ;;
13991
13992  # This is an error.
13993  -*) as_fn_error $? "unrecognized option: \`$1'
13994Try \`$0 --help' for more information." ;;
13995
13996  *) as_fn_append ac_config_targets " $1"
13997     ac_need_defaults=false ;;
13998
13999  esac
14000  shift
14001done
14002
14003ac_configure_extra_args=
14004
14005if $ac_cs_silent; then
14006  exec 6>/dev/null
14007  ac_configure_extra_args="$ac_configure_extra_args --silent"
14008fi
14009
14010_ACEOF
14011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012if \$ac_cs_recheck; then
14013  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14014  shift
14015  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14016  CONFIG_SHELL='$SHELL'
14017  export CONFIG_SHELL
14018  exec "\$@"
14019fi
14020
14021_ACEOF
14022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023exec 5>>config.log
14024{
14025  echo
14026  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14027## Running $as_me. ##
14028_ASBOX
14029  $as_echo "$ac_log"
14030} >&5
14031
14032_ACEOF
14033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034#
14035# INIT-COMMANDS
14036#
14037
14038
14039# The HP-UX ksh and POSIX shell print the target directory to stdout
14040# if CDPATH is set.
14041(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14042
14043sed_quote_subst='$sed_quote_subst'
14044double_quote_subst='$double_quote_subst'
14045delay_variable_subst='$delay_variable_subst'
14046macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14047macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14048enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14049enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14050pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14051enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14052shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14053SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14054ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14055PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14056host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14057host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14058host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14059build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14060build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14061build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14062SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14063Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14064GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14065EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14066FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14067LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14068NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14069LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14070max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14071ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14072exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14073lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14074lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14075lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14076lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14077lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14078reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14079reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14080OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14081deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14082file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14083file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14084want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14085DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14086sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14087AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14088AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14089archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14090STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14091RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14092old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14093old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14094old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14095lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14096CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14097CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14098compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14099GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14100lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14101lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14102lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14103lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14104lt_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"`'
14105lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14106nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14107lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14108lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14109objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14110MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14111lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14112lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14113lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14114lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14115lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14116need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14117MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14118DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14119NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14120LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14121OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14122OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14123libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14124shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14125extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14126archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14127enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14128export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14129whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14130compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14131old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14132old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14133archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14134archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14135module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14136module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14137with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14138allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14139no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14140hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14141hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14142hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14143hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14144hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14145hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14146hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14147inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14148link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14149always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14150export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14151exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14152include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14153prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14154postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14155file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14156variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14157need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14158need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14159version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14160runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14161shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14162shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14163libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14164library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14165soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14166install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14167postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14168postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14169finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14170finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14171hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14172sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14173configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14174configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14175hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14176enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14177enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14178enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14179old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14180striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14181
14182LTCC='$LTCC'
14183LTCFLAGS='$LTCFLAGS'
14184compiler='$compiler_DEFAULT'
14185
14186# A function that is used when there is no print builtin or printf.
14187func_fallback_echo ()
14188{
14189  eval 'cat <<_LTECHO_EOF
14190\$1
14191_LTECHO_EOF'
14192}
14193
14194# Quote evaled strings.
14195for var in SHELL \
14196ECHO \
14197PATH_SEPARATOR \
14198SED \
14199GREP \
14200EGREP \
14201FGREP \
14202LD \
14203NM \
14204LN_S \
14205lt_SP2NL \
14206lt_NL2SP \
14207reload_flag \
14208OBJDUMP \
14209deplibs_check_method \
14210file_magic_cmd \
14211file_magic_glob \
14212want_nocaseglob \
14213DLLTOOL \
14214sharedlib_from_linklib_cmd \
14215AR \
14216AR_FLAGS \
14217archiver_list_spec \
14218STRIP \
14219RANLIB \
14220CC \
14221CFLAGS \
14222compiler \
14223lt_cv_sys_global_symbol_pipe \
14224lt_cv_sys_global_symbol_to_cdecl \
14225lt_cv_sys_global_symbol_to_import \
14226lt_cv_sys_global_symbol_to_c_name_address \
14227lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14228lt_cv_nm_interface \
14229nm_file_list_spec \
14230lt_cv_truncate_bin \
14231lt_prog_compiler_no_builtin_flag \
14232lt_prog_compiler_pic \
14233lt_prog_compiler_wl \
14234lt_prog_compiler_static \
14235lt_cv_prog_compiler_c_o \
14236need_locks \
14237MANIFEST_TOOL \
14238DSYMUTIL \
14239NMEDIT \
14240LIPO \
14241OTOOL \
14242OTOOL64 \
14243shrext_cmds \
14244export_dynamic_flag_spec \
14245whole_archive_flag_spec \
14246compiler_needs_object \
14247with_gnu_ld \
14248allow_undefined_flag \
14249no_undefined_flag \
14250hardcode_libdir_flag_spec \
14251hardcode_libdir_separator \
14252exclude_expsyms \
14253include_expsyms \
14254file_list_spec \
14255variables_saved_for_relink \
14256libname_spec \
14257library_names_spec \
14258soname_spec \
14259install_override_mode \
14260finish_eval \
14261old_striplib \
14262striplib; do
14263    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14264    *[\\\\\\\`\\"\\\$]*)
14265      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14266      ;;
14267    *)
14268      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14269      ;;
14270    esac
14271done
14272
14273# Double-quote double-evaled strings.
14274for var in reload_cmds \
14275old_postinstall_cmds \
14276old_postuninstall_cmds \
14277old_archive_cmds \
14278extract_expsyms_cmds \
14279old_archive_from_new_cmds \
14280old_archive_from_expsyms_cmds \
14281archive_cmds \
14282archive_expsym_cmds \
14283module_cmds \
14284module_expsym_cmds \
14285export_symbols_cmds \
14286prelink_cmds \
14287postlink_cmds \
14288postinstall_cmds \
14289postuninstall_cmds \
14290finish_cmds \
14291sys_lib_search_path_spec \
14292configure_time_dlsearch_path \
14293configure_time_lt_sys_library_path; do
14294    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14295    *[\\\\\\\`\\"\\\$]*)
14296      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14297      ;;
14298    *)
14299      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14300      ;;
14301    esac
14302done
14303
14304ac_aux_dir='$ac_aux_dir'
14305
14306# See if we are running on zsh, and set the options that allow our
14307# commands through without removal of \ escapes INIT.
14308if test -n "\${ZSH_VERSION+set}"; then
14309   setopt NO_GLOB_SUBST
14310fi
14311
14312
14313    PACKAGE='$PACKAGE'
14314    VERSION='$VERSION'
14315    RM='$RM'
14316    ofile='$ofile'
14317
14318
14319
14320AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14321
14322_ACEOF
14323
14324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14325
14326# Handling of arguments.
14327for ac_config_target in $ac_config_targets
14328do
14329  case $ac_config_target in
14330    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14331    "include/maxminddb_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/maxminddb_config.h" ;;
14332    "src/libmaxminddb.pc") CONFIG_FILES="$CONFIG_FILES src/libmaxminddb.pc" ;;
14333    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14334    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14335    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14336    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14337    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14338    "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
14339
14340  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14341  esac
14342done
14343
14344
14345# If the user did not use the arguments to specify the items to instantiate,
14346# then the envvar interface is used.  Set only those that are not.
14347# We use the long form for the default assignment because of an extremely
14348# bizarre bug on SunOS 4.1.3.
14349if $ac_need_defaults; then
14350  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14351  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14352  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14353fi
14354
14355# Have a temporary directory for convenience.  Make it in the build tree
14356# simply because there is no reason against having it here, and in addition,
14357# creating and moving files from /tmp can sometimes cause problems.
14358# Hook for its removal unless debugging.
14359# Note that there is a small window in which the directory will not be cleaned:
14360# after its creation but before its name has been assigned to `$tmp'.
14361$debug ||
14362{
14363  tmp= ac_tmp=
14364  trap 'exit_status=$?
14365  : "${ac_tmp:=$tmp}"
14366  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14367' 0
14368  trap 'as_fn_exit 1' 1 2 13 15
14369}
14370# Create a (secure) tmp directory for tmp files.
14371
14372{
14373  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14374  test -d "$tmp"
14375}  ||
14376{
14377  tmp=./conf$$-$RANDOM
14378  (umask 077 && mkdir "$tmp")
14379} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14380ac_tmp=$tmp
14381
14382# Set up the scripts for CONFIG_FILES section.
14383# No need to generate them if there are no CONFIG_FILES.
14384# This happens for instance with `./config.status config.h'.
14385if test -n "$CONFIG_FILES"; then
14386
14387
14388ac_cr=`echo X | tr X '\015'`
14389# On cygwin, bash can eat \r inside `` if the user requested igncr.
14390# But we know of no other shell where ac_cr would be empty at this
14391# point, so we can use a bashism as a fallback.
14392if test "x$ac_cr" = x; then
14393  eval ac_cr=\$\'\\r\'
14394fi
14395ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14396if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14397  ac_cs_awk_cr='\\r'
14398else
14399  ac_cs_awk_cr=$ac_cr
14400fi
14401
14402echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14403_ACEOF
14404
14405
14406{
14407  echo "cat >conf$$subs.awk <<_ACEOF" &&
14408  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14409  echo "_ACEOF"
14410} >conf$$subs.sh ||
14411  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14412ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14413ac_delim='%!_!# '
14414for ac_last_try in false false false false false :; do
14415  . ./conf$$subs.sh ||
14416    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14417
14418  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14419  if test $ac_delim_n = $ac_delim_num; then
14420    break
14421  elif $ac_last_try; then
14422    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14423  else
14424    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14425  fi
14426done
14427rm -f conf$$subs.sh
14428
14429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14430cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14431_ACEOF
14432sed -n '
14433h
14434s/^/S["/; s/!.*/"]=/
14435p
14436g
14437s/^[^!]*!//
14438:repl
14439t repl
14440s/'"$ac_delim"'$//
14441t delim
14442:nl
14443h
14444s/\(.\{148\}\)..*/\1/
14445t more1
14446s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14447p
14448n
14449b repl
14450:more1
14451s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14452p
14453g
14454s/.\{148\}//
14455t nl
14456:delim
14457h
14458s/\(.\{148\}\)..*/\1/
14459t more2
14460s/["\\]/\\&/g; s/^/"/; s/$/"/
14461p
14462b
14463:more2
14464s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14465p
14466g
14467s/.\{148\}//
14468t delim
14469' <conf$$subs.awk | sed '
14470/^[^""]/{
14471  N
14472  s/\n//
14473}
14474' >>$CONFIG_STATUS || ac_write_fail=1
14475rm -f conf$$subs.awk
14476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14477_ACAWK
14478cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14479  for (key in S) S_is_set[key] = 1
14480  FS = ""
14481
14482}
14483{
14484  line = $ 0
14485  nfields = split(line, field, "@")
14486  substed = 0
14487  len = length(field[1])
14488  for (i = 2; i < nfields; i++) {
14489    key = field[i]
14490    keylen = length(key)
14491    if (S_is_set[key]) {
14492      value = S[key]
14493      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14494      len += length(value) + length(field[++i])
14495      substed = 1
14496    } else
14497      len += 1 + keylen
14498  }
14499
14500  print line
14501}
14502
14503_ACAWK
14504_ACEOF
14505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14506if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14507  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14508else
14509  cat
14510fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14511  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14512_ACEOF
14513
14514# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14515# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14516# trailing colons and then remove the whole line if VPATH becomes empty
14517# (actually we leave an empty line to preserve line numbers).
14518if test "x$srcdir" = x.; then
14519  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14520h
14521s///
14522s/^/:/
14523s/[	 ]*$/:/
14524s/:\$(srcdir):/:/g
14525s/:\${srcdir}:/:/g
14526s/:@srcdir@:/:/g
14527s/^:*//
14528s/:*$//
14529x
14530s/\(=[	 ]*\).*/\1/
14531G
14532s/\n//
14533s/^[^=]*=[	 ]*$//
14534}'
14535fi
14536
14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14538fi # test -n "$CONFIG_FILES"
14539
14540# Set up the scripts for CONFIG_HEADERS section.
14541# No need to generate them if there are no CONFIG_HEADERS.
14542# This happens for instance with `./config.status Makefile'.
14543if test -n "$CONFIG_HEADERS"; then
14544cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14545BEGIN {
14546_ACEOF
14547
14548# Transform confdefs.h into an awk script `defines.awk', embedded as
14549# here-document in config.status, that substitutes the proper values into
14550# config.h.in to produce config.h.
14551
14552# Create a delimiter string that does not exist in confdefs.h, to ease
14553# handling of long lines.
14554ac_delim='%!_!# '
14555for ac_last_try in false false :; do
14556  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14557  if test -z "$ac_tt"; then
14558    break
14559  elif $ac_last_try; then
14560    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14561  else
14562    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14563  fi
14564done
14565
14566# For the awk script, D is an array of macro values keyed by name,
14567# likewise P contains macro parameters if any.  Preserve backslash
14568# newline sequences.
14569
14570ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14571sed -n '
14572s/.\{148\}/&'"$ac_delim"'/g
14573t rset
14574:rset
14575s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14576t def
14577d
14578:def
14579s/\\$//
14580t bsnl
14581s/["\\]/\\&/g
14582s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14583D["\1"]=" \3"/p
14584s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14585d
14586:bsnl
14587s/["\\]/\\&/g
14588s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14589D["\1"]=" \3\\\\\\n"\\/p
14590t cont
14591s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14592t cont
14593d
14594:cont
14595n
14596s/.\{148\}/&'"$ac_delim"'/g
14597t clear
14598:clear
14599s/\\$//
14600t bsnlc
14601s/["\\]/\\&/g; s/^/"/; s/$/"/p
14602d
14603:bsnlc
14604s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14605b cont
14606' <confdefs.h | sed '
14607s/'"$ac_delim"'/"\\\
14608"/g' >>$CONFIG_STATUS || ac_write_fail=1
14609
14610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611  for (key in D) D_is_set[key] = 1
14612  FS = ""
14613}
14614/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14615  line = \$ 0
14616  split(line, arg, " ")
14617  if (arg[1] == "#") {
14618    defundef = arg[2]
14619    mac1 = arg[3]
14620  } else {
14621    defundef = substr(arg[1], 2)
14622    mac1 = arg[2]
14623  }
14624  split(mac1, mac2, "(") #)
14625  macro = mac2[1]
14626  prefix = substr(line, 1, index(line, defundef) - 1)
14627  if (D_is_set[macro]) {
14628    # Preserve the white space surrounding the "#".
14629    print prefix "define", macro P[macro] D[macro]
14630    next
14631  } else {
14632    # Replace #undef with comments.  This is necessary, for example,
14633    # in the case of _POSIX_SOURCE, which is predefined and required
14634    # on some systems where configure will not decide to define it.
14635    if (defundef == "undef") {
14636      print "/*", prefix defundef, macro, "*/"
14637      next
14638    }
14639  }
14640}
14641{ print }
14642_ACAWK
14643_ACEOF
14644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14645  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14646fi # test -n "$CONFIG_HEADERS"
14647
14648
14649eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14650shift
14651for ac_tag
14652do
14653  case $ac_tag in
14654  :[FHLC]) ac_mode=$ac_tag; continue;;
14655  esac
14656  case $ac_mode$ac_tag in
14657  :[FHL]*:*);;
14658  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14659  :[FH]-) ac_tag=-:-;;
14660  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14661  esac
14662  ac_save_IFS=$IFS
14663  IFS=:
14664  set x $ac_tag
14665  IFS=$ac_save_IFS
14666  shift
14667  ac_file=$1
14668  shift
14669
14670  case $ac_mode in
14671  :L) ac_source=$1;;
14672  :[FH])
14673    ac_file_inputs=
14674    for ac_f
14675    do
14676      case $ac_f in
14677      -) ac_f="$ac_tmp/stdin";;
14678      *) # Look for the file first in the build tree, then in the source tree
14679	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14680	 # because $ac_f cannot contain `:'.
14681	 test -f "$ac_f" ||
14682	   case $ac_f in
14683	   [\\/$]*) false;;
14684	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14685	   esac ||
14686	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14687      esac
14688      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14689      as_fn_append ac_file_inputs " '$ac_f'"
14690    done
14691
14692    # Let's still pretend it is `configure' which instantiates (i.e., don't
14693    # use $as_me), people would be surprised to read:
14694    #    /* config.h.  Generated by config.status.  */
14695    configure_input='Generated from '`
14696	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14697	`' by configure.'
14698    if test x"$ac_file" != x-; then
14699      configure_input="$ac_file.  $configure_input"
14700      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14701$as_echo "$as_me: creating $ac_file" >&6;}
14702    fi
14703    # Neutralize special characters interpreted by sed in replacement strings.
14704    case $configure_input in #(
14705    *\&* | *\|* | *\\* )
14706       ac_sed_conf_input=`$as_echo "$configure_input" |
14707       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14708    *) ac_sed_conf_input=$configure_input;;
14709    esac
14710
14711    case $ac_tag in
14712    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14713      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14714    esac
14715    ;;
14716  esac
14717
14718  ac_dir=`$as_dirname -- "$ac_file" ||
14719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14720	 X"$ac_file" : 'X\(//\)[^/]' \| \
14721	 X"$ac_file" : 'X\(//\)$' \| \
14722	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14723$as_echo X"$ac_file" |
14724    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14725	    s//\1/
14726	    q
14727	  }
14728	  /^X\(\/\/\)[^/].*/{
14729	    s//\1/
14730	    q
14731	  }
14732	  /^X\(\/\/\)$/{
14733	    s//\1/
14734	    q
14735	  }
14736	  /^X\(\/\).*/{
14737	    s//\1/
14738	    q
14739	  }
14740	  s/.*/./; q'`
14741  as_dir="$ac_dir"; as_fn_mkdir_p
14742  ac_builddir=.
14743
14744case "$ac_dir" in
14745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14746*)
14747  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14748  # A ".." for each directory in $ac_dir_suffix.
14749  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14750  case $ac_top_builddir_sub in
14751  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14752  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14753  esac ;;
14754esac
14755ac_abs_top_builddir=$ac_pwd
14756ac_abs_builddir=$ac_pwd$ac_dir_suffix
14757# for backward compatibility:
14758ac_top_builddir=$ac_top_build_prefix
14759
14760case $srcdir in
14761  .)  # We are building in place.
14762    ac_srcdir=.
14763    ac_top_srcdir=$ac_top_builddir_sub
14764    ac_abs_top_srcdir=$ac_pwd ;;
14765  [\\/]* | ?:[\\/]* )  # Absolute name.
14766    ac_srcdir=$srcdir$ac_dir_suffix;
14767    ac_top_srcdir=$srcdir
14768    ac_abs_top_srcdir=$srcdir ;;
14769  *) # Relative name.
14770    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14771    ac_top_srcdir=$ac_top_build_prefix$srcdir
14772    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14773esac
14774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14775
14776
14777  case $ac_mode in
14778  :F)
14779  #
14780  # CONFIG_FILE
14781  #
14782
14783  case $INSTALL in
14784  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14785  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14786  esac
14787  ac_MKDIR_P=$MKDIR_P
14788  case $MKDIR_P in
14789  [\\/$]* | ?:[\\/]* ) ;;
14790  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14791  esac
14792_ACEOF
14793
14794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14795# If the template does not know about datarootdir, expand it.
14796# FIXME: This hack should be removed a few years after 2.60.
14797ac_datarootdir_hack=; ac_datarootdir_seen=
14798ac_sed_dataroot='
14799/datarootdir/ {
14800  p
14801  q
14802}
14803/@datadir@/p
14804/@docdir@/p
14805/@infodir@/p
14806/@localedir@/p
14807/@mandir@/p'
14808case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14809*datarootdir*) ac_datarootdir_seen=yes;;
14810*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14812$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14813_ACEOF
14814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14815  ac_datarootdir_hack='
14816  s&@datadir@&$datadir&g
14817  s&@docdir@&$docdir&g
14818  s&@infodir@&$infodir&g
14819  s&@localedir@&$localedir&g
14820  s&@mandir@&$mandir&g
14821  s&\\\${datarootdir}&$datarootdir&g' ;;
14822esac
14823_ACEOF
14824
14825# Neutralize VPATH when `$srcdir' = `.'.
14826# Shell code in configure.ac might set extrasub.
14827# FIXME: do we really want to maintain this feature?
14828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829ac_sed_extra="$ac_vpsub
14830$extrasub
14831_ACEOF
14832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14833:t
14834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14835s|@configure_input@|$ac_sed_conf_input|;t t
14836s&@top_builddir@&$ac_top_builddir_sub&;t t
14837s&@top_build_prefix@&$ac_top_build_prefix&;t t
14838s&@srcdir@&$ac_srcdir&;t t
14839s&@abs_srcdir@&$ac_abs_srcdir&;t t
14840s&@top_srcdir@&$ac_top_srcdir&;t t
14841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14842s&@builddir@&$ac_builddir&;t t
14843s&@abs_builddir@&$ac_abs_builddir&;t t
14844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14845s&@INSTALL@&$ac_INSTALL&;t t
14846s&@MKDIR_P@&$ac_MKDIR_P&;t t
14847$ac_datarootdir_hack
14848"
14849eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14850  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14851
14852test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14853  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14854  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14855      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14857which seems to be undefined.  Please make sure it is defined" >&5
14858$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14859which seems to be undefined.  Please make sure it is defined" >&2;}
14860
14861  rm -f "$ac_tmp/stdin"
14862  case $ac_file in
14863  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14864  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14865  esac \
14866  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14867 ;;
14868  :H)
14869  #
14870  # CONFIG_HEADER
14871  #
14872  if test x"$ac_file" != x-; then
14873    {
14874      $as_echo "/* $configure_input  */" \
14875      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14876    } >"$ac_tmp/config.h" \
14877      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14878    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14879      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14880$as_echo "$as_me: $ac_file is unchanged" >&6;}
14881    else
14882      rm -f "$ac_file"
14883      mv "$ac_tmp/config.h" "$ac_file" \
14884	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14885    fi
14886  else
14887    $as_echo "/* $configure_input  */" \
14888      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14889      || as_fn_error $? "could not create -" "$LINENO" 5
14890  fi
14891# Compute "$ac_file"'s index in $config_headers.
14892_am_arg="$ac_file"
14893_am_stamp_count=1
14894for _am_header in $config_headers :; do
14895  case $_am_header in
14896    $_am_arg | $_am_arg:* )
14897      break ;;
14898    * )
14899      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14900  esac
14901done
14902echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14903$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14904	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14905	 X"$_am_arg" : 'X\(//\)$' \| \
14906	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14907$as_echo X"$_am_arg" |
14908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14909	    s//\1/
14910	    q
14911	  }
14912	  /^X\(\/\/\)[^/].*/{
14913	    s//\1/
14914	    q
14915	  }
14916	  /^X\(\/\/\)$/{
14917	    s//\1/
14918	    q
14919	  }
14920	  /^X\(\/\).*/{
14921	    s//\1/
14922	    q
14923	  }
14924	  s/.*/./; q'`/stamp-h$_am_stamp_count
14925 ;;
14926
14927  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14928$as_echo "$as_me: executing $ac_file commands" >&6;}
14929 ;;
14930  esac
14931
14932
14933  case $ac_file$ac_mode in
14934    "libtool":C)
14935
14936    # See if we are running on zsh, and set the options that allow our
14937    # commands through without removal of \ escapes.
14938    if test -n "${ZSH_VERSION+set}"; then
14939      setopt NO_GLOB_SUBST
14940    fi
14941
14942    cfgfile=${ofile}T
14943    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14944    $RM "$cfgfile"
14945
14946    cat <<_LT_EOF >> "$cfgfile"
14947#! $SHELL
14948# Generated automatically by $as_me ($PACKAGE) $VERSION
14949# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14950
14951# Provide generalized library-building support services.
14952# Written by Gordon Matzigkeit, 1996
14953
14954# Copyright (C) 2014 Free Software Foundation, Inc.
14955# This is free software; see the source for copying conditions.  There is NO
14956# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14957
14958# GNU Libtool is free software; you can redistribute it and/or modify
14959# it under the terms of the GNU General Public License as published by
14960# the Free Software Foundation; either version 2 of of the License, or
14961# (at your option) any later version.
14962#
14963# As a special exception to the GNU General Public License, if you
14964# distribute this file as part of a program or library that is built
14965# using GNU Libtool, you may include this file under the  same
14966# distribution terms that you use for the rest of that program.
14967#
14968# GNU Libtool is distributed in the hope that it will be useful, but
14969# WITHOUT ANY WARRANTY; without even the implied warranty of
14970# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14971# GNU General Public License for more details.
14972#
14973# You should have received a copy of the GNU General Public License
14974# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14975
14976
14977# The names of the tagged configurations supported by this script.
14978available_tags=''
14979
14980# Configured defaults for sys_lib_dlsearch_path munging.
14981: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14982
14983# ### BEGIN LIBTOOL CONFIG
14984
14985# Which release of libtool.m4 was used?
14986macro_version=$macro_version
14987macro_revision=$macro_revision
14988
14989# Whether or not to build shared libraries.
14990build_libtool_libs=$enable_shared
14991
14992# Whether or not to build static libraries.
14993build_old_libs=$enable_static
14994
14995# What type of objects to build.
14996pic_mode=$pic_mode
14997
14998# Whether or not to optimize for fast installation.
14999fast_install=$enable_fast_install
15000
15001# Shared archive member basename,for filename based shared library versioning on AIX.
15002shared_archive_member_spec=$shared_archive_member_spec
15003
15004# Shell to use when invoking shell scripts.
15005SHELL=$lt_SHELL
15006
15007# An echo program that protects backslashes.
15008ECHO=$lt_ECHO
15009
15010# The PATH separator for the build system.
15011PATH_SEPARATOR=$lt_PATH_SEPARATOR
15012
15013# The host system.
15014host_alias=$host_alias
15015host=$host
15016host_os=$host_os
15017
15018# The build system.
15019build_alias=$build_alias
15020build=$build
15021build_os=$build_os
15022
15023# A sed program that does not truncate output.
15024SED=$lt_SED
15025
15026# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15027Xsed="\$SED -e 1s/^X//"
15028
15029# A grep program that handles long lines.
15030GREP=$lt_GREP
15031
15032# An ERE matcher.
15033EGREP=$lt_EGREP
15034
15035# A literal string matcher.
15036FGREP=$lt_FGREP
15037
15038# A BSD- or MS-compatible name lister.
15039NM=$lt_NM
15040
15041# Whether we need soft or hard links.
15042LN_S=$lt_LN_S
15043
15044# What is the maximum length of a command?
15045max_cmd_len=$max_cmd_len
15046
15047# Object file suffix (normally "o").
15048objext=$ac_objext
15049
15050# Executable file suffix (normally "").
15051exeext=$exeext
15052
15053# whether the shell understands "unset".
15054lt_unset=$lt_unset
15055
15056# turn spaces into newlines.
15057SP2NL=$lt_lt_SP2NL
15058
15059# turn newlines into spaces.
15060NL2SP=$lt_lt_NL2SP
15061
15062# convert \$build file names to \$host format.
15063to_host_file_cmd=$lt_cv_to_host_file_cmd
15064
15065# convert \$build files to toolchain format.
15066to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15067
15068# An object symbol dumper.
15069OBJDUMP=$lt_OBJDUMP
15070
15071# Method to check whether dependent libraries are shared objects.
15072deplibs_check_method=$lt_deplibs_check_method
15073
15074# Command to use when deplibs_check_method = "file_magic".
15075file_magic_cmd=$lt_file_magic_cmd
15076
15077# How to find potential files when deplibs_check_method = "file_magic".
15078file_magic_glob=$lt_file_magic_glob
15079
15080# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15081want_nocaseglob=$lt_want_nocaseglob
15082
15083# DLL creation program.
15084DLLTOOL=$lt_DLLTOOL
15085
15086# Command to associate shared and link libraries.
15087sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15088
15089# The archiver.
15090AR=$lt_AR
15091
15092# Flags to create an archive.
15093AR_FLAGS=$lt_AR_FLAGS
15094
15095# How to feed a file listing to the archiver.
15096archiver_list_spec=$lt_archiver_list_spec
15097
15098# A symbol stripping program.
15099STRIP=$lt_STRIP
15100
15101# Commands used to install an old-style archive.
15102RANLIB=$lt_RANLIB
15103old_postinstall_cmds=$lt_old_postinstall_cmds
15104old_postuninstall_cmds=$lt_old_postuninstall_cmds
15105
15106# Whether to use a lock for old archive extraction.
15107lock_old_archive_extraction=$lock_old_archive_extraction
15108
15109# A C compiler.
15110LTCC=$lt_CC
15111
15112# LTCC compiler flags.
15113LTCFLAGS=$lt_CFLAGS
15114
15115# Take the output of nm and produce a listing of raw symbols and C names.
15116global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15117
15118# Transform the output of nm in a proper C declaration.
15119global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15120
15121# Transform the output of nm into a list of symbols to manually relocate.
15122global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15123
15124# Transform the output of nm in a C name address pair.
15125global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15126
15127# Transform the output of nm in a C name address pair when lib prefix is needed.
15128global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15129
15130# The name lister interface.
15131nm_interface=$lt_lt_cv_nm_interface
15132
15133# Specify filename containing input files for \$NM.
15134nm_file_list_spec=$lt_nm_file_list_spec
15135
15136# The root where to search for dependent libraries,and where our libraries should be installed.
15137lt_sysroot=$lt_sysroot
15138
15139# Command to truncate a binary pipe.
15140lt_truncate_bin=$lt_lt_cv_truncate_bin
15141
15142# The name of the directory that contains temporary libtool files.
15143objdir=$objdir
15144
15145# Used to examine libraries when file_magic_cmd begins with "file".
15146MAGIC_CMD=$MAGIC_CMD
15147
15148# Must we lock files when doing compilation?
15149need_locks=$lt_need_locks
15150
15151# Manifest tool.
15152MANIFEST_TOOL=$lt_MANIFEST_TOOL
15153
15154# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15155DSYMUTIL=$lt_DSYMUTIL
15156
15157# Tool to change global to local symbols on Mac OS X.
15158NMEDIT=$lt_NMEDIT
15159
15160# Tool to manipulate fat objects and archives on Mac OS X.
15161LIPO=$lt_LIPO
15162
15163# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15164OTOOL=$lt_OTOOL
15165
15166# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15167OTOOL64=$lt_OTOOL64
15168
15169# Old archive suffix (normally "a").
15170libext=$libext
15171
15172# Shared library suffix (normally ".so").
15173shrext_cmds=$lt_shrext_cmds
15174
15175# The commands to extract the exported symbol list from a shared archive.
15176extract_expsyms_cmds=$lt_extract_expsyms_cmds
15177
15178# Variables whose values should be saved in libtool wrapper scripts and
15179# restored at link time.
15180variables_saved_for_relink=$lt_variables_saved_for_relink
15181
15182# Do we need the "lib" prefix for modules?
15183need_lib_prefix=$need_lib_prefix
15184
15185# Do we need a version for libraries?
15186need_version=$need_version
15187
15188# Library versioning type.
15189version_type=$version_type
15190
15191# Shared library runtime path variable.
15192runpath_var=$runpath_var
15193
15194# Shared library path variable.
15195shlibpath_var=$shlibpath_var
15196
15197# Is shlibpath searched before the hard-coded library search path?
15198shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15199
15200# Format of library name prefix.
15201libname_spec=$lt_libname_spec
15202
15203# List of archive names.  First name is the real one, the rest are links.
15204# The last name is the one that the linker finds with -lNAME
15205library_names_spec=$lt_library_names_spec
15206
15207# The coded name of the library, if different from the real name.
15208soname_spec=$lt_soname_spec
15209
15210# Permission mode override for installation of shared libraries.
15211install_override_mode=$lt_install_override_mode
15212
15213# Command to use after installation of a shared archive.
15214postinstall_cmds=$lt_postinstall_cmds
15215
15216# Command to use after uninstallation of a shared archive.
15217postuninstall_cmds=$lt_postuninstall_cmds
15218
15219# Commands used to finish a libtool library installation in a directory.
15220finish_cmds=$lt_finish_cmds
15221
15222# As "finish_cmds", except a single script fragment to be evaled but
15223# not shown.
15224finish_eval=$lt_finish_eval
15225
15226# Whether we should hardcode library paths into libraries.
15227hardcode_into_libs=$hardcode_into_libs
15228
15229# Compile-time system search path for libraries.
15230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15231
15232# Detected run-time system search path for libraries.
15233sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15234
15235# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15236configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15237
15238# Whether dlopen is supported.
15239dlopen_support=$enable_dlopen
15240
15241# Whether dlopen of programs is supported.
15242dlopen_self=$enable_dlopen_self
15243
15244# Whether dlopen of statically linked programs is supported.
15245dlopen_self_static=$enable_dlopen_self_static
15246
15247# Commands to strip libraries.
15248old_striplib=$lt_old_striplib
15249striplib=$lt_striplib
15250
15251
15252# The linker used to build libraries.
15253LD=$lt_LD
15254
15255# How to create reloadable object files.
15256reload_flag=$lt_reload_flag
15257reload_cmds=$lt_reload_cmds
15258
15259# Commands used to build an old-style archive.
15260old_archive_cmds=$lt_old_archive_cmds
15261
15262# A language specific compiler.
15263CC=$lt_compiler
15264
15265# Is the compiler the GNU compiler?
15266with_gcc=$GCC
15267
15268# Compiler flag to turn off builtin functions.
15269no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15270
15271# Additional compiler flags for building library objects.
15272pic_flag=$lt_lt_prog_compiler_pic
15273
15274# How to pass a linker flag through the compiler.
15275wl=$lt_lt_prog_compiler_wl
15276
15277# Compiler flag to prevent dynamic linking.
15278link_static_flag=$lt_lt_prog_compiler_static
15279
15280# Does compiler simultaneously support -c and -o options?
15281compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15282
15283# Whether or not to add -lc for building shared libraries.
15284build_libtool_need_lc=$archive_cmds_need_lc
15285
15286# Whether or not to disallow shared libs when runtime libs are static.
15287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15288
15289# Compiler flag to allow reflexive dlopens.
15290export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15291
15292# Compiler flag to generate shared objects directly from archives.
15293whole_archive_flag_spec=$lt_whole_archive_flag_spec
15294
15295# Whether the compiler copes with passing no objects directly.
15296compiler_needs_object=$lt_compiler_needs_object
15297
15298# Create an old-style archive from a shared archive.
15299old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15300
15301# Create a temporary old-style archive to link instead of a shared archive.
15302old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15303
15304# Commands used to build a shared archive.
15305archive_cmds=$lt_archive_cmds
15306archive_expsym_cmds=$lt_archive_expsym_cmds
15307
15308# Commands used to build a loadable module if different from building
15309# a shared archive.
15310module_cmds=$lt_module_cmds
15311module_expsym_cmds=$lt_module_expsym_cmds
15312
15313# Whether we are building with GNU ld or not.
15314with_gnu_ld=$lt_with_gnu_ld
15315
15316# Flag that allows shared libraries with undefined symbols to be built.
15317allow_undefined_flag=$lt_allow_undefined_flag
15318
15319# Flag that enforces no undefined symbols.
15320no_undefined_flag=$lt_no_undefined_flag
15321
15322# Flag to hardcode \$libdir into a binary during linking.
15323# This must work even if \$libdir does not exist
15324hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15325
15326# Whether we need a single "-rpath" flag with a separated argument.
15327hardcode_libdir_separator=$lt_hardcode_libdir_separator
15328
15329# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15330# DIR into the resulting binary.
15331hardcode_direct=$hardcode_direct
15332
15333# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15334# DIR into the resulting binary and the resulting library dependency is
15335# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15336# library is relocated.
15337hardcode_direct_absolute=$hardcode_direct_absolute
15338
15339# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15340# into the resulting binary.
15341hardcode_minus_L=$hardcode_minus_L
15342
15343# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15344# into the resulting binary.
15345hardcode_shlibpath_var=$hardcode_shlibpath_var
15346
15347# Set to "yes" if building a shared library automatically hardcodes DIR
15348# into the library and all subsequent libraries and executables linked
15349# against it.
15350hardcode_automatic=$hardcode_automatic
15351
15352# Set to yes if linker adds runtime paths of dependent libraries
15353# to runtime path list.
15354inherit_rpath=$inherit_rpath
15355
15356# Whether libtool must link a program against all its dependency libraries.
15357link_all_deplibs=$link_all_deplibs
15358
15359# Set to "yes" if exported symbols are required.
15360always_export_symbols=$always_export_symbols
15361
15362# The commands to list exported symbols.
15363export_symbols_cmds=$lt_export_symbols_cmds
15364
15365# Symbols that should not be listed in the preloaded symbols.
15366exclude_expsyms=$lt_exclude_expsyms
15367
15368# Symbols that must always be exported.
15369include_expsyms=$lt_include_expsyms
15370
15371# Commands necessary for linking programs (against libraries) with templates.
15372prelink_cmds=$lt_prelink_cmds
15373
15374# Commands necessary for finishing linking programs.
15375postlink_cmds=$lt_postlink_cmds
15376
15377# Specify filename containing input files.
15378file_list_spec=$lt_file_list_spec
15379
15380# How to hardcode a shared library path into an executable.
15381hardcode_action=$hardcode_action
15382
15383# ### END LIBTOOL CONFIG
15384
15385_LT_EOF
15386
15387    cat <<'_LT_EOF' >> "$cfgfile"
15388
15389# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15390
15391# func_munge_path_list VARIABLE PATH
15392# -----------------------------------
15393# VARIABLE is name of variable containing _space_ separated list of
15394# directories to be munged by the contents of PATH, which is string
15395# having a format:
15396# "DIR[:DIR]:"
15397#       string "DIR[ DIR]" will be prepended to VARIABLE
15398# ":DIR[:DIR]"
15399#       string "DIR[ DIR]" will be appended to VARIABLE
15400# "DIRP[:DIRP]::[DIRA:]DIRA"
15401#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15402#       "DIRA[ DIRA]" will be appended to VARIABLE
15403# "DIR[:DIR]"
15404#       VARIABLE will be replaced by "DIR[ DIR]"
15405func_munge_path_list ()
15406{
15407    case x$2 in
15408    x)
15409        ;;
15410    *:)
15411        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15412        ;;
15413    x:*)
15414        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15415        ;;
15416    *::*)
15417        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15418        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15419        ;;
15420    *)
15421        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15422        ;;
15423    esac
15424}
15425
15426
15427# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15428func_cc_basename ()
15429{
15430    for cc_temp in $*""; do
15431      case $cc_temp in
15432        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15433        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15434        \-*) ;;
15435        *) break;;
15436      esac
15437    done
15438    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15439}
15440
15441
15442# ### END FUNCTIONS SHARED WITH CONFIGURE
15443
15444_LT_EOF
15445
15446  case $host_os in
15447  aix3*)
15448    cat <<\_LT_EOF >> "$cfgfile"
15449# AIX sometimes has problems with the GCC collect2 program.  For some
15450# reason, if we set the COLLECT_NAMES environment variable, the problems
15451# vanish in a puff of smoke.
15452if test set != "${COLLECT_NAMES+set}"; then
15453  COLLECT_NAMES=
15454  export COLLECT_NAMES
15455fi
15456_LT_EOF
15457    ;;
15458  esac
15459
15460
15461ltmain=$ac_aux_dir/ltmain.sh
15462
15463
15464  # We use sed instead of cat because bash on DJGPP gets confused if
15465  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15466  # text mode, it properly converts lines to CR/LF.  This bash problem
15467  # is reportedly fixed, but why not run on old versions too?
15468  sed '$q' "$ltmain" >> "$cfgfile" \
15469     || (rm -f "$cfgfile"; exit 1)
15470
15471   mv -f "$cfgfile" "$ofile" ||
15472    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15473  chmod +x "$ofile"
15474
15475 ;;
15476    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15477  # Older Autoconf quotes --file arguments for eval, but not when files
15478  # are listed without --file.  Let's play safe and only enable the eval
15479  # if we detect the quoting.
15480  # TODO: see whether this extra hack can be removed once we start
15481  # requiring Autoconf 2.70 or later.
15482  case $CONFIG_FILES in #(
15483  *\'*) :
15484    eval set x "$CONFIG_FILES" ;; #(
15485  *) :
15486    set x $CONFIG_FILES ;; #(
15487  *) :
15488     ;;
15489esac
15490  shift
15491  # Used to flag and report bootstrapping failures.
15492  am_rc=0
15493  for am_mf
15494  do
15495    # Strip MF so we end up with the name of the file.
15496    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15497    # Check whether this is an Automake generated Makefile which includes
15498    # dependency-tracking related rules and includes.
15499    # Grep'ing the whole file directly is not great: AIX grep has a line
15500    # limit of 2048, but all sed's we know have understand at least 4000.
15501    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15502      || continue
15503    am_dirpart=`$as_dirname -- "$am_mf" ||
15504$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15505	 X"$am_mf" : 'X\(//\)[^/]' \| \
15506	 X"$am_mf" : 'X\(//\)$' \| \
15507	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15508$as_echo X"$am_mf" |
15509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15510	    s//\1/
15511	    q
15512	  }
15513	  /^X\(\/\/\)[^/].*/{
15514	    s//\1/
15515	    q
15516	  }
15517	  /^X\(\/\/\)$/{
15518	    s//\1/
15519	    q
15520	  }
15521	  /^X\(\/\).*/{
15522	    s//\1/
15523	    q
15524	  }
15525	  s/.*/./; q'`
15526    am_filepart=`$as_basename -- "$am_mf" ||
15527$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15528	 X"$am_mf" : 'X\(//\)$' \| \
15529	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15530$as_echo X/"$am_mf" |
15531    sed '/^.*\/\([^/][^/]*\)\/*$/{
15532	    s//\1/
15533	    q
15534	  }
15535	  /^X\/\(\/\/\)$/{
15536	    s//\1/
15537	    q
15538	  }
15539	  /^X\/\(\/\).*/{
15540	    s//\1/
15541	    q
15542	  }
15543	  s/.*/./; q'`
15544    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15545      && sed -e '/# am--include-marker/d' "$am_filepart" \
15546        | $MAKE -f - am--depfiles" >&5
15547   (cd "$am_dirpart" \
15548      && sed -e '/# am--include-marker/d' "$am_filepart" \
15549        | $MAKE -f - am--depfiles) >&5 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } || am_rc=$?
15553  done
15554  if test $am_rc -ne 0; then
15555    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15557as_fn_error $? "Something went wrong bootstrapping makefile fragments
15558    for automatic dependency tracking.  If GNU make was not used, consider
15559    re-running the configure script with MAKE=\"gmake\" (or whatever is
15560    necessary).  You can also try re-running configure with the
15561    '--disable-dependency-tracking' option to at least be able to build
15562    the package (albeit without support for automatic dependency tracking).
15563See \`config.log' for more details" "$LINENO" 5; }
15564  fi
15565  { am_dirpart=; unset am_dirpart;}
15566  { am_filepart=; unset am_filepart;}
15567  { am_mf=; unset am_mf;}
15568  { am_rc=; unset am_rc;}
15569  rm -f conftest-deps.mk
15570}
15571 ;;
15572
15573  esac
15574done # for ac_tag
15575
15576
15577as_fn_exit 0
15578_ACEOF
15579ac_clean_files=$ac_clean_files_save
15580
15581test $ac_write_fail = 0 ||
15582  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15583
15584
15585# configure is writing to config.log, and then calls config.status.
15586# config.status does its own redirection, appending to config.log.
15587# Unfortunately, on DOS this fails, as config.log is still kept open
15588# by configure, so config.status won't be able to write to it; its
15589# output is simply discarded.  So we exec the FD to /dev/null,
15590# effectively closing config.log, so it can be properly (re)opened and
15591# appended to by config.status.  When coming back to configure, we
15592# need to make the FD available again.
15593if test "$no_create" != yes; then
15594  ac_cs_success=:
15595  ac_config_status_args=
15596  test "$silent" = yes &&
15597    ac_config_status_args="$ac_config_status_args --quiet"
15598  exec 5>/dev/null
15599  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15600  exec 5>>config.log
15601  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15602  # would make configure fail if this is the last instruction.
15603  $ac_cs_success || as_fn_exit 1
15604fi
15605if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15606  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15607$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15608fi
15609
15610