1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ldns 1.7.0.
4#
5# Report bugs to <libdns@nlnetlabs.nl>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: libdns@nlnetlabs.nl 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='ldns'
592PACKAGE_TARNAME='libdns'
593PACKAGE_VERSION='1.7.0'
594PACKAGE_STRING='ldns 1.7.0'
595PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
596PACKAGE_URL=''
597
598ac_unique_file="packet.c"
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_subst_vars='LTLIBOBJS
636CONFIG_FILES
637ldns_build_config_have_attr_unused
638ldns_build_config_have_attr_format
639ldns_build_config_have_ssl
640DEFAULT_CAPATH
641DEFAULT_CAFILE
642LDNS_TRUST_ANCHOR_FILE
643WINDRES
644ldns_build_config_have_b32_pton
645ldns_build_config_have_b32_ntop
646LIBOBJS
647ldns_build_config_have_socklen_t
648LIBPCAP_LIBS
649include_unistd_h
650include_systypes_h
651include_inttypes_h
652ldns_build_config_have_inttypes_h
653include_sys_socket_h
654LIBSSL_SSL_LIBS
655LIBSSL_LIBS
656LIBSSL_LDFLAGS
657LIBSSL_CPPFLAGS
658ldns_build_config_use_dane_ta_usage
659ldns_build_config_use_dane_verify
660ldns_build_config_use_dane
661RUNTIME_PATH
662HAVE_SSL
663libtool
664CLEAN_P5_DNS_LDNS
665UNINSTALL_P5_DNS_LDNS
666INSTALL_P5_DNS_LDNS
667TEST_P5_DNS_LDNS
668P5_DNS_LDNS
669PERL
670PYLDNSXUNINST
671PYLDNSXINST
672PYLDNSUNINST
673PYLDNSINST
674PYLDNSX
675PYTHON_X_CFLAGS
676swig
677PYLDNS
678SWIG_LIB
679SWIG
680SWIGPY3
681PYTHON_EXTRA_LDFLAGS
682PYTHON_EXTRA_LIBS
683PYTHON_SITE_PKG
684PYTHON_LDFLAGS
685PYTHON_CPPFLAGS
686PYTHON
687PYTHON_VERSION
688UNINSTALL_CONFIG_MANPAGE
689UNINSTALL_CONFIG
690INSTALL_CONFIG_MANPAGE
691INSTALL_CONFIG
692LINT_EXAMPLES
693CLEAN_EXAMPLES
694UNINSTALL_EXAMPLES
695INSTALL_EXAMPLES
696EXAMPLES
697LINT_DRILL
698CLEAN_DRILL
699UNINSTALL_DRILL
700INSTALL_DRILL
701DRILL
702doxygen
703LINTFLAGS
704SET_MAKE
705DEPFLAG
706LT_SYS_LIBRARY_PATH
707OTOOL64
708OTOOL
709LIPO
710NMEDIT
711DSYMUTIL
712MANIFEST_TOOL
713AWK
714RANLIB
715STRIP
716ac_ct_AR
717AR
718DLLTOOL
719OBJDUMP
720LN_S
721NM
722ac_ct_DUMPBIN
723DUMPBIN
724LD
725FGREP
726SED
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735LIBTOOL
736EGREP
737GREP
738CPP
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746VERSION_INFO
747LDNS_VERSION_MICRO
748LDNS_VERSION_MINOR
749LDNS_VERSION_MAJOR
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_aix_soname
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799with_drill
800with_examples
801enable_ldns_config
802enable_stderr_msgs
803enable_poll
804with_pyldns
805with_pyldnsx
806with_p5_dns_ldns
807with_ssl
808enable_sha2
809enable_gost
810enable_gost_anyway
811enable_ecdsa
812enable_dsa
813enable_ed25519
814enable_ed448
815enable_dane
816enable_dane_verify
817enable_dane_ta_usage
818enable_full_dane
819enable_no_dane_ta_usage
820enable_no_dane_verify
821enable_rrtype_ninfo
822enable_rrtype_rkey
823enable_rrtype_openpgpkey
824enable_rrtype_ta
825enable_rrtype_avc
826enable_rpath
827with_trust_anchor
828with_ca_file
829with_ca_path
830'
831      ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
837LIBS
838CPPFLAGS
839CPP
840LT_SYS_LIBRARY_PATH
841PYTHON_VERSION'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896  # If the previous option needs an argument, assign it.
897  if test -n "$ac_prev"; then
898    eval $ac_prev=\$ac_option
899    ac_prev=
900    continue
901  fi
902
903  case $ac_option in
904  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905  *=)   ac_optarg= ;;
906  *)    ac_optarg=yes ;;
907  esac
908
909  # Accept the important Cygnus configure options, so we can diagnose typos.
910
911  case $ac_dashdash$ac_option in
912  --)
913    ac_dashdash=yes ;;
914
915  -bindir | --bindir | --bindi | --bind | --bin | --bi)
916    ac_prev=bindir ;;
917  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918    bindir=$ac_optarg ;;
919
920  -build | --build | --buil | --bui | --bu)
921    ac_prev=build_alias ;;
922  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923    build_alias=$ac_optarg ;;
924
925  -cache-file | --cache-file | --cache-fil | --cache-fi \
926  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927    ac_prev=cache_file ;;
928  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930    cache_file=$ac_optarg ;;
931
932  --config-cache | -C)
933    cache_file=config.cache ;;
934
935  -datadir | --datadir | --datadi | --datad)
936    ac_prev=datadir ;;
937  -datadir=* | --datadir=* | --datadi=* | --datad=*)
938    datadir=$ac_optarg ;;
939
940  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941  | --dataroo | --dataro | --datar)
942    ac_prev=datarootdir ;;
943  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945    datarootdir=$ac_optarg ;;
946
947  -disable-* | --disable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=no ;;
962
963  -docdir | --docdir | --docdi | --doc | --do)
964    ac_prev=docdir ;;
965  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966    docdir=$ac_optarg ;;
967
968  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969    ac_prev=dvidir ;;
970  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971    dvidir=$ac_optarg ;;
972
973  -enable-* | --enable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=\$ac_optarg ;;
988
989  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991  | --exec | --exe | --ex)
992    ac_prev=exec_prefix ;;
993  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995  | --exec=* | --exe=* | --ex=*)
996    exec_prefix=$ac_optarg ;;
997
998  -gas | --gas | --ga | --g)
999    # Obsolete; use --with-gas.
1000    with_gas=yes ;;
1001
1002  -help | --help | --hel | --he | -h)
1003    ac_init_help=long ;;
1004  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005    ac_init_help=recursive ;;
1006  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007    ac_init_help=short ;;
1008
1009  -host | --host | --hos | --ho)
1010    ac_prev=host_alias ;;
1011  -host=* | --host=* | --hos=* | --ho=*)
1012    host_alias=$ac_optarg ;;
1013
1014  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015    ac_prev=htmldir ;;
1016  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017  | --ht=*)
1018    htmldir=$ac_optarg ;;
1019
1020  -includedir | --includedir | --includedi | --included | --include \
1021  | --includ | --inclu | --incl | --inc)
1022    ac_prev=includedir ;;
1023  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024  | --includ=* | --inclu=* | --incl=* | --inc=*)
1025    includedir=$ac_optarg ;;
1026
1027  -infodir | --infodir | --infodi | --infod | --info | --inf)
1028    ac_prev=infodir ;;
1029  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030    infodir=$ac_optarg ;;
1031
1032  -libdir | --libdir | --libdi | --libd)
1033    ac_prev=libdir ;;
1034  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035    libdir=$ac_optarg ;;
1036
1037  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038  | --libexe | --libex | --libe)
1039    ac_prev=libexecdir ;;
1040  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041  | --libexe=* | --libex=* | --libe=*)
1042    libexecdir=$ac_optarg ;;
1043
1044  -localedir | --localedir | --localedi | --localed | --locale)
1045    ac_prev=localedir ;;
1046  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047    localedir=$ac_optarg ;;
1048
1049  -localstatedir | --localstatedir | --localstatedi | --localstated \
1050  | --localstate | --localstat | --localsta | --localst | --locals)
1051    ac_prev=localstatedir ;;
1052  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054    localstatedir=$ac_optarg ;;
1055
1056  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057    ac_prev=mandir ;;
1058  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059    mandir=$ac_optarg ;;
1060
1061  -nfp | --nfp | --nf)
1062    # Obsolete; use --without-fp.
1063    with_fp=no ;;
1064
1065  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066  | --no-cr | --no-c | -n)
1067    no_create=yes ;;
1068
1069  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071    no_recursion=yes ;;
1072
1073  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075  | --oldin | --oldi | --old | --ol | --o)
1076    ac_prev=oldincludedir ;;
1077  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080    oldincludedir=$ac_optarg ;;
1081
1082  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083    ac_prev=prefix ;;
1084  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085    prefix=$ac_optarg ;;
1086
1087  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088  | --program-pre | --program-pr | --program-p)
1089    ac_prev=program_prefix ;;
1090  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092    program_prefix=$ac_optarg ;;
1093
1094  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095  | --program-suf | --program-su | --program-s)
1096    ac_prev=program_suffix ;;
1097  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099    program_suffix=$ac_optarg ;;
1100
1101  -program-transform-name | --program-transform-name \
1102  | --program-transform-nam | --program-transform-na \
1103  | --program-transform-n | --program-transform- \
1104  | --program-transform | --program-transfor \
1105  | --program-transfo | --program-transf \
1106  | --program-trans | --program-tran \
1107  | --progr-tra | --program-tr | --program-t)
1108    ac_prev=program_transform_name ;;
1109  -program-transform-name=* | --program-transform-name=* \
1110  | --program-transform-nam=* | --program-transform-na=* \
1111  | --program-transform-n=* | --program-transform-=* \
1112  | --program-transform=* | --program-transfor=* \
1113  | --program-transfo=* | --program-transf=* \
1114  | --program-trans=* | --program-tran=* \
1115  | --progr-tra=* | --program-tr=* | --program-t=*)
1116    program_transform_name=$ac_optarg ;;
1117
1118  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119    ac_prev=pdfdir ;;
1120  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121    pdfdir=$ac_optarg ;;
1122
1123  -psdir | --psdir | --psdi | --psd | --ps)
1124    ac_prev=psdir ;;
1125  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126    psdir=$ac_optarg ;;
1127
1128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129  | -silent | --silent | --silen | --sile | --sil)
1130    silent=yes ;;
1131
1132  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133    ac_prev=sbindir ;;
1134  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135  | --sbi=* | --sb=*)
1136    sbindir=$ac_optarg ;;
1137
1138  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140  | --sharedst | --shareds | --shared | --share | --shar \
1141  | --sha | --sh)
1142    ac_prev=sharedstatedir ;;
1143  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146  | --sha=* | --sh=*)
1147    sharedstatedir=$ac_optarg ;;
1148
1149  -site | --site | --sit)
1150    ac_prev=site ;;
1151  -site=* | --site=* | --sit=*)
1152    site=$ac_optarg ;;
1153
1154  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155    ac_prev=srcdir ;;
1156  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157    srcdir=$ac_optarg ;;
1158
1159  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160  | --syscon | --sysco | --sysc | --sys | --sy)
1161    ac_prev=sysconfdir ;;
1162  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164    sysconfdir=$ac_optarg ;;
1165
1166  -target | --target | --targe | --targ | --tar | --ta | --t)
1167    ac_prev=target_alias ;;
1168  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169    target_alias=$ac_optarg ;;
1170
1171  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172    verbose=yes ;;
1173
1174  -version | --version | --versio | --versi | --vers | -V)
1175    ac_init_version=: ;;
1176
1177  -with-* | --with-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=no ;;
1208
1209  --x)
1210    # Obsolete; use --with-x.
1211    with_x=yes ;;
1212
1213  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214  | --x-incl | --x-inc | --x-in | --x-i)
1215    ac_prev=x_includes ;;
1216  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218    x_includes=$ac_optarg ;;
1219
1220  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222    ac_prev=x_libraries ;;
1223  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225    x_libraries=$ac_optarg ;;
1226
1227  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
1229    ;;
1230
1231  *=*)
1232    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233    # Reject names that are not valid shell variable names.
1234    case $ac_envvar in #(
1235      '' | [0-9]* | *[!_$as_cr_alnum]* )
1236      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237    esac
1238    eval $ac_envvar=\$ac_optarg
1239    export $ac_envvar ;;
1240
1241  *)
1242    # FIXME: should be removed in autoconf 3.0.
1243    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247    ;;
1248
1249  esac
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258  case $enable_option_checking in
1259    no) ;;
1260    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262  esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267		datadir sysconfdir sharedstatedir localstatedir includedir \
1268		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269		libdir localedir mandir
1270do
1271  eval ac_val=\$$ac_var
1272  # Remove trailing slashes.
1273  case $ac_val in
1274    */ )
1275      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276      eval $ac_var=\$ac_val;;
1277  esac
1278  # Be sure to have absolute directory names.
1279  case $ac_val in
1280    [\\/$]* | ?:[\\/]* )  continue;;
1281    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282  esac
1283  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382\`configure' configures ldns 1.7.0 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print \`checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for \`--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439System types:
1440  --build=BUILD     configure for building on BUILD [guessed]
1441  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446  case $ac_init_help in
1447     short | recursive ) echo "Configuration of ldns 1.7.0:";;
1448   esac
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-static[=PKGS]  build static libraries [default=yes]
1457  --enable-fast-install[=PKGS]
1458                          optimize for fast installation [default=yes]
1459  --disable-libtool-lock  avoid locking (might break parallel builds)
1460  --disable-ldns-config   disable installation of ldns-config
1461                          (default=enabled)
1462  --enable-stderr-msgs    Enable printing to stderr (default=disabled)
1463  --enable-poll           This platform supports poll(7)
1464  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1465  --disable-gost          Disable GOST support
1466  --enable-gost-anyway    Enable GOST even whithout a GOST engine installed
1467  --disable-ecdsa         Disable ECDSA support
1468  --disable-dsa           Disable DSA support
1469  --enable-ed25519        Enable ED25519 support (experimental)
1470  --enable-ed448          Enable ED448 support (experimental)
1471  --disable-dane          Disable DANE support
1472  --disable-dane-verify   Disable DANE verify support
1473  --disable-dane-ta-usage Disable DANE-TA usage type support
1474
1475  --enable-rrtype-ninfo   Enable draft RR type ninfo.
1476  --enable-rrtype-rkey    Enable draft RR type rkey.
1477  --disable-rrtype-openpgpkey
1478                          Disable openpgpkey RR type.
1479  --enable-rrtype-ta      Enable draft RR type ta.
1480  --enable-rrtype-avc     Enable draft RR type avc.
1481  --disable-rpath         disable hardcoded rpath (default=enabled)
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1487                          both]
1488  --with-aix-soname=aix|svr4|both
1489                          shared library versioning (aka "SONAME") variant to
1490                          provide on AIX, [default=aix].
1491  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1493                          compiler's sysroot if not specified).
1494  --with-drill            Also build drill.
1495  --with-examples         Also build examples.
1496  --with-pyldns           generate python library, or --without-pyldns to
1497                          disable Python support.
1498  --without-pyldnsx       Do not install the ldnsx python module, or
1499                          --with-pyldnsx to install it.
1500  --with-p5-dns-ldns      generate DNS::LDNS perl bindings
1501  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1502                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1503                          /usr)
1504  --with-trust-anchor=KEYFILE
1505                          Default location of the trust anchor file for drill
1506                          and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1507  --with-ca-file=CAFILE   File containing CA certificates for ldns-dane
1508  --with-ca-path=CAPATH   Directory containing CA certificate files for
1509                          ldns-dane
1510
1511Some influential environment variables:
1512  CC          C compiler command
1513  CFLAGS      C compiler flags
1514  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515              nonstandard directory <lib dir>
1516  LIBS        libraries to pass to the linker, e.g. -l<library>
1517  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518              you have headers in a nonstandard directory <include dir>
1519  CPP         C preprocessor
1520  LT_SYS_LIBRARY_PATH
1521              User-defined run-time library search path.
1522  PYTHON_VERSION
1523              The installed Python version to use, for example '2.3'. This
1524              string will be appended to the Python interpreter canonical
1525              name.
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <libdns@nlnetlabs.nl>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593ldns configure 1.7.0
1594generated by GNU Autoconf 2.69
1595
1596Copyright (C) 2012 Free Software Foundation, Inc.
1597This configure script is free software; the Free Software Foundation
1598gives unlimited permission to copy, distribute and modify it.
1599_ACEOF
1600  exit
1601fi
1602
1603## ------------------------ ##
1604## Autoconf initialization. ##
1605## ------------------------ ##
1606
1607# ac_fn_c_try_compile LINENO
1608# --------------------------
1609# Try to compile conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext
1614  if { { ac_try="$ac_compile"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_compile") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest.$ac_objext; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } > conftest.i && {
1667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       }; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675    ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_cpp
1681
1682# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683# -------------------------------------------------------
1684# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685# the include files in INCLUDES and setting the cache variable VAR
1686# accordingly.
1687ac_fn_c_check_header_mongrel ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if eval \${$3+:} false; then :
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695fi
1696eval ac_res=\$$3
1697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699else
1700  # Is the header compilable?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702$as_echo_n "checking $2 usability... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709  ac_header_compiler=yes
1710else
1711  ac_header_compiler=no
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715$as_echo "$ac_header_compiler" >&6; }
1716
1717# Is the header present?
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719$as_echo_n "checking $2 presence... " >&6; }
1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_cpp "$LINENO"; then :
1725  ac_header_preproc=yes
1726else
1727  ac_header_preproc=no
1728fi
1729rm -f conftest.err conftest.i conftest.$ac_ext
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731$as_echo "$ac_header_preproc" >&6; }
1732
1733# So?  What about this header?
1734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735  yes:no: )
1736    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740    ;;
1741  no:yes:* )
1742    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1745$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1749$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1750    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752( $as_echo "## ---------------------------------- ##
1753## Report this to libdns@nlnetlabs.nl ##
1754## ---------------------------------- ##"
1755     ) | sed "s/^/$as_me: WARNING:     /" >&2
1756    ;;
1757esac
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  eval "$3=\$ac_header_compiler"
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768fi
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_header_mongrel
1772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791  { { case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_try") 2>&5
1798  ac_status=$?
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; }; }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: program exited with status $ac_status" >&5
1804       $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807       ac_retval=$ac_status
1808fi
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
1826else
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833  eval "$3=yes"
1834else
1835  eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_c_check_header_compile
1845
1846# ac_fn_c_try_link LINENO
1847# -----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  rm -f conftest.$ac_objext conftest$ac_exeext
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>conftest.err
1861  ac_status=$?
1862  if test -s conftest.err; then
1863    grep -v '^ *+' conftest.err >conftest.er1
1864    cat conftest.er1 >&5
1865    mv -f conftest.er1 conftest.err
1866  fi
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && {
1869	 test -z "$ac_c_werror_flag" ||
1870	 test ! -s conftest.err
1871       } && test -s conftest$ac_exeext && {
1872	 test "$cross_compiling" = yes ||
1873	 test -x conftest$ac_exeext
1874       }; then :
1875  ac_retval=0
1876else
1877  $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880	ac_retval=1
1881fi
1882  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884  # interfere with the next link command; also delete a directory that is
1885  # left behind by Apple's compiler.  We do this before executing the actions.
1886  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_link
1891
1892# ac_fn_c_check_func LINENO FUNC VAR
1893# ----------------------------------
1894# Tests whether FUNC exists, setting the cache variable VAR accordingly
1895ac_fn_c_check_func ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if eval \${$3+:} false; then :
1901  $as_echo_n "(cached) " >&6
1902else
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1907#define $2 innocuous_$2
1908
1909/* System header to define __stub macros and hopefully few prototypes,
1910    which can conflict with char $2 (); below.
1911    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912    <limits.h> exists even on freestanding compilers.  */
1913
1914#ifdef __STDC__
1915# include <limits.h>
1916#else
1917# include <assert.h>
1918#endif
1919
1920#undef $2
1921
1922/* Override any GCC internal prototype to avoid an error.
1923   Use char because int might match the return type of a GCC
1924   builtin and then its argument prototype would still apply.  */
1925#ifdef __cplusplus
1926extern "C"
1927#endif
1928char $2 ();
1929/* The GNU C library defines this for functions which it implements
1930    to always fail with ENOSYS.  Some functions are actually named
1931    something starting with __ and the normal name is an alias.  */
1932#if defined __stub_$2 || defined __stub___$2
1933choke me
1934#endif
1935
1936int
1937main ()
1938{
1939return $2 ();
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_link "$LINENO"; then :
1945  eval "$3=yes"
1946else
1947  eval "$3=no"
1948fi
1949rm -f core conftest.err conftest.$ac_objext \
1950    conftest$ac_exeext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_func
1958
1959# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960# -------------------------------------------
1961# Tests whether TYPE exists after having included INCLUDES, setting cache
1962# variable VAR accordingly.
1963ac_fn_c_check_type ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  eval "$3=no"
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$4
1975int
1976main ()
1977{
1978if (sizeof ($2))
1979	 return 0;
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988int
1989main ()
1990{
1991if (sizeof (($2)))
1992	    return 0;
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998
1999else
2000  eval "$3=yes"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_type
2012
2013# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2014# ---------------------------------------------
2015# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2016# accordingly.
2017ac_fn_c_check_decl ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  as_decl_name=`echo $2|sed 's/ *(.*//'`
2021  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2023$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2024if eval \${$3+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026else
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033#ifndef $as_decl_name
2034#ifdef __cplusplus
2035  (void) $as_decl_use;
2036#else
2037  (void) $as_decl_name;
2038#endif
2039#endif
2040
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$3=yes"
2047else
2048  eval "$3=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_decl
2058
2059# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060# --------------------------------------------
2061# Tries to find the compile-time value of EXPR in a program that includes
2062# INCLUDES, setting VAR accordingly. Returns whether the value could be
2063# computed
2064ac_fn_c_compute_int ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  if test "$cross_compiling" = yes; then
2068    # Depending upon the size, compute the lo and hi bounds.
2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h.  */
2071$4
2072int
2073main ()
2074{
2075static int test_array [1 - 2 * !(($2) >= 0)];
2076test_array [0] = 0;
2077return test_array [0];
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  ac_lo=0 ac_mid=0
2085  while :; do
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093test_array [0] = 0;
2094return test_array [0];
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  ac_hi=$ac_mid; break
2102else
2103  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104			if test $ac_lo -le $ac_mid; then
2105			  ac_lo= ac_hi=
2106			  break
2107			fi
2108			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111  done
2112else
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) < 0)];
2120test_array [0] = 0;
2121return test_array [0];
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_hi=-1 ac_mid=-1
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_lo=$ac_mid; break
2146else
2147  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148			if test $ac_mid -le $ac_hi; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  ac_lo= ac_hi=
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162# Binary search between lo and hi bounds.
2163while test "x$ac_lo" != "x$ac_hi"; do
2164  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  ac_hi=$ac_mid
2181else
2182  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185done
2186case $ac_lo in #((
2187?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2188'') ac_retval=1 ;;
2189esac
2190  else
2191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194static long int longval () { return $2; }
2195static unsigned long int ulongval () { return $2; }
2196#include <stdio.h>
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201
2202  FILE *f = fopen ("conftest.val", "w");
2203  if (! f)
2204    return 1;
2205  if (($2) < 0)
2206    {
2207      long int i = longval ();
2208      if (i != ($2))
2209	return 1;
2210      fprintf (f, "%ld", i);
2211    }
2212  else
2213    {
2214      unsigned long int i = ulongval ();
2215      if (i != ($2))
2216	return 1;
2217      fprintf (f, "%lu", i);
2218    }
2219  /* Do not output a trailing newline, as this causes \r\n confusion
2220     on some platforms.  */
2221  return ferror (f) || fclose (f) != 0;
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_run "$LINENO"; then :
2228  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2229else
2230  ac_retval=1
2231fi
2232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233  conftest.$ac_objext conftest.beam conftest.$ac_ext
2234rm -f conftest.val
2235
2236  fi
2237  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238  as_fn_set_status $ac_retval
2239
2240} # ac_fn_c_compute_int
2241
2242# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2243# ----------------------------------------------------
2244# Tries to find if the field MEMBER exists in type AGGR, after including
2245# INCLUDES, setting cache variable VAR accordingly.
2246ac_fn_c_check_member ()
2247{
2248  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2250$as_echo_n "checking for $2.$3... " >&6; }
2251if eval \${$4+:} false; then :
2252  $as_echo_n "(cached) " >&6
2253else
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$5
2257int
2258main ()
2259{
2260static $2 ac_aggr;
2261if (ac_aggr.$3)
2262return 0;
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268  eval "$4=yes"
2269else
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272$5
2273int
2274main ()
2275{
2276static $2 ac_aggr;
2277if (sizeof ac_aggr.$3)
2278return 0;
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  eval "$4=yes"
2285else
2286  eval "$4=no"
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292eval ac_res=\$$4
2293	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
2295  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297} # ac_fn_c_check_member
2298cat >config.log <<_ACEOF
2299This file contains any messages produced by compilers while
2300running configure, to aid debugging if configure makes a mistake.
2301
2302It was created by ldns $as_me 1.7.0, which was
2303generated by GNU Autoconf 2.69.  Invocation command line was
2304
2305  $ $0 $@
2306
2307_ACEOF
2308exec 5>>config.log
2309{
2310cat <<_ASUNAME
2311## --------- ##
2312## Platform. ##
2313## --------- ##
2314
2315hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2316uname -m = `(uname -m) 2>/dev/null || echo unknown`
2317uname -r = `(uname -r) 2>/dev/null || echo unknown`
2318uname -s = `(uname -s) 2>/dev/null || echo unknown`
2319uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320
2321/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2322/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2323
2324/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2325/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2326/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2327/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2328/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2329/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2330/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2331
2332_ASUNAME
2333
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337  IFS=$as_save_IFS
2338  test -z "$as_dir" && as_dir=.
2339    $as_echo "PATH: $as_dir"
2340  done
2341IFS=$as_save_IFS
2342
2343} >&5
2344
2345cat >&5 <<_ACEOF
2346
2347
2348## ----------- ##
2349## Core tests. ##
2350## ----------- ##
2351
2352_ACEOF
2353
2354
2355# Keep a trace of the command line.
2356# Strip out --no-create and --no-recursion so they do not pile up.
2357# Strip out --silent because we don't want to record it for future runs.
2358# Also quote any args containing shell meta-characters.
2359# Make two passes to allow for proper duplicate-argument suppression.
2360ac_configure_args=
2361ac_configure_args0=
2362ac_configure_args1=
2363ac_must_keep_next=false
2364for ac_pass in 1 2
2365do
2366  for ac_arg
2367  do
2368    case $ac_arg in
2369    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2370    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2371    | -silent | --silent | --silen | --sile | --sil)
2372      continue ;;
2373    *\'*)
2374      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375    esac
2376    case $ac_pass in
2377    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2378    2)
2379      as_fn_append ac_configure_args1 " '$ac_arg'"
2380      if test $ac_must_keep_next = true; then
2381	ac_must_keep_next=false # Got value, back to normal.
2382      else
2383	case $ac_arg in
2384	  *=* | --config-cache | -C | -disable-* | --disable-* \
2385	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2386	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2387	  | -with-* | --with-* | -without-* | --without-* | --x)
2388	    case "$ac_configure_args0 " in
2389	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390	    esac
2391	    ;;
2392	  -* ) ac_must_keep_next=true ;;
2393	esac
2394      fi
2395      as_fn_append ac_configure_args " '$ac_arg'"
2396      ;;
2397    esac
2398  done
2399done
2400{ ac_configure_args0=; unset ac_configure_args0;}
2401{ ac_configure_args1=; unset ac_configure_args1;}
2402
2403# When interrupted or exit'd, cleanup temporary files, and complete
2404# config.log.  We remove comments because anyway the quotes in there
2405# would cause problems or look ugly.
2406# WARNING: Use '\'' to represent an apostrophe within the trap.
2407# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2408trap 'exit_status=$?
2409  # Save into config.log some information that might help in debugging.
2410  {
2411    echo
2412
2413    $as_echo "## ---------------- ##
2414## Cache variables. ##
2415## ---------------- ##"
2416    echo
2417    # The following way of writing the cache mishandles newlines in values,
2418(
2419  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2420    eval ac_val=\$$ac_var
2421    case $ac_val in #(
2422    *${as_nl}*)
2423      case $ac_var in #(
2424      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2425$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426      esac
2427      case $ac_var in #(
2428      _ | IFS | as_nl) ;; #(
2429      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2430      *) { eval $ac_var=; unset $ac_var;} ;;
2431      esac ;;
2432    esac
2433  done
2434  (set) 2>&1 |
2435    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436    *${as_nl}ac_space=\ *)
2437      sed -n \
2438	"s/'\''/'\''\\\\'\'''\''/g;
2439	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440      ;; #(
2441    *)
2442      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443      ;;
2444    esac |
2445    sort
2446)
2447    echo
2448
2449    $as_echo "## ----------------- ##
2450## Output variables. ##
2451## ----------------- ##"
2452    echo
2453    for ac_var in $ac_subst_vars
2454    do
2455      eval ac_val=\$$ac_var
2456      case $ac_val in
2457      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458      esac
2459      $as_echo "$ac_var='\''$ac_val'\''"
2460    done | sort
2461    echo
2462
2463    if test -n "$ac_subst_files"; then
2464      $as_echo "## ------------------- ##
2465## File substitutions. ##
2466## ------------------- ##"
2467      echo
2468      for ac_var in $ac_subst_files
2469      do
2470	eval ac_val=\$$ac_var
2471	case $ac_val in
2472	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473	esac
2474	$as_echo "$ac_var='\''$ac_val'\''"
2475      done | sort
2476      echo
2477    fi
2478
2479    if test -s confdefs.h; then
2480      $as_echo "## ----------- ##
2481## confdefs.h. ##
2482## ----------- ##"
2483      echo
2484      cat confdefs.h
2485      echo
2486    fi
2487    test "$ac_signal" != 0 &&
2488      $as_echo "$as_me: caught signal $ac_signal"
2489    $as_echo "$as_me: exit $exit_status"
2490  } >&5
2491  rm -f core *.core core.conftest.* &&
2492    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2493    exit $exit_status
2494' 0
2495for ac_signal in 1 2 13 15; do
2496  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2497done
2498ac_signal=0
2499
2500# confdefs.h avoids OS command line length limits that DEFS can exceed.
2501rm -f -r conftest* confdefs.h
2502
2503$as_echo "/* confdefs.h */" > confdefs.h
2504
2505# Predefined preprocessor variables.
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_NAME "$PACKAGE_NAME"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_VERSION "$PACKAGE_VERSION"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_STRING "$PACKAGE_STRING"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2525_ACEOF
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_URL "$PACKAGE_URL"
2529_ACEOF
2530
2531
2532# Let the site file select an alternate cache file if it wants to.
2533# Prefer an explicitly selected file to automatically selected ones.
2534ac_site_file1=NONE
2535ac_site_file2=NONE
2536if test -n "$CONFIG_SITE"; then
2537  # We do not want a PATH search for config.site.
2538  case $CONFIG_SITE in #((
2539    -*)  ac_site_file1=./$CONFIG_SITE;;
2540    */*) ac_site_file1=$CONFIG_SITE;;
2541    *)   ac_site_file1=./$CONFIG_SITE;;
2542  esac
2543elif test "x$prefix" != xNONE; then
2544  ac_site_file1=$prefix/share/config.site
2545  ac_site_file2=$prefix/etc/config.site
2546else
2547  ac_site_file1=$ac_default_prefix/share/config.site
2548  ac_site_file2=$ac_default_prefix/etc/config.site
2549fi
2550for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2551do
2552  test "x$ac_site_file" = xNONE && continue
2553  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2554    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2555$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2556    sed 's/^/| /' "$ac_site_file" >&5
2557    . "$ac_site_file" \
2558      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560as_fn_error $? "failed to load site script $ac_site_file
2561See \`config.log' for more details" "$LINENO" 5; }
2562  fi
2563done
2564
2565if test -r "$cache_file"; then
2566  # Some versions of bash will fail to source /dev/null (special files
2567  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2568  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2569    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2570$as_echo "$as_me: loading cache $cache_file" >&6;}
2571    case $cache_file in
2572      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2573      *)                      . "./$cache_file";;
2574    esac
2575  fi
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2578$as_echo "$as_me: creating cache $cache_file" >&6;}
2579  >$cache_file
2580fi
2581
2582# Check that the precious variables saved in the cache have kept the same
2583# value.
2584ac_cache_corrupted=false
2585for ac_var in $ac_precious_vars; do
2586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587  eval ac_new_set=\$ac_env_${ac_var}_set
2588  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589  eval ac_new_val=\$ac_env_${ac_var}_value
2590  case $ac_old_set,$ac_new_set in
2591    set,)
2592      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2593$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,set)
2596      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2597$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2598      ac_cache_corrupted=: ;;
2599    ,);;
2600    *)
2601      if test "x$ac_old_val" != "x$ac_new_val"; then
2602	# differences in whitespace do not lead to failure.
2603	ac_old_val_w=`echo x $ac_old_val`
2604	ac_new_val_w=`echo x $ac_new_val`
2605	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2607$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2608	  ac_cache_corrupted=:
2609	else
2610	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2611$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2612	  eval $ac_var=\$ac_old_val
2613	fi
2614	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2615$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2616	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2617$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2618      fi;;
2619  esac
2620  # Pass precious variables to config.status.
2621  if test "$ac_new_set" = set; then
2622    case $ac_new_val in
2623    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624    *) ac_arg=$ac_var=$ac_new_val ;;
2625    esac
2626    case " $ac_configure_args " in
2627      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2628      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2629    esac
2630  fi
2631done
2632if $ac_cache_corrupted; then
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2637  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2638fi
2639## -------------------- ##
2640## Main body of script. ##
2641## -------------------- ##
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649
2650
2651# needed to build correct soname
2652LDNS_VERSION_MAJOR=1
2653
2654LDNS_VERSION_MINOR=7
2655
2656LDNS_VERSION_MICRO=0
2657
2658
2659# Library version
2660# ---------------
2661# current:revision:age
2662# (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
2663# if source code changes increment revision
2664# if any interfaces have been added/removed/changed since last update then
2665#   increment current and set revision to 0
2666# if any interfaces have been added since the last public release then increment age
2667# if any interfaces have been removed or changed since the last public release then
2668#   set age to 0
2669#
2670# ldns-1.6.17 and before had a .so with version same as VERSION_INFO
2671# ldns-1.7.0 will have libversion 2:0:0
2672#
2673VERSION_INFO=2:0:0
2674
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681if test -n "$ac_tool_prefix"; then
2682  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_CC+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$CC"; then
2690  ac_cv_prog_CC="$CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712$as_echo "$CC" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719fi
2720if test -z "$ac_cv_prog_CC"; then
2721  ac_ct_CC=$CC
2722  # Extract the first word of "gcc", so it can be a program name with args.
2723set dummy gcc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_ac_ct_CC+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test -n "$ac_ct_CC"; then
2730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_exec_ext in '' $ac_executable_extensions; do
2738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739    ac_cv_prog_ac_ct_CC="gcc"
2740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741    break 2
2742  fi
2743done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750if test -n "$ac_ct_CC"; then
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752$as_echo "$ac_ct_CC" >&6; }
2753else
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758  if test "x$ac_ct_CC" = x; then
2759    CC=""
2760  else
2761    case $cross_compiling:$ac_tool_warned in
2762yes:)
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765ac_tool_warned=yes ;;
2766esac
2767    CC=$ac_ct_CC
2768  fi
2769else
2770  CC="$ac_cv_prog_CC"
2771fi
2772
2773if test -z "$CC"; then
2774          if test -n "$ac_tool_prefix"; then
2775    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776set dummy ${ac_tool_prefix}cc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if ${ac_cv_prog_CC+:} false; then :
2780  $as_echo_n "(cached) " >&6
2781else
2782  if test -n "$CC"; then
2783  ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    for ac_exec_ext in '' $ac_executable_extensions; do
2791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792    ac_cv_prog_CC="${ac_tool_prefix}cc"
2793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794    break 2
2795  fi
2796done
2797  done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CC=$ac_cv_prog_CC
2803if test -n "$CC"; then
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805$as_echo "$CC" >&6; }
2806else
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809fi
2810
2811
2812  fi
2813fi
2814if test -z "$CC"; then
2815  # Extract the first word of "cc", so it can be a program name with args.
2816set dummy cc; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if ${ac_cv_prog_CC+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$CC"; then
2823  ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825  ac_prog_rejected=no
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831    for ac_exec_ext in '' $ac_executable_extensions; do
2832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834       ac_prog_rejected=yes
2835       continue
2836     fi
2837    ac_cv_prog_CC="cc"
2838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842  done
2843IFS=$as_save_IFS
2844
2845if test $ac_prog_rejected = yes; then
2846  # We found a bogon in the path, so make sure we never use it.
2847  set dummy $ac_cv_prog_CC
2848  shift
2849  if test $# != 0; then
2850    # We chose a different compiler from the bogus one.
2851    # However, it has the same basename, so the bogon will be chosen
2852    # first if we set CC to just the basename; use the full file name.
2853    shift
2854    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2855  fi
2856fi
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869fi
2870if test -z "$CC"; then
2871  if test -n "$ac_tool_prefix"; then
2872  for ac_prog in cl.exe
2873  do
2874    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if ${ac_cv_prog_CC+:} false; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test -n "$CC"; then
2882  ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911    test -n "$CC" && break
2912  done
2913fi
2914if test -z "$CC"; then
2915  ac_ct_CC=$CC
2916  for ac_prog in cl.exe
2917do
2918  # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_ac_ct_CC+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$ac_ct_CC"; then
2926  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_ac_ct_CC="$ac_prog"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946if test -n "$ac_ct_CC"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948$as_echo "$ac_ct_CC" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955  test -n "$ac_ct_CC" && break
2956done
2957
2958  if test "x$ac_ct_CC" = x; then
2959    CC=""
2960  else
2961    case $cross_compiling:$ac_tool_warned in
2962yes:)
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965ac_tool_warned=yes ;;
2966esac
2967    CC=$ac_ct_CC
2968  fi
2969fi
2970
2971fi
2972
2973
2974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error $? "no acceptable C compiler found in \$PATH
2977See \`config.log' for more details" "$LINENO" 5; }
2978
2979# Provide some information about the compiler.
2980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981set X $ac_compile
2982ac_compiler=$2
2983for ac_option in --version -v -V -qversion; do
2984  { { ac_try="$ac_compiler $ac_option >&5"
2985case "(($ac_try" in
2986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987  *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2992  ac_status=$?
2993  if test -s conftest.err; then
2994    sed '10a\
2995... rest of stderr output deleted ...
2996         10q' conftest.err >conftest.er1
2997    cat conftest.er1 >&5
2998  fi
2999  rm -f conftest.er1 conftest.err
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }
3002done
3003
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h.  */
3006
3007int
3008main ()
3009{
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015ac_clean_files_save=$ac_clean_files
3016ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017# Try to create an executable without -o first, disregard a.out.
3018# It will help us diagnose broken compilers, and finding out an intuition
3019# of exeext.
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021$as_echo_n "checking whether the C compiler works... " >&6; }
3022ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023
3024# The possible output files:
3025ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3026
3027ac_rmfiles=
3028for ac_file in $ac_files
3029do
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3033  esac
3034done
3035rm -f $ac_rmfiles
3036
3037if { { ac_try="$ac_link_default"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044  (eval "$ac_link_default") 2>&5
3045  ac_status=$?
3046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047  test $ac_status = 0; }; then :
3048  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3051# so that the user can short-circuit this test for compilers unknown to
3052# Autoconf.
3053for ac_file in $ac_files ''
3054do
3055  test -f "$ac_file" || continue
3056  case $ac_file in
3057    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3058	;;
3059    [ab].out )
3060	# We found the default executable, but exeext='' is most
3061	# certainly right.
3062	break;;
3063    *.* )
3064	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065	then :; else
3066	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067	fi
3068	# We set ac_cv_exeext here because the later test for it is not
3069	# safe: cross compilers may not add the suffix if given an `-o'
3070	# argument, so we may need to know it at that point already.
3071	# Even if this section looks crufty: it has the advantage of
3072	# actually working.
3073	break;;
3074    * )
3075	break;;
3076  esac
3077done
3078test "$ac_cv_exeext" = no && ac_cv_exeext=
3079
3080else
3081  ac_file=''
3082fi
3083if test -z "$ac_file"; then :
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086$as_echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091as_fn_error 77 "C compiler cannot create executables
3092See \`config.log' for more details" "$LINENO" 5; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
3096fi
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098$as_echo_n "checking for C compiler default output file name... " >&6; }
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100$as_echo "$ac_file" >&6; }
3101ac_exeext=$ac_cv_exeext
3102
3103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3104ac_clean_files=$ac_clean_files_save
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106$as_echo_n "checking for suffix of executables... " >&6; }
3107if { { ac_try="$ac_link"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
3114  (eval "$ac_link") 2>&5
3115  ac_status=$?
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }; then :
3118  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3120# work properly (i.e., refer to `conftest.exe'), while it won't with
3121# `rm'.
3122for ac_file in conftest.exe conftest conftest.*; do
3123  test -f "$ac_file" || continue
3124  case $ac_file in
3125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127	  break;;
3128    * ) break;;
3129  esac
3130done
3131else
3132  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3135See \`config.log' for more details" "$LINENO" 5; }
3136fi
3137rm -f conftest conftest$ac_cv_exeext
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139$as_echo "$ac_cv_exeext" >&6; }
3140
3141rm -f conftest.$ac_ext
3142EXEEXT=$ac_cv_exeext
3143ac_exeext=$EXEEXT
3144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145/* end confdefs.h.  */
3146#include <stdio.h>
3147int
3148main ()
3149{
3150FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3152
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157ac_clean_files="$ac_clean_files conftest.out"
3158# Check that the compiler produces executables we can run.  If not, either
3159# the compiler is broken, or we cross compile.
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161$as_echo_n "checking whether we are cross compiling... " >&6; }
3162if test "$cross_compiling" != yes; then
3163  { { ac_try="$ac_link"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170  (eval "$ac_link") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173  test $ac_status = 0; }
3174  if { ac_try='./conftest$ac_cv_exeext'
3175  { { case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_try") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }; }; then
3185    cross_compiling=no
3186  else
3187    if test "$cross_compiling" = maybe; then
3188	cross_compiling=yes
3189    else
3190	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error $? "cannot run C compiled programs.
3193If you meant to cross compile, use \`--host'.
3194See \`config.log' for more details" "$LINENO" 5; }
3195    fi
3196  fi
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199$as_echo "$cross_compiling" >&6; }
3200
3201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202ac_clean_files=$ac_clean_files_save
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204$as_echo_n "checking for suffix of object files... " >&6; }
3205if ${ac_cv_objext+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main ()
3213{
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219rm -f conftest.o conftest.obj
3220if { { ac_try="$ac_compile"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_compile") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }; then :
3231  for ac_file in conftest.o conftest.obj conftest.*; do
3232  test -f "$ac_file" || continue;
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3236       break;;
3237  esac
3238done
3239else
3240  $as_echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "cannot compute suffix of object files: cannot compile
3246See \`config.log' for more details" "$LINENO" 5; }
3247fi
3248rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251$as_echo "$ac_cv_objext" >&6; }
3252OBJEXT=$ac_cv_objext
3253ac_objext=$OBJEXT
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256if ${ac_cv_c_compiler_gnu+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265#ifndef __GNUC__
3266       choke me
3267#endif
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
3274  ac_compiler_gnu=yes
3275else
3276  ac_compiler_gnu=no
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284if test $ac_compiler_gnu = yes; then
3285  GCC=yes
3286else
3287  GCC=
3288fi
3289ac_test_CFLAGS=${CFLAGS+set}
3290ac_save_CFLAGS=$CFLAGS
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292$as_echo_n "checking whether $CC accepts -g... " >&6; }
3293if ${ac_cv_prog_cc_g+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  ac_save_c_werror_flag=$ac_c_werror_flag
3297   ac_c_werror_flag=yes
3298   ac_cv_prog_cc_g=no
3299   CFLAGS="-g"
3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312  ac_cv_prog_cc_g=yes
3313else
3314  CFLAGS=""
3315      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326if ac_fn_c_try_compile "$LINENO"; then :
3327
3328else
3329  ac_c_werror_flag=$ac_save_c_werror_flag
3330	 CFLAGS="-g"
3331	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343  ac_cv_prog_cc_g=yes
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348fi
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350   ac_c_werror_flag=$ac_save_c_werror_flag
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353$as_echo "$ac_cv_prog_cc_g" >&6; }
3354if test "$ac_test_CFLAGS" = set; then
3355  CFLAGS=$ac_save_CFLAGS
3356elif test $ac_cv_prog_cc_g = yes; then
3357  if test "$GCC" = yes; then
3358    CFLAGS="-g -O2"
3359  else
3360    CFLAGS="-g"
3361  fi
3362else
3363  if test "$GCC" = yes; then
3364    CFLAGS="-O2"
3365  else
3366    CFLAGS=
3367  fi
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371if ${ac_cv_prog_cc_c89+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  ac_cv_prog_cc_c89=no
3375ac_save_CC=$CC
3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378#include <stdarg.h>
3379#include <stdio.h>
3380struct stat;
3381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3382struct buf { int x; };
3383FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384static char *e (p, i)
3385     char **p;
3386     int i;
3387{
3388  return p[i];
3389}
3390static char *f (char * (*g) (char **, int), char **p, ...)
3391{
3392  char *s;
3393  va_list v;
3394  va_start (v,p);
3395  s = g (p, va_arg (v,int));
3396  va_end (v);
3397  return s;
3398}
3399
3400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3401   function prototypes and stuff, but not '\xHH' hex character constants.
3402   These don't provoke an error unfortunately, instead are silently treated
3403   as 'x'.  The following induces an error, until -std is added to get
3404   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3405   array size at least.  It's necessary to write '\x00'==0 to get something
3406   that's true only with -std.  */
3407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408
3409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410   inside strings and character constants.  */
3411#define FOO(x) 'x'
3412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413
3414int test (int i, double x);
3415struct s1 {int (*f) (int a);};
3416struct s2 {int (*f) (double a);};
3417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418int argc;
3419char **argv;
3420int
3421main ()
3422{
3423return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430do
3431  CC="$ac_save_CC $ac_arg"
3432  if ac_fn_c_try_compile "$LINENO"; then :
3433  ac_cv_prog_cc_c89=$ac_arg
3434fi
3435rm -f core conftest.err conftest.$ac_objext
3436  test "x$ac_cv_prog_cc_c89" != "xno" && break
3437done
3438rm -f conftest.$ac_ext
3439CC=$ac_save_CC
3440
3441fi
3442# AC_CACHE_VAL
3443case "x$ac_cv_prog_cc_c89" in
3444  x)
3445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3446$as_echo "none needed" >&6; } ;;
3447  xno)
3448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3449$as_echo "unsupported" >&6; } ;;
3450  *)
3451    CC="$CC $ac_cv_prog_cc_c89"
3452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3454esac
3455if test "x$ac_cv_prog_cc_c89" != xno; then :
3456
3457fi
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472$as_echo_n "checking how to run the C preprocessor... " >&6; }
3473# On Suns, sometimes $CPP names a directory.
3474if test -n "$CPP" && test -d "$CPP"; then
3475  CPP=
3476fi
3477if test -z "$CPP"; then
3478  if ${ac_cv_prog_CPP+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481      # Double quotes because CPP needs to be expanded
3482    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483    do
3484      ac_preproc_ok=false
3485for ac_c_preproc_warn_flag in '' yes
3486do
3487  # Use a header file that comes with gcc, so configuring glibc
3488  # with a fresh cross-compiler works.
3489  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490  # <limits.h> exists even on freestanding compilers.
3491  # On the NeXT, cc -E runs the code through the compiler's parser,
3492  # not just through cpp. "Syntax error" is here to catch this case.
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#ifdef __STDC__
3496# include <limits.h>
3497#else
3498# include <assert.h>
3499#endif
3500		     Syntax error
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
3503
3504else
3505  # Broken: fails on valid input.
3506continue
3507fi
3508rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510  # OK, works on sane cases.  Now check whether nonexistent headers
3511  # can be detected and how.
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if ac_fn_c_try_cpp "$LINENO"; then :
3517  # Broken: success on invalid input.
3518continue
3519else
3520  # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.i conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then :
3530  break
3531fi
3532
3533    done
3534    ac_cv_prog_CPP=$CPP
3535
3536fi
3537  CPP=$ac_cv_prog_CPP
3538else
3539  ac_cv_prog_CPP=$CPP
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542$as_echo "$CPP" >&6; }
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554#ifdef __STDC__
3555# include <limits.h>
3556#else
3557# include <assert.h>
3558#endif
3559		     Syntax error
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563else
3564  # Broken: fails on valid input.
3565continue
3566fi
3567rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569  # OK, works on sane cases.  Now check whether nonexistent headers
3570  # can be detected and how.
3571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573#include <ac_nonexistent.h>
3574_ACEOF
3575if ac_fn_c_try_cpp "$LINENO"; then :
3576  # Broken: success on invalid input.
3577continue
3578else
3579  # Passes both tests.
3580ac_preproc_ok=:
3581break
3582fi
3583rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585done
3586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587rm -f conftest.i conftest.err conftest.$ac_ext
3588if $ac_preproc_ok; then :
3589
3590else
3591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594See \`config.log' for more details" "$LINENO" 5; }
3595fi
3596
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606if ${ac_cv_path_GREP+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  if test -z "$GREP"; then
3610  ac_path_GREP_found=false
3611  # Loop through the user's path and test for each of PROGNAME-LIST
3612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617    for ac_prog in grep ggrep; do
3618    for ac_exec_ext in '' $ac_executable_extensions; do
3619      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620      as_fn_executable_p "$ac_path_GREP" || continue
3621# Check for GNU ac_path_GREP and select it if it is found.
3622  # Check for GNU $ac_path_GREP
3623case `"$ac_path_GREP" --version 2>&1` in
3624*GNU*)
3625  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626*)
3627  ac_count=0
3628  $as_echo_n 0123456789 >"conftest.in"
3629  while :
3630  do
3631    cat "conftest.in" "conftest.in" >"conftest.tmp"
3632    mv "conftest.tmp" "conftest.in"
3633    cp "conftest.in" "conftest.nl"
3634    $as_echo 'GREP' >> "conftest.nl"
3635    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637    as_fn_arith $ac_count + 1 && ac_count=$as_val
3638    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639      # Best one so far, save it but keep looking for a better one
3640      ac_cv_path_GREP="$ac_path_GREP"
3641      ac_path_GREP_max=$ac_count
3642    fi
3643    # 10*(2^10) chars as input seems more than enough
3644    test $ac_count -gt 10 && break
3645  done
3646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647esac
3648
3649      $ac_path_GREP_found && break 3
3650    done
3651  done
3652  done
3653IFS=$as_save_IFS
3654  if test -z "$ac_cv_path_GREP"; then
3655    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656  fi
3657else
3658  ac_cv_path_GREP=$GREP
3659fi
3660
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663$as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3665
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668$as_echo_n "checking for egrep... " >&6; }
3669if ${ac_cv_path_EGREP+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673   then ac_cv_path_EGREP="$GREP -E"
3674   else
3675     if test -z "$EGREP"; then
3676  ac_path_EGREP_found=false
3677  # Loop through the user's path and test for each of PROGNAME-LIST
3678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683    for ac_prog in egrep; do
3684    for ac_exec_ext in '' $ac_executable_extensions; do
3685      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686      as_fn_executable_p "$ac_path_EGREP" || continue
3687# Check for GNU ac_path_EGREP and select it if it is found.
3688  # Check for GNU $ac_path_EGREP
3689case `"$ac_path_EGREP" --version 2>&1` in
3690*GNU*)
3691  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692*)
3693  ac_count=0
3694  $as_echo_n 0123456789 >"conftest.in"
3695  while :
3696  do
3697    cat "conftest.in" "conftest.in" >"conftest.tmp"
3698    mv "conftest.tmp" "conftest.in"
3699    cp "conftest.in" "conftest.nl"
3700    $as_echo 'EGREP' >> "conftest.nl"
3701    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703    as_fn_arith $ac_count + 1 && ac_count=$as_val
3704    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705      # Best one so far, save it but keep looking for a better one
3706      ac_cv_path_EGREP="$ac_path_EGREP"
3707      ac_path_EGREP_max=$ac_count
3708    fi
3709    # 10*(2^10) chars as input seems more than enough
3710    test $ac_count -gt 10 && break
3711  done
3712  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715      $ac_path_EGREP_found && break 3
3716    done
3717  done
3718  done
3719IFS=$as_save_IFS
3720  if test -z "$ac_cv_path_EGREP"; then
3721    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722  fi
3723else
3724  ac_cv_path_EGREP=$EGREP
3725fi
3726
3727   fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730$as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3732
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735$as_echo_n "checking for ANSI C header files... " >&6; }
3736if ${ac_cv_header_stdc+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741#include <stdlib.h>
3742#include <stdarg.h>
3743#include <string.h>
3744#include <float.h>
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_header_stdc=yes
3756else
3757  ac_cv_header_stdc=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761if test $ac_cv_header_stdc = yes; then
3762  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769  $EGREP "memchr" >/dev/null 2>&1; then :
3770
3771else
3772  ac_cv_header_stdc=no
3773fi
3774rm -f conftest*
3775
3776fi
3777
3778if test $ac_cv_header_stdc = yes; then
3779  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782#include <stdlib.h>
3783
3784_ACEOF
3785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786  $EGREP "free" >/dev/null 2>&1; then :
3787
3788else
3789  ac_cv_header_stdc=no
3790fi
3791rm -f conftest*
3792
3793fi
3794
3795if test $ac_cv_header_stdc = yes; then
3796  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797  if test "$cross_compiling" = yes; then :
3798  :
3799else
3800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <ctype.h>
3803#include <stdlib.h>
3804#if ((' ' & 0x0FF) == 0x020)
3805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807#else
3808# define ISLOWER(c) \
3809		   (('a' <= (c) && (c) <= 'i') \
3810		     || ('j' <= (c) && (c) <= 'r') \
3811		     || ('s' <= (c) && (c) <= 'z'))
3812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813#endif
3814
3815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816int
3817main ()
3818{
3819  int i;
3820  for (i = 0; i < 256; i++)
3821    if (XOR (islower (i), ISLOWER (i))
3822	|| toupper (i) != TOUPPER (i))
3823      return 2;
3824  return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_run "$LINENO"; then :
3828
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833  conftest.$ac_objext conftest.beam conftest.$ac_ext
3834fi
3835
3836fi
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839$as_echo "$ac_cv_header_stdc" >&6; }
3840if test $ac_cv_header_stdc = yes; then
3841
3842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3843
3844fi
3845
3846# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848		  inttypes.h stdint.h unistd.h
3849do :
3850  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852"
3853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854  cat >>confdefs.h <<_ACEOF
3855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856_ACEOF
3857
3858fi
3859
3860done
3861
3862
3863
3864  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865if test "x$ac_cv_header_minix_config_h" = xyes; then :
3866  MINIX=yes
3867else
3868  MINIX=
3869fi
3870
3871
3872  if test "$MINIX" = yes; then
3873
3874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880$as_echo "#define _MINIX 1" >>confdefs.h
3881
3882  fi
3883
3884
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893#         define __EXTENSIONS__ 1
3894          $ac_includes_default
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904  ac_cv_safe_to_define___extensions__=yes
3905else
3906  ac_cv_safe_to_define___extensions__=no
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912  test $ac_cv_safe_to_define___extensions__ = yes &&
3913    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914
3915  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916
3917  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918
3919  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920
3921  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3922
3923
3924
3925if test "$ac_cv_header_minix_config_h" = "yes"; then
3926
3927$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3928
3929fi
3930ac_aux_dir=
3931for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3932  if test -f "$ac_dir/install-sh"; then
3933    ac_aux_dir=$ac_dir
3934    ac_install_sh="$ac_aux_dir/install-sh -c"
3935    break
3936  elif test -f "$ac_dir/install.sh"; then
3937    ac_aux_dir=$ac_dir
3938    ac_install_sh="$ac_aux_dir/install.sh -c"
3939    break
3940  elif test -f "$ac_dir/shtool"; then
3941    ac_aux_dir=$ac_dir
3942    ac_install_sh="$ac_aux_dir/shtool install -c"
3943    break
3944  fi
3945done
3946if test -z "$ac_aux_dir"; then
3947  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3948fi
3949
3950# These three variables are undocumented and unsupported,
3951# and are intended to be withdrawn in a future Autoconf release.
3952# They can cause serious problems if a builder's source tree is in a directory
3953# whose full name contains unusual characters.
3954ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3955ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3956ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3957
3958
3959case `pwd` in
3960  *\ * | *\	*)
3961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3962$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3963esac
3964
3965
3966
3967macro_version='2.4.6'
3968macro_revision='2.4.6'
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982ltmain=$ac_aux_dir/ltmain.sh
3983
3984# Make sure we can run config.sub.
3985$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3986  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3989$as_echo_n "checking build system type... " >&6; }
3990if ${ac_cv_build+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  ac_build_alias=$build_alias
3994test "x$ac_build_alias" = x &&
3995  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3996test "x$ac_build_alias" = x &&
3997  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3999  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4000
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4003$as_echo "$ac_cv_build" >&6; }
4004case $ac_cv_build in
4005*-*-*) ;;
4006*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4007esac
4008build=$ac_cv_build
4009ac_save_IFS=$IFS; IFS='-'
4010set x $ac_cv_build
4011shift
4012build_cpu=$1
4013build_vendor=$2
4014shift; shift
4015# Remember, the first character of IFS is used to create $*,
4016# except with old shells:
4017build_os=$*
4018IFS=$ac_save_IFS
4019case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4020
4021
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4023$as_echo_n "checking host system type... " >&6; }
4024if ${ac_cv_host+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test "x$host_alias" = x; then
4028  ac_cv_host=$ac_cv_build
4029else
4030  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4031    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4032fi
4033
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4036$as_echo "$ac_cv_host" >&6; }
4037case $ac_cv_host in
4038*-*-*) ;;
4039*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4040esac
4041host=$ac_cv_host
4042ac_save_IFS=$IFS; IFS='-'
4043set x $ac_cv_host
4044shift
4045host_cpu=$1
4046host_vendor=$2
4047shift; shift
4048# Remember, the first character of IFS is used to create $*,
4049# except with old shells:
4050host_os=$*
4051IFS=$ac_save_IFS
4052case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4053
4054
4055# Backslashify metacharacters that are still active within
4056# double-quoted strings.
4057sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4058
4059# Same as above, but do not quote variable references.
4060double_quote_subst='s/\(["`\\]\)/\\\1/g'
4061
4062# Sed substitution to delay expansion of an escaped shell variable in a
4063# double_quote_subst'ed string.
4064delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4065
4066# Sed substitution to delay expansion of an escaped single quote.
4067delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4068
4069# Sed substitution to avoid accidental globbing in evaled expressions
4070no_glob_subst='s/\*/\\\*/g'
4071
4072ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4073ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4074ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4077$as_echo_n "checking how to print strings... " >&6; }
4078# Test print first, because it will be a builtin if present.
4079if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4080   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4081  ECHO='print -r --'
4082elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4083  ECHO='printf %s\n'
4084else
4085  # Use this function as a fallback that always works.
4086  func_fallback_echo ()
4087  {
4088    eval 'cat <<_LTECHO_EOF
4089$1
4090_LTECHO_EOF'
4091  }
4092  ECHO='func_fallback_echo'
4093fi
4094
4095# func_echo_all arg...
4096# Invoke $ECHO with all args, space-separated.
4097func_echo_all ()
4098{
4099    $ECHO ""
4100}
4101
4102case $ECHO in
4103  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4104$as_echo "printf" >&6; } ;;
4105  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4106$as_echo "print -r" >&6; } ;;
4107  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4108$as_echo "cat" >&6; } ;;
4109esac
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126if ${ac_cv_path_SED+:} false; then :
4127  $as_echo_n "(cached) " >&6
4128else
4129            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4130     for ac_i in 1 2 3 4 5 6 7; do
4131       ac_script="$ac_script$as_nl$ac_script"
4132     done
4133     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4134     { ac_script=; unset ac_script;}
4135     if test -z "$SED"; then
4136  ac_path_SED_found=false
4137  # Loop through the user's path and test for each of PROGNAME-LIST
4138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143    for ac_prog in sed gsed; do
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4146      as_fn_executable_p "$ac_path_SED" || continue
4147# Check for GNU ac_path_SED and select it if it is found.
4148  # Check for GNU $ac_path_SED
4149case `"$ac_path_SED" --version 2>&1` in
4150*GNU*)
4151  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152*)
4153  ac_count=0
4154  $as_echo_n 0123456789 >"conftest.in"
4155  while :
4156  do
4157    cat "conftest.in" "conftest.in" >"conftest.tmp"
4158    mv "conftest.tmp" "conftest.in"
4159    cp "conftest.in" "conftest.nl"
4160    $as_echo '' >> "conftest.nl"
4161    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163    as_fn_arith $ac_count + 1 && ac_count=$as_val
4164    if test $ac_count -gt ${ac_path_SED_max-0}; then
4165      # Best one so far, save it but keep looking for a better one
4166      ac_cv_path_SED="$ac_path_SED"
4167      ac_path_SED_max=$ac_count
4168    fi
4169    # 10*(2^10) chars as input seems more than enough
4170    test $ac_count -gt 10 && break
4171  done
4172  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173esac
4174
4175      $ac_path_SED_found && break 3
4176    done
4177  done
4178  done
4179IFS=$as_save_IFS
4180  if test -z "$ac_cv_path_SED"; then
4181    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4182  fi
4183else
4184  ac_cv_path_SED=$SED
4185fi
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4189$as_echo "$ac_cv_path_SED" >&6; }
4190 SED="$ac_cv_path_SED"
4191  rm -f conftest.sed
4192
4193test -z "$SED" && SED=sed
4194Xsed="$SED -e 1s/^X//"
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4207$as_echo_n "checking for fgrep... " >&6; }
4208if ${ac_cv_path_FGREP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4212   then ac_cv_path_FGREP="$GREP -F"
4213   else
4214     if test -z "$FGREP"; then
4215  ac_path_FGREP_found=false
4216  # Loop through the user's path and test for each of PROGNAME-LIST
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_prog in fgrep; do
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4225      as_fn_executable_p "$ac_path_FGREP" || continue
4226# Check for GNU ac_path_FGREP and select it if it is found.
4227  # Check for GNU $ac_path_FGREP
4228case `"$ac_path_FGREP" --version 2>&1` in
4229*GNU*)
4230  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4231*)
4232  ac_count=0
4233  $as_echo_n 0123456789 >"conftest.in"
4234  while :
4235  do
4236    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237    mv "conftest.tmp" "conftest.in"
4238    cp "conftest.in" "conftest.nl"
4239    $as_echo 'FGREP' >> "conftest.nl"
4240    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4244      # Best one so far, save it but keep looking for a better one
4245      ac_cv_path_FGREP="$ac_path_FGREP"
4246      ac_path_FGREP_max=$ac_count
4247    fi
4248    # 10*(2^10) chars as input seems more than enough
4249    test $ac_count -gt 10 && break
4250  done
4251  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252esac
4253
4254      $ac_path_FGREP_found && break 3
4255    done
4256  done
4257  done
4258IFS=$as_save_IFS
4259  if test -z "$ac_cv_path_FGREP"; then
4260    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261  fi
4262else
4263  ac_cv_path_FGREP=$FGREP
4264fi
4265
4266   fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4269$as_echo "$ac_cv_path_FGREP" >&6; }
4270 FGREP="$ac_cv_path_FGREP"
4271
4272
4273test -z "$GREP" && GREP=grep
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293# Check whether --with-gnu-ld was given.
4294if test "${with_gnu_ld+set}" = set; then :
4295  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4296else
4297  with_gnu_ld=no
4298fi
4299
4300ac_prog=ld
4301if test yes = "$GCC"; then
4302  # Check if gcc -print-prog-name=ld gives a path.
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4304$as_echo_n "checking for ld used by $CC... " >&6; }
4305  case $host in
4306  *-*-mingw*)
4307    # gcc leaves a trailing carriage return, which upsets mingw
4308    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4309  *)
4310    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4311  esac
4312  case $ac_prog in
4313    # Accept absolute paths.
4314    [\\/]* | ?:[\\/]*)
4315      re_direlt='/[^/][^/]*/\.\./'
4316      # Canonicalize the pathname of ld
4317      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4318      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4319	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4320      done
4321      test -z "$LD" && LD=$ac_prog
4322      ;;
4323  "")
4324    # If it fails, then pretend we aren't using GCC.
4325    ac_prog=ld
4326    ;;
4327  *)
4328    # If it is relative, then search for the first ld in PATH.
4329    with_gnu_ld=unknown
4330    ;;
4331  esac
4332elif test yes = "$with_gnu_ld"; then
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4334$as_echo_n "checking for GNU ld... " >&6; }
4335else
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4337$as_echo_n "checking for non-GNU ld... " >&6; }
4338fi
4339if ${lt_cv_path_LD+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -z "$LD"; then
4343  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4344  for ac_dir in $PATH; do
4345    IFS=$lt_save_ifs
4346    test -z "$ac_dir" && ac_dir=.
4347    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4348      lt_cv_path_LD=$ac_dir/$ac_prog
4349      # Check to see if the program is GNU ld.  I'd rather use --version,
4350      # but apparently some variants of GNU ld only accept -v.
4351      # Break only if it was the GNU/non-GNU ld that we prefer.
4352      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4353      *GNU* | *'with BFD'*)
4354	test no != "$with_gnu_ld" && break
4355	;;
4356      *)
4357	test yes != "$with_gnu_ld" && break
4358	;;
4359      esac
4360    fi
4361  done
4362  IFS=$lt_save_ifs
4363else
4364  lt_cv_path_LD=$LD # Let the user override the test with a path.
4365fi
4366fi
4367
4368LD=$lt_cv_path_LD
4369if test -n "$LD"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4371$as_echo "$LD" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4379if ${lt_cv_prog_gnu_ld+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4383case `$LD -v 2>&1 </dev/null` in
4384*GNU* | *'with BFD'*)
4385  lt_cv_prog_gnu_ld=yes
4386  ;;
4387*)
4388  lt_cv_prog_gnu_ld=no
4389  ;;
4390esac
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4393$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4394with_gnu_ld=$lt_cv_prog_gnu_ld
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4406if ${lt_cv_path_NM+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$NM"; then
4410  # Let the user override the test.
4411  lt_cv_path_NM=$NM
4412else
4413  lt_nm_to_check=${ac_tool_prefix}nm
4414  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4415    lt_nm_to_check="$lt_nm_to_check nm"
4416  fi
4417  for lt_tmp_nm in $lt_nm_to_check; do
4418    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4419    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4420      IFS=$lt_save_ifs
4421      test -z "$ac_dir" && ac_dir=.
4422      tmp_nm=$ac_dir/$lt_tmp_nm
4423      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4424	# Check to see if the nm accepts a BSD-compat flag.
4425	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4426	#   nm: unknown option "B" ignored
4427	# Tru64's nm complains that /dev/null is an invalid object file
4428	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4429	case $build_os in
4430	mingw*) lt_bad_file=conftest.nm/nofile ;;
4431	*) lt_bad_file=/dev/null ;;
4432	esac
4433	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4434	*$lt_bad_file* | *'Invalid file or object type'*)
4435	  lt_cv_path_NM="$tmp_nm -B"
4436	  break 2
4437	  ;;
4438	*)
4439	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4440	  */dev/null*)
4441	    lt_cv_path_NM="$tmp_nm -p"
4442	    break 2
4443	    ;;
4444	  *)
4445	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4446	    continue # so that we can try to find one that supports BSD flags
4447	    ;;
4448	  esac
4449	  ;;
4450	esac
4451      fi
4452    done
4453    IFS=$lt_save_ifs
4454  done
4455  : ${lt_cv_path_NM=no}
4456fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4459$as_echo "$lt_cv_path_NM" >&6; }
4460if test no != "$lt_cv_path_NM"; then
4461  NM=$lt_cv_path_NM
4462else
4463  # Didn't find any BSD compatible name lister, look for dumpbin.
4464  if test -n "$DUMPBIN"; then :
4465    # Let the user override the test.
4466  else
4467    if test -n "$ac_tool_prefix"; then
4468  for ac_prog in dumpbin "link -dump"
4469  do
4470    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473$as_echo_n "checking for $ac_word... " >&6; }
4474if ${ac_cv_prog_DUMPBIN+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  if test -n "$DUMPBIN"; then
4478  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489    break 2
4490  fi
4491done
4492  done
4493IFS=$as_save_IFS
4494
4495fi
4496fi
4497DUMPBIN=$ac_cv_prog_DUMPBIN
4498if test -n "$DUMPBIN"; then
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4500$as_echo "$DUMPBIN" >&6; }
4501else
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503$as_echo "no" >&6; }
4504fi
4505
4506
4507    test -n "$DUMPBIN" && break
4508  done
4509fi
4510if test -z "$DUMPBIN"; then
4511  ac_ct_DUMPBIN=$DUMPBIN
4512  for ac_prog in dumpbin "link -dump"
4513do
4514  # Extract the first word of "$ac_prog", so it can be a program name with args.
4515set dummy $ac_prog; 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_DUMPBIN+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test -n "$ac_ct_DUMPBIN"; then
4522  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog"
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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4542if test -n "$ac_ct_DUMPBIN"; then
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4544$as_echo "$ac_ct_DUMPBIN" >&6; }
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548fi
4549
4550
4551  test -n "$ac_ct_DUMPBIN" && break
4552done
4553
4554  if test "x$ac_ct_DUMPBIN" = x; then
4555    DUMPBIN=":"
4556  else
4557    case $cross_compiling:$ac_tool_warned in
4558yes:)
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561ac_tool_warned=yes ;;
4562esac
4563    DUMPBIN=$ac_ct_DUMPBIN
4564  fi
4565fi
4566
4567    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4568    *COFF*)
4569      DUMPBIN="$DUMPBIN -symbols -headers"
4570      ;;
4571    *)
4572      DUMPBIN=:
4573      ;;
4574    esac
4575  fi
4576
4577  if test : != "$DUMPBIN"; then
4578    NM=$DUMPBIN
4579  fi
4580fi
4581test -z "$NM" && NM=nm
4582
4583
4584
4585
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4589$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4590if ${lt_cv_nm_interface+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  lt_cv_nm_interface="BSD nm"
4594  echo "int some_variable = 0;" > conftest.$ac_ext
4595  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4596  (eval "$ac_compile" 2>conftest.err)
4597  cat conftest.err >&5
4598  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4599  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4600  cat conftest.err >&5
4601  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4602  cat conftest.out >&5
4603  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4604    lt_cv_nm_interface="MS dumpbin"
4605  fi
4606  rm -f conftest*
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4609$as_echo "$lt_cv_nm_interface" >&6; }
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4612$as_echo_n "checking whether ln -s works... " >&6; }
4613LN_S=$as_ln_s
4614if test "$LN_S" = "ln -s"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616$as_echo "yes" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4619$as_echo "no, using $LN_S" >&6; }
4620fi
4621
4622# find the maximum length of command line arguments
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4624$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4625if ${lt_cv_sys_max_cmd_len+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628    i=0
4629  teststring=ABCD
4630
4631  case $build_os in
4632  msdosdjgpp*)
4633    # On DJGPP, this test can blow up pretty badly due to problems in libc
4634    # (any single argument exceeding 2000 bytes causes a buffer overrun
4635    # during glob expansion).  Even if it were fixed, the result of this
4636    # check would be larger than it should be.
4637    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4638    ;;
4639
4640  gnu*)
4641    # Under GNU Hurd, this test is not required because there is
4642    # no limit to the length of command line arguments.
4643    # Libtool will interpret -1 as no limit whatsoever
4644    lt_cv_sys_max_cmd_len=-1;
4645    ;;
4646
4647  cygwin* | mingw* | cegcc*)
4648    # On Win9x/ME, this test blows up -- it succeeds, but takes
4649    # about 5 minutes as the teststring grows exponentially.
4650    # Worse, since 9x/ME are not pre-emptively multitasking,
4651    # you end up with a "frozen" computer, even though with patience
4652    # the test eventually succeeds (with a max line length of 256k).
4653    # Instead, let's just punt: use the minimum linelength reported by
4654    # all of the supported platforms: 8192 (on NT/2K/XP).
4655    lt_cv_sys_max_cmd_len=8192;
4656    ;;
4657
4658  mint*)
4659    # On MiNT this can take a long time and run out of memory.
4660    lt_cv_sys_max_cmd_len=8192;
4661    ;;
4662
4663  amigaos*)
4664    # On AmigaOS with pdksh, this test takes hours, literally.
4665    # So we just punt and use a minimum line length of 8192.
4666    lt_cv_sys_max_cmd_len=8192;
4667    ;;
4668
4669  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4670    # This has been around since 386BSD, at least.  Likely further.
4671    if test -x /sbin/sysctl; then
4672      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4673    elif test -x /usr/sbin/sysctl; then
4674      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4675    else
4676      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4677    fi
4678    # And add a safety zone
4679    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4680    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4681    ;;
4682
4683  interix*)
4684    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4685    lt_cv_sys_max_cmd_len=196608
4686    ;;
4687
4688  os2*)
4689    # The test takes a long time on OS/2.
4690    lt_cv_sys_max_cmd_len=8192
4691    ;;
4692
4693  osf*)
4694    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4695    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4696    # nice to cause kernel panics so lets avoid the loop below.
4697    # First set a reasonable default.
4698    lt_cv_sys_max_cmd_len=16384
4699    #
4700    if test -x /sbin/sysconfig; then
4701      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4702        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4703      esac
4704    fi
4705    ;;
4706  sco3.2v5*)
4707    lt_cv_sys_max_cmd_len=102400
4708    ;;
4709  sysv5* | sco5v6* | sysv4.2uw2*)
4710    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4711    if test -n "$kargmax"; then
4712      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4713    else
4714      lt_cv_sys_max_cmd_len=32768
4715    fi
4716    ;;
4717  *)
4718    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4719    if test -n "$lt_cv_sys_max_cmd_len" && \
4720       test undefined != "$lt_cv_sys_max_cmd_len"; then
4721      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4722      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4723    else
4724      # Make teststring a little bigger before we do anything with it.
4725      # a 1K string should be a reasonable start.
4726      for i in 1 2 3 4 5 6 7 8; do
4727        teststring=$teststring$teststring
4728      done
4729      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4730      # If test is not a shell built-in, we'll probably end up computing a
4731      # maximum length that is only half of the actual maximum length, but
4732      # we can't tell.
4733      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4734	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4735	      test 17 != "$i" # 1/2 MB should be enough
4736      do
4737        i=`expr $i + 1`
4738        teststring=$teststring$teststring
4739      done
4740      # Only check the string length outside the loop.
4741      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4742      teststring=
4743      # Add a significant safety factor because C++ compilers can tack on
4744      # massive amounts of additional arguments before passing them to the
4745      # linker.  It appears as though 1/2 is a usable value.
4746      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4747    fi
4748    ;;
4749  esac
4750
4751fi
4752
4753if test -n "$lt_cv_sys_max_cmd_len"; then
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4755$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4756else
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4758$as_echo "none" >&6; }
4759fi
4760max_cmd_len=$lt_cv_sys_max_cmd_len
4761
4762
4763
4764
4765
4766
4767: ${CP="cp -f"}
4768: ${MV="mv -f"}
4769: ${RM="rm -f"}
4770
4771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4772  lt_unset=unset
4773else
4774  lt_unset=false
4775fi
4776
4777
4778
4779
4780
4781# test EBCDIC or ASCII
4782case `echo X|tr X '\101'` in
4783 A) # ASCII based system
4784    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4785  lt_SP2NL='tr \040 \012'
4786  lt_NL2SP='tr \015\012 \040\040'
4787  ;;
4788 *) # EBCDIC based system
4789  lt_SP2NL='tr \100 \n'
4790  lt_NL2SP='tr \r\n \100\100'
4791  ;;
4792esac
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4803$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4804if ${lt_cv_to_host_file_cmd+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  case $host in
4808  *-*-mingw* )
4809    case $build in
4810      *-*-mingw* ) # actually msys
4811        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4812        ;;
4813      *-*-cygwin* )
4814        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4815        ;;
4816      * ) # otherwise, assume *nix
4817        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4818        ;;
4819    esac
4820    ;;
4821  *-*-cygwin* )
4822    case $build in
4823      *-*-mingw* ) # actually msys
4824        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4825        ;;
4826      *-*-cygwin* )
4827        lt_cv_to_host_file_cmd=func_convert_file_noop
4828        ;;
4829      * ) # otherwise, assume *nix
4830        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4831        ;;
4832    esac
4833    ;;
4834  * ) # unhandled hosts (and "normal" native builds)
4835    lt_cv_to_host_file_cmd=func_convert_file_noop
4836    ;;
4837esac
4838
4839fi
4840
4841to_host_file_cmd=$lt_cv_to_host_file_cmd
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4843$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4850$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4851if ${lt_cv_to_tool_file_cmd+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  #assume ordinary cross tools, or native build.
4855lt_cv_to_tool_file_cmd=func_convert_file_noop
4856case $host in
4857  *-*-mingw* )
4858    case $build in
4859      *-*-mingw* ) # actually msys
4860        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4861        ;;
4862    esac
4863    ;;
4864esac
4865
4866fi
4867
4868to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4870$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4871
4872
4873
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4877$as_echo_n "checking for $LD option to reload object files... " >&6; }
4878if ${lt_cv_ld_reload_flag+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  lt_cv_ld_reload_flag='-r'
4882fi
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4884$as_echo "$lt_cv_ld_reload_flag" >&6; }
4885reload_flag=$lt_cv_ld_reload_flag
4886case $reload_flag in
4887"" | " "*) ;;
4888*) reload_flag=" $reload_flag" ;;
4889esac
4890reload_cmds='$LD$reload_flag -o $output$reload_objs'
4891case $host_os in
4892  cygwin* | mingw* | pw32* | cegcc*)
4893    if test yes != "$GCC"; then
4894      reload_cmds=false
4895    fi
4896    ;;
4897  darwin*)
4898    if test yes = "$GCC"; then
4899      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4900    else
4901      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902    fi
4903    ;;
4904esac
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914if test -n "$ac_tool_prefix"; then
4915  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4916set dummy ${ac_tool_prefix}objdump; ac_word=$2
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4919if ${ac_cv_prog_OBJDUMP+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  if test -n "$OBJDUMP"; then
4923  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928  IFS=$as_save_IFS
4929  test -z "$as_dir" && as_dir=.
4930    for ac_exec_ext in '' $ac_executable_extensions; do
4931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934    break 2
4935  fi
4936done
4937  done
4938IFS=$as_save_IFS
4939
4940fi
4941fi
4942OBJDUMP=$ac_cv_prog_OBJDUMP
4943if test -n "$OBJDUMP"; then
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4945$as_echo "$OBJDUMP" >&6; }
4946else
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
4949fi
4950
4951
4952fi
4953if test -z "$ac_cv_prog_OBJDUMP"; then
4954  ac_ct_OBJDUMP=$OBJDUMP
4955  # Extract the first word of "objdump", so it can be a program name with args.
4956set dummy objdump; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  if test -n "$ac_ct_OBJDUMP"; then
4963  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974    break 2
4975  fi
4976done
4977  done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4983if test -n "$ac_ct_OBJDUMP"; then
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4985$as_echo "$ac_ct_OBJDUMP" >&6; }
4986else
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991  if test "x$ac_ct_OBJDUMP" = x; then
4992    OBJDUMP="false"
4993  else
4994    case $cross_compiling:$ac_tool_warned in
4995yes:)
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998ac_tool_warned=yes ;;
4999esac
5000    OBJDUMP=$ac_ct_OBJDUMP
5001  fi
5002else
5003  OBJDUMP="$ac_cv_prog_OBJDUMP"
5004fi
5005
5006test -z "$OBJDUMP" && OBJDUMP=objdump
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5017$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5018if ${lt_cv_deplibs_check_method+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  lt_cv_file_magic_cmd='$MAGIC_CMD'
5022lt_cv_file_magic_test_file=
5023lt_cv_deplibs_check_method='unknown'
5024# Need to set the preceding variable on all platforms that support
5025# interlibrary dependencies.
5026# 'none' -- dependencies not supported.
5027# 'unknown' -- same as none, but documents that we really don't know.
5028# 'pass_all' -- all dependencies passed with no checks.
5029# 'test_compile' -- check by making test program.
5030# 'file_magic [[regex]]' -- check by looking for files in library path
5031# that responds to the $file_magic_cmd with a given extended regex.
5032# If you have 'file' or equivalent on your system and you're not sure
5033# whether 'pass_all' will *always* work, you probably want this one.
5034
5035case $host_os in
5036aix[4-9]*)
5037  lt_cv_deplibs_check_method=pass_all
5038  ;;
5039
5040beos*)
5041  lt_cv_deplibs_check_method=pass_all
5042  ;;
5043
5044bsdi[45]*)
5045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5046  lt_cv_file_magic_cmd='/usr/bin/file -L'
5047  lt_cv_file_magic_test_file=/shlib/libc.so
5048  ;;
5049
5050cygwin*)
5051  # func_win32_libid is a shell function defined in ltmain.sh
5052  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5053  lt_cv_file_magic_cmd='func_win32_libid'
5054  ;;
5055
5056mingw* | pw32*)
5057  # Base MSYS/MinGW do not provide the 'file' command needed by
5058  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5059  # unless we find 'file', for example because we are cross-compiling.
5060  if ( file / ) >/dev/null 2>&1; then
5061    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5062    lt_cv_file_magic_cmd='func_win32_libid'
5063  else
5064    # Keep this pattern in sync with the one in func_win32_libid.
5065    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5066    lt_cv_file_magic_cmd='$OBJDUMP -f'
5067  fi
5068  ;;
5069
5070cegcc*)
5071  # use the weaker test based on 'objdump'. See mingw*.
5072  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5073  lt_cv_file_magic_cmd='$OBJDUMP -f'
5074  ;;
5075
5076darwin* | rhapsody*)
5077  lt_cv_deplibs_check_method=pass_all
5078  ;;
5079
5080freebsd* | dragonfly*)
5081  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5082    case $host_cpu in
5083    i*86 )
5084      # Not sure whether the presence of OpenBSD here was a mistake.
5085      # Let's accept both of them until this is cleared up.
5086      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5087      lt_cv_file_magic_cmd=/usr/bin/file
5088      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5089      ;;
5090    esac
5091  else
5092    lt_cv_deplibs_check_method=pass_all
5093  fi
5094  ;;
5095
5096haiku*)
5097  lt_cv_deplibs_check_method=pass_all
5098  ;;
5099
5100hpux10.20* | hpux11*)
5101  lt_cv_file_magic_cmd=/usr/bin/file
5102  case $host_cpu in
5103  ia64*)
5104    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5105    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5106    ;;
5107  hppa*64*)
5108    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]'
5109    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5110    ;;
5111  *)
5112    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5113    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5114    ;;
5115  esac
5116  ;;
5117
5118interix[3-9]*)
5119  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5120  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5121  ;;
5122
5123irix5* | irix6* | nonstopux*)
5124  case $LD in
5125  *-32|*"-32 ") libmagic=32-bit;;
5126  *-n32|*"-n32 ") libmagic=N32;;
5127  *-64|*"-64 ") libmagic=64-bit;;
5128  *) libmagic=never-match;;
5129  esac
5130  lt_cv_deplibs_check_method=pass_all
5131  ;;
5132
5133# This must be glibc/ELF.
5134linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5135  lt_cv_deplibs_check_method=pass_all
5136  ;;
5137
5138netbsd* | netbsdelf*-gnu)
5139  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5140    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5141  else
5142    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5143  fi
5144  ;;
5145
5146newos6*)
5147  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5148  lt_cv_file_magic_cmd=/usr/bin/file
5149  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5150  ;;
5151
5152*nto* | *qnx*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156openbsd* | bitrig*)
5157  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5158    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5159  else
5160    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5161  fi
5162  ;;
5163
5164osf3* | osf4* | osf5*)
5165  lt_cv_deplibs_check_method=pass_all
5166  ;;
5167
5168rdos*)
5169  lt_cv_deplibs_check_method=pass_all
5170  ;;
5171
5172solaris*)
5173  lt_cv_deplibs_check_method=pass_all
5174  ;;
5175
5176sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5177  lt_cv_deplibs_check_method=pass_all
5178  ;;
5179
5180sysv4 | sysv4.3*)
5181  case $host_vendor in
5182  motorola)
5183    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]'
5184    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5185    ;;
5186  ncr)
5187    lt_cv_deplibs_check_method=pass_all
5188    ;;
5189  sequent)
5190    lt_cv_file_magic_cmd='/bin/file'
5191    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5192    ;;
5193  sni)
5194    lt_cv_file_magic_cmd='/bin/file'
5195    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5196    lt_cv_file_magic_test_file=/lib/libc.so
5197    ;;
5198  siemens)
5199    lt_cv_deplibs_check_method=pass_all
5200    ;;
5201  pc)
5202    lt_cv_deplibs_check_method=pass_all
5203    ;;
5204  esac
5205  ;;
5206
5207tpf*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210os2*)
5211  lt_cv_deplibs_check_method=pass_all
5212  ;;
5213esac
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5217$as_echo "$lt_cv_deplibs_check_method" >&6; }
5218
5219file_magic_glob=
5220want_nocaseglob=no
5221if test "$build" = "$host"; then
5222  case $host_os in
5223  mingw* | pw32*)
5224    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5225      want_nocaseglob=yes
5226    else
5227      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5228    fi
5229    ;;
5230  esac
5231fi
5232
5233file_magic_cmd=$lt_cv_file_magic_cmd
5234deplibs_check_method=$lt_cv_deplibs_check_method
5235test -z "$deplibs_check_method" && deplibs_check_method=unknown
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258if test -n "$ac_tool_prefix"; then
5259  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5260set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
5263if ${ac_cv_prog_DLLTOOL+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  if test -n "$DLLTOOL"; then
5267  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272  IFS=$as_save_IFS
5273  test -z "$as_dir" && as_dir=.
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284fi
5285fi
5286DLLTOOL=$ac_cv_prog_DLLTOOL
5287if test -n "$DLLTOOL"; then
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5289$as_echo "$DLLTOOL" >&6; }
5290else
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
5293fi
5294
5295
5296fi
5297if test -z "$ac_cv_prog_DLLTOOL"; then
5298  ac_ct_DLLTOOL=$DLLTOOL
5299  # Extract the first word of "dlltool", so it can be a program name with args.
5300set dummy dlltool; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -n "$ac_ct_DLLTOOL"; then
5307  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321  done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5327if test -n "$ac_ct_DLLTOOL"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5329$as_echo "$ac_ct_DLLTOOL" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335  if test "x$ac_ct_DLLTOOL" = x; then
5336    DLLTOOL="false"
5337  else
5338    case $cross_compiling:$ac_tool_warned in
5339yes:)
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342ac_tool_warned=yes ;;
5343esac
5344    DLLTOOL=$ac_ct_DLLTOOL
5345  fi
5346else
5347  DLLTOOL="$ac_cv_prog_DLLTOOL"
5348fi
5349
5350test -z "$DLLTOOL" && DLLTOOL=dlltool
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5362$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5363if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  lt_cv_sharedlib_from_linklib_cmd='unknown'
5367
5368case $host_os in
5369cygwin* | mingw* | pw32* | cegcc*)
5370  # two different shell functions defined in ltmain.sh;
5371  # decide which one to use based on capabilities of $DLLTOOL
5372  case `$DLLTOOL --help 2>&1` in
5373  *--identify-strict*)
5374    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5375    ;;
5376  *)
5377    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5378    ;;
5379  esac
5380  ;;
5381*)
5382  # fallback: assume linklib IS sharedlib
5383  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5384  ;;
5385esac
5386
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5389$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5390sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5391test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5392
5393
5394
5395
5396
5397
5398
5399if test -n "$ac_tool_prefix"; then
5400  for ac_prog in ar
5401  do
5402    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_AR+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  if test -n "$AR"; then
5410  ac_cv_prog_AR="$AR" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415  IFS=$as_save_IFS
5416  test -z "$as_dir" && as_dir=.
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421    break 2
5422  fi
5423done
5424  done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429AR=$ac_cv_prog_AR
5430if test -n "$AR"; then
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432$as_echo "$AR" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439    test -n "$AR" && break
5440  done
5441fi
5442if test -z "$AR"; then
5443  ac_ct_AR=$AR
5444  for ac_prog in ar
5445do
5446  # Extract the first word of "$ac_prog", so it can be a program name with args.
5447set dummy $ac_prog; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if ${ac_cv_prog_ac_ct_AR+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  if test -n "$ac_ct_AR"; then
5454  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459  IFS=$as_save_IFS
5460  test -z "$as_dir" && as_dir=.
5461    for ac_exec_ext in '' $ac_executable_extensions; do
5462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463    ac_cv_prog_ac_ct_AR="$ac_prog"
5464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465    break 2
5466  fi
5467done
5468  done
5469IFS=$as_save_IFS
5470
5471fi
5472fi
5473ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474if test -n "$ac_ct_AR"; then
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476$as_echo "$ac_ct_AR" >&6; }
5477else
5478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483  test -n "$ac_ct_AR" && break
5484done
5485
5486  if test "x$ac_ct_AR" = x; then
5487    AR="false"
5488  else
5489    case $cross_compiling:$ac_tool_warned in
5490yes:)
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495    AR=$ac_ct_AR
5496  fi
5497fi
5498
5499: ${AR=ar}
5500: ${AR_FLAGS=cru}
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5513$as_echo_n "checking for archiver @FILE support... " >&6; }
5514if ${lt_cv_ar_at_file+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  lt_cv_ar_at_file=no
5518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520
5521int
5522main ()
5523{
5524
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  echo conftest.$ac_objext > conftest.lst
5531      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5532      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5533  (eval $lt_ar_try) 2>&5
5534  ac_status=$?
5535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536  test $ac_status = 0; }
5537      if test 0 -eq "$ac_status"; then
5538	# Ensure the archiver fails upon bogus file names.
5539	rm -f conftest.$ac_objext libconftest.a
5540	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5541  (eval $lt_ar_try) 2>&5
5542  ac_status=$?
5543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5544  test $ac_status = 0; }
5545	if test 0 -ne "$ac_status"; then
5546          lt_cv_ar_at_file=@
5547        fi
5548      fi
5549      rm -f conftest.* libconftest.a
5550
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5556$as_echo "$lt_cv_ar_at_file" >&6; }
5557
5558if test no = "$lt_cv_ar_at_file"; then
5559  archiver_list_spec=
5560else
5561  archiver_list_spec=$lt_cv_ar_at_file
5562fi
5563
5564
5565
5566
5567
5568
5569
5570if test -n "$ac_tool_prefix"; then
5571  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572set dummy ${ac_tool_prefix}strip; ac_word=$2
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if ${ac_cv_prog_STRIP+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  if test -n "$STRIP"; then
5579  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586    for ac_exec_ext in '' $ac_executable_extensions; do
5587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590    break 2
5591  fi
5592done
5593  done
5594IFS=$as_save_IFS
5595
5596fi
5597fi
5598STRIP=$ac_cv_prog_STRIP
5599if test -n "$STRIP"; then
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5601$as_echo "$STRIP" >&6; }
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608fi
5609if test -z "$ac_cv_prog_STRIP"; then
5610  ac_ct_STRIP=$STRIP
5611  # Extract the first word of "strip", so it can be a program name with args.
5612set dummy strip; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  if test -n "$ac_ct_STRIP"; then
5619  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626    for ac_exec_ext in '' $ac_executable_extensions; do
5627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_ac_ct_STRIP="strip"
5629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633  done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5639if test -n "$ac_ct_STRIP"; then
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5641$as_echo "$ac_ct_STRIP" >&6; }
5642else
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647  if test "x$ac_ct_STRIP" = x; then
5648    STRIP=":"
5649  else
5650    case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656    STRIP=$ac_ct_STRIP
5657  fi
5658else
5659  STRIP="$ac_cv_prog_STRIP"
5660fi
5661
5662test -z "$STRIP" && STRIP=:
5663
5664
5665
5666
5667
5668
5669if test -n "$ac_tool_prefix"; then
5670  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5671set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673$as_echo_n "checking for $ac_word... " >&6; }
5674if ${ac_cv_prog_RANLIB+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  if test -n "$RANLIB"; then
5678  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683  IFS=$as_save_IFS
5684  test -z "$as_dir" && as_dir=.
5685    for ac_exec_ext in '' $ac_executable_extensions; do
5686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689    break 2
5690  fi
5691done
5692  done
5693IFS=$as_save_IFS
5694
5695fi
5696fi
5697RANLIB=$ac_cv_prog_RANLIB
5698if test -n "$RANLIB"; then
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5700$as_echo "$RANLIB" >&6; }
5701else
5702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }
5704fi
5705
5706
5707fi
5708if test -z "$ac_cv_prog_RANLIB"; then
5709  ac_ct_RANLIB=$RANLIB
5710  # Extract the first word of "ranlib", so it can be a program name with args.
5711set dummy ranlib; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -n "$ac_ct_RANLIB"; then
5718  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723  IFS=$as_save_IFS
5724  test -z "$as_dir" && as_dir=.
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727    ac_cv_prog_ac_ct_RANLIB="ranlib"
5728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729    break 2
5730  fi
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5738if test -n "$ac_ct_RANLIB"; then
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5740$as_echo "$ac_ct_RANLIB" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746  if test "x$ac_ct_RANLIB" = x; then
5747    RANLIB=":"
5748  else
5749    case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753ac_tool_warned=yes ;;
5754esac
5755    RANLIB=$ac_ct_RANLIB
5756  fi
5757else
5758  RANLIB="$ac_cv_prog_RANLIB"
5759fi
5760
5761test -z "$RANLIB" && RANLIB=:
5762
5763
5764
5765
5766
5767
5768# Determine commands to create old-style static archives.
5769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5770old_postinstall_cmds='chmod 644 $oldlib'
5771old_postuninstall_cmds=
5772
5773if test -n "$RANLIB"; then
5774  case $host_os in
5775  bitrig* | openbsd*)
5776    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5777    ;;
5778  *)
5779    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5780    ;;
5781  esac
5782  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5783fi
5784
5785case $host_os in
5786  darwin*)
5787    lock_old_archive_extraction=yes ;;
5788  *)
5789    lock_old_archive_extraction=no ;;
5790esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812for ac_prog in gawk mawk nawk awk
5813do
5814  # Extract the first word of "$ac_prog", so it can be a program name with args.
5815set dummy $ac_prog; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_AWK+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$AWK"; then
5822  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_AWK="$ac_prog"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841AWK=$ac_cv_prog_AWK
5842if test -n "$AWK"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5844$as_echo "$AWK" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851  test -n "$AWK" && break
5852done
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872# If no C compiler was specified, use CC.
5873LTCC=${LTCC-"$CC"}
5874
5875# If no C compiler flags were specified, use CFLAGS.
5876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5877
5878# Allow CC to be a program name with arguments.
5879compiler=$CC
5880
5881
5882# Check for command to grab the raw symbol name followed by C symbol from nm.
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5885if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888
5889# These are sane defaults that work on at least a few old systems.
5890# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5891
5892# Character class describing NM global symbol codes.
5893symcode='[BCDEGRST]'
5894
5895# Regexp to match symbols that can be accessed directly from C.
5896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5897
5898# Define system-specific variables.
5899case $host_os in
5900aix*)
5901  symcode='[BCDT]'
5902  ;;
5903cygwin* | mingw* | pw32* | cegcc*)
5904  symcode='[ABCDGISTW]'
5905  ;;
5906hpux*)
5907  if test ia64 = "$host_cpu"; then
5908    symcode='[ABCDEGRST]'
5909  fi
5910  ;;
5911irix* | nonstopux*)
5912  symcode='[BCDEGRST]'
5913  ;;
5914osf*)
5915  symcode='[BCDEGQRST]'
5916  ;;
5917solaris*)
5918  symcode='[BDRT]'
5919  ;;
5920sco3.2v5*)
5921  symcode='[DT]'
5922  ;;
5923sysv4.2uw2*)
5924  symcode='[DT]'
5925  ;;
5926sysv5* | sco5v6* | unixware* | OpenUNIX*)
5927  symcode='[ABDT]'
5928  ;;
5929sysv4)
5930  symcode='[DFNSTU]'
5931  ;;
5932esac
5933
5934# If we're using GNU nm, then use its standard symbol codes.
5935case `$NM -V 2>&1` in
5936*GNU* | *'with BFD'*)
5937  symcode='[ABCDGIRSTW]' ;;
5938esac
5939
5940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5941  # Gets list of data symbols to import.
5942  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5943  # Adjust the below global symbol transforms to fixup imported variables.
5944  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5945  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5946  lt_c_name_lib_hook="\
5947  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5948  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5949else
5950  # Disable hooks by default.
5951  lt_cv_sys_global_symbol_to_import=
5952  lt_cdecl_hook=
5953  lt_c_name_hook=
5954  lt_c_name_lib_hook=
5955fi
5956
5957# Transform an extracted symbol line into a proper C declaration.
5958# Some systems (esp. on ia64) link data and code symbols differently,
5959# so use this general approach.
5960lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5961$lt_cdecl_hook\
5962" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5963" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5964
5965# Transform an extracted symbol line into symbol name and symbol address
5966lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5967$lt_c_name_hook\
5968" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5969" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5970
5971# Transform an extracted symbol line into symbol name with lib prefix and
5972# symbol address.
5973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5974$lt_c_name_lib_hook\
5975" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5976" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5977" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5978
5979# Handle CRLF in mingw tool chain
5980opt_cr=
5981case $build_os in
5982mingw*)
5983  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5984  ;;
5985esac
5986
5987# Try without a prefix underscore, then with it.
5988for ac_symprfx in "" "_"; do
5989
5990  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5991  symxfrm="\\1 $ac_symprfx\\2 \\2"
5992
5993  # Write the raw and C identifiers.
5994  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5995    # Fake it for dumpbin and say T for any non-static function,
5996    # D for any global variable and I for any imported variable.
5997    # Also find C++ and __fastcall symbols from MSVC++,
5998    # which start with @ or ?.
5999    lt_cv_sys_global_symbol_pipe="$AWK '"\
6000"     {last_section=section; section=\$ 3};"\
6001"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6002"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6003"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6004"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6005"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6006"     \$ 0!~/External *\|/{next};"\
6007"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008"     {if(hide[section]) next};"\
6009"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6010"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6011"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6012"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6013"     ' prfx=^$ac_symprfx"
6014  else
6015    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6016  fi
6017  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6018
6019  # Check to see that the pipe works correctly.
6020  pipe_works=no
6021
6022  rm -f conftest*
6023  cat > conftest.$ac_ext <<_LT_EOF
6024#ifdef __cplusplus
6025extern "C" {
6026#endif
6027char nm_test_var;
6028void nm_test_func(void);
6029void nm_test_func(void){}
6030#ifdef __cplusplus
6031}
6032#endif
6033int main(){nm_test_var='a';nm_test_func();return(0);}
6034_LT_EOF
6035
6036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6037  (eval $ac_compile) 2>&5
6038  ac_status=$?
6039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040  test $ac_status = 0; }; then
6041    # Now try to grab the symbols.
6042    nlist=conftest.nm
6043    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6044  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6045  ac_status=$?
6046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047  test $ac_status = 0; } && test -s "$nlist"; then
6048      # Try sorting and uniquifying the output.
6049      if sort "$nlist" | uniq > "$nlist"T; then
6050	mv -f "$nlist"T "$nlist"
6051      else
6052	rm -f "$nlist"T
6053      fi
6054
6055      # Make sure that we snagged all the symbols we need.
6056      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6057	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6058	  cat <<_LT_EOF > conftest.$ac_ext
6059/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6060#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6061/* DATA imports from DLLs on WIN32 can't be const, because runtime
6062   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6063# define LT_DLSYM_CONST
6064#elif defined __osf__
6065/* This system does not cope well with relocations in const data.  */
6066# define LT_DLSYM_CONST
6067#else
6068# define LT_DLSYM_CONST const
6069#endif
6070
6071#ifdef __cplusplus
6072extern "C" {
6073#endif
6074
6075_LT_EOF
6076	  # Now generate the symbol file.
6077	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6078
6079	  cat <<_LT_EOF >> conftest.$ac_ext
6080
6081/* The mapping between symbol names and symbols.  */
6082LT_DLSYM_CONST struct {
6083  const char *name;
6084  void       *address;
6085}
6086lt__PROGRAM__LTX_preloaded_symbols[] =
6087{
6088  { "@PROGRAM@", (void *) 0 },
6089_LT_EOF
6090	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6091	  cat <<\_LT_EOF >> conftest.$ac_ext
6092  {0, (void *) 0}
6093};
6094
6095/* This works around a problem in FreeBSD linker */
6096#ifdef FREEBSD_WORKAROUND
6097static const void *lt_preloaded_setup() {
6098  return lt__PROGRAM__LTX_preloaded_symbols;
6099}
6100#endif
6101
6102#ifdef __cplusplus
6103}
6104#endif
6105_LT_EOF
6106	  # Now try linking the two files.
6107	  mv conftest.$ac_objext conftstm.$ac_objext
6108	  lt_globsym_save_LIBS=$LIBS
6109	  lt_globsym_save_CFLAGS=$CFLAGS
6110	  LIBS=conftstm.$ac_objext
6111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113  (eval $ac_link) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6117	    pipe_works=yes
6118	  fi
6119	  LIBS=$lt_globsym_save_LIBS
6120	  CFLAGS=$lt_globsym_save_CFLAGS
6121	else
6122	  echo "cannot find nm_test_func in $nlist" >&5
6123	fi
6124      else
6125	echo "cannot find nm_test_var in $nlist" >&5
6126      fi
6127    else
6128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6129    fi
6130  else
6131    echo "$progname: failed program was:" >&5
6132    cat conftest.$ac_ext >&5
6133  fi
6134  rm -rf conftest* conftst*
6135
6136  # Do not use the global_symbol_pipe unless it works.
6137  if test yes = "$pipe_works"; then
6138    break
6139  else
6140    lt_cv_sys_global_symbol_pipe=
6141  fi
6142done
6143
6144fi
6145
6146if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147  lt_cv_sys_global_symbol_to_cdecl=
6148fi
6149if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151$as_echo "failed" >&6; }
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154$as_echo "ok" >&6; }
6155fi
6156
6157# Response file support.
6158if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159  nm_file_list_spec='@'
6160elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6161  nm_file_list_spec='@'
6162fi
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6201$as_echo_n "checking for sysroot... " >&6; }
6202
6203# Check whether --with-sysroot was given.
6204if test "${with_sysroot+set}" = set; then :
6205  withval=$with_sysroot;
6206else
6207  with_sysroot=no
6208fi
6209
6210
6211lt_sysroot=
6212case $with_sysroot in #(
6213 yes)
6214   if test yes = "$GCC"; then
6215     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6216   fi
6217   ;; #(
6218 /*)
6219   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6220   ;; #(
6221 no|'')
6222   ;; #(
6223 *)
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6225$as_echo "$with_sysroot" >&6; }
6226   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6227   ;;
6228esac
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6231$as_echo "${lt_sysroot:-no}" >&6; }
6232
6233
6234
6235
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6238$as_echo_n "checking for a working dd... " >&6; }
6239if ${ac_cv_path_lt_DD+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  printf 0123456789abcdef0123456789abcdef >conftest.i
6243cat conftest.i conftest.i >conftest2.i
6244: ${lt_DD:=$DD}
6245if test -z "$lt_DD"; then
6246  ac_path_lt_DD_found=false
6247  # Loop through the user's path and test for each of PROGNAME-LIST
6248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  test -z "$as_dir" && as_dir=.
6253    for ac_prog in dd; do
6254    for ac_exec_ext in '' $ac_executable_extensions; do
6255      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6256      as_fn_executable_p "$ac_path_lt_DD" || continue
6257if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6258  cmp -s conftest.i conftest.out \
6259  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6260fi
6261      $ac_path_lt_DD_found && break 3
6262    done
6263  done
6264  done
6265IFS=$as_save_IFS
6266  if test -z "$ac_cv_path_lt_DD"; then
6267    :
6268  fi
6269else
6270  ac_cv_path_lt_DD=$lt_DD
6271fi
6272
6273rm -f conftest.i conftest2.i conftest.out
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6276$as_echo "$ac_cv_path_lt_DD" >&6; }
6277
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6280$as_echo_n "checking how to truncate binary pipes... " >&6; }
6281if ${lt_cv_truncate_bin+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  printf 0123456789abcdef0123456789abcdef >conftest.i
6285cat conftest.i conftest.i >conftest2.i
6286lt_cv_truncate_bin=
6287if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6288  cmp -s conftest.i conftest.out \
6289  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6290fi
6291rm -f conftest.i conftest2.i conftest.out
6292test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6295$as_echo "$lt_cv_truncate_bin" >&6; }
6296
6297
6298
6299
6300
6301
6302
6303# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6304func_cc_basename ()
6305{
6306    for cc_temp in $*""; do
6307      case $cc_temp in
6308        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6309        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6310        \-*) ;;
6311        *) break;;
6312      esac
6313    done
6314    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6315}
6316
6317# Check whether --enable-libtool-lock was given.
6318if test "${enable_libtool_lock+set}" = set; then :
6319  enableval=$enable_libtool_lock;
6320fi
6321
6322test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6323
6324# Some flags need to be propagated to the compiler or linker for good
6325# libtool support.
6326case $host in
6327ia64-*-hpux*)
6328  # Find out what ABI is being produced by ac_compile, and set mode
6329  # options accordingly.
6330  echo 'int i;' > conftest.$ac_ext
6331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332  (eval $ac_compile) 2>&5
6333  ac_status=$?
6334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335  test $ac_status = 0; }; then
6336    case `/usr/bin/file conftest.$ac_objext` in
6337      *ELF-32*)
6338	HPUX_IA64_MODE=32
6339	;;
6340      *ELF-64*)
6341	HPUX_IA64_MODE=64
6342	;;
6343    esac
6344  fi
6345  rm -rf conftest*
6346  ;;
6347*-*-irix6*)
6348  # Find out what ABI is being produced by ac_compile, and set linker
6349  # options accordingly.
6350  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6352  (eval $ac_compile) 2>&5
6353  ac_status=$?
6354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355  test $ac_status = 0; }; then
6356    if test yes = "$lt_cv_prog_gnu_ld"; then
6357      case `/usr/bin/file conftest.$ac_objext` in
6358	*32-bit*)
6359	  LD="${LD-ld} -melf32bsmip"
6360	  ;;
6361	*N32*)
6362	  LD="${LD-ld} -melf32bmipn32"
6363	  ;;
6364	*64-bit*)
6365	  LD="${LD-ld} -melf64bmip"
6366	;;
6367      esac
6368    else
6369      case `/usr/bin/file conftest.$ac_objext` in
6370	*32-bit*)
6371	  LD="${LD-ld} -32"
6372	  ;;
6373	*N32*)
6374	  LD="${LD-ld} -n32"
6375	  ;;
6376	*64-bit*)
6377	  LD="${LD-ld} -64"
6378	  ;;
6379      esac
6380    fi
6381  fi
6382  rm -rf conftest*
6383  ;;
6384
6385mips64*-*linux*)
6386  # Find out what ABI is being produced by ac_compile, and set linker
6387  # options accordingly.
6388  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390  (eval $ac_compile) 2>&5
6391  ac_status=$?
6392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393  test $ac_status = 0; }; then
6394    emul=elf
6395    case `/usr/bin/file conftest.$ac_objext` in
6396      *32-bit*)
6397	emul="${emul}32"
6398	;;
6399      *64-bit*)
6400	emul="${emul}64"
6401	;;
6402    esac
6403    case `/usr/bin/file conftest.$ac_objext` in
6404      *MSB*)
6405	emul="${emul}btsmip"
6406	;;
6407      *LSB*)
6408	emul="${emul}ltsmip"
6409	;;
6410    esac
6411    case `/usr/bin/file conftest.$ac_objext` in
6412      *N32*)
6413	emul="${emul}n32"
6414	;;
6415    esac
6416    LD="${LD-ld} -m $emul"
6417  fi
6418  rm -rf conftest*
6419  ;;
6420
6421x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6422s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6423  # Find out what ABI is being produced by ac_compile, and set linker
6424  # options accordingly.  Note that the listed cases only cover the
6425  # situations where additional linker options are needed (such as when
6426  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6427  # vice versa); the common cases where no linker options are needed do
6428  # not appear in the list.
6429  echo 'int i;' > conftest.$ac_ext
6430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431  (eval $ac_compile) 2>&5
6432  ac_status=$?
6433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434  test $ac_status = 0; }; then
6435    case `/usr/bin/file conftest.o` in
6436      *32-bit*)
6437	case $host in
6438	  x86_64-*kfreebsd*-gnu)
6439	    LD="${LD-ld} -m elf_i386_fbsd"
6440	    ;;
6441	  x86_64-*linux*)
6442	    case `/usr/bin/file conftest.o` in
6443	      *x86-64*)
6444		LD="${LD-ld} -m elf32_x86_64"
6445		;;
6446	      *)
6447		LD="${LD-ld} -m elf_i386"
6448		;;
6449	    esac
6450	    ;;
6451	  powerpc64le-*linux*)
6452	    LD="${LD-ld} -m elf32lppclinux"
6453	    ;;
6454	  powerpc64-*linux*)
6455	    LD="${LD-ld} -m elf32ppclinux"
6456	    ;;
6457	  s390x-*linux*)
6458	    LD="${LD-ld} -m elf_s390"
6459	    ;;
6460	  sparc64-*linux*)
6461	    LD="${LD-ld} -m elf32_sparc"
6462	    ;;
6463	esac
6464	;;
6465      *64-bit*)
6466	case $host in
6467	  x86_64-*kfreebsd*-gnu)
6468	    LD="${LD-ld} -m elf_x86_64_fbsd"
6469	    ;;
6470	  x86_64-*linux*)
6471	    LD="${LD-ld} -m elf_x86_64"
6472	    ;;
6473	  powerpcle-*linux*)
6474	    LD="${LD-ld} -m elf64lppc"
6475	    ;;
6476	  powerpc-*linux*)
6477	    LD="${LD-ld} -m elf64ppc"
6478	    ;;
6479	  s390*-*linux*|s390*-*tpf*)
6480	    LD="${LD-ld} -m elf64_s390"
6481	    ;;
6482	  sparc*-*linux*)
6483	    LD="${LD-ld} -m elf64_sparc"
6484	    ;;
6485	esac
6486	;;
6487    esac
6488  fi
6489  rm -rf conftest*
6490  ;;
6491
6492*-*-sco3.2v5*)
6493  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6494  SAVE_CFLAGS=$CFLAGS
6495  CFLAGS="$CFLAGS -belf"
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6497$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6498if ${lt_cv_cc_needs_belf+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509
6510int
6511main ()
6512{
6513
6514  ;
6515  return 0;
6516}
6517_ACEOF
6518if ac_fn_c_try_link "$LINENO"; then :
6519  lt_cv_cc_needs_belf=yes
6520else
6521  lt_cv_cc_needs_belf=no
6522fi
6523rm -f core conftest.err conftest.$ac_objext \
6524    conftest$ac_exeext conftest.$ac_ext
6525     ac_ext=c
6526ac_cpp='$CPP $CPPFLAGS'
6527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6533$as_echo "$lt_cv_cc_needs_belf" >&6; }
6534  if test yes != "$lt_cv_cc_needs_belf"; then
6535    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6536    CFLAGS=$SAVE_CFLAGS
6537  fi
6538  ;;
6539*-*solaris*)
6540  # Find out what ABI is being produced by ac_compile, and set linker
6541  # options accordingly.
6542  echo 'int i;' > conftest.$ac_ext
6543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544  (eval $ac_compile) 2>&5
6545  ac_status=$?
6546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547  test $ac_status = 0; }; then
6548    case `/usr/bin/file conftest.o` in
6549    *64-bit*)
6550      case $lt_cv_prog_gnu_ld in
6551      yes*)
6552        case $host in
6553        i?86-*-solaris*|x86_64-*-solaris*)
6554          LD="${LD-ld} -m elf_x86_64"
6555          ;;
6556        sparc*-*-solaris*)
6557          LD="${LD-ld} -m elf64_sparc"
6558          ;;
6559        esac
6560        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6561        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6562          LD=${LD-ld}_sol2
6563        fi
6564        ;;
6565      *)
6566	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6567	  LD="${LD-ld} -64"
6568	fi
6569	;;
6570      esac
6571      ;;
6572    esac
6573  fi
6574  rm -rf conftest*
6575  ;;
6576esac
6577
6578need_locks=$enable_libtool_lock
6579
6580if test -n "$ac_tool_prefix"; then
6581  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}mt; ac_word=$2
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  if test -n "$MANIFEST_TOOL"; then
6589  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  test -z "$as_dir" && as_dir=.
6596    for ac_exec_ext in '' $ac_executable_extensions; do
6597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600    break 2
6601  fi
6602done
6603  done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6609if test -n "$MANIFEST_TOOL"; then
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6611$as_echo "$MANIFEST_TOOL" >&6; }
6612else
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618fi
6619if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6620  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6621  # Extract the first word of "mt", so it can be a program name with args.
6622set dummy mt; ac_word=$2
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  if test -n "$ac_ct_MANIFEST_TOOL"; then
6629  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634  IFS=$as_save_IFS
6635  test -z "$as_dir" && as_dir=.
6636    for ac_exec_ext in '' $ac_executable_extensions; do
6637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643  done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6649if test -n "$ac_ct_MANIFEST_TOOL"; then
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6651$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6652else
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6658    MANIFEST_TOOL=":"
6659  else
6660    case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6667  fi
6668else
6669  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6670fi
6671
6672test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6674$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6675if ${lt_cv_path_mainfest_tool+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  lt_cv_path_mainfest_tool=no
6679  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6680  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6681  cat conftest.err >&5
6682  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6683    lt_cv_path_mainfest_tool=yes
6684  fi
6685  rm -f conftest*
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6688$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6689if test yes != "$lt_cv_path_mainfest_tool"; then
6690  MANIFEST_TOOL=:
6691fi
6692
6693
6694
6695
6696
6697
6698  case $host_os in
6699    rhapsody* | darwin*)
6700    if test -n "$ac_tool_prefix"; then
6701  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6702set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if ${ac_cv_prog_DSYMUTIL+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -n "$DSYMUTIL"; then
6709  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_exec_ext in '' $ac_executable_extensions; do
6717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720    break 2
6721  fi
6722done
6723  done
6724IFS=$as_save_IFS
6725
6726fi
6727fi
6728DSYMUTIL=$ac_cv_prog_DSYMUTIL
6729if test -n "$DSYMUTIL"; then
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6731$as_echo "$DSYMUTIL" >&6; }
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
6737
6738fi
6739if test -z "$ac_cv_prog_DSYMUTIL"; then
6740  ac_ct_DSYMUTIL=$DSYMUTIL
6741  # Extract the first word of "dsymutil", so it can be a program name with args.
6742set dummy dsymutil; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$ac_ct_DSYMUTIL"; then
6749  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6769if test -n "$ac_ct_DSYMUTIL"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6771$as_echo "$ac_ct_DSYMUTIL" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777  if test "x$ac_ct_DSYMUTIL" = x; then
6778    DSYMUTIL=":"
6779  else
6780    case $cross_compiling:$ac_tool_warned in
6781yes:)
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784ac_tool_warned=yes ;;
6785esac
6786    DSYMUTIL=$ac_ct_DSYMUTIL
6787  fi
6788else
6789  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6790fi
6791
6792    if test -n "$ac_tool_prefix"; then
6793  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6794set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796$as_echo_n "checking for $ac_word... " >&6; }
6797if ${ac_cv_prog_NMEDIT+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  if test -n "$NMEDIT"; then
6801  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808    for ac_exec_ext in '' $ac_executable_extensions; do
6809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815  done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820NMEDIT=$ac_cv_prog_NMEDIT
6821if test -n "$NMEDIT"; then
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6823$as_echo "$NMEDIT" >&6; }
6824else
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826$as_echo "no" >&6; }
6827fi
6828
6829
6830fi
6831if test -z "$ac_cv_prog_NMEDIT"; then
6832  ac_ct_NMEDIT=$NMEDIT
6833  # Extract the first word of "nmedit", so it can be a program name with args.
6834set dummy nmedit; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
6837if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6838  $as_echo_n "(cached) " >&6
6839else
6840  if test -n "$ac_ct_NMEDIT"; then
6841  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  test -z "$as_dir" && as_dir=.
6848    for ac_exec_ext in '' $ac_executable_extensions; do
6849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852    break 2
6853  fi
6854done
6855  done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6861if test -n "$ac_ct_NMEDIT"; then
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6863$as_echo "$ac_ct_NMEDIT" >&6; }
6864else
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869  if test "x$ac_ct_NMEDIT" = x; then
6870    NMEDIT=":"
6871  else
6872    case $cross_compiling:$ac_tool_warned in
6873yes:)
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876ac_tool_warned=yes ;;
6877esac
6878    NMEDIT=$ac_ct_NMEDIT
6879  fi
6880else
6881  NMEDIT="$ac_cv_prog_NMEDIT"
6882fi
6883
6884    if test -n "$ac_tool_prefix"; then
6885  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6886set dummy ${ac_tool_prefix}lipo; ac_word=$2
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if ${ac_cv_prog_LIPO+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$LIPO"; then
6893  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900    for ac_exec_ext in '' $ac_executable_extensions; do
6901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907  done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912LIPO=$ac_cv_prog_LIPO
6913if test -n "$LIPO"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6915$as_echo "$LIPO" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921
6922fi
6923if test -z "$ac_cv_prog_LIPO"; then
6924  ac_ct_LIPO=$LIPO
6925  # Extract the first word of "lipo", so it can be a program name with args.
6926set dummy lipo; ac_word=$2
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928$as_echo_n "checking for $ac_word... " >&6; }
6929if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  if test -n "$ac_ct_LIPO"; then
6933  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938  IFS=$as_save_IFS
6939  test -z "$as_dir" && as_dir=.
6940    for ac_exec_ext in '' $ac_executable_extensions; do
6941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942    ac_cv_prog_ac_ct_LIPO="lipo"
6943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944    break 2
6945  fi
6946done
6947  done
6948IFS=$as_save_IFS
6949
6950fi
6951fi
6952ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6953if test -n "$ac_ct_LIPO"; then
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6955$as_echo "$ac_ct_LIPO" >&6; }
6956else
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958$as_echo "no" >&6; }
6959fi
6960
6961  if test "x$ac_ct_LIPO" = x; then
6962    LIPO=":"
6963  else
6964    case $cross_compiling:$ac_tool_warned in
6965yes:)
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968ac_tool_warned=yes ;;
6969esac
6970    LIPO=$ac_ct_LIPO
6971  fi
6972else
6973  LIPO="$ac_cv_prog_LIPO"
6974fi
6975
6976    if test -n "$ac_tool_prefix"; then
6977  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6978set dummy ${ac_tool_prefix}otool; ac_word=$2
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980$as_echo_n "checking for $ac_word... " >&6; }
6981if ${ac_cv_prog_OTOOL+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  if test -n "$OTOOL"; then
6985  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002fi
7003fi
7004OTOOL=$ac_cv_prog_OTOOL
7005if test -n "$OTOOL"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7007$as_echo "$OTOOL" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014fi
7015if test -z "$ac_cv_prog_OTOOL"; then
7016  ac_ct_OTOOL=$OTOOL
7017  # Extract the first word of "otool", so it can be a program name with args.
7018set dummy otool; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  if test -n "$ac_ct_OTOOL"; then
7025  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_ac_ct_OTOOL="otool"
7035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7045if test -n "$ac_ct_OTOOL"; then
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7047$as_echo "$ac_ct_OTOOL" >&6; }
7048else
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053  if test "x$ac_ct_OTOOL" = x; then
7054    OTOOL=":"
7055  else
7056    case $cross_compiling:$ac_tool_warned in
7057yes:)
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060ac_tool_warned=yes ;;
7061esac
7062    OTOOL=$ac_ct_OTOOL
7063  fi
7064else
7065  OTOOL="$ac_cv_prog_OTOOL"
7066fi
7067
7068    if test -n "$ac_tool_prefix"; then
7069  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}otool64; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if ${ac_cv_prog_OTOOL64+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$OTOOL64"; then
7077  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096OTOOL64=$ac_cv_prog_OTOOL64
7097if test -n "$OTOOL64"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7099$as_echo "$OTOOL64" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106fi
7107if test -z "$ac_cv_prog_OTOOL64"; then
7108  ac_ct_OTOOL64=$OTOOL64
7109  # Extract the first word of "otool64", so it can be a program name with args.
7110set dummy otool64; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$ac_ct_OTOOL64"; then
7117  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_ac_ct_OTOOL64="otool64"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7137if test -n "$ac_ct_OTOOL64"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7139$as_echo "$ac_ct_OTOOL64" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145  if test "x$ac_ct_OTOOL64" = x; then
7146    OTOOL64=":"
7147  else
7148    case $cross_compiling:$ac_tool_warned in
7149yes:)
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152ac_tool_warned=yes ;;
7153esac
7154    OTOOL64=$ac_ct_OTOOL64
7155  fi
7156else
7157  OTOOL64="$ac_cv_prog_OTOOL64"
7158fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7187$as_echo_n "checking for -single_module linker flag... " >&6; }
7188if ${lt_cv_apple_cc_single_mod+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  lt_cv_apple_cc_single_mod=no
7192      if test -z "$LT_MULTI_MODULE"; then
7193	# By default we will add the -single_module flag. You can override
7194	# by either setting the environment variable LT_MULTI_MODULE
7195	# non-empty at configure time, or by adding -multi_module to the
7196	# link flags.
7197	rm -rf libconftest.dylib*
7198	echo "int foo(void){return 1;}" > conftest.c
7199	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200-dynamiclib -Wl,-single_module conftest.c" >&5
7201	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7202	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7203        _lt_result=$?
7204	# If there is a non-empty error log, and "single_module"
7205	# appears in it, assume the flag caused a linker warning
7206        if test -s conftest.err && $GREP single_module conftest.err; then
7207	  cat conftest.err >&5
7208	# Otherwise, if the output was created with a 0 exit code from
7209	# the compiler, it worked.
7210	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7211	  lt_cv_apple_cc_single_mod=yes
7212	else
7213	  cat conftest.err >&5
7214	fi
7215	rm -rf libconftest.dylib*
7216	rm -f conftest.*
7217      fi
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7220$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7221
7222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224if ${lt_cv_ld_exported_symbols_list+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  lt_cv_ld_exported_symbols_list=no
7228      save_LDFLAGS=$LDFLAGS
7229      echo "_main" > conftest.sym
7230      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  lt_cv_ld_exported_symbols_list=yes
7244else
7245  lt_cv_ld_exported_symbols_list=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249	LDFLAGS=$save_LDFLAGS
7250
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254
7255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7256$as_echo_n "checking for -force_load linker flag... " >&6; }
7257if ${lt_cv_ld_force_load+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  lt_cv_ld_force_load=no
7261      cat > conftest.c << _LT_EOF
7262int forced_loaded() { return 2;}
7263_LT_EOF
7264      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7265      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7266      echo "$AR cru libconftest.a conftest.o" >&5
7267      $AR cru libconftest.a conftest.o 2>&5
7268      echo "$RANLIB libconftest.a" >&5
7269      $RANLIB libconftest.a 2>&5
7270      cat > conftest.c << _LT_EOF
7271int main() { return 0;}
7272_LT_EOF
7273      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7274      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7275      _lt_result=$?
7276      if test -s conftest.err && $GREP force_load conftest.err; then
7277	cat conftest.err >&5
7278      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7279	lt_cv_ld_force_load=yes
7280      else
7281	cat conftest.err >&5
7282      fi
7283        rm -f conftest.err libconftest.a conftest conftest.c
7284        rm -rf conftest.dSYM
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7288$as_echo "$lt_cv_ld_force_load" >&6; }
7289    case $host_os in
7290    rhapsody* | darwin1.[012])
7291      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7292    darwin1.*)
7293      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7294    darwin*) # darwin 5.x on
7295      # if running on 10.5 or later, the deployment target defaults
7296      # to the OS version, if on x86, and 10.4, the deployment
7297      # target defaults to 10.4. Don't you love it?
7298      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7299	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7300	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7301	10.[012][,.]*)
7302	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7303	10.*)
7304	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7305      esac
7306    ;;
7307  esac
7308    if test yes = "$lt_cv_apple_cc_single_mod"; then
7309      _lt_dar_single_mod='$single_module'
7310    fi
7311    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7312      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7313    else
7314      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7315    fi
7316    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7317      _lt_dsymutil='~$DSYMUTIL $lib || :'
7318    else
7319      _lt_dsymutil=
7320    fi
7321    ;;
7322  esac
7323
7324# func_munge_path_list VARIABLE PATH
7325# -----------------------------------
7326# VARIABLE is name of variable containing _space_ separated list of
7327# directories to be munged by the contents of PATH, which is string
7328# having a format:
7329# "DIR[:DIR]:"
7330#       string "DIR[ DIR]" will be prepended to VARIABLE
7331# ":DIR[:DIR]"
7332#       string "DIR[ DIR]" will be appended to VARIABLE
7333# "DIRP[:DIRP]::[DIRA:]DIRA"
7334#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7335#       "DIRA[ DIRA]" will be appended to VARIABLE
7336# "DIR[:DIR]"
7337#       VARIABLE will be replaced by "DIR[ DIR]"
7338func_munge_path_list ()
7339{
7340    case x$2 in
7341    x)
7342        ;;
7343    *:)
7344        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7345        ;;
7346    x:*)
7347        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7348        ;;
7349    *::*)
7350        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7351        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7352        ;;
7353    *)
7354        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7355        ;;
7356    esac
7357}
7358
7359for ac_header in dlfcn.h
7360do :
7361  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7362"
7363if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7364  cat >>confdefs.h <<_ACEOF
7365#define HAVE_DLFCN_H 1
7366_ACEOF
7367
7368fi
7369
7370done
7371
7372
7373
7374
7375
7376# Set options
7377
7378
7379
7380        enable_dlopen=no
7381
7382
7383  enable_win32_dll=no
7384
7385
7386            # Check whether --enable-shared was given.
7387if test "${enable_shared+set}" = set; then :
7388  enableval=$enable_shared; p=${PACKAGE-default}
7389    case $enableval in
7390    yes) enable_shared=yes ;;
7391    no) enable_shared=no ;;
7392    *)
7393      enable_shared=no
7394      # Look at the argument we got.  We use all the common list separators.
7395      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7396      for pkg in $enableval; do
7397	IFS=$lt_save_ifs
7398	if test "X$pkg" = "X$p"; then
7399	  enable_shared=yes
7400	fi
7401      done
7402      IFS=$lt_save_ifs
7403      ;;
7404    esac
7405else
7406  enable_shared=yes
7407fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417  # Check whether --enable-static was given.
7418if test "${enable_static+set}" = set; then :
7419  enableval=$enable_static; p=${PACKAGE-default}
7420    case $enableval in
7421    yes) enable_static=yes ;;
7422    no) enable_static=no ;;
7423    *)
7424     enable_static=no
7425      # Look at the argument we got.  We use all the common list separators.
7426      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7427      for pkg in $enableval; do
7428	IFS=$lt_save_ifs
7429	if test "X$pkg" = "X$p"; then
7430	  enable_static=yes
7431	fi
7432      done
7433      IFS=$lt_save_ifs
7434      ;;
7435    esac
7436else
7437  enable_static=yes
7438fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449# Check whether --with-pic was given.
7450if test "${with_pic+set}" = set; then :
7451  withval=$with_pic; lt_p=${PACKAGE-default}
7452    case $withval in
7453    yes|no) pic_mode=$withval ;;
7454    *)
7455      pic_mode=default
7456      # Look at the argument we got.  We use all the common list separators.
7457      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7458      for lt_pkg in $withval; do
7459	IFS=$lt_save_ifs
7460	if test "X$lt_pkg" = "X$lt_p"; then
7461	  pic_mode=yes
7462	fi
7463      done
7464      IFS=$lt_save_ifs
7465      ;;
7466    esac
7467else
7468  pic_mode=default
7469fi
7470
7471
7472
7473
7474
7475
7476
7477
7478  # Check whether --enable-fast-install was given.
7479if test "${enable_fast_install+set}" = set; then :
7480  enableval=$enable_fast_install; p=${PACKAGE-default}
7481    case $enableval in
7482    yes) enable_fast_install=yes ;;
7483    no) enable_fast_install=no ;;
7484    *)
7485      enable_fast_install=no
7486      # Look at the argument we got.  We use all the common list separators.
7487      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7488      for pkg in $enableval; do
7489	IFS=$lt_save_ifs
7490	if test "X$pkg" = "X$p"; then
7491	  enable_fast_install=yes
7492	fi
7493      done
7494      IFS=$lt_save_ifs
7495      ;;
7496    esac
7497else
7498  enable_fast_install=yes
7499fi
7500
7501
7502
7503
7504
7505
7506
7507
7508  shared_archive_member_spec=
7509case $host,$enable_shared in
7510power*-*-aix[5-9]*,yes)
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7512$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7513
7514# Check whether --with-aix-soname was given.
7515if test "${with_aix_soname+set}" = set; then :
7516  withval=$with_aix_soname; case $withval in
7517    aix|svr4|both)
7518      ;;
7519    *)
7520      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7521      ;;
7522    esac
7523    lt_cv_with_aix_soname=$with_aix_soname
7524else
7525  if ${lt_cv_with_aix_soname+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  lt_cv_with_aix_soname=aix
7529fi
7530
7531    with_aix_soname=$lt_cv_with_aix_soname
7532fi
7533
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7535$as_echo "$with_aix_soname" >&6; }
7536  if test aix != "$with_aix_soname"; then
7537    # For the AIX way of multilib, we name the shared archive member
7538    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7539    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7540    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7541    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7542    if test 64 = "${OBJECT_MODE-32}"; then
7543      shared_archive_member_spec=shr_64
7544    else
7545      shared_archive_member_spec=shr
7546    fi
7547  fi
7548  ;;
7549*)
7550  with_aix_soname=aix
7551  ;;
7552esac
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563# This can be used to rebuild libtool when needed
7564LIBTOOL_DEPS=$ltmain
7565
7566# Always use our own libtool.
7567LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598test -z "$LN_S" && LN_S="ln -s"
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613if test -n "${ZSH_VERSION+set}"; then
7614   setopt NO_GLOB_SUBST
7615fi
7616
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7618$as_echo_n "checking for objdir... " >&6; }
7619if ${lt_cv_objdir+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  rm -f .libs 2>/dev/null
7623mkdir .libs 2>/dev/null
7624if test -d .libs; then
7625  lt_cv_objdir=.libs
7626else
7627  # MS-DOS does not allow filenames that begin with a dot.
7628  lt_cv_objdir=_libs
7629fi
7630rmdir .libs 2>/dev/null
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7633$as_echo "$lt_cv_objdir" >&6; }
7634objdir=$lt_cv_objdir
7635
7636
7637
7638
7639
7640cat >>confdefs.h <<_ACEOF
7641#define LT_OBJDIR "$lt_cv_objdir/"
7642_ACEOF
7643
7644
7645
7646
7647case $host_os in
7648aix3*)
7649  # AIX sometimes has problems with the GCC collect2 program.  For some
7650  # reason, if we set the COLLECT_NAMES environment variable, the problems
7651  # vanish in a puff of smoke.
7652  if test set != "${COLLECT_NAMES+set}"; then
7653    COLLECT_NAMES=
7654    export COLLECT_NAMES
7655  fi
7656  ;;
7657esac
7658
7659# Global variables:
7660ofile=libtool
7661can_build_shared=yes
7662
7663# All known linkers require a '.a' archive for static linking (except MSVC,
7664# which needs '.lib').
7665libext=a
7666
7667with_gnu_ld=$lt_cv_prog_gnu_ld
7668
7669old_CC=$CC
7670old_CFLAGS=$CFLAGS
7671
7672# Set sane defaults for various variables
7673test -z "$CC" && CC=cc
7674test -z "$LTCC" && LTCC=$CC
7675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7676test -z "$LD" && LD=ld
7677test -z "$ac_objext" && ac_objext=o
7678
7679func_cc_basename $compiler
7680cc_basename=$func_cc_basename_result
7681
7682
7683# Only perform the check for file, if the check method requires it
7684test -z "$MAGIC_CMD" && MAGIC_CMD=file
7685case $deplibs_check_method in
7686file_magic*)
7687  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7689$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7690if ${lt_cv_path_MAGIC_CMD+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  case $MAGIC_CMD in
7694[\\/*] |  ?:[\\/]*)
7695  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7696  ;;
7697*)
7698  lt_save_MAGIC_CMD=$MAGIC_CMD
7699  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7700  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7701  for ac_dir in $ac_dummy; do
7702    IFS=$lt_save_ifs
7703    test -z "$ac_dir" && ac_dir=.
7704    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7705      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7706      if test -n "$file_magic_test_file"; then
7707	case $deplibs_check_method in
7708	"file_magic "*)
7709	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7710	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7711	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7712	    $EGREP "$file_magic_regex" > /dev/null; then
7713	    :
7714	  else
7715	    cat <<_LT_EOF 1>&2
7716
7717*** Warning: the command libtool uses to detect shared libraries,
7718*** $file_magic_cmd, produces output that libtool cannot recognize.
7719*** The result is that libtool may fail to recognize shared libraries
7720*** as such.  This will affect the creation of libtool libraries that
7721*** depend on shared libraries, but programs linked with such libtool
7722*** libraries will work regardless of this problem.  Nevertheless, you
7723*** may want to report the problem to your system manager and/or to
7724*** bug-libtool@gnu.org
7725
7726_LT_EOF
7727	  fi ;;
7728	esac
7729      fi
7730      break
7731    fi
7732  done
7733  IFS=$lt_save_ifs
7734  MAGIC_CMD=$lt_save_MAGIC_CMD
7735  ;;
7736esac
7737fi
7738
7739MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7740if test -n "$MAGIC_CMD"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7742$as_echo "$MAGIC_CMD" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749
7750
7751
7752if test -z "$lt_cv_path_MAGIC_CMD"; then
7753  if test -n "$ac_tool_prefix"; then
7754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7755$as_echo_n "checking for file... " >&6; }
7756if ${lt_cv_path_MAGIC_CMD+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  case $MAGIC_CMD in
7760[\\/*] |  ?:[\\/]*)
7761  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7762  ;;
7763*)
7764  lt_save_MAGIC_CMD=$MAGIC_CMD
7765  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7766  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767  for ac_dir in $ac_dummy; do
7768    IFS=$lt_save_ifs
7769    test -z "$ac_dir" && ac_dir=.
7770    if test -f "$ac_dir/file"; then
7771      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7772      if test -n "$file_magic_test_file"; then
7773	case $deplibs_check_method in
7774	"file_magic "*)
7775	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7777	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778	    $EGREP "$file_magic_regex" > /dev/null; then
7779	    :
7780	  else
7781	    cat <<_LT_EOF 1>&2
7782
7783*** Warning: the command libtool uses to detect shared libraries,
7784*** $file_magic_cmd, produces output that libtool cannot recognize.
7785*** The result is that libtool may fail to recognize shared libraries
7786*** as such.  This will affect the creation of libtool libraries that
7787*** depend on shared libraries, but programs linked with such libtool
7788*** libraries will work regardless of this problem.  Nevertheless, you
7789*** may want to report the problem to your system manager and/or to
7790*** bug-libtool@gnu.org
7791
7792_LT_EOF
7793	  fi ;;
7794	esac
7795      fi
7796      break
7797    fi
7798  done
7799  IFS=$lt_save_ifs
7800  MAGIC_CMD=$lt_save_MAGIC_CMD
7801  ;;
7802esac
7803fi
7804
7805MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7806if test -n "$MAGIC_CMD"; then
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7808$as_echo "$MAGIC_CMD" >&6; }
7809else
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815  else
7816    MAGIC_CMD=:
7817  fi
7818fi
7819
7820  fi
7821  ;;
7822esac
7823
7824# Use C for the default configuration in the libtool script
7825
7826lt_save_CC=$CC
7827ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833
7834# Source file extension for C test sources.
7835ac_ext=c
7836
7837# Object file extension for compiled C test sources.
7838objext=o
7839objext=$objext
7840
7841# Code to be used in simple compile tests
7842lt_simple_compile_test_code="int some_variable = 0;"
7843
7844# Code to be used in simple link tests
7845lt_simple_link_test_code='int main(){return(0);}'
7846
7847
7848
7849
7850
7851
7852
7853# If no C compiler was specified, use CC.
7854LTCC=${LTCC-"$CC"}
7855
7856# If no C compiler flags were specified, use CFLAGS.
7857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7858
7859# Allow CC to be a program name with arguments.
7860compiler=$CC
7861
7862# Save the default compiler, since it gets overwritten when the other
7863# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7864compiler_DEFAULT=$CC
7865
7866# save warnings/boilerplate of simple test code
7867ac_outfile=conftest.$ac_objext
7868echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7869eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7870_lt_compiler_boilerplate=`cat conftest.err`
7871$RM conftest*
7872
7873ac_outfile=conftest.$ac_objext
7874echo "$lt_simple_link_test_code" >conftest.$ac_ext
7875eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876_lt_linker_boilerplate=`cat conftest.err`
7877$RM -r conftest*
7878
7879
7880## CAVEAT EMPTOR:
7881## There is no encapsulation within the following macros, do not change
7882## the running order or otherwise move them around unless you know exactly
7883## what you are doing...
7884if test -n "$compiler"; then
7885
7886lt_prog_compiler_no_builtin_flag=
7887
7888if test yes = "$GCC"; then
7889  case $cc_basename in
7890  nvcc*)
7891    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7892  *)
7893    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7894  esac
7895
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_prog_compiler_rtti_exceptions=no
7902   ac_outfile=conftest.$ac_objext
7903   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7905   # Insert the option either (1) after the last *FLAGS variable, or
7906   # (2) before a word containing "conftest.", or (3) at the end.
7907   # Note that $ac_compile itself does not contain backslashes and begins
7908   # with a dollar sign (not a hyphen), so the echo should work correctly.
7909   # The option is referenced via a variable to avoid confusing sed.
7910   lt_compile=`echo "$ac_compile" | $SED \
7911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913   -e 's:$: $lt_compiler_flag:'`
7914   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7915   (eval "$lt_compile" 2>conftest.err)
7916   ac_status=$?
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   if (exit $ac_status) && test -s "$ac_outfile"; then
7920     # The compiler can only warn and ignore the option if not recognized
7921     # So say no if there are warnings other than the usual output.
7922     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925       lt_cv_prog_compiler_rtti_exceptions=yes
7926     fi
7927   fi
7928   $RM conftest*
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7933
7934if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7935    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936else
7937    :
7938fi
7939
7940fi
7941
7942
7943
7944
7945
7946
7947  lt_prog_compiler_wl=
7948lt_prog_compiler_pic=
7949lt_prog_compiler_static=
7950
7951
7952  if test yes = "$GCC"; then
7953    lt_prog_compiler_wl='-Wl,'
7954    lt_prog_compiler_static='-static'
7955
7956    case $host_os in
7957      aix*)
7958      # All AIX code is PIC.
7959      if test ia64 = "$host_cpu"; then
7960	# AIX 5 now supports IA64 processor
7961	lt_prog_compiler_static='-Bstatic'
7962      fi
7963      lt_prog_compiler_pic='-fPIC'
7964      ;;
7965
7966    amigaos*)
7967      case $host_cpu in
7968      powerpc)
7969            # see comment about AmigaOS4 .so support
7970            lt_prog_compiler_pic='-fPIC'
7971        ;;
7972      m68k)
7973            # FIXME: we need at least 68020 code to build shared libraries, but
7974            # adding the '-m68020' flag to GCC prevents building anything better,
7975            # like '-m68040'.
7976            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7977        ;;
7978      esac
7979      ;;
7980
7981    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7982      # PIC is the default for these OSes.
7983      ;;
7984
7985    mingw* | cygwin* | pw32* | os2* | cegcc*)
7986      # This hack is so that the source file can tell whether it is being
7987      # built for inclusion in a dll (and should export symbols for example).
7988      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7989      # (--disable-auto-import) libraries
7990      lt_prog_compiler_pic='-DDLL_EXPORT'
7991      case $host_os in
7992      os2*)
7993	lt_prog_compiler_static='$wl-static'
7994	;;
7995      esac
7996      ;;
7997
7998    darwin* | rhapsody*)
7999      # PIC is the default on this platform
8000      # Common symbols not allowed in MH_DYLIB files
8001      lt_prog_compiler_pic='-fno-common'
8002      ;;
8003
8004    haiku*)
8005      # PIC is the default for Haiku.
8006      # The "-static" flag exists, but is broken.
8007      lt_prog_compiler_static=
8008      ;;
8009
8010    hpux*)
8011      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8012      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8013      # sets the default TLS model and affects inlining.
8014      case $host_cpu in
8015      hppa*64*)
8016	# +Z the default
8017	;;
8018      *)
8019	lt_prog_compiler_pic='-fPIC'
8020	;;
8021      esac
8022      ;;
8023
8024    interix[3-9]*)
8025      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8026      # Instead, we relocate shared libraries at runtime.
8027      ;;
8028
8029    msdosdjgpp*)
8030      # Just because we use GCC doesn't mean we suddenly get shared libraries
8031      # on systems that don't support them.
8032      lt_prog_compiler_can_build_shared=no
8033      enable_shared=no
8034      ;;
8035
8036    *nto* | *qnx*)
8037      # QNX uses GNU C++, but need to define -shared option too, otherwise
8038      # it will coredump.
8039      lt_prog_compiler_pic='-fPIC -shared'
8040      ;;
8041
8042    sysv4*MP*)
8043      if test -d /usr/nec; then
8044	lt_prog_compiler_pic=-Kconform_pic
8045      fi
8046      ;;
8047
8048    *)
8049      lt_prog_compiler_pic='-fPIC'
8050      ;;
8051    esac
8052
8053    case $cc_basename in
8054    nvcc*) # Cuda Compiler Driver 2.2
8055      lt_prog_compiler_wl='-Xlinker '
8056      if test -n "$lt_prog_compiler_pic"; then
8057        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8058      fi
8059      ;;
8060    esac
8061  else
8062    # PORTME Check for flag to pass linker flags through the system compiler.
8063    case $host_os in
8064    aix*)
8065      lt_prog_compiler_wl='-Wl,'
8066      if test ia64 = "$host_cpu"; then
8067	# AIX 5 now supports IA64 processor
8068	lt_prog_compiler_static='-Bstatic'
8069      else
8070	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8071      fi
8072      ;;
8073
8074    darwin* | rhapsody*)
8075      # PIC is the default on this platform
8076      # Common symbols not allowed in MH_DYLIB files
8077      lt_prog_compiler_pic='-fno-common'
8078      case $cc_basename in
8079      nagfor*)
8080        # NAG Fortran compiler
8081        lt_prog_compiler_wl='-Wl,-Wl,,'
8082        lt_prog_compiler_pic='-PIC'
8083        lt_prog_compiler_static='-Bstatic'
8084        ;;
8085      esac
8086      ;;
8087
8088    mingw* | cygwin* | pw32* | os2* | cegcc*)
8089      # This hack is so that the source file can tell whether it is being
8090      # built for inclusion in a dll (and should export symbols for example).
8091      lt_prog_compiler_pic='-DDLL_EXPORT'
8092      case $host_os in
8093      os2*)
8094	lt_prog_compiler_static='$wl-static'
8095	;;
8096      esac
8097      ;;
8098
8099    hpux9* | hpux10* | hpux11*)
8100      lt_prog_compiler_wl='-Wl,'
8101      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8102      # not for PA HP-UX.
8103      case $host_cpu in
8104      hppa*64*|ia64*)
8105	# +Z the default
8106	;;
8107      *)
8108	lt_prog_compiler_pic='+Z'
8109	;;
8110      esac
8111      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8112      lt_prog_compiler_static='$wl-a ${wl}archive'
8113      ;;
8114
8115    irix5* | irix6* | nonstopux*)
8116      lt_prog_compiler_wl='-Wl,'
8117      # PIC (with -KPIC) is the default.
8118      lt_prog_compiler_static='-non_shared'
8119      ;;
8120
8121    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8122      case $cc_basename in
8123      # old Intel for x86_64, which still supported -KPIC.
8124      ecc*)
8125	lt_prog_compiler_wl='-Wl,'
8126	lt_prog_compiler_pic='-KPIC'
8127	lt_prog_compiler_static='-static'
8128        ;;
8129      # icc used to be incompatible with GCC.
8130      # ICC 10 doesn't accept -KPIC any more.
8131      icc* | ifort*)
8132	lt_prog_compiler_wl='-Wl,'
8133	lt_prog_compiler_pic='-fPIC'
8134	lt_prog_compiler_static='-static'
8135        ;;
8136      # Lahey Fortran 8.1.
8137      lf95*)
8138	lt_prog_compiler_wl='-Wl,'
8139	lt_prog_compiler_pic='--shared'
8140	lt_prog_compiler_static='--static'
8141	;;
8142      nagfor*)
8143	# NAG Fortran compiler
8144	lt_prog_compiler_wl='-Wl,-Wl,,'
8145	lt_prog_compiler_pic='-PIC'
8146	lt_prog_compiler_static='-Bstatic'
8147	;;
8148      tcc*)
8149	# Fabrice Bellard et al's Tiny C Compiler
8150	lt_prog_compiler_wl='-Wl,'
8151	lt_prog_compiler_pic='-fPIC'
8152	lt_prog_compiler_static='-static'
8153	;;
8154      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8155        # Portland Group compilers (*not* the Pentium gcc compiler,
8156	# which looks to be a dead project)
8157	lt_prog_compiler_wl='-Wl,'
8158	lt_prog_compiler_pic='-fpic'
8159	lt_prog_compiler_static='-Bstatic'
8160        ;;
8161      ccc*)
8162        lt_prog_compiler_wl='-Wl,'
8163        # All Alpha code is PIC.
8164        lt_prog_compiler_static='-non_shared'
8165        ;;
8166      xl* | bgxl* | bgf* | mpixl*)
8167	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8168	lt_prog_compiler_wl='-Wl,'
8169	lt_prog_compiler_pic='-qpic'
8170	lt_prog_compiler_static='-qstaticlink'
8171	;;
8172      *)
8173	case `$CC -V 2>&1 | sed 5q` in
8174	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8175	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8176	  lt_prog_compiler_pic='-KPIC'
8177	  lt_prog_compiler_static='-Bstatic'
8178	  lt_prog_compiler_wl=''
8179	  ;;
8180	*Sun\ F* | *Sun*Fortran*)
8181	  lt_prog_compiler_pic='-KPIC'
8182	  lt_prog_compiler_static='-Bstatic'
8183	  lt_prog_compiler_wl='-Qoption ld '
8184	  ;;
8185	*Sun\ C*)
8186	  # Sun C 5.9
8187	  lt_prog_compiler_pic='-KPIC'
8188	  lt_prog_compiler_static='-Bstatic'
8189	  lt_prog_compiler_wl='-Wl,'
8190	  ;;
8191        *Intel*\ [CF]*Compiler*)
8192	  lt_prog_compiler_wl='-Wl,'
8193	  lt_prog_compiler_pic='-fPIC'
8194	  lt_prog_compiler_static='-static'
8195	  ;;
8196	*Portland\ Group*)
8197	  lt_prog_compiler_wl='-Wl,'
8198	  lt_prog_compiler_pic='-fpic'
8199	  lt_prog_compiler_static='-Bstatic'
8200	  ;;
8201	esac
8202	;;
8203      esac
8204      ;;
8205
8206    newsos6)
8207      lt_prog_compiler_pic='-KPIC'
8208      lt_prog_compiler_static='-Bstatic'
8209      ;;
8210
8211    *nto* | *qnx*)
8212      # QNX uses GNU C++, but need to define -shared option too, otherwise
8213      # it will coredump.
8214      lt_prog_compiler_pic='-fPIC -shared'
8215      ;;
8216
8217    osf3* | osf4* | osf5*)
8218      lt_prog_compiler_wl='-Wl,'
8219      # All OSF/1 code is PIC.
8220      lt_prog_compiler_static='-non_shared'
8221      ;;
8222
8223    rdos*)
8224      lt_prog_compiler_static='-non_shared'
8225      ;;
8226
8227    solaris*)
8228      lt_prog_compiler_pic='-KPIC'
8229      lt_prog_compiler_static='-Bstatic'
8230      case $cc_basename in
8231      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8232	lt_prog_compiler_wl='-Qoption ld ';;
8233      *)
8234	lt_prog_compiler_wl='-Wl,';;
8235      esac
8236      ;;
8237
8238    sunos4*)
8239      lt_prog_compiler_wl='-Qoption ld '
8240      lt_prog_compiler_pic='-PIC'
8241      lt_prog_compiler_static='-Bstatic'
8242      ;;
8243
8244    sysv4 | sysv4.2uw2* | sysv4.3*)
8245      lt_prog_compiler_wl='-Wl,'
8246      lt_prog_compiler_pic='-KPIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4*MP*)
8251      if test -d /usr/nec; then
8252	lt_prog_compiler_pic='-Kconform_pic'
8253	lt_prog_compiler_static='-Bstatic'
8254      fi
8255      ;;
8256
8257    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8258      lt_prog_compiler_wl='-Wl,'
8259      lt_prog_compiler_pic='-KPIC'
8260      lt_prog_compiler_static='-Bstatic'
8261      ;;
8262
8263    unicos*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_can_build_shared=no
8266      ;;
8267
8268    uts4*)
8269      lt_prog_compiler_pic='-pic'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    *)
8274      lt_prog_compiler_can_build_shared=no
8275      ;;
8276    esac
8277  fi
8278
8279case $host_os in
8280  # For platforms that do not support PIC, -DPIC is meaningless:
8281  *djgpp*)
8282    lt_prog_compiler_pic=
8283    ;;
8284  *)
8285    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8286    ;;
8287esac
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8290$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8291if ${lt_cv_prog_compiler_pic+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8297$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8298lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8299
8300#
8301# Check to make sure the PIC flag actually works.
8302#
8303if test -n "$lt_prog_compiler_pic"; then
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8305$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8306if ${lt_cv_prog_compiler_pic_works+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  lt_cv_prog_compiler_pic_works=no
8310   ac_outfile=conftest.$ac_objext
8311   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8313   # Insert the option either (1) after the last *FLAGS variable, or
8314   # (2) before a word containing "conftest.", or (3) at the end.
8315   # Note that $ac_compile itself does not contain backslashes and begins
8316   # with a dollar sign (not a hyphen), so the echo should work correctly.
8317   # The option is referenced via a variable to avoid confusing sed.
8318   lt_compile=`echo "$ac_compile" | $SED \
8319   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321   -e 's:$: $lt_compiler_flag:'`
8322   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323   (eval "$lt_compile" 2>conftest.err)
8324   ac_status=$?
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   if (exit $ac_status) && test -s "$ac_outfile"; then
8328     # The compiler can only warn and ignore the option if not recognized
8329     # So say no if there are warnings other than the usual output.
8330     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8331     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333       lt_cv_prog_compiler_pic_works=yes
8334     fi
8335   fi
8336   $RM conftest*
8337
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8340$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8341
8342if test yes = "$lt_cv_prog_compiler_pic_works"; then
8343    case $lt_prog_compiler_pic in
8344     "" | " "*) ;;
8345     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8346     esac
8347else
8348    lt_prog_compiler_pic=
8349     lt_prog_compiler_can_build_shared=no
8350fi
8351
8352fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364#
8365# Check to make sure the static flag actually works.
8366#
8367wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370if ${lt_cv_prog_compiler_static_works+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  lt_cv_prog_compiler_static_works=no
8374   save_LDFLAGS=$LDFLAGS
8375   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378     # The linker can only warn and ignore the option if not recognized
8379     # So say no if there are warnings
8380     if test -s conftest.err; then
8381       # Append any errors to the config.log.
8382       cat conftest.err 1>&5
8383       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385       if diff conftest.exp conftest.er2 >/dev/null; then
8386         lt_cv_prog_compiler_static_works=yes
8387       fi
8388     else
8389       lt_cv_prog_compiler_static_works=yes
8390     fi
8391   fi
8392   $RM -r conftest*
8393   LDFLAGS=$save_LDFLAGS
8394
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8398
8399if test yes = "$lt_cv_prog_compiler_static_works"; then
8400    :
8401else
8402    lt_prog_compiler_static=
8403fi
8404
8405
8406
8407
8408
8409
8410
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413if ${lt_cv_prog_compiler_c_o+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  lt_cv_prog_compiler_c_o=no
8417   $RM -r conftest 2>/dev/null
8418   mkdir conftest
8419   cd conftest
8420   mkdir out
8421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
8423   lt_compiler_flag="-o out/conftest2.$ac_objext"
8424   # Insert the option either (1) after the last *FLAGS variable, or
8425   # (2) before a word containing "conftest.", or (3) at the end.
8426   # Note that $ac_compile itself does not contain backslashes and begins
8427   # with a dollar sign (not a hyphen), so the echo should work correctly.
8428   lt_compile=`echo "$ac_compile" | $SED \
8429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431   -e 's:$: $lt_compiler_flag:'`
8432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433   (eval "$lt_compile" 2>out/conftest.err)
8434   ac_status=$?
8435   cat out/conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438   then
8439     # The compiler can only warn and ignore the option if not recognized
8440     # So say no if there are warnings
8441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444       lt_cv_prog_compiler_c_o=yes
8445     fi
8446   fi
8447   chmod u+w . 2>&5
8448   $RM conftest*
8449   # SGI C++ compiler will create directory out/ii_files/ for
8450   # template instantiation
8451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452   $RM out/* && rmdir out
8453   cd ..
8454   $RM -r conftest
8455   $RM conftest*
8456
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8460
8461
8462
8463
8464
8465
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468if ${lt_cv_prog_compiler_c_o+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_c_o=no
8472   $RM -r conftest 2>/dev/null
8473   mkdir conftest
8474   cd conftest
8475   mkdir out
8476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478   lt_compiler_flag="-o out/conftest2.$ac_objext"
8479   # Insert the option either (1) after the last *FLAGS variable, or
8480   # (2) before a word containing "conftest.", or (3) at the end.
8481   # Note that $ac_compile itself does not contain backslashes and begins
8482   # with a dollar sign (not a hyphen), so the echo should work correctly.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>out/conftest.err)
8489   ac_status=$?
8490   cat out/conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493   then
8494     # The compiler can only warn and ignore the option if not recognized
8495     # So say no if there are warnings
8496     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499       lt_cv_prog_compiler_c_o=yes
8500     fi
8501   fi
8502   chmod u+w . 2>&5
8503   $RM conftest*
8504   # SGI C++ compiler will create directory out/ii_files/ for
8505   # template instantiation
8506   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507   $RM out/* && rmdir out
8508   cd ..
8509   $RM -r conftest
8510   $RM conftest*
8511
8512fi
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519hard_links=nottested
8520if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8521  # do not overwrite the value of need_locks provided by the user
8522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523$as_echo_n "checking if we can lock with hard links... " >&6; }
8524  hard_links=yes
8525  $RM conftest*
8526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527  touch conftest.a
8528  ln conftest.a conftest.b 2>&5 || hard_links=no
8529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531$as_echo "$hard_links" >&6; }
8532  if test no = "$hard_links"; then
8533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8534$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8535    need_locks=warn
8536  fi
8537else
8538  need_locks=no
8539fi
8540
8541
8542
8543
8544
8545
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8548
8549  runpath_var=
8550  allow_undefined_flag=
8551  always_export_symbols=no
8552  archive_cmds=
8553  archive_expsym_cmds=
8554  compiler_needs_object=no
8555  enable_shared_with_static_runtimes=no
8556  export_dynamic_flag_spec=
8557  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558  hardcode_automatic=no
8559  hardcode_direct=no
8560  hardcode_direct_absolute=no
8561  hardcode_libdir_flag_spec=
8562  hardcode_libdir_separator=
8563  hardcode_minus_L=no
8564  hardcode_shlibpath_var=unsupported
8565  inherit_rpath=no
8566  link_all_deplibs=unknown
8567  module_cmds=
8568  module_expsym_cmds=
8569  old_archive_from_new_cmds=
8570  old_archive_from_expsyms_cmds=
8571  thread_safe_flag_spec=
8572  whole_archive_flag_spec=
8573  # include_expsyms should be a list of space-separated symbols to be *always*
8574  # included in the symbol list
8575  include_expsyms=
8576  # exclude_expsyms can be an extended regexp of symbols to exclude
8577  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8578  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8579  # as well as any symbol that contains 'd'.
8580  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582  # platforms (ab)use it in PIC code, but their linkers get confused if
8583  # the symbol is explicitly referenced.  Since portable code cannot
8584  # rely on this symbol name, it's probably fine to never include it in
8585  # preloaded symbol tables.
8586  # Exclude shared library initialization/finalization symbols.
8587  extract_expsyms_cmds=
8588
8589  case $host_os in
8590  cygwin* | mingw* | pw32* | cegcc*)
8591    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592    # When not using gcc, we currently assume that we are using
8593    # Microsoft Visual C++.
8594    if test yes != "$GCC"; then
8595      with_gnu_ld=no
8596    fi
8597    ;;
8598  interix*)
8599    # we just hope/assume this is gcc and not c89 (= MSVC++)
8600    with_gnu_ld=yes
8601    ;;
8602  openbsd* | bitrig*)
8603    with_gnu_ld=no
8604    ;;
8605  linux* | k*bsd*-gnu | gnu*)
8606    link_all_deplibs=no
8607    ;;
8608  esac
8609
8610  ld_shlibs=yes
8611
8612  # On some targets, GNU ld is compatible enough with the native linker
8613  # that we're better off using the native interface for both.
8614  lt_use_gnu_ld_interface=no
8615  if test yes = "$with_gnu_ld"; then
8616    case $host_os in
8617      aix*)
8618	# The AIX port of GNU ld has always aspired to compatibility
8619	# with the native linker.  However, as the warning in the GNU ld
8620	# block says, versions before 2.19.5* couldn't really create working
8621	# shared libraries, regardless of the interface used.
8622	case `$LD -v 2>&1` in
8623	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8626	  *)
8627	    lt_use_gnu_ld_interface=yes
8628	    ;;
8629	esac
8630	;;
8631      *)
8632	lt_use_gnu_ld_interface=yes
8633	;;
8634    esac
8635  fi
8636
8637  if test yes = "$lt_use_gnu_ld_interface"; then
8638    # If archive_cmds runs LD, not CC, wlarc should be empty
8639    wlarc='$wl'
8640
8641    # Set some defaults for GNU ld with shared library support. These
8642    # are reset later if shared libraries are not supported. Putting them
8643    # here allows them to be overridden if necessary.
8644    runpath_var=LD_RUN_PATH
8645    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8646    export_dynamic_flag_spec='$wl--export-dynamic'
8647    # ancient GNU ld didn't support --whole-archive et. al.
8648    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8650    else
8651      whole_archive_flag_spec=
8652    fi
8653    supports_anon_versioning=no
8654    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8655      *GNU\ gold*) supports_anon_versioning=yes ;;
8656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659      *\ 2.11.*) ;; # other 2.11 versions
8660      *) supports_anon_versioning=yes ;;
8661    esac
8662
8663    # See if GNU ld supports shared libraries.
8664    case $host_os in
8665    aix[3-9]*)
8666      # On AIX/PPC, the GNU linker is very broken
8667      if test ia64 != "$host_cpu"; then
8668	ld_shlibs=no
8669	cat <<_LT_EOF 1>&2
8670
8671*** Warning: the GNU linker, at least up to release 2.19, is reported
8672*** to be unable to reliably create shared libraries on AIX.
8673*** Therefore, libtool is disabling shared libraries support.  If you
8674*** really care for shared libraries, you may want to install binutils
8675*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676*** You will then need to restart the configuration process.
8677
8678_LT_EOF
8679      fi
8680      ;;
8681
8682    amigaos*)
8683      case $host_cpu in
8684      powerpc)
8685            # see comment about AmigaOS4 .so support
8686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8687            archive_expsym_cmds=''
8688        ;;
8689      m68k)
8690            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)'
8691            hardcode_libdir_flag_spec='-L$libdir'
8692            hardcode_minus_L=yes
8693        ;;
8694      esac
8695      ;;
8696
8697    beos*)
8698      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699	allow_undefined_flag=unsupported
8700	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701	# support --undefined.  This deserves some investigation.  FIXME
8702	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8703      else
8704	ld_shlibs=no
8705      fi
8706      ;;
8707
8708    cygwin* | mingw* | pw32* | cegcc*)
8709      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710      # as there is no search path for DLLs.
8711      hardcode_libdir_flag_spec='-L$libdir'
8712      export_dynamic_flag_spec='$wl--export-all-symbols'
8713      allow_undefined_flag=unsupported
8714      always_export_symbols=no
8715      enable_shared_with_static_runtimes=yes
8716      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'
8717      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8718
8719      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721	# If the export-symbols file already is a .def file, use it as
8722	# is; otherwise, prepend EXPORTS...
8723	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8724          cp $export_symbols $output_objdir/$soname.def;
8725        else
8726          echo EXPORTS > $output_objdir/$soname.def;
8727          cat $export_symbols >> $output_objdir/$soname.def;
8728        fi~
8729        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8730      else
8731	ld_shlibs=no
8732      fi
8733      ;;
8734
8735    haiku*)
8736      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8737      link_all_deplibs=yes
8738      ;;
8739
8740    os2*)
8741      hardcode_libdir_flag_spec='-L$libdir'
8742      hardcode_minus_L=yes
8743      allow_undefined_flag=unsupported
8744      shrext_cmds=.dll
8745      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8746	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8747	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8748	$ECHO EXPORTS >> $output_objdir/$libname.def~
8749	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8750	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8751	emximp -o $lib $output_objdir/$libname.def'
8752      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8753	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8754	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8755	$ECHO EXPORTS >> $output_objdir/$libname.def~
8756	prefix_cmds="$SED"~
8757	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8758	  prefix_cmds="$prefix_cmds -e 1d";
8759	fi~
8760	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8761	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8762	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8763	emximp -o $lib $output_objdir/$libname.def'
8764      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8765      enable_shared_with_static_runtimes=yes
8766      ;;
8767
8768    interix[3-9]*)
8769      hardcode_direct=no
8770      hardcode_shlibpath_var=no
8771      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8772      export_dynamic_flag_spec='$wl-E'
8773      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8774      # Instead, shared libraries are loaded at an image base (0x10000000 by
8775      # default) and relocated if they conflict, which is a slow very memory
8776      # consuming and fragmenting process.  To avoid this, we pick a random,
8777      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8778      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8779      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8780      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'
8781      ;;
8782
8783    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8784      tmp_diet=no
8785      if test linux-dietlibc = "$host_os"; then
8786	case $cc_basename in
8787	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8788	esac
8789      fi
8790      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8791	 && test no = "$tmp_diet"
8792      then
8793	tmp_addflag=' $pic_flag'
8794	tmp_sharedflag='-shared'
8795	case $cc_basename,$host_cpu in
8796        pgcc*)				# Portland Group C compiler
8797	  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'
8798	  tmp_addflag=' $pic_flag'
8799	  ;;
8800	pgf77* | pgf90* | pgf95* | pgfortran*)
8801					# Portland Group f77 and f90 compilers
8802	  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'
8803	  tmp_addflag=' $pic_flag -Mnomain' ;;
8804	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8805	  tmp_addflag=' -i_dynamic' ;;
8806	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8807	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8808	ifc* | ifort*)			# Intel Fortran compiler
8809	  tmp_addflag=' -nofor_main' ;;
8810	lf95*)				# Lahey Fortran 8.1
8811	  whole_archive_flag_spec=
8812	  tmp_sharedflag='--shared' ;;
8813        nagfor*)                        # NAGFOR 5.3
8814          tmp_sharedflag='-Wl,-shared' ;;
8815	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8816	  tmp_sharedflag='-qmkshrobj'
8817	  tmp_addflag= ;;
8818	nvcc*)	# Cuda Compiler Driver 2.2
8819	  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'
8820	  compiler_needs_object=yes
8821	  ;;
8822	esac
8823	case `$CC -V 2>&1 | sed 5q` in
8824	*Sun\ C*)			# Sun C 5.9
8825	  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'
8826	  compiler_needs_object=yes
8827	  tmp_sharedflag='-G' ;;
8828	*Sun\ F*)			# Sun Fortran 8.3
8829	  tmp_sharedflag='-G' ;;
8830	esac
8831	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8832
8833        if test yes = "$supports_anon_versioning"; then
8834          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8835            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836            echo "local: *; };" >> $output_objdir/$libname.ver~
8837            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8838        fi
8839
8840	case $cc_basename in
8841	tcc*)
8842	  export_dynamic_flag_spec='-rdynamic'
8843	  ;;
8844	xlf* | bgf* | bgxlf* | mpixlf*)
8845	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8846	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8847	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8848	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8849	  if test yes = "$supports_anon_versioning"; then
8850	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8851              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8852              echo "local: *; };" >> $output_objdir/$libname.ver~
8853              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8854	  fi
8855	  ;;
8856	esac
8857      else
8858        ld_shlibs=no
8859      fi
8860      ;;
8861
8862    netbsd* | netbsdelf*-gnu)
8863      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8864	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8865	wlarc=
8866      else
8867	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8868	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8869      fi
8870      ;;
8871
8872    solaris*)
8873      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8874	ld_shlibs=no
8875	cat <<_LT_EOF 1>&2
8876
8877*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8878*** create shared libraries on Solaris systems.  Therefore, libtool
8879*** is disabling shared libraries support.  We urge you to upgrade GNU
8880*** binutils to release 2.9.1 or newer.  Another option is to modify
8881*** your PATH or compiler configuration so that the native linker is
8882*** used, and then restart.
8883
8884_LT_EOF
8885      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8886	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8887	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8888      else
8889	ld_shlibs=no
8890      fi
8891      ;;
8892
8893    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8894      case `$LD -v 2>&1` in
8895        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8896	ld_shlibs=no
8897	cat <<_LT_EOF 1>&2
8898
8899*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8900*** reliably create shared libraries on SCO systems.  Therefore, libtool
8901*** is disabling shared libraries support.  We urge you to upgrade GNU
8902*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8903*** your PATH or compiler configuration so that the native linker is
8904*** used, and then restart.
8905
8906_LT_EOF
8907	;;
8908	*)
8909	  # For security reasons, it is highly recommended that you always
8910	  # use absolute paths for naming shared libraries, and exclude the
8911	  # DT_RUNPATH tag from executables and libraries.  But doing so
8912	  # requires that you compile everything twice, which is a pain.
8913	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8915	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8916	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8917	  else
8918	    ld_shlibs=no
8919	  fi
8920	;;
8921      esac
8922      ;;
8923
8924    sunos4*)
8925      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8926      wlarc=
8927      hardcode_direct=yes
8928      hardcode_shlibpath_var=no
8929      ;;
8930
8931    *)
8932      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8934	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8935      else
8936	ld_shlibs=no
8937      fi
8938      ;;
8939    esac
8940
8941    if test no = "$ld_shlibs"; then
8942      runpath_var=
8943      hardcode_libdir_flag_spec=
8944      export_dynamic_flag_spec=
8945      whole_archive_flag_spec=
8946    fi
8947  else
8948    # PORTME fill in a description of your system's linker (not GNU ld)
8949    case $host_os in
8950    aix3*)
8951      allow_undefined_flag=unsupported
8952      always_export_symbols=yes
8953      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'
8954      # Note: this linker hardcodes the directories in LIBPATH if there
8955      # are no directories specified by -L.
8956      hardcode_minus_L=yes
8957      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8958	# Neither direct hardcoding nor static linking is supported with a
8959	# broken collect2.
8960	hardcode_direct=unsupported
8961      fi
8962      ;;
8963
8964    aix[4-9]*)
8965      if test ia64 = "$host_cpu"; then
8966	# On IA64, the linker does run time linking by default, so we don't
8967	# have to do anything special.
8968	aix_use_runtimelinking=no
8969	exp_sym_flag='-Bexport'
8970	no_entry_flag=
8971      else
8972	# If we're using GNU nm, then we don't want the "-C" option.
8973	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8974	# Without the "-l" option, or with the "-B" option, AIX nm treats
8975	# weak defined symbols like other global defined symbols, whereas
8976	# GNU nm marks them as "W".
8977	# While the 'weak' keyword is ignored in the Export File, we need
8978	# it in the Import File for the 'aix-soname' feature, so we have
8979	# to replace the "-B" option with "-P" for AIX nm.
8980	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8981	  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'
8982	else
8983	  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 &g